Zooz ZSE18 motion sensor not showing temperature

Just converted the Zooz ZSE18 motion sensors over to the Edge drivers successfully but only motion and vibration detection is showing, but no temperature.  Do you think it may be the Edge drivers not reporting temperature any more?

Same as last issue.  Send me the logs and let me know the name of the devices

Turns out the ZSE18 doesn’t report temperatures.  I swore it did…


Tracking and metrics for /works/ and /search

Type
:speech_balloon: Conversation
Needs

[x] Analytics and/or component tracking
Number of downloads
Which option downloaded
Return to results
Pagination controls
Copy link
Search refinements
Monitor searches by: query,

Questions

Is Mixpanel the right way of tracking these components?
Does Google Search Console provide useful information about search behaviour?

Problem to be solved / User Story
In order to monitor depth and breadth of content accessed
As the front-end team
We need/want/expect to be able to find out how people are using what we've built and to see how much of the collection is being used

To be confirmed in meeting on Thursday:

download and download options, and copy link tracking have been set up.
being able to track number of click throughs from home page to works search can be done in GA
check how GA knows what counts as 'site search' --> is this going to show search on images as well as main site or not. Can we split this to get a value for '% search refinements' just for works.
check tracking is on back to results button.

Team agreed that Mixpanel isn't doing anything that GA Events can't do, and lacks some of the functionality that GA provides. Before stopping use of Mixpanel we need to agree an events tracking schema.

@davidpmccormick @hthair If we're going live with images in the navigation we need to sort out our event tracking schema!

Data is being recorded in GA including:

number of downloads (and what they are for)
number of copy-links (and what they are for)
can check outbound links to see how many click on CC link
can see which works pages are most viewed
can view most popular search terms, however this is a slightly tricky process so may look at a better way to do this, but it is currently possible in GA.

Mix panel may be tracking the down arrow button that moves people to the info below the image. GA is not presently doing this.

Back to results button tracking will be set up on GA by @davidpmccormick


Does it support india market?

Hi,
Does seleor support indian rupee, GST, indian payment gateway, shipping?
Marmik

Hi, yes, you can set the default currency to INR, set-up and enable the Razorpay payment gateway.

Thanks for quick replay. What about GST?

You can use Avatax or add your own tax rules.
Details about adding custom tax rates

You can do something like this inside Django (for example from the django shell: ./manage.py shell or through a custom django command):
from django_prices_vatlayer.models import VAT

data = {"country_name":"Turkey","standard_rate":20,"reduced_rates":{"foodstuffs":10,"books":10,"pharmaceuticals":10}}

VAT.objects.update_or_create(
    country_code=country_code, defaults={'data': data})

Just remove the unneeded rates and change the standard rate to the Turkey's.
Here are the available reduced rates available (you most likely need none, so you can just do data = {"country_name":"Turkey","standard_rate":20,"reduced_rates":{}):

0
"accommodation"

1
"admission to cultural events"

2
"admission to entertainment events"

3
"admission to sporting events"

4
"advertising"

5
"agricultural supplies"

6
"baby foodstuffs"

7
"bikes"

8
"books"

9
"childrens clothing"

10
"domestic fuel"

11
"domestic services"

12
"e-books"

13
"foodstuffs"

14
"hotels"

15
"medical"

16
"newspapers"

17
"passenger transport"

18
"pharmaceuticals"

19
"property renovations"

20
"restaurants"

21
"social housing"

22
"water"

23
"wine"

We are planning to add the options to allow storefront owners to add custom tax rates per country and type. But it won't happen yet (#2436).

This was helpful .... Thanks

This was helpful .... Thanks

I have added the tax corresponding to countrycode "IN" which is also my
DEFAULT_COUNTRY = os.environ.get("DEFAULT_COUNTRY", "IN")
I can see these taxes popping up in the taxes section of dashboard.
Now when I to assign these taxes to some of my products and product types by trying to select an option from the tax_rate drop down ... The drop down is unable to load these options as it usually do for other EU countries.
Am I missing something ?

I am kind of stuck here .... @NyanKiyoshi  Will you be able to guide me here ?


Update README.md

Add deployment.yaml to add pods to namespace 1 and 2 for something to shot at

Thanks!


Sort yaml files alphabetically

Hi,
Just a PR to sort alphabetically yaml files. :)
Thanks !

Thank you for your PR fellow OCD'er! We appreciate the time you spend on this, but we will be moving this extension into the FriendsOfFlarum namespace and our language files will already need some changing to accommodate for this change.


Aperture quantities for extra quantity broken for aperture_total

Describe the bug
Latest master.
Adding
Gas_internal_property_names=XXX,
Gas_internal_property_index_in_file=0,
Gas_internal_property_input_output_unit_conversion_factors=1.0e10,
Gas_internal_property_calculation_type=aperture_total,
Gas_internal_property_output_units=solar_mass,

for any existing field XXX breaks. The code does not read in the field and dies rapidly when trying to write the config.
If instead I use
Gas_internal_property_calculation_type=max,

then everything works. The same is true for any of the options apart from aperture_total and  aperture_average which breaks in the same way.
If I change the value of CALCQUANTITYAPERTURETOTAL to 19 in allvars.h (was -1) then the fields get read in.
(That whole section feels like it should really be an enum type!)
I don't know whether that is a proper fix though as further down the line, the extra calculation type is used modulo some quantity (e.g. in ExtraPropInitValue() from substructureproperties.cxx).

Actually, it looks like only the first 8 calculation options are actually implemented. There is also some strange overflow + modulo combinations in substructureproperties.cxx when setting the functions in lines 6335 and following.

To be more specific, here is an example:

Input file: /cosma7/data/dp004/jlvc76/COLIBRE/cold_gas/colibre_0023.hdf5
Config file: /cosma7/data/dp004/jlvc76/COLIBRE/cold_gas/vrconfig_3dfof_subhalos_SO_hydro.cfg
Version: 5eb6351723002a9813753b112a9a8ff62efce295
Compilation line: cmake ../ -DVR_USE_HYDRO=ON -DCMAKE_BUILD_TYPE=Debug -DVR_OPENMP=OFF
Runtime command: stf -I 2 -i colibre_0023 -o haloes -C vrconfig_3dfof_subhalos_SO_hydro.cfg

To get a version that works, comment out line 179 of the configuration and comment in line 180.

Hi @MatthieuSchaller , I'll look into this later tonight.

One additional related thing. If you add aperture_total to a list of things that contain other operations then the code does not crash but returns an array of 0s in the catalogue.
For instance
BH_internal_property_names=SubgridMasses,SubgridMasses,SubgridMasses,SubgridMasses,
BH_internal_property_input_output_unit_conversion_factors=1.0e10,1.0e10,1.0e10,1.0e10,
BH_internal_property_calculation_type=max,min,average,aperture_total,
BH_internal_property_output_units=solar_mass,solar_mass,solar_mass,solar_mass,

does not crash but produces and array of 0 for the last quantity whilst the first three are fine.

Hi @rtobar @MatthieuSchaller
I think I've fixed all the bugs for apertures. The seg fault when running with only apertures loaded was a silly bug that is fixed. I've tested the branch with colibre data, loading in densities for -DVR_MPI=OFF and mpi on. Seems to work. I will do some further testing but the branch is now available. @rtobar you could cherry pick the commits to a local ICRAR branch.
https://github.com/pelahi/VELOCIraptor-STF/tree/bugfix/load_extra_propeties_for_apertures

Nice. Thanks very much for the prompt response!
I am happy to test it as well. Note that beyond the segfault (which was more of a symptom I think) the properties arrays ended up filled with zeros.

The zeros should also be fixed. Based on the colibre snapshot, the values also seemed reasonable too.

I'll try to cherry-pick the changes into a new issue-72 branch (gave it a quick crack, but needs some manual merging, so I'll have to look a bit closer into it). After that we can test the changes in cosma against the original inputs.

@MatthieuSchaller @pelahi's changes have been pushed now to the issue-72 branch, please try them out at your earliest convenience.

Just tried that branch on the example above. It dies with:
[0000] [   1.668] [ info] hdfio.cxx:2447 Reading file 0
[0000] [   1.668] [debug] hdfio.cxx:1244 Opening Dataset PartType0/Coordinates
[0000] [   1.669] [debug] hdfio.cxx:1244 Opening Dataset PartType1/Coordinates
[0000] [   1.669] [debug] hdfio.cxx:1244 Opening Dataset PartType4/Coordinates
[0000] [   1.669] [debug] hdfio.cxx:1244 Opening Dataset PartType5/Coordinates
[0000] [   1.669] [debug] hdfio.cxx:1244 Opening Dataset PartType0/Velocities
[0000] [   1.669] [debug] hdfio.cxx:1244 Opening Dataset PartType1/Velocities
[0000] [   1.669] [debug] hdfio.cxx:1244 Opening Dataset PartType4/Velocities
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType5/Velocities
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType0/ParticleIDs
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType1/ParticleIDs
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType4/ParticleIDs
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType5/ParticleIDs
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType0/Masses
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType1/Masses
[0000] [   1.670] [debug] hdfio.cxx:1244 Opening Dataset PartType4/Masses
[0000] [   1.671] [debug] hdfio.cxx:1244 Opening Dataset PartType5/DynamicalMasses
[0000] [   1.671] [debug] hdfio.cxx:1244 Opening Dataset PartType0/InternalEnergies
[0000] [   1.671] [debug] hdfio.cxx:1244 Opening Dataset PartType0/StarFormationRates
[0000] [   1.671] [debug] hdfio.cxx:1244 Opening Dataset PartType0/MetalMassFractions
[0000] [   1.671] [debug] hdfio.cxx:1244 Opening Dataset PartType4/MetalMassFractions
[0000] [   1.671] [debug] hdfio.cxx:1244 Opening Dataset PartType4/BirthScaleFactors
[0000] [   1.672] [debug] hdfio.cxx:1244 Opening Dataset PartType4/BirthDensities
[0000] [   1.672] [debug] hdfio.cxx:1244 Opening Dataset PartType5/SubgridMasses
HDF5-DIAG: Error detected in HDF5 (1.10.6) MPI-process 0:
  #000: H5Dio.c line 185 in H5Dread(): could not get a validated dataspace from file_space_id
    major: Invalid arguments to routine
    minor: Bad value
  #001: H5S.c line 255 in H5S_get_validated_dataspace(): selection + offset not within extent
    major: Dataspace
    minor: Out of range
Error in HDF routine
Abort(1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

Note in particular that the new fields I am asking to read are not listed in Opening Dataset xxx. However, if I revert to using another kind of property calculation (say average) then it is listed there and the code runs.

I think I've fixed the MPI error. There's an update to the branch

@MatthieuSchaller I've just cherry-picked the latest update from @pelahi and put it in the issue-72 branch for you to test.

Thanks!
The code does not crash anymore at that point. However, the fields are still not listed so I am not sure they are actually read in.
FYI, I am compiling with -DVR_USE_HYDRO=ON -DVR_OPENMP=OFF -DVR_MPI=ON.

The code completed succesfully and the arrays are filled with non-zero values. I'll check them today.

All good! The new properties are all computed correctly.

As an additional check, this also now worked correctly when using OpenMP.

Thanks a lot @pelahi for providing the fixes for this problem, and to @MatthieuSchaller for initially reporting and now verifying the fixes. After a final test round via #74 I merged the issue-72 branch into the master, so we can probably declare this issue as fixed.

As always, thanks for the prompt and efficient response guys! Much appreciated.


Dynamically appending steps on form element click

Hi, So I am having a little difficulty here, what I have is a multi step form that contains questions with multiple 'GoTo's' attached to them. What I am hoping to achieve is that when a user clicks on a button that has goto's set to append the relevent steps to the $scope.sections array (which is the scope var that builds the steps).
Is this possible, if not is there any work around that might help?
<multi-step-container steps="sections" on-finish="finish($getActiveStep())" initial-step="step" search-id="'step'">
        <step-container></step-container>
<multi-step-container>

I thought that I could just push to the array, but that doesn't seem to work:
Section.generateStepFromSection(dependentSection).then(function(response) {
    $scope.sections.push(response);
});

see docs and examples please. there is methods u can directly call and tell component to which step to go. steps need to be initialized from the begging and that's by design. so u can have logic and conditionally set active step but steps list needs to be provided from the beggining.


caching remote resources

How do I cache files located on another server? For example, if I use cloudflare version of angular library or bootstrap and want both of them to be available in offline mode, yet they won't be picked up by the sw-precache profiler. Even if I explicitly mention them in the config file, they still will get excluded because the name glob pattern won't match against anything local. Is there a way to handle such use case with this library?
This doesn't seem to be a service-worker limitation, since I'm finding examples online doing this with vanilla service-worker: https://googlechrome.github.io/samples/service-worker/prefetch-video/

sw-precache will only cache and update local files. It needs to generate a hash for each resource during the build process, which implies that the files are present locally.
If you have resources on a CDN that you'd like cached, you can employ a runtimeCaching strategy to add those. If the URL contains a versioning string, e.g. v1.0.0, like most CDN URLs include, you can safely use a cacheFirst handler, since you know that the resource at that URL will never change:
runtimeCaching: [{
  urlPattern: new RegExp('^https://cdn\.example\.com/'),
  handler: 'cacheFirst'
}]

If there is no versioning information in the URL, then you'd probably want to use the fastest (stale-while-revalidate) or networkFirst handler, to ensure that the cached response gets updated eventually.


Feature/coverage comment

What is this pull request?
This PR adds a robot that it comments coverage to the pull request when each push event.

Can someone who had access to CircleCI communicate do the following:
"set the GitHub token to the environment variable GITHUB_TOKEN in CircleCI"

@Warchant added environmental variable. Can be merged

Looks good.

We will merge feature/refactor-model first, and then this branch to test coverage


startup issue with mounted volume

i think this issue was mention in #283
but this issue still exists when one tries to restart ldap when volume is mounted to host
here is error log am getting
running current latest docker image 4c780dfa5f5e 4 months ago
*** CONTAINER_LOG_LEVEL = 3 (info)
*** Search service in CONTAINER_SERVICE_DIR = /container/service :
*** link /container/service/:ssl-tools/startup.sh to /container/run/startup/:ssl-tools
*** failed to link /container/service/:ssl-tools/startup.sh to /container/run/startup/:ssl-tools: [Errno 17] File exists: '/container/service/:ssl-tools/startup.sh' -> '/container/run/startup/:ssl-tools'
*** link /container/service/slapd/startup.sh to /container/run/startup/slapd
*** failed to link /container/service/slapd/startup.sh to /container/run/startup/slapd: [Errno 17] File exists: '/container/service/slapd/startup.sh' -> '/container/run/startup/slapd'
*** link /container/service/slapd/process.sh to /container/run/process/slapd/run
*** directory /container/run/process/slapd already exists
*** failed to link /container/service/slapd/process.sh to /container/run/process/slapd/run : [Errno 17] File exists: '/container/service/slapd/process.sh' -> '/container/run/process/slapd/run'
*** Set environment for startup files
*** Environment files will be proccessed in this order :
Caution: previously defined variables will not be overriden.
/container/environment/99-default/default.startup.yaml
/container/environment/99-default/default.yaml
ldap_server    |
To see how this files are processed and environment variables values,
run this container with '--loglevel debug'
*** Running /container/run/startup/:ssl-tools...
*** Running /container/run/startup/slapd...
Start OpenLDAP...
Waiting for OpenLDAP to start...
Add TLS config...
Disable replication config...
*** /container/run/startup/slapd failed with status 34
ldap_server    |
*** Killing all processes...
ldap_server exited with code 1

anyone seems to know work around for this?

i mounted the following volumes to my local host
/var/lib/ldap and /etc/ldap/slapd.d
and i already spun up the server once and now i made some changes to the docker network i want it on and now tried to restart/start it again and now i got the mount error

i mounted the following volumes to my local host
/var/lib/ldap and /etc/ldap/slapd.d
so like below
docker run ... -v /data/ldap:/var/lib/ldap -v /data/slapd:/etc/ldap/slapd.d osixia/openldap:latest

and i already spun up the server once and now i made some changes to the docker network i want it on and now tried to restart/start it again and now i got the mount error

U may need to only mount /tmp:/tmp at initial .
After the docker running,
run in docker cp -ar /var/lib/ldap /tmp/; cp -ar /etc/ldap/slapd.d /tmp/
On host machine, cp -ar /tmp//var/lib/ldap/* /data/ldap; cp -ar /tmp//etc/ldap/slapd.d/* /data/slapd
Then you can run openldap with (Persistent storage) via:
-v /data/ldap:/var/lib/ldap -v /data/slapd:/etc/ldap/slapd.d
btw:
You may need to remove unused volumes via docker volume ls && docker volume rm

Run this at the first time..
version: '2.4'
services:
  openldap:
    image: osixia/openldap:1.3.0
    container_name: openldap
    network_mode: host
    restart: unless-stopped
    environment:
...
      TZ: 'Asia/Shanghai'
      KEEP_EXISTING_CONFIG: "true"
      LDAP_REMOVE_CONFIG_AFTER_SETUP: "false"
...
    tty: true
    stdin_open: true
    volumes:
      - /var/lib/ldap
      - /etc/ldap/slapd.d
      - '/tmp:/tmp'
      # - /container/service/slapd/assets/certs/
...

Done with cp things, then you can use this now:
version: '2.4'
services:
  openldap:
    image: osixia/openldap:1.3.0
    container_name: openldap
    network_mode: host
    restart: unless-stopped
    environment:
...
      TZ: 'Asia/Shanghai'
      KEEP_EXISTING_CONFIG: "true"
      LDAP_REMOVE_CONFIG_AFTER_SETUP: "false"
...
    tty: true
    stdin_open: true
    volumes:
      - '/data/docker/openldap/var/lib/ldap:/var/lib/ldap'
      - '/data/docker/openldap/etc/ldap/slapd.d:/etc/ldap/slapd.d'
      # - '/tmp:/tmp'
      # - /container/service/slapd/assets/certs/
...

this is an awful way to build a docker image....makes sense to be running first time and then second time but this is not a good practice..you should be able to run once and things should stick where they should

Well for some reason this VOLUME line is commented. Maybe uncommenting it should do the trick.
https://github.com/osixia/docker-openldap/blob/2a03b392b019adbf810f11bd64a2fed753d77b9d/image/Dockerfile#L59
I am not sure why they are being commented out.

@phy25 not sure this is the reason why because this commented code has been there for 2 years (from git blame)
@encryptblockr a test was added to see if taking volumes from existing host data worked and AFAIK it does (just tried right now on Linux and MacOSX hosts)
the best thing would be to have your entire docker run ... command line and the full output when using --loglevel debug to be able to have a change to progress on this

@obourdon I apologize, I might have messed up my memory with another docker image which requires manually copying.
Looks like it is working on my end as well:
$ mkdir -p VOLUMES/config VOLUMES/database
$ LDAP_CID=$(docker run -h ldap.example.org -e LDAP_TLS=false --volume $PWD/VOLUMES/database:/var/lib/ldap --volume $PWD/VOLUMES/config:/etc/ldap/slapd.d -d osixia/openldap)
Unable to find image 'osixia/openldap:latest' locally
latest: Pulling from osixia/openldap
Digest: sha256:9cf1631238e606cf8b58e4654b26e6eba7182eadafefffa662cd9784ea811eda
Status: Downloaded newer image for osixia/openldap:latest
$ docker exec $LDAP_CID ldapsearch -x -h ldap.example.org -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=org> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# example.org
dn: dc=example,dc=org
objectClass: top
objectClass: dcObject
objectClass: organization
o: Example Inc.
dc: example

# admin, example.org
dn: cn=admin,dc=example,dc=org
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword:: e1NTSEF9dy9hdjNJNVk1VmNsaEdyTVhpVlE3MDVRWkpqVnQvcW8=

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2
$ docker kill $LDAP_CID
d27477cfd9d223bb2d3996a7ea91cd2ac658523d17847472e9d1238cd4e5d25c
$ LDAP_CID=$(docker run -h ldap.example.org -e LDAP_TLS=false --volume $PWD/VOLUMES/database:/var/lib/ldap --volume $PWD/VOLUMES/config:/etc/ldap/slapd.d -d osixia/openldap)
$ docker exec $LDAP_CID ldapsearch -x -h ldap.example.org -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=org> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# example.org
dn: dc=example,dc=org
objectClass: top
objectClass: dcObject
objectClass: organization
o: Example Inc.
dc: example

# admin, example.org
dn: cn=admin,dc=example,dc=org
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword:: e1NTSEF9ejR1YStpZWV0anlUSmJiWjk0b28ycGtWZEJvWTlhKzc=

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2

@phy25 no pb at all and many thanks for checking this on your side


Option to prevent mapster from mapping Get... methods to properties.

Hello, found now way to make mapster forget about GetType and other methods like this to do mapping on.

Yeah, sorry. GetType should be ignored from Get... methods. For now, you can remove Get... by
            TypeAdapterConfig.GlobalSettings.Default.Settings.ValueAccessingStrategies
                .Remove(ValueAccessingStrategy.GetMethod);


Ability to call LorentzVector methods for TTree drawing

Drawing the x,y,z,t components of a 4-vector is not as useful as pt, mass, eta, phi, so I am wondering if it would be easy/feasible to implement methods for TLorentzVectors like Pt(), M(), Eta(), Phi() that could be used like in a normal TBrowser. For example, opening the WJets.root file with ROOT on the command line and opening a TBrowser gives me these options, but jsroot 4.8.1 only lists these options.

Good point.
I will try to add such possibility in the dev branch, where much more functionality for TTree already provided.

In dev version I add support of the object methods. Example is:
http://jsroot.gsi.de/dev/?file=../files/WJets.root&item=t&opt=lep1_p4.X()+lep1_p4.Y()
Actually, in dev branch I implement full support of TTree, including reading arbitrary branch data and
performing TTree::Draw - in this example draw expression is lep1_p4.X()+lep1_p4.Y()
There is one problem with TLorentzVectors classes - there are several coordinate systems and each with dozens of the methods. Could you implement them for all variants in JSROOT?
Example how it can be done you can find here:
https://github.com/linev/jsroot/blob/dev/scripts/JSRootMath.js#L650
Regards,
Sergey

Possibility to call objects methods in TTree::Draw now available in version 5.0.0.
But for many ROOT classes one need to implement meaningful functions.

Sorry to resurrect this. Completely lost track of this a long time ago. I have a few more functions (~6 lines in total) I can add. Shall I make a PR to the dev branch?


Windows support (TypeError: Cannot write to hid device)

Hi! Thanx for this project!
I an into an issue on Windows (11)
$ litra-on.cmd
TypeError: Cannot write to hid device
    at turnOn (C:\Users\UserName\AppData\Roaming\npm\node_modules\litra-glow\dist\commonjs\driver.js:28:12)
    at Object.<anonymous> (C:\Users\UserName\AppData\Roaming\npm\node_modules\litra-glow\dist\commonjs\cli\litra-on.js:7:25)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:22:47

The problem is that there are actually two HID devices found:
# console.log(HID.devices());
{
  {
    vendorId: 1133,
    productId: 51456,
    path: '\\\\?\\hid#vid_046d&pid_c900&col01#6&21f11cb5&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}',
    serialNumber: '',
    manufacturer: '',
    product: '',
    release: 256,
    interface: -1,
    usagePage: 12,
    usage: 1
  },
  {
    vendorId: 1133,
    productId: 51456,
    path: '\\\\?\\hid#vid_046d&pid_c900&col02#6&21f11cb5&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}',
    serialNumber: '',
    manufacturer: '',
    product: '',
    release: 256,
    interface: -1,
    usagePage: 65347,
    usage: 514
  }
}

And the current implementation selects the first of them, which does not work.
The second one actually works.
This code snippet gets the correct device, by additionally checking the usagePage; this has to be tested on MacOS though.
const USAGE_PAGE = 0xff43;
const devices = HID.devices();
const deviceInfo = devices.find(function (d: any) {
  return (
    d.vendorId === VENDOR_ID &&
    d.productId === PRODUCT_ID &&
    d.usagePage === USAGE_PAGE
  );
});
if (deviceInfo) {
  const device = new HID.HID(deviceInfo.path);
  turnOn(device);
} else {
  console.log('No Litra Glow device found');
}

Verify if the new code works on different Operating systems

[x] Windows 11
[x] MacOS 11.7.1
[x] Ubuntu 16.04 (via Parallels)

Ubuntu
I had troubles with the udev rule from go-litra-driver.
But this works for me:
/etc/udev/rules.d/82-litra-glow.rules
# Litra Glow
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c900", GROUP="plugdev", MODE="0664"

@HEllRZA Thanks for reaching out and for figuring out a fix to this! I don't have a Windows machine to test on, but you do, so we're a dream team 🎉 I'm travelling right now, but I'll be back on Saturday so I can test this on my Mac then. If your suggestion works, then I'll release the change.

@timrogers
Great! Looking forward to it. In the meantime it is also running on Ubuntu ... needed just some tweaking of the udev rule.

@HEllRZA This should be fixed now - please do give it a go when you get a chance! I implemented your additional check and it worked on macOS too.


bashbrew: Generic support for Docker Registries

Right now the tool depends on the DockerHub API which isn't compatible with the Docker Registry HTTP API V2.
This makes bashbrew less portable and not suited for managing docker libraries running on other registries.
Would you be open to supporting patches that:

Provide config flag(s) to instruct bashbrew to use the official registry API for tag metadata scraping
Add the necessary authentication support to use the registry API

Sorry for the delay here -- I've moved this to the new https://github.com/docker-library/bashbrew (something we'd been thinking about for a while, but your comment helped encourage us to finally really pull the trigger).
As long as the impact is low, I think that sounds pretty reasonable.  I'm kind of curious why it's not enabled in the default https handler for https://github.com/go-git/go-git -- any ideas?


Integrate with FetchXML Builder

Nice tool :)
To make it even easier to compose the FetchXML, it is really easy to integrate your tool with FetchXML Builder.
A short tutorial: https://xtb.jonasrapp.net/2018/01/integrate-FXB.html

Awesome! 🤓


solidjs ssr with hydration "cannot read properties of null"

🐛 Bug report
Any zag component crashes in SolidJS during the hydration of a server-rendered component.
The problem does not occur if a page is rendered client-side only via render.
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'nextSibling')
    at index.page.tsx:14:3
    at Checkbox (index.page.tsx:20:34)
    at @solid-refresh:10:42
    at untrack (chunk-CGI4PW6R.js?v=14626c3e:447:12)
    at Object.fn (@solid-refresh:10:28)
    at runComputation (chunk-CGI4PW6R.js?v=14626c3e:751:22)
    at updateComputation (chunk-CGI4PW6R.js?v=14626c3e:734:3)
    at createMemo (chunk-CGI4PW6R.js?v=14626c3e:253:5)
    at hmrCompWrapper (@solid-refresh:7:20)
    at chunk-CGI4PW6R.js?v=14626c3e:555:12

💥 Steps to reproduce

Go to https://stackblitz.com/edit/solidjs-templates-chv1jk?file=src/pages/index.page.tsx
Open (browser) inspect.
The error should appear in the console right away. If not, refresh the preview.

💻 Link to reproduction
https://stackblitz.com/edit/solidjs-templates-chv1jk?file=src/pages/index.page.tsx
The renderer directory defines how the server renders a page and how the client hydrates it.
🧐 Expected behavior
No crash.
🌍 System information

Software
Version(s)

Zag Version
0.2

Browser
Chrome

Operating System
MacOS

The SolidJS repo contains a similar issue https://github.com/solidjs/solid/issues/1188. It might be the case that this is a SolidJS bug

Hi @samuelstroschein,
I opened the Stackblitz, and it seems to open correctly without crashing. I'm in doing something wrong? or did Solid.js fix it somehow?

@segunadebayo Solid js released a fix some hours ago.

Hi @segunadebayo,
Sorry, the instructions were unclear. I meant to open inspect / the console once stackblitz finished loading.

@anubra266 which commit/PR in the solid repo are you referring to?

@samuelstroschein https://github.com/solidjs/solid/issues/1188#issuecomment-1230860609

@anubra266 the bug still exists with >1.6 (after the PR merged).
I was debating whether I open a bug in the solid repo. It seems like you believe (and I assumed so too) that the bug is Solid internal? If so, I'll go ahead and file a bug in the Solid repo.

@samuelstroschein I changed the solid version to 1.5.2 in your stackblitz repro'. See the result
https://user-images.githubusercontent.com/30869823/200812268-36fbdc79-244f-4baf-9e67-0eb5221db633.mp4

@anubra266 interesting. i can't reproduce your result. setting solid to 1.5.2 still yields the same error. Can you send a link of your stackblitz fork?
https://user-images.githubusercontent.com/35429197/200813185-8f9ecee8-7d9b-41fb-a941-6cf68708b2b5.mov

I just confirmed that it works as expected after upgrading to 1.5.2.
To get to work, though, you need to run pnpm install again in StackBlitz @samuelstroschein

@segunadebayo @anubra266 running the dev server with pnpm works for me too. running the dev server with npm leads to the crash. I'll investigate further. Zag does not seem to be the root cause.

@samuelstroschein Yeah npm also crashes for me.


feat: chunking for tsflattenerv2

Not as straightforward as for v1, as each spec can have multiple columns now.

I think the best solution would be to fix https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener/issues/422 as it is the more general solution and would improve tsflattener quite a lot. If you're up for the task, I'm sure both Martin and I would be happy to help outline the steps and help you through it!


Firebase/network status monitoring

Add network/firebase status button to header

put up error alert when network connection is lost
initial alert is presented 1 sec after connection lost and then delay between showing dialog increases to 60 sec where it plateaus. The idea is to keep nagging the user but not so often that they can't take screen shots, etc.

Synchronous review with @eireland.


Support env variables in yml

#1302

The following codegen.yml does not work, just returns an empty string I've tried with .env and also with the command graphql-codegen -r dotenv/config. Any ideas why?
schema:
  - ${SCHEMA_URL}:
      headers:
        Authorization: ${BEARER_TOKEN}
  - "src/client/client-schema.graphql"
documents:
  - "src/mutations/*.ts"
  - "src/queries/*.ts"
  - "src/subscriptions/*.ts"
generates:
  ./src/types/apolloTypes.tsx:
    plugins:
      - typescript
      - typescript-operations
      - typescript-react-apollo
    config:
      withMutationFn: false
      withComponent: false
      withHOC: false
      withHooks: true
      scalars:
        DateTime: string
  ./src/client/fragmentTypes.json:
    plugins:
      - fragment-matcher

@jordmccord See here https://github.com/dotansimha/graphql-code-generator/issues/2722#issuecomment-542172410


Same type of data on the same entity within the same tick

Hi,
Firstly, thanks for the great project! I have been using Entitas on my own project and I am trying to deal with the problem of having multiple instances of the same type of data on an entity.
Imagine a hypothetical situation where I have a TakeHitComponent which contains information about the hit that a unit should take (e.g. a simple integer and the ID of the attacker). I will have a system that picks up this component when added and will subtract the health of the entity and a system that will pick up the ID of attacker and notify the target. TakeHitComponent is going to get removed by a clean up system at the end of the tick. All is good.
Unfortunately this system will eventually break once I have multiple units attacking the same target as they might try to apply the same component on the target within the same tick.
Well, I can try to aggregate all the information in an enumeration of some sort but that just doesn't seem like the right way to do. It will be difficult to keep the track of execution order of things for example (e.g. a hit might be added to the enumeration after the health resolution system already picked it up and since the health resolution system only picks it up once a new component has been added - not when any data is added to the list - it will just be ignored if I am mistaken).
It seems to me that I am missing something since I have already encountered this issue in several unrelated parts of my small prototype and it's only going to get worse as the game grows.
So can someone point me in the right direction how to deal with this the right way? How are you dealing with this?

Hi @FiveP,
correct, you can add only one component of a type to an entity.
I see two different solutions to this, but I will only describe one solution in detail as I think it's generally the better solution.

Intermediate entity
I regularly use this kind of concept where I create a separate entity that holds some kind of information, in your case:

// in a method where a hit gets emitted
context.CreateEntity().AddDamage(amount, attackerEntity.id.value, targetEntity.id.value);

[Game]
public sealed class DamageComponent : IComponent {
    public int amount;
    public int attackerId;
    public int targetId;
}

Create a new entity for the damage information and add DamageComponent. A ProcessDamageSystem with a trigger GameMatcher.Damage can now easily iterate over all Damage entities and execute some logic. This also allows you to do some additional sanity check if needed, e.g. a certain target got 100 damages from 10 attackers but the game design rules limit a maximum damage to 10 hits for bullets plus an additional 10 damage for fire or sth like that.
If needed you can also use an entity index to perform fast queries like
context.GetEntitiesWithDamage(e.id.value);

    [EntityIndex]
    public int targetId;

In this example it probably doesn't make much sense, but I remember having a few cases where an entity index made working with intermediate very convenient and simple.
To give you another example where this concept makes sense:
You shoot at a wall which should spawn some kind of damage texture, sth like this:

Applying this same concept where each shot results in a new entity with information about the position on the wall let's you easily do optimization in a ProcessShotSystem, e.g. there are 10 shots at almost the same position, so instead of loading and spawning 10 textures at the same position probably resulting in weired z order issues you can only instantiate 2 or 3 and place them in a nice pattern.
Entities and components are all object pooled for you by Entitas, so creating lots and lots of those intermediate entities per frame should not be a problem!

List of Damage struct
The DamageComponent could have a List where the Damage might be a class or struct with all required information. I recommend not doing this because you cannot react to changes as easily.

Ahhhh yes, of course, I didn't think of having entities as just pure data containers, so obvious and simple :]. I will give it a shot. I did elaborate a bit on the second solution but found exactly the same problem, it really isn't a good solution. Thank you a lot for the illustrative explanation and again, good job on Entitas!

Simon's answer probably solved your initial problem, but just for the record, I ran into this problem for physics forces in one of my games. Since many different things can end up adding force to a rigidbody in a frame, I wanted to accumulate force rather than replace or add it to a component.
I wrote this extension:
public static void AccumulateForce(this GameEntity e, float force) {
        if (!e.hasForce) {
                e.AddForce(force);
        } else {
                e.ReplaceForce(e.force.value + force);
        }
}

In future I plan to write my own code-generators with custom attributes ([Accumulate] for example) that add these methods into the generated files.


Unable to create Swan account.

After login to Swan "Hexa Walet is communicating with Swan..."this modal is not going from home screen so swan account is not being created.

Swan is working now.Tested on staging by @antuz123


Fix general issues for standalone builds

Fixed the issues I had when first using this.
I'm not exactly sure which version BeamNG uses, but with 1.89.9 WIP, there's a few issues when generating.
Feel free to check it still works with BeamNG before merging, but it should be fine.

Thanks a lot for the fixes! :)


Make cleanup before processing Addressables

Clear Addressables cache - All. It might be at least a toggle.

Clear missing groups.

Sometimes it breaks a build process.

Done in #36


Add support for MCO pins, also small improvements to rcc

MCO = Micro-Controller Out pins, PA8 and PC9

While we're at fixing the cortex-m-rtfm fail from the CI, it might be useful to just switch to the new name cortex-m-rtic as well? (it got renamed)

I'll make a new PR for the

RTFM actually broke two things here:

The rename breaks the examples, because we have #![deny(warnings)]
The latest rtfm/rtic breaks our MSRV (1.40.0)

I've switched the CI to github actions so it's not painfully slow. It only tests against the latest stable rust now.

bors r+

bors r+

bors r-

bors r+


adapt http metrics help text to correctly report themselves

Adapts the help text for the HTTP metrics to correctly report themselves as HTTP. Since only the help text, and not the metric name is affected, this should be non-breaking.
Closes #358.

Thank you for the PR!


Codesize measurements seem to not be happening

Problem
Codesize measurements are not happening on PRs.  For example, https://github.com/project-chip/connectedhomeip/pull/2759 was a big codesize win, but there were no change reports in that  from bloaty.
Proposed Solution
Figure out why the automation is not running and fix it.

@woody-apple

https://github.com/project-chip/connectedhomeip/runs/1168479021?check_suite_focus=true says:
Run scripts/helpers/bloat_check.py                        \
Traceback (most recent call last):
  File "scripts/helpers/bloat_check.py", line 347, in <module>
    main()
  File "scripts/helpers/bloat_check.py", line 250, in main
    artifacts = [a for a in github_fetch_artifacts.getAllArtifacts(args.github_api_token, args.github_repository)]
  File "/__w/connectedhomeip/connectedhomeip/scripts/helpers/github_fetch_artifacts.py", line 91, in getAllArtifacts
    repo = api.get_repo(githubRepo)
  File "/usr/local/lib/python3.8/dist-packages/github/MainClass.py", line 333, in get_repo
    headers, data = self.__requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/dist-packages/github/Requester.py", line 317, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/dist-packages/github/Requester.py", line 342, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.RateLimitExceededException: 403 {"message": "API rate limit exceeded for installation ID 7125406.", "documentation_url": "https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

which every single bloat check run looks like that....

I tweaked one thing... curious if that helps

Now looking at the list at https://github.com/project-chip/connectedhomeip/actions?query=workflow%3A"Bloat+Check" I see some things with red "x" and some things with green checks.
A typical red "x" log looks like the thing I pasted above.  A typical "green check" log shows some fetching of artifacts, then something like:
 2020-10-05 04:25:12 ba5ad0741cde root[109] INFO Uploading report to "project-chip/connectedhomeip", PR 3044
2020-10-05 04:25:12 ba5ad0741cde root[109] WARNING Failed to process bloat report: AttributeError("'list' object has no attribute 'len'")

a number of times, then maybe some:
2020-10-05 04:48:55 e2162ded50f8 root[110] WARNING Failed to process bloat report: RateLimitExceededException(403, {'message': 'API rate limit exceeded for installation ID 7125406.', 'documentation_url': 'https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting'})

kind of things.
Well, that len thing is certainly something we should fix.  Seems like fallout from #2378.
I created https://github.com/project-chip/connectedhomeip/pull/3048 to fix the len issue and then we will see where things stand.

the len() fix should make things work again. Rate API limiting is annoying however the bloat report should be able to run ocassionally which is goood enough for us.

Reassigned to Boris since I believe #3048 is the real fix.


Change unitary used for test_qasm_2q_unitary

Summary
This commit changes the unitary used to construct the gate for qasm
generation in test_qasm_2q_unitary away from using the identity matrix
and instead a randomly generated matrix. The identity matrix is more
likely to have issues with fp precision stemming from near zero values
in the decomposition. Since this test isn't about verifying a
reproducible decomposition and is instead about generating qasm
correctly this commit changes the matrix used to one that is likely to
be more reliable across different systems.
Details and comments
Fixes #4856

It looks like this won't work. My local systems aren't returning consistent results for this decomposition, it also looks like macOS and linux on travis are generating different decompositions too. Since #4862 merged I'm just going to close this.


os/gce: Update quickstart link

developers. redirects to cloud.google.com. Use the newer link.

Thanks :)


Add ability to use all controllers round robin

This PR changes the nginx to use all controllers round robin.
This PR is blocked by:

[x] #2624
[x] #2531
[x] #2697

In addition it removes the cleanup of containers, called controller (without index)
@vvraskin

#2531 has been merged!

PG3#1191 is 🔵

The following PR will be merged instead: #2888


.env variables not be referenced as a value

I trying put one variable inside another for consume in server side functions
I started with .env files put this
FOO=bar
NULLSTACK_SECRETS_FOO=$FOO

For testing i set my source for this .env file
source .env
when a try usingn echo for NULLSTACK_SERCRETS_FOO i recive bar string, but when using context.secretes.foo i got $FOO insteread bar value

Sorry for the delay @victorfernandesraton , i've been using my maker time on the new compiler and forgot to answer here.
This behaviour is not something that comes out of the box with dotenv, but it would be super cool to have on nullstack by default.
They recommend using: https://github.com/motdotla/dotenv-expand.
PRs are welcome in case you want to add this behavior, you can use the branch "next" and there i have a few places i init dotenv depending on build mode

Ok, i do not have time to implement but I will see how to do this, and if i could, maybe contribute with the project


urllib compatibility

urllib (though deprecated) uses all kinds of weird httplib compat classes that aren't stubbed properly by vcr.  I would like to support this someday.

I wonder if it would also solve the problem I encountered with newer version of google cloud sdk, where my tests fail with:
…
self = <fancy_urllib.PresetProxyHTTPSConnection object at 0x7fda42beb0d0>

    def connect(self):
>     httplib.HTTPConnection.connect(self)
E     TypeError: unbound method connect() must be called with VCRHTTPConnectionapplications/foundit/tests_unit/cassettes/successfull_payment_cus-gae.yaml instance as first argument (got PresetProxyHTTPSConnection instance instead)

/opt/google-cloud-sdk/platform/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py:190: TypeError

I'd like to help solving this problem, but some hints about where I should look and what should probably be done would be a great help.

A lot of changes have happened to VCRpy since this ticket was opened. As this ticket has become stale, would you mind closing it if it is no longer needed / relevant?
If I haven't heard anything in a week I'll mark it as closed as we have a lot of old tickets that need to be groomed to make it easier to see what is still relevant.
However if it is still needed, please feel free to re-open or create a new ticket.
Thanks! 🙏


Automatic geocoding should always be done with an account's specified provider

Context
Please explain here below what you were doing when the issue happened
We tested this with two separate CARTO accounts configured in Superadmin to use Here.com geocoding today and symptoms were identical.
We had a spreadsheet (can share if needed) that among other columns has an address and city column of store locations in the USA. We uploaded this by dragging and dropping onto the browser window ("Maps" page). The file was uploaded, automatically geocoded, and the Builder map created. We grew skeptical when we saw points in New York and Alabama that should have been in Tennessee and I investigated further.
I then took the same file, un-checked the "Let CARTO automatically guess data types and content on import." check-box, and uploaded it. This time, presumably because the auto-guess box was unchecked, the file was imported and not geocoded, the_geom column as null for all records. I then created a map with this 2nd file in Builder, applied the Georeference analysis with the appropriate columns, and spot-checked the results. All locations that were supposed to be in Tennessee were, in fact, this time, in Tennessee as expected.
Working conclusions:
Even if your account is configured to use HERE geocoding as the provider, if you upload a spreadsheet file and the “Let CARTO automatically guess data types and content on import.” check box is clicked when you do, and your file has some of our auto-recognized column names like address, your file will be automatically geocoded using Mapzen and not Here, and will therefore most likely be poor quality. The work-around is to upload your file, de-select that “automatically guess” checkbox, and apply a Georeference analysis in Builder. That is the only way you can be sure your data will be geocoded with Here.
Steps to Reproduce
Please break down here below all the needed steps to reproduce the issue

Using an account with Here configured as geocoding provider, upload spreadsheet with address column and "auto-guess" checkbox clicked
Examine results and look for a high rate of incorrect geocodes (easy to do this with a widget if you have another "state" column) that point to a likelihood this file was auto-geocoded with Mapzen and not Here.

Current Result
Please describe here below the current result you got
I can't be certain (as we don't provide metadata yet per @kevin-reilly 's #12371 ), but I'm confident beyond a reasonable doubt that this file is being auto-geocoded with Mapzen, even though the superadmin setting is "heremaps":

Expected result
Please describe here below what should be the expected behaviour
I would think/hope any account configured to use Here for geocoding would use Here, in all contexts. One possible exception to this might be our geocoding "search box" that appears on maps, which I know is 100% Mapzen across the board for all accounts, but that there is perhaps another business decision we should reconsider too.

cc @rochoa @rafatower

The automatic geocoding always happen with the internal geocoder, no external provider.
https://github.com/CartoDB/cartodb-management/wiki/Guessing-of-named-places
https://carto.com/docs/carto-engine/import-api/importing-geospatial-data#import-guessing
I don't think anything related to providers belong in this repository.

Woah. I forgot about the internal geocoder. Did not realize we have automatic geocoding of place names. (Pretty dangerous without transparency of that to the user - another reason for metadata in #12371 !) This does explain why my point with Jackson, Tennessee (a small city) location was geocoded to Jackson, Mississippi (a large city, probably outranked in the internal geocoder database).
The CSV had columns (this is an semi-anonymized excerpt) :

id
address
city
st
zip_code

1
136 Stonebrook Pl
Jackson
TN
38305

2
7689 Poplar Ave.
Germantown
TN
38138

3
349 Brentwood Pike Rd
Brentwood
TN
37027

4
830 James Campbell Blvd South
Columbia
TN
38402

5
314 Paul Huff Pkwy NW
Cleveland
TN
37312

6
728 Thompson Lane
Nashville
TN
37204

7
4435 Summer Ave
Memphis
TN
38122

They were automatically geocoded to the centroids of:

Jackson, Mississippi
https://en.wikipedia.org/wiki/Germantown,_Maryland
https://en.wikipedia.org/wiki/Brentwood,_New_York
https://en.wikipedia.org/wiki/Columbia,_South_Carolina
https://en.wikipedia.org/wiki/Cleveland,_Ohio
"Correct" centroid for Nashville, Tennessee, but the actual address is miles away from here
"Correct" centroid for Memphis, Tennessee, but the actual address is miles away from here

This means that automatic geocoding of place names is substantially biased toward larger/more populated places. Even if files have fully detailed addresses with states and postal codes and so on to clarify where to geocode, the automatic guessing will place them in the largest city with that city name. This is a huge methodological error because place names are not unique, not even within countries:
https://en.wikipedia.org/wiki/List_of_the_most_common_U.S._place_names
https://en.wikipedia.org/wiki/List_of_popular_place_names
I noticed that even though the source dataset the_geom column has been permanently saved via the automatic geocoding on import, I was able to apply the Georeference analysis in Builder and the points were properly geocoded (all to Tennessee in my sample).
Given that information, this issue is incorrect in its description, but still fairly serious. Without some kind of metadata, or transparency of "automatic geocoding" and which fields it is based on to the user, or other user notification of what's happening, this is a really confusing "feature". @rafatower , would you prefer I closed this and posted a revised issue in https://github.com/CartoDB/data-services instead? Though to be honest this one may be more than a simple issue and need input from UI/UX Design, etc...

internal geocoder is geocoding place names, not addresses, that's why the result is that. We guess data in columns and if we detect country names or place names (for example) with not a lot of duplicates and so on, we basically geocode it for free (that's why we use the internal geocoder).
I can come up with two solution:

adding some metadata to any geocoding process (https://github.com/CartoDB/cartodb/issues/12371) so one of the columns stores the provider that is used, and the column that has been used (if it has been done by guessing).
Improve our guessing mechanisms, so we can identify addresses (BOOM!), and then we don't geocode by anything else until the user select the operation within the map view.

I have some other proposals:

advanced import options combined with guessing.
Do not "guess content" at all. Or at least measure the value to the user and consider removing that feature. That is a pre-Builder feature that to me makes little sense.

Some remarks:

Content guessing limits: say you have the perfect geocoding provider that is 100% accurate and has 100% coverage. Taking a sample from the whole dataset and with the best statistical method (insert ML or neural networks or whatever you want here) there will always be uncertainty in the results, that is, the sample can always mislead the decision about the column contents of the whole dataset.

Metadata: for a given query instead of just returning a geometry, we'd need to return several other things. That means changes in the API but also changes in the UX. E.g: is the metadata to be added to the columns of the analysis? do users want to have results below X accuracy or Y accuracy?

Internal geocoder: we all know it can be improved. Are we willing to prioritize work on that? It is the provider of the content guessing. It has its limitations but it let us do some stuff without incurring in some costs.

@saleiva and @kevin-reilly I beg you, please: if you really want the situation to improve we'd need a proper feature doc with high level requirements broken down into smaller requirements with a guarantee of consistency and completeness. And then prioritize the feature.

Another important disclaimer: the more features we add, the slower the process will be.

It'd be interesting to understand how useful the "guessing" is for customers. IMO the metadata about the geocode is interesting (even if we just store those results for our own use) because it opens the door to finding out how accurate results are (and how useful if they are not very accurate)

FYI, just last week I experienced exact same problem uploading a dataset.  The auto geocoding done with the auto-guess box checked produced a large error rate (20%+) of points in the wrong US state.  Could this be a serious problem that customers may have and don't realize?
I believe @terrett101 had same problem just today trying to do some work for a new customer.

Yes, I've been running into this problem all day. My greater concern though is that customers have no idea that the automatic internal geocoder is looking at cities or places only, and not accurately geocoding street addresses when present in the dataset.
If a customer uploads a dataset which contains street addresses and see's the points plot to a map, they assume they're plotted accurately based on the locational information in the file. It's the same assumption I've been making until today, so I'm sure our customers are too.
I'm not opposed to either of Rafa's suggestions. Either removing the guess work by CARTO (unless perhaps there is a lat/lon in the dataset) or providing the user with georeference options as they import (if no geometry detected) would both be an improvement over the current workflow.


Added many new features

Pull Request Test Coverage Report for Build 47

66 of 173 (38.15%) changed or added relevant lines in 19 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-5.5%) to 65.328%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

astetik/plots/count.py
2
3
66.67%

astetik/plots/scat.py
0
2
0.0%

astetik/plots/line.py
4
7
57.14%

astetik/style/random_colors.py
2
6
33.33%

astetik/style/color_picker.py
3
7
42.86%

astetik/plots/overlap.py
3
7
42.86%

astetik/utils/load_data.py
0
5
0.0%

astetik/style/template.py
7
12
58.33%

astetik/utils/datetime.py
2
8
25.0%

astetik/utils/utils.py
1
8
12.5%

Files with Coverage Reduction
New Missed Lines
%

astetik/utils/transform.py
1
25.84%

Totals

Change from base Build 39:
-5.5%

Covered Lines:
618

Relevant Lines:
946

💛  - Coveralls


feat(firebase_ui_localizations): add missing pt.arb translations

Description
This PR adds missing portuguese translations at portuguese .arb file.
Related Issues
N/A
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[ ] All existing and new tests are passing.
[ ] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] All unit tests pass (melos run test:unit:all doesn't fail).
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

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

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

Closing out in favour of: https://github.com/firebase/FirebaseUI-Flutter/pull/414


Prompt for each file to save when closing a window with unsaved files

Type: Feature Request

This prompt is really, really bad. I had a VS Code session with a dozen files or more open, some edited. The project that I had open was idle for a couple of hours. I had side tasks to do, and opening a file unrelated to my earlier VS Code work still opened up in that VS Code session. I attempted to close that single side-task file down, but must have accidentally clicked to close the entire VS Code session, including all my earlier (... and randomly unsaved) work.
"Do you want to save the changes to the following ... files?"
Dismissing this prompt without thinking/realising I assumed it was simply referring to the one file I'd quickly opened and attempted to close... but then, it dawned upon me when the entire session closed... uh-oh, was that prompt warning me about all my other unsaved work, which I accidentally dismissed in a single click? ...
I was expecting that closing a session with several unsaved files open to prompt for saving each individual file, with the option to cancel out of the session closure procedure.
VS Code version: Code - Insiders 1.87.0-insider (00124e9e5830e3efc897db71c781899f8a676295, 2024-02-16T16:33:57.085Z)
OS version: Windows_NT x64 10.0.26058
Modes:

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This is fair feedback and sorry for the trouble. I really can recommend to enable auto save in settings and you don't have to worry about having to save anymore.
If you configure files.hotExit to onExitAndWindowClose, you will be able to close windows without having to save, any unsaved change will restore when you open the workspace again.
Treating as feature request.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Improve libary file deployment tests

Coverage increased (+0.0009%) to 99.913% when pulling 2d17088bef3709d853870ff4c28555a58f06a8c1 on april_improvements into 14e0832f0d7a6a97f4c0fbbbbbdc6799216c55a3 on master.


feature: add issue listing

Do not merge untill https://github.com/MOD-Magazine/MOD-Magazine/pull/31 is merged


HandShake error

I'm trying to create a Bot and as soon as it tries to make getMe request I receive next error on console until timed out:
[info] TLS :client: In state :hello received SERVER ALERT: Fatal - Handshake Failure
I suspect it's related with new Tesla upgrade missing?
Versions ma using:
Elixir: 1.11
ERL: 23
Telegram: 0.7.1
Cowlib: 2.9

HI @gastonrey !
Just tested with on 0.7.1. It works on my machine ;) !!
About the update, give it a try, why not.
But it doesn't sound to me it could be related.
... maybe going down into the SSL client/server certificate.
If you are running on your host, try to switch to an elixir docker image and test from there.


Downloading Bokeh plots does not download the SVG but displays it in the browser

The SVG should download, not display.

Hi @ArushiPradhan and @Vchadha2 - we are trying to reproduce the issue with the Bokeh downloads. You mentioned that they show in the browser rather than downloading. We just tired to reproduce the issue but could not.
Can you tell us where you saw the issue, i.e. what were you trying to do on the site and which browser did you use?

Hi,
I clicked the download icon next to the figure of the PSD. When we open the downloaded file it shows up in the browser. I have attached the downloaded file and here's the screenshot:
[cid:1b4b0531-a587-4bdb-9b85-7634c9a8dc69]
Thank you,
Arushi

From: Lars Pastewka @.>
Sent: Friday, September 1, 2023 3:45 AM
To: ContactEngineering/topobank @.>
Cc: Pradhan, Arushi @.>; Mention @.>
Subject: Re: [ContactEngineering/topobank] Downloading Bokeh plots does not download the SVG but displays it in the browser (Issue #1011)
Hi @ArushiPradhanhttps://github.com/ArushiPradhan and @Vchadha2https://github.com/Vchadha2 - we are trying to reproduce the issue with the Bokeh downloads. You mentioned that they show in the browser rather than downloading. We just tired to reproduce the issue but could not.
Can you tell us where you saw the issue, i.e. what were you trying to do on the site and which browser did you use?
—
Reply to this email directly, view it on GitHubhttps://github.com/ContactEngineering/topobank/issues/1011#issuecomment-1702318355, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASW2CXDWX5K7VSD6TLBJFHDXYGHCNANCNFSM6AAAAAA23Q7DWI.
You are receiving this because you were mentioned.Message ID: @.***>

Hi,
I just realized I can choose "open with" and change the program to open the .svg file to prevent it from opening in browser. Sorry about that!
Thank you,
Arushi

From: Pradhan, Arushi @.>
Sent: Friday, September 1, 2023 3:50 AM
To: ContactEngineering/topobank @.>; ContactEngineering/topobank @.>
Cc: Mention @.>
Subject: Re: [ContactEngineering/topobank] Downloading Bokeh plots does not download the SVG but displays it in the browser (Issue #1011)
Hi,
I clicked the download icon next to the figure of the PSD. When we open the downloaded file it shows up in the browser. I have attached the downloaded file and here's the screenshot:
[cid:1b4b0531-a587-4bdb-9b85-7634c9a8dc69]
Thank you,
Arushi

From: Lars Pastewka @.>
Sent: Friday, September 1, 2023 3:45 AM
To: ContactEngineering/topobank @.>
Cc: Pradhan, Arushi @.>; Mention @.>
Subject: Re: [ContactEngineering/topobank] Downloading Bokeh plots does not download the SVG but displays it in the browser (Issue #1011)
Hi @ArushiPradhanhttps://github.com/ArushiPradhan and @Vchadha2https://github.com/Vchadha2 - we are trying to reproduce the issue with the Bokeh downloads. You mentioned that they show in the browser rather than downloading. We just tired to reproduce the issue but could not.
Can you tell us where you saw the issue, i.e. what were you trying to do on the site and which browser did you use?
—
Reply to this email directly, view it on GitHubhttps://github.com/ContactEngineering/topobank/issues/1011#issuecomment-1702318355, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASW2CXDWX5K7VSD6TLBJFHDXYGHCNANCNFSM6AAAAAA23Q7DWI.
You are receiving this because you were mentioned.Message ID: @.***>

I never changed any settings here. On my computer it just downloads. Can you send the screenshot again, it does not show here.

Hi @ArushiPradhan @SickSmile1 - just FYI, it's fixed in the code base but that code base is not yet deployed (so @ArushiPradhan will not be able to check whether it is working). Will notify here once the thing is online, but I will need to fold some other (big) changes into the code first.

Fixed with #1022


Docker demo issue

Hi folks,
I installed the Docker Demo. On first launch everything worked fine. But after subsequent Docker restarts the thumbnails for the collection (in fact - ALL thumbnails) are no longer visible.

I tried clearing all caches but no joy...
Site works fine otherwise...

Some more info....once the thumbnails stop displaying I am also unable to change the thumbnails of individual collections..
So - at the moment - if I want these to return I have to redeploy the stack...attache dis the drupal build file.
I see some error messages about flvsystem drivers missing....maybe somebody can see something else ?
_drupal_logs.txt
Thanks

Please confirm that your docker containers are all still up -- if Fedora is exited, it would just need to be restarted.


Improve Open Street Map OSM

Hello,
the open street map nomination api provides more detailed querys: http://wiki.openstreetmap.org/wiki/Nominatim
As I understand the project to support this we need a class like that one:
`class OsmQueryDetail(MultipleResultsQuery):
"""
Nominatim
=========
Nominatim (from the Latin, 'by name') is a tool to search OSM data by name
and address and to generate synthetic addresses of OSM points (reverse geocoding).
API Reference
-------------
http://wiki.openstreetmap.org/wiki/Nominatim
"""
provider = 'osm'
method = 'geocode'

_URL = 'https://nominatim.openstreetmap.org/search'
_RESULT_CLASS = OsmResult
_KEY_MANDATORY = False

def _build_params(self, location, provider_key, **kwargs):
    # backward compatitibility for 'limit' (now maxRows)
    if 'limit' in kwargs:
        logging.warning(
            "argument 'limit' in OSM is deprecated and should be replaced with maxRows")
        kwargs['maxRows'] = kwargs['limit']
    # build params
    query = {
        'format': 'jsonv2',
        'addressdetails': 1,
        'limit': kwargs.get('maxRows', 1),
    }
    query.update(kwargs)
    return query

def _before_initialize(self, location, **kwargs):
    """ Check if specific URL has not been provided, otherwise, use cls._URL"""
    url = kwargs.get('url', '')
    if url.lower() == 'localhost':
        self.url = 'http://localhost/nominatim/search'
    elif url:
        self.url = url
    # else:  do not change self.url, which is cls._URL`

And adding
'osm': {
'geocode': OsmQuery,
'detail': OsmQueryDetail,
'reverse': OsmReverse,
}
That works fine for me. That is my query that is working now:
geocoder.osm("",postalcode="45326", street="Ellernstrasse", method="detail")
I wanted to make a pull request but it didn't worked. Don't have the rights I guess.

Thanks for the info, definitely agree that the OSM nominatim provider needs an update.
As for making a Pull request, you will need to fork this project and then compare your forked repo to create a pull request.
Lots of help on GitHub to get you started: https://help.github.com/articles/creating-a-pull-request/

👍

Thanks! It worked : ). I created a pull request.

PR #305  merged
🍾 !

Woot! 🎉


How to return value after sapp_quit() on MacOS

It appears that with code like this on MacOS:
    ...
    desc.init_cb = init;
    desc.frame_cb = frame;
    desc.cleanup_cb = cleanup;

    sapp_run(&desc);

    std::cout << "done\n";

    return state.image_data;

I will never hit the code after sapp_run and therefore never return the contents of state.image_data on MacOS. Is there anyway to manually exit the frame loop or otherwise quit but hit those lines of code?

Unfortunately there's now cross-platform way to execute code after sapp_run(). Particularly macOS won't return from [NSApp run] as commented here:
https://github.com/floooh/sokol/blob/e8931e4399a0eb4bf026120d7bdb89825815af9e/sokol_app.h#L3094-L3097
Mobile operating systems (and the web) also tend to simply terminate the process without warning (so not even the cleanup callback might be called).
On macOS, the only place to run "exit code" is in the cleanup callback (which will be called from the applicationWillTerminate event handler here:
https://github.com/floooh/sokol/blob/e8931e4399a0eb4bf026120d7bdb89825815af9e/sokol_app.h#L3461-L3466


LUA SHITS

Describe your problem here.
FUNKDELA MOD
HOW TO REDUCE TRANSPARANCY OF VINTAGE SCREEN

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

would you stop saying 'LUA SHITS' on every issue that you make
and show what line the vintage created

setProperty("vintage.alpha", 0.5)
value one: put the name of the vintage and put .alpha at the end
value two: the value you want to change the alpha to

would you stop saying 'LUA SHITS' on every issue that you make and show what line the vintage created

ooookkkk

setProperty("vintage.alpha", 0.5)

thanks


Add validationBlocksPerSlot to ProtocolParameters

https://github.com/iotaledger/tips-draft/pull/25/files/21d36e35a610b765b3e6e3b510c68bf08e808a92..5be8bf63a44a18281e3161764111de94780a8230

Closed by https://github.com/iotaledger/iota-sdk/pull/1189


monolingual evaluation gives more than target language in results

scripts/run_mteb_german.py
I am running this script and observed, that the script, even though specifying "de", also creates the other languages (like en, es, mostly for the multilingual datasets i suppose). Is this intended and if so, how to get rid of it?

Thank you!

Thanks @achibb. Yeah, that does seem to be an issue. Thanks for letting us know

Sounds great for me. Not working on this.
Gesendet von Outlook für iOShttps://aka.ms/o0ukef

Von: Imene Kerboua @.>
Gesendet: Wednesday, May 15, 2024 12:34:52 PM
An: embeddings-benchmark/mteb @.>
Cc: achibb @.>; Mention @.>
Betreff: Re: [embeddings-benchmark/mteb] monolingual evaluation gives more than target language in results (Issue #708)
Thanks @achibbhttps://github.com/achibb. Yeah, that does seem to be an issue. Thanks for letting us know
I'm working on this, seem to ve related to the lastest refactoring where we replaced task_langs by hf_subsets in load_data() functions.
Is anyone working on this? Else, I'll open a PR by the end of the day
—
Reply to this email directly, view it on GitHubhttps://github.com/embeddings-benchmark/mteb/issues/708#issuecomment-2112154547, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKBF2KT77I3DNDUZPDKC27TZCM24ZAVCNFSM6AAAAABHWIPR62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSGE2TINJUG4.
You are receiving this because you were mentioned.Message ID: @.***>

Okay, I'll take it, thanks for reporting the bug, fix coming soon 🙂

@imenelydiaker I believe the mteb.get_tasks() already handles this case.
A solution might be to reformat the benchmark such it looks like:
tasks = mteb.get_tasks(task_names = list_of_task_names, languages = ["deu"])
bench = MTEB(tasks=tasks)
...

I believe the only thing we would have to do is add the task_names argument to mteb_get_tasks. (in the future I would like to remove all the filtering from MTEB and just do it in get_tasks

Maybe I'm mixing up things, I tried selecting a language with the CLI and it didn't work, I'll look more into it when I'll have my laptop. I'll keep you updated!

I am actually not sure how the CLI selects languages atm.


Ellipsis:  adding them to export feature for items on drop down list that are too big

@Bill345 is this still an issue with the new export?

It is not.

Cool...closing out the ticket then.


feat(Misc): export and import models

Hi @justinuliu , great work! I have made a few updates to the notebook, such as making the model removal process OS-independent.


[WIP][SPARK-33425] Fix https credentials when doing spark-submit

When using:
./bin/spark-submit \
  --class org.apache.spark.examples.SparkPi \
  --master k8s://xx.yy.zz.ww:443 \
  --deploy-mode cluster \
  --executor-memory 20G \
  --num-executors 50 \
<EMAIL_ADDRESS>\
  1000

I receive an error described in https://issues.apache.org/jira/browse/SPARK-33425
What changes were proposed in this pull request?
Passing credentials to the request properties so there's no need for a server to challenge the URLConnection for credentials.
Why are the changes needed?
Documentations says:

(Note that credentials for password-protected repositories can be supplied in some cases in the repository URI, such as in<EMAIL_ADDRESS>Be careful when supplying credentials this way.)
However, that feature doesn't work.

Does this PR introduce any user-facing change?
No
How was this patch tested?
Not tested yet. Looking for feedback.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Thank you @dongjoon-hyun for feedback. Could you check now if that looks better?

One more tip, @pprzetacznik . In general, people don't review PRs with [WIP] in the title.


[WIP] investigating unused attributes

API change check
API changes are not detected in this pull request.


ADDED dynamic ResponseGroups

Now you can set all the response groups in the config file.

Merged, thank you @mrandibilbao :+1:

You're welcome
Thanks for merging.
Maybe i will add some new functions in the future, we will see....
Have a nice weekend


Alternative to s3

What is the alternative to s3 I cannot and would prefer not to use s3 to store files, would rather store them locally.

Some people are trying to do this too. Check here https://github.com/orionjs/core/issues/8


Fix emitter states handling when write_indicator fails

There are cases where yaml_emitter_write_indicator fails. In that case POP is called on emitter->indents but not on emitter->states, which results in a leftover event in the stack, and later POP is called on an empty emitter->indents stack.
This commit does not fix the case of the failing yaml_emitter_write_indicator. This is still investigated.
This will mitigate CVE-2024-3205

apparently some tests are failing, so there are cases where this is wrong... looking...

That's great.  i think it is a more general fix for this.  So can we merge it?

I moved the POP now directly after the indents POP statement. That should have the same effect.

I'm currently extremely busy but I'll try to review this soon.

This is a high score cve, which has a great impact on the libyaml community. If possible, it is necessary to merge this pr as soon as possible. This is my humble opinion

The CVSS score for this vulnerability says that the attack complexity is low and the attract vector is the network (which means almost anybody can use this vulnerability to attack a system via a network). From the discussions here, I have a very different feeling. Even the maintainers of the software itself have a hard time exploiting/reproducing the vulnerability. It's either easy to reproduce or the score and therefore the severity of the vulnerability is wrong.

Note that the reproducers I found use the canonical mode, which is probably rarely used. But I think it could be possible to produce the same effect without canonical mode, and possibly someone already knows the necessary input for that.

Please see my update that I don't consider it a vulnerability: https://github.com/yaml/libyaml/issues/258#issuecomment-2058613931

I don't think this is a cve either. but now does this PR still need to be merged?

I think the PR an improvement, but I would rather try to check in yaml_emitter_close if the emitter is in an error state. probably I can just check if an error was set.
just very busy in the middle of two conferences


develop a regisry with  kubernetes headless service

I am very honored to use go-micro  and to be involved in this project.
when i study go-micro v4 and deploy it with k8s , i found the registry plugin kubernets plugin, it inspired me.
i found the kubernets plugin use client.go to call apiServer which make it not very friendly to use. Coincidentally, I've been studying  kubenetes recently, and i found when the  Service.ClusterIP is None we can take the Service as a DNS server, so i
try to make this happen in registry.
apiVersion: v1
kind: Service
metadata:
  name: user-svc
  namespace: default
spec:
  clusterIP: None #attention here
  ports:
    - port: 8080
  selector:
    app:  user

  sessionAffinity: ClientIP
  sessionAffinityConfig:
    clientIP:

so, this kubernetes-headless-svc is to resolve Service name to get the endpoints ip which are also podIP u call.
root@hecs-410147:~# kubectl get endpoints
NAME              ENDPOINTS             AGE
frontend-svc      <IP_ADDRESS>:8080     100s
user-svc             <IP_ADDRESS>:8080      200s

the plugin return <IP_ADDRESS>:8080 to fronted applition to call

it is so easy finish this work ,just use a net package like this:
package main
import (
	"fmt"
	"net"
)

func main() {
	//we just use net.LookupIP to get ip address of www.twitter.com
	ipRecords, err := net.LookupIP("www.twitter.com")
	if err != nil {
		panic(err)
	}
	for _, value := range ipRecords {
		fmt.Println(value.String())
	}
}

you can take a look of README.md to get the detail document about it ,  and i give a example to use this plugin in  examples folder.

Thanks a lot for your PR! Interesting approach!
Could you please have a look at the lining issues, and translate all Chinese to English?
Then I can review the PR in more detail.

Thanks a lot for your PR! Interesting approach!
Could you please have a look at the lining issues, and translate all Chinese to English?
Then I can review the PR in more detail.

I'm sorry that it took me so long to get your message, because I was delayed by some things. According to your requirements and the error prompt in test.sh, I made relevant modifications and changed the Chinese commnets in the code into English. Please kindly help to approve this pr again.
Look forward to your reply, I am always online!

this repo is for demo how to use this plugin :https://github.com/orgs/go-micro-v4-demo/repositories
the "frontend" service call " user " and "helloword" service, especially in frontend/main.go showed the whole code :
const UserSvcName = "user-svc"        //the name of k8s service the micoservice "user"  used
const HelloWordSvcName = "helloworld" //the name of k8s service the micoservice "helloworld" used
func main() {
        // u can use this plugin so easily like this
	UserSvc := &k8sHeadlessSvc.Service{Namespace: "default", SvcName: UserSvcName, PodPort: 8080}
	//HelloWordSvc := &k8sHeadlessSvc.Service{Namespace: "default", SvcName: HelloWordSvcName, PodPort: 9090}
	reg := k8sHeadlessSvc.NewRegistry([]*k8sHeadlessSvc.Service{UserSvc})
	srv := micro.NewService(
		micro.Server(mhttp.NewServer()),
		micro.Client(mgrpc.NewClient()))
	srv.Init(
		micro.Name(service),
		micro.Version(version),
		micro.Address("<IP_ADDRESS>:8080"),
		micro.Registry(reg),
	)
       .....

@Davincible When you have time, you can help me with the code review thanks .


Forward URI parameters

It'd be nice if pckd could forward URI parameters from the request. For example it'd be nice to create yayy.me/pckd-issue which forwards to this page to create a new issue, but then further allow the caller to manipulate the URI with something like ?title=some%20title (This is vaild: https://github.com/Just-Moh-it/Pckd/issues/new?title=some title)
At the moment if you create a link and then try to add parameters pckd throws the error Target not found

Would be a great addition! Thanks for the suggestion. Also, any further help will be really appreciated! 😃


Remove 'Search' item from sidemenu

The base view will always be the Search view, so it will ever be on the stack one or two "back-button"s away. There is no ned to show this as navigation in the menu.

Resolved by https://github.com/RioBus/ionic/pull/35.


ViennaCL does not support int64_t and uint64_t

@khalednasr your input would be appreciated.
I was getting the following errors, when i've tried to compile GPUMatrix.cpp and GPUVector.cpp:
/opt/local/include/viennacl/generator/utils.hpp:238:46: warning: declaration shadows a field of 'viennacl::generator::utils::kernel_generation_stream' [-Wshadow]
              kgenstream(std::ostringstream& oss,unsigned int const & tab_count) : oss_(oss), tab_count_(tab_count){ }
                                             ^
/opt/local/include/viennacl/generator/utils.hpp:265:30: note: previous declaration is here
          std::ostringstream oss;
                             ^
1 warning generated.
[  1%] Building CXX object src/shogun/CMakeFiles/libshogun.dir/lib/GPUVector.cpp.o
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.cpp:38:
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.h:43:
In file included from /opt/local/include/viennacl/vector.hpp:33:
In file included from /opt/local/include/viennacl/linalg/vector_operations.hpp:37:
In file included from /opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:34:
/opt/local/include/viennacl/linalg/opencl/kernels/vector.hpp:610:57: error: implicit instantiation of undefined template 'viennacl::ocl::type_to_string<long long>'
            std::string numeric_string = viennacl::ocl::type_to_string<TYPE>::apply();
                                                        ^
/opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:228:55: note: in instantiation of member function 'viennacl::linalg::opencl::kernels::vector<long long>::init' requested here
        viennacl::linalg::opencl::kernels::vector<T>::init(ctx);
                                                      ^
/opt/local/include/viennacl/linalg/vector_operations.hpp:167:37: note: in instantiation of function template specialization 'viennacl::linalg::opencl::vector_assign<long long>' requested here
          viennacl::linalg::opencl::vector_assign(vec1, alpha, up_to_internal_size);
                                    ^
/Users/wiking/shogun/src/shogun/lib/GPUVector.h:138:21: note: in instantiation of function template specialization 'viennacl::linalg::vector_assign<long long>' requested here
  viennacl::linalg::vector_assign(v, value);
                    ^
/opt/local/include/viennacl/ocl/utils.hpp:57:12: note: template is declared here
    struct type_to_string;
           ^
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.cpp:38:
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.h:43:
In file included from /opt/local/include/viennacl/vector.hpp:33:
In file included from /opt/local/include/viennacl/linalg/vector_operations.hpp:37:
In file included from /opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:34:
/opt/local/include/viennacl/linalg/opencl/kernels/vector.hpp:604:35: error: implicit instantiation of undefined template 'viennacl::ocl::type_to_string<long long>'
            return viennacl::ocl::type_to_string<TYPE>::apply() + "_vector";
                                  ^
/opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:230:98: note: in instantiation of member function 'viennacl::linalg::opencl::kernels::vector<long long>::program_name' requested here
        viennacl::ocl::kernel & k = ctx.get_kernel(viennacl::linalg::opencl::kernels::vector<T>::program_name(), "assign_cpu");
                                                                                ^
/opt/local/include/viennacl/linalg/vector_operations.hpp:167:37: note: in instantiation of function template specialization 'viennacl::linalg::opencl::vector_assign<long long>' requested here
          viennacl::linalg::opencl::vector_assign(vec1, alpha, up_to_internal_size);
                                    ^
/Users/wiking/shogun/src/shogun/lib/GPUVector.h:138:21: note: in instantiation of function template specialization 'viennacl::linalg::vector_assign<long long>' requested here
  viennacl::linalg::vector_assign(v, value);
                    ^
/opt/local/include/viennacl/ocl/utils.hpp:57:12: note: template is declared here
    struct type_to_string;
           ^
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.cpp:38:
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.h:43:
In file included from /opt/local/include/viennacl/vector.hpp:28:
In file included from /opt/local/include/viennacl/backend/memory.hpp:30:
/opt/local/include/viennacl/traits/handle.hpp:50:17: error: member reference base type 'const long long' is not a structure or union
      return obj.handle();
             ~~~^~~~~~~
/opt/local/include/viennacl/traits/handle.hpp:177:32: note: in instantiation of function template specialization 'viennacl::traits::handle<long long>' requested here
      return viennacl::traits::handle(obj).opencl_handle();
                               ^
/opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:240:52: note: in instantiation of function template specialization 'viennacl::traits::opencl_handle<long long>' requested here
                                 viennacl::traits::opencl_handle(T(alpha)) )
                                                   ^
/opt/local/include/viennacl/linalg/vector_operations.hpp:167:37: note: in instantiation of function template specialization 'viennacl::linalg::opencl::vector_assign<long long>' requested here
          viennacl::linalg::opencl::vector_assign(vec1, alpha, up_to_internal_size);
                                    ^
/Users/wiking/shogun/src/shogun/lib/GPUVector.h:138:21: note: in instantiation of function template specialization 'viennacl::linalg::vector_assign<long long>' requested here
  viennacl::linalg::vector_assign(v, value);
                    ^
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.cpp:38:
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.h:43:
In file included from /opt/local/include/viennacl/vector.hpp:33:
In file included from /opt/local/include/viennacl/linalg/vector_operations.hpp:37:
In file included from /opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:34:
/opt/local/include/viennacl/linalg/opencl/kernels/vector.hpp:610:57: error: implicit instantiation of undefined template 'viennacl::ocl::type_to_string<unsigned long long>'
            std::string numeric_string = viennacl::ocl::type_to_string<TYPE>::apply();
                                                        ^
/opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:228:55: note: in instantiation of member function 'viennacl::linalg::opencl::kernels::vector<unsigned long long>::init' requested here
        viennacl::linalg::opencl::kernels::vector<T>::init(ctx);
                                                      ^
/opt/local/include/viennacl/linalg/vector_operations.hpp:167:37: note: in instantiation of function template specialization 'viennacl::linalg::opencl::vector_assign<unsigned long long>' requested here
          viennacl::linalg::opencl::vector_assign(vec1, alpha, up_to_internal_size);
                                    ^
/Users/wiking/shogun/src/shogun/lib/GPUVector.h:138:21: note: in instantiation of function template specialization 'viennacl::linalg::vector_assign<unsigned long long>' requested here
  viennacl::linalg::vector_assign(v, value);
                    ^
/opt/local/include/viennacl/ocl/utils.hpp:57:12: note: template is declared here
    struct type_to_string;
           ^
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.cpp:38:
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.h:43:
In file included from /opt/local/include/viennacl/vector.hpp:33:
In file included from /opt/local/include/viennacl/linalg/vector_operations.hpp:37:
In file included from /opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:34:
/opt/local/include/viennacl/linalg/opencl/kernels/vector.hpp:604:35: error: implicit instantiation of undefined template 'viennacl::ocl::type_to_string<unsigned long long>'
            return viennacl::ocl::type_to_string<TYPE>::apply() + "_vector";
                                  ^
/opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:230:98: note: in instantiation of member function 'viennacl::linalg::opencl::kernels::vector<unsigned long long>::program_name' requested here
        viennacl::ocl::kernel & k = ctx.get_kernel(viennacl::linalg::opencl::kernels::vector<T>::program_name(), "assign_cpu");
                                                                                ^
/opt/local/include/viennacl/linalg/vector_operations.hpp:167:37: note: in instantiation of function template specialization 'viennacl::linalg::opencl::vector_assign<unsigned long long>' requested here
          viennacl::linalg::opencl::vector_assign(vec1, alpha, up_to_internal_size);
                                    ^
/Users/wiking/shogun/src/shogun/lib/GPUVector.h:138:21: note: in instantiation of function template specialization 'viennacl::linalg::vector_assign<unsigned long long>' requested here
  viennacl::linalg::vector_assign(v, value);
                    ^
/opt/local/include/viennacl/ocl/utils.hpp:57:12: note: template is declared here
    struct type_to_string;
           ^
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.cpp:38:
In file included from /Users/wiking/shogun/src/shogun/lib/GPUVector.h:43:
In file included from /opt/local/include/viennacl/vector.hpp:28:
In file included from /opt/local/include/viennacl/backend/memory.hpp:30:
/opt/local/include/viennacl/traits/handle.hpp:50:17: error: member reference base type 'const unsigned long long' is not a structure or union
      return obj.handle();
             ~~~^~~~~~~
/opt/local/include/viennacl/traits/handle.hpp:177:32: note: in instantiation of function template specialization 'viennacl::traits::handle<unsigned long long>' requested here
      return viennacl::traits::handle(obj).opencl_handle();
                               ^
/opt/local/include/viennacl/linalg/opencl/vector_operations.hpp:240:52: note: in instantiation of function template specialization 'viennacl::traits::opencl_handle<unsigned long long>' requested here
                                 viennacl::traits::opencl_handle(T(alpha)) )
                                                   ^
/opt/local/include/viennacl/linalg/vector_operations.hpp:167:37: note: in instantiation of function template specialization 'viennacl::linalg::opencl::vector_assign<unsigned long long>' requested here
          viennacl::linalg::opencl::vector_assign(vec1, alpha, up_to_internal_size);
                                    ^
/Users/wiking/shogun/src/shogun/lib/GPUVector.h:138:21: note: in instantiation of function template specialization 'viennacl::linalg::vector_assign<unsigned long long>' requested here
  viennacl::linalg::vector_assign(v, value);
                    ^
6 errors generated.
make[2]: *** [src/shogun/CMakeFiles/libshogun.dir/lib/GPUVector.cpp.o] Error 1
make[1]: *** [src/shogun/CMakeFiles/libshogun.dir/all] Error 2
make: *** [all] Error 2

Basically this error is due to these declarations:
template class CGPUVector<int64_t>;
template class CGPUVector<uint64_t>;

and
template class CGPUMatrix<int64_t>;
template class CGPUMatrix<uint64_t>;

if i comment them out there are no errors, and i can compile shogun w/o any errors.
I have viennacl 1.5.2 installed on an OSX machine.
strangely enough the viennacl buildbot (ubuntu trusty) with libviennacl-dev 1.5.1-1 has no problems with compiling the same code.
for some reason it seems int64_t and uint64_t are different typedefs.... anyhow input on this would be appreciated.

ok this is actually fixed a longer time ago :)


Non-English and invalid passphrases

Current handling of non-English BIP39 passphrases (following #1601 #1599):

Passphrase with English words:
validity is checked (based on dictionary), seed and entropy are generated, keys are generated.

Passphrase with non-English words and invalid passphrases:
validity is not checked, seed is generated, entropy is empty, keys are generated.

https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki

Trust Wallet and wallet-core don't support non-English passphrases, nor is support planned.
Wallet-core is extended with an entry point to permit usage of non-English passphrases, see #1613.
One has to:

validate the mnemonic against dictionary
build the entropy bits from the indices of the mnemonic words
create HDWallet with the mnemonic and entropy (wallet-core will not perform validity check)
use HDWallet normally

See example CreateFromMnemonicUnchecked, https://github.com/trustwallet/wallet-core/pull/1613/files#diff-f0fba36710813b74e080a56e02b0aed0b88f4c3c24cad6b3a0e4d2e58cc3ebefR210

Following alternatives to support non-Eng passphrase in some way (using custom dictionary #1611;  using only an unchecked wallet creation #1613), we decided not to support at all.  Validity check is being added, so non-English passphrases cannot be used.  Only English is supported.

@catenocrypt to handle accented characters and utf encoding issues we can use canonicalMapping to prevent this kind of problem. In swift code before creating HDWallet I use
mnemonic.joined(seperator: "").decomposedStringWithCanonicalMapping

Further documentation available here
https://developer.apple.com/documentation/foundation/nsstring/1409474-decomposedstringwithcanonicalmap?language=objc
Canonical mapping should be pushed into walletCore so that foreign language mnemonics can still be supported. Although it is now strongly discouraged by bip39 it is still needed for some wallets to support mnemonics that were generated in a foreign language.
https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#wordlists


Detect Magisk's Icon

Magisk itself might not be detectable, but as long as Magisk Manager can be found in the launcher, it will leave a trace.
Tapping "Hide Magisk Manager" scrambles the package name and replaces the name with a generic "Manager" (all languages). However, the app icon stays the same.
Therefore, for CheckRootManagementApps, we can do something like this:
FINGERPRINT = "0123456789" // Hash of Magisk's icon

hasMagiskIcon() {
    for (app : apps) {
        if ("Manager" not in app.name) continue
        bitmap = render(app.icon, "mdpi")
        if (hash(bitmap) == FINGERPRINT) return true
    }
    return false
}

Manager
Scrambled name can be anything in newest versions of Magisk

I've written a class that can perform this. Can anyone test it on their devices to see if it generates the same fingerprint? you only need to install magisk manager (rooting phone is not required). We will need to at least generate a fingerprint for all different display densities.
How it works

Get's app icon drawable
Convert to bitmap
Compress bitmap to png byte array
MD5 png byte array
Compare to fingerprint

This assumes that this entire process is deterministic, if this isn't the case, we're going to have difficulty calculating a fingerprint that is consistent across devices. If the png compression is the issue we may be able to hash the bitmap directly with something like the following:
int hash(Bitmap bitmap){
   int[] buffer = new int[bitmap.getWidth(), bitmap.getHeight()];
   bitmap.getPixels(buffer, 0, 0, 0, 0, bitmap.getWidth(), bitmap.getHeight());
   return Arrays.hashCode(buffer);
}

Note
This will only work until magisk catch on and start messing with their logo when hiding, but it is a fun little cat and mouse game we play :)
Source
https://github.com/scottyab/rootbeer/blob/feature/magisk-detection/rootbeerlib/src/main/java/com/scottyab/rootbeer/invasive/MagiskDetect.java

Magisk Manager no longer has an icon


Support for synchronous guages

Feature Request
Motivation
This feature obviously would fit in well here since it already supports the other synchronous metrics. Synchronous gauges were added in this PR and are listed as experimental. It is included in the open-telemetry spec though so I imagine it's unlikely to change much.
Proposal
Api should be consistent with existing metrics and look like this:
info!(gauge.foo = 1.1);

We could potentially feature gate this as experimental similar to open-telemetry. I'm not sure how necessary that is though.

I have a PR about but i need some help. I don't know the low level details to take about the Gauge metric on the test side.


Revert "Update to Cadence v0.16.0 and Emulator v0.20.1"

Reverts onflow/flow-cli#265 - due to bug in flow-go fixed with PR https://github.com/onflow/flow-go/pull/748

Why was this reverted?

Why was this reverted?

Because of the bug in the flow-go that causes issues with compilation: https://github.com/onflow/flow-go/pull/748
If this is needed to be released I can include it after that gets fixed or do you have another suggestion?


Reset eager_load to default

Early on in the project we set eager_load to true to mitigate a loading issue. This doesn't seem to be a problem anymore, and we've refactored out some explicit require statements not too long back.

These tests pass locally. Not sure why it fails on CI :/