asking for a new version support minecraft 1.20.4

Sorry for the late response.
Official addons rarely require updates to newer Minecraft versions because they almost completely rely on PV's API. So, when PV is updated to a newer version, the addons are updated as well.


Run in a time interval

I need to create a task that runs every day between a time interval, for example
Wheels every day every 5 minutes only between 20:00 to 07:00

Hi @elvispdosreis I think the fastest way to get it done is by scheduling the job only between those hours
Example pseudocode
if (date('H') >= 20 && date('H') <= 7) {
    $scheduler->php(....)->at(.....)
}

Of course you can use any date library you want and set any conditions you want to achieve what you need.
There is currently no built in method to do what you are trying to do, but PRs are more than welcome

thanks


get rid of non-pythonic loops in random_closure method

should result in a speed-up in the range of two orders of magnitude

Sorry Constantin, I missed this request. Thanks for the improvement!


LFS-1051: Download links for file resources are broken in the subject chart for File Resource questions with maxAnswers = 1

Special chars are not supported

however, files like this one are

Special chars are not supported

Not introduced by this PR. Also happens on dev for file resource questions with maxAnswers != 1 where downloading files without special chars works.


[CSL-1559] Refactor locking in delegation

This uses newly introduced global StateLock instead of old (dlg-specific) synchronization mechanism.

@gromakovsky I've changed the last commit and fixed errors you pointed on. Please re-review!


Make date picker widget clearable by default

[ ] Make clearable by default
[ ] Remove isClearable flag from form schemas
[ ] Reverse isClearable option to isNotClearable

@marcellmueller are all checkboxes ready to be checked off?

Yep, sorry I've updated it.


Uploading csv to backend to process and display results

I would like to know how can i upload a csv file through stipple to the backend for processing?
Currently, I am working with the example provided by @essenciary which can display a random dataframe to the frontend. However, I want client users to upload their own csv file.
Example Script:
using Genie, Stipple
using StippleUI
using DataFrames

dt = DataFrame(rand(10,2), ["x1", "x2"])
dt_opts = DataTableOptions(columns = [Column("x1"), Column("x2", align = :right)])
# WEB_TRANSPORT = Genie.WebThreads #for AJAX/HTTP

@reactive mutable struct APP <: ReactiveModel
  data::R{DataTable} = DataTable()
  data_pagination::DataTablePagination = DataTablePagination(rows_per_page=50)
end

function handlers(model)

  on(model.isready) do isready
    isready || return

    model.data[] = DataTable(dt, dt_opts)
  end

  model
end

function ui(model::APP)
  page(model,
  [
      heading("Dashboard")

      row([
          cell(class="st-module", [
              h4("Dataset")
              # add your table logic here:
              table(:data;
              pagination=:data_pagination,
              style="height: 350px;"
              #dense=true, flat=true,
              )
          ])
      ])
  ])
end

route("/") do
  APP |> init |> handlers |> ui |> html
end
up(9000)

Thanks would highly appreciate the help! Look forward to the suggestions.

For file uploads you can easily extend Stipple components with Genie(our full-stack framework): https://www.genieframework.com/docs/tutorials/Handling-File-Uploads.html
Please feel free to share your feedback about our docs. I'm working on genie framework documentation. Let me know if anything in docs is confusing/non-obvious or needs any kind of improvement.
You can check a Stipple/Genie file upload example here: https://github.com/AbhimanyuAryan/stipple-fastai/blob/main/DetectBears/routes.jl
I will move this project to Stipple Demos soon(needs more work haven't got anytime recently to finish it)

also if you don't want Genie specific functionality. You can totally skip using Genie at top. Most of the rendering logic(html methods) is exported to Stipple from Genie.
In the example Adrian provided. You can remove using Genie from top. Just say using Stipple, StippleUI make it cleaner :)

In this discussion you can find an example of uploading a file.

Thanks @AbhimanyuAryan and @hhaensel for the suggestion and help, the recommendation has been quite helpful. Based on the posts I have managed to create a script which can import csv files to backend.
Code:
using Genie, Stipple
using Genie.Requests
using StippleUI
using DataFrames

Genie.config.cors_headers["Access-Control-Allow-Origin"]  =  "*"
Genie.config.cors_headers["Access-Control-Allow-Headers"] = "Content-Type"
Genie.config.cors_headers["Access-Control-Allow-Methods"] = "GET,POST,PUT,DELETE,OPTIONS"
Genie.config.cors_allowed_origins = ["*"]

function get_storage_dir(name)
  try
    if Sys.iswindows()
      mkdir("$(homedir())\\Desktop\\$name")
    elseif Sys.islinux()
      mkdir("$(homedir())/$name")
    end
  catch
    @warn "directory already exists"
    if Sys.iswindows()
      dir_path = "$(homedir())\\Desktop\\$name"
    elseif Sys.islinux()
      dir_path = "$(homedir())/$name"
    end
    return dir_path
  end
end

const FILE_PATH = get_storage_dir("UploadFolder")

dt = DataFrame(rand(10,2), ["x1", "x2"])
dt_opts = DataTableOptions(columns = [Column("x1"), Column("x2", align = :right)])

# WEB_TRANSPORT = Genie.WebThreads #for AJAX/HTTP

@reactive mutable struct APP <: ReactiveModel
  data::R{DataTable} = DataTable()
  data_pagination::DataTablePagination = DataTablePagination(rows_per_page=50)
end

function handlers(model)

  on(model.isready) do isready
    isready || return

    model.data[] = DataTable(dt, dt_opts)
  end

  model
end

function ui(model::APP)
  page(model,
  [
      heading("Dashboard")

      row([
        Html.div(class="col-md-12", [
          uploader(label="Upload Dataset", :auto__upload, :multiple, method="POST",
          url="http://localhost:9000/", field__name="csv_file")
        ])
      ])

      row([
          cell(class="st-module", [
              h4("Dataset")
              # add your table logic here:
              table(:data;
              pagination=:data_pagination,
              style="height: 350px;"
              #dense=true, flat=true,
              )
          ])
      ])
  ])
end

route("/") do
  APP |> init |> handlers |> ui |> html
end

#uploading csv files to the backend server
route("/", method = POST) do
  files = Genie.Requests.filespayload()
  for f in files
      write(joinpath(FILE_PATH, f[2].name), f[2].data)
      @info "Uploading: " * f[2].name
  end
  if length(files) == 0
      @info "No file uploaded"
  end
  return "upload done"
end

up(9000)

Hopefully, this is helpful for others. But do suggest any modifications to make this code better and fast.
Thanks again for the help!

I would like to ask a following question, while processing the csv file at the backend I will convert it into DataFrame Object. And from this object data and data_opts are generated to render the table in front end. My query is that, how can i automate the data_opts for each csv file ? As with each csv_file the number of columns and name will change.
Would highly appreciate any suggestions!

What flow do you have in mind? "Empty" page, then users upload a CSV and then display it? That's relatively easy.
1/ The globals dt and dt_opts are quite bad for performance (and as a general approach) and you don't really need them - so you can remove that an the on(isready) code because you're setting some random data there which is useless.
2/ inside the handler of route("/", method = POST) you need to put the update code, ex:
# code to process the uploaded CSV
model.data[] = DataTable(DataFrame_from_CSV, DataTableOptions(whateve_options_makes_sense_for_the_data))

However - in the route you don't have access to that model instance that corresponds to the user making the request so you can't update the user's frontend. Which means that you need to have a reference to the user's channel (the connection id), pull the corresponding model and update it to send data to that specific user. The best way to do it is to drop a session cookie on the first request (when the page is loaded) and store the channel onto the cookie. Then, with the POST request you have access to the cookie so you can retrieve the channel from the cookie, pull the model and update it.
I know it sounds intimidating and it's a pretty complex workflow, but it's just a few lines of code really. I have an unpublished demo, I'll look for it.
As a similar approach, you can use a session_id as part of the URL, like in this example: https://github.com/GenieFramework/StippleDemos/blob/bc6f18451e1493216e0538efd7ceb2493b6eebb7/AdvanceExamples/MultiUserApp.jl (no need for cookies).

If however you want to allow the user to upload any number of CSV files on the same page, that's gonna be more complicated as you have to dynamically output extra tables and that's trickier.

Other code comments: the get_storage_dir function is overkill. If you need to write OS specific code then surely something is forced there. There's Julia provided homedir which gives you the user's home dir in a cross platform manner - but in general that's a bad idea. Just store the files with the app. Make an uploads dir in the root of the app and just say "uploads/".

I agree. I'm still wondering, what a good appproach could be. I have in my mind something like
ModelDict = Dict{String, ReactiveModel}
ModelStorage = Dict{Symbol, ModelDict}

function push!(d::ModelStorage, modelpair::Pair{String, T}) where T <: ReactiveModel
    haskey(d, Symbol(T)) || push!(d, Symbol(T) => ModelDict())
    push!(d[Symbol(T)], modelpair)
end

const MODELSTORE = ModelStorage()

push!(MODELSTORE, "user1" => model)

We might consider using the more performant Dictionaries.jl instead of Dicts.

I'm thinking of the following features:
1/ session management by default - we need a way to associate the current request with a model instance. Most likely by storing the channel onto a session cookie.
2/ model storage - ability to keep the model itself in RAM, indexed by channel. Here we should also provide the option to serialize the model instead of keeping it live in RAM and automatically deserializing it. If serialization and deserialization works well out of the box, it should most likely be the default (to avoid memory leaks).
3/ model data storage - when storing the actual model is not necessary (and most times I expect it won't be, leading to improved RAM usage), we can associate the fields and the data with the channel and store this data serialized on the session.
Part of this I also want to look at:
a) memory leaks - are the closed socket connection keeping a reference to the models, blocking garbage collection?
b) automatic purging of closed WebSockets clients

@hhaensel If I may suggest, Serialization.jl combined with struct objects could be great option in to keep the models small and performant. In addition, this could also allow users (app owners) to store the sessions (haha could be bad practice but just putting it put there).

There is also BSON, which stores binary Julia data.

Just some more thoughts to allow for more than one tab. I think we need to

store authentication on a session cookie (that could be valid for all open tabs)
store models in a Dict{Channel, ReactiveModel} (or channel_id)
when the webchannel is closed we can destroy the model

If we don't separate model and channel, we end up with two tabs displaying the same view.
@essenciary would you agree?

It will be great if there is an example demonstrating how you can upload and process a CSV file.
For example, it will be nice to show you can upload a custom CSV file to perform k-means clustering using the example https://github.com/GenieFramework/StippleDemos/tree/master/IrisClustering but uploading . The CSV file should be uploaded using for example https://github.com/GenieFramework/StippleDemos/tree/master/BasicExamples/CsvUpload

@PGimenez please review and close as you see fit


Optional parameters with the external bindings?

That is simple to do because Matlab and Python support these already quite well. Somebody just has to define what are the optional parameters and which default values they should have.
For example:
sigma [optional, default all 1]
parameters to fit [optional, default all true]
user_info [optional, default none]
...

We have now the same optional parameters with the external bindings than with the C interface. See issue #12 and this gets closed.

Need to reopen, because the number of optional parameters differs.
Additionally to the optional parameters of the C Interface we have as default values if parameters aren't given.
tolerance (1e-6)
max_n_iterations (1e3)
estimator (LSE)
paramters_to_fit(all)

are the bindings fully up to date now?  If I pull the latest GPUFIT, does it run from Matlab?

max_n_iterations = 1000 looks like a pretty high default value.  what about 100?  or 20?

My rationale was that I would prefer the fits to converge and see the max_n_iterations only as insurance that the programm will actually terminate withing finite time. And since we don't know what a reasonable number of fits is for future model and estimator functions I wanted a rather high value. The default MaxIter in Matlab fminbnd is 500 for example. So what about 500?

"are the bindings fully up to date now? If I pull the latest GPUFIT, does it run from Matlab?"
Yesterday Python ran and Matlab crashed. I started fixing Matlab but did not finish yet. So the answer is no.

OK, but the typical number of iterations in our test fits is ~5.
On 25-Jan-17 9:49 AM, jkfindeisen wrote:

My rationale was that I would prefer the fits to converge and see the
max_n_iterations only as insurance that the programm will actually
terminate withing finite time. And since we don't know what a
reasonable number of fits is for future model and estimator functions
I wanted a rather high value. The default MaxIter in Matlab fminbnd is
500 for example. So what about 500?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/gpufit/GPUfit/issues/13#issuecomment-275051353,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADb8MZbF7ytIavD8TKm1ZRciFNFKLcJ3ks5rVwyOgaJpZM4LlY8J.

this is a problem, since none of the tests can be run with the latest
gpufit until the bindings are working
On 25-Jan-17 9:59 AM, jkfindeisen wrote:

"are the bindings fully up to date now? If I pull the latest GPUFIT,
does it run from Matlab?"
Yesterday Python ran and Matlab crashed. I started fixing Matlab but
did not finish yet. So the answer is no.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/gpufit/GPUfit/issues/13#issuecomment-275053316,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADb8MXTyVJk8UxveKvBw4sOaXuiZ_IVhks5rVw7UgaJpZM4LlY8J.

"OK, but the typical number of iterations in our test fits is ~5."
If you know that you can set the max_n_iterations to a lower value.
For other applications the typical number might be larger and there is not much sense in getting a half converged fit result, just because you could not wait a bit longer.
Not sure if 500 is optimal. We can change it at any time.

The bindings now use these default values. Still needs to be documented. Leave this open until it is documented.

Is now documented.


Typescript duplicates in dependencies' typings

I'm not sure why but, while on the first app run it worked, I couldn't compile typescript files any longer because I was gettins errors such as:
     node_modules/ng2-uploader/typings/globals/es6-collections/index.d.ts(28,5): error TS2300: Duplicate identifier 'size'.
   node_modules/ng2-uploader/typings/globals/es6-promise/index.d.ts(8,15):: error TS2300: Duplicate identifier 'Promise'.

I solved the issue by commenting out completely those 2 files.
But this shouldn't be normal (to need overriding an external module)
Tested on Angular RC2

Same here https://github.com/akveo/ng2-admin/issues/113

This should be resolved with 0.5.6.

it seems so. thanks @jkuri !


Proposal: Load Docker AppArmor policies

I'm happy to help implement loading AppArmor policies. Before I dump a bunch of code, I would like input on design.
There seem to be two main methods of solving this:

Provide a system container loading the AppArmor policy. This will allow easily swapping AppArmor for SELinux down the road. This system container will need to be loaded before all other system containers. There will be a window of opportunity where the system-docker will not be protected.
Integrate AppArmor support into the base OS and init.go. This will be the most secure option, but will have the most significant impact to RancherOS, architecturally.

#1 Is the easiest and I assume you can get this running pretty much on your own.  But, I would really like #2.  I'm fine with completely bending over backwards to do whatever it would take to get AppArmor and SELinux running in RancherOS.  We really want it and would like it to be a first class thing.  We just haven't gotten there.
I assume you have far more experience in this area than I and would love your help.

Turns out doing #1 won't be so simple if we want to use the same AppArmor policy that ships with Rancher's version of Docker. Not so hard if it's to be the "latest" policy, which may arguably be enough (or even preferable). I can have this available quickly.
I'm happy to work on option #2, but there is certainly more for me to unravel in how RancherOS is put together. It may be better to take discussion off GH-issues, if someone can help me catch up.

@ewindisch Would love to chat, just email me<EMAIL_ADDRESS>and we can setup a meeting.

Any further updates here?  There isn't any activity on this issue for over a year now.


Removing iter and contains from Connection in storage.

Fixes #590.

Coverage remained the same at 100.0% when pulling 45fd42041e98d04ef6777feaffdd87930b7352e5 on dhermes:fix-590 into 6de4110433cab8285821c4479bb87428a40d4e42 on GoogleCloudPlatform:master.

LGTM


UI: Number of freight uid characters is inconsistent

In Freighline we show the first 6 characters of uid, and in DAG we show 7 characters.

Nice catch. It should be 7. 7 is what I use in the promotion job names.


Issue with latest OpenCvSharp3-AnyCPU

I recently installed the latest version of OpenCvSharp3-AnyCPU, (OpenCV 3.x wrapper), and am having issues with an app which worked previously.  All work is C#, VS2015
When I try to create a VideoWriter:
OpenCvSharp.VideoWriter VW = new VideoWriter(thecsvfile[0].Replace(".csv", ".avi"), OpenCvSharp.FourCC.Default, 12.5, new OpenCvSharp.Size(600, 800), true);
I get an exception:
Exception thrown: 'System.Exception' in OpenCvSharp.dll
Additional information: Failed to find dll "opencv_world320", for processor architecture x86.
This occurs for x86 as above, similarly for x64 & if I choose 'any CPU' for AMD64.
I have the latest copy of opencv_world320.dll added to the project, copied to the output directgory.
Any suggestions?

Issue was resolved when I installed  release dated 1/26/2017
Coincidence or not, thanks.


Writing new data to a file

Good day - tell me how to write a new value to the file, if it differs from the T parameter - let's say changed name
https://pastebin.com/suAPLRAm

Ask questions on stackoverflow please


NAS-131312 / 25.04 / Fix failing CI github action

Jira URL: https://ixsystems.atlassian.net/browse/NAS-131312

Jira URL: https://ixsystems.atlassian.net/browse/NAS-131312

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.


SSL certificate error in CLI mode (Win 10)

Hello,
I have tried to run use the lib in CLI-mode under Windows 10.
What I have done:

installed PHP (https://windows.php.net/downloads/releases/php-8.1.7-nts-Win32-vs16-x64.zip)
installed composer from here
ran the composer install line as indicated in read.me.

As a result, the lib got installed under: C:\Users\test\vendor\nemiah\php-fints
First I filled the options information in init.php, then I tried the example Samples\tanModeAndMedia using following line in a cmd window:
>php -d include_path='C:\Users\test\vendor\nemiah\php-fints\lib' tanModesAndMedia.php

As a result, I ran into this error:

'../vendor/autoload.php'cannot be found
I solved this by replacing line 8 of ini.php
https://github.com/nemiah/phpFinTS/blob/5f6b4d3bf6916c0b5f90d70b1a98470cfe6a2a26/Samples/init.php#L8
with:
require '../../../autoload.php';

But then I get this one:

Fatal error: Uncaught Fhp\CurlException: Failed connection to https://banking-by6.s-fints-pt-by.de/fints30: SSL certificate problem: unable to get local issuer certificate in C:\Users\test\vendor\nemiah\php-fints\lib\Fhp\Connection.php:78

SSL error.log
How can I get rid of this error?
Any answer is highly appreciated, thank you in advance.

Side note: You can get rid of that autoload error by creating a project (rather than including from a global vendor directory). Basically you need to put a composer.json with nemiah/php-fints as a dependency in the same directory as tanModesAndMedia.php and then run composer install there, and it will create a vendor directory there.

Thanks a lot for the hints.
I managed to solve that, but now I get this one here:
>php tanModesAndMedia.php
debug: > HNHBK:1:3+000000000120+300+0+1'HKIDN:2:2+280:70150000+9999999999+0+0'HKVVB:3:3+0+0+0++1.0'HKTAN:4:6+4+HKIDN'HNHBS:5:1+1'
debug: < HNHBK:1:3+000000000164+300+0+1+0:1'HIRMG:2:2+9050::Die Nachricht enthlt Fehler.+9800::Dialog abgebrochen'HIRMS:3:2:3+9160:5:Pflichtfeld nicht gefunden'HNHBS:4:1+1'
PHP Fatal error:  Uncaught Fhp\Protocol\ServerException: FinTS errors:
9050 (global): Die Nachricht enthält Fehler.
9800 (global): Dialog abgebrochen
9160 (wrt seg 3): Pflichtfeld nicht gefunden (wrt DE 5)
Request segments:
HKVVB:3:3+0+0+0++1.0' in C:\Users\test\vendor\nemiah\php-fints\lib\Fhp\Protocol\ServerException.php:170
Stack trace:
#0 C:\Users\test\vendor\nemiah\php-fints\lib\Fhp\FinTs.php(963): Fhp\Protocol\ServerException::detectAndThrowErrors(Object(Fhp\Protocol\Message), Object(Fhp\Protocol\Message))
#1 C:\Users\test\vendor\nemiah\php-fints\lib\Fhp\FinTs.php(645): Fhp\FinTs->sendMessage(Object(Fhp\Protocol\Message))
#2 C:\Users\test\vendor\nemiah\php-fints\lib\Fhp\FinTs.php(673): Fhp\FinTs->ensureBpdAvailable()
#3 C:\Users\test\vendor\nemiah\php-fints\lib\Fhp\FinTs.php(532): Fhp\FinTs->ensureTanModesAvailable()
#4 C:\Users\test\vendor\nemiah\php-fints\lib\tanModesAndMedia.php(14): Fhp\FinTs->getTanModes()
#5 {main}
  thrown in C:\Users\test\vendor\nemiah\php-fints\lib\Fhp\Protocol\ServerException.php on line 170

Any idea what can be wrong?

so the issue can be closed?

Yes, I will close it, thanks for assistance.
Btw, great lib!


Fix the rules of android proguard

With the commit 104668cfc1e5d544271f639b2c413030b78949c4, the rules of android proguard are simplified, but it lacks rules for configurations that do not have the sqlcipher and sqlitex libraries.

 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.

Great thanks for submitting!


Add a way to load the WAV files of the GTA3 radios

Currently Godot can't natively load unimported WAV files, thus we need to use a script.
There's this project, but it and the Godot 4.x PR doesn't work.

Actually, you can do it manually if you know how to parse WAV files. You just have to set the correct encoding format, mix rate, stereo, etc. Just shove the audio samples into the data array.


Updated ddp package option role

This change is to update the ddp package option role and also updating molecule tests.

/recheck

recheck

recheck

recheck

recheck

recheck

/lgtm


AnyHashable dump conformance

Without it the Mirror for AnyHashable has a style of nil so it just uses string interpolation and doesn't dump properly

Hi @tahirmt, thanks for the PR!
Can you write a test case to cover this new behavior?


Renaming fields

Codecov Report

Merging #36 (eace5e4) into master (3c166e4) will decrease coverage by 1.06%.
The diff coverage is 80.80%.

@@             Coverage Diff              @@
##             master      #36      +/-   ##
============================================
- Coverage     71.68%   70.61%   -1.07%
+ Complexity      412      387      -25
============================================
  Files            73       71       -2
  Lines          1289     1232      -57
  Branches        129      116      -13
============================================
- Hits            924      870      -54
+ Misses          327      325       -2
+ Partials         38       37       -1

Impacted Files
Coverage Δ

...rc/main/java/seedu/address/logic/LogicManager.java
75.00% <ø> (ø)

.../seedu/address/logic/parser/EditCommandParser.java
90.90% <ø> (-1.40%)
:arrow_down:

src/main/java/seedu/address/model/Calorie.java
61.11% <ø> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
20.00% <0.00%> (ø)

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...rc/main/java/seedu/address/ui/PersonListPanel.java
0.00% <0.00%> (ø)

...in/java/seedu/address/storage/JsonAdaptedFood.java
94.44% <86.66%> (ø)

src/main/java/seedu/address/model/person/Food.java
97.22% <94.44%> (ø)

...java/seedu/address/logic/commands/EditCommand.java
96.66% <94.73%> (-0.35%)
:arrow_down:

.../java/seedu/address/logic/commands/AddCommand.java
100.00% <100.00%> (ø)

... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Python install error

First off, thank you for this library, it works great and it's definitely fast.
I've run into the issue below for a while now when including hnswlib as a install_requires dependency in an empty virtual environment. Currently, the hnswlib install is falling back to a python setup.py install build but per the deprecation message below that will break with pip 21.0.
DEPRECATION: hnswlib was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
This is the stacktrace when hnswlib is a dependency via install_requires.
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-8sme64a_/hnswlib_db0256fc916d446cb5402165d7531712/setup.py", line 116, in
zip_safe=False,
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/setuptools/init.py", line 143, in setup
return distutils.core.setup(**attrs)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
build_ext.run(self)
File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/pip-install-8sme64a/hnswlib_db0256fc916d446cb5402165d7531712/setup.py", line 89, in build_extensions
import numpy as np
ModuleNotFoundError: No module named 'numpy'
I cloned the project locally, ran python setup.py bdist_wheel and received a similar error with an empty environment.
Adding the following line to hnswlib/python_bindings/setup.py after install_requires solves the issue in my case for both instances mentioned above.
    setup_requires=['pybind11>=2.0', 'numpy'],

Please consider making this change to support environments where numpy/pybind11 isn't already installed.

Thanks @davidmezzetti !
Will commit the change in few following days.

Great, appreciate it!

I believe this should fix the issue: https://github.com/nmslib/hnswlib/pull/274

I believe this should fix the issue: https://github.com/nmslib/hnswlib/pull/274

Closing now that 0.5.0 is out with #274 merged in. Thank you!

Closing now that 0.5.0 is out with #274 merged in. Thank you!


Text Correction

At https://github.com/bludit/bludit/blob/master/bl-kernel/js/bludit-ajax.php#L66 the correct text should be:
You are not logged in anymore, so Bludit can't save your settings and content.
Tested on https://github.com/bludit/bludit/commit/8cfd7df062f373dcbc2a272cd60270d9b4b76bd6

Fixed, thanks!


Improve autocomplete

Some improvements to autocomplete:

convert source and candidate to lower case before checking for matches
change to match the beginning of the string only
if matched, replace the whole string with an appropriately cased string

Demo:

nice

wohoo!


SourceDefinitions to DataSourceBindings

Updating the vstest task to define dataSourceBindings instead of sourceDefinitions as per the new pattern
This is needed to support pagination in the test plan data source

 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.:x: romil07 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@romil07 can you please list all the validations you have done?
Have you kicked off a few test plan - test suite runs to ensure values are being passed correctly?


Enable Option for CORS

It would be a good idea to create a option to add a url of a CORS reverse proxy server infront of the jisho url. That would enable this api to also work on browser-side applications.

Hi, you could use the parsing functions discussed in the README under Parsing HTML strings to implement something like this.
I don't feel it would be appropriate to add direct CORS proxy support to this library since the Jisho admins may have reasons for leaving CORS disabled.


NOISSUE - Remove installing non-existent package in ci

Signed-off-by: Ivan Milošević<EMAIL_ADDRESS>What does this do?
Fix failing ci

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@63de955). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #758   +/-   ##
=========================================
  Coverage          ?   84.95%
=========================================
  Files             ?       69
  Lines             ?     4467
  Branches          ?        0
=========================================
  Hits              ?     3795
  Misses            ?      446
  Partials          ?      226

Continue to review full report at Codecov.

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


Standalone Vaults

Goal

Support activating Dendron features without being in a workspace.
Context

Dendron currently requires a dedicated VSCode workspace in order to work. This is inconvenient for the following cases:

user has an existing project and doesn't want to open another workspace
user has an existing project and wants to use dendron on docs in existing workspace
user wants to use dendron functionality (eg. insert note) in non-dendron files

@kevinslin  - think we should re-purpose to be "Standalone Vaults" or is that a bigger issue? Feels like making the dendron workspace file configurable would be a good first step but maybe there's other items that are needed to make Standalone vaults happen?

I have the feeling It would be better to just check if dendron.rootDir is set inside of the Workspace file to check if dendron needs to be activated.
I think this would be better instead of providing a config value that tells dendron how the workspace file is named.

Curious....any movement on this feature?  Or plans to continue?
Specifically interested in the ability to use dendron in any workspace.


[Utopia 560] add search box UI

Description
This PR includes the following proposed change(s):

add search ui in pia table view and integrate with backend API

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Development Dependency Working Agreement

[x] My code DOES NOT include the importing of new dependencies into the DPIA ecosystem
[ ] My code DOES include the importing of new dependencies into the DPIA ecosystem
If new dependencies are being introduced to the DPIA ecosystem:
[ ] The functionality of the dependency drastically reduces code complexity and makes my changes more easily maintainable and readible
[ ] The dependency being introduced does not contain multiple layers of nested dependencies introducing maintainability complexity to the DPIA ecosystem

Frontend Development Changes

[ ] N/A
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to project documentation or diagrams that reflect my changes
[ ] New and existing unit tests pass locally with my changes
[ ] My code follows Airbnb React Style Guidelines

API Development Changes

[x] N/A
[ ] I have performed a self-review of my own code
[ ] My code follows standards and practices outlined in the BC Government API Development Guidelines
[ ] New and existing unit tests pass locally with my changes
[ ] My changes includes Swagger documentation updates that reflect the changes I am introducing

Definition of Done

@kushal-arora-fw  I know why it renders twice locally, it is the react feature. if you run the main branch in your local, you should see the two requests send to backend, but in dev env, you will only see one request be sent.


df bugfix and allow decimals in directory name

Todos

[x] changes directory names to be everything before '.in'
[x] fixes bug in dataframe creation (bug was that we were adding formal charges to residues in duplicate at times)

Status

[ ] Ready to go

I see the tests are failing for formal charge, but this is a pr to fix a bug in our determination of formal charge. perhaps we want to go back through and look at all of the QM regions for our tests and manually identify the formal charge so that we can feel confident in updating the 'true_dictionary' in our test cases

Note to self: I hand-checked QM region charges on all tests.


Getting count of records in child table

Hopefully I'm putting this in the right place. It certainly seems like an issue to me, although it's also possible I'm going about this the wrong way.
I'm working with the EntityFramework.Core and EntityFramework.MicrosoftSqlServer 7.0.0-rc1-final packages, and I'm trying to do something through code that looks like the following SQL:
SELECT COUNT(*)
FROM [UploadPackage] [up]
INNER JOIN [RawClip] [rc] on [up].[Id] = [rc].[PackageId]
WHERE [up].[UserId] IN (1,2,3)

I've tried the following:
Option 1:
DbContext.UploadPackages.Include(up => up.Clips).Where(up => userIds.Contains(up.UserId)).SelectMany(u => u.Clips).CountAsync()

Option 2:
DbContext.RawClips.Include(rc => rc.Package).Where(rc => userIds.Contains(rc.Package.UserId)).CountAsync()

The relationships are configured using the Fluent API like so:
modelBuilder.Entity<UploadPackage>().HasMany(up => up.Clips).WithOne(rc => rc.Package);
modelBuilder.Entity<RawClip>().HasOne(rc => rc.Package).WithMany(up => up.Clips);

Option 1 generates the following SQL:
SELECT [up].[Id], [up].[AssetId], [up].[FileName], [up].[FileSize], [up].[PackageId], [up].[Path], [up].[ProxyUrl], [up].[StatusDetails], [up].[StatusId], [up].[ThumbnailUrl], [up].[UploadCompletedDateTime], [up].[UploadStartedDateTime], [r].[Id], [r].[AssetId], [r].[FileName], [r].[FileSize], [r].[PackageId], [r].[Path], [r].[ProxyUrl], [r].[StatusDetails], [r].[StatusId], [r].[ThumbnailUrl], [r].[UploadCompletedDateTime], [r].[UploadStartedDateTime], [up].[Id]
FROM [RawClip] AS [up]
CROSS JOIN [RawClip] AS [r]
WHERE [up].[UserId] IN (2, 3, 4, 1)

As you can see, it's joining the RawClip table to itself. On one side of the join, it's giving the table the alias "[up]" which seems to be a reference to UploadPackage, even though the table it's aliasing is actually the RawClip table. This ultimately throws an error because of the where clause trying to filter on the column "[up].[UserId]", which exists on the UploadPackage table, but not the RawClip table.
Option 2 fails without generating any SQL. Here's the error with stack trace:
InvalidOperationException: Sequence contains more than one element
System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
Microsoft.Data.Entity.Query.EntityQueryModelVisitor.<>c__DisplayClass79_0`1.<BindMemberExpression>b__0(IEnumerable`1 ps, IQuerySource qs)
Microsoft.Data.Entity.Query.EntityQueryModelVisitor.BindMemberExpressionCore[TResult](MemberExpression memberExpression, IQuerySource querySource, Func`3 memberBinder)
Microsoft.Data.Entity.Query.EntityQueryModelVisitor.BindMemberExpression[TResult](MemberExpression memberExpression, IQuerySource querySource, Func`3 memberBinder)
Microsoft.Data.Entity.Query.EntityQueryModelVisitor.BindMemberExpression(MemberExpression memberExpression, Action`2 memberBinder)
Microsoft.Data.Entity.Query.ExpressionVisitors.Internal.RequiresMaterializationExpressionVisitor.VisitMember(MemberExpression memberExpression)
System.Linq.Expressions.MemberExpression.Accept(ExpressionVisitor visitor)
System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
Microsoft.Data.Entity.Query.ExpressionVisitors.ExpressionVisitorBase.Visit(Expression expression)
Remotion.Linq.Clauses.ResultOperators.ContainsResultOperator.TransformExpressions(Func`2 transformation)
Remotion.Linq.QueryModel.TransformExpressions(Func`2 transformation)
Microsoft.Data.Entity.Query.ExpressionVisitors.Internal.RequiresMaterializationExpressionVisitor.VisitSubQuery(SubQueryExpression subQueryExpression)
Remotion.Linq.Clauses.Expressions.SubQueryExpression.Accept(ExpressionVisitor visitor)
System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
2000
Microsoft.Data.Entity.Query.ExpressionVisitors.ExpressionVisitorBase.Visit(Expression expression)
Remotion.Linq.Clauses.WhereClause.TransformExpressions(Func`2 transformation)
Remotion.Linq.QueryModel.TransformExpressions(Func`2 transformation)
Microsoft.Data.Entity.Query.ExpressionVisitors.Internal.RequiresMaterializationExpressionVisitor.FindQuerySourcesRequiringMaterialization(QueryModel queryModel)
Microsoft.Data.Entity.Query.QueryCompilationContext.FindQuerySourcesRequiringMaterialization(EntityQueryModelVisitor queryModelVisitor, QueryModel queryModel)
Microsoft.Data.Entity.Query.EntityQueryModelVisitor.CreateAsyncQueryExecutor[TResult](QueryModel queryModel)
Microsoft.Data.Entity.Storage.Database.CompileAsyncQuery[TResult](QueryModel queryModel)
Microsoft.Data.Entity.Query.Internal.QueryCompiler.<>c__DisplayClass19_0`1.<CompileAsyncQuery>b__0()
Microsoft.Data.Entity.Query.Internal.CompiledQueryCache.GetOrAddAsyncQuery[TResult](Object cacheKey, Func`1 compiler)
Microsoft.Data.Entity.Query.Internal.QueryCompiler.CompileAsyncQuery[TResult](Expression query)
Microsoft.Data.Entity.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query, CancellationToken cancellationToken)
Microsoft.Data.Entity.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression, CancellationToken cancellationToken)
Microsoft.Data.Entity.EntityFrameworkQueryableExtensions.ExecuteAsync[TSource,TResult](MethodInfo operatorMethodInfo, IQueryable`1 source, CancellationToken cancellationToken)
Microsoft.Data.Entity.EntityFrameworkQueryableExtensions.CountAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)

Am I doing something wrong? Is there a better way to achieve what I'm trying to do? It seems like a fairly simple use case, so I imagine there has to be some way to make this work...

Is there something about my post that's causing it to be ignored?
This seems like a legitimate bug to me. I was able to put together a very simple project that recreates the problem:
https://github.com/evanverneyfink/EFChildCountIssue.

@evanverneyfink we just don't triage incoming issues everyday. We get a very large number of incoming issues on this repo so we have a process to deal with it. We'll go thru the new issues on Monday.

Fair enough. Didn't mean to be pushy, I just saw other issues with responses and thought perhaps I'd done something incorrectly. Thanks for the response!

@evanverneyfink -
I took the repo you provided for repro. Since it was in RC1 I pulled out model etc in new project using RC2 packages.
Using the model, DbContext & seed data provided in TestDbContext
public static void Main(string[] args)
{
    using (var context = new TestDbContext())
    {
        context.Database.EnsureDeleted();
        context.Database.EnsureCreated();
        context.EnsureSeedData();
    }

    using (var context = new TestDbContext())
    {
        var userIds = new List<int> {1, 2, 3, 4};

        var count =
            context.Packages.Where(pkg => userIds.Contains(pkg.UserId)).SelectMany(pkg => pkg.Files).Count();
        Console.WriteLine(count);
    }
}

Output is 27
Generated query is
SELECT COUNT(*)
FROM [Packages] AS [pkg]
INNER JOIN [PackageFiles] AS [pkg.Files] ON [pkg].[Id] = [pkg.Files].[PackageId]
WHERE [pkg].[UserId] IN (1, 2, 3, 4)

Which is same as what you are looking for. Upgrading to RC2 packages will solve your issue.
Another thing, using SelectMany on navigation will create the join, you do not need to use Include on the same navigation.

duplicate of #3889, fixed in 7d27bf6527391cd46dbb09210f7e40f7998e549e, closing

Thanks guys. I'll upgrade to RC2.


fix invalid double

Prevent error invalid double when text is empty

Looks like here is some build error. Pub.dev is still on vers. 0.8.0.
Does it suppose to be like this?


Animaion glitch if the last element of a list at the bottom of a page is deleted

Occurs when the last element at the bottom of a page is deleted

Add elements by adding + until they move out of the screen
Scroll down
Click the lowest element to delete it

Expected result: Smooth animation
Actual result: Jumping of the screen / button
The glitching does not occur if there is enough space underneath the deleted element
Besides that edge case, a really nice animation helper
Set up a minimal project for debugging it: https://github.com/not-an-ai/auto-animate-glitch

Thanks for the great reproduction — this will be fixed in the next published version


Won't run again!

Hi
I don't know if this is a bug or not, but I'm tring to test the room-demo with the following commands:
git clone https://github.com/Kurento/kurento-room.git
screen
cd kurento-room/kurento-room-demo
git checkout 6.1.0
mvn compile exec:java
And connecting to my vps at 8080 work just fine... BUT:
Ctrl-C to stop the room-demo won't liberate the console, so in another console I killed the java process.
Now I tried to re-clone the git room, restart the server, but nothing...the Room won't run again and nor in localhost:8080 works..
Where is my error?  Comiling in java I have somethig installed in my server?
regards
MaX

after a lot of time the demo run finally  (1495. secons = 25 minuts ????)
my Server... ubuntu 14.04 64bit in VPS with real public IP and domain. (digitalocean)
here part of the screen log
15:34:05 INFO  org.kurento.room.demo.KurentoRoomDemoApp [org.kurento.room.demo.KurentoRoomDemoApp.main()] (StartupInfoLogger.java:56) - Started KurentoRoomDemoApp in 1495.33 seconds (JVM running for 1517.013)


Documentation Suggestions

As part of JOSS review: https://github.com/openjournals/joss-reviews/issues/4516
Please consider all suggestions below optional for the purposes of the JOSS review unless explicitly stated otherwise :smile:

[ ] On home/landing page, consider putting in-line links to pages in the second paragraph rather than simply italicizing the titles. E.g., instead of "The installation-page", consider "The Installation page"
[ ] On home/landing page, consider adding a paragraph giving an overview of RESLAD. This could be sourced from the repo's README
On the Installation page I recommend updating the "Stable release" directions to use python -m pip install ... instead of just pip install. This is a gentle nudge for users to use virtual environments, and can also prevent issues/confusion. One situation I've seen and run into myself is if multiple versions of pip are on the PATH, the package gets installed into the "wrong" Python environment leading to confusion. Explicitly using python -m pip ... prevents this issue.
[ ] Consider pointing users to pyenv for Python management. It's an excellent tool for installing Python and avoiding the pitfalls of using system package managers for installing/managing Python. I couldn't recommend it enough. It also makes it very simple and easy to run the latest version :smile:
On the Installation page, consider informing users what versions of Python are supported. Looking at pyproject.toml, it seems you support 3.8, 3.9, and 3.10
[ ] (This suggestion's less optional :wink:) On the Installation page in the "From sources" section, the line pip install poetry is problematic. This is not the recommended way of installing poetry. Using pip to install poetry is documented as the "advanced" way of installing poetry, and in previous versions of their documentation they explicitly recommended against it. I recommend pointing the reader to the poetry installation docs and changing the terminal directions to simply be:

$ cd relsad
$ poetry install

[ ] Consider using sphinx-copybutton so that tutorial code blocks can be copied with a single click.
[ ] (Not optional) - The tutorial has a bad import of CustomDiscreteParameters, which does not seem to exist in the current version of relsad:

from relsad.StatDist import (
    StatDist,
    StatDistType,
    NormalParameters,
    CustomDiscreteParameters,
)

result:
ImportError: cannot import name 'CustomDiscreteParameters' from 'relsad.StatDist' ...

[ ] Related to the import error in the tutorial (and more errors below...), I strongly recommend configuring your test suite to run all documentation examples. This way, you'll know immediately if an update broke an example in the documentation. You can use the --doctest-glob argument to pytest (with an appropriate pattern, e.g. *.rst). You'll need to tell pytest where your documentation files live, too, perhaps via the testpaths configuration.

[ ] Consider wrapping comments in the tutorial onto new lines. At present, you have to use a scroll 2-3x the width of the code block to read the comment, as pictured below. I recommended following PEP-8's suggestion of a 72 character limit for comments.

[ ] (Not optional): Tutorial has bad constructor call for creating a Line, specifically, L6: TypeError: Line.__init__() got an unexpected keyword argument 'is_backup'

[ ] (Not optional): The image in the docs for "Visualize topology" does not match the output when going through the tutorial. I copy + pasted all code directly from the tutorial, and only modified what was necessary to get by the errors listed above. I get an output that looks like the following:

Perhaps L3 is supposed to go from B2 to B4 instead of from B3 to B4 when the lines are created?

[ ] (Not optional): Creating the generation unit in the tutorial fails:

# A generation unit:

P1 = Production(
    name="P1",
    bus=B3,
    )

# A battery:

B1 = Battery(
    name="B1",
    bus=B6,
    )

output:
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
Cell In [16], line 3
      1 # A generation unit:
----> 3 P1 = Production(
      4     name="P1",
      5     bus=B3,
      6     )
      8 # A battery:
     10 B1 = Battery(
     11     name="B1",
     12     bus=B6,
     13     )

File ~/PycharmProjects/relsad-joss/venv/lib/python3.10/site-packages/relsad/network/components/Production.py:85, in Production.__init__(self, name, bus, pmax, qmax)
     83     raise Exception("Production unit must be connected to a Bus")
     84 if bus.parent_network is not None:
---> 85     raise Exception(
     86         "Production unit must be created before the bus is connected to a network"
     87     )
     88 if pmax < 0:
     89     raise Exception(
     90         "The maximum active power that can be produced must be positive"
     91     )

Exception: Production unit must be created before the bus is connected to a network

I was able to work around this by creating the Production and Battery instances before creating the Distribution instance. Not sure why this is necessary.

[ ] (Not optional): Creating the EVPark fails:

EVPark(
    name="EV1",
    bus=B5,
    num_ev=5,
    v2g_flag=True,
)

output:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In [18], line 1
----> 1 EVPark(
      2     name="EV1",
      3     bus=B5,
      4     num_ev=5,
      5     v2g_flag=True,
      6 )

TypeError: EVPark.__init__() got an unexpected keyword argument 'num_ev'

I'm going to submit this issue for now so that I can move to filing a different one, and then I'll update this issue as I continue through the documentation.

I'm going to pause my review for now until the errors/issues in the tutorial have been worked out. As mentioned above, I recommend running all examples as part of the testing suite using pytest's doctest capabilities: https://docs.pytest.org/en/7.1.x/how-to/doctest.html

@stinefm - I'm going to go ahead and close this ticket out since you've addressed 11/12 suggestions. Things are looking much improved, nice work!
I will go ahead and file a separate issue for using pytest for the documentation. That is not required for the JOSS review, but I think will save you, other maintainers, and users a lot of time in the long run by being 100% certain that the tutorials work when code is changed.


Custom types for @JsonMember

Hello, John.
I can't understand how can I create jsonmember with the custom type.
For example, I have some User model like this:
@JsonObject
export class UserModel {
  @JsonMember
  public 'email': string;
  @JsonMember
  public 'login': string;
  @JsonMember
  public 'nickname': string;
}

Now I need to parse some JSON like this from the server:
{
  "managers": [
    {
      "email"<EMAIL_ADDRESS>      "login": "PeteTheManager",
      "nickname": "Pete"
    },
    {
      "email"<EMAIL_ADDRESS>      "login": "MikeTheManager",
      "nickname": "Mike"
    }
  ],
  "rating": {
    "1": {
      "email"<EMAIL_ADDRESS>      "login": "MikeTheManager",
      "nickname": "Mike"
    },
    "2": {
      "email"<EMAIL_ADDRESS>      "login": "PeteTheManager",
      "nickname": "Pete"
    }
  }
}

My model for this JSON is gonna be something like this:
@JsonObject
export class SomeUsersInfo {
  @JsonMember
  public 'managers': UserModel[];
  @JsonMember
  public 'rating': Map<string, UserModel>;
}

But, of course, it is not the correct syntax.
So, my questions are:

How can I create @JsonMember that will be an array of the, for example, UserModel type items?
How can I create @JsonMember that will be an object with the specific key type (for example, "string") and with the specific value type (for example, "UserModel")?

Maybe, you can add these answers into the documentation, I'm sure that I'm not the only one who's got these questions.

Hello, @WeekendMan
My apologies for the late reply, I didn't have much time to maintain TypedJSON recently. Serialization is completely revamped in 1.0 (available now under the v1-experimental folder), and I believe my reply in #65 should give you exactly what you need.


vaapi-fits auto detect render

With requiremet increase, we should enable different render device with ffmepg command

@uartie @FocusLuo how about your idea?
Or direct pass render from the top level(CI) or case collect level?

@uartie @FocusLuo how about your idea?
Or direct pass render from the top level(CI) or case collect level?

What is the use-case you are trying to address?  AFAIK, /dev/dri/renderD128 is always present which means this patch changes nothing... or is that no longer true?

What is the use-case you are trying to address?  AFAIK, /dev/dri/renderD128 is always present which means this patch changes nothing... or is that no longer true?

Only changing ffmpeg test path does not make sense.  Traditionally, we assume target gpu is always on D128 (in our case, Intel gpu)... and vaapi-fits can only test one device.  Also, afaik, D128 is always the first render device created by the kernel... so the code in this patchset to detect a render device will always return D128.  It is up to the DUT administrator to ensure the correct GPU is mapped to D128.  To formally allow the user to override the default render device used by vaapi-fits, gstreamer will need to support it too and vaapi-fits will need to expose a user option to set it.

Only changing ffmpeg test path does not make sense.  Traditionally, we assume target gpu is always on D128 (in our case, Intel gpu)... and vaapi-fits can only test one device.  Also, afaik, D128 is always the first render device created by the kernel... so the code in this patchset to detect a render device will always return D128.  It is up to the DUT administrator to ensure the correct GPU is mapped to D128.  To formally allow the user to override the default render device used by vaapi-fits, gstreamer will need to support it too and vaapi-fits will need to expose a user option to set it.


Autoformat documentation examples and update README

As mentioned in 1 the documentation example could use some autoformatting, and recent API changes have to be propagated into the README too.

I'm curious if we should just paste the full working example in README, that's much clearer IMO, or refernce. @katyo given your CI efforts you might like https://docs.rs/doc-comment/, a crate that (build)tests the documentation in arbitrary markdown files like README.md from build.rs. If we put a fully working example here we can also make sure that it stays in a compiling state :)

@MarijnS95, I'm on a way to adopt another approach in my crates. I simply used cargo-readme to generate READMEs from doc comment. In addition I added CI rules which helps update README when docs changed.
See the https://github.com/katyo/aubio-rs/pull/18 for example.
@Drakulix, I don't sure how such approach applicable here but looks like much simpler.


Verify test-backend doesn't produce extra output spam in CI

We occasionally introduce bugs where extra stdout output shows up in the test-backend output, which makes it harder to read our test output.  It'd be great to just add a quick check in tools/ci/backend for this type of issue (e.g. just redirect the output to a find via tee and then verify that output), so we can avoid merging new bugs of this form.

@timabbott can you please explain this issue a bit?

Sure, if you run test-backend, there are a few tests that end up printing some unnecessary spammy output to the console.  Often that can be a sign that something is wrong with the test, but in a few cases
Below are the main examples:
Running zerver.tests.test_upload.FileUploadTest.test_delete_old_unclaimed_attachments
2016-09-18 14:08:40,211 WARNING  dummy_2.txt does not exist. Its entry in the database will be removed.
Running zerver.tests.test_upload.FileUploadTest.test_download_non_existent_file
...
Running zerver.tests.test_email_mirror.TestDigestEmailMessages.test_receive_digest_email_messages
2016-09-18 14:08:27,938 INFO     Sending digest email for<EMAIL_ADDRESS>Running zerver.tests.test_email_mirror.TestMissedHuddleMessageEmailMessages.test_receive_missed_huddle_message_email_messages
2016-09-18 14:08:28,002 INFO     Successfully processed email from<EMAIL_ADDRESS>to cordelia@zulip.com,iago<EMAIL_ADDRESS>Running zerver.tests.test_email_mirror.TestMissedMessageAddressWithEmptyGateway.test_address_with_empty_gateway
2016-09-18 14:08:28,052 WARNING  EMAIL_GATEWAY_PATTERN is an empty string, using NOREPLY_EMAIL_ADDRESS in the 'from' field.
Running zerver.tests.test_email_mirror.TestMissedPersonalMessageEmailMessages.test_receive_missed_personal_message_email_messages
2016-09-18 14:08:28,106 INFO     Successfully processed email from<EMAIL_ADDRESS>to<EMAIL_ADDRESS>Running zerver.tests.test_email_mirror.TestReplyExtraction.test_reply_is_extracted_from_html
2016-09-18 14:08:28,283 INFO     Successfully processed email to Denmark (zulip.com)
Running zerver.tests.test_email_mirror.TestReplyExtraction.test_reply_is_extracted_from_plain
2016-09-18 14:08:28,326 INFO     Successfully processed email to Denmark (zulip.com)
Running zerver.tests.test_email_mirror.TestStreamEmailMessagesEmptyBody.test_receive_stream_email_messages_empty_body
Running zerver.tests.test_email_mirror.TestStreamEmailMessagesSuccess.test_receive_stream_email_messages_success
2016-09-18 14:08:28,386 INFO     Successfully processed email to Denmark (zulip.com)
Running zerver.tests.test_events.EventQueueTest.test_collapse_event
...
Running zerver.tests.test_management_commands.TestSendWebhookFixtureMessage.test_check_if_command_exits_when_fixture_path_does_not_exist
Fixture some/fake/path.json does not exist
Running zerver.tests.test_management_commands.TestSendWebhookFixtureMessage.test_check_if_command_exits_when_url_param_is_empty

The problem is that unexpected logging output appearing in the test output is often a sign that a bug has been introduced, and we'd like to catch those bugs automatically.
(There are a few types of output, like that generated by @skip or the "TOO SLOW" warnings, that we probably want to let be).
Ideally, we'd adjust those tests to not end up printing output, usually by changing the test code to capture the logging output and verify it (e.g. using mock.patch("logging.info") to mock the logging module).  And then we'd make some sort of change to the test runner to make sure new regressions of this form are not introduced.

@timabbott what should we do if we a spammy output while verification ? Should we raise some kind of error ?

Yes, that's the plan, though of course 95% of the work here is going to be clearing the existing spammy output.

@zulipbot claim

Working

@timabbott
I want to confirm if any of below line pattern is spam according to you ?
valid_line_patterns = [
    "^Running zerver",  # Example: Running zerver.tests.test_attachments.AttachmentsTests.test_delete_unauthenticated
    "^Running analytics",  # Example: Running analytics.tests.test_counts.TestActiveUsersAudit.test_empty_realm_or_user_with_no_relevant_activity
    "^\*\* Test is TOO slow: ",  # Example: ** Test is TOO slow: analytics.tests.test_counts.TestRealmActiveHumans.test_end_to_end (0.581 s)
    "^----------------------------------------------------------------------",  # Example: ----------------------------------------------------------------------
    "^INFO: URL coverage report is in",  # Example: INFO: URL coverage report is in var/url_coverage.txt
    "^INFO: Try running:",  # Example: INFO: Try running: ./tools/create-test-api-docs
    "^-- Running tests in",  # Example: -- Running tests in parallel mode with 4 processes
    "^OK",  # Example: OK
    "^Ran [0-9]+ tests in",  # Example: Ran 2139 tests in 115.659s
    "^Testing management command:",  # Testing management command: sync_api_key
    "^Running Slack Message Conversion test:",  # Running Slack Message Conversion test: bold_and_strike_conversion
    "^Destroying test database for alias ",  # Destroying test database for alias 'default'...
    "^Running corporate"
]

https://gist.github.com/thedeveloperr/cdc55a319d1782d12e5442c2b6c0125d/revisions
Here is the current potential spam I found. Please take a look at it once and flag any lines which should not be considered spam.

The Running lines come from test-backend itself and I don't consider to be spam.  Nor the OK, Ran, etc that test-backend itself outputs.  The spam is other output printed while running individual tests.

Using existing clone for alias 'default'... is from the test system as is "Skipping" but the rest on that looks like spam to me.

@zulipbot claim Still working on it


made it visually attractive

Appreciate your time to open a PR with this suggestion. This web page launches our GitHub pages site using Docsify. Closing this PR as these changes remove the specifications and title for our site.


fix: try adding res.cloudinary.com to the content security policy header

Closes #716
Description

Current Tasks

[ ] (task 1)
[ ] (task 2)
[ ] (task 3)

This also seems working, let's try to use this approach first and see how it impacts our production.
https://deploy-preview-719--wargabantuwarga.netlify.app/


feat: add Satriwithaya School

@iNebulap Thank you for your patience while waiting for a review and processing your request. Pull request merged.


[Translation] macOS1015_NET60_ProjectRef_Release failing in nightly runs

Translation test runs are failing with:

Error message
[error]The job running on agent Azure Pipelines 7 ran longer than the maximum time of 60 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134

For more details check here:

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1476423&view=results

@jsquire for notification.

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Azure.Core:0.3174655,Cognitive - Translator:0.0837021,KeyVault:0.07468295'


How do I use jest.mock ?

Because of some strange jest behavior w/ material-ui, I have to mock a component to do a snapshot test:
jest.mock('material-ui/toggle')
How can I do this while using storyshot?

storyshots does not have jest's mocking abilities. But it might work without the mock. Did you get an error while running storyshots? Could you show the error if so?

sure, i posted the issue at the Material-UI repo w/ the error output
after some research, it looks like there's a bug in React that prevents snapshot testing of components that rely on refs. Since MUI's toggle uses a ref, it breaks the snapshot generation.
when i make a regular jest test, i can call jest.mock('material-ui/toggle') in-line within the test file, and it bypasses the ref. so if i could do that in storyshots, it would be great.
otherwise, apparently react 15.4.0 has some fixes for the underlying problem, so mocks won't be necessary after that.

here's my story:
import React from 'react'
import { action, storiesOf } from '@kadira/storybook';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import { customMuiTheme } from '../src/lib/styles/customMUITheme.js'
import injectTapEventPlugin from 'react-tap-event-plugin'
import ToggledCheckboxGrid from '../src/components/ToggledCheckboxGrid'
import Immutable from 'immutable'
const laundry = Immutable.Map({
  "In-Unit": false,
  "In-Building": false
})

storiesOf('Toggleable Checkbox Grid', module)
  .addDecorator(story => (
    <MuiThemeProvider muiTheme={getMuiTheme(customMuiTheme) }>
      {story() }
    </MuiThemeProvider>
  ))
  .add('default mode', _ => (
    <div style={{ padding: '30px', width: '200px', }}>
      <ToggledCheckboxGrid
        fieldName="Laundry"
        fieldValues={laundry}
        handleCheckClick={action('Check clicked')}
        />
    </div>
  ))

here's the error output for the storyshot
npm run test-storybook

><EMAIL_ADDRESS>test-storybook /home/bmp/code/wayhome/homeseeker-fresh
> better-npm-run test-storybook

running better-npm-run in /home/bmp/code/wayhome/homeseeker-fresh
Executing script: test-storybook

to be executed: storyshots
Toggleable Checkbox Grid
props Map { "In-Unit": false, "In-Building": false, "Hookups Avail.": false, "None": false, "Some": true, "Stacked": false, "These are fake": true }

✗ default mode: ERROR
  TypeError: Cannot read property 'checked' of null
      at EnhancedSwitch.componentDidMount (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/material-ui/internal/EnhancedSwitch.js:205:50)
      at /home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/ReactCompositeComponent.js:264:25
      at measureLifeCyclePerf (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/ReactCompositeComponent.js:74:12)
      at /home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/ReactCompositeComponent.js:263:11
      at CallbackQueue._assign.notifyAll (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/CallbackQueue.js:67:22)
      at ReactTestReconcileTransaction.ON_DOM_READY_QUEUEING.close (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/ReactTestReconcileTransaction.j
s:37:26)
      at ReactTestReconcileTransaction.Mixin.closeAll (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/Transaction.js:204:25)
      at ReactTestReconcileTransaction.Mixin.perform (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/Transaction.js:151:16)
      at batchedMountComponentIntoNode (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/ReactTestMount.js:63:27)
      at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/home/bmp/code/wayhome/homeseeker-fresh/node_modules/react/lib/Transaction.js:138:20)

Test Summary
> 1 stories tested.
> 1 tests errored.

npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/home/bmp/.nvm/versions/node/v6.3.1/bin/node" "/home/bmp/.nvm/versions/node/v6.3.1/bin/npm" "run" "test-storybook"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>test-storybook: `better-npm-run test-storybook`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>test-storybook script 'better-npm-run test-storybook'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-redux-starter-kit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     better-npm-run test-storybook
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-redux-starter-kit
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-redux-starter-kit
npm ERR! There is likely additional logging output above.

Thanks for the detailed information!
I understand the problem now and have reproduced it myself. I can implement a permanent solution once react 15.4 is out with facebook/react#7649. Unfortunately, until then I am not sure what I can do about this :(
It will be better to wait for 15.4 and do a good solution than doing something hacky right now. But I will look a bit into this.

Is there progress on this? 15.4 is out now.

I believe this has been fixed in v3.0, because it now uses Jest for snapshotting.

Yep!


'TiffPageType' is not a constant, variable or function identifier

When executing 'python setup.py build_ext --inplace'
I am using Python 3.5.2 on Ubuntu 16.04
Error compiling Cython file:
------------------------------------------------------------
...
      page_map[TiffPageType.InverseDepth] = <Mat*>mat1w_from_array(inv_depth)
    elif page_type == MultiImagePageType.InverseDepth:
      # Here we use MultiImagePageType.Depth because the underlying cpp code
      # is already expecting inverse depth for this key, while the input to
      # this function does not
      page_map[TiffPageType.InverseDepth] = <Mat*>mat1w_from_array(img_np)
                          ^
------------------------------------------------------------

sumo/images/rgbd_tiff.pyx:146:27: 'TiffPageType' is not a constant, variable or function identifier

Looking into it. To me it's a cython compiler bug. Do you know the cython version you are using?

@dhuber23b Could this be the issue? https://github.com/cython/cython/issues/1529

I am not seeing this problem with Cython version 0.27.3.  Please tell us your version of Cython.

I set up the virtual environment as guided, and I find my Cython version is 0.23.4. I will try to upgrade it to 0.27.3

Now everything is fine and all unit tests passed. I'll close the issue.


Rocky Linux - Incorrect active support dates

Link to product page on endoflife.date
https://endoflife.date/rocky-linux
Details of incorrect and correct details you have found
Rocky Linux 8 is accurate in its active support and end of life dates. However, Rocky Linux 9 is not correct as it does not match our upstream Red Hat Enterprise Linux "full support" date. As a result, some of our users have erroneously stated that Rocky Linux 9 support ends in two years.
endoflife.date: 2025-05-31
Product documentation: 2027-05-31
What is the source website for the product and for its version information?
See our official wiki: https://wiki.rockylinux.org/rocky/version/#current-supported-releases
This information is closely related to Red Hat Enterprise Linux with the exception of ELS.
Additional context
N/A

#3126, preview is at https://deploy-preview-3126--endoflife-date.netlify.app/rocky-linux.
Feedback welcome

@nazunalika, thanks for this feedback and the official doc listing those dates. The issue should be fixed now.


[feaLib] Fix typo in testdata/spec9e.*

Feature File Spec itself was fixed in https://github.com/adobe-type-tools/afdko/pull/110

Thank you!


Test WidgetTester handling test pointers

This PR adds tests to the following behaviors, which have existed without tests:

When tapping during live testing, a message is printed with widgets that contain the tap location.
When tapping during live testing, a mark is displayed on screen on the tap location.

API change to TestWidgetsFlutterBinding
TestWidgetsFlutterBinding.handlePointerEvent no longer shadows GestureBinding.handlePointerEvent with a different signature. Its source-specified version is renamed to handlePointerEventForSource. This allows subclasses to redefine only how pointer events are handled (for each source) without having to change the source storing process.
New feature of AnimationSheetBuilder
AnimationSheetBuilder now supports a new option at construction: allLayers. The current behavior is allLayers: false. If allLayers is true, the recorder records the resulting image composited by the entire tree, clipped by the region of this recorder. This is useful when it is impossible for the recorder to include the target image in its subtree, which is needed for the test of this PR.
New way to use AnimationSheetBuilder and deprecation
AnimationSheetBuilder's output step used to require two calls: display and surfaceSize. This PR introduced a new way: collate.
The collate function directly puts the images together and asynchronously returns an image. It requires less boilerplate, and outputs smaller images (1/3 the width & height) without any compromise to quality.
The current APIs (display and surfaceSize) are thus deprecated. A migration guide is provided (although these APIs are probably not used by customer tests or g3): https://github.com/flutter/website/pull/5862.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Gold has detected about 1 untriaged digest(s) on patchset 9.
View them at https://flutter-gold.skia.org/cl/github/83337

Gold has detected about 3 new digest(s) on patchset 11.
View them at https://flutter-gold.skia.org/cl/github/83337

Gold has detected about 3 new digest(s) on patchset 12.
View them at https://flutter-gold.skia.org/cl/github/83337

Gold has detected about 3 new digest(s) on patchset 14.
View them at https://flutter-gold.skia.org/cl/github/83337

Gold has detected about 3 new digest(s) on patchset 15.
View them at https://flutter-gold.skia.org/cl/github/83337

Gold has detected about 3 new digest(s) on patchset 16.
View them at https://flutter-gold.skia.org/cl/github/83337

Gold has detected about 5 new digest(s) on patchset 18.
View them at https://flutter-gold.skia.org/cl/github/83337

Gold has detected about 6 new digest(s) on patchset 19.
View them at https://flutter-gold.skia.org/cl/github/83337


Problem when using timeDistributed with Convolution1D layer

I'm going to use TimeDistributed layer wrapper to combine CNN with LSTM layers. I just followed the link here: https://github.com/jamesmf/mnistCRNN, but using Convolution1D instead of Convolution2D layers. But I got an error when adding the TimeDistributed wrapped Convolution layers on the Embedding layers (shown below). Could you help me to check what is wrong here? Thanks!
model_aa = Sequential() model_aa.add(Embedding(input_dim=1000, output_dim=100, input_length=maxlen, dropout=0.2)) model_aa.add(TimeDistributed(Convolution1D(nb_filter=20, filter_length=5, border_mode='valid', activation='relu', subsample_length=1, init='glorot_normal'))) model_aa.add(TimeDistributed(MaxPooling1D(pool_length=3, border_mode='valid'))) model_aa.add(TimeDistributed(Convolution1D(nb_filter=10, filter_length=5, border_mode='valid', activation='relu', subsample_length=1, init='glorot_normal'))) model_aa.add(TimeDistributed(MaxPooling1D(pool_length=3, border_mode='valid'))) model_aa.add(TimeDistributed(Convolution1D(nb_filter=10, filter_length=3, border_mode='valid', activation='relu', subsample_length=1, init='glorot_normal'))) model_aa.add(TimeDistributed(MaxPooling1D(pool_length=3, border_mode='valid'))) model_aa.add(TimeDistributed(Convolution1D(nb_filter=10, filter_length=3, border_mode='valid', activation='relu', subsample_length=1, init='glorot_normal'))) model_aa.add(Bidirectional(LSTM(15, dropout_W=0.2, dropout_U=0.2, init='glorot_normal')))

IndexError                                Traceback (most recent call last)
 in ()
1 model_aa = Sequential()
2 model_aa.add(Embedding(input_dim=1000, output_dim=100, input_length=maxlen, dropout=0.2))
----> 3 model_aa.add(TimeDistributed(Convolution1D(nb_filter=20, filter_length=5, border_mode='valid', activation='relu', subsample_length=1, init='glorot_normal')))
4 model_aa.add(TimeDistributed(MaxPooling1D(pool_length=3, border_mode='valid')))
5 model_aa.add(TimeDistributed(Convolution1D(nb_filter=10, filter_length=5, border_mode='valid', activation='relu', subsample_length=1, init='glorot_normal')))

/home/wjin/anaconda/envs/wjin/lib/python2.7/site-packages/keras/models.pyc
in add(self, layer)
310                  output_shapes=[self.outputs[0]._keras_shape])
311         else:
--> 312             output_tensor = layer(self.outputs[0])
313             if type(output_tensor) is list:
314                 raise Exception('All layers in a Sequential model '

/home/wjin/anaconda/envs/wjin/lib/python2.7/site-packages/keras/engine/topology.pyc
in call(self, x, mask)
485                                     'layer.build(batch_input_shape)')
486             if len(input_shapes) == 1:
--> 487                 self.build(input_shapes[0])
488             else:
489                 self.build(input_shapes)

/home/wjin/anaconda/envs/wjin/lib/python2.7/site-packages/keras/layers/wrappers.pyc in build(self, input_shape)
96         child_input_shape = (input_shape[0],) + input_shape[2:]
97         if not self.layer.built:
---> 98             self.layer.build(child_input_shape)
99             self.layer.built = True
100         super(TimeDistributed, self).build()

/home/wjin/anaconda/envs/wjin/lib/python2.7/site-packages/keras/layers/convolutional.pyc in build(self, input_shape)
113
114     def build(self, input_shape):
--> 115         input_dim = input_shape[2]
116         self.W_shape = (self.filter_length, 1, input_dim, self.nb_filter)
117         self.W = self.init(self.W_shape, name='{}_W'.format(self.name))

IndexError: tuple index out of range

Please make sure that the boxes below are checked before you submit your issue. Thank you!

[x] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

I have the same issue. Did you solve it @Wenhao-Jin?

I have the same problem, even if I try to do it like in the example, with Conv2D and shape (sequence_len,1). Always getting list index out of range. Using tf backend.

Same here

Ditto

same...

same

Nobody is trying to answer this question. So sad.

same

In my case I solved that via reshaping the input dimension. As described here in the keras api, the input dimension of the 1D-Conv layer must be (batch_size, steps, input_dim). To be able to wrap it with the timeDistributed Layer, one needs to add a dimension, cause the tensor of the combination of timeDistributed(Conv1D(...)) needs to have the shape (batch_size,sequence,steps,input_dim). Hence one needs to reshape the tensor from 3D to 4D.
Example:
My input tensor (batch-size, steps, input_dim) has values (?, 12, 1000):

1000 features
12 observations per feature = 12 timepoints

The goals is to apply a 1D convolution over the 12 timepoints with weights shared between features (hence, time-distributed).
Approach:
Reshape the (?, 12,1000) tensor to (?, 1000, 12, 1) tensor.
After applying a 1D-Conv with 3 Kernels of width 5 the output tensor has shape (?, 1000, 8, 3).
More precisely given a np.array X with shape  e. g. (1189, 12, 1000)  one retrives a tensor of shape (1189,1000,12,1) with X.reshape((-1, 1000, 12, 1))

Me too.

Have you tried changing 'valid' to 'same'?


Cannot find config.py

In "Modify the constants in initialize, restapp/config.py, and webapp/config.py to reflect the required PostgreSQL connection information.", what do you actually mean? Where are those config.py files?

Ah, looks like I had either planned to refactor the constants out of webapp/webserv and restapp/restserv into separate config.py files, or thought better of it and decided to just let people edit those files directly. For now, just edit the files directly; I'll either update the docs, or separate out the config.py files accordingly.


flutter iOS app crashes when trying to upload image using camera inside Webview

I am creating a flutter app using webview_flutter plugin, everything is working fine. In the website, there is a form in which users can upload images(that asks to choose weather to use Camera or Album to choose image). When I tap on Camera the app crashes.

Hi @Ishtiak-20, please provide a completed and minimal reproducible code sample so that we may verify this. Also, please provide the output of flutter doctor -v as well.
Thank you!


Shadowing and --move-declarations wrong scope

Input:
uniform int A;
uniform int B;
out vec4 O;

void main() {
  O = vec4(0);
  float f = 1;
  if (B < 2) f = A;
  {
    float n = A + 1;
    if (B < 1) O.y=1;
    float f = f * n + n * n;
    O.x=f;
  }
}

With no options, correct output:
uniform int v,Q;
out vec4 i;
void main()
{
  i=vec4(0);
  float m=1;
  if(Q<2)
    m=v;
  {
    float f=v+1;
    if(Q<1)
      i.y=1;
    f=m*f+f*f;
    i.x=f;
  }
}

With --move-declarations:
uniform int v,Q;
out vec4 i;
void main()
{
  i=vec4(0);
  float m=1;
  if(Q<2)
    m=v;
  {
    float x=v+1,f;
    if(Q<1)
      i.y=1;
    f=f*x+x*x;  // here
    i.x=f;
  }
}

Now f=f*x+x*x is referencing the uninitialized variable f instead of resolving correctly to m.
Some cases of scope shadowing with visibility to context scope in the initializer expression were already resolved in #153.

Yes, what --move-declarations does is invalid in the presence of shadowing... Shadowing should be detected and prevent from moving the declarations.


Insert table compose_record warning 'values' doesn't have a default value

Hi, I tried to run corteza server based on TiDB, and meet a warning with 'values' doesn't have a default value
The SQL is below:
INSERT INTO compose_record (created_at,created_by,deleted_at,deleted_by,id,module_id,owned_by,rel_namespace,updated_at,updated_by) VALUES (?,?,?,?,?,?,?,?,?,?) [arguments: (\"2022-05-25 22:00:00\",<PHONE_NUMBER>24455938, NULL, 0,<PHONE_NUMBER>54990850,<PHONE_NUMBER>11000834,<PHONE_NUMBER>24455938,<PHONE_NUMBER>46011138, NULL, 0)

Corteza doesn't assign a value to the values field, but as we can see from the table, the values must be NOT NULL.
CREATE TABLE `compose_record` (
  `id` bigint(20) unsigned NOT NULL,
  `rel_namespace` bigint(20) unsigned NOT NULL,
  `module_id` bigint(20) unsigned NOT NULL,
  `values` json NOT NULL,
  `owned_by` bigint(20) unsigned NOT NULL,
  ......
)

I know that Corteza uses ASNI SQL mode, which can treat this as a warning, but it is may better to insert a default value or just create the table without NOT NULL.

What version are you using?
Before 2022.9 (not released yet) there is no values column in the compose_record table.
If you're running 2022.9 I'd suggest you (until 2022.9 is more stable) switch to some 2022.3 version.

I used 2022.9, I will use the stable version later.


Update tutorial-two-dotnet.md

@burryfun Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@burryfun Thank you for signing the Contributor License Agreement!

Thank you! This was an automated find-and-replace during the migration to Docusaurus 👍


Decider

Summary
This pr creates these classes:

DeciderContextFactory   (for baseplate setup)
DeciderContext                (contains all fields used for bucketing, targeting, & exposure, e.g. "user_id", "country_code", etc)
Decider                           (contains new API: get_variant())

as well as the baseplate setup convenience function:

decider_client_from_config()

Todo:

DeciderClient                   (convenience class for baseplate setup)
implement get_variant_without_expose(), expose() on Decider

Expose logic has been implemented but commented out because Rust Decider lib needs to return a vector of events containing all of these fields:
“experiment_id:experiment_name:experiment_version:variant_name:bucket_val:start_ts:stop_ts:owner:event_type"

for the exposure event (currently, the SDK is not json.parse()ing the experiment cfg json and deferring that to Rust Decider lib, so Rust has to return these fields).
Testing
Unit tests for:

get_variant()  happy path
get_variant() returns None if the experiment's name is not in the config
get_variant() returns None if the json config has an experiment's id as a str instead of an int
get_variant() returns None if missing "experiment" key in json config

Also some basic unit test coverage of:

decider_client_from_config() setup
that DeciderContextFactory.make_object_for_context() correctly populates DeciderContext ivar  in Decider instance

Missing tests/todos:

DeciderClient
get_variant_without_expose()
expose()

CI will fail until we actually publish decider-py package to pypi, not just test.pypi.org.
@mattknox should we do this today so we can get tests running here?

you can run pytest locally by installing decider-py package from test.pypi.org:
pip install -i https://test.pypi.org/simple/ decider-py==0.0.3
and then running the new test via:
python -m pytest tests/decider_tests.py
or make test for the full test suite.

nice! You should probably have a BP.py expert like Andrew Boyle or similar look at this too.

Hi @pacejackson!
@mattknox suggested I get run this change by your since it's intended to be pulled into BP.py
More details from the design doc here.


Fix BigInt#% for unsigned integers

Fixes #12770

That's uncritical because unsigned types won't reach this def (there's a //(other : Int::Unsigned) overload).

But there is indeed a common pattern of this form:
if other < 0
  (-self).unsafe_op(-other)
else
  unsafe_op(other)
end

It would be more concise to express this as something like (other.sign * self).unsafe_op(other.abs).
Performance should probably be similar in release mode.


Improve iOS 10.3 review dialog support + documentation

Hello,
This is a fork of https://github.com/UrbanApps/Armchair/pull/102 + I added the requested documentation.
I went ahead and did that because it only missed the documentation, and I think we can all benefit from this nice change.
@coneybeare let me know if I should change anything more.
Thanks

Alright, looks good, thanks!

Just checked and you don't compile for Mac! please fix so that the Mac Example App compiles and works. Remember that SKStoreReviewController and store kit reviewing is not available for Mac, so all that logic needs to be contained in a compile-time #if os(iOS) block.


Unrecognized command-line option ‘-m32’ when compiling to AArch32 target

Compling a WAMR application to AArch32 (using the latest official ARM gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf toolchain, or any previous versions thereof) results in the following error message:
arm-none-linux-gnueabihf-gcc: error: unrecognized command-line option ‘-m32’; did you mean ‘-mbe32’?

These are the offending lines: https://github.com/bytecodealliance/wasm-micro-runtime/blob/c8fe1004aab482c8e5c2061a45079540e6ff5d08/build-scripts/config_common.cmake#L64-L66

I just created a pull request that resolves this issue for us.

Thanks for merging!


7/30 Publish

Docs Build status updates of commit 6e2bb8a:
:warning: Validation status: warnings

File
Status
Preview URL
Details

rd/index.yml
:warning:Warning

Details

rd/map.yml
:warning:Warning

Details

rd/christian-waha.yml
:white_check_mark:Succeeded

rd/media/profiles/christian-waha.jpg
:white_check_mark:Succeeded

rd/toc.yml
:white_check_mark:Succeeded

rd/index.yml

Line 14, Column 8: [Warning-file-not-found] Invalid file link: './map'.
Line 16, Column 8: [Warning-file-not-found] Invalid file link: './about'.
Line 18, Column 8: [Warning-file-not-found] Invalid file link: './CodeOfConduct'.

rd/map.yml

Line 15, Column 8: [Warning-file-not-found] Invalid file link: './map'.
Line 17, Column 8: [Warning-file-not-found] Invalid file link: './about'.
Line 19, Column 8: [Warning-file-not-found] Invalid file link: './CodeOfConduct'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


[$500] IOU - Green dot in 1:1 DM in LHN does not disappear after paying the IOU offline

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Navigate to staging.new.expensify.com
[User B] Request money from User A.
[User A] Go offline.
[User A] Pay the IOU requested by User B.
[User A] Go to LHN.

Expected Result:
The green dot in 1:1 DM in LHN will disappear after paying the IOU.
Actual Result:
The green dot in 1:1 DM in LHN does not disappear after paying the IOU offline. It only disappears after returning online.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/93399543/32e76d49-418f-4d4c-a3b2-fc8628d18704

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01310266fc6c713472
Upwork Job ID:<PHONE_NUMBER>023154176
Last Price Increase: 2023-11-06

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Green dot in 1:1 DM in LHN does not disappear after paying the IOU offline
What is the root cause of that problem?
https://github.com/Expensify/App/blob/bc9cb8f8ca149c1f90dd09de9f19ae97bcaf07f0/src/libs/actions/IOU.js#L2445
We don't reset hasOutstandingChildRequest to false in optimisticdata
What changes do you think we should make in order to solve the problem?
We need to add hasOutstandingChildRequest to false in optimisticdata

What alternative solutions did you explore? (Optional)

@DylanDylann that sounds good. Are you able to raise a PR asap?

Oke I can raise now

How's it going @DylanDylann?

@puneetlath I am completing screenshot test

Ah yeah, sorry for any confusion. I'm moving a little quicker here since this is a deploy blocker.

@puneetlath @cubuspl42 The PR is ready for review https://github.com/Expensify/App/pull/30918

All paid. Thanks everyone!


Devcenter dataplane SDK v2023-04-01, integration tests, and samples

Description

azure-developer-devcenter

This pull request adds regenerated code for the stable version of the API that we are preparing to release as the general availability (GA) version. Along with the regenerated code, the PR includes integration tests, related session records, and samples.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

DevBox

[x] get_pool
[x] list_pools
[x] get_dev_box
[x] get_remote_connection
[x] get_action
[x] list_actions
[x] skip_action
[x] delay_action
[x] delay_all_actions
[x] get_schedule
[x] list_schedules
[x] list_dev_boxes
[x] list_all_dev_boxes
[x] list_all_dev_boxes_by_user
[x] begin_create_dev_box
[x] begin_delete_dev_box
[x] begin_start_dev_box
[x] begin_stop_dev_box
[x] begin_restart_dev_box

DevCenter

[x] get_project
[x] list_projects

Environments

[x] begin_delete_environment
[x] begin_create_or_update_environment
[x] list_environment_types
[x] list_catalogs
[x] list_environments
[x] list_all_environments
[x] get_environment_definition
[x] list_environment_definitions
[x]  list_environment_definitions_by_catalog
[x] get_catalog
[x] get_environment

Checklists

[x] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[x] Added a changelog (if necessary)

Pipeline runs:
https://dev.azure.com/azure-sdk/internal/_build?definitionId=5089&_a=summary

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-developer-devcenter


Browse categories should be able to have facets display

This better enables things like sub-collection pages.

Relevant previous work: https://github.com/sul-dlss/exhibits/issues/772

See also: https://github.com/projectblacklight/spotlight/pull/1888

@kelea99 Is this still a request? I'm hearing more and more that people are less interested in sub-collection pages than we expected.

this actually was a request just last week, when I was with Fernando.  There is definitely a work around (I can just train people to use the saved search feature versus the browse feature, if they want the facets viewable), so I don't see it as a high priority.

The workaround for this can be seen at https://dpul.princeton.edu/msstreasures. These look liked browse categories but they're actually links to other collections.
An example of some browse categories that don't have facets, but where we would like them: https://dpul.princeton.edu/alchemy/browse

For this work cycle this is specced for research into if it's possible and how much work it would take to implement.


On IFS browser, allow me to manually switch to a directory

Let's say I want to quickly nav to a directory and download a files or do something with is.  A manual cd option would be nice.
This is more of a nice-to-have.

In 0.1.3 you will be able to F1 -> Change Directory
Or there is a little button to do the same thing


Avoid bringing all resources into caller's memory when calling status.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #453

PR #455   👈
PR #454
PR #451

This stack of pull requests is managed by Graphite.

Merge activity

Feb 12, 4:55 PM EST: @rohinb2 started a stack merge that includes this pull request via Graphite.


Add Twilio Extension

Is there a plan to implement Twilio like before? I'd be happy to help here.

Currently this is not planned. We will open a new issue to track the work if we decides to support this in the future.


Get different results from the same image

When I used the code below, I got different results for the same image as the attached images.
import requests

from PIL import Image

import gem
import torch

@torch.no_grad()
def main() -> None:
    model_name = "ViT-L/14-336"
    pretrained = "openai"
    device = "cuda" if torch.cuda.is_available() else "cpu"

    model = gem.create_gem_model(
        model_name=model_name, pretrained=pretrained, device=device
    )
    preprocess = gem.get_gem_img_transform()

    texts = [
        "a photo of cat",
    ]
    url = "http://images.cocodataset.org/val2017/000000039769.jpg"
    while True:
        images_pil = Image.open(requests.get(url, stream=True).raw)
        img_tensor = preprocess(images_pil).unsqueeze(0).to(device)

        logits = model.forward(img_tensor, texts)
        gem.visualize(img_tensor[0], texts, logits[0])

if __name__ == "__main__":
    main()

Here is the package list of my environment.
gem-torch                1.0.1
huggingface-hub          0.22.2
numpy                    1.26.4
nvidia-cublas-cu12       <IP_ADDRESS>
nvidia-cuda-cupti-cu12   12.1.105
nvidia-cuda-nvrtc-cu12   12.1.105
nvidia-cuda-runtime-cu12 12.1.105
nvidia-cudnn-cu12        <IP_ADDRESS>
nvidia-cufft-cu12        <IP_ADDRESS>
nvidia-curand-cu12       <IP_ADDRESS>
nvidia-cusolver-cu12     <IP_ADDRESS>
nvidia-cusparse-cu12     <IP_ADDRESS>
nvidia-nccl-cu12         2.19.3
nvidia-nvjitlink-cu12    12.4.127
nvidia-nvtx-cu12         12.1.105
open-clip-torch          2.24.0
opencv-python            <IP_ADDRESS>
pillow                   10.3.0
torch                    2.2.2
torchvision              0.17.2
tqdm                     4.66.2

Hi,  I experienced a similar issue:
I tried with the author's provided Colab Notebook and on my GPU (A100) torch: 2.0.0+cu117 | open_clip: 2.26.1, both didn't give me the expected results.
Later, I  tried with other settings (3090Ti)torch: 2.0.1+cu117 | open_clip: 2.24.0 , and it works normally.
Not sure what is the issue. Any comments are welcome!

Hi, Thanks for the feedback!
I haven't experienced similar issues, I'll try to replicate your results and get back to you.
One guess, though, is that the open_clip library may have introduced some changes that broke compatibility with the gem's wrapper.
I'll look into that!


added two functionalities to ex5 (can be found in Ex6)

running times are printed (corresponds to ex6)
user is now able to choose between my own implementation of dijkstra and the one from boost.
see readme.md in Ex6 for more information

make does not work; I would say you have to specify std=c++14 or 11, since you are using >> within templates and also lambdas

aah I forgot about that... sorry, for me it was working fine. added and uploaded it. hope it works now.dRehfeldt<EMAIL_ADDRESS>hat am 29. Juni 2017 um 20:41 geschrieben:make does not work; I would say you have to specify std=c++14 or 11, since you are using >> within templates and also lambdas—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.