/usr/bin/ld: cannot find -lopencv_contrib

centos 7.1
openCV3.1.0

wget https://github.com/Itseez/opencv/archive/3.10.zip
 unzip 3.1.0.zip
cd opencv-3.1.0
mkdir release
cd release
git clone https://github.com/Itseez/opencv_contrib
cd opencv_contrib
# git checkout tags/$PKG_VERSION
git checkout tags/3.1.0
cd ..
 cmake -D CMAKE_BUILD_TYPE=RELEASE     -D OPENCV_EXTRA_MODULES_PATH="opencv_contrib/modules"  -D CMAKE_INSTALL_PREFIX=/usr/local ..
make install

add path to /etc/profile

  export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

  export LD_LIBRARY_PATH=/usr/local/include/opencv/lib:$LD_LIBRARY_PATH

run
 make -j$(nproc)

error is

/usr/bin/ld: cannot find -lopencv_contrib
/usr/bin/ld: cannot find -lopencv_legacy
collect2: 错误：ld 返回 1
make: *** [lib/libmxnet.so] 错误 1

please refer to #2244 for solving this opencv issue.

after a few hours fix through this
install openCV3.1.0 on Centos

$ wget https://github.com/Itseez/opencv/archive/3.10.zip
 $ unzip 3.1.0.zip
$ cd opencv-3.1.0
$ mkdir release
$ cd release
$ git clone https://github.com/Itseez/opencv_contrib
$ cd opencv_contrib
# git checkout tags/$PKG_VERSION
$ git checkout tags/3.1.0
$ cd ..
 $ cmake -D CMAKE_BUILD_TYPE=RELEASE     -D OPENCV_EXTRA_MODULES_PATH="opencv_contrib/modules"  -D CMAKE_INSTALL_PREFIX=/usr/local ..
$ make install
#add  env variable such as /etc/profile

  export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

  export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

install mxnet
#check opencv
$  pkg-config --libs opencv
-L/usr/local/lib -lopencv_calib3d -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_video -lopencv_videoio -lopencv_videostab

# config.mk

[wanghs@db2 mxnet]$ cat config.mk
#-------------------------------------------------------------------------------
#  Template configuration for compiling mxnet
#
#  If you want to change the configuration, please use the following
#  steps. Assume you are on the root directory of mxnet. First copy the this
#  file so that any local changes will be ignored by git
#
#  $ cp make/config.mk .
#
#  Next modify the according entries, and then compile by
#
#  $ make
#
#  or build in parallel with 8 threads
#
#  $ make -j8
#-------------------------------------------------------------------------------

#---------------------
# choice of compiler
#--------------------

export CC = gcc
export CXX = g++
export NVCC = nvcc

# whether compile with debug
DEBUG = 0

# the additional link flags you want to add
#ADD_LDFLAGS =
ADD_LDFLAGS = -L /opt/OpenBLAS/lib
# the additional compile flags you want to add
#ADD_CFLAGS =
ADD_CFLAGS = -I /opt/OpenBLAS/include
#---------------------------------------------
# matrix computation libraries for CPU/GPU
#---------------------------------------------

# whether use CUDA during compile
USE_CUDA = 0

# add the path to CUDA library to link and compile flag
# if you have already add them to environment variable, leave it as NONE
# USE_CUDA_PATH = /usr/local/cuda
USE_CUDA_PATH = NONE

# whether use CuDNN R3 library
USE_CUDNN = 0

# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
USE_NVRTC = 0

# whether use opencv during compilation
# you can disable it, however, you will not able to use
# imbin iterator
USE_OPENCV = 1

# use openmp for parallelization
USE_OPENMP = 1

# choose the version of blas you want to use
# can be: mkl, blas, atlas, openblas
# in default use atlas for linux while apple for osx
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Darwin)
USE_BLAS = apple
else
USE_BLAS = atlas
endif

# add path to intel library, you may need it for MKL, if you did not add the path
# to environment variable
USE_INTEL_PATH = NONE

# If use MKL, choose static link automatically to allow python wrapper
ifeq ($(USE_BLAS), mkl)
USE_STATIC_MKL = 1
else
USE_STATIC_MKL = NONE
endif

#----------------------------
# Settings for power arch
#----------------------------
ARCH := $(shell uname -a)
ifneq (,$(filter $(ARCH), powerpc64le ppc64le))
        USE_SSE=0
else
        USE_SSE=1
endif

#----------------------------
# distributed computing
#----------------------------

# whether or not to enable multi-machine supporting
USE_DIST_KVSTORE = 0

# whether or not allow to read and write HDFS directly. If yes, then hadoop is
# required
USE_HDFS = 0

# path to libjvm.so. required if USE_HDFS=1
LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server

# whether or not allow to read and write AWS S3 directly. If yes, then
# libcurl4-openssl-dev is required, it can be installed on Ubuntu by
# sudo apt-get install -y libcurl4-openssl-dev
USE_S3 = 0

#----------------------------
# additional operators
#----------------------------

# path to folders containing projects specific operators that you don't want to put in src/operators
EXTRA_OPERATORS =

#----------------------------
# plugins
#----------------------------

# whether to use caffe integration. This requires installing caffe.
# You also need to add CAFFE_PATH/build/lib to your LD_LIBRARY_PATH
# CAFFE_PATH = $(HOME)/caffe
# MXNET_PLUGINS += plugin/caffe/caffe.mk

# whether to use torch integration. This requires installing torch.
# You also need to add TORCH_PATH/install/lib to your LD_LIBRARY_PATH
# TORCH_PATH = $(HOME)/torch
# MXNET_PLUGINS += plugin/torch/torch.mk

WARPCTC_PATH = $(HOME)/warp-ctc
MXNET_PLUGINS += plugin/warpctc/warpctc.mk

# whether to use sframe integration. This requires build sframe
# git@github.com:dato-code/SFrame.git
# SFRAME_PATH = $(HOME)/SFrame
# MXNET_PLUGINS += plugin/sframe/plugin.mk
#
#

USE_BLAS = openblas

# change Makefile because **opencv_legacy** is gone in openCV3

# setup opencv
ifeq ($(USE_OPENCV), 1)
        CFLAGS += -DMXNET_USE_OPENCV=1 `pkg-config --cflags opencv`
        LDFLAGS += `pkg-config --libs opencv`
#       LDFLAGS += -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -lopencv_core -lopencv_highgui
        BIN += bin/im2rec

I tried to reproduce the problem and had the solution

CentOS 7 is a must, no CentOS 6.x, it is too old.
yum install opencv* which install necessary devel packages.
change the Makefile 's setup opencv part to:

# setup opencv
ifeq ($(USE_OPENCV), 1)
    #CFLAGS += -DMXNET_USE_OPENCV=1 `pkg-config --cflags opencv`
    #LDFLAGS += `pkg-config --libs opencv`
    CFLAGS += -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -I/usr/include/opencv2
        LDFLAGS += -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -lopencv_core -lopencv_highgui
        #LDFLAGS += -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -lopencv_core
    BIN += bin/im2rec
else
    CFLAGS+= -DMXNET_USE_OPENCV=0
endif

it saves the worry from installing from the source. Maybe later on I will PR a centos.mk for centos only. pkg-config is so poor for centos.

@phunterlau  several libraries rely on opencv3 ,combine all these info in a separate centos  installation can save quite a lot of time


RFM-2 Report

Great report @dennis-tra ! Very good section about Measurement Methodology!

For completeness, we present a selected number of graphs from the recent results (2022-05-05) in this report as well.

It would be insightful to have some more details about the origin of the data. What was the time period during which you collected data about the node classification? When and for how long did you run the churn measurements?

By diving into the data, many more questions arose that led to other RFMs like RFM5 or RFM6. Both of which can be tackeled with the the software that was developed in the scope of this RFM2.

It would be great to have a pointer to the descriptions of RFM5 and RFM6

Add some references for ioi and storm nodes.

@yiannisbot I created a new branch guillaumemichel-rfm-template with the repo structure we discussed. @dennis-tra Could you follow a similar structure? e.g write the report in results/rfm2-uptime-and-churn.md, create a folder implementations/rfm2-uptime-and-churn/ containing the source code and/or scripts to reproduce the results and the plots used in the report (could be in a subfolder e.g images/, resources or similar)
@yiannisbot @dennis-tra let me know if you have any comments on the structure, it can be adapted if needed :)

Minor typos: tackeled -> tackled line 121, persistance -> persistence line 48

Thanks @guillaumemichel and @yiannisbot for your feedback! I plan to add your requested changes today :)

@yiannisbot I created a new branch guillaumemichel-rfm-template with the repo structure we discussed. @dennis-tra Could you follow a similar structure? e.g write the report in results/rfm2-uptime-and-churn.md, create a folder implementations/rfm2-uptime-and-churn/ containing the source code and/or scripts to reproduce the results and the plots used in the report (could be in a subfolder e.g images/, resources or similar)

Sure, I'll restructure my PR :) I think though that a pointer to my repository or preferably a forked version from PL would be better suited for a source code/script reference - what do you think? Of course, I'm also happy to add the source code in this subdirectory :)

Great report @dennis-tra ! Very good section about Measurement Methodology!

For completeness, we present a selected number of graphs from the recent results (2022-05-05) in this report as well.

It would be insightful to have some more details about the origin of the data. What was the time period during which you collected data about the node classification? When and for how long did you run the churn measurements?

Done 👍

By diving into the data, many more questions arose that led to other RFMs like RFM5 or RFM6. Both of which can be tackeled with the the software that was developed in the scope of this RFM2.

It would be great to have a pointer to the descriptions of RFM5 and RFM6

Done 👍

Add some references for ioi and storm nodes.

Suggestions welcome for an ioi reference - I haven't found any :( For storm, I found these ones:

https://www.zdnet.com/article/ipstorm-botnet-expands-from-windows-to-android-mac-and-linux/
https://www.anomali.com/blog/the-interplanetary-storm-new-malware-in-wild-using-interplanetary-file-systems-ipfs-p2p-network

what do you think? I actually haven't mentioned storm nodes in the report yet.

@yiannisbot I created a new branch guillaumemichel-rfm-template with the repo structure we discussed. @dennis-tra Could you follow a similar structure? e.g write the report in results/rfm2-uptime-and-churn.md, create a folder implementations/rfm2-uptime-and-churn/ containing the source code and/or scripts to reproduce the results and the plots used in the report (could be in a subfolder e.g images/, resources or similar)
@yiannisbot @dennis-tra let me know if you have any comments on the structure, it can be adapted if needed :)

I moved the report to results/rfm2-uptime-and-churn.md. I moved the graphs in a respective results/rfm2-uptime-and-churn/ folder. Fine with you @guillaumemichel ?

Minor typos: tackeled -> tackled line 121, persistance -> persistence line 48

Done 👍

Suggestions welcome for an ioi reference.

I have to say that I don't know what ioi is and am now even more curious after reading about storm. Is it another virus?

what do you think? I actually haven't mentioned storm nodes in the report yet.

As it appears on the plots, I think it would make sense to shortly describe what it is.

I moved the report to results/rfm2-uptime-and-churn.md. I moved the graphs in a respective results/rfm2-uptime-and-churn/ folder. Fine with you @guillaumemichel ?

Perfect for the report!
It would be better to have the graphs in implementations/rfm2-uptime-and-churn/ or inside a subfolder there. This way we could have a clean results/ folder containing only the RFMs reports.

Are you fine with the (arguably long) list of highlights? Call it Highlights? Feel free to remove/add things :)

Looks good! You could even move the Nebula Crawler to the top of the list ;)

Where to put the code? See issue(s) above.

Once the plots are in the definitive version, or once the report is in final state, I think that it would be fine to add the Nebula Crawler repo as a submodule inside implementations/rfm2-uptime-and-churn/. The submodule would be a snapshot of the state of the Nebula Crawler repo at the time the report is published, and thus even if it doesn't get the last updates, it is still possible to reproduce the results using this snapshot. The submodule could be updated if there is a (major) update in the report. What do you think @dennis-tra @yiannisbot
Concerning the backup / hosting of Nebula Crawler souce code on PL Github org, we could have an auto-updating fork Nebula Crawler hosted on the protocol org using this Github app.

@dennis-tra I just noticed that you removed the graphs from the report. I think it is great to have plots in the report like in the initial version! My comment was about moving the folder where the plots are stored out of the results/ folder that will be containing RFM reports only (and no images).

Yikes, I moved and renamed the folders but didn't update the references. I did not remove them intentionally. Should be fixed now 👍


add option for Nat blocking and add config for systemd

Hey, I'm not sure if you're still using this... Are there any other solutions? For my part, I'm still using it...
Some modifications to take into account the prerouting for NAT, and an addition to use systemd instead of cron.
best regards,
Vincent L.

Hi, yeah i'm still using it. :)
Thanks for your Pull request!!!
Could you shed some light onto the use case? Wouldn't the packages be blocked even before the NAT would be reached?
Eitherway, i didn't see any faults so i didn't want to argue your usecase :sweat_smile:

Okay, I'm not alone lol
The problem is when I forward packets to virtual machines, for example:
table inet filter {
chain forward {
		type filter hook forward priority filter;
 		policy drop;

       ip daddr <IP_ADDRESS> tcp dport 25 accept
}
}
table inet nat {
   chain prerouting {
        type nat hook prerouting priority 0; policy accept;

        tcp dport 25 dnat to <IP_ADDRESS>:25
}
}

They are not blocked by ./blocklist without flag...
Hence the need, I think, to block them not in input but in prerouting... I'm wondering if it's not a problem of priority between the inet and ip tables... I had tested with lower priorities for the ip and ip6 tables but it didn't work anyway...
Maybe I misunderstood how to do it? In any case, everything works perfectly with the -n option...


Verify email address: code/regex is too restrictive

The sample code on how to validate an email address is too restrictive. Valid addresses like<EMAIL_ADDRESS>fail on this code.

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

ID: 202e3f9f-a12a-53de-9069-fd469e3dbebc
Version Independent ID: fd3699bb-4881-b6b4-1275-43eed3d5f626
Content: How to verify that strings are in valid email format
Content Source: docs/standard/base-types/how-to-verify-that-strings-are-in-valid-email-format.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @adegeo
Microsoft Alias: adegeo

Hi. This issue has been reported 😄 We're not really doing much on this article because there are endless ways to change the regex to validate an email address. We have an old discussion open at #9547

Duplicate of #16299


chore: Update globby and copy-webpack-plugin

it's a follow-up of https://github.com/microsoft/vscode-java-dependency/pull/592#issuecomment-1035902532

Should also update the @types/node to 16 I guess


Writerside doc

It turns out that Writerside is not really mature enough for this yet. We might revisit this later.


Test the nbgitpuller interface and workflow with syzygy

Using nbgitpuller is pretty easy.  We just need to give students a link.  I think that the following work
To do the basic pull with

https://ubc.syzygy.ca/jupyter/user-redirect/git-pull?repo=https://github.com/ubcecon/ECON407_2019&app=lab
To open a particular notebook (although it clones the whole repo), go
https://ubc.syzygy.ca/jupyter/user-redirect/git-pull?repo=https://github.com/ubcecon/ECON407_2019&app=lab&subPath=test.ipynb

Ian says that these https://github.com/jupyterhub/nbgitpuller/ basically does git pull or git clone operations, so you should be able to reason it out with that.

Test that out and play around with the notebooks, but I found it pretty stable.
The bigger issue is to think through the workflow of modified notebooks to figure out how to update them.  By design nbgitpuller will not overwrite local changes without some manual steps.
There are two updating scenarios to consider:

Students have local modifications and want to revert to the old version
We modify a notebook and tell the students to do an update to get the latest

Now, there are at least 2 different scenarios

The notebook is not modified by the user
The notebook is modified by the user

So the question is: how do we tell students to update their notebooks if

They want to get the latest for anything they have not made a local change to... I think this may just be clicking on the link again?  BUt needs to be tested
They want to overwrite any local changes they have.  This needs to work for both notebooks that were changed from the last time they pulled, and ones that weren't.  I.e. both a revert and a forced update.

Here is what Ian said about this:

If content has changed in both places, prefer local changes over
remote changes.
If a file was deleted locally but present in the remote, remote file
is restored to local repository. This allows users to get a 'fresh copy'
of a file by just deleting the file locally & clicking the link again.
If a file exists locally but is untracked by git (maybe someone
uploaded it manually), then rename the file, and pull in remote copy.

So for your first point, yes, it will do a pull and attempt to merge
preferring local mods. For the second and third points, in some cases
you can just delete the file and click the link again. The resulting
pull should restore a "fresh" copy. Deeper than that there are always
going to be cases where the fix would have to be at the CLI (either in a
terminal or wrapped in a python cell). The only alternative to that I
can think of would be to delete or rename the entire repository and
clone it again.

I played around with this and had trouble getting the files to overwrite.
The other option is that we have a notebook or just code to run that does a github operation for the revert and overwrite.  For example, a file called notebook_utilities.ipynb with a cell something like
!git fetch origin; git reset --hard HEAD; git pull

I couldn't get this to work immediately, but it is an approach to consider.  In fact, it may be a better option than having them manually delete files.

BTW, the sequence of steps to get things working may involve shutting down kernels and/or the server, but we should find the minimal steps necessary.

As discussed, the home-brewed nbutils.ipynb isn't so bad of an idea for this.
Uploaded one with some basic commands to the ECON427 repo. We can iterate on it depending on what you think the students need.

Does it consistently work on both syzygy and a local desktop with git installed?  If so, it might make more sense to have this in the underlying lecture notes repos (for both julia and the datascience one)?

I just tested it on syzygy. Will give it a spin on the local machine, but my gut says we're good and that's the right approach.

Yep, seems to work fine.

Closing as this has been tested, we can open a new issue when the time comes to get this polished/figure out what commands we need etc.


Disable this test, which is failing in some branches.

(cherry picked from commit 1aa5e8c9250f6ccdf728ab5bdeddc7afe4d64157)

@swift-ci Please smoke test and merge


Release: the latest release zip pkg is missing (0.4.0)

refs:
https://github.com/stefanbuck/logseq-media-controls/actions/runs/11645585365
https://github.com/stefanbuck/logseq-media-controls/releases/tag/0.4.0

Thanks for the heads-up! This is fixed now.


No method to leave as an approved submitter

There doesn't seem to be a method to remove yourself as an approved submitter from a subreddit. There also isn't a method to leave as a moderator, but that can be accomplished using r.get_subreddit("subredditnamehere").remove_moderator(r.user.name) or r.get_subreddit("automodtestsub").remove_moderator(r.get_me().name), although this does require the modothers OAuth scope instead of the modself scope, but doesn't require full moderator permissions.
Now, remove_contributor() doesn't seem to work at all; see PR #451.
And also, even if remove_contributor() did work, it wouldn't work if you weren't a mod of the subreddit (since it's made for removing other approved submitters), so a method to leave as an approved submitter would still be nice.

Now that we've finished up with 3.1.0, I will start working on these methods as well as the dual-scope functions, as mentioned in the other threads. I just wanted to clean up the active projects for release before starting this.

Sounds great; I just made this so that this problem has its own issue.

Resolved in #455. Thanks for filing!


Unable to animate the shape of the CollisionPolygon2D

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Win 7, 64bit, Godot3 Beta
Issue description:

I'm not sure, if it's a bug, or missing feature, but according to this: https://github.com/godotengine/godot/issues/6286 it should be possible to animate the collision shapes in Godot V3.
Steps to reproduce:
Create a KinematicBody2D, add CollisionPolygon2D as a child, add AnimationPlayer. Create the polygon with the tools provided on the top bar. All the parameters on the CollisionPolygon2D panel in the inspector have keys next to them. Go inside the Polygon (Vector2), where the individual points of the polygon are listed - there are NO KEYS there...
Again - I'm not sure if it's a bug, but just to be sure, I'm submitting...

I'm not really sure if this is a bug. Maybe the AnimationPlayer can't change specific elements of an array (which is what holds the points of a polygon). OTOH animating polygons would be a nice thing to have.

Yes, I totally agree :-)
But I'm a bit affraid it's too late.. After the feature freeze..
But imagine how awesome it would be - animating the exact shape of a weapon
swing - not just swords, but more complicated weapons, which are hard to do
with a static collision..Or characters, that change proportions
significantly during animations..
The usage options are limitless :-)
Dne 18. 12. 2017 2:42 dopoledne napsal uživatel "George Marques" <
<EMAIL_ADDRESS>I'm not really sure if this is a bug. Maybe the AnimationPlayer can't
change specific elements of an array (which is what holds the points of a
polygon). OTOH animating polygons would be a nice thing to have.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/14599#issuecomment-352305270,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ag4wBwQLRICTVI7ABrVsP9zS9dFxAuHhks5tBcMDgaJpZM4Q_VSQ
.

What is the status on master (esp. after the animation player and inspector changes)?

Just tested on master branch, it's possible to animate CollisionPolygon2D points in the new interface.

Thanks, closing as fixed in 3.1 then.


[Feature Request] Allow for sync with repo not in the same fork network

This would allow people to clone a repo, make it private, and still use Pull to get updates from the original repo.

Unfortunately this is not supported due to a limitation in GitHub API - it cannot create PRs not in the same fork network. Please look into alternatives like wei/git-sync which does not have such limitation.

Unfortunately this is not supported due to a limitation in GitHub API - it cannot create PRs not in the same fork network. Please look into alternatives like wei/git-sync which does not have such limitation.

I tried using Git Sync, but I get this error, on line 79 of "git-sync":
fatal: could not read Username for 'https://github.com/': No such device or address

Please review README closely and open an issue on the correct repo.


Check next line with invokeMethod

There was a wrong check of invokeMethod style because if it was looking like this
QMetaObject::invokeMethod(this, "produceTimerImpl", connection
                             , Q_RETURN_ARG(utils::AbstractTimer *, t));

Vera could not find Q_ARG pattern on the line and then the test had become passed.

Download:
Environment: QT=5.12, ARCH=64, PYTHON_PATH=C:\Python37-x64
Environment: QT=5.12, ARCH=32, PYTHON_PATH=C:\Python37

Download:
Environment: QT=5.12, ARCH=32, PYTHON_PATH=C:\Python37
Environment: QT=5.12, ARCH=64, PYTHON_PATH=C:\Python37-x64


rockets basic structure

Project requirements
Config & basic setup

Create React App.
Install React Redux, Redux Logger and React Router.
Download the free image for the app logo.
Create routes and view components: rockets, missions, my profile. Add dragons [only if your team has 3 members]).

Use <NavLink /> for the page navigation links and style active class to indicate which section/page user is currently on (underline active navigation link).

Create directories for all Redux state slice files:rockets, missions, dragons [only if your team has 3 members].

Redux: Fetch data and update Redux store

Upon first render fetch data from the SpaceX API endpoints:

Rockets: https://api.spacexdata.com/v4/rockets
Missions: https://api.spacexdata.com/v3/missions
Dragons: https://api.spacexdata.com/v4/dragons [only if your team has 3 members]

Once the data are fetched, dispatch an action to store the selected data in Redux store:

Rockets:

id
rocket_name
description
flickr_images

Missions:

mission_id
mission_name
description

Dragons [only if your team has 3 members]:

id
name
type
flickr_images
NOTE: Make sure you only dispatch those actions once and do not add data to store on every re-render (i.e. when changing views / using navigation).
NOTE: Rockets is the default view, so you must fetch rockets data when the application starts. However, the missions data should only be fetched (once) when a user navigates to the Missions section.

Render UI:lists

Use useSelector() Redux Hook to select the state slices and render lists of rockets and missions in corresponding routes. i.e.:

// get rockets data from the store
const rockets = useSelector((state) => state.rockets)

You can style the whole application "by hand" or you could use React Bootstrap, a UI library that could speed up the process. This is a popular library and working with its components would be good practice.
Render a list of rockets (as per design). For the image of a rocket use the first image in the array of flickr_images.
Render a table with the missions' data (as per design).
Render a list of dragons (as per design). For the image of a dragon use the first image in the array of flickr_images[only if your team has 3 members].

Redux: Write actions and reducers for booking rockets/dragons and joining missions

When a user clicks the "Reserve rocket" button or "Reserve dragon" button [only if your team has 3 members], action needs to be dispatched to update the store. You need to get the ID of the reserved rocket and update the state. Remember you mustn't mutate the state. Instead, you need to return a new state object with all rockets, but the selected rocket will have an extra key reserved with its value set to true. You could use a JS filter() or map() to set the value of the new state - i.e.:

const newState = state.map((rocket) => {
  if (rocket.id !== id) return rocket
  return { ...rocket, reserved: true }
})

Regardless of which method you choose, make sure you place all your logic in the reducer. In the React view file, you should only dispatch the action with the correct rocket ID as an argument.
Create a reducer and action dispatcher for the "Join Mission" button. The logic here is practically the same as with rockets - you need to pass the mission's ID to the corresponding action and update the missions' state with the selected mission having a new key/value - reserved: true.

Redux: Write actions and reducers for canceling rockets/dragons and leaving missions

Here you need to follow the same logic as with the "Reserve rocket"/"Reserve dragon" and "Join mission" - but you need to set the reserved key to false.
Dispatch these actions upon click on the corresponding buttons.

Render UI: conditional components rendering

Rockets that have already been reserved should show a "Reserved" badge and "Cancel reservation" button instead of the default "Reserve rocket" (as per design) .
Dragons that have already been reserved should show a "Reserved" badge and "Cancel reservation" button instead of the default "Reserve dragon" (as per design) [only if your team has 3 members].
Missions that the user has joined already should show a badge "Active Member" instead of the default "NOT A MEMBER" and a button "Leave Mission" instead of the "Join Mission" button (as per design).
Rockets/Dragons and Missions should use the React conditional rendering syntax:

{rocket.reserved && (
    // render Cancel Rocket button
)}

Render UI: My Profile section

Compose two/three column layout and list ONLY the rockets/dragons reserved and missions joined by the user (as per design):

Render a list of all joined missions (use filter()).
Render a list of all reserved rockets (use filter()).
Render a list of all reserved dragons (use filter()) [only if your team has 3 members]_.

Technical set up**

Set up the repository on GitHub and use Gitflow.
Set up React and Redux.
Set up testing libraries(React Testing Library and Jest).
Do not preserve user data.

NOTE: Make sure to add test for all your components and functions.
Workload distribution
In order to tackle this challenge, we created a template of the Kanban board with GitHub project that translates the requirements into a set of tasks that you will be able to use to organize your work. You will create your own copy of that board in the separate activity.
You will be working in this way:

The common tasks (set up repo, shared work on the main page) will be divided among all of you or completed as a team (pair programming).
The other tasks related to the project will be developed individually. Every student will own tasks from all categories specified in the kanban board in order to practice a variety of skills.
All tasks should be based on the cards from your Kanban board.

Hi dear code reviewer, I hope you are doing well!
I want to mention something about our project. There is something wrong with my main branch and I don't know why. When I created the Repo, I followed the git-flow and created a dev branch. When I pushed it into GitHub the dev branch was my default branch automatically and I do not have the main branch right now.  I have merged already our PR into the dev branch and reverted the changes in a new PR, so there are no my partner's commits. It was my mistake not my partner. Please and please guide me on what should I do.

Please ask her to do the followings:
To create the README in a feature branch
To merge all the changes into dev so that the dev branch will hold the whole project implementation
To empty the main branch
To create the PR from dev to the newly emptied main branch
To ask for another review.
Please i will invalidate this project for missing README and for not following the correct workflow

Please read my comment
On Fri, 15 Sept 2023, 03:09 Adebowale Adegboye Monsur, <
@.***> wrote:

Please ask her to do the followings:
To create the README in a feature branch
To merge all the changes into dev so that the dev branch will hold the
whole project implementation
To empty the main branch
To create the PR from dev to the newly emptied main branch
To ask for another review.
Please i will invalidate this project for missing README and for not
following the correct workflow
—
Reply to this email directly, view it on GitHub
https://github.com/78fatemanazari/react-capstone/pull/30#issuecomment-1720288883,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4NBIBSZPD5GPCHUQP54GO3X2OIURANCNFSM6AAAAAA4Y5PFUI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Please, did you read my comment? We have problem with main branch and I
merged my branches into dev but there is not any main branch. I asked
review for help and guidance.
On Fri, 15 Sept 2023, 03:13 Adebowale Adegboye Monsur, <
@.***> wrote:

@.**** commented on this pull request.
Hi @Team,
While you made a great effort in this project, unfortunately, I cannot
proceed to review your code.
Invalid Code Review Request
You have submitted a project, that has no descriptive README, please use
this Template
https://github.com/microverseinc/readme-template/blob/master/README.md
to create a professional documentation
Your Code Review Request will be marked as invalid in your Dashboard, so
please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something
is not 100% clear.
Please, remember to tag me in your question so I can receive the
notification.
Please, do not open a new Pull Request for re-reviews. You should use the
same Pull Request submitted for the first review, either valid or invalid
unless it is requested otherwise.
Invalid Code Review Request does not count into the code reviews limit.
—
Reply to this email directly, view it on GitHub
https://github.com/78fatemanazari/react-capstone/pull/30#pullrequestreview-1627979315,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4NBIBT2QXUPKD6YLR5OLG3X2OJDBANCNFSM6AAAAAA4Y5PFUI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yes I red your comment and the solution I gave you have been verified by other code reviewers and Snr CR so just follow the guild steps I gave you and resubmit.

I can not merge the dev branch into main branch because I created newly and
I have the PR of dev branch but it is merged.
On Fri, 15 Sept 2023, 03:30 Adebowale Adegboye Monsur, <
@.***> wrote:

Yes I red your comment and the solution I gave you have been verified by
other code reviewers and Snr CR so just follow the guild steps I gave you
and resubmit.
—
Reply to this email directly, view it on GitHub
https://github.com/78fatemanazari/react-capstone/pull/30#issuecomment-1720302385,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4NBIBW2XD4WU5UMQGARGY3X2OLAHANCNFSM6AAAAAA4Y5PFUI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi @78fatemanazari,
Let's try to untangle this together.
First of all this project is missing the README, so please make sure to build one in a feature branch.
In order to follow the guide on how we should request request a review for this project, we need to have the development branch up to date with all the changes of this project. So please make sure to merge into development branch all the other feature branches.
Then try to empty the main branch. Delete from the main branch all the code and project implementation.
At this stage we should be able now to create a PR from the development branch (that now holds all the project implementation) into main branch (which should be empty at this stage).
Please let me know if this works for you or not.
Good luck!

@78fatemanazari the dev branch was not set to be the default branch, but the default branch was the main branch. Most probably this was the reason of confusion and error.

Yeah, I did the instructions you said me but it had conflicts and I solved
it. Now it is not working. I can not merge my project into dev branch.
Please help me.
On Fri, 15 Sept 2023, 04:23 Nicolae Pop, @.***> wrote:

@78fatemanazari https://github.com/78fatemanazari the dev branch was
not set to be the default branch, but the default branch was the main
branch. Most probably this was the reason of confusion and error.
—
Reply to this email directly, view it on GitHub
https://github.com/78fatemanazari/react-capstone/pull/30#issuecomment-1720337448,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4NBIBRKCL3UERCJLIQ7CITX2ORG5ANCNFSM6AAAAAA4Y5PFUI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Please check your slack inbox


Projective geometric algebra

I am working with projective geometric algebra (metric: [0, 1, 1, 1] ), but I have trouble to find a way to make it work with galgebra because of the nilpotent basis vector.
For instance, this code
p3g = [0, 1, 1, 1]
p3ga = Ga('e_0 e_1 e_2 e_3', g=p3g, coords=oxyz, norm=False, wedge=False)
e0, e1, e2, e3 = p3ga.mv()
ux = p3ga.mv('u_x', 'scalar')
uy = p3ga.mv('u_y', 'scalar')
uz = p3ga.mv('u_z', 'scalar')
u = e1*ux + e2*uy+e3*uz
print("u", u)
print("u*", u.dual())

prints
: !!!!If I**2 = 0, I cannot be normalized!!!!
: u u_x*e_1 + u_y*e_2 + u_z*e_3
: u* zoo*(u_x + u_y + u_z)

when u* should be u_x*e_23 - u_y*e_13 + u_z*e_12
How should I do to make it work? Is there a way to give a user-defined dualization method, or to add the antiproduct?

Consider the following code -
from future import print_function
from sympy import Symbol, symbols, sin, cos, Rational, expand, simplify, collect
from galgebra.printer import Format, Eprint, Print_Function, xpdf, Fmt
from galgebra.ga import Ga, one, zero
from galgebra.mv import Nga, cross
g = '1 0 0 0 ,0 1 0 0 ,0 0 1 1 ,0 0 1 0 '
p3d = Ga('e_1 e_2 e_3 n',g=g)
(e1,e2,e3,n) = p3d.mv()
print('g_{ij} =',p3d.g)
print(n|n)
I = p3d.I()
print(I)
print(I*I)
with following output -
g_{ij} = Matrix([
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 1],
[0, 0, 1, 0]])
0
e_1^e_2^e_3^n
-1

Remember that for conformal geometric algebra with basis e_x, e_y, e_z, n_0, n_infty the metric tensor is -
g_{ij} = Matrix([
[1, 0, 0, 0, 0],
[0, 1, 0, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 0, 0, 1],
[0, 0, 0, 1, 0]])
so that e_x2 = e_y2 = e_z2 = 1 and n_02 = n_infty**2 = 0, and n_0|n_infty = 2
the question is for the projective model as opposed to the conformal model
is e_x|n_infty = e_y|n_infty = e_z|n_infty not equal to zero?
from future import print_function
from sympy import Symbol, symbols, sin, cos, Rational, expand, simplify, collect
from galgebra.printer import Format, Eprint, Print_Function, xpdf, Fmt
from galgebra.ga import Ga, one, zero
from galgebra.mv import Nga, cross
g = '1 0 0 1 ,0 1 0 1 ,0 0 1 1 ,1 1 1 0'
p3d = Ga('e_1 e_2 e_3 n',g=g)
(e1,e2,e3,n) = p3d.mv()
print('g_{ij} =',p3d.g)
print(n|n)
I = p3d.I()
print(I)
print(I*I)
g_{ij} = Matrix([
[1, 0, 0, 1],
[0, 1, 0, 1],
[0, 0, 1, 1],
[1, 1, 1, 0]])
0
sqrt(3)*e_1^e_2^e_3^n/3
-1

I think this link may be relevant to your question.  My question is why not use conformal geometric algebra instead of projective?
https://terathon.com/blog/projective-geometric-algebra-done-right/

Then there is this code -
from future import print_function
from sympy import Symbol, symbols, sin, cos, Rational, expand, simplify, collect
from galgebra.printer import Format, Eprint, Print_Function, xpdf, Fmt
from galgebra.ga import Ga, one, zero
from galgebra.mv import Nga, cross
g = '1 0 0 0 ,0 1 0 0 ,0 0 1 0 ,0 0 0 0'
p3d = Ga('e_1 e_2 e_3 n',g=g,norm=False)
(e1,e2,e3,n) = p3d.mv()
print('g_{ij} =',p3d.g)
print(n|n)
I = e1^e2^e3^n
print(I)
print(II)
(a1,a2,a3) = symbols('a_1 a_2 a_3',real=True)
a = a1e1+a2e2+a3e3
print(a)
print(a*I)
with output
g_{ij} = Matrix([
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[0, 0, 0, 0]])
0
e_1^e_2^e_3^n
0
a_1e_1 + a_2e_2 + a_3e_3
a_3e_1^e_2^n - a_2e_1^e_3^n + a_1e_2^e_3^n

Since galgebra tries to normalize |I2| to one for the case were I2 = 0 (I did not make the normalization optional) you need to word around it.  I am not familiar with the projective model (only the conformal model for 3d geometry) look at the following code and see if it would help -
from future import print_function
from sympy import Symbol, symbols, sin, cos, Rational, expand, simplify, collect
from galgebra.printer import Format, Eprint, Print_Function, xpdf, Fmt
from galgebra.ga import Ga, one, zero
from galgebra.mv import Nga, cross
g = '1 0 0 0 ,0 1 0 0 ,0 0 1 0 ,0 0 0 0'
p3d = Ga('e_1 e_2 e_3 n',g=g,norm=False)
(e1,e2,e3,n) = p3d.mv()
print('g_{ij} =',p3d.g)
print(n|n)
I = e1^e2^e3
print(I)
print(II)
(a1,a2,a3) = symbols('a_1 a_2 a_3',real=True)
a = a1e1+a2e2+a3e3
print(a)
a_s = -Ia
a_ss = -Ia_s
print(a_s)
print(a_ss)
with output -
!!!!If I**2 = 0, I cannot be normalized!!!!
g_{ij} = Matrix([
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[0, 0, 0, 0]])
0
e_1^e_2^e_3
-1
a_1e_1 + a_2e_2 + a_3e_3
-a_3e_1^e_2 + a_2e_1^e_3 - a_1e_2^e_3
-a_1e_1 - a_2e_2 - a_3*e_3

Note that p3d.I() is normalized pseudoscalar and p3d.E() is unnormalized pseudoscalar.

I think #68 has some code that computes a reasonable dual for PGA.
Thanks for the comments above @abrombo; I've edited them to include syntax highlighting.


bump dgraph to v1.3.0

Changes introduced with this PR
Updating dgraph for fixed and improved mermaid markdown generation.

By contributing to this repository, I agree to the contribution guidelines.

This branch is now out of date with respect to main.  Also, #136 already encompasses these changes...should that PR be merged and this one be closed?

@dustinblack, I've merged #136, so I think this PR no longer changes anything...do you want to close it?


Seems to be an issue with swift 3 branch

There seems to be an issue with the swift 3 branch, I can't seem to get it to work... I download the branch via cocoapods, and it seems to be in swift 3 syntax, but it throws all kinds of funky errors.
I can fix the errors and push back a branch if needed?

I have a pending PR https://github.com/remirobert/CameraEngine/pull/62 that fixes the small issue with swift 3.0 on the master branch, try that


ISS44 Polygon docstring fix

Codecov Report

Merging #45 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            dev    #45   +/-   ##
===================================
  Coverage    79%    79%
===================================
  Files        20     20
  Lines      1105   1105
===================================
  Hits        873    873
  Misses      232    232

Impacted Files
Coverage Δ

cw_geodata/vector_label/polygon.py
77.77% <ø> (ø)
: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 eb8088b...d6981cc. Read the comment docs.


Error: Type "ModelFlightConnection" not found in document

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
Amplify Console GitHub Issue Tracker

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Deploy Serverless Airline project: amplify init --app https://github.com/aws-samples/aws-serverless-airline-booking
In the schema, remove list queries from type Flight: @model(subscriptions: null, queries: {get: "flight"})  or @model(subscriptions: null, queries: {list: null})
Run locally: amplify mock

Expected behavior
Amplify not to error out, and to remove listFlights query.
Error: Error: Type "ModelFlightConnection" not found in document.
Desktop (please complete the following information):

OS: [e.g. iOS] macOS
Version [e.g. 22] 10.14.6

Additional context

Amplify-CLI version: 3.16.0

Schema exerpt that works
type Flight
    @model(subscriptions: null)
    @key(name: "ByDepartureSchedule",
        fields: ["departureAirportCode", "arrivalAirportCode", "departureDate"],
        queryField: "getFlightBySchedule")
{
    id: ID!
    departureDate: String!
    departureAirportCode: String!
    departureAirportName: String!
    departureCity: String!
    departureLocale: String!
    arrivalDate: String!
    arrivalAirportCode: String!
    arrivalAirportName: String!
    arrivalCity: String!
    arrivalLocale: String!
    ticketPrice: Int!
    ticketCurrency: String!
    flightNumber: Int!
    seatAllocation: Int!
}

@heitorlessa I think it is a duplicate of #2389, and #2538 will fix it.


Cannot drop file or folder path on cmd or powershell after install terminal

Windows Terminal version
1.17.11461
Windows build number
10.0.22621
Other Software
CMD
POWERSHELL
PREV AND full both can not drag and drop file or folder path after install windows terminal , but when i uninstall terminal then drag and drop works again
Steps to reproduce
CMD
POWERSHELL
PREV AND full both can not drag and drop file or folder path after install windows terminal
Expected Behavior
No response
Actual Behavior
CMD
POWERSHELL
PREV AND full both can not drag and drop file or folder path after install windows terminal

Do you launch Windows Terminal as admin?

Got it, so:

Looks like you disabled UAC entirely, so Terminal is always running with admin permissions.
That makes me think this is the thing we fixed in #14946. I don't think we backported that to 1.17. Can you double check this with Terminal Preview set as the default terminal application/?

yes SecHealthUI uninstalled , anyway this version of terminal dont damage cmd and powershell Microsoft.WindowsStore_22204.1400.4.0
attached test 2 mp4
https://github.com/microsoft/terminal/assets/3030547/f8a3bd98-07d7-4c10-8dc5-3c30602ecc6c

i have updated post . this version of terminal Microsoft.WindowsTerminal_3001.12.10983.0 dont damage drag drop of cmd and powershell

Terminal 1.12?? Yea you'll definitely want to update. That's a couple years old now 😅

Windows 10 ltsc 2021 21h2 19044.3448 tested the newer version of terminal , in this version of windows also did the same thing SecHealthUI uninstall and i am in administrator profile ,
here cmd and powershell works to drag and drop but as we see not working in win 11 , well should i check windows 11 with security apps ? may be it will works ?

This is basically unrelated to the OS version. The Terminal ships versions entirely separately from the OS. The code that checked if the Terminal was elevated or not didn't work exactly right before Terminal 1.18. I suspect if you install Terminal Preview (1.18), this will work for you.

now drag drop not works when i run as admin ,
https://github.com/microsoft/terminal/assets/3030547/81f367e8-6135-444d-a6dc-e7890b3f1f06
this windows is just installed nothing modification in security system ,
anyway the goal was drag drop file and folder path in admin cmd and powershell

Thanks for the feedback! Looks like this was fixed in #14946. So we'll mark this as a /dup of #13928.
Version 1.18 or higher should include a fix for this issue. You can download it from the Releases page, microsoft store, or winget. Thanks again! :)


Update gdpr-compliance.md

Temporary fix https://github.com/MicrosoftDocs/OfficeDocs-O365ITPro/issues/612

@mypil  As requested (the second link was already in the doc).

@SuPotter - PR has been copy edited and is ready for final review. This is based on your recommendation as a temporary fix for issue #612.
Thank you.


Deleting first character of new line, and then creating a new line immediately afterwards has strange behavior

My keypresses in this .gif are:
Enter Key -> A -> Backspace -> Enter Key
Issue seems to exist in latest Chrome, but seems fine in latest Firefox.
Haven't explored this further, but will add if I find something.

any changes here?

I did a bit of investigating and I don't think this is not a bug with the framework but rather with how the browser handles single newline code blocks. Please see fiddle below:
https://jsfiddle.net/ruzv50qj/15/


Adding metadata to videos

First off, thanks for the fantastic work on this crate, it's very useful and easy to use.
I'm currently using this crate to stitch together images to create a video using the image2 muxer, like so:
let pbar = ProgressBar::new(num_frames);

let cmd = format!(
    "-framerate {fps} -f image2 -i {pattern} -y -vcodec libx264 -crf 22 -pix_fmt yuv420p {outfile}"
);

let mut ffmpeg_runner = FfmpegCommand::new().args(cmd.split(' ')).spawn().unwrap();
ffmpeg_runner
    .iter()
    .unwrap()
    .filter_progress()
    .for_each(|progress| pbar.set_position(progress.frame as u64));
pbar.finish_and_clear();

However, I'd like to add metadata to the resulting video. According to the ffmpeg docs I can do so by adding an argument like "-metadata title='some cool title'" right before the output file. If I do this in the above example the code silently fails. I'm not entirely sure what's going on but my guess is that splitting the command on spaces causes issues.
Any suggestions for this? Is there a way to better report any errors that ffmpeg might be silently throwing? In fact, I've noticed that if the command starts with ffmpeg it also fails silently.

I haven't taken a close look at this yet, but the first thing I'd try is do it without filter_progress() -- instead, use for_each() immediately and use a match statement to sort out different types of messages. The iterator already includes every ffmpeg log message, including any errors that might be happning, so you can try printing those out. They are of type FfmpegEvent::Log I think.
I can give a better example of what I mean later this weekend.

@jungerm2 Turns out it's something even simpler. When you call .split(' '), it splits your title 'some cool title' into three different arguments! After displaying the FFmpeg log messages, you would see an error message, something like "cool" is not a valid argument.
To fix this, you can add the arguments this way instead:
.args(["-metadata", "title=some cool title"])

Keep in mind you can call arg or args multiple times, each time they just append additional arguments. Also you should omit the single quotes from the title entirely, otherwise they will be included in the metadata and show up as the video's title. Lastly, I would recommend printing the FFmpeg log messages while developing/debugging your program, in order to catch errors like this in the future.
Here's a working example: https://github.com/nathanbabcock/ffmpeg-sidecar/blob/main/examples/metadata.rs.
Hope this helps!


Bundle size increase from 3.0.4 to 4.1.3

Is a bundle size increase from 19kb (zipped https://github.com/jshjohnson/Choices/blob/v3.0.4/assets/scripts/dist/choices.min.js) to 26.2KB (zipped, https://github.com/jshjohnson/Choices/blob/v4.1.3/public/assets/scripts/choices.min.js) (around 37%) to be expected?
It's still a very small package - one of the reason why I use and love it. But maybe it indicates something that could be configured e.g with my webpack setup, release notes for 4.0.0 for example mentions "more modular code"?

Unfortunately this is one of those trade offs. In earlier versions of Choices, nearly all the code was in monolithic class which was horrendous to maintain (it arguably still is). In an attempt to improve this I began extracting functionality but this in turn increases bundle size.
Upgrading webpack is something worth trying regardless but yeah, that's why!

I've made a few changes to reduce the bundlesize back to 22kb. I've also added some CI checks to ensure the JS bundle doesn't exceed 25kb 👍


L21207:  Code box creating inconsistency

Hello, @mairaw,
Localization team has reported source content issue that causes localized version to have broken format compared to en-us version.
Please review and merge the proposed file change to fix to target versions. If you make related fix in another PR  then share your PR number so we can confirm and close this PR.
Many thanks in advance.
Summary
Describe your changes here.
Fixes #Issue_Number (if available)

Hello, @BillWagner and @svick,
Thanks for your comments. Committed as indicated. Could you review and help to merge, please?
Thank you.

Thanks for making the updates @carolinacmoravia
I've reviewed the updates and I'll :shipit: now.


Strange Android build error

If I run the example app, it builds and works perfect.
When I add the package to my project and try to build it, I get the below error.
I am no expert, but the two bold lines suggest the problem.
I have never seen this type of build error after adding a package dependency.
I did try adding, 'tools:replace="android:label"' and 'tools:replace="android:allowBackup"' but then got a different build error.
Any suggestions?  Thank you!
'''
D:\code\spravzhni\spravzhni_mobile\android\app\src\debug\AndroidManifest.xml Error:
Attribute application@allowBackup value=(false) from (unknown)
is also present at [com.github.tgio:rncryptor-native:0.0.9] AndroidManifest.xml:14:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to  element at AndroidManifest.xml:4:5-36:19 to override.
D:\code\spravzhni\spravzhni_mobile\android\app\src\debug\AndroidManifest.xml Error:
Attribute application@label value=(????????) from (unknown)
is also present at [com.github.tgio:rncryptor-native:0.0.9] AndroidManifest.xml:15:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to  element at AndroidManifest.xml:4:5-36:19 to override.
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed with multiple errors, see logs

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 18s
Exception: Gradle task assembleDebug failed with exit code 1
'''

Thank you so much @longtimedeveloper for your response i will fix it soon so you can continue you work

@Dev-Devarsh this is my AndroidManifest.xml  I hope this can help.  Thank you very much
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
	<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <application
        android:allowBackup="false"
        android:fullBackupContent="false"
        android:label="СПРАВЖНІ"
        android:name="${applicationName}"
        android:icon="@mipmap/launcher_icon">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

Thanks lot @longtimedeveloper for more information

Hey @longtimedeveloper
Inside your android >app > src > main > AndroidManifest.xml file ,  add below lines
 tools:replace="android:label"  inside your  tag &  add xmlns:tools="http://schemas.android.com/tools" to your  tag
All set , You are ready to secure app with encryption

@Dev-Devarsh still will not build.
Debug console build errors
D:\code\spravzhni\spravzhni_mobile\android\app\src\debug\AndroidManifest.xml Error:
	Attribute application@allowBackup value=(false) from (unknown)
	is also present at [com.github.tgio:rncryptor-native:0.0.9] AndroidManifest.xml:14:9-35 value=(true).
	Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:4:5-37:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from (unknown)
  	is also present at [com.github.tgio:rncryptor-native:0.0.9] AndroidManifest.xml:14:9-35 value=(true).
  	Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:4:5-37:19 to override.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 52s
Exception: Gradle task assembleDebug failed with exit code 1

AndroidManifest.xml
<manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android">
	<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <application
        android:allowBackup="false"
        android:fullBackupContent="false"
        android:label="СПРАВЖНІ"
        android:name="${applicationName}"
        tools:replace="android:label"
        android:icon="@mipmap/launcher_icon">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

Hey @longtimedeveloper Inside your android >app > src > main > AndroidManifest.xml file , add below lines  tools:replace="android:label" inside your application tag & add xmlns:tools="http://schemas.android.com/tools" to your manifest tag
All set , You are ready to secure app with encryption

this fix didn't work.  You can see my build errors and my new AndroidManifest.xml above.  Thank you for trying.

@Dev-Devarsh are you going to reopen this issue?  Or should I try to find another package? I really like this package.  Thank you.

Hey @longtimedeveloper
just pase this code in your AndroidManifest XML file , make sure your are replacing code in release AndroidManifest XML file not in debug AndroidManifest XML file
<manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android">
	<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <application
        android:allowBackup="true"
        android:fullBackupContent="true"
        android:label="СПРАВЖНІ"
        android:name="${applicationName}"
        tools:replace="android:label"
        android:icon="@mipmap/launcher_icon">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

This is a very secure app.  I can not use the below two settings.
 android:allowBackup="true"
 android:fullBackupContent="true"

Your configuration of AndroidManifest XML results in the same errors I have been getting.

Every one can use without any kind of updatation in manifest file
I dont know what's wrong with your code
Please provide me full error message along with  gradle version & kotlin version you are using

And if you dont want to use this package, simply copy the code from MainActivity.kt from this packages android folder and use it with Method channel in your project


1.0.0-beta3 Can't use sqlite on either linux or in docker

If you try to use docker with the following:
docker run -it supergiant/supergiant-api /supergiant-api --publish-host localhost --http-port 80 --sqlite-file supergiant.db
You will get this error:
panic: sql: unknown driver "sqlite3" (forgotten import?) [recovered]
	panic: sql: unknown driver "sqlite3" (forgotten import?)

goroutine 1 [running]:
panic(0xcd6d20, 0xc420011d50)
	/home/travis/.gimme/versions/go1.7.linux.amd64/src/runtime/panic.go:500 +0x1a1
github.com/supergiant/supergiant/vendor/github.com/urfave/cli.HandleAction.func1(0xc420277858)
	/home/travis/gopath/src/github.com/supergiant/supergiant/vendor/github.com/urfave/cli/app.go:478 +0x247
panic(0xcd6d20, 0xc420011d50)
	/home/travis/.gimme/versions/go1.7.linux.amd64/src/runtime/panic.go:458 +0x243
github.com/supergiant/supergiant/pkg/core.(*Core).Initialize(0xc4202b7e00)
	/home/travis/gopath/src/github.com/supergiant/supergiant/pkg/core/core.go:105 +0x10a
main.main.func1(0xc4202d23c0)
	/home/travis/gopath/src/github.com/supergiant/supergiant/cmd/server/server.go:34 +0x49
reflect.Value.call(0xc71740, 0xc4200119d0, 0x13, 0xe476b4, 0x4, 0xc420277818, 0x1, 0x1, 0x4d6fa8, 0xe31120, ...)
	/home/travis/.gimme/versions/go1.7.linux.amd64/src/reflect/value.go:434 +0x5c8
reflect.Value.Call(0xc71740, 0xc4200119d0, 0x13, 0xc420277818, 0x1, 0x1, 0x1, 0x2, 0x2)
	/home/travis/.gimme/versions/go1.7.linux.amd64/src/reflect/value.go:302 +0xa4
github.com/supergiant/supergiant/vendor/github.com/urfave/cli.HandleAction(0xc71740, 0xc4200119d0, 0xc4202d23c0, 0x0, 0x0)
	/home/travis/gopath/src/github.com/supergiant/supergiant/vendor/github.com/urfave/cli/app.go:487 +0x1e0
github.com/supergiant/supergiant/vendor/github.com/urfave/cli.(*App).Run(0xc4203c8000, 0xc42000a0e0, 0x7, 0x7, 0x0, 0x0)
	/home/travis/gopath/src/github.com/supergiant/supergiant/vendor/github.com/urfave/cli/app.go:245 +0x59b
main.main()
	/home/travis/gopath/src/github.com/supergiant/supergiant/cmd/server/server.go:176 +0xc58

The exact same thing happens if try it on an ubuntu 16.04 box (with or without sqlite installed).

@golkir  I think we should prob put out an install doc soon. I am going to get something together to get @mclark4386 by but we should move that high on our priority.

The same issue with 1.0.0-beta4:
'''
./supergiant-api-linux-amd64 --config-file ~/supergiant/config.json
panic: sql: unknown driver "sqlite3" (forgotten import?) [recovered]
panic: sql: unknown driver "sqlite3" (forgotten import?)
'''

I'm running into this when following the DigitalOcean tutorial with v1.1.0. Does this mean the issue is still not resolved? Or should I install a dependency?

@timdp Yes, this issue is still unresolved, but I'm trying to get the team focused on it. As soon as things are properly set up, we're going to update these tutorials and docs to properly equip users. 🙂 Thanks for letting us know which tutorial you were looking at, we appreciate the extra voice on this!

The docs have been updated! https://supergiant.readme.io/v1.1.0/docs/linux
Hopefully this satisfies this particular issue. 🙂 Regarding the tutorials, those are unrelated to this issue, but we're going to get started on fixing those. I'll leave this open for a few more business days and then close it if all seems well. 🙂


Make parseConstructor robust against malformed or out of range numbers

Description
Motivation and Context
Currently sources with unexpected or wrong values in Color constructors cause the plugin to throw. This is not nice, even wrong sources should be handled gracefully.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-Functional Change (non-user facing changes)

Checklist:

[ ] My code follows the code style of this project (./gradlew check passes clean).

Tip: If you have lint issues just run ./gradlew :ktlintMainSourceSetFormat.

[ ] I updated the version.
[ ] I updated the changelog with the new functionality.

I want to add smarter auto-detection of mixed float (or double) / int inputs.

Tell me whenever you're ready. I merged the other one.

I think it should be ready. For future development, some unit test would probably come handy - perhaps I will find some time to add some, but I do not think this PR needs to wait for them.


ci: regenerate package lock file

https://coveord.atlassian.net/browse/KIT-2429
Also

fix headless version in hosted pkg
add a npm script to perform clean install

All checks passing except Report bundle size as it does npm ci on master to compare I guess - Since master is broken looks like I have to merge this PR anyways.


Move crouch collision capsule parameters out of Collision Capsule Trait and into Character Trait

[x] In FCollisionCapsuleParametersFragment we have properties CrouchCapsuleRadius and CrouchCapsuleHalfHeight which only make sense for characters, yet we use this fragment on vehicles now. Move these two properties into a new struct FCharacterCollisionCapsuleParametersFragment which will subclass FCollisionCapsuleParametersFragment.
[x] Update UMassCharacterTrait to use FCharacterCollisionCapsuleParametersFragment instead of FCollisionCapsuleParametersFragment.
[x] Move FCollisionCapsuleParametersFragment into MassCollisionCapsuleTrait.h since it'll become specific to that trait now.
[ ] In ProcessEntity function in MassCheckLosToTargetProcessor.cpp where we call TargetEntityView.GetConstSharedFragmentData<FCollisionCapsuleParametersFragment>() we should instead change it to first check if TargetMassCharacterStateFragment is null. If it's null, then we should get FCollisionCapsuleParametersFragment. If it's not null we should get FCharacterCollisionCapsuleParametersFragment. Then pass the result to MakeCapsuleForEntity.
[ ] In UMassProjectileHitProcessor::SignalEntities we should similarly either get FCollisionCapsuleParametersFragment or FCharacterCollisionCapsuleParametersFragment and pass it into MakeCapsuleForEntity there.
[ ] Do the same for MakeCapsuleForEntity calls in UMassTargetGridProcessor::Execute.
[ ] Do the same for MakeCapsuleForEntity call in FMassFireProjectileTask::FireProjectile
[x] In MassCoverQueryProcessor.cpp use FCharacterCollisionCapsuleParametersFragment instead of FCollisionCapsuleParametersFragment.

In UMassProjectileHitProcessor::SignalEntities we should similarly either get FCollisionCapsuleParametersFragment or FCharacterCollisionCapsuleParametersFragment and pass it into MakeCapsuleForEntity there.
UMassProjectileHitProcessor doesn't seems to exist anymore

In UMassProjectileHitProcessor::SignalEntities we should similarly either get FCollisionCapsuleParametersFragment or FCharacterCollisionCapsuleParametersFragment and pass it into MakeCapsuleForEntity there. UMassProjectileHitProcessor doesn't seems to exist anymore

Sorry it was renamed to UMassHitByProjectileProcessor


[Forward port] In rancher pod logs, seeing many "Timeout: Too large resource version" followed by crash

Fixing this issue: https://github.com/rancher/rancher/issues/28477 for master

duplicate of: https://github.com/rancher/rancher/issues/28363


fix syntax highlighting of vim option

A Vim option name might not be correctly highlighted when on a line with an escaped trailing character:
set showbreak=↪\

In that case, the end of the region cannot be found because of the skip and oneline arguments.
Fix the issue by tightening the skip regex; do not skip an escaped character at the end of a line.
Reference: issue #5570

I just uploaded a new syntax/vim.vim (8.2-05) to my website. It incorporates your fix (k-takata) and fixes some other issues with def .. enddef. Passes all syntax tests, too.

Thank you very much for the quick fix.  Closing the PR then.


CON-2702: fixed breaking cart when cart coupons don't have a price

Coverage decreased (-0.006%) to 18.176% when pulling 64e818b95dc68122eab6de1cf7f2e98640bf8c48 on CON-2702-pwa-cart-black-screen-discount-products into 0022f58707e9c78b141a6a4da6dfa34a35bb4aa9 on master.


Minor corrections in Readme.md

eXpand.lab release 20.1.701.0 includes commit that relate to this task:

[Merge pull request #750 from Paramethod/master

Minor corrections in Readme.md](https://github.com/eXpandFramework/eXpand.lab/commit/0c98e54ffc49e1913c54cacf8589c2b0664640cd)
Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.
To minimize version conflicts we recommend that you switch to PackageReference format and use only the eXpandAgnostic, eXpandWin, eXpandWeb packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all.
Thanks a lot for your contribution.


Use "sudo ls" instead of os.listdir in gearman collector

This should really be configurable. Like "use_sudo" at the collector level. It's conceivable that other users wouldn't want/need to do this at elevated privilege level. Otherwise, looks ok to me.

indeed as @zachm use_sudo is the way to go. and make it configurable, those who make it True however need to be sure that the user running the fullerite process has sudo permissions.
@venkey-ariv btw, if you use use_sudo you need to run the command using run_command in collector.py for use-sudo to take effect.

+1 lgtm


Add support for bundle folder

Hi,
please add support for items in Resources.bundle e.g<EMAIL_ADDRESS>Because when we use Resources.bundle, then there are not changes at pbxproj file for each change in this directory with using git
Thanks

I'm not sure how many people would benefit from supporting bundles, if you have a pure Swift project you can just use frameworks and generate a R.generated.swift file within the project exposing the resources in there. A seperate bundle with resources sounds to me like a thing from the ObjC world with static linked frameworks that couldn't include resources.
Maybe I'm wrong, love to hear about the use cases, but I don't think this is a top priority.

We use bundle folders for easy collaboration with designers. They behave like referenced folders in Xcode, no change to the .pbxproj file for easy GIT. No need to handle .xcassets JSON structure, no slow drag-&-drop of resources in Xcode, no problems with resources renaming and moving. Designers just export PNGs into the bundle and push to GIT repository. No need to learn designers anything about the Xcode and GIT conflicts resolving.
Bundles have too many pluses to not to use them.

@martinflorek
If your designers use sketch you may want to check these two plugins:
https://github.com/iGenius-Srl/Seca
https://github.com/iGenius-Srl/sketch-app-asset-export
The resources exported with these plugins generate also the json structure ( for ios only) and take care of the naming conventions
What we do:
We have a git repo where designers export using these plugins
Then for both iOS and Android we have a python script that just copies the files in the project at build time.

Together with @tomlokhorst I looked into bundle support. Also relates to CocoaPods w/bundles as discussed in #295.
We think R.swift should detect the bundle by itself, since bundles are also mentioned in the Copy Resources build phase in Xcode. So we can detect them automatically and then put all resources found in that bundle under R.bundle.myBundle.*.
This more robust than the proposed solution in PR #395 since this won't support having both resources in your project as well as in one or more bundles. Detecting bundles, picking out all resources and adding them in the R file should not be too hard to implement.

What about static frameworks? It's not contain resources

Static frameworks used for performance reason. We have about 200 pods in podfile.lock, and with dynamic frameworks app load about 15-30 sec dependent on iPhone model/iOS version. With static it takes about 3-5 sec.

Together with @tomlokhorst I looked into bundle support. Also relates to CocoaPods w/bundles as discussed in #295.
We think R.swift should detect the bundle by itself, since bundles are also mentioned in the Copy Resources build phase in Xcode. So we can detect them automatically and then put all resources found in that bundle under R.bundle.myBundle.*.
This more robust than the proposed solution in PR #395 since this won't support having both resources in your project as well as in one or more bundles. Detecting bundles, picking out all resources and adding them in the R file should not be too hard to implement.

Hi. Has it (R.bundle.myBundle.*) been already implemented?

Same question, how long will it take to implement this feature?

Seems this issue was opened in 2016. Was is the current status in 2022?
Our framework, because of dependencies, must be released as a static framework. I'm running into this issue now and wondering if I should remove R.swift entirely form our library of if I can fix it somehow.
Thanks for your help in providing an answer!

Seems this issue was opened in 2016. Was is the current status in 2022?
Our static framework must use the resource_bundles to add our resources. I saw a comment about support here: https://github.com/mac-cain13/R.swift/issues/295#issuecomment-617811400
Is this being considered for work or should I consider the workaround provided by https://github.com/mac-cain13/R.swift/issues/295#issuecomment-328984986 or removing R.swift entirely ?

Bundles are supported, see the example RswiftAppWithStaticFrameworks

hi @tomlokhorst is cocoapods also supported?


Options meta issue

[x] Loading/configuration

[x] Defaults
[ ] Dependent options - WIP

[ ] UI - WIP

[x] Options sections
[ ] Jump to section sidebar

[ ] And its animation

[ ] UI wired up to bindables
[ ] Deal with overlay clicky issues on desktop
[ ] Rework options a bit for osu!next (some categories could be reworked)

See https://github.com/ppy/osu/issues/127


Conditional Database Import / Docos

Two parter, so feel free to request that I break apart.

Trivial fixes to ESDA documentation.
I added a database driver to the current FileIO module.  This uses a conditional import  (in core/IOHandlers/init.py) and depends on both sqlalchemy (ships with anaconda) and geomet.

The main reason for the PR is to continue the conversation re: FileIO / Database access / Conditional imports.
To test (conda install gdal - only to get the test data generated, not necessary for the PR):
#Slurp all the pysal example files into a single sqlite database
import glob
import subprocess
psexamples = glob.glob('/Users/jay/github/pysal/pysal/examples/*/*.shp')
for i, s in enumerate(psexamples):
    cmd = 'ogr2ogr -f SQLite -append /Users/jay/Desktop/psexamples.sqlite {}'.format(s)
    subprocess.check_call(cmd.split())

Then
import pysal as ps
db = ps.open('sqlite:///psexamples.db') # /// is a relative sqlite open and //// is an absolute path
db.tables #property to list available tables

# List of tables printed to screen

virginia_geojson = ps.read('virginia', attributes=True)  #Defaults to attributes=False, or just the

Some things to discuss (maybe in a hangout?)

FileIO looks like it would be much more streamlined using ABC.  Having said that, it works and adding a new driver is trivial once the learning curve is stumbled up.
FileIO docos claim to require read, seek, and next methods, but a DB is not a file object.  How can the interface be either generalized or the differences obfuscated (the current hack feels like a hack, so zero love from here)
Conditional import a la @ljwolf suggestion via gitter.  Thoughts?  It is throwing a proper error on your side if you do not have Geomet?
What about passing an SQL statement to the reader - totally possible - but do we want to support that?
The user is required to know the input data type with respect to identifying sqlite:/// (or postgresql with username/password/port).  Do we want to try and abstract that from the user or just accept that this is the way SQLAlchemy manages interfacing with databases?

This looks awesome! Cloning now.
What you've put are great starting points for a discussion. That said, I may be a bit more outspoken about FileIO...

This is a great implementation of a db interface leaning on the current mature standard for database interaction in python. Awesome. IMHO, we should extend this approach: FileIO started before a "good" python wrapper around OGR IO stuff. Moving forward, we should take advantage of new IO packages with soft dependencies while providing ways to access old behavior. Our comparative advantage is analytics, not feature-complete python clones of OGR. Using SQLalchemy here is definitely :+1:

True... also applies more broadly to streams of GeoJSON/semistructured data. No clue how to do this. Ties to 4 quite strongly.

freaking awesome, exactly how this should work @ module level! Now, how can we get nose to acknowledge this and avoid running tests on disabled modules?

So, if the connection is opened as conn, then, a conn.read(<SQL>) would just pass the query string and kwargs down to the sqlalchemy engine? Seems fine in theory.

I've seen some solutions to make it simple to connect to databases (and to avoid using plaintext passwords in demo code), but they involved a persistent local store of hashed credentials, and a set of "accessor" functions to connect to a database using the stored creds. So, like pysal.db.add_database('USCensus', 'username', 'password', 'host', 'port', 'protocol')) would store and pysal.db.connect('USCensus') would attach. Not the best, but definitely should be discussed. I have code to do this laying around if a prototype is wanted.

For 3, I think that the solution could be as easy as using a unittest.skipif() decorator.
https://docs.python.org/2/library/unittest.html#skipping-tests-and-expected-failures
So perhaps something like:
test_db.py

import unittest
from .. import db

try:
    import sqlalchemy
    import geomet
    missing = False
except:
    logger.debug('some message')
    missing = True

class TestDB(unittest.testcase):

    @unittest.skipif(missing == True)
    def setUp(self):
        #Fire up the db connection

    @unittest.skipif(missing == True)
    def test_listtables(self):
        #Test table listing

Then it looks like nose has support for printing a 'S' for skipped tests.  http://nose.readthedocs.org/en/latest/plugins/skip.html
As an aside - checkout some of the other decorators and the ability to roll your own unittest decorators.  Not something I have thought about before, but super nice to see that these exist.
For 4:
That would be the idea.  I will extend the class to support that.  At the same time, I need to explore SQLAlchemy a bit more to see how much metadata I can get off of a mapped table.  For example, it would be a nice bit of functionality to print table metadata via a mechanism similar to the .tables attribute.

Okay, cool. @TaylorOshan and I were dealing with some of the same issues in skipping tests based on conditions while trying to make moving contrib/spint into core work correctly, with testing and conditional import.
We should write condtional import stuff into the styleguide, so that it's consistent across the different sets of potential soft dependencies.

So I played around a bit more with FileIO and how this might look:

If a class base architecture with strict interface enforcement is the desired approach, I think using the ABC module to define an abstract base class and then a dispatcher similar to the current implementation might work.  That should be more explict than the existing implementation, but follow the same model.

This maintains the fragility in guessing input type by extension, but enforces a consistent interface.  From  a user perspective, the development of drivers that are roughly similar to those that already exist is quite straight forward.  Additionally, the user  can expect that ps.open will succeed in opening the file.  Unforuntaley, this approach introduces significant difficulty when the input format does not conform so well to the interface, e.g. the current example of a file based approach interfacing with a database.  I am also not 100% sure how a dispatacher might look without a metaclass.  ABC enforces structure, but does not help with dispatching.

Looking to pandas, the burden of input type identification is pushed to the user, e.g. pandas.from_json().  This allows the IO code structure to be significantly simpler.  Looking at the excel driver, a class based approach is taken.  Moving to the sql driver, the driver is organized as a module of functions.  This approach support freedom for the developer and freedom in defining the interface, i.e. sql driver can focus on treating the database as a database.  Pandas is, in some cases, defining writers using ABC, but this is inconsistent.  This works for pandas because all the drivers create the same set of internal data representations (data frame, series).

Some questions that we need to answer:

Where does the burden of driver selection lie?  I see this as a balancing act between fragility and user responsability, but perhaps that is not the best approach?

Given the range of drivers, does it make sense to try and strictly enforce a uniform interface?  Consider  .shp, .gal, and .sqlite as three potential divergent formats.

Looking at FileIO.py, the documentation at the top suggests that all driers will support read, seek, and next.  Take a look at the GAL driver - seek is just a place holder since seeking makes little sense and next does not exist.  This suggests that the defined interface is not representative of the interface we need.  (Or that ABC should be used to throw an error that we do not conform to our own docos).

Am I missing some other essential issue?

While we probably want to finally finish this (& weights construction stuff), I think we might benefit from:

Move the discussion of improving/restructuring of FileIO around plug-and-play drivers to a "release + ∞" issue. I think it requires quite a bit of sub-issuing to make attainable.
Inaugurate an "OPTIONAL" tag for soft dependency introductions that are intended for core.
Merge this PR as "OPT: Database driver in FileIO" OR redirect this to contrib

Thoughts?

Changes Unknown when pulling e1b54eef12ac5e375b13c146f6a4617572c1b30d on jlaura:master into ** on pysal:master**.

@jlaura would it be alright to cherrypick your commits from this & redirect to dev?

:+1:
On Saturday, July 16, 2016, Levi John Wolf<EMAIL_ADDRESS>wrote:

@jlaura https://github.com/jlaura would it be alright to cherrypick
your commits from this & redirect to dev?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pysal/pysal/pull/692#issuecomment-233155329, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACAgfMogfa8jHQokVhJVbrtC4h732yljks5qWWEUgaJpZM4F6va2
.

closed by #841


Not recognized methods

hi @mesour, first I want to thank you for this plugin, nice work!
I have one surprising behavior, I have template:
{varType Student $student}
{$student->getCourse()->getName()}
Above is analysed fine getName is known method, but if I assign variable:
{varType Student $student}
{var $course = $student->getCourse()} <-- whithout type definition
{$course->getName()}
…method getName is highlighted as unknown.

For completion – interfaces of PHP classes:
interface Student {
	public function getCourse(): Course;
}

interface Course {
	public function getName(): string;
}

Is this expected behavior?
Hi @messour, namespace is not problem, your cited code snippet work fine, problem is only with this:
{varType \Student $student}
{var $course = $student->getCourse()} <-- getCourse() is known, it returns \Course
{$course->getName()} <-- getName() is unknown for latte plugin
In runtime it work properly, only static analysis in PhpStorm screams

It was really not implemented. It will be fixed in 1.03


Buttons are misplaced

Buttons should be at the bottom of the form and I want them to have their own special effect.

the buttons are now centered, will work on the effects another day when I have the time.


⚠ AtmoLive02 Server has degraded performance

In 9b20f1b, AtmoLive02 Server ($ATMOLIVE02) experienced degraded performance:

HTTP code: 200
Response time: 13545 ms

Resolved: AtmoLive02 Server performance has improved in 101b40a.


[TF-TRT] Changes the MatMul converter to use the MatrixMultiplyLayer if possible

Changes the MatMul converter to use IMatrixMultiplyLayer instead of IFullyConnectedLayer where it is advantageous. The latter requires inputs to be at least rank 3, whereas the former does not. The IFullyConnectedLayer is only used when either int8 mode is specified (MM does not support int8) or when the input is already rank >= 3.

@chsigg sure, will do!

@chsigg sure, will do!

Yeah, I had already done this locally
I think this check is covered already by the more strict check for the second input (which is is_tensor && nbDims < 2)
I can turn it into a helper, but we'd still need the more strict check for the second input.

Ok my last comment is optional since we don't support batchmatmulv2 yet, please ignore if necessary.

Yeah, we'll need to add the additional check once we support BatchMatMulV2

Hi @pranavm-nvidia, please help to fix the broken test:
FAIL: //tensorflow/compiler/tf2tensorrt:convert_graph_test_gpu (see bazel/execroot/org_tensorflow/bazel-out/k8-opt/testlogs/tensorflow/compiler/tf2tensorrt/convert_graph_test_gpu/test.log)
INFO: From Testing //tensorflow/compiler/tf2tensorrt:convert_graph_test_gpu:
==================== Test output for //tensorflow/compiler/tf2tensorrt:convert_graph_test_gpu:
2019-05-13 19:13:20.868169: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0
Running main() from test_main.cc
[==========] Running 3 tests from 3 test suites.
[----------] Global test environment set-up.
[----------] 1 test from TrtCandidateSelector
[ RUN      ] TrtCandidateSelector.Basics
tensorflow/compiler/tf2tensorrt/convert/convert_graph_test.cc:49: Failure
Value of: status.error_message()
Expected: has substring "transpose_a is not supported for TensorRT FullyConnected (op: MatMul), at: incompatible_matmul"
  Actual: "Cannot transpose first input if it is a tensor with fewer than 2 non-batch dimensions." (of type std::string)
Invalid argument: Cannot transpose first input if it is a tensor with fewer than 2 non-batch dimensions.
tensorflow/compiler/tf2tensorrt/convert/convert_graph_test.cc:49: Failure
Value of: status.error_message()
Expected: has substring "transpose_a is not supported for TensorRT FullyConnected (op: MatMul), at: incompatible_matmul"
  Actual: "Cannot transpose first input if it is a tensor with fewer than 2 non-batch dimensions." (of type std::string)
Invalid argument: Cannot transpose first input if it is a tensor with fewer than 2 non-batch dimensions.
[  FAILED  ] TrtCandidateSelector.Basics (12 ms)
[----------] 1 test from TrtCandidateSelector (12 ms total)

graph_test has been fixed

@pranavm-nvidia thanks. Would you please fix the MatMul problem mentioned above and add positive cases for BatchMatMul?

@aaroey I've fixed the MatMul test case and also added a positive test case for BatchMatMul.

Thanks for all the fixes @pranavm-nvidia !

This PR is merged, but not sure why it was not shown like that (seems to be a bug of copybara), sorry about that. I'm closing.

Hi @yifeif, do you know if there is a way to mark this as merged?


(maint) windows classic server2012r2 vhd update for the acceptance tests

The old image link had been deprecated by a new release.

@gregohardy This looks good to me. Ill squash commits when merging.


A Uniform Navbar for all the pages

Problem: As you may notice, the navbar across all the pages is not uniform, especially in the FAQ and about us page.
Task:

To create a responsive navbar with all the pages mentioned and functioning
The UI of the navbar should be the same across all the pages
The navbar should enhance the UI of the website, keep it simple and minimalistic

Instructions:
Anyone who wishes to work on the navbar, should write a comment on this issue.
The task will be assigned on a first come, first serve basis.
The assignees will have 2 days to finish the task, if not done then we will assign the issue to other person.
Note: All the issues related to navbar will be closed, only this issue will be dealing with navbar and its enhancements.

I address the unified navbar issue with the #219 pull request issue for #215
I can do the responsive part along with it if needed

I have submitted PR #124 , which addresses the task of ensuring consistent and minimalistic UI for the navbar across all pages, as per the project requirements. I have kept the design simple to enhance the overall user experience.
Could you kindly review the PR and, if everything is in order, either assign it to me or proceed with merging it?
I look forward to your feedback.

@jaison-jai-john there are plenty of conflicts in your pr, kindly resolve them and also i suggest to not add the index.html file in html files section. Due to that the deployment of site is not happening.

Multiple people can work on this issue if they want to i will assign the pull request to all of you
Just coordinate with each other in discord and make sure you mention here before creating the pull request

i want to work independently for all nav bars

i have assigned 3 people for now let see who is able to fix the navbar properly the best out of the 3 will be merged with level 3 label it must be responsive meaning the hamburger icon should be enabled
also it should look good in all devices

hello @aditya-bhaumik sir  , i was already assigned for enhancing the navbar , fixes #124 , i already worked on this , please review it sir , let me know if any changes you want sir

@priyashuu its not responsive thats the problem so many people have been working on the navbar which causes problem after every pull requests merged
so this time i want a final navbar which is fixed
I dont want any more issues being created on navbar

Thats why i told you all can collabrate each one of you will get level 3

join the discord server whoever is not there i am communicating about this issue daily there

i would like to work on this issue.

ok sir


Face Recoginition using VGG16

I can do that using VGG16. But what dataset will I use for that? @akshitagupta15june

I am a GSSOC21 Participant. I can do that using VGG16 in PyTorch. Can I use any dataset from kaggle for that? @akshitagupta15june

That's great, I think we can collaborate and work on many other architectures and can also work on real time face mask detection using live camera.

Hello ma'am, I'm a GSSOC'21 participant and I want to know if the recognition is based on face verification or identification? I'm comfortable in both cases. Can you please assign this issue to me? If assigned I will be using tf.keras's VGG16 model to build a siamese network for this task.


A strongly-named assembly is required for DynamicExpresso.Core

Hello! We are using your assembly through the Nuget package. Could you please sign your assemblies with a strong name, because it's imposible to use it from other strong named assembly.
Thanks!

Hello Evgeniy, currently I prefer to don't release a strongly signed assembly. Consider that this is an open source project, so if I strongly sign it then I should also put the key somewhere. Not in the source code otherwise the signing process doesn't make any sense (anyone can alter it...) and for now I prefer to keep the build process simple and just release a single version.
I suggest you to fork the project in a private repository that you can trust (or in a public repository but keep the key outside) and create a signed version of the assembly that you can guarantee, because only you have the key to rebuild.
In any case I will think about this requirement for the future...
thanks

+1
It would be so nice to have a nuget package with a signed version of the assrmbly. What a burden to have to fork just to sign the assembly.
I do not like much signing as well but once an assembly is signed the signature chain has to be respected.

Maybe this could help:
https://github.com/anjdreas/UnitsNet/issues/262


Netflix failed to start "Check Log"

I'm submitting a ...

[ ] bug report
[ ] feature request
[X] support request

General information
When I start Netflix, it fails to open asking me to check log
Prerequisites

[x] Are you running the latest version?
0.13.21

Description
[Description of the bug or feature]
Steps to Reproduce

[Just trying to open Netflix Addon]

Expected behavior: [What you expected to happen]
Failed to start
Actual behavior: [What actually happened]
Context (Environment)
Installation

[ ] I installed the plugin via zip from the Releases page
[x] I´m using the Netflix Repo
[ ] I´m using a different source (Please tell which)

Operating System

[] Linux (x86/x64)
[ ] OSX (x86/x64)
[ ] Windows (x86/x64)
[x] Linux (ARM)
[ ] Android

Additional informatin on the environment
[Descripe your environment a bit more detailed, are you using LibreElec f.e.]
(CoreElec 9.0 S905X both on SD Card and internal memory
Debug log
https://pastebin.com/resY1PNm

Everything is fixed after 0.14 update.
Thank you

Where did you get version 0.14?  I can only find 0.13.21.

Here:
https://github.com/CastagnaIT/plugin.video.netflix

Installing 0.14 version wasn't enough for me. Anyway, looking for a solution in Google, I reached this and completelly fixed this to me:
$ sudo apt-get install kodi-inputstream-adaptive python-crypto $ wget https://pypi.python.org/packages/d6/99/56ac930e35394c93440f1a6e254cf4573098503ff4c1851e820600a46a85/pycryptodomex-3.4.7.tar.gz $ tar -xvf pycryptodomex-3.4.7.tar.gz $ sudo cp pycryptodomex-3.4.7/lib/Crypto/Util/Padding.py /usr/lib/python2.7/dist-packages/Crypto/Util $ sudo ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome $ sudo rm -rf pycryptodomex-3.4.7 $ sudo rm pycryptodomex-3.4.7.tar.gz
Since I don't really know why the InputStream addon wasn't preinstalled with Kodi, I installed it manually. Also you gotta enable the addon from Kodi app.
Technically after all this you might be able to log in.

Installing 0.14 version wasn't enough for me. Anyway, looking for a solution in Google, I reached this and completelly fixed this to me:
$ sudo apt-get install kodi-inputstream-adaptive python-crypto
$ wget https://pypi.python.org/packages/d6/99/56ac930e35394c93440f1a6e254cf4573098503ff4c1851e820600a46a85/pycryptodomex-3.4.7.tar.gz
$ tar -xvf pycryptodomex-3.4.7.tar.gz
$ sudo cp pycryptodomex-3.4.7/lib/Crypto/Util/Padding.py /usr/lib/python2.7/dist-packages/Crypto/Util
$ sudo ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome
$ sudo rm -rf pycryptodomex-3.4.7
$ sudo rm pycryptodomex-3.4.7.tar.gz

Since I don't really know why the InputStream addon wasn't preinstalled with Kodi, I installed it manually. Also you gotta enable the addon from Kodi app.
Technically after all this you might be able to log in.

Thanks @caldera098 . I'm on archlinux and had installed pycryptodomex manually but your comment on the inputstream-adaptive was the missing part.
For reference:
yaourt -Sy python2-pycryptodome python2-pycryptodomex yaourt -S kodi-addon-inputstream-adaptive
Then restart kodi and go to addons > my addons > Inputstream Adaptive > enable


[VS Code] Could not connect to the server. Check that you are connected to the internet.

Error:
Could not connect to the server. Check that you are connected to the internet.
Steps to Reproduce:

just try to start live share

I tried all certs, it says :
System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

Version Data

extensionName
VSLS

extensionVersion
0.3.1005

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.29.1

platformName
Linux

platformVersion
4.19.5-300.fc29.x86_64

@CrowOnslaught Hi there,
Are you behind a corporate proxy? If so, see here: https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/connectivity#proxies. If this doesn't solve your problem,  you can get your logs by running the "Live Share: Export Logs" command in VS Code and send us.  I am closing the issue as duplicate of #1246 . You can find helpful information in #1246 as well. Please add your comments / logs there