use numpy.vectorize if unable to sample function directly

PyChebFun is currently unable to fit to wrapped C functions. For instance, with the following simple C function compiled to a shared library and installed in the library path:
#include <math.h>
double myfunc(double t) { return sin(2 * M_PI * t) + cos(2 * M_PI * t); }

CTypes is working fine:
from ctypes import *
libtest = CDLL("libtest.so")
myfunc = libtest.myfunc
myfunc.argtypes = [c_double]
myfunc.restype = c_double
myfunc(0.1)
Out[5]: 1.3968022466674206

but when trying to fit it using PyChebFun:
from pychebfun import *
cheb = chebfun(myfunc)
---------------------------------------------------------------------------
ArgumentError                             Traceback (most recent call last)
<ipython-input-9-a8e137328361> in <module>
----> 1 cheb = chebfun(myfunc)

/usr/local/lib/python3.6/dist-packages/pychebfun/chebfun.py in
chebfun(f, domain, N, chebcoeff)
    334     # callable
    335     if hasattr(f, '__call__'):
--> 336         return Chebfun.from_function(f, domain, N)
    337
    338     # from here on, assume that f is None, or iterable

/usr/local/lib/python3.6/dist-packages/pychebfun/polyfun.py in
from_function(self, f, domain, N)
    129
    130         # Find out the right number of coefficients to keep
--> 131         coeffs = self.dichotomy(**args)
    132
    133         return self.from_coeff(coeffs, domain)

/usr/local/lib/python3.6/dist-packages/pychebfun/polyfun.py in
dichotomy(self, f, kmin, kmax, raise_no_convergence)
     94             N = pow(2, k)
     95
---> 96             sampled = self.sample_function(f, N)
     97             coeffs = self.polyfit(sampled)
     98

/usr/local/lib/python3.6/dist-packages/pychebfun/chebfun.py in
sample_function(self, f, N)
    157         """
    158         x = self.interpolation_points(N+1)
--> 159         return f(x)
    160
    161     @classmethod

/usr/local/lib/python3.6/dist-packages/pychebfun/polyfun.py in <lambda>(t)
    119         a,b = domain[0], domain[-1]
    120         map_ui_ab = lambda t: 0.5*(b-a)*t + 0.5*(a+b)
--> 121         args = {'f': lambda t: f(map_ui_ab(t))}
    122         if N is not None: # N is provided
    123             nextpow2 = int(np.log2(N))+1

ArgumentError: argument 1: <class 'TypeError'>: wrong type

It is unclear to me why the trace is indicating polyfun.py line 121 as the site of the problem, which actually is at chebfun.py line 159.
Anyhow, the problem is that f, which is a CTypes wrapper object to the C function is getting passed a numpy.array object and it doesn't know what to do with it.
The solution is to use numpy.vectorize on the wrapper object to produce a new object that is able to handle numpy.ndarray.
However, I have patched it not to always use vectorize because I learnt here that it has some issues, so I'm using it only if the regular method fails.

Thank you for this!


Progress rail stops in Chrome after a few minutes

There's a bug when an HTML5 browser uses multiple buffers.  The progress rail is only responding to the first buffer.
In Chrome in HTML5 mode, it creates multiple buffers for long files and when skipped forward, so the progress rail basically freezes.  (I'm testing with audio only)
Solution was to change this line (3136 in mediaelement-and-player.js):
percent = target.buffered.end(0) / target.duration;
to:
percent = target.buffered.end(target.buffered.length-1) / target.duration;
Not a perfect fix, as the progress rail doesn't show each individual buffer, but acceptable from a UI point of view.
Seb

@seb303 Closing this one since the fix was merged


[11.x] Add DeploymentFinish command

Issue
Currently, each 'service' has its own restart command:
php artisan reverb:restart
php artisan octane:reload
php artisan queue:restart
php artisan horizon:terminate
php artisan pulse:restart
Deploy scrips (either with Laravel Forge, something like Capistrano/Deployer can be somewhat easily updated, but easy to forget. Manual deployments (eg. git pull) make it even more easy to forget one of those, leading to weird behavior.
Proposal
I propose a php artisan deploy:finish (or deploy / restart) command to reload all those services at once. Each service should be responsible for registering itself to this reload command. This can be either:
Something similar is done with php artisan optimize although this one is not configurable. This makes it easy for deploy scripts to just add php artisan reload and not worry about specific services.
I currently named it deploy:finish just in case we would perhaps want to add a deploy:start command also.
Only queue is covered in this PR. Rest would go to their own repo.
(as discussed in https://github.com/laravel/framework/discussions/50900)

Additionally we could add output/status messages to the Event to let the user know which services have been restarted.

Want to draft this for a bit because we're working on things in areas related to this and want to see where we land first.

Wouldn't it be better to give it a name on what is does, e.g. services:restart?

Wouldn't it be better to give it a name on what is does, e.g. services:restart?

It is meant to be a simple event emitter (for third-party purposes)

Yeah it could also be just restart or something. Depends on which way you look at it. If you want to hook into it more based on Deployments, deploy:finish (and deploy:start) might be more useful (eg. if you want to hook into it). If it's just the services, php artisan restart could work.
But lets wait for Taylor first :)

Something similar could also be extended to the optimize and optimize:clear commands, as many 3rd party packages have similar requirements (spatie's morph-map-generator for example).
Hope that whatever lands can accommodate this as well!


json: cannot unmarshal string into Go struct field Address.qc_complete of type int

The example doesn't work.
sendRequestToURL: json.Decode return err = json: cannot unmarshal string into Go struct field Address.qc_complete of type int
I can run example after change type from int to interface {}
QualityCodeComplete interface{} json:"qc_complete"    // Код полноты
QualityCodeHouse    interface{} json:"qc_house"       // Код проверки дома
QualityCode         interface{} json:"qc"             // Код качества

Do not use empty golang interfaces. Golang is not php!
In any case, I didn't understand what exactly you could not do.
Requires sample code to repeat your error.

Do not use empty golang interfaces. Golang is not php!
You can see that in your code.
// QualityCodeGeo для clean вызовов он int для suggest в адресе банков он string поэтому в поле поставил interface{} чтобы работало и там и там)
QualityCodeGeo      interface{} json:"qc_geo"         // Код точности координат

In any case, I didn't understand what exactly you could not do.
Requires sample code to repeat your error.
Can you try run example code from "Usage"?
banks, err := daData.SuggestBanks(dadata.SuggestRequestParams{Query: "Кредитный", Count: 3})

If no one make a pull request before me, then I will post the fixes with version 3.
Thanks for helping us find bugs and improve code.

I changed int to interface {}, in the future custom data type will be made and json unmarshaller for it.


'simulate_walks' is adding one additional node to total walk length

Hi!
I am running Word2Vec on graphs generated from networkx and cam using PecanPy in python to simulate walks and then run word2vec. I am finding that during the simulate_walks function, the length of the walk is always 1 node + the total walk_length. Is there a reason for this behaviour or is this a bug?
The code that I am using is as follows:
nx.write_edgelist(graph, 'test_edgelist.edg', delimiter=' ', data=False)
g = node2vec.PreComp(p=0.7, q=1, workers=12, verbose=True)
g.read_edg('test_edgelist.edg',
           weighted=False, directed=False, delimiter=' ')

g.preprocess_transition_probs()
walks = g.simulate_walks(num_walks=200, walk_length=30)
print(len(walks[0]))
>>> 31

#train model (do this using gensim myself as need access to whole model)

from gensim.models import Word2Vec
model = Word2Vec(walks)

all of the walks are the walk_length + 1 - whatever number i specify and also if i run this on the karate example dataset.
Any idea what is happening here - is this behaviour expected?
I have also found that simulate_walks run without triggering g.preprocess_transition_probs(), again, is there an explanation for this behaviour?
many thanks!
many thanks!

Hi @amjass12. Yes, walk_length + 1 is the right length for the walk. The first entry in each random walk sequence is the "seed" node for that random walk, i.e., the walk starts from there. Another way to think about this is that these random walks are "node-sequences". So, the number of transitions in a sequence of length "k" is "k - 1".
In terms of preprocess_transition_probs, you don't have to manually call it as it will check if the preprocessing has been done internally and call it automatically if not.

Hi @RemyLau ,
Thank you very much for that clear explanation! all makes perfect sense!
A quick follow up: in this line:
from pecanpy import pecanpy as node2vec
nx.write_edgelist(graph, 'test_edgelist.edg', delimiter=' ', data=False)
g = node2vec.PreComp(p=0.7, q=1, workers=12, verbose=True)
g.read_edg('test_edgelist.edg',
           weighted=False, directed=False, delimiter=' ')

node2vec.PreComp (which is for small graphs) is followed by g.read_edg('etc')
is this line:
g.read_edg('test_edgelist.edg',
           weighted=False, directed=False, delimiter=' ')

exactly the same if I do:
g = node2vec.SparseOTF(p=0.7, q=1, workers=12, verbose=True)
and
g = node2vec.DenseOTF(p=0.7, q=1, workers=12, verbose=True)
or does read_edg need to be different in any other format for example after DenseOTF. I have graphs of various sizes including extremely dense graphs.
Also, does the % of edges advice, correspond to % of total number of nodes?
for example, the advice is use DenseOTF if there are more than 10000 nodes and >10% edges - what does >10% edges refer to here? thank you so much!

You can use g.read_edge exactly the same way for any mode, including SparseOTF and DenseOTF.
The % of edges means the density of the graph, which is computed as
$Density(G) = \frac{Num. edges}{Num. nodes * (Num. nodes - 1)}$
where the denominator is the number of edges of a fully connected graph with $Num. nodes$ number of nodes (without self-loops).

Thank you! in the case where the graph is not fully connected or directed (i.e, there are communities of nodes connected across each other, for example 500 nodes interconnected but not connected to other nodes on the graph) can the same equation be used to roughly estimate the density?

Yes the density equation can be applied.
However, it is typically not advised to trivially apply node2vec to disconnected graphs, as the numerical relationships (e.g., inner products) of embeddings of nodes between two disconnected components do not make much sense. In the case of disconnected graphs, it would be better to analyze each component independently or somehow find a way to connect all these components together before proceeding.

Hi @RemyLau ,
Many thanks! Yes isolated nodes are relatively rare and the embeddings of nodes are still very powerful with respect to their surrounding environment - but yes, i am aware of this caveat and have proceeded on that basis :) many thanks!


Does not work with React v15.3.0

Warning: You are manually calling a React.PropTypes validation function for the position prop on perspectiveCamera. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details. [1]

Uncaught TypeError: Cannot read property 'emit' of undefined [2]

using react-three-renderer v2.2.0 and React v15.3.0
As soon as an object is unmounted, my console gets spammed with errors and warnings :smile:
I get [1] for lots of components: perspectiveCamera, directionalLight, ambientLight, object3D, sprite etc.
[2] author's note: happens when calling this.threeElementDescriptor.unmount(this._threeObject);

You should consider adding a note to the README that only React v15.2.x (eventually other versions) are supported with the most current version of react-three-renderer. Not everyone reads npm peerDependencies warnings carefully enough.

Good idea! :) thanks for the report! Looks like every minor react version
breaks us :P
On Wed, 3 Aug 2016, 12:33 Daniel Lindenkreuz<EMAIL_ADDRESS>wrote:

You should consider adding a note to the README that only React v15.2.x
(eventually other versions) is supported with the most current version of
react-three-renderer. Not everyone reads npm peerDependencies warnings
carefully enough.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/toxicFork/react-three-renderer/issues/94#issuecomment-237200459,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0iLef8KIwftNnpAZhYFKQM-5KwWD-iks5qcG95gaJpZM4Jbg7z
.

yeah, it's pretty much time that React opens their gates for 3rd party renderer implementations. piggybacking on private APIs sucks in the long term. thank you, @toxicFork, for relentlessly keeping on top of those changes!


Key created using the above steps is not valid for signing a UWP application.

I followed the steps exactly, creating a pfx key for use in my Azure Pipeline as well as for local builds. Whenever it runs on the Pipeline, I get the following error:
"##[error]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(4432,5): Error APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478."
When trying to add it my local project in the "Signing" tab of the project properties, it gives me the error: "Error importing key. Invalid provider type specifed."
Where have I gone wrong?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8e95ba48-8d07-d390-d49b-801d70730bae
Version Independent ID: 047d2736-f14e-610c-7396-89d2eae0f9cc
Content: Create a certificate for package signing - MSIX
Content Source: msix-src/package/create-certificate-package-signing.md
Product: msix
GitHub Login: @dianmsft
Microsoft Alias: diahar

To sign your MSIX pacakge the  cert/keys must be SHA256 digest, must be RSA 2048 keys. Also important thing to do is to add the cert to the local cert store, otherwise it will not be trusted on the dev's machine that is being sideloaded.

It's ridicules that in newer version of VS developers should do more! and have less convenient in developing! We need the autosiging feature again!

I too followed these steps in my attempt to sign a package created by the MSIX Packaging Tool. I created the pacakge in a VM without signing, copied it over to my devbox, and wanted to sign with a freshly generated self-sign key. The key was created via
New-SelfSignedCertificate -Type Custom -Subject "CN=Something" -KeyUsage DigitalSignature -FriendlyName "MySomething" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("<IP_ADDRESS>={text}<IP_ADDRESS>.<IP_ADDRESS>.3", "<IP_ADDRESS>={text}") -KeyAlgorithm RSA -KeyLength 2048

it was exported to pfx with a password, I used that password to import it to both Cert:\CurrentUser\My AND under Cert:\LocalMachine\My using certmgr but nothing! Must it really be that hard? I burned more short of 2 hours trying to figure out package signing.

Had the same problem - Worked after copying my selfsigned certificate to Computer Trusted Root

I figured it out yesterday. The .docx found on MSIX Labs actually mentions that it should go under Trusted People. I installed under Machine certs, but perhaps user certs might be enough.


update deprecated 'group deployment' to 'deployment group'

@zkatsavelis : Thanks for your contribution! The author(s) have been notified to review your proposed change. @PeterTaylor9999

Hi @doodlemania2 - Could you review this pull request? Thanks.

@ktoliver same #sign-off

@doodlemania2: I'm sorry - only the author of this article, @PeterTaylor9999, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


fix: more projen cleanups

Fixes #

Codecov Report

Merging #18 (d87f7fd) into main (e3143c1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   58.46%   58.46%
=======================================
  Files           5        5
  Lines          65       65
  Branches        2        2
=======================================
  Hits           38       38
  Misses         27       27

Flag
Coverage Δ

unittests
58.46% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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 f7221d6...d87f7fd. Read the comment docs.


mySQL Schema

I tried to set up the project together. I don't think the DB schema gets created. Am I missing something? I configure the access to mySQL but tables never get created.

First of all, sorry for the delay - I wasnt aware this was active on Github!
To create the schema you should be able to just visit http://localhost:/setup if your config file is configured with the relevant mysql connection credentials.

Yea, I was able to make it work, thanks. Are you still developing this project? I finished a few things, I'll try to send you a pull request in the next week.

Do you have the sql script?


Launch core integration part 2

Modulus Pull Request
Description
This brings the weather, CFD and Healthcare examples from Launch repo.
Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.
[x] The CHANGELOG.md is up to date with these changes.
[x] An issue is linked to this pull request.

Dependencies

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci


Regression: Debugger frequently not going to main instance on breakpoint hit when debugging extensions

Issue Type: Bug
Is this a known problem?  It started a few days ago.  If not, I can try to provide a repro.
 Can you record what you're seeing?

What do you mean by "not going to main instance on breakpoint hit"?

This is what should happen - when the breakpoint is hit, the main instance should come to the forefront:
As expected

Actual
Right now, of course, I can't repro it (it's been inconsistent but happening frequently).
I've also sometimes see breakpoint not getting hit at all.  But again, it's inconsistent.

Ok, it seems like Electron API does not bring main window to front and feels like a duplicate of https://github.com/microsoft/vscode/issues/105913 which should be fixed.
I use the hostService for this
@StephenWeatherford you do not have debug.focusWindowOnBreak setting disabled, correct?
fyi @deepak1556 and @bpasero for electron smartness

As long as this line is hit:
https://github.com/microsoft/vscode/blob/ca4dd67abe11321dc977f8396616ff5e5714dfee/src/vs/code/electron-main/window.ts#L346-L346
It should work.

This bug was not waiting for information from me, as far as I can tell.  Although I will say I haven't noticed it recently.

If you did not hit it recently then let's leave it closed since nobody else complained and we can not reproduce.


bug: error in the Comment on PR phase

Bug description
I'm getting this error in this github action:
Error: Resource not accessible by integration
  Warning: HttpError: Resource not accessible by integration
      at /home/runner/work/_actions/pkg-size/action/v1/dist/index.js:2990:27
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
      at async to (/home/runner/work/_actions/pkg-size/action/v1/dist/index.js:4591:9)
      at async /home/runner/work/_actions/pkg-size/action/v1/dist/index.js:7912:9

Reproduction steps
The github action log is here:
https://github.com/ant-design/ant-design-mobile/runs/4029511668?check_suite_focus=true
And the related workflow config is here:
https://github.com/ant-design/ant-design-mobile/blob/master/.github/workflows/bundle-size.yml
Environment

pkg-size-action version: v1
Operating System: ubuntu-18.04
Node version: 14

This seems like a common problem: https://github.community/t/token-permissions-for-forks-once-again/16468/6
It doesn't seem like there's a workaround to post comments from a fork.
I wonder if workflow_dispatch can be used to manually trigger the action on approved PRs.
(FWIW since you seem to be security conscious, in general, using any 3rd party GitHub Action via tag is insecure.)


Swift package missing files

Hey guys can you please make sure your SPM package include all necessary files and compiles in a test project after an update? Every update feels like playing Russian roulette at the moment. The most recent release won't compile as JPPreAuthRequest.h can't be found in JPCardTransaction+Additions.m

Hey @roryprior,
Thank you for reporting this!
Great to see that this package is used via SPM.
The issue described here has been fixed, and the code changes merged into the master branch. Please, till we publish a new package version use master branch or commit 3bf343bb77d88312cf3c4c8fcedda1f6abb214e0.


Issue sharing external vue dependency with common plugin

Hi @joeldenning !
We are developing a single-spa ecosystem with legacy backbone apps and new vue ones. We have already the single-spa app with dynamic modules load working. The last feature we added is the externals option for shared dependencies like vue, vue-router, single-spa-vue, etc. combined with its related import map.
However we have noticed some issues related with vue.
We defined some custom common plugins like this:
export default {
  install: (Vue, {
    endpoint, proxy,
  }) => {
    const client = Client({
      endpoint, proxy,
    });
    Vue.client = client;
    Vue.prototype.$client = client;
  },
};

This plugin is loaded in every microfrontend with Vue.use(plugin), but only at first load. However, if one microfrontend is unmounted and another is mounted, the new client plugin will overwrite the previous one. This fact will cause errors if we return to the initial microfrontend, as the related plugin was installed only in the first mount.
By the moment we have decided adding a suffix to every client for avoid crashes between apps like:
Vue.client_app1 = client;
Vue.prototype.$client_app1 = client;

Vue.client_app2 = client;
Vue.prototype.$client_app2 = client;

This strategy works fine but get it working with the same name would be great. Another way is undo the external dependency for vue and keep one vue instance for every app with the vue-cli --inline-vue param, but it is not the desired scenario.
Is there any way of fix the error I am reporting without using a custom name for one plugin in every micro frontend?
Thank you so much.

I'm not Joel, but I'd like to help if possible.
What you've done is what is recommended in the Vue documentation of "The Importance of Scoping Instance Properties". This problem would exist even if you were not using single-spa since each of those components is overriding the previous one's. That's just the nature of modifying a global (in this case, the Vue instance). They also include this alternative:

When you have access to a module system, you can easily organize shared code into modules, then require/import those modules wherever they’re needed. This is the epitome of explicitness, because in each file you gain a list of dependencies. You know exactly where each one came from.
While certainly more verbose, this approach is definitely the most maintainable, especially when working with other developers and/or building a large app.

It would seem to me that in this case, you should extract that client/plugin into a local module that you import in every file that needs it, and never ever attaching it to the Vue instance.

Hi @filoxo !
Thank you so much for your answer and sharing this content. We will follow the guidelines of this cookbook for avoid this crash and let webpack to manage every load.


New command requires configuration file

dotnet-releaser new --project soddi.csproj
The dotnet-releaser.toml field is required.

I suspect just swapping the bool here https://github.com/xoofx/dotnet-releaser/blob/main/src/dotnet-releaser/ReleaserApp.cs#L107 would fix things up.

Thanks! Fixed by commit c7b05fa. Will be available in 0.3.3+


added swagger path details attribute to add more details (see description)

added swagger path details attribute since we still have no means to generating XML files yet one may need the summary and implementation notes
In the image below, see the summary added and the implementation details

Xml files are now possible - https://github.com/domaindrivendev/Ahoy/blob/master/test/WebSites/Basic/Startup.cs#L51

Okay. Great news to a one-year old PR.


configured syslog-ng to log to stdout directly instead of using tail

in reponse to: #437 Syslog messages are not forwarded

changed syslog-ng config to log to stdout
maintain log files inside container
removed syslog-forwarder (setup, service, logrotate restart)

This also deprecates the following PR's:

https://github.com/phusion/baseimage-docker/pull/324
https://github.com/phusion/baseimage-docker/pull/287


Vagrant Up Failures on Windows with VirtualBox

Issue Type

Bug Report / Support Request

Your Environment
Vagrant 2.2.5

echo "VirtualBox `vboxmanage --version`"
>> ^C
(the "echo VirtualBox" command does not work on Windows)

ansible : The term 'ansible' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ansible --version
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (ansible:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Your OS

Windows 10

Full console output
https://gist.github.com/JasonWeakley/3f085cb107596459ff7cd0e9e14681cf
Summary
When I download the .zip file I open the default.config.yml and change the IP address and hostname and machine name:
vagrant_hostname: mdo2.dev
vagrant_machine_name: mdodrupal
vagrant_ip: <IP_ADDRESS>

Then I edit the Vagrantfile and change line 117 to the below:
# Use pip to get the latest Ansible version when using ansible_local.
    provisioner == :ansible_local && ansible.install_mode = 'default'

Changed to 'default'
After that I run vagrant up and wait 10-15 minutes to see if the install fails or not, which it does 9 out of 10 times. Essentially, all I know is that Ansible failed, and VBGuests failed, but doing vagrant reload and vagrant provision solves nothing. As you can see at the bottom of the Gist link above I ran vagrant reload and got a false success message. What I see on my screen is a "Secure Connection Failed" page from Firefox, trying to load the host address as if it were a real website.

My steps and troubleshooting:
vagrant plugin install vagrant-vbguest
vagrant up
...wait
PLAY RECAP *********************************************************************
drupalvm                   : ok=187  changed=5    unreachable=0    failed=1    skipped=347  rescued=0    ignored=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

vagrant reload
==> drupalvm: Machine 'drupalvm' has a post `vagrant up` message. This is a message
==> drupalvm: from the creator of the Vagrantfile, and not from Vagrant itself:
==> drupalvm:
==> drupalvm: Your Drupal VM Vagrant box is ready to use!
==> drupalvm: * Visit the dashboard for an overview of your site: http://dashboard.mdothree.dev (or http://<IP_ADDRESS>)
==> drupalvm: * You can SSH into your machine with `vagrant ssh`.
==> drupalvm: * Find out more in the Drupal VM documentation at http://docs.drupalvm.com

vagrant ssh
vagrant@mdothree:/var/www/drupalvm$ composer update drupal/core
vagrant@mdothree:/var/www/drupalvm$ composer update drupal/core
    1/2:        http://repo.packagist.org/p/provider-latest$ecc5b6adda723bfb1c61851a3743761703e9576df2092147eafa76906932cb53.json
    Finished: success: 1, skipped: 0, failure: 1, total: 2
Package "drupal/core" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

I've also found this issue to be relevant:
https://github.com/geerlingguy/drupal-vm/issues/1970#issuecomment-537078135
I have added myself to the list, updated group policies with gpupdate /force and ran vagrant provision again.

@geerlingguy My simple understanding is that Ubuntu is used to install Virtual Box Guest Additions (correct?), and is it likely that it fails because some Ubuntu packages were not found at the following URLs?
https://gist.github.com/JasonWeakley/3f085cb107596459ff7cd0e9e14681cf#file-vagrant-up-failures-txt-L69
Lines 69-71 show failed fetching of .deb files. Now, I just tried to install another new box and ran vagrant plugin install vagrant-vbguest prior to running vagrant up. So, even with VB Guest Additions installed (manually) it fails to recognize that its there.

Here is more from today as I attempted to create a VM and failed, this output/gist shows repeated attempts to provision without success... and no idea how to proceed to solve the problem...
https://gist.github.com/JasonWeakley/23c9103adfb82af2c71b69c0b31402c6

OK, so I have concluded my scientific experiments and have come to this conclusion: "If at first you don't succeed, try, try again." I attempted yesterday to provision a box about half a dozen times, each time I came up against a problem where an Ubuntu package was not being installed, and I believe preventing PHP from being installed -- regardless PHP failed to install and my "PLAY RECAP" was showing something like ~60 "OK" and ~60 "skipped" and spinning up the box fails. Even after destroying it twice and spinning it up and provisioning once after each time it would still fail. This morning I destroyed the box, erased all the files on my Windows 10 machine in that directory, unzipped the files again, made the exact same modifications to config.yml and Vagrantfile, ran vagrant up, and it worked.
I tried the same experiment yesterday with another box and it was able to succeed after 4 provisions, each time the failure was due to Ansible failing to install, and not related to Ubuntu or PHP. I did not have to destroy that box.
My strong belief now is that the Drupal 8 VM setup process DOES work, but it works approximately 20% of the time, or less -- when on a Windows 10 machine.
My advice to you is this... if your failure is related to Ansible, run vagrant provision until the box spins up... even if you have to do that 10 times, keep doing it until it works.
If your failure is not related to Ansible (i.e. ANYTHING else) destroy the box, and possibly delete all the files and unzip the files again. You may keep your IP address and hostname in your hosts file the same, just remember to change your default.config.yml and Vagrantfile to desired settings for VM size, hostname, IP, etc.

TL;DR: If you run into ansible failures, provision the box 100 times until it works. If you run into errors other than Ansible, nuke the thing from orbit and unzip the files from scratch until you get a working box (or see Ansible fail, at which time provision the box until it works).


Skip notes with bad metadata

Hi!  I use the built-in template engine for daily notes, which leads to having files including frontmatter like:
date: {{date:YYYY-MM-DD}}

But this doesn't parse, because python-frontmatter uses SafeLoader for the YAML loader, and it tries to make these into mappings/embeddings.  I'm wondering if it would be possible to have an option to either exclude some directories when creating Notes at the root level of a vault, or to have a allow_errors (or something) option such that if it's set to True it would either skip adding those notes to the Notes object or add them without their metadata.
(On the other hand, perhaps I am doing something very wrong here in having these template variables?  But that seems like it's unrelated to py-obsidianmd :smile: )

As a note, I was able to address this by changing how I set up my templates -- feel free to close this, as I can work around it and still use pyomd.


accept axis: "both" for x and y axes

note that we avoid showing the label and the grid twice
closes #148

Very cool! Will review soon.


scripts/setup: answering 'n' installed packages anyway

I ran scripts/setup to ensure my configuration was up to date. I answered 'n' to installing yosys, but the script went ahead and installed it anyway:
$ scripts/setup

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libusb-1.0-0-dev/glinux-rodete-base-20211117.03.02,now 2:1.0.24-3 amd64 [installed]
Missing:
yosys
Missing packages: yosys
Install [y]/n? n
[sudo] password for avg:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  berkeley-abc xdot
The following NEW packages will be installed:
  berkeley-abc xdot yosys
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,678 kB of archives.
After this operation, 23.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...

I had seen similar behavior.  I think I tried fixing it, but realized it was probably tty dependent (before it worked on A but not B, and after my change, it worked on B and not A).   Let's check stackoverflow for  a more robust solution :)


Error invoking remote method 'send-http-request': ReferenceError: pm is not defined

This is not a bug report, this is an issue I had while importing my Postman collection. In case someone from the future has the same problem, here's the solution:
Your Postman request has Tests defined, which Bruno imports. Example: I had
if(pm.response.code == 200) {
    pm.environment.set("authToken", pm.response.json().access_token);
}

in my tests. Either delete Tests, or modify them for Bruno

可以具体一点步骤吗  我没有导入 Postman 集合也有此问题

Can you be more specific about the steps thks  I do not import Postman collections also have this problem

Click on the request. Go to Scripts, Tests tabs. Make sure you have no code there.
Right click at the collection (top level) and select properties. Go to Scripts tab and make sure no code there as well.
Last ditch option: create a new collection and a new request. See if the request passes.


issue #475 style details/summary button

Signed-off-by: Jack (T.) Jia<EMAIL_ADDRESS>

Nice!

Looks good to me!


--[WIP][BE/Refactor/Bugfix] Remove deprecated distutils from setup and ab_test

Motivation and Context
Distutils is deprecated and will be removed in python 3.12, which is slated for release Oct 2 2023. This PR removes references to Distutils in HabitatSim python code. It does require the 'packaging' library, so this also needs to be added to requirements.txt. (@Skylion007 is there a better option than this to provide version classes?)
NOTE : Our versions of bullet, assimp and pybind11 all also have distutils references, so we may need to update these libraries before we can claim python 3.12 support. (magnum also does, but I'm sure mosra will address when appropriate).

How Has This Been Tested

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have completed my CLA (see CONTRIBUTING)
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Latest version of pybind11 supports python 3.12. Also latest versions of torch will too now.


Fix: Double Log Output

Issue:
Respective primary loggers and the root logger are sending the same event to the Appender which then writes it twice to the Console.
Solution:
add additivity additivity=false so all loggers will pass events to the Console but not to the Root Logger.

Double Log BUG:
2022-05-23T19:32:43,881 DEBUG [                main] rvice.SpringApplicationContext(  35) - SpringApplicationContext xtor
2022-05-23T19:32:43,881 DEBUG [                main] rvice.SpringApplicationContext(  35) - SpringApplicationContext xtor
2022-05-23T19:32:45,172 INFO  [                main]     org.camunda.bpm.engine.cfg( 132) - ENGINE-12003 Plugin 'ProcessApplicationEventListenerPlugin' activated on process engine 'default2'
2022-05-23T19:32:45,172 INFO  [                main]     org.camunda.bpm.engine.cfg( 132) - ENGINE-12003 Plugin 'ProcessApplicationEventListenerPlugin' activated on process engine 'default2'
2022-05-23T19:32:45,199 INFO  [                main]     org.camunda.bpm.engine.cfg( 132) - ENGINE-12003 Plugin 'SpinProcessEnginePlugin' activated on process engine 'default2'
2022-05-23T19:32:45,199 INFO  [                main]     org.camunda.bpm.engine.cfg( 132) - ENGINE-12003 Plugin 'SpinProcessEnginePlugin' activated on process engine 'default2'
2022-05-23T19:32:45,245 INFO  [                main]               org.camunda.spin( 132) - SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
2022-05-23T19:32:45,245 INFO  [                main]               org.camunda.spin( 132) - SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
2022-05-23T19:32:46,356 INFO  [                main]               org.camunda.spin( 132) - SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
2022-05-23T19:32:46,356 INFO  [                main]               org.camunda.spin( 132) - SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
2022-05-23T19:32:46,398 INFO  [                main]               org.camunda.spin( 132) - SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
2022-05-23T19:32:46,398 INFO  [                main]               org.camunda.spin( 132) - SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
2022-05-23T19:32:46,398 INFO  [                main]               org.camunda.spin( 132) - SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
2022-05-23T19:32:46,398 INFO  [                main]               org.camunda.spin( 132) - SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
2022-05-23T19:32:46,590 INFO  [                main] org.camunda.bpm.dmn.feel.scala( 132) - FEEL/SCALA-01001 Spin value mapper detected
2022-05-23T19:32:46,590 INFO  [                main] org.camunda.bpm.dmn.feel.scala( 132) - FEEL/SCALA-01001 Spin value mapper detected
2022-05-23T19:32:46,989 INFO  [                main]    org.camunda.feel.FeelEngine( 109) - Engine created. [value-mapper: CompositeValueMapper(List(org.camunda.feel.impl.JavaValueMapper@1e4333fc, org.camunda.spin.plugin.impl.feel.integration.SpinValueMapper@74589d81)), function-provider: org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer@3a326881, configuration: Configuration(false)]
2022-05-23T19:32:46,989 INFO  [                main]    org.camunda.feel.FeelEngine( 109) - Engine created. [value-mapper: CompositeValueMapper(List(org.camunda.feel.impl.JavaValueMapper@1e4333fc, org.camunda.spin.plugin.impl.feel.integration.SpinValueMapper@74589d81)), function-provider: org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer@3a326881, configuration: Configuration(false)]
2022-05-23T19:32:55,897 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.engine.sql'
2022-05-23T19:32:55,897 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.engine.sql'
2022-05-23T19:32:57,277 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.history.sql'
2022-05-23T19:32:57,277 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.history.sql'
2022-05-23T19:32:57,548 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'identity' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.identity.sql'
2022-05-23T19:32:57,548 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'identity' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.identity.sql'
2022-05-23T19:32:58,023 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'case.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.case.engine.sql'
2022-05-23T19:32:58,023 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'case.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.case.engine.sql'
2022-05-23T19:32:58,119 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'case.history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.case.history.sql'
2022-05-23T19:32:58,119 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'case.history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.case.history.sql'
2022-05-23T19:32:58,203 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'decision.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.decision.engine.sql'
2022-05-23T19:32:58,203 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'decision.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.decision.engine.sql'
2022-05-23T19:32:58,439 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'decision.history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.decision.history.sql'
2022-05-23T19:32:58,439 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'decision.history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.decision.history.sql'
2022-05-23T19:32:58,496 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03067 No history level property found in database
2022-05-23T19:32:58,496 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03067 No history level property found in database

With fix (additivity=false):
2022-05-25T09:26:51,041 INFO  [                main] ina].[localhost].[/cws-engine]( 643) - Initializing Spring root WebApplicationContext
2022-05-25T09:26:51,854 DEBUG [                main] rvice.SpringApplicationContext(  35) - SpringApplicationContext xtor
2022-05-25T09:26:52,455 INFO  [                main]     org.camunda.bpm.engine.cfg( 132) - ENGINE-12003 Plugin 'ProcessApplicationEventListenerPlugin' activated on process engine 'default2'
2022-05-25T09:26:52,465 INFO  [                main]     org.camunda.bpm.engine.cfg( 132) - ENGINE-12003 Plugin 'SpinProcessEnginePlugin' activated on process engine 'default2'
2022-05-25T09:26:52,481 INFO  [                main]               org.camunda.spin( 132) - SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
2022-05-25T09:26:53,076 INFO  [                main]               org.camunda.spin( 132) - SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
2022-05-25T09:26:53,099 INFO  [                main]               org.camunda.spin( 132) - SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
2022-05-25T09:26:53,100 INFO  [                main]               org.camunda.spin( 132) - SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
2022-05-25T09:26:53,231 INFO  [                main] org.camunda.bpm.dmn.feel.scala( 132) - FEEL/SCALA-01001 Spin value mapper detected
2022-05-25T09:26:53,425 INFO  [                main]    org.camunda.feel.FeelEngine( 109) - Engine created. [value-mapper: CompositeValueMapper(List(org.camunda.feel.impl.JavaValueMapper@1f8821a8, org.camunda.spin.plugin.impl.feel.integration.SpinValueMapper@193c221a)), function-provider: org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer@6b8224bc, configuration: Configuration(false)]
2022-05-25T09:26:57,448 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.engine.sql'
2022-05-25T09:26:57,998 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.history.sql'
2022-05-25T09:26:58,135 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'identity' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.identity.sql'
2022-05-25T09:26:58,373 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'case.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.case.engine.sql'
2022-05-25T09:26:58,430 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'case.history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.case.history.sql'
2022-05-25T09:26:58,480 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'decision.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.decision.engine.sql'
2022-05-25T09:26:58,610 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03016 Performing database operation 'create' on component 'decision.history' with resource 'org/camunda/bpm/engine/db/create/activiti.mariadb.create.decision.history.sql'
2022-05-25T09:26:58,644 INFO  [                main] camunda.bpm.engine.persistence( 132) - ENGINE-03067 No history level property found in database

Tested with:

Deployments: checked main log page, and history page
created model inside CWS
Logged in with different security auth
Install type 1 & 2
Log rotation - the log rolling for Console and Worker cws.YYYY-MM-DD.log is validated


Fix broken VersionCommand info part

After recent change we forget to fix related variable name on template

@BiNZGi @captn3m0 Can we merge this ASAP ?


Write internal fragments and directives to a file

This PR adds a new generator to the pile that's responsible for writing a .gql file to a customizable location so that IDEs can pick up the definitions.
I also took the opportunity to finally remove the mode config value
Associated doc PR: https://github.com/HoudiniGraphql/docs/pull/7
fixes #234
cc @ronkeiser

I just tried this out and it works great :)


Ambient Occlusion on flipped sprites

Greetings and many thanks for the awesome shaders!
I've been playing around with Unity's Post Processing Stack in my 2D game. And I'm using the Sprite (Pixel Lit) shader from Unity Sprite Uber Shader.
The problem is, the AO from the Post Processing Stack works fine on normal (unflipped) sprites:
, but isn't working on flipped sprites:

(I'm using the negative scale.x method to flip the sprites.)
I'm assuming this is yet another problem caused by Unity's sprite flipping...Everything else works fine including lighting, shadows and even Depth of Field, only AO. (I'm new to shaders so I'm not even sure this problem can be fixed with shaders.) Do you have any suggestions? Or are there any workarounds (like flipping the sprites some other ways...)?
Many thanks in advance and apologies if anything is inappropriate...

Hi again, I found a workaround to this problem! The Multi-Scale Volumetric AO from Unity's Post Processing Stack v2 works perfectly with flipped and unflipped sprites!


word count

Is your feature request related to a problem? Please describe.
this feature includes a word count tool.
Describe the solution you'd like
The "Word Count Tool" provides writers and students with quick counts of words, characters, and sentences in their text, aiding in editing and meeting word count requirements effortlessly. It's a valuable tool for improving writing precision and adhering to length constraints
What problem is this feature trying to solve?
The "Word Count Tool" offers writers and students an efficient way to track word, character, and sentence counts, streamlining proofreading and ensuring adherence to academic or publishing guidelines.
How do we know when the feature is complete?
the user will be able to use the word count tool.

@Sulagna-Dutta-Roy please assign this to me i am GSSOC'24 contributor with 2+ years of experience in development

Is this an extension? @Nihita123

yes this is an extension


Crash When trying to Start Game

Just like the title says. I'm trying to download some mods that have this as a dependency but cannot. I've downloaded just ModComponent and no other mods to test it and the game crashes immediatly upon start.

I also encountered crashes. I am also waiting for a fix for 2.32


How to migrate CRYLOGGER delta to other Android versions?

It seems simply apply the changes in scripts/delta folder to AOSP source code would work. The problem is how to correctly modify current.txt and openjdk_java_files.bp.
Could you provide some advice about how to check the correction of the migration?
By the way, is there any method to only build the changed module and apply the changes instead of building the whole AOSP from scratch ?
Thanks in advance

Applying the changes in delta should be sufficient. If you already built the AOSP and you changed only the files in the directory delta, the Makefile should have the correct dependencies and it should be able to compile only what it is needed.
In the version of Android that I used, the file current.txt was generated automatically. When you change the Java files and try to compile, it should tell you that you need to update the API through the command make update-api. I think that this command takes care of generating the file current.txt. The original file openjdk_java_files.bp should be modified manually by adding all the Java files contained under the directory delta.
Thanks


Cannot make examples work

I follow this guide to install examples but it does not work : https://github.com/react-community/react-native-maps/blob/master/docs/examples-setup.md
Is this a bug report?
Yes

Have you read the Installation Instructions?
yes
Environment
<EMAIL_ADDRESS><EMAIL_ADDRESS>react-native-maps@ 0.21.0

Steps to Reproduce
git clone git@github.com:react-community/react-native-maps.git
cd react-native-maps
nom install

Expected Behavior

No error happen on build
Actual Behavior
Ann error occur during npm run build:ios command
[!] CocoaPods could not find compatible versions for pod "yoga":
  In snapshot (Podfile.lock):
    yoga (= 0.54.2.React)

  In Podfile:
    yoga (from `../../node_modules/react-native/ReactCommon/yoga/yoga.podspec`)

Due to the previous naïve CocoaPods resolver, you were using a pre-release version of `yoga`, without explicitly asking for a pre-release version, which now leads to a conflict. Please decide to either use that pre-release version by adding the version requirement to your Podfile (e.g. `pod 'yoga', '= 0.54.2.React'`) or revert to a stable version by running `pod update yoga`.

I have tried to run  pod update yoga, but it does not work
I have tried to change yoga requirements to force version but no luck

Same problem here.


Incremental loads for hubs and links don't use high-water-mark

Hi,
I stumbled upon our hubs and links not using high-water-mark for their incremental loading.
For this issue I would only go into hubs since links probably share the same cause.
dbt version: 1.4.6
datavault4dbt version: 1.0.17
database: snowflake
We defined our own aliases in the dbt_project.yml
#Column Aliases
  datavault4dbt.ldts_alias: 'CDP_LOADDTS'
  datavault4dbt.rsrc_alias: 'CDP_RECORD_SOURCE'

Every stage defines these two attributes:
ldts: CDP_LOADDTS
rsrc: '[static source identifier]'

Our hub definition is very slim, as we define the matching columns (HK/BK) for the hubs in the source_models.
For multiple sources:
{{ config(materialized='incremental') }}
{%- set yaml_metadata -%}
hashkey: HASHKEY_SK
business_keys: BUSINESSKEY_BK
source_models:
    V_MODEL1: {}
    V_MODEL2: {}
    V_MODEL3: {}
{%- endset -%}

For single source hubs:
{{ config(materialized='incremental') }}
{%- set yaml_metadata -%}
hashkey: HASHKEY_SK
business_keys: BUSINESSKEY_BK
source_models: V_MODEL4
{%- endset -%}

Both definitions always process the entire history of the stage data to determine the delta. Are we missing something in the definition that is necessary to calculate the high-water-mark?
We would like to get the same result for delta calculation analogous to the sat definition and decrease our processing time.
{{ config(materialized='incremental') }}
{%- set yaml_metadata -%}
source_model: V_MODEL4
parent_hashkey: HASHKEY_SK
src_hashdiff:
  source_column: S_SAT_HASHDIFF
  alias: HASHDIFF
src_payload:
  - COL1
  - COL2
{%- endset -%}

Kind regards,
Lars

Hi @lwehle and thanks for reaching out!
To make multi-source entities benefit from High-Water Mark loading, you have to define the parameter "rsrc_static" per source_model. Check this wiki page to get some more details. After setting this, the HWM should be applied automatically!
For the single source entities, the only way to activate the HWM would currently also be to set the rsrc_static attribute.
You can do this by changing
source_models: V_MODEL4
to this:
source_models:
    V_MODEL4:
       rsrc_static: <rsrc_static_value>

I completely agree that for single source entities this should not be neccessary, and I wasn't really aware of it! We will definetely add it to the Backlog for future improvements, but for now you should be good to achieve what you want with these modifications.
And you could argue that this kind of single-source model definition makes it easier to add more sources in the future!
Let me know if this works for you!
Kind regards,
Tim

Hi @tkirschke,
thank you for your quick response! After adding the rsrc_static parameter HWM CTEs are generated.
I had a different idea of the rsrc attribute until now. I assumed that the column is defined per stage model and it is automatically used as the source identifier. In our case all rsrc identifiers are static and to store them again in hubs and links seems redundant, but I understand that the hub must know from somewhere what rsrc value the stage model has.
Thanks for the clarification!
Kind regards,
Lars

Hi,
there is an interesting code block for links when rsrc_static is set.
In the src_new_x cte, the rsrc_value V_STAGE_MODEL gets "deconstructed":
        SELECT
            LINKHASHKEY_SK AS LINKHASHKEY_SK,
            HASHKEY1_SK,
            HASHKEY2_SK,
            LOADDTS,
            RECORD_SOURCE
        FROM STAGE_MODEL src
        INNER JOIN max_ldts_per_rsrc_static_in_target max ON
        (max.rsrc_static = 'V'OR
            max.rsrc_static = '_'OR
            max.rsrc_static = 'S'OR
            max.rsrc_static = 'T'OR
            max.rsrc_static = 'A'OR
            max.rsrc_static = 'G'OR
            max.rsrc_static = 'E'OR
            max.rsrc_static = '_'OR
            max.rsrc_static = 'M'OR
            max.rsrc_static = 'O'OR
            max.rsrc_static = 'D'OR
            max.rsrc_static = 'E'OR
            max.rsrc_static = 'L')
        WHERE src.LOADDTS > max.max_ldts

    )

For hubs it's looking good.
After some poking around, I found out that the type of rsrc_statics differs between hubs (list) and links (string) and the for loop {%- for rsrc_static in rsrc_statics -%} outputs every char.
Changing {%- set rsrc_statics = source_models_rsrc_dict[source_model]['rsrc_static'] %} to {%- set rsrc_statics = ns.source_models_rsrc_dict[source_model] -%} in macros/tables/snowflake/link.sql did the trick, but I don't know if there are other side-effects.
Kind regards,
Lars

Hi @lwehle ,
I have identified the belonging bug in the link macro and fixed it in this branch: https://github.com/ScalefreeCOM/datavault4dbt/tree/hotfix_rsrc-static
It works for me now, let me know if this solves the issue for you as well!
Kind regards and have a nice weekend,
Tim


Rename the package when a new release is available

It looks like the package was renamed to ggpy on GitHub but not on PyPI yet. Another package seems to own ggpy on PyPI. Let's keep an eye open in case there is a release with the new name.

It is probably better to submit a new recipe to staged-recipes.


fix: Account Resolver

fix: ConfigLoader split -> MigrationService, AddressesService, ConfigurationUtils
fix: addresses.sinkAddress is not generated when it's not required
Note: I had to fix some imports. If not, oclif errors when generating the docs and the cli metadata. I think it's a circular dependency somewhere.

part 1, more tomorrow

Thanks gimre for the review. I'm trying to allow libs to provide their own accounts cached somewhere else, on-demand, when bootstrap requires it. I'm using this feature in symbol-network, when the keys are pre-created to generate the nemesis block. The feature is working, but the implementation is not great yet.


bad spell

im sorry, I write a bad close tag for the bad close tag :P :( I'm so sad for this

No problem thanks for the fix :)


reject bad image names

This pr rejects the image name ends with a non-alphanumeric character. For example
mydomain/myimage:  invalid
mydomain/myimage; invalid

This will solve the problem where java regexp parse stuff too long. While I found this is still a problem:
mydomain/myimagelonglonglonglonglonglonglonglonglong::tag
Java regexp still takes a long time to parse something like this. I am not going to address this as the parsing will be more complicated when thing goes further.
However, the alternative solution is https://github.com/rancher/cattle/pull/2762, where we drop all the regexp as all we want to do is just to get the registry server name. And that doesn't need regexp.

I reject your reject bad image names.


Cohorts [IG]

Outline:

Population and cohort definition
Link to eligibility criteria
StudyDesign population vs cohort
Additional cohort characteristics
Question: are we adding the picture below? We planned an overview for:	Population / indication / IE?
So I can add indication here. See also ticket #153 where I propose to link indication to population to align with standards.Private Zenhub Image

@dih-cdisc @jowencdisc
Please review/adjust. See attachment.
IG Cohorts and Populations.docx

@jowencdisc @dih-cdisc : Updated and added short description of Eligibility criteria as well in IG: https://wiki.cdisc.org/display/USDMIGv3/Populations%2C+Cohorts+and+Eligibility+Criteria


Merge mec-accelerator-aio-dev into main

@microsoft-github-policy-service agree company="Plain Concepts"


Deployment error

I'm getting this error when deploying using vercel-action. Don't know if anyone else ran into the same error.
I was able to deploy in my local terminal using now cli.

Same Error, I added the vercel-project-name and it stills failing

My action file
`name: Deploy to VERCEL
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
  - name: Install Node.js
    uses: actions/setup-node@v1
    with:
      node-version: '10.x'

  - name: Install yarn
    run: npm i -g yarn

  - name: Install packages and run tests
    run: yarn && yarn test

  - name: Run Eslint
    run: yarn lint

  - name: Deploy to Vercel
    uses<EMAIL_ADDRESS>    with:
      vercel-token: ${{ secrets.VERCEL_TOKEN_ID }} # Required
      github-token: ${{ secrets.GH_TOKEN }} #Optional
      vercel-args: '--prod' #Optional
      vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
      vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required
      working-directory: ./
      vercel-project-name: simetrik

`


Pin the package provider for RedHat osfamily

Local tests fail when run on a Mac. This commit forces the package
provider to use yum. Since we're already assuming the osfamily is RedHat
and the default package provider for RedHat is yum, side effects from
this change should be minimal. And local tests will pass on a Mac.
Original error:
Parameter ensure failed on Package[sensu]: Provider must have features 'upgradeable' to set 'ensure' to 'latest'

Can you rebase now the tests are passing?

Rebased.


Merge master to live

Docs Build status updates of commit 44682aa:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

office-365-management-api/office-365-service-communications-api-reference.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Make --seed argument more helpful in core_ibex/sim.py

Now, successive test iterations use successive seeds. So if you pass
--seed 123 and run ten iterations, they will run with seeds 123, 124,
... through 133.

Adding @taoliug to take a look at this PR, since it pretty closely relates to google/riscv-dv#570

I think Tao mentioned this in the riscv-dv PR, but I alos think it's better to randomize the seeds instead of fixing them at top level (and incrementing by 1 for every iteration) - could you implement something similar to how riscv-dv creates a seed.yaml file to allow rerunning full regressions?
This would allow full randomization of the seeds used to not limit the size of the explored state space while also allowing regressions to be rerun.

@udinator I don't think I understand this comment. Assuming you have a half-decent PRNG, reading 100 seeds from a seed.yaml has the same "randomness" as picking a starting seed and running 100 seeds starting from there. The latter option means I can specify my regression run with a single number. The former requires me to generate (and check in) a YAML file.
As I assume you understand, whether I specify seeds or not is basically the difference between soak testing and regression testing. Clearly, we need to support both, and we do (don't specify a seed for soak testing; generate a YAML file for regression testing).
However, our tools currently do something silly if you ask for a seed and more than one test (which is what your issue #859 reports). We should either throw an error ("Hey, this doesn't make sense. Please write a list of numbers in a file for me.") or, better, do something sensible. That's what these patches do.

Right. I've put the new behaviour in a differently named argument and this PR now contains the vendor patch that pulls in the new riscv-dv code.


enable building of shared libraries, export version information

xref: https://github.com/chipsalliance/UHDM/pull/875
PR opened for visibility. This PR won't work until that UHDM PR is merged. There is conversation ongoing on that PR as to how to export version information, please follow up there and I will propagate decisions onto this PR when ready.
[ ] update version setup to match UHDM
[ ] setup pkg-config config files to match UHDM

@timkpaine @hzeller, it looks like now this PR needs to be merged after conflict resolution.
I can't compile Surelog now that https://github.com/chipsalliance/UHDM/pull/875 has been merged.

@alaindargelas will fix now, i have a handful of CMAKE_ that need to be PROJECT_

@timkpaine can you resolve the conflicts in this PR?

@timkpaine can you resolve the conflicts in this PR?

yeah I need to propagate some changes from UHDM first, we're going to do the same versioning setup here just so those two are 1-1

just wanted to note that for UHDM, we put the includes in uhdm, whereas for Surelog we use camelcase Surelog. I made it lowercase in order to match UHDM, but I can revert that if we necessary (though I will note that with the installed cmake config and new pkg-config, it really shouldn't matter as it will pick up the new path).

looking into the failing build, its something I fixed on the UHDM side that I need to propagate here

@timkpaine , regarding this failure:
https://github.com/chipsalliance/Surelog/actions/runs/4463325816/jobs/7838454728
You have to run this locally to debug.
make install PREFIX=
make test_install PREFIX=
This is kind of urgent, we cannot merge UHDM into Surelog until this is fixed.
Thanks

Just trying to resolve the last failing test, for some reason it can't find the antlr libraries in CI (can't reproduce locally).
I will fix ASAP, but also you should be able to merge the latest UHDM changes into surelog without this PR


How to disable the highlight when unfolding a block of code?

Neovim version (nvim -v | head -n1)
NVIM v0.9.4
Operating system/version
arch linux
How to reproduce the issue
just the default config
Expected behavior
no highlight on unfolding
Actual behavior

Set open_fold_hl_timeout to 0.


Test Parallel CI Build

Basically just testing whether a parallel build makes any difference.

Yes, outcome is that they do indeed run in parallel.  The test workflow file was:
name: build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build-java:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install Dafny
        uses: dafny-lang/setup-dafny-action@v1
        with:
          dafny-version: "3.10.0"

      - name: Z3 version
        continue-on-error: true
        run: $HOME/dafny/z3/bin/z3 --version

      - name: Setup Gradle
        uses: gradle/gradle-build-action@v2

      - name: Run Gradle Build
        run: gradle build

  build-go:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install Dafny
        uses: dafny-lang/setup-dafny-action@v1
        with:
          dafny-version: "3.10.0"

      - name: Z3 version
        continue-on-error: true
        run: $HOME/dafny/z3/bin/z3 --version

      - name: Set up Go
        uses: actions/setup-go@v3
        with:
          go-version: 1.19

      - name: Build with the Makefile
        run: make ci

This suggests that we could further improve performance of the CI pipeline by running more stuff in parallel.  For example, the reference tests could be run in parallel with verifying the evm and/or its tests.

Well, for now, this maybe premature.  However, its useful to know this for the future.


Member Highlight Card

TASK
As an engineer, I want to see what a member feature card should look like so that we can feature members when encouraging users to sign up for additional campaigns.

Issue moved to DoSomething/TeamRocket #6 via ZenHub


Is it working on electron and support webpack?(mac os x 10.12.6)

Hi,
When using node-ffi(ps: i know node-ffi also maintained by you.) in electron to load DynamicLibrary. there is a problem when executing require('ffi'), and the error log in electron console:
Uncaught ReferenceError: bindings is not defined
at Object.<anonymous> (external "bindings":1)
at e (bootstrap:44)
at Object.<anonymous> (ref.js:5)
at e (bootstrap:44)
at Object.<anonymous> (ffi.js:6)
at e (bootstrap:44)
at Module.<anonymous> (Clipboard.js:4)
at e (bootstrap:44)
at Module.<anonymous> (index.js:10)
at e (bootstrap:44)

and i use webpack 4 to build source code.
Wanted to know if bindings support electron 4.0.1 | webpack 4 on mac os x 10.12.6. thanks~

#50

#50  when use electron-vue


Metamask snap

I'm from the HERE Wallet team, which received a grant to develop and maintain the official Metamask plugin. We are happy to present our work!
How it works:
The wallet-selector package uses the @near-snap/sdk library which interacts with near-api-js and the metamask snap rpc.
The @near-snap/plugin itself does not have internet access. The plugin only signs transactions and provides an interface for viewing actions signed by the user.
Plugin features:
Limited access to a specific contract.
Method near_connect(contractId, network, methods) works in the same way as limited keys, that is, they allow you to send free transactions without annoying confirmations.
Details of what the user is signing.
List of transaction actions, confirmations of new permissions, additional information. Unfortunately at the moment snap-ui is not very rich, but we are doing our best to make the UI/UX of the plugin better for the user.
Support for delegated transactions.
And own infrastructure for new users. HERE Wallet allows metamask users (on the mainnet) to send gas free transactions without having funds on their account.
Free account activation in mainnet and testnet.
For users, the HERE Wallet metamask automatically activates accounts so that later it will be possible to use delegated transactions to interact with dApps without having funds on the account. (In the future, we hope to involve the NEAR Foundation in this, as we believe this is an important part of onboarding new users to the network)
Long term support from our team.
We have been developing the NEAR infrastructure for a year now and are not going to stop. We are very excited to contribute to another important ecosystem service.

Greetings, after some initial testing it seems that it is working properly.
Some issues were noticed with the Metamask Flask. Install button is blocked/disabled, so in order to go through this step, flex property needed to be disabled with inspector as a workaround.

Aside from that, Near token amount is not being displayed after funding and importing Near token.

@AZbang , all good, comments added are mainly for the future reference.
In that regard, here is the recording of the flow. (transaction confirmation popup is not showing on recording though)
We have some questions about the packages:

What’s the reason behind adding an additional package, instead replacing Near Snap?

Why is Metamask name being used instead of Near, and what is idea behind the old Near Snap package, to deprecate it or to replace it? "

@DamirSQA  I didn't know if the previous metamask plugin could be removed. Did this!

Hi @AZbang ,
I left some comments regarding the last commit that needs to be addressed.
Also, these issues that are mentioned in this comment: https://github.com/near/wallet-selector/pull/849#issuecomment-1640464557 are still showing on some screens.

@erditkurteshiSQA  fixed all discussions! Also i added signMessage implementation

Also you can check mainnet guest-book demo
https://near-snap.surge.sh/

Hi @AZbang it seems that Metamask(near) snap is not working properly after changes if not still work in progress, and Angular example seems to be broken, so it would be great if you can check that out as well.

@DamirSQA Can you find out more about what doesn't work? On the video, I check that everything works correctly:
https://www.veed.io/view/d7ff74f5-83ee-4d57-a0fb-7a38c6d64de3?sharingWidget=true&panel=share
The Angular example did indeed break, however this is not related to this PR because the problem is in the build system, I tried to fix it but I'm new to Angular and couldn't fix it quickly.

@AZbang it was the issue of wrong version in Metamask, after changing to v0.5.0 it worked properly.

@AZbang In order to fix Angular you can do the next:

Install needed dependencies as devDependencies
yarn add -D path-browserify
yarn add -D util

Update paths in tsconfig.base.json in wallet-selector (root) and add:
"path": ["node_modules/path-browserify"]

This will now throw another error about the process version missing.
To fix it update polyfills.ts in angular example add version to process:
(window as any).process = { env: {}, version: "" };

@AZbang  You can just do small changes in Readme, and we'll add Angular fix after merging.


Fix false positives when the user clicks up outside the element

Prevent this function from being triggered if you mouse-down within the element, and then mouse-up outside of it. Imo, this should not count as a "click".

I completely forgot about this PR. Thank you all folks. I'll merge and publish this within this week.


dynamic module does not define module export function (PyInit_...)

Hi,
I wanted to ask if you know a way to have the generated wrapper python3 compatible. I had a try that was only usable by python2 and for python3 it gives the error:
dynamic module does not define module export function (PyInit_..)
Could the source of this issue be in the cmake scripts?
Thank you.

This modules are now maintained in scikit-build -- please try scikit-build.


[Doc] Include information/steps on how logout flow works with playground in 'Basic Client Profile with Playground' doc

'Basic Client Profile with Playground' doc [1] explains on how a user can follow through with travelocity.com and it needs to be update with information regarding to logging out operations (ex-Redirect to a logout URL after RP-initiated logout section in [2]).
Also the images need to be updated because the current images in the doc doesn't have the 'logout' button (when scope set to 'openid', there's a logout button there) in 'Get Access Token' page and 'Get User Info' page.
[1] https://docs.wso2.com/display/IS530/Basic+Client+Profile+with+Playground
[2] https://docs.wso2.com/display/IS530/Session+Management+with+Playground

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Migrate TI tab and few other pages to use standard buttons

Description
Additionally made view changes:

Switched view code from using LinkButton to use ViewUtils.makeSvgButton and removed code that no longer used.
Replaced "Remove" with "Delete" to be consistent with other pages in admin.

Release notes
Admin TI management page now uses standard buttons.
Checklist
General

[x ] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release >
[x] Created tests which fail without the change (if possible)
[ ] Extended the README / documentation, if necessary

User visible changes

[ ] Wrote browser tests using the validateAccessibility method
[ ] Manually tested at 200% size
[ ] Manually evaluated tab order

New Features

[ ] Add new FeatureFlag env vars to server/conf/application.conf
[ ] Conditioned new functionality on a FeatureFlag
[ ] Wrote browser tests with the feature flag off and on, etc.

Issue(s) this completes
Fixes #3659, Fixes #3083

@mferhut can you take a look at this PR as well updating button styles?

New standard button looks good. Open item to fix padding to the left of the icon is open for another issue.


[Commands] deprecations symfony 6.1

The $defaultName property in commands has been deprecated in Symfony 6.1
This repository is using php 7.4, we can't use the new AsCommand. The workaround is to set the name in construct.

Thanks for contributing @asuri0n !


Editing an Issues duplicates the issue

When I edit and issue it creates new identical issue.
The only diference is that it has no relation to the user story of the original issue.

fixed


Mock search response

Coverage remained the same at 80.561% when pulling 15e52ceaa4e8fc3d8414c208d203f103db385d34 on feature/add-search-api-mock into 7ce33f4d464212d3acc112e27f51121d5079b5cf on develop.


Shader builtin allowed as argument names but shadowing does not work, leads to wrong results or failed compilation

Godot version:
3.1.1
Issue description:
I discovered that it is possible to pass a global shader parameters like TIME or UV to the functions without passing it in the main vertex/fragment/light functions.
Steps to reproduce:
Write a simple shader:

Minimal reproduction project:
AShaderTestBug.zip

As mentioned by a friendly user in #33156, this can also cause shaders to break, e.g. with:
shader_type canvas_item;

vec4 f(sampler2D TEXTURE, vec2 UV, float TIME) {
	vec4 tx = texture(TEXTURE, UV);
	return tx;
}

void fragment() {
	COLOR = f(TEXTURE, UV, TIME);
}

Yeah, censoring for the win. I don't agree with merging bugs which behave differently and expected results are different, but whatever, it's your project and it seems bug issues are for engine developers, not for engine users... :disappointed:

What probably happens here is that the values for the builtin TIME, UV, TEXTURE, etc. are automatically injected in the custom function and used, overriding the parameters that use their name. So shadowing is broken, what should happen is that the function parameters should have precedence over the builtins -- or possibly this syntax should simply not be allowed, as it's confusing anyway.
Both here and in the example from #33156, the actual values passed to the method don't matter, what is used is the code inside the function itself with the builtins replaced. When using one which is specific to a custom function like TEXTURE in fragment(), the shader fails compiling.

Anyway, I'm found a way to fix this issue


Added Undo/Redo and help buttons

Added undo and redo buttons + functionality (closes #7)
Added help button (no text yet) (closes #8)

When editing, if delete 1 node after importing and then undo everything is deleted. It works if I take 2 actions and only undo 1.
How to replicate:

Open (for example) a group.
Delete a permission node.
Undo. Everything is now deleted.

Also, if you have a group with many nodes, for example 100 nodes, then the help box is displayed extremely far down. I guess it uses the page height, better would be to use window height when calculating position.

@BrainStone what's the status of this


Player will be kicked from server (1.16)

i have tried to join with the latest waterdog version, because i will kicked from any server. ( Since 1.16 and servers will not crash )
I have tested it with and without plugins.

I also get issues with players joining using 1.16.

Have you disabled xbox auth on pocketmine server?

I don't even let me log in, says "outdated server". I have the latest version of Waterdog. How did you get around this problem?

Waterdog still isn't for 1.16

Delete your old config and module and try it again

This issue can only be caused by your configuration. Waterdog itself should fully support 1.16


Simplify Gradle ktlintcheck to not build DB POJOS

This PR just removes the dependency on the Gradle KtLintCheck task to use the DB.  That dependency gets injected automatically by a Gradle plugin, but it is not needed.  This is just to keep things clean and fast.
Test Steps:

Run gradle ktlintcheck -m and verify that the flyway and jooq tasks are not listed in the dependency chain.
Run gradle clean ktlintcheck and verify the check is successful.
Change a code file to have a lint issue and rerun the check to verify the check still works.

Changes

Removed the dependency on the Gradle KtLintCheck task to use the DB

Checklist
Testing

[x] Tested locally?
[ ] Ran ./prime test or ./gradlew testSmoke against local Docker ReportStream container?
[ ] (For Changes to /frontend-react/...) Ran npm run lint:write?
[ ] Added tests?

Process

[ ] Are there licensing issues with any new dependencies introduced?
[x] Includes a summary of what a code reviewer should test/verify?
[ ] Updated the release notes?
[ ] Database changes are submitted as a separate PR?
[ ] DevOps team has been notified if PR requires ops support?

Fixes
To Be Done
Specific Security-related subjects a reviewer should pay specific attention to

Does this PR introduce new endpoints?

new endpoint A
new endpoint B

Does this PR include changes in authentication and/or authorization of existing endpoints?
Does this change introduce new dependencies that need vetting?
Does this change require changes to our infrastructure?
Does logging contain sensitive data?
Does this PR include or remove any sensitive information itself?

If you answered 'yes' to any of the questions above, conduct a detailed Review that addresses at least:

What are the potential security threats and mitigations? Please list the STRIDE threats and how they are mitigated

Spoofing (faking authenticity)

Threat T, which could be achieved by A, is mitigated by M

Tampering (influence or sabotage the integrity of information, data, or system)
Repudiation (the ability to dispute the origin or originator of an action)
Information disclosure (data made available to entities who should not have it)
Denial of service (make a resource unavailable)
Elevation of Privilege (reduce restrictions that apply or gain privileges one should not have)

Have you ensured logging does not contain sensitive data?
Have you received any additional approvals needed for this change?

Looks pretty straightforward, thank you! 🎉

Make sure to approve. Thx

@carlosfelix2 pretty sure I did; LMK if there's another box to check


docs fix spelling issues

Hey !
I fixed several spelling issues.Glad I could help .
Br, Guayaba221.

@zrbecker @alexanderbez @wllmshao Hello! Can someone take a look at this pull request and merge it if everything looks good? Let me know if any adjustments are needed. Appreciate it!


Strange Code Comments

 font = PDFType1Font(self, spec)  # this is so wrong!
I found this in the code. Is there something really wrong with this line ?
https://github.com/pdfminer/pdfminer.six/blob/master/pdfminer/pdfinterp.py#L216

It is probably so wrong because the font subtype is something unexpected or unkown and the PDFType1Font is used as a default. Not sure if this clause is ever triggered.
In general, I guess that pdfminer tries to be robust and parses all different kinds of wrong pdfs as good as possible.

This isn't the only strange comment though. A lot of comments also specify the name of the class that is defined after the comment.
Could you make a list of "strange comment types" that we should remove?

Sure, Let me grab some patience and time.

@fakabbir I appreciate it's been a while, but I'm going through all of the open issues. Are you still hoping to get around to this at some point?

@jstockwin Yes, probably I would devote some time for this and some other issues too.

That's great, thanks!


Attachments array keys & PHP

Hi!
There is a problem described below:
http://stackoverflow.com/questions/68651/get-php-to-stop-replacing-characters-in-get-or-post-arrays
http://ca.php.net/manual/en/language.variables.external.php#81080
e.g. if I have attachment file:
fileName":"Folder.jpg", "generatedFileName":"Folder.jpg"

on PHP side I'll get an array key
'Folder_jpg'

So, may be it's better to generate unique keys for attachments array OR generate "generatedFileName" to bypass that problem?
Thank you!

When several attachements have the same fileName, generatedFileName will be different from fileName, in order to get a kind of 'unique' file name.
Anyway, I am sorry but I am not sure to understand clearly the question. Do you want to identify uniquely the fileNames or to retrieve the original fileName, replacing back underscores by dots?
If the issue is uniquely identifying the attachments, you can use the contentId key, which will always be unique.

Ok, I'll try explain again.
In example here: https://github.com/Flolagale/mailin/blob/master/README.md
You wrote:
  attachments: [{
      contentType: 'text/plain',
      fileName: 'dummyFile.txt',
      contentDisposition: 'attachment',
      transferEncoding: 'base64',
      generatedFileName: 'dummyFile.txt',
      contentId: '6e4a9c577e603de61e554abab84f6297@mailparser',
      checksum: 'e9fa6319356c536b962650eda9399a44',
      length: '28'
  }],
...
'dummyFile.txt': 'a-base64-encoded-string=='

So, in that case dummyFile.txt is a key of associative array when it's posted to .php webhook. In that case, if webhook will be PHP-script (I suppose It could be similar problems with other languages) you will see:
[dummyFile_txt] => 'a-base64-encoded-string=='

or
 [Телефонный_трафик_htm] => PGh0bWw+PGhlYWQ+DQo8bWV0YSBodHRwLWVxdWl2PSJjb250ZW50LXR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1VVEYtOCI+DQo8dGl0bGU+0KLQtdC70LXRhNC+

in my test case.

So all I'm saying is that it having filename as array key is unsafe in case wehook could be written in languages other than JS.
Yes, there is a workaround like:
function _fixed_name($name) {
    return str_replace(array(chr(32), chr(46), chr(91), chr(128), chr(129), chr(130), chr(131), chr(132), chr(133), chr(134), chr(135), chr(136), chr(137), chr(138), chr(139), chr(140), chr(141), chr(142), chr(143), chr(144), chr(145), chr(146), chr(147), chr(148), chr(149), chr(150), chr(151), chr(152), chr(153), chr(154), chr(155), chr(156), chr(157), chr(158), chr(159)), '_', $name);
}

but even in that case, if you have 2 different files in one message with, for example, such names:
name .jpg
AND
name_.jpg

They all will be converted by this function to name__.jpg.
So, in that case I think that array key should be safe (e.g. base64), or just some unique id, which would also present in attachments[], but not a filename.
Or just change fileName to contentId for array key, e.g:
 '6e4a9c577e603de61e554abab84f6297@mailparser': 'a-base64-encoded-string=='

NOT
 'dummyFile.txt': 'a-base64-encoded-string=='

Hope I could explain it.

Ok, you made an interesting point. Using the contentId as the key is a good idea, but it introduces some breaking changes to the API. I will implement it but I would like to make sure that it is absolutely necessary. Could you please answer to the 2 following questions to verify this?

For now, the attachment array key is supposed to be the generatedFileName. In your example, the filename is Телефонный_трафик_htm, what is the value of the associated generatedFileName?
The case that you described (2 attached files 'Телефонный_трафик_.htm' and 'Телефонный_трафик .htm') should this still lead to 2 different generatedFilenames. Could you try it and post the resulting generatedFileNames here?

[attachments] => Array
    (
        [0] => stdClass Object
            (
                [contentType] => text/html
                [charset] => utf-8
                [fileName] => Телефонный трафик.htm
                [transferEncoding] => base64
                [contentDisposition] => attachment
                [generatedFileName] => Телефонный трафик.htm
                [contentId] => 8184317dea9324c49f3ada75a10fff4a@mailparser
                [checksum] => 6f34800999d4a4b504737f87488f9d0a
                [length] => 123797
            )

    )
... ...
[Телефонный_трафик_htm] => PGh0bWw+PGhlYWQ+DQo8bWV0YSBodHRwLWVxdWl...

As I wrote:
...names: name .jpg AND name_.jpg
They all will be converted by this function to name__.jpg.

first name is "name.jpg" and second is "name.jpg"

So, okay, I did the following:
 attachments:
   [ { contentType: 'text/plain',
       charset: 'utf-8',
       fileName: 'test.txt',
       contentDisposition: 'attachment',
       transferEncoding: 'base64',
       generatedFileName: 'test.txt',
       contentId: 'dd18bf3a8e0a2a3e53e2661c7fb53534@mailparser',
       checksum: 'c4ca4238a0b923820dcc509a6f75849b',
       length: 1 },
     { contentType: 'application/octet-stream',
       fileName: 'test txt',
       contentDisposition: 'attachment',
       transferEncoding: 'base64',
       generatedFileName: 'test txt',
       contentId: '62c97d2c2bdfba2320083770dfb45ec9@mailparser',
       checksum: 'c4ca4238a0b923820dcc509a6f75849b',
       length: 1 } ],

from mailing logs.

Got from PHP webhook dump:
array (
  'mailinMsg' => '{"html":"

С уважением,
Александр

\\r\\n
\\r\\n","text":"С уважением,\\r\\n Александр\\r\\n","headers":{"received":["by mail-lb0-f173.google.com with SMTP id z12so3832792lbi.4 for<EMAIL_ADDRESS>Tue, 13 Jan 2015 09:36:48 -0800 (PST)","by <IP_ADDRESS> with HTTP; Tue, 13 Jan 2015 09:36:47 -0800 (PST)"],"dkim-signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dYMvmrvXOgQGoMnYLjdafuYr13T28MPpE81CHhknhK4=; b=pILxOJ4uSbK+ZZCJjR6hjwQ63U5b0QLjg2hnKqjnCcIlKd6WtAJrn0X2YCfzhJ+D31 xOf2tiFuW4SN5FGy/HHuXQ20q41Nu5GBpNDjjetMOpDwLNVd5/s0M3Nd3DVK9TCPBLzm T6/emGi8S5C1gQvNXYsowzybUluFKIUyLR3QL1UMx0wYWJxTFnvycB5xg83w9rFiLycg tOTMYA5X3cfcNp6fUNd8XfLrzcW+29MoREU/ub5HSeqQ14mZPbb+b3y3zoscVGxf7tKu nCoLHKSo1N1N7lk2P8zy7e2QgJpbC4WBnWnh3VA9E11DqEuCRZQiKpt8ZkTgddkck3Ti oWQA==","mime-version":"1.0","x-received":"by <IP_ADDRESS> with SMTP id f7mr43671696lam.92.1421170608225; Tue, 13 Jan 2015 09:36:48 -0800 (PST)","date":"Tue, 13 Jan 2015 20:36:47 +0300","message-id":"<CAKyjARYsHu-GLbnXDtGhHRkLRk8CCEevbSoKxHnW7ydWYgefAw@mail.gmail.com>","subject":"test","from":"Александр  <to.naive@gmail.com>","to":"test@mail.xhttp.ru","content-type":"multipart/mixed; boundary=089e0158c40e44dccf050c8c1162"},"subject":"test","messageId":"CAKyjARYsHu-GLbnXDtGhHRkLRk8CCEevbSoKxHnW7ydWYgefAw@mail.gmail.com","priority":"normal","from":[{"address":"to.naive@gmail.com","name":"Александр"}],"to":[{"address":"test@mail.xhttp.ru","name":""}],"date":"2015-01-13T17:36:47.000Z","attachments":[{"contentType":"text/plain","charset":"utf-8","fileName":"test.txt","contentDisposition":"attachment","transferEncoding":"base64","generatedFileName":"test.txt","contentId":"dd18bf3a8e0a2a3e53e2661c7fb53534@mailparser","checksum":"c4ca4238a0b923820dcc509a6f75849b","length":1},{"contentType":"application/octet-stream","fileName":"test txt","contentDisposition":"attachment","transferEncoding":"base64","generatedFileName":"test txt","contentId":"62c97d2c2bdfba2320083770dfb45ec9@mailparser","checksum":"c4ca4238a0b923820dcc509a6f75849b","length":1}],"dkim":"pass","spf":"pass","spamScore":0,"language":"bulgarian","cc":[],"connection":{"from":"to.naive@gmail.com","to":["test@mail.xhttp.ru"],"remoteAddress":"<IP_ADDRESS>","authentication":{"username":false,"authenticated":false,"state":"NORMAL"},"id":"238dead6"},"envelopeFrom":[{"address":"to.naive@gmail.com","name":""}],"envelopeTo":[{"address":"test@mail.xhttp.ru","name":""}]}',
  'test_txt' => 'MQ==',
)

So you see just 1 file test_txt.
And I don't know for sure all symbols that could be replaced.

Also in the same dump you may see the problem with envelopeFrom.

Any news?

My workaround isn't working with chr(128) - chr(159), because:
_fixed_name('Телефонный траффик.htm')
gives:
Теле�_онн�_й_�_�_а�_ик_htm

Sorry I have been very busy lately, I did not get the time to fix this. I think we will use the contentId as a key. I will keep you posted!

ContentID could also have dots, as I understand.
May be its better to add one more I'D or just use an iterator? or put content inside attachments array.

Is this necessarily a security issue in PHP? You mention it being unsafe but is it not rather an inconvenience? I agree that the dot notation should probably be revised since even in JS it's not exactly semantic (. being the object/property separator) but just wanted to check that it isn't exactly an urgent security vulnerability?


Revert 2b3dcc4a391b15d5e03cdfb1e8a240cc74cdbc31 (Remove redis)

This commit reverts 2b3dcc4a391b15d5e03cdfb1e8a240cc74cdbc31 (Remove redis) and adapts it to use openstackversion and newer improvements.

recheck

recheck

recheck

recheck

/lgtm


Make Gradle look way better

Dont touch this code, it works after bashing gradle in the head for a couple hours.

This does have some side effects, but they don't seem to impact the compilation, mostly the pom.xml and .module files, but it should be fine :tm:

I know we aren't using kotlin dsl, but is there a way to express library(testmod = true) or something like it? The braces are fine if there is no real other option.

It's easy if we're writing our gradle plugin in Groovy like you're intended to, but from my limited research its impossible in Gradle unless we do something like this

I know we aren't using kotlin dsl, but is there a way to express module(testmod = true) or something like it? The braces are fine if there is no real other option.

I do not know. I assume not, as the gradle systems I am using do not allow it. I do plan on moving to an enum for the different configurations though.

I'd really like to see a comprehensive example of this system somewhere accessible, so that newbies can find all the things they can do with dependencies without trying to read undocumented Gradle code or sifting through a ton of module buildscripts.

Documented in CONTRIBUTING.md

I know we aren't using kotlin dsl, but is there a way to express module(testmod = true) or something like it? The braces are fine if there is no real other option.

@i509VCB Gradle plugins for groovy dsl tend to use maps for that: module(testmod: true)

This PR has entered its final comment period, to end on Saturday as this is not a change affecting the public API.


passing multiple parameters from tick script to python UDF without json structure

I have implemented tick script with multiple parameters using json like structure:
var knum = 3
var alpha = 0.001

var data = batch
    |query('''select a1 as axis1, a2 as axis2, a3 as axis3 from robot.autogen.axes''')
        .period(1m)
        .every(1m)
       |eval(lambda:'{"axis1":'+'"'+string("axis1")+'"'+',"axis2":'+'"'+string("axis2")+'"'+',"axis3":'+'"'+string("axis3")+'"'+'}')
    .as('value')

data
    @kmeansjson()
        .field('value')
        .size(60)
        .alpha(alpha)
        .knum(knum)
    |influxDBOut()
        .database('robot')
        .retentionPolicy('autogen')
        .measurement('kmeansgen')

Now I want to implement the same thing without considering the json concept.
Please help me in this regard.

@ChandanKundu I am not sure what you are trying to accomplish. Can you provide some broader context? What are you trying to do with passing multiple parameters to the UDF? Do these parameters vary per data point? Or are they static for the lifetime of a UDF?

Dear Nathaniel,
Thank you very much for showing interest on my question. My objective is to
perform k-means clustering in UDF (python) in batch mode. The user will
select the variable names along with number of clusters in runtime. As per
my knowledge, it is not possible to select variable names from kapacitor(
if possible, please give me suggestion). Therefore, the user will use one
UI to select name of variables and number of clusters. I have used json
like structure that will be read by python UDF to perform clustering. Now,
my question is, is there any other options that can be used to achieve the
same. Thanks once again.
Thanks & Regards.
Chandan

Chandan KunduSr. Data ScientistDSI,Usha Martin TechnologiesPS Srijan Tech
Park, DN 52, Sector V, 4th Floor, Salt Lake City, Kolkata 700091,  IndiaMob
No.-7685823604.

A UDF can declare the options it needs to initialize. An example TICKscript using a kmeans UDF could look like this.
batch
   |query('...')
   @kmeans()
      .numClusters(3)
      .fieldName('value')

If you want those options to be configurable per task use vars and templates.
var field_name = 'value'
var num_clusters = 3

batch
   |query('...')
   @kmeans()
      .numClusters(num_clusters)
      .fieldName(field_name)


Velocity hover handler

In  #75 I've included a twist message handler in the cflib backend of the crazyflie server, but this PR proposes another way.
It includes:

crazyflie/scripts/vel_mux.py: an node that handles incoming twist messages by first letting the crazyflie take off properly, send Hover msgs for the crazyflie_server.py and also enable proper landing
crazyflie/scripts/crazyflie_server.py: a new subscriber that listens to /cmd_hover, with the Hover message from crazyflie_interfaces. This uses the commander.send_hover_setpoints() functionality of the cflib. The old cmd_vel_2d command has been removed
crazyflie_examples/launch/keyboard_teleop_velmux_launch.py: an example launch file that opens the cflib backend server and the vel_mux node, so that the crazyflie that is given to the parameters will react accordingly to incoming twist messages.

hmm seems that the dependency retrieval of the doc CI is a bit flaky... I'll try again tomorrow

forgot to mention this was related to #73 and closes #45