Pip install does not work

Unable to pip install...
Python 3.8.0
pip 19.3.1
macOS 10.14.6
$ pip install clang-format
ERROR: Could not find a version that satisfies the requirement clang-format (from versions: none)
ERROR: No matching distribution found for clang-format

Thanks for the report.
Which operating system?

macOS 10.14.6

Ah, thanks.  So far I've only built them for linux (as that's my primary platform).  I don't have a lot of experience supporting macOS, but I will see what I can do.

Ah ok - I was a little unsure about what the package was providing.
Could it be worth hosting/wrapping the statically built binaries from llvm?
The specific use case was that I wanted the binaries installable through pip for consistency across developers and CI

Yup, I looked at what they were providing - just need to write some scripts to wrap it up.  Unfortunately, it looks like they don't build macOS versions of all their releases, only the 'major' ones.
The goal of this project is exactly what you want though - make CI easy so that the clang-format version can be consistently used.

I may be able to lend a hand in places then 👍

The same issue is seen on Windows:
Python 3.7.4
pip 20.0.2
OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.18362 N/A Build 18362
`python -m pip search clang-format | grep clang-format
clang-format (9.0.0)                 - pip installable clang-format
python -m pip install clang-format
ERROR: Could not find a version that satisfies the requirement clang-format (from versions: none)
ERROR: No matching distribution found for clang-format
`
I think the confusing thing is that pip shows you that there is an existing package, even if it is not available for your platform.

@mgevaert @nebbles any ideas what the fix for this is?
I get the following errors when running pip install clang-format on my Mac:
ERROR: Could not find a version that satisfies the requirement clang-format (from versions: none)
ERROR: No matching distribution found for clang-format

My python version is 3.6, pip version is 20.2.3 and Mac OS Mojave version 10.14.6.

My workaround at the time which I have not readdressed was to download and commit the static binaries for mac (which I linked in an earlier message).
I added these binaries to the git project that needed it under the bin/clang-format/ directory, and then committed it to git. I use VSCode along with the other developers in my company and I linked the custom clang-format binaries path to the VSCode formatter using the platform-settings extension which allows us to use the binaries based on platform.
Since updating clang-format is a very rare task we take on, just downloading and committing a recent version of the binary turned out to work quite well! Hope this helps

Almost the same as here:

@mgevaert @nebbles any ideas what the fix for this is?
I get the following errors when running pip install clang-format on my Mac:
ERROR: Could not find a version that satisfies the requirement clang-format (from versions: none)
ERROR: No matching distribution found for clang-format

My python version is 3.6, pip version is 20.2.3 and Mac OS Mojave version 10.14.6.

As @nightlark said, MacOS builds are now available for newer versions of clang-format. Please report any issues you might find with them.

FYI, I tested this on Apple Silicon, and it works beautifully. :)


integer overflow

The sqlite integer value should stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.
But on android, I tried two of my android phones
create table bbb (b integer)
insert into bbb(b) values<PHONE_NUMBER>878)  // time millisecond
select * from bbb
It turns out  b = -1545541762
I change the type integer to int int8 bigint and it is always the same result. unless I use real.
I'm not sure the problem related to this driver. But on ios it has no problem.

I check my sqlite version with 'select sqlite_version()'
It's   3.7.11

Did you try to debug the Android module and see what comes out of the db call?

I'm sorry but I dont know which android method to start debug with.
Could you tell me the code related to this function so I could use android studio to see the values come out.

I think it could be the problem as the result comes out as a java int type. It's only 4 bytes.

You can start here:
public void executeSqlBatch(ReadableMap args, Callback success, Callback error)

Did you try both pure java and native Android implementations ?

Yes, both android and android-native implementation I tried have this problem

Android impl always fetches values for colums of INT type as long....

i found something...maybe it will fix the issue...i should be able to commit it soon..

Can you check the pure Java implementation? I adjusted some conversions...

I've tried it. It fixed the problem. Really Awesome!

Great. I also updated native impl now.

Just one more question, should I use native impl in production environment or both impl will be ok?

both fully working. Your choice.

Fixed in 2.1.5

Problem reappeared on Android devices in v3.3.5, though v3.3.4 is working fine.

yes, i spotted the issue. I will fix it and release 3.3.6 tomorrow - thanks for reporting..


How to Set a Specific Width for DropdownSearch

Hi,
I’m using the DropdownSearch widget in my Flutter project and need to set a specific width for the dropdown

just use constraints property of popupProps.


[App]: [Cli]: Report crashes when offline runs are synced in real time

Current Behavior
I was editing a report on the web app that contained graphs from an offline run that was still running. To update the graphs, I called wandb sync --sync-all. This caused the webpage to crash and also the sync failed. *Note - the report was open in edit mode while the runs were synced.
Expected Behavior
No response
Steps To Reproduce

Create a report of an offline run that is still running.
While in edit mode for the report, sync the offline run.

Screenshots
No response
Environment
OS: Ventura 13.1 Beta (22C5050e)
Browsers: Safari Version 16.2 (186<IP_ADDRESS>.2)
Version: Wandb 0.13.6
The code is running in a remote host : Ubuntu 20.04.5 LTS (Focal Fossa)
Additional Context
No response

Hi @Vishu26, are you able to access the report after refreshing or is the report still not accessible? I can work on reproducing on my end as well.
Thank you,
Nate

Hi @Vishu26 could you send me the URL of your report? I wasn't able to replicate on my side.
I tried creating a report and syncing an offline run while I was editing the report but the additional run just showed up in the runset and it updated the charts so it may be related to a particular chart you are using.
Thank you,
Nate

I think the issue was very random. It does not happen right now for me. The link to the report is - https://wandb.ai/vishu26/my-test-project/reports/FFCV-Evaluations--VmlldzozMTM2NDUz?accessToken=xwvk38rkupqe7yq1p5ey2vud58ghspzr7lx6l09zwb3brmlzt57hqnv88ovh9vyo

Hi @Vishu26, I just wanted to follow up on this. If you get the option to report the issue via Sentry next time this comes up could you try doing that? If not, I will probably need to see the console tab when inspecting the page to see which query is causing the page to crash

Hi @nate-wandb. Yes I did get an option to report through sentry. I will try doing that next time!

Thank you! This will give the engineering team more insight into what happened that caused it. You can post the console errors here as well and I can take a look but I'll close the issue for now and we can see if it comes up again.
Thank you,
Nate


Figure out how to make ad-hoc doc edits land on master rather than live

I just noticed that when you edit a documentation article at https://docs.microsoft.com/dotnet it takes you to GitHub to propose a change on the mater branch. On our repo these changes always land in the live branch which is sometimes a bit of hassle.
cc @mairaw do you know how to change this?

Yep. I'll create a PR.


ImportError: cannot import name 'sparse_quantize' from 'torchsparse.utils'

This error happens in the last version 1.4.0

This error still exists in your tutorial notebook! even if using 1.4.0
Could you please check that?


If you move the folder and let Maestral know the new folder path, Maestral downloads them all again

Describe the bug
Quit Maestral.
Moved the Dropbox folder out in new partition.
Formatted the old partition.
Moved Dropbox folder back in.
The old partition is mounted at a different mountpoint (e.g. /media/user/intdata instead of /media/user/data).
Opening Maestral, it complains that the folder cannot be found anymore (of course it keeps looking for /media/user/data).
It asks to "unlink" the account or insert a location to (re-download?) the folder.
I put in the new location of the Dropbox folder (in /media/user/intdata).
Click Ok.
Maestral shows that the folder is not empty (I don't remember the exact dialogs now....), and asks what you want to do with it. I pressed "Merge". Then Maestral asks which remote folders you want to sync, and all remote folders are selected, even though only a few of the remote folders are in the local folder. I manually unselected the remote folders that are not in local.
But Maestral nevertheless created all the remote folders in local and is now syncing.
I suppose that when the sync finished only the effectively selected remote folders will be in local?
To Reproduce
See above
Expected behaviour
Maestral should recognize that the new local folder is an "old" (?) sync, and only selects those remote folders that were syncing before. Maybe track which folders are being synced in a .maestral/synced file inside the Dropbox folder?
Or chage the "Merge" into "This folder is a previous sync".
Of course it is perfectly possible that in the meantime remote contents have changed, so Maestral should sync again and is expected to do so, but only for the folders that were previously syncing.
At the very least, manually unselecting not synced folders should prevent Maestral to download them all.
System:

Maestral version: 1.4.2
OS: [e.g. Ubuntu] Ubuntu 20.10
Desktop environment: [e.g. Gnome 3.32] GNOME 3.38
PyQt version (for Linux GUI):
PyQt5==5.15.0
PyQt5-Qt==5.15.2
PyQt5-sip==12.8.1

Then Maestral asks which remote folders you want to sync, and all remote folders are selected, even though only a few of the remote folders are in the local folder. I manually unselected the remote folders that are not in local.

It should remember which folder where selected, though I'll have to double check what the Linux GUI does when it cannot find the local Dropbox folder. It might just be that it resets some of the sync settings.

At the very least, manually unselecting not synced folders should prevent Maestral to download them all.

Again, it should and it typically does. Could you post / upload the log file?

This should be fixed in v1.4.4.


[stable/prometheus-adapter] Added pod annotations to chart.

Upgraded chart to latest version of image
Signed-off-by: Aaron Mell<EMAIL_ADDRESS>What this PR does / why we need it:
I needed to add some pod annotations, which the chart doesn't support. Also, the version was outdated.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/ok-to-test

@steven-sheehy Code review changes made

/lgtm
Thanks!


TeamCity module not working on the first run

Hey,
I added Cake.BuildSystems.Module to tools/Modules/packages.config as described.
The first run on TeamCity the module is not working. If I run it the second time it is.
So whenever a new Branch "runs" on the TeamCity server the module is not working since you "run" the branch a second time. The Cake.BuildSystems.Module folder and its content itself I did not check into source control. What am I doing wrong?

That's a bit odd, and I haven't seen that before 😐
Can you get a run with Diagnostic Verbosity and upload the log to Gist/pastebin/etc (make sure to obfuscate any sensitive info)? That might give some hints...

Latest versions. Cake 0.30.0, BuildSystems.Module 0.3.1
When I inspect the logs on the first run there is:
[13:38:02] :	 [Step 2/2] Preparing to run build script...
[13:38:04] :	 [Step 2/2] Running build script...
[13:38:04] :	 [Step 2/2] Module directory does not exist.
[13:38:04] :	 [Step 2/2] NuGet.config not found.
[13:38:04] :	 [Step 2/2] Analyzing build script...
[13:38:04] :	 [Step 2/2] Analyzing C:/TeamCity/buildAgent3/work/80c1d37f1bf12ba5/PSS/App/build.cake...
[13:38:04] :	 [Step 2/2] Processing build script...
[13:38:04] :	 [Step 2/2] Installing tools...
.....
[13:38:05] :	 [Step 2/2] Installing addins...
so it is only installing Tools and Addins
When the script is build a second time, the log looks like:
[13:39:56]
[Step 2/2] Preparing to run build script...
[13:39:59]
[Step 2/2] Running build script...
[13:39:59]
[Step 2/2] Verifying assembly 'Cake.MyGet.Module, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
[13:39:59]
[Step 2/2] Verifying assembly 'Cake.TeamCity.Module, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
[13:39:59]
[Step 2/2] Verifying assembly 'Cake.TFBuild.Module, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
[13:39:59]
[Step 2/2] Verifying assembly 'Cake.TravisCI.Module, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
[13:39:59]
[Step 2/2] Registering module Cake.MyGet.Module.MyGetModule...
[13:39:59]
[Step 2/2] Registering module Cake.TeamCity.Module.TeamCityModule...
[13:39:59]
[Step 2/2] Registering module Cake.TFBuild.Module.TFBuildModule...
[13:39:59]
[Step 2/2] Registering module Cake.TravisCI.Module.TravisCIModule...
[13:40:00]
[Step 2/2] Verifying assembly 'Cake.Git, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
[13:40:00]
[Step 2/2] Verifying assembly 'LibGit2Sharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cbde695407f0333'.
[13:40:00]
[Step 2/2] Verifying assembly 'ICSharpCode.SharpZipLib, Version=<IP_ADDRESS>9, Culture=neutral, PublicKeyToken=1b03e6acf1164f73'.
[13:40:00]
[Step 2/2] Verifying assembly 'Cake.Compression, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
And everything works like expected.

Sorry, really late reply here.

[13:38:04] : [Step 2/2] Module directory does not exist.

I only get this output line, when I forget to bootstrap the module.
i.e. If you're normally running .\build.ps1 cake.build --targe=Default, be sure to also run .\build.ps1 cake.build --bootstrap first.

Sorry, really late reply here.

[13:38:04] : [Step 2/2] Module directory does not exist.

I only get this output line, when I forget to bootstrap the module.
i.e. If you're normally running .\build.ps1 cake.build --targe=Default, be sure to also run .\build.ps1 cake.build --bootstrap first.

Since this is an older issue and I am currently unable to reproduce the problem, I'll go ahead and close this issue.
If the problem persists, feel free to open a new issue.


Support multiple field overrides

@kubernetes-sigs/federation-wg
cc @marun @shashidharatd

@irfanurrehman You'll need to update hack/download-binaries.sh to download kubebuilder 1.0.4 for ci to pass.

@irfanurrehman You'll need to update hack/download-binaries.sh to download kubebuilder 1.0.4 for ci to pass

@marun thanks for the tip. Updated!

For some weird reason, however, the integration test passes for me locally, which it should not.
I think I will need to skip check for spec.completions update in Jobs crud test (the update fails because spec.completions is immutable.
@marun, you have a better suggestion?

@marun Updated! FYI, I did also add a field in the default fixture yamls relevant to Deployment to enable testing out multiple overrides.

/lgtm
Thank you!


Expose Image Builder on /composer, not /welder

@martinpitt do we need to do something special in the spec file to make updates work correctly?

@jkozol : https://github.com/cockpit-project/bots/pull/134 ought to fix that fedora-31 failure.

@jkozol: Now fedora-31 fails later on:
+ yum install -y nodejs
/var/tmp/vm.install: line 18: yum: command not found

That needs to be fixed in cockpit-composer properly.
Landing this PR now, no need to stall it further.


Permission denied on nodejs-express

Describe the bug
The final application built using the nodejs-express collection fails with the following error:
$ oc logs nodejs-express-mac-6b9d77df57-j2hp2
><EMAIL_ADDRESS>start /project
> node server.js
internal/modules/cjs/loader.js:807
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^
Error: /project/node_modules/appmetrics/appmetrics.node: cannot open shared object file: Permission denied
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/project/node_modules/appmetrics/index.js:44:15)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

To Reproduce

Build collections repository using buildah instead of docker.
Build application using the nodejs-express stack or just examine the permissions in the /project/node_modules/appmetrics/ directory on the nodejs-express stack image

Expected behavior
Application starts successfully and all is good.
Actual behaviour
Application does not start successfully and all is NOT good.
Environment Details (please complete the following information):

OCP 4.2
Collections built with buildah

Additional context
I think this might be a bug in buildah but cannot validate that because there are other problems with using buildah version > 1.9.0.

Given that https://github.com/kabanero-io/collections/pull/225 and https://github.com/kabanero-io/collections/pull/227 were merged, I think we can say that this issue has been addressed.


Add code coverage reporting

Use the pytest-cov plugin to do coverage reporting. Running tests
locally with pytest will output the report. In the Travis-CI builds,
this report will automatically be uploaded to codecov.io.
Closes #88.
I believe that @hickford will need to create a codecov.io account to set up the integration with Travis-CI and to enable the codecov badge in the README. I know that he already has a coveralls account, but I think codecov.io is the better choice.
See the codecov.io page for my fork to see the effects of this PR.

Codecov Report

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

@@            Coverage Diff            @@
##             master      #95   +/-   ##
=========================================
  Coverage          ?   83.06%
=========================================
  Files             ?        4
  Lines             ?      313
  Branches          ?        0
=========================================
  Hits              ?      260
  Misses            ?       53
  Partials          ?        0

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 ed48d29...236b1e1. Read the comment docs.

Thanks. There was indeed a bit more magic needed than my attempt ;-).

OK, it seems everything just works.
Eagerly waiting for other PR to improve tests, so that we can see the curve moving up ;-).

Yes, it looks like it will work, but @hickford should be able to enable webhooks for Codecov if he signs in there. The webhook for the coverage reports is a bit more streamlined than these comments that it's currently posting.


I would like to soil mask non-georeferenced images

Please describe your request. Is your feature request related to a problem?
Right now all images must be geo-referenced to have their soli masked. It would be useful to have non-georeferenced images soil masked for ML and other tasks
Describe the solution you'd like
Able to soil mask non-georeferenced images
Describe alternatives you've considered
None
Additional context
None

This affects:

[x] transformer-soilmask
[x] transformer-soilmask-by-ratio


Re-add MultiTarget to project.

Somehow this file got orphaned.

Current coverage is 83.36% (diff: 100%)

Merging #869 into master will not change coverage

@@             master       #869   diff @@
==========================================
  Files            34         34
  Lines          2783       2783
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           2320       2320
  Misses          463        463
  Partials          0          0

Powered by Codecov. Last update f90a124...ec63660


Private s3 storage for SQLite db

Hello SQL pages team!
First of all, thank you for your work, it is at least very interesting and unusual.
I'm using a tool Grist for the development of sqlite databases. In my opinion, SQl Pages will go well with this tool.
Grist same as Litestream can push latest version of database to private S3 bucket.
Please consider connecting to s3 private repositories for streaming sqlite databases as datasources for SQL Pages.

Hi Vladimir, and welcome to SQLPage!
Is there something specific preventing you from using Litestream? It’s indeed a great tool and should work well with SQLPage. If you're having trouble integrating the two, I’d be happy to help!

Thanks for the answer, I really don't see any problems for the URL from pulic bucket, but unfortunately I don't know how to get data from a private bucket. We need to use credentials. I wanted to suggest considering using the built-in s3 client in sql pages. I'm sorry if the question is stupid, I just started to figure it out.

Litestream does already work with private s3 buckets. Can you follow the tutorial at https://litestream.io/getting-started/ and tell me where it doesn't work for you, if you encounter an issue ?

Ow, i see now you mean Restoring your database
But i mean direct connecting to url s3://mybkt.localhost:9000/fruits.db directly from SQLPages app, if is it possible ofcourse.

Your database will be downloaded from s3 on start, then continuously streamed back to it, which is fast and failure-proof.


Facebook does not appear, Twitter does

For some reason, the facebook share button does not appear, when I call
    Social.activityView({text:"Hello World!"});

but the Twitter button does.
I've installed the Facebook app and logged into my account, but it does not appear.
I've tried it on a iPhone 5S, iPhone 6 and iPhone 6 Plus, but with no success.
They're all on the lates iOS version, so I can't tell if it would work on older versions.
Is this a problem with this library or has Facebook removed this feature from their app?

Having the same problem on an iPad 2 with a fresh install of the Facebook app (have started it and logged in).

Same problem on iPad with Ti 3.5.0 on iOS 8. Twitter, Evernote and others appears but Facebook is not present on the activity shown.

I am experiencing this as well on iOS 8.3.  Social.isFacebookSupported() returns true however no Facebook option.

same problem on ipod and iphone with Ti 4.0.0 RC2 on IOS 8.3 ,8.2,8.1. Pinterest, Whatssapp and others appears but Facebook don´t.
and same Social.isFacebookSupported()  returns true on Facebook but doesn´t appear on the activity.

have this problem as well, in 3.5.1GA, facebook not showing though the Social.isFacebookSupported() returns true

Works!! Using the workaround with the url parameter. Thanks to @dyan02

Would you mind posting or linking the workaround you mention @fcjurado ?

@bitfabrikken The payload you should send to the activityPopover would be like. Not only the text:
var payload = {     text: "Text to share",     url: "http://example.com" }
In v.1.7.10, new feature added was: missing URL option to iPad activity sheet.
Now, Facebook appears on the list, but no text is displayed when sharing


chore: Add NETWORK_CACHE env variables

Follow-up to https://github.com/artsy/force/pull/8033
This makes it so that our network cache is configurable via ENV vars.
Todo:

[x] Update NETWORK_CACHE_SIZE on staging
[x] Update NETWORK_CACHE_SIZE on prod
[x] Update NETWORK_CACHE_TTL on staging
[x] Update NETWORK_CACHE_TTL on prod

Do these need to be repeated in mobile/config.coffee - nope, no relay in our mobile code


GazeboSceneViewer demo is broken

Environment

OS Version: Ubuntu 18.04

Source or binary build?
ign-rendering6 pre2 (main branch, commit d2ff058e0b93d61cec514ead5293f6f53c2c8597)

Here's the backtrace:

Thread 1 "gazebo_scene_vi" received signal SIGSEGV, Segmentation fault.
0x00007fffee3772a8 in std::_Rb_tree<unsigned int, std::pair<unsigned int const, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > > >, std::_Select1st<std::pair<unsigned int const, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > > > >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > > > > >::find (
    __k=<synthetic pointer>: 0, this=0x30) at /usr/include/c++/8/bits/stl_tree.h:2556
2556	    _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
(gdb) bt
#0  0x00007fffee3772a8 in std::_Rb_tree<unsigned int, std::pair<unsigned int const, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > > >, std::_Select1st<std::pair<unsigned int const, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > > > >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > > > > >::find(unsigned int const&) const (__k=<synthetic pointer>: 0, this=0x30) at /usr/include/c++/8/bits/stl_tree.h:2556
#1  0x00007fffee3772a8 in std::map<unsigned int, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, std::vector<ignition::math::v6::Vector2<double>, std::allocator<ignition::math::v6::Vector2<double> > > > > >::find(unsigned int const&) const (__x=<synthetic pointer>: 0, this=0x30)
    at /usr/include/c++/8/bits/stl_map.h:1194
#2  0x00007fffee3772a8 in ignition::common::SubMesh::TexCoordCountBySet(unsigned int) const (this=this@entry=0x7fffffffcd50, _setIndex=_setIndex@entry=0)
    at /home/osrf/code/ign_f_ws2/src/ign-common/graphics/src/SubMesh.cc:457
#3  0x00007fffc320e9a5 in ignition::rendering::v6::OgreMeshFactory::LoadImpl(ignition::rendering::v6::MeshDescriptor const&) (this=0x55555606e5f0, _desc=...)
    at /home/osrf/code/ign_f_ws2/src/ign-rendering/ogre/src/OgreMeshFactory.cc:303
#4  0x00007fffc320d7f4 in ignition::rendering::v6::OgreMeshFactory::OgreEntity(ignition::rendering::v6::MeshDescriptor const&) (this=0x55555606e5f0, _desc=...)
    at /home/osrf/code/ign_f_ws2/src/ign-rendering/ogre/src/OgreMeshFactory.cc:76
#5  0x00007fffc32129a0 in ignition::rendering::v6::OgreMeshFactory::Create(ignition::rendering::v6::MeshDescriptor const&) (this=0x55555606e5f0, _desc=...)
    at /home/osrf/code/ign_f_ws2/src/ign-rendering/ogre/src/OgreMeshFactory.cc:59
#6  0x00007fffc32293d0 in ignition::rendering::v6::OgreScene::CreateMeshImpl(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ignition::rendering::v6::MeshDescriptor const&) (this=0x555555b03140, _id=65524, _name="scene::Cylinder(65524)", _desc=...)
    at /usr/include/c++/8/bits/shared_ptr_base.h:1018
#7  0x00007fffc322891f in ignition::rendering::v6::OgreScene::CreateMeshImpl(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x555555b03140, _id=65524, _name="scene::Cylinder(65524)", _meshName=...) at /home/osrf/code/ign_f_ws2/src/ign-rendering/ogre/src/OgreScene.cc:538
#8  0x00007fffc322a2f7 in ignition::rendering::v6::OgreScene::CreateCylinderImpl(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x555555b03140, _id=65524, _name="scene::Cylinder(65524)") at /usr/include/c++/8/bits/basic_string.h:252
#9  0x00007ffff5b7e47e in ignition::rendering::v6::BaseScene::CreateCylinder() (this=0x555555b03140)
    at /home/osrf/code/ign_f_ws2/src/ign-rendering/src/base/BaseScene.cc:1156
#10 0x0000555555585eef in ignition::rendering::SubSceneManager::ProcessCylinder(gazebo::msgs::Geometry const&, std::shared_ptr<ignition::rendering::v6::Visual>) ()
#11 0x0000555555585a57 in ignition::rendering::SubSceneManager::ProcessGeometry(gazebo::msgs::Geometry const&, std::shared_ptr<ignition::rendering::v6::Visual>) ()
#12 0x0000555555585002 in ignition::rendering::SubSceneManager::ProcessVisual(gazebo::msgs::Visual const&, std::shared_ptr<ignition::rendering::v6::Visual>) ()

Description

Expected behavior: run gazebo_scene_viewer and the window shows up
Actual behavior: gazebo_scene_viewer crashes

Steps to reproduce

follow the tutorial: https://ignitionrobotics.org/api/rendering/6.0/gazebo_scene_viewer.html
demo crashes when running ./gazebo_scene_viewer

Hi Ian,
I tried to solve this one ... so somehow I figured out that the problem arises when linking with ${GAZEBO_LIBRARIES}.
You can confirm this by adding ${GAZEBO_LIBRARIES} to the CMakeLists.txt of an example like simple_demo (it will break as well).
Do you perhaps have an idea of what could be happening?

I think the problem is that gazebo has its own set of ignition dependencies with versions that are different from the ones in ign-rendering, e.g. gazebo11 depends on ign-common3 while ign-rendering depends on ign-common4, and this causes weird issues when the same library of different versions are loaded at the same time. I'm not sure what the best solution is though.

Yeah, this is most probably the issue here.
I'll probably think about it for a bit, if I came across a good solution I'll share it then.

Are there any updates on this issue?

no updates on this

the gazebo_scene_viewer example is removed in harmonic.


Create deploy task

Need to add task for combined feature extract + classification.

Completed with https://github.com/beijbom/coralnet/pull/279.


[Question] About register

I am reading the document and have some questions I would like to consult. Can someone help me?

The register (/api/1/partner_accounts) require the public key save at the https://<app domain>/.well-known/appspecific/com.tesla.3p.public-key.pem. This public key will be registered on the Vehicle, right? Then all vehicles will use a same public key, right? Then I use same private key and their VIN will be able to control any vehicle by BLE, right?

I must call the register API (/api/1/partner_accounts) before vehicle owners open the link https://tesla.com/_ak/example.com. right?

If the user has already registered the public key through BLE, do vehicle owners still need to open the link https://tesla.com/_ak/example.com?

Yes, the public key will be paired with the vehicle when the owner opens https://tesla.com/_ak/example.com and approves. You'll use the private key and VIN to authorize commands. However, public keys that are paired this way cannot be used over BLE. See documentation. If you want to be able to use a command over BLE, you'll need to pair using SendAddKeyRequest and use a previously paired NFC card.
Right.
If the key is paired over BLE, owners do not need to open the link.

@sethterashima Thank you for your reply. as you said, I have some questions:

public keys that are paired this way cannot be used over BLE, so the Fleet Manager be not able to drive the car, (only send the command to vehicle by remote api), right?
If My app will only support the Fleet API, is there a key be shown in the vehicle screen like a bluetooth key?
If My app will support both the Fleet API to remote control the vehicle and the BLE to local control the vehicle, I need two public keys to paired, right?

You'll use the private key and VIN to authorize commands
So, If I get the private key from other app, I will remote control all vehicles which use the app, right? This seems very unsafe.


[VL] Daily Update Velox Version (2024-02-01)

What changes were proposed in this pull request?
92f380b4d  Eliminate redundant Expr::addNulls calls (#8616)
09d07d3e7  Fix doc-gen-job so that it has 3 retries before failing. (#7706)
f4c326d7e  Add flag for registering Presto compatible signatures for Bitwise_*_agg functions (#8491)
eb6b585bb  Cleanup circleci script (#8618)
37ba7cb4c  Break up AllTypes.nonSortedSpillFunctions test (#8621)
d66b18f1d  Change cast(double as json) to pad 0 and use scientific notation (#8498)
a94509425  Make DuckDbQueryRunner.createTable flush once after all rows are written instead of after every row (#8611)
3beff35f3  Optimize copying primitive type vectors (#8617)
fbbeb5664  PyVelox implementation for Array Vector (#6100)
280fc8611  Add fmt::format_as for SpillStats and MemoryArbitrator::Stats (#8608)
a65afdb43  Make LocalExchangeSource.stop_ atomic (#8609)

How was this patch tested?
Existing unit tests.

/Benchmark Velox

/Benchmark Velox

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_4604_time.csv
log/native_master_01_31_2024_f1ed68005_time.csv
difference
percentage

q1
34.80
32.75
-2.044
94.13%

q2
24.27
24.25
-0.027
99.89%

q3
38.40
37.43
-0.968
97.48%

q4
35.94
37.40
1.461
104.07%

q5
70.31
70.15
-0.154
99.78%

q6
7.11
7.00
-0.116
98.38%

q7
83.69
83.66
-0.026
99.97%

q8
87.09
85.87
-1.219
98.60%

q9
123.00
124.41
1.411
101.15%

q10
41.71
43.68
1.964
104.71%

q11
20.22
20.32
0.096
100.48%

q12
29.79
26.52
-3.270
89.02%

q13
45.62
45.62
-0.002
100.00%

q14
18.13
19.16
1.026
105.66%

q15
28.50
28.85
0.348
101.22%

q16
14.37
14.00
-0.368
97.44%

q17
100.99
102.02
1.030
101.02%

q18
149.19
149.84
0.644
100.43%

q19
13.36
12.62
-0.743
94.44%

q20
26.53
26.35
-0.183
99.31%

q21
221.44
228.32
6.883
103.11%

q22
13.43
13.50
0.075
100.56%

total
1227.90
1233.72
5.821
100.47%

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_4604_time.csv
log/native_master_01_31_2024_f1ed68005_time.csv
difference
percentage

q1
34.76
32.75
-2.005
94.23%

q2
24.30
24.25
-0.049
99.80%

q3
38.85
37.43
-1.416
96.35%

q4
37.11
37.40
0.289
100.78%

q5
71.11
70.15
-0.961
98.65%

q6
6.53
7.00
0.464
107.10%

q7
83.63
83.66
0.039
100.05%

q8
86.14
85.87
-0.265
99.69%

q9
125.25
124.41
-0.839
99.33%

q10
43.99
43.68
-0.312
99.29%

q11
19.94
20.32
0.376
101.89%

q12
28.66
26.52
-2.143
92.52%

q13
45.77
45.62
-0.153
99.67%

q14
16.65
19.16
2.506
115.05%

q15
27.00
28.85
1.848
106.84%

q16
12.72
14.00
1.275
110.02%

q17
100.74
102.02
1.275
101.27%

q18
148.15
149.84
1.688
101.14%

q19
13.34
12.62
-0.726
94.56%

q20
26.49
26.35
-0.140
99.47%

q21
221.43
228.32
6.896
103.11%

q22
14.48
13.50
-0.983
93.21%

total
1227.06
1233.72
6.663
100.54%


fixed issue with overrides/defaults and fixed hierarchy issue with Provider.load

overrides and defaults were wiping each other out if used together because they were both using the name 'literal'
When calling Provider.load, the hierarchy was inverted due to the direction of merge.

@jstewmon What was the merge issue in Provider.load that prompted this change? I don't think reversing the keys is the correct solution. Consider this scenario:
  var nconf = require('nconf');

  nconf.env()
       .argv()
       .file({ file: '/path/to/some/file.json' });

In the above example nconf should load (in-order)

Environment variables
CLI Arguments
Contents of /path/to/some/file.json

Some of these commits look good though. I'll cherry-pick them

@jstewmon Oh I see now. Since load returns the merged object, in the above example the contents of /path/to/some/file.json will overwrite any keys which conflict with process.argv and process.env. I'll cherry-pick these.

These have been cherry-picked and published in<EMAIL_ADDRESS>


I am running apache2 with php7 (can install php5 if needed).

yeah! I probably could have made this more clear. There is a file called "config_sample.php" and this needs to be renamed to "config.php" (which is ignored) and input with your credentials to the location of the mysql database. Once you have that, the api should work.

Super fast response. Awesome. What comes next? I probably need to write some html to call the php, right?

Any chance I could get a copy of your site code or can the api stand on its own? I am getting errors about things not existing.

You shouldn't, no. All the html is ready, but it needs to be built by node

npm install
grunt

https://rankedchoices.com/

Building now. Hopefully I have the right versions of stuff. Getting some warnings. I am trying to do this on a Raspberry Pi with Raspbian (Debian based). Crossing fingers...
Thanks again for the quick responses.

I did npm install and it install a bunch of stuff. I then type grunt and it says it can't find it. I tried npm install grunt and it install grunt, so not sure what now.

npm install -g grunt-cli

I appreciate you being the guinea pig here. This clearly was not ready for consumption yet. I've tried doing a fresh pull and install and seeing the errors you are referring to. I'm making changes on the fly as well

It is stuck here:
Running "jade:compile" (jade) task

1 file created.

Running "less:dev" (less) task

1 stylesheet created.

Running "copy:copy" (copy) task
Copied 27 files
Running "replace:dev" (replace) task

1 replacement in 1 file.

Running "pleeease:dev" (pleeease) task
Running "concat:js" (concat) task
Running "jshint:all" (jshint) task
✔ No problems
Running "watch" task
Waiting...
 The "missing" files are not being pathed correctly. I'm working on it at the moment.
Again, I appreciate you bringing this to my attention. Give me 24 hours and I'll try to get it consumption worthy. In the meantime, feel free to tinker with it and if you find any answers, I'd like to hear them. RankedChoices.com is hosted on a LAMP stack shared hosting server, so I have "localhost" has the db location. I have tested this with an external db location, and it worked perfectly.

essentially, the "dist" folder contents populate the "public_html" folder of your server. Then, all the pathing works because everything is at the root level

I am using a local raspbian (debian) server running LAMP as well. Being raspbian I am hoping I have good versions of things.
I copied everything from dist into root. Now when I browse there I get the pages. There are errors, however.
It takes me to the main page and I hit create ballot. I enter a name and hit submit and nothing happens, but I do get an exception in the console. Here is the exception.
angular.js:130 TypeError: $http(...).success is not a function
at m.MainCtrl.$s.newBallot (main.js:380)
at fn (eval at compile (angular.js:246), :4:147)
at e (angular.js:291)
at m.$eval (angular.js:155)
at m.$apply (angular.js:156)
at HTMLFormElement. (angular.js:291)
at HTMLFormElement.dispatch (angular.js:10)
at HTMLFormElement.q.handle (angular.js:10)

I really really appreciate you working on this because I need it pretty badly. I have been searching for days for something that will basically be turn key web site and yours is the best so far. Others are very much not ready.
Thank you thank you thank you....

It seems that Angular has updated it's $http protocol. Instead of "success", it uses "then"
https://docs.angularjs.org/api/ng/service/$http
Well that's awfully nice to say. I hope when this is all up and running that I'll earn a star from you!

You will win many stars.
The other thing I will need to do with it, however, is add the ability to register voters so they can only vote once.
If you don't have time to do that, then I can dive into your code and try to figure that out.

I have that ability currently commented out because it's only 95% of the way there. I already have, built-in (currently commented) the ability to sign in with Facebook or Gmail. It was working pretty well, but not production worthy. Check out lines 16 - 39 of app.js

uncomment line 14 of index.jade and take a look at the "register" page. It's mostly there. Anything you want to do to get it the rest of the way would be awesome!

Awesome.
I went in and changed all instances of success to then in the main.js file and ran it again. Now it lets me create the ballot and enter the candidates.
When I hit submit all entries I get this exception:
angular.js:130 TypeError: Converting circular structure to JSON
at JSON.stringify ()
at cb (angular.js:24)
at Df.a.defaults.transformRequest (angular.js:104)
at angular.js:104
at q (angular.js:14)
at xd (angular.js:104)
at angular.js:108
at angular.js:141
at m.$digest (angular.js:152)
at m.$apply (angular.js:156) "Possibly unhandled rejection: {}"

This may be too simplistic, but I hope you didn't blindly replace all instances of "success" with "then". It only needs to change on lines 328, 365, and 383

My thoughts are for an election night Caucus meeting. I don't want people to have to log in or sign up or anything like that. I was thinking about something simpler:

A user comes to the meeting and signs in
They are given a random, but unique code at the sign in table.
A worker enters that code into the system and it is recorded so it can't be generated again.
When voting time comes each voter enters their code and the system only allows one vote per code.

This relies on the voter keeping their code secret, which is fine for my use.
Optionally you could allow the person to change their vote up until the voting is done, but it only records the last one as the actual vote. This allows people to change their minds until voting closes.

LOL, I did change all of them. I will revert and change just those lines. thanks for your patience.

I really like your idea of the unique code approach! To me, the simplest way to accomplish this would be to create another table with ballotId and unique code.

I might have slightly different code. There are other places with $http(...).success like line 53.
Also the first one you mention is 328, for me it is 326.

I just barely got the code about an hour ago.

ok, you are correct, I was reading the number wrong. The places of "success" are 55, 328, 365, and 383

I reverted back to the main.js with success in it. I went through the success entries again and changed the 3 lines you mentioned (adjusted a little because they were different). I also changed line 53 because it was part of $http(...).
I am still getting
TypeError: Converting circular structure to JSON
at JSON.stringify ()
at cb (angular.js:24)
at Df.a.defaults.transformRequest (angular.js:104)
at angular.js:104
at q (angular.js:14)
at xd (angular.js:104)
at angular.js:108
at angular.js:141
at m.$digest (angular.js:152)
at m.$apply (angular.js:156) "Possibly unhandled rejection: {}"

So, this is happening on line 379 of main.js
Can you put a breakpoint and inspect to see what "$s.candidates" is at that moment?

What should that line say? I think my code is different.

for me stringify is used on line 429

So, trying to debug remotely isn't easy, but it looks like "JSON.stringify" is running into a problem. That is only found on line 379 (of the raw file; 429 of the compiled file) when I take the array of candidates and stringify it before inserting it into the database.

Put a breakpoint on line 425 (of the compiled file) and look at "$s.candidates" in the console to see if it's a simple array or something complex

I understand about remote debugging. Hate it. Never works well.
It is not hitting that break point because that is inside the submitVote. That doesn't make sense because I am hitting the Submit All Entries when trying to create a ballot. I am not even to voting yet.

OH! I think I know. And shame on me for not thinking of this earlier. My guess is that the database needs to be built property before any of this is going to work!

I need to provide the schema so someone creating a new database can just run it and have it work

I was just starting to think about that. I went to my database and noticed there are not any tables in it.
Let me know when you have the schema and I will try again. Now rush. Tomorrow or whenever is fine.
Thanks again...

https://github.com/DavidMoritz/rcv/blob/master/Schema.sql
try that

I have the db with tables now. It created an entry in the ballots table that looks correct. Nothing in the entries table and I am still getting that darn stringify exception :-(

Where do you store the short code? I don't see it in the db anywhere.

I suggest using another method. The goal is to create a string from an array. You could do this by making a string that starts with "[", loop through $s.candidates and append each entry to the string, wrapping each entry in quotes, then adding "]" to the end

The thing is we are never hitting the stringify line of code.

There must be another place its used then. The stack you gave me didn't
reference any of my code, did it? Put a break point right when you click
"submit" and walk through the code slowly until it breaks
On Tue, Apr 25, 2017 at 4:56 PM tpitman<EMAIL_ADDRESS>wrote:

The thing is we are never hitting the stringify line of code.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DavidMoritz/rcv/issues/3#issuecomment-297177233, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADe-iJ2kljShNQYUHUSfg3xX74REBHw_ks5rzmwkgaJpZM4NIAi-
.

Sadly it gets into the minified angular code and I can't follow it very well.
I did remove your use of stringify and just put vote: '' just as a test and still get the exception, so something weird is going on. Not sure what to do at this point.

I need to head home. Let me know tomorrow if you find anything...

OK! I think I figured it out for real this time! I originally built this app quite a while ago and I mistakenly had "latest" as all the version numbers. I have replaced those with the versions that were still sitting in my local version way back when. You'll have to pull the latest changes from master, then run
npm update
bower update
but you should be good to go after that!

I am not at that computer now. I will try it first thing in the morning and let you know.
Thank you

Oh, the "shortcode" is the "key" in the ballot table.
I look forward to seeing your implementation of the unique code concept!
I envision a file called api/code.php that receives a GET param of "ballotId". The api adds an entry to the codes table and returns the generated code. You would also need to add a column in the votes table for the unique code and make (ballotId, code) be a unique index. Make sure you modify api/vote.php accordingly so that the provided code must match an entry in the codes table.
You could also add other information like the username of the worker who generated the code and a timestamp.
I am from Iowa and went to the presidential caucus. The system was ridiculous. We were handed a colored index card (the color representing our district) and told to write the name of the person on it. They had no way, once inside, to determine if someone had brought additional index cards in their pocket to vote additional times. And, they would have had to read thousands of peoples' handwritten names to tally the votes!
I think you are very wise to take an electronic approach and wise to use RCV. I definitely want to help make this happen for you. Great street cred!
Also, if you don't mind, I'd like to receive an email from you<EMAIL_ADDRESS>detailing more information like where you are holding this, what kind of environment, expected attendance etc.

I did a clean checkout of your code. I am running npm install. It is asking me the following during the bower install. How should I answer:
Unable to find a suitable version for angular, please choose one by typing one of the numbers below:
1) angular#1.5.3 which resolved to 1.5.3 and is required by init-angular
2) angular#1.6.4 which resolved to 1.6.4 and is required by angular-animate#1.6.4
3) angular#>=1.4.0 which resolved to 1.6.4 and is required by angular-bootstrap#1.2.5
4) angular#^1.2.27 which resolved to 1.6.4 and is required by ng-pattern-restrict#0.2.3
5) angular#>=1.2.x which resolved to 1.6.4 and is required by angular-ui-sortable#0.13.4
Prefix the choice with ! to persist it to bower.json
? Answer

I decided to choose 1.6.4 since it was the latest.
Now I am getting the exception about success is not a function. Did I choose the wrong version of angular?
What now?

I'd suggest 1.5.3. I don't remember using angular animate for anything
On Wed, Apr 26, 2017 at 9:02 AM tpitman<EMAIL_ADDRESS>wrote:

I decided to choose 1.6.4 since it was the latest.
Now I am getting the exception about success is not a function. Did I
choose the wrong version of angular?
What now?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DavidMoritz/rcv/issues/3#issuecomment-297418073, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADe-iJtE4u2xOYZx2dvxwByikEbrgQoQks5rz05YgaJpZM4NIAi-
.

That's the version being used in rankedchoices.com
On Wed, Apr 26, 2017 at 9:02 AM David Moritz<EMAIL_ADDRESS>wrote:

I'd suggest 1.5.3. I don't remember using angular animate for anything
On Wed, Apr 26, 2017 at 9:02 AM tpitman<EMAIL_ADDRESS>wrote:

I decided to choose 1.6.4 since it was the latest.
Now I am getting the exception about success is not a function. Did I
choose the wrong version of angular?
What now?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DavidMoritz/rcv/issues/3#issuecomment-297418073, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADe-iJtE4u2xOYZx2dvxwByikEbrgQoQks5rz05YgaJpZM4NIAi-
.

Also, I updated the README with consumption instructions. Please have a look at those and feel free to correct any confusing wording.

So i have it mostly working. I can create a ballot, add entries and everything shows up in the db.
When I enter a code into vote now or results, however, it keeps saying it can't find the code or the time is wrong.
I get-candidates is returning the error string.
I took the query and manually ran it in mysql workbench and it comes back with results.
Any suggestions on how to debug this?

One thing I tried was to modify the get-candidates.php code with some debugging type output. I changed the query and the error message.
The error message that came back was still the same?????
I restarted apache with /etc/init.d/apache2 restart and it said it restarted, but the php change didn't seem to take.
Any idea?

When I debug the api, I put a breakpoint at the place before sending, (to see the info being sent) and one on return (to see the response). If the sending looks good and the response is bad, I then adjust my api file to do things like "echo $variable" and such and look at what it says.

Are you sure you are modifying the file in the correct location? Like, modifying in dist/ or src/ won't do you any good for live edits.

Here's a thought. Run your page parallel with RankedChoices.com. Go there and open the main.js file. Put a breakpoint on lines 254 and 256. Type "tues" in the shortcode and press enter. Verify that "tues" is listed as the $s.shortcode and look at the resp on 256.
Each step, do the same in your environment and see if anything is different.

yea, modifying the one in /var/www/html/api

Now this is getting really weird.
I did that on your site and it works fine. tues is shown as the short code and the results of the api call are the array of entries as it should be.
I have a ballot in my db with a short code of 3gop. I put that in and it gives the error.
I manually changed the short code of that SAME ballot to tues just for the fun of it. When I do that the query WORKS!!!???
If I manually change the short code of the same ballot back to 3gop, IT FAILS.
If I copy the query from the php code into mysql workbench and query for 3gop it WORKS.
I am totally confused.

Are you somehow pointing to my DB?

I was able to store a shortcode of "3gop" in my DB without any problem.

So, does "gop3" work? Does it just not like it starting with a number for some odd reason?

suddenly my modified php started being run and has an error (forgot a ;) now I can't get it to use the fixed version. Something with caching I am sure.
I will try the idea of starting with a number once I figure out how to clear the php cache.

Well, it sounds like you are really close! Worst case, you only use shortcodes that don't include a number. I've never had an issue with php caching, but I guess you could send additional GET params like "&v=263" to break any client-side caching.

Or, perhaps you need to restart Apache every time you change the file, idk

LOLOLOL, you are going to love this.
What happens after you create a ballot and submit the entires?
What do those have as a url? Not the ip address of the server I am running locally. They have rankedchoices.com. I have been click on that.

Sorry for that. Might be a nice change, however, to use the local URL when building those links instead of your hard coded url. Otherwise the site will always redirect to your web site and not the web site that is running your code.

That also answers why my changes to the php were not taking. I wasn't even pointing at my site when I was trying to run them. I was not really looking at the address line in my browser this whole time.

Oh! of course. I didn't think about that. lol
Sorry about that

Question. How do I set a ballot to be done if I didn't give a cut off time?

So, this goes to the registered user ideas that I was creating. I had a profile page that included all the ballots a particular registered user had created and gave that person the ability to clear votes, cut it off, edit candidates, etc. But none of that works if they person makes the ballot anonymously. I suggest uncommenting the code that relates to additional features for registered users and take a look at the GUI I created. If you have any improvements, please submit a PR!
But, without any adjustment to the current code, the simplest way to do that on the fly would be to set the vote-cutoff to be in the past manually in the db.

remove the "//-" on line 14 of index.jade and rebuild to see what I am referring to.

Sounds good. I will take a look at this and let you know if I come up with anything.
I think having users for admin type stuff is needed. I then think having voters as a separate things is also what I will need.
I still owe you an email. I will send that now so you have a better idea of my situation. It is Caucus night for our local party. I am a precinct chair and district chair and am trying to come up with a better way to vote at caucus night.
I am basing it all on the Raspberry Pi because they are cheap. I will give more detail in my email....

Oh, also remove the class ".hidden" from line 22 of src/jade/partials/form.jade

btw, what is the "waiting" task that happens at the end of the grunt command? It just sits there forever. What is it waiting for? I usually just ctrl-c it to get it to end

If you make any changes to the src/ folder, it will automatically rebuild the dist/ folder

oh, so you leave that running if you what auto build. cool.

i see the register stuff in the source index.html, but it still is not showing up in the site.

Maybe there's still a hidden class or something? Try viewing in the
console. Make sure it's not cached
On Wed, Apr 26, 2017 at 11:30 AM tpitman<EMAIL_ADDRESS>wrote:

i see the register stuff in the source index.html, but it still is not
showing up in the site.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DavidMoritz/rcv/issues/3#issuecomment-297467475, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADe-iGAYrZSLrIyBwZVpC2inB64axlLPks5rz3EzgaJpZM4NIAi-
.

Good call. There is an exception, though I don't have enough experience to know why:
cb=gapi.loaded_0:70 Uncaught
Object {error: "idpiframe_initialization_failed", details: "Not a valid origin for the client: http://10.48.10…itelist this origin for your project's client ID."}
details
:
"Not a valid origin for the client: http://<IP_ADDRESS> has not been whitelisted for client ID<PHONE_NUMBER>15-98814hb54sbrs34jjiecfirgak4svths.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID."
error
:
"idpiframe_initialization_failed"
proto
:
Object
(anonymous)	@	cb=gapi.loaded_0:70

Looks like maybe a local ip can't be used in the google api for users?

oh, I see. It's that when you sign into Google or Facebook, you need to have an account that actually specifies where the app is located. In order for this to work, you need to create a Google and Facebook developer account and create an new project, then use the credentials of that project in your calls as well as represent your ip address on the whitelist.

Thought that might be the case.
I think I might work on the scenario that I emailed to you and not use those credentials.
I will keep you posted.

I sent you that email. Let me know if you didn't get it.

I got it! Just finished reading. Thank you for sending it! I was at lunch with a friend, but I'll reply soon.

I guess we do have to eat lunch once in a while :-)

Let me know if I should start a new issue thread for this:
I am wondering about the random selection to eliminate candidates. Is this the main standard way or did you just choose it because it is easy to implement?
What are the other options? I read about eliminating all candidates who tie when they are all lower than the rest of the candidates (tie for lowest votes all get dropped and reallocated).
How hard would it be to implement that version? That one seems more "fair". I can see people getting upset about a random number being used.

You are referring to the topic of the only other issue thread on my repo! lol
Please review the dialogue I had with Paul Lockett:
https://github.com/DavidMoritz/rcv/issues/1
Although it's counter-intuitive random really is the most fair. Keep in mind, ties are extremely rare and typically, the other candidate is the next one out anyway, rending the order of the tie resolution moot.
That being said, it's important to remember the one of the core philosophies of RCV is "No Tactical Voting". Paul Lockett makes a good case that if there is a method anything other than random, that could lead to people voting tactically, rather than honestly. But, with random, there is no such value is anything but honesty.
Again, the shear odds of two candidates having a tie for last and the outcome of a random determination of the order of their dismissal having any changed outcome on the final result in a legitimate election are staggeringly low.

Also, making a randomizer that provides consistent results for front-end consumption is not easier to implement.

Sounds like using a random selection like you do now is actually preferred. That is good. I wonder if there are any good sites explaining that using a random pick is official.
One of the things I am planning when using this is to show some short videos that explain RCV so people know will will happen. If you know of one that includes using random tie breaking, I will use that.

https://youtu.be/l8XOZJkozfI
That's a great video for it!
However, they call it "single transferable vote" (the older, less popular name) and they go more into detail about the value for multi-winner elections rather than being more instructional in nature.

But, I was thinking it would be cool to have an advanced option for tie-break method. Something like:
Random(official) ... Weighted ... No Winner
Then, the person making the pole can determine for themselves how they want to deal with tie-breaks.

That is even better.
I think I watched that video after first coming to your github site. I found a couple others, but none of them talk about ties.
Implementing it as options would be best.

I appreciate you bringing this up! I have supplied instructions in the README file for proper consumption. Closing.


Doc: net_info in detailed stats is undocumented

Issue
https://github.com/cloudfoundry/cloud_controller_ng/issues/655 has returned
Context
The issue was originally resolved by removing the net_info field, but since updating to the most recent version of pcfdev (0.20) it has returned. The issue history in PT (https://www.pivotaltracker.com/n/projects/966314/stories/127270725) isn't clear to me, so I don't know whether the field should be present and hence documented, or not present.
Steps to Reproduce
$: cf curl v2/apps/025b2318-d8ed-49cb-a676-5f89d46a88d8/stats
{
  "0": {
    "state": "RUNNING",
    "stats": {
      "name": "test-application-3tbmh",
      "uris": [],
      "host": "<IP_ADDRESS>",
      "port": 60002,
      "net_info": {
        "address": "<IP_ADDRESS>",
        "ports": [
          {
            "container_port": 8080,
            "host_port": 60002
          },
          {
            "container_port": 2222,
            "host_port": 60003
          }
        ]
      },
      "uptime": 0,
      "mem_quota": 67108864,
      "disk_quota": 536870912,
      "fds_quota": 16384,
      "usage": {
        "time": "2016-09-26 12:22:01 UTC",
        "cpu": 0,
        "mem": 0,
        "disk": 0
      }
    }
  }
}

@twoseat,
Thanks for reopening the issue.  Do you know which api version pcfdev0.20 is using? You can find it with the v2/info endpoint.
@thausler786 && @simonleung8

Hi folks,
Here's the output from 0.20:
   "name": "pcfdev",
   "build": "6b3d78e6e11d546aa62e834e42b205c791216f2f",
   "support"<EMAIL_ADDRESS>   "version": 0,
   "description": "",
   "authorization_endpoint": "https://login.local.pcfdev.io",
   "token_endpoint": "https://uaa.local.pcfdev.io",
   "min_cli_version": null,
   "min_recommended_cli_version": null,
   "api_version": "2.58.0",
   "app_ssh_endpoint": "ssh.local.pcfdev.io:2222",
   "app_ssh_host_key_fingerprint": "a6:d1:08:0b:b0:cb:9b:5f:c4:ba:44:2a:97:26:19:8a",
   "app_ssh_oauth_client": "ssh-proxy",
   "routing_endpoint": "https://api.local.pcfdev.io/routing",
   "logging_endpoint": "wss://loggregator.local.pcfdev.io:443",
   "doppler_logging_endpoint": "wss://doppler.local.pcfdev.io:443",
   "user": "9e2c0851-50f2-41e1-8dc8-5d93b4d759e9"

And for comparison here's the latest, 0.22, where the same thing still happens (I guess because the api version is still the same)
   "name": "pcfdev",
   "build": "75bb79295ca1f99e5ad185f2843b25dc3d735418",
   "support"<EMAIL_ADDRESS>   "version": 0,
   "description": "",
   "authorization_endpoint": "https://login.local.pcfdev.io",
   "token_endpoint": "https://uaa.local.pcfdev.io",
   "min_cli_version": null,
   "min_recommended_cli_version": null,
   "api_version": "2.58.0",
   "app_ssh_endpoint": "ssh.local.pcfdev.io:2222",
   "app_ssh_host_key_fingerprint": "a6:d1:08:0b:b0:cb:9b:5f:c4:ba:44:2a:97:26:19:8a",
   "app_ssh_oauth_client": "ssh-proxy",
   "routing_endpoint": "https://api.local.pcfdev.io/routing",
   "logging_endpoint": "wss://loggregator.local.pcfdev.io:443",
   "doppler_logging_endpoint": "wss://doppler.local.pcfdev.io:443",
   "user": "d77dbb41-7b7e-4188-90e6-e9ab64b134af"

Hey @twoseat ,
It looks like your deployments are using an old version of Cloud Foundry. The fix from the related issue wasn't put in until CF V241, which corresponds to API version 2.61. It looks like you're using V239, as per the docs here. (note the CF version / CC_API version numbers).
Maybe you can bring this issue to the PCFdev team. Closing this issue for now, feel free to reopen if you see any other problems.
Thanks,
CAPI Community Pair - @jberkhahn & @michaelxupiv


added optional optional-dependencies option

I had the following idea: have all dependencies reside in the dependencies key, and have another key (either required-dependencies or optional-dependencies), which contains the list of names of the dependencies we want to either include or exclude. That way, we can also trigger installation of a particular dependency by configuration.


Disable unused ActiveStorage feature

It's possible to directly upload files with ActiveStorage, we should disable this as we'll probably never use it. We can always re-enable it later.

👍


Add Errors Inbox metadata configuration content to generated doc

The Errors Inbox team would like the Ruby agent's configuration document to include the following:
## Errors inbox configuration [#errors-inbox-configuration]

Setting one of the following tags will help you identify which versions of your software are producing the errors.

* `NEW_RELIC_METADATA_SERVICE_VERSION` will create tags.service.version on event data containing the version of your code that is deployed, in many cases a semantic version such as 1.2.3, but not always.
* `NEW_RELIC_METADATA_RELEASE_TAG ` will create tags.releaseTag on event data containing the release tag (such as v0.1.209 or release-209).
* `NEW_RELIC_METADATA_COMMIT` will create tags.commit on event data containing the commit sha. The entire sha can be used or just the first seven characters (e.g., 734713b).

An upcoming release of errors inbox will automatically track which versions of your software are producing errors. Any version data will also be displayed in [CodeStream](/docs/codestream/how-use-codestream/performance-monitoring/#buildsha).

These features have been verified to work on a Rails 7 application: (permalink/internal)
This documentation was manually added to our configuration doc, and overridden by our generator.
Our current generator uses the configs defined in our lib/new_relic/agent/configuration/default_source.rb file to generate sections. These configs are not defined in our default_source.rb file. Consider whether we want to add them to default_source.rb or add this section in another way.

@kaylareopelle - Thanks so much for adding this to your docs. Could we change "An upcoming release of errors inbox" to "Errors inbox will automatically..."

@meda123, great catch! I updated the text in the description to include your edit. 🙂
I also updated tags to environment variables in the sentence, Setting one of the following environment variables...
Does that work for you?


Fix path-related operations on Windows

path-related operations on Windows did not work as expected, due to the use of / in os.path.join calls.
to prevent this from happening, pathlib.Path was used to hide platform-specific separator character.

Thanks for the PR, this is very helpful! It looks like the checks are not passing on your edits, including on Windows, for the pipeline that uses peaks of sensory activation as landmarks:
3. Atlas-to-brain warp with U-Net, DeepLabCut, and sensory maps
MesoNet git repo found at D:\a\MesoNet\MesoNet\mesonet, skipping directory check...
D:\a\MesoNet\MesoNet\mesonet
D:\a\MesoNet\MesoNet\mesonet\models\DongshengXiao_brain_bundary.hdf5
D:\a\MesoNet\MesoNet\mesonet\..\tests\sample_data\pipeline3_sensory\sensory_raw
Output cortex masks can be found in `results/mesonet_output_sensory/output_mask`
3
D:\a\MesoNet\MesoNet\mesonet\..\tests\sample_data\pipeline3_sensory\sensory_raw\1.png
D:\a\MesoNet\MesoNet\mesonet\..\tests\sample_data\pipeline3_sensory\sensory_raw\2.png
D:\a\MesoNet\MesoNet\mesonet\..\tests\sample_data\pipeline3_sensory\sensory_raw\3.png
DLC config file path: D:\a\MesoNet\MesoNet\mesonet\dlc\atlas-DongshengXiao-2020-08-03\config.yaml
Using snapshot-1030000 for model D:\a\MesoNet\MesoNet\mesonet\dlc\atlas-DongshengXiao-2020-08-03\dlc-models\iteration-2\atlasAug3-trainset95shuffle1
Analyzing all the videos in the directory...
Starting to analyze %  D:\a\MesoNet\MesoNet\mesonet\..\tests\results\mesonet_output_sensory\dlc_output\tmp_video.mp4
Loading  D:\a\MesoNet\MesoNet\mesonet\..\tests\results\mesonet_output_sensory\dlc_output\tmp_video.mp4
Duration of video [s]:  0.1 , recorded with  30.0 fps!
Overall # of frames:  3  found with (before cropping) frame dimensions:  512 512
Starting to extract posture
  0%|          | 0/3 [00:00<?, ?it/s]
  0%|          | 0/3 [00:01<?, ?it/s]
<EMAIL_ADDRESS>global cap.cpp:166 cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:293: error: (-215:Assertion failed) !_filename.empty() in function 'cv::CvCapture_Images::open'

Saving results in D:\a\MesoNet\MesoNet\mesonet\..\tests\results\mesonet_output_sensory\dlc_output...
Saving csv poses!
The videos are analyzed. Now your research can truly start!
 You can create labeled videos with 'create_labeled_video'
If the tracking is not satisfactory for some videos, consider expanding the training set. You can use the function 'extract_outlier_frames' to extract a few representative outlier frames.
Starting to process video: D:\a\MesoNet\MesoNet\mesonet\..\tests\results\mesonet_output_sensory\dlc_output\tmp_video.mp4
Loading D:\a\MesoNet\MesoNet\mesonet\..\tests\results\mesonet_output_sensory\dlc_output\tmp_video.mp4 and data.
No filtered data file found in D:\a\MesoNet\MesoNet\mesonet\..\tests\results\mesonet_output_sensory\dlc_output for video tmp_video and scorer DLC_resnet50_atlasAug3shuffle1_1030000.
Landmark prediction complete!
Performing first transformation of atlas 0...
Performing second transformation of atlas 0...
Traceback (most recent call last):
  File "D:\a\MesoNet\MesoNet\tests\test.py", line [149](https://github.com/bf777/MesoNet/actions/runs/6295222337/job/17091567408?pr=30#step:8:150), in <module>
    mesonet.predict_dlc(config_file_sensory)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\mesonet\dlc_predict.py", line 378, in predict_dlc
    DLCPredict(
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\mesonet\dlc_predict.py", line 198, in DLCPredict
    atlasBrainMatch(
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\mesonet\atlas_brain_matching.py", line 989, in atlasBrainMatch
    dst = getMaskContour(
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\mesonet\atlas_brain_matching.py", line [177](https://github.com/bf777/MesoNet/actions/runs/6295222337/job/17091567408?pr=30#step:8:178), in getMaskContour
    mask = cv2.imread(mask_dir, cv2.IMREAD_GRAYSCALE)
TypeError: Can't convert object to 'str' for 'filename'
Error: Process completed with exit code 1.

Thanks @bf777, I tried fixing the error. Let's see how it goes...

All checks are now passing, thanks for your contributions!


Add type synonyms to to beter explain things that used to be Text (2)

This should help a bit with understanding what's going on in App.hs
No code changed, just some type synonyms to better explain the parameters.
(should be merged after #369)

That's very helpful, it reads a lot better.


Off-by-one error in blog dates

🐛 Bug Report
Dates in the blog section are displayed incorrectly. For example, if I create a file 2021-05-10-hello.md, the url will correctly be /blog/2021/05/10/hello, but the blog post displays "May 9, 2021".
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
I was unable to reproduce on https://new.docusaurus.io. However, I was able to trace the bug to https://github.com/facebook/docusaurus/blob/master/packages/docusaurus-plugin-content-blog/src/blogUtils.ts#L175.
On my machine (both in Node and in the browser) new Date() behaves as follows:
new Date("2021-02-01").toString()
// "Sun Jan 31 2021 19:00:00 GMT-0500 (Eastern Standard Time)"

I was able to fix the bug on my machine by changing the above line to
date = new Date(dateString + "T00:00:00");

I don't want to make a PR myself because I'm not familiar enough with the Docusaurus code (or the Javascript Date functions) to know if this would fix it for all users or introduce bugs elsewhere.
Expected behavior
Dates would be displayed correctly.
Actual Behavior
Dates are not displayed correctly.
Your Environment

Public source code:
Public site url: https://ractive-player.org/blog/
Docusaurus version used: 2.0.0-beta.0
Environment name and version: Node 16.1.0
Operating system and version (desktop or mobile): Ubuntu 20.04.02 LTS ; also encountered this on OS X

Reproducible Demo
See above.

In my case it gets more frustrating, since 2021-05-10-hello.md actually creates a URL /blog/2021/05/11/hello during development, but the problem disappears in production.

I'm also seeing the same behavior and dove into the bug a bit more, @ysulyma's fix is close, but I think it needs to be a little further down on https://github.com/facebook/docusaurus/blob/master/packages/docusaurus-plugin-content-blog/src/blogUtils.ts#L189.
@ysulyma , I found the same thing you did, but was using console.log to print the date object which always converts to the local time zone. I think the actual issue is below on line 189 where Intl.DateTimeFormat is called. Specifically, the timezone should be specified as UTC since the new Date(...) statements above automatically assume UTC. See below:
const formattedDate = new Intl.DateTimeFormat(i18n.currentLocale, {
            day: 'numeric',
            month: 'long',
            year: 'numeric',
            timeZone: 'UTC',
        }).format(date);

I'll review the Docusaurus contributing guidelines and if this is still open in a few days I'll see about opening a PR. In the meantime, I hope this helps.

@josh-kaplan I think you are on the right track. Are you going to open a PR? Docusaurus is pretty welcome to contributions.

The behavior of Date with time zones is just entirely cryptic to me...

That's interesting .... so it looks like new Date() either assumes UTC or local time depending on the format of your date string. It looks like the Date constructor uses 08:00 (note, I'm testing this in US/Eastern which is UTC-4) as the default time when the date is of the form YYYY-M-DD (or any similar formate where month or day is 1 digit), but uses 00:00 as the default time when the date is of the form YYYY-MM-DD.
new Date('2021-06-1')   // 2021-06-01T04:00:00.000Z
new Date('2021-6-01')   // 2021-06-01T04:00:00.000Z
new Date('2021-06-01') //2021-06-01T00:00:00.000Z

I think you're right, @Josh-Cena, that UTC should be explicitly specified both when the date is created and when it is converted into a usable string so that Docusaurus respects that actual date string the author of the file intended. The only other concern still is whether or not this is still an issue for blog URL strings (I haven't tried it yet)
Interesting problem. I am curious why the timestamp changes for the different date formats...the MDN documentation isn't super clear about that.

It looks like the Date constructor uses 08:00 (note, I'm testing this in US/Eastern which is UTC-4) as the default time when the date is of the form YYYY-M-DD (or any similar formate where month or day is 1 digit), but uses 00:00 as the default time when the date is of the form YYYY-MM-DD.

Yes, I was totally bewildered at first... In my PR I have enforced UTC whenever we are dealing with dates (the toUrl already uses toISOString, which is UTC). In fact, if you look at the "Timestamp strings" section in the MDN doc, you see the note that

Note: Parsing of date strings with the Date constructor (and Date.parse(), which works the same way) is strongly discouraged due to browser differences and inconsistencies.
Support for RFC 2822 format strings is by convention only.
Support for ISO 8601 formats differs in that date-only strings (e.g. "1970-01-01") are treated as UTC, not local.

Where ISO 8601 demands YYYY-MM-DD format. This is the only case where the string is treated as UTC rather than local.

I agree with your fix. I'm still baffled by the implicit 08:00 UTC timestamp (16:00 for you, 04:00 for me). But adding the "Z" to the date creation does seem to fix the issue.

Hmmm. Can you elaborate on the 08:00 thing? As I understand it, when the date object is created in the local timezone, the default timestamp is always 00:00, just that you later convert it to UTC.
2021-05-11T00:00:00 GMT+0800 => 2021-05-10T16:00:00 GMT+0000
2021-05-11T00:00:00 GMT-0400 => 2021-05-11T04:00:00 GMT+0000

Yeah, I'm not sure it impacts your fix though so if this becomes too unrelated to the bug, perhaps we should move the conversation elsewhere (it might still be relevant though) ...
When I do the following:
new Date('2021-06-01') // 2021-06-01T00:00:00.000Z
new Date('2021-06-1')   // 2021-06-01T04:00:00.000Z

Node defaults to different times for the two date formats (note they are both in UTC). In your case of UTC+0800, It looked like the time was defaulting to 16:00:00.000Z. Which seems to me like it's sort of caring about your offset from UTC (i.e. UTC+0800 = 1600 and UTC-0400 = 0400, which explains the different timestamps we're seeing), but then assuming the date is a UTC timestamp and resulting in 2021-06-01T04:00:00.000Z for me and 2021-06-01T16:00:00.000Z for you.
From the ECMA Spec

"The function first attempts to parse the String according to the format described in Date Time String Format (<IP_ADDRESS>), including expanded years. If the String does not conform to that format the function may fall back to any implementation-specific heuristics or implementation-specific date formats."

So, if you use the date format YYYY-MM-DD, the default time will be 00:00:00.000. But if you don't (i.e. your month or day is one digit instead of two), the Date constructor may fall back to "*any implementation-specific" approach. In other words, it's dependent on the JS implementation. I'm seeing the same behavior in both Node and in browser, presumably because they're both using V8.
I guess the real takeaway here is that your blog filenames should always use the YYYY-MM-DD format otherwise your local timezone could mess things up.

Hey,
I agree that we should use both UTC for parsing and formatting, as we don't care about the time.
We could also use a lib that supports the concept of "local date", which is a given day without a timestamp/timezone.
https://js-joda.github.io/js-joda/manual/LocalDate.html
Probably overkill just to fix this bug though.
To test this it's a bit annoying/complicated as we'd have to force a certain tz on our CI, and we would have tests that only fail at certain hours of the day. Not sure it's worth investing much in that for now


Bug Fix in RestMultiSearchAction.java

server/src/main/java/org/opensearch/rest/action/search/RestMultiSearchAction.java
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

-s to add 'Signed-of-by<EMAIL_ADDRESS>


#12 added new module - HealthCheck

Codecov Report

Merging #28 (eafe2b8) into master (9957b95) will increase coverage by 0.18%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
+ Coverage   61.05%   61.23%   +0.18%
==========================================
  Files          42       42
  Lines         552      552
  Branches       14       14
==========================================
+ Hits          337      338       +1
+ Misses        215      214       -1

Impacted Files
Coverage Δ

...hub/pandafolks/panda/participant/Participant.scala
86.66% <ø> (ø)

...lks/panda/participant/event/ParticipantEvent.scala
88.46% <0.00%> (ø)

...github/pandafolks/panda/user/UserServiceImpl.scala
90.90% <0.00%> (+4.54%)
:arrow_up:

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 9957b95...eafe2b8. Read the comment docs.


IRGen[feat]: add support for Function::FuncDecalaration, Expr::Return and part of CompExpr.

Follow #28. Work still in progress and requires refactoring.

It seems that CI needs a fix due to the llvm dependency.


Make services e2e more debuggable

This time it works.  The issue was that running the test directly worked but running under ginkgo did not because ginkgo set KUBECTL, so my conditional re-set was not working.  Now unconditional.

LGTM. Thanks.


Update routing-preference-overview.md

Added new regions in availability section

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

#sign-off

@nayak-mahesh: I'm sorry - only the author of this article, @KumudD, 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.

#sign-off

@nayak-mahesh
Contributors who work in the Product Manager role should open pull requests in the private repository for advanced quality validations and staging. You also can sign off directly in the private repo, and some PRs qualify for auto-merge.
To edit an article in the private repo from within the documentation, after you select Edit on an article page,  add “-pr” to the repo name in the URL.
Would you make future article updates in the private repo? Thanks!

Helpful links in the internal Microsoft Docs contributor guide:
Public vs. private repos | Move a commit to a different repo (public -> private) | GitHub for content reviews
Quick reference for contributing to the docs | Make changes to a Docs article | PR review quality criteria


docs: Fix documentation for externalsecret dataFrom

Documentation of externalsecret dataFrom was just copy and paste from data. This PR updates the examples to reflect the expected structure.

good catch, thank you!

/approve

/merge


Redirect old url to new api site

Changelog: none
Signed-off-by: Michael Clelland<EMAIL_ADDRESS>External Contributor Checklist

🚨 Please review the guidelines for contributing to this repository.

[ ] Make sure that all commits are signed with git --signoff. Also note that the signoff author must match the author of the commit.

Description
Please describe your pull request.
Thank you!

Fixed from the gateway side


Doesn't work with multi-filetypes.

I have a really niche use case here. Both Vim and Neovim have a handy feature that allows a file to be recognized as multiple filetypes, then various scripts and autogroup actions can be ran for each of the filetypes that applies. As an example I'm using the Vimwiki plugin to edit markdown files, some types of markdown can also be considered a pandoc file as well.  In neovim if I open a markdown file and issue the command :set filetype it shows the current filetype as vimwiki.markdown.pandoc as expected. However, this plugin doesn't recognize this as a list of filetypes. Instead, as far as I can tell, it recognizes a single filetype vimwiki.markdown.pandoc and doesn't open.  For reference both Tagbar and Vista.vim work out of the box in recognizing the markdown structure in this case. At any rate, thanks again for this rad plugin!
System information

OS: mac
Neovim version: v0.7.0-dev+758-g0c35fd5fc

Aerial Info
Filetype: vimwiki.markdown.pandoc
Configured backends:
lsp (not supported)
treesitter (not supported)
markdown (not supported)
Show symbols: Class, Constructor, Enum, Function, Interface, Method, Struct

Quick note: this actually does work with the new treesitter backend for markdown! But you make a good point; aerial should absolutely support compound filetypes. I will get right on that!

I've got a regression here. This is back to not working when  I list my filetype as:
markdown = { "treesitter"},
now I'm using.
["vimwiki.markdown.pandoc"] = { "treesitter" },

If you run :AerialInfo, which backend is attached? I suspect that you're on the treesitter backend now, because I re-ran some tests and the markdown backend works fine for me, but the treesitter one repros the issue.
The issue is with how treesitter parses compound filetypes.
https://github.com/nvim-treesitter/nvim-treesitter/blob/1f0771153542608a29cd06bacf2978adc40d1265/lua/nvim-treesitter/parsers.lua#L933
It takes just the part of the string before the first ".". So in your case, it will be looking up "vimwiki". They don't have a parser for that, so it fails. This means that all other TS features (highlighting, indenting) will not be working for you either.
I can think of 3 things that you could do:

Switch back to using the "markdown" backend (just put it first in the backends config option)
Change the filetype to markdown.vimwiki.pandoc
File an issue on nvim-treesitter to change how they handle compound filetypes


Fix Gradle wrapper issues

Gradle wrapper had EOL issues

@gregturn @markfisher merged my changes, so you'll want to make this against his repo now.


[Proposal] Support persistence of configuration items modified at runtime

Is your feature request related to a problem? Please describe.
Doris now support modified FE and BE config at runtime. But the modification will be invalid after process restart.
This will make the cluster operation and maintenance more complicated, because if the process restarts unexpectedly,
the configuration changes made during runtime will become invalid and need to be modified again.
Describe the solution you'd like
I'd like to support persistence of configuration items modified at runtime.
The modified configurations will be saved in fe_custom.conf/be_custom.conf under conf/ dir.
And when process restarts, it will first load config from fe.conf/be.conf, then load fe_custom.conf/be_custom.conf.
The config in xx_custom.conf will overwrite the same config item in fe.conf/be.conf

Nice job!


Add Node to image

Needed to run frontend builds

There is a node image already. If you need a node image with this old version of node and JDK8 then build on top of this one.


[Feature request] Filter databases in Connection properties

(For postgres) I would like to have the possibility to filter the databases the are available for one connection in the connection properties. E.g The Postgres server has databases starting with foo_ and bar_ and I have one connection (Connection A) to the server configured. Then I would like to be able to configure that in the database navigator the under Connection A  only ones starting with foo_ are visible but not the ones starting with bar_.

You can do this in connection properties:

That helped me. Thanks a lot!

👍

Could "Catalogs" be renamed in that form to "Catalogs/Databases"?
IMO, it would help in this feature's discoverability.


Fix panic in RKE cleanup when kubeconfig is empty

https://github.com/rancher/rancher/issues/34792


sql: permit table alias use in RETURNING clauses

PR: https://github.com/cockroachdb/cockroach/pull/20808

We could update the RETURNING parameter description on:

INSERT
UPSERT
UPDATE
DELETE

I have reviewed the docs for this. The documentation for AS and RETURNING is already very clear -- the name specified in AS hides the original table name completely, so there is no expectation that RETURNING sees it.
Closing this because I do not believe anything needs to be changed.


Update functional.py

Correct the documentation
i is the y_coordinate, j is the x_coordinate

Codecov Report

Merging #1323 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1323      +/-   ##
==========================================
- Coverage   65.85%   65.82%   -0.04%
==========================================
  Files          75       75
  Lines        5782     5782
  Branches      884      884
==========================================
- Hits         3808     3806       -2
  Misses       1710     1710
- Partials      264      266       +2

Impacted Files
Coverage Δ

torchvision/transforms/functional.py
71.09% <ø> (-0.29%)
:arrow_down:

torchvision/transforms/transforms.py
80.94% <0%> (-0.2%)
:arrow_down:

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 a91fe72...cf5a1d2. Read the comment docs.

Actually, the current comment is correct. I'll try to explain:
The variable i describes the vertical or y direction and j the horizontal or x direction. You can deduce this from the fact that i is added to the height h, which would make no sense if i would represent a horizontal coordinate.
https://github.com/pytorch/vision/blob/a91fe7221b55c55dbbc23c23aecf33d470a5c08e/torchvision/transforms/functional.py#L368
The same is of course true for j.
From the pillow documentation for Image.crop()

box – The crop rectangle, as a (left, upper, right, lower)-tuple

Thus, our call is indeed correct since j is the left part and i the upper part in
https://github.com/pytorch/vision/blob/a91fe7221b55c55dbbc23c23aecf33d470a5c08e/torchvision/transforms/functional.py#L357-L358

However, I agree that the current documentation does not reflect this well. We should update it to avoid any misunderstandings in the future.

Thank you for the answer.
I thought the documentation of the method is ambiguous.
I hope it will be clarified soon.
2019년 9월 11일 (수) 오후 4:46, Philip Meier<EMAIL_ADDRESS>작성:

Actually, the current comment is correct. I'll try to explain:
The variable i describes the vertical or y direction and j the
horizontal or x direction. You can deduce this from the fact that i is
added to the height h, which would make no sense if i would represent a
horizontal coordinate.
https://github.com/pytorch/vision/blob/a91fe7221b55c55dbbc23c23aecf33d470a5c08e/torchvision/transforms/functional.py#L368
The same is of course true for j.
From the pillow documentation for Image.crop()
https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.crop
box – The crop rectangle, as a (left, upper, right, lower)-tuple
Thus, our call is indeed correct since j is the left part and i the
upper part in
https://github.com/pytorch/vision/blob/a91fe7221b55c55dbbc23c23aecf33d470a5c08e/torchvision/transforms/functional.py#L357-L358
However, I agree that the current documentation does not reflect this
well. We should update it to avoid any misunderstandings in the future.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pytorch/vision/pull/1323?email_source=notifications&email_token=AGWBBT5Y3QLUPHTIXFMX6CTQJCO6JA5CNFSM4IVN7XDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NS6YQ#issuecomment-530263906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGWBBT4IOMOPFO5KAZBOUVTQJCO6JANCNFSM4IVN7XDA
.

One of the problems here is that Pillow uses a different convention than PyTorch for representing the sizes, (width, height instead of height, width), and this can bring some confusion.
We decided to keep the PyTorch convention, where we represent it as height, width, and thus the indices are passed as y, x (in plane coordinates), which are also represented as i, j.
If those indexing conventions are a bit confusing, check the numpy.meshgrid documentation for the indexing argument, which explains this in a bit more detail.
Can you update the PR to make the description a bit more clear?

Superseeded by https://github.com/pytorch/vision/pull/1388


systemd: remove network configuration

PELUX uses connman as a network manager. Having this configuration in
place was resulting in system using two network management services at
the same time and obtaining 2 IP addresses from DHCP.
Signed-off-by: Oleksandr Kravchuk<EMAIL_ADDRESS>

Approved!

Would be nice to test this before merging tho

Would be nice to test this before merging tho

This was of course tested. By both me and Ekaterina.

Approved!

Forgot how to use github? :rofl:


[dotprompt] Always reload .prompt files in dev mode

I suggest that when NODE_ENV=development (or GENKIT_ENV=dev) .prompt files should be automatically reloaded from disk before each invocation. This would be beneficial for a few reasons:

We could stop rebooting the entire server when a .prompt file changes, speeding up iteration
There would be less chance of "stale prompts" which seems to happen to me relatively frequently though I'm not sure why

To accomplish this I think we need the proxy ref construct proposed in #513, but once we had that it would be pretty trivial.

Update on this: see #744 which is honestly even more annoying than stale prompts because it actually breaks the flow of the server. Let's solve both of these problems.

linking https://github.com/firebase/genkit/pull/842


[Bug]: Show myself first in the list of members in the project

ODC version
ODC 4.2.4
OB version

What happened?

Show myself first in the list of members in the project
What did you expect to happen?

How can we reproduce it (as minimally and precisely as possible)?
Enter the project to view the member list
Anything else we need to know?
No response
Cloud
No response

pass


XGBRanker with sample_weight makes python interpreter died and restarted.

Sorry for submitting this issue. I really donot know how to solve this problem.
As the doc said, in ranking jobs, the sample_weight is assigned to each group but each data point, so I think the shape of sample_weight should be the same with group. But this make python iterpreter died and auto restarted when I run fit.
With some tracking, the problem maybe happend to the function self._create_dmatrix. It looks like that the shape of sample_weight needed to be the same with y.
Also, I tried with the shape of sample_weight equal to labels y, it raises XGBoostError: [13:02:51] ../src/data/data.cc:683: Check failed: group_ptr_.size() == weights_.Size() + 1 (34 vs. 1001) : Size of weights must equal to number of groups when ranking group is used.
# python version: 3.9
# xgboost version: 1.7.3

import numpy as np
import pandas as pd
import xgboost as xgb

N = 1000
dates = pd.date_range('20100101', periods=N)
X = pd.DataFrame(np.random.randn(N, 5), columns=list('ABCDE'), index=dates)
y = pd.Series(np.random.randint(0, 10, size=N), index=dates, name='label')
group = X.groupby(dates + pd.offsets.MonthEnd(0)).size()
sample_weight = pd.Series(np.arange(len(group)), index=group.index)  # shape equal to group

ranker = xgb.XGBRanker(objective='rank:pairwise', max_depth=3, learning_rate=0.1, booster='gbtree', tree_method='hist', n_jobs=4, n_estimators=50, enable_categorical=False, random_state=42)

ranker.fit(X=X, y=y, group=group, sample_weight=sample_weight, verbose=True)  # it died here without any error info

when to release the next version?

Soon.