[Android] Nothing happens when wifi is enabled, Error when wifi is disabled

I am  using this plugin along with cordova-plugin-websocket-server to make a multiplayer Android game. The server plugin is working fine, but the zeroconf plugin is not working . Nothing happens when I publish a service, no Success or Failure callback is fired . . . Same for "watch(type, domain, success, failure)", nothing happens .

When wifi is disabled it gives me error. But when wifi is enabled it gives me nothing . . . ! Please help.

OK I'll review that later on.
In the meantime check in your code that wifi is on before calling the plugin.
You could ask the players to turn their wifi on too because using this plugin and websocket-server does not make much sense without wifi to me.

Yeah, I'm turning the wifi on . . . Gives me nothing . . . If I turn the wifi off it gives me error saying "ENODEV no such device" . . . take a look into it please . . .  Thank you for your efforts.

@Dipayon3D can you share any code?

sure . . .
here's the server side and client side code  . . .
var SERVICE_TYPE = '_my-service._tcp.', // '_http._tcp.'
HOST_NAME = 'my host';
function startServer(){
// Specify 0 as the port number, so that a random free port is used
if(!wsserver){
alert("No WebSocket !");
return;
}
if(!zeroconf){
alert("No Zeroconf !");
return;
}
wsserver.start(0, {
  'onFailure' :  function(addr, port, reason) {
      navigator.notification.alert(
          'Stopped listening on '+addr+' : '+port+'. Reason: '+reason,  // message
          function(){},         // callback
          'Stopped',            // title
          'GOT IT . . .'                  // buttonName
      );
  },

  // WebSocket Connection handlers
'onOpen' : function(conn) {
    /* conn: {
     'uuid' : '8e176b14-a1af-70a7-3e3d-8b341977a16e',
     'remoteAddr' : '<IP_ADDRESS>',
     'acceptedProtocol' : 'my-protocol-v1',
     'httpFields' : {...},
     'resource' : '/?param1=value1&param2=value2'
     } */

    navigator.notification.alert(
        'A user connected from '+conn.remoteAddr,  // message
        function(){},         // callback
        'Connected',            // title
        'GOT IT . . .'                  // buttonName
    );
},

'onMessage' : function(conn, msg) {

    navigator.notification.alert(
        conn+" , "+msg,  // message
        function(){},         // callback
        'Message',            // title
        'GOT IT . . .'                  // buttonName
    );

},

'onClose' : function(conn, code, reason, wasClean) {

    navigator.notification.alert(
        "A user disconnected from "+conn.remoteAddr+", with Code - "+code+", because of "+reason+", Clean Connection : "+wasClean,  // message
        function(){},         // callback
        'Connected',            // title
        'GOT IT . . .'                  // buttonName
    );

},
// Other options
'origins' : [ 'file://' ], // validates the 'Origin' HTTP Header. // [ 'file://',"http://","*" ]
'protocols' : [ 'my-protocol-v1', 'my-protocol-v2' ], // validates the 'Sec-WebSocket-Protocol' HTTP Header.
'tcpNoDelay' : true // disables Nagle's algorithm.

},
function onStart(addr, port){
  // window.plugins.spinnerDialog.show("GetInterfaces() Called", "Please wait...", function(){});

  var ip_addresses;

  // Check whether we are listening on IPv4 or IPv6

  if(/^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}$/.test(addr)){
      ip_addresses = 'ipv4Addresses';
  } else {
      ip_addresses = 'ipv6Addresses';
  }

  // Call getInterfaces in order to know the IP addresses of each network _interface

  wsserver.getInterfaces(function(result){

      // window.plugins.spinnerDialog.hide();

      /*
       {"p2p0":{"ipv4Addresses":[],"ipv6Addresses":["fe80::bcd1:d3ff:fe51:ea60%p2p0"]}}
      */

      // if(result){
      //    if(result.p2p0.ipv4Addresses[0]){
      //       alert("IPV4Addresses - "+ result.p2p0.ipv4Addresses[0]);
      //    }else{
      //       alert("IPV6Addresses - "+ result.p2p0.ipv6Addresses[0]);
      //    }
      // }

      zeroconf.register(SERVICE_TYPE, 'local.', HOST_NAME, port, {

          // Publish the correct IP address on the TXT record
          server_ip: ( result.p2p0.ipv4Addresses[0] ) ? result.p2p0.ipv4Addresses[0] : result.p2p0.ipv6Addresses[0]

      }, function(data){
          // Here we have successfully advertised the service

          // window.plugins.spinnerDialog.hide();

          alert('Service Advertised - '+ data);

      }, function(cause){
         // Failed to advertised
        //  window.plugins.spinnerDialog.hide();
         alert('Failed to advertise Service - '+ cause);
      });

  }, function(error){

    //  window.plugins.spinnerDialog.hide();
     alert('GetInterfaces Error - '+ error);

  });

},
function onDidNotStart(reason) {
alert('Reason for not starting '+ reason);

});
}
var connection;
function watchForServer(){
if(!zeroconf){
alert("No Zeroconf !");
return;
}
window.plugins.spinnerDialog.show("Looking For Service", "Please wait...", function(){});
zeroconf.watch(SERVICE_TYPE, 'local.', function(result){
  window.plugins.spinnerDialog.hide();

  var service = result.service, hostname, url;

  alert("Watch Result ServerIP - "+ service.txtRecord.server_ip);

  if (result.action === 'added') {

      hostname = service.txtRecord.server_ip;

      if(/^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}$/.test(hostname)){
          url = ['ws://', hostname, ':', service.port, '/'].join(''); // ipv4
      } else {
          url = ['ws://[', hostname, ']:', service.port, '/'].join(''); // ipv6 // hostname.slice(0, hostname.length - 5)
      }

      connection = new WebSocket(url);
      connection.onopen = function() {
          // Now the client is connected
          alert("Now the client is connected "+ result.service);
      }
  } else if (result.action == 'resolved') {
      alert("service resolved "+ result.service);
  }else{
      alert("Service Removed "+ result.service);
  }

}, function(cause){
// failed to watch for service
window.plugins.spinnerDialog.hide();
alert("Failed to watch "+ cause);
});
}

@Dipayon3D thank you for sharing. A few questions:

How are you setting zeroconf? Usually this is cordova.plugins.zeroconf unless using Ionic-Native. Your syntax for zeroconf.register and zeroconf.watch looks correct.
Do you get any results for var SERVICE_TYPE = '_http._tcp.' ?
What happens if you run cordova.plugins.zeroconf.watch('_http._tcp.', 'local.', console.log, console.err); in your browser devtools while your app is running?

I'm setting everything in the recommended way . . . And SERVICE_TYPE = '_my-service._tcp.' works fine and SERVICE_TYPE = '_http._tcp.' as well . . .
Actually I'm trying to use it for an Android multiplayer game . . . So I've tested it on various Android devices . . . The server runs successfully , but when the other device starts to watch for services, nothing happens . . . It just keeps checking forever . . . No error or result . . .
I'm programmatically turning the wifi ON using another plugin at the startup . . . I have no earthly idea where to go from here with these plugins . . .

I'm curious if you are experiencing the same problem that I have been fighting with: changing Wifi networks after the Zeroconf plugin has been initialized (when the app starts up) breaks the mDNS scanning.
I added a reInit() method recently to help with this, but it hasn't been fully released yet.
Can you run your app again, but make sure that the phone is on the correct Wifi network before opening the app? We need to see if you get results when the app starts and doesn't change networks.

Yeah, I've tried that too . . . the same result unfortunately . . . Are you having trouble using these plugins as well??

Yes, but my problems are lower in the OS layer where Android decides to route browser-based traffic through WiFi or GSM based on which interface has an internet connection.
This plugin works well for me in normal circumstances... it's only when I change the source of the internet that it behaves poorly, and that is not not something this plugin can control.

just to be sure, is zeroconf.register called at all?
can you confirm that you are getting an alert in any of its callbacks?
if successfull, as @emcniece said, can you see your services with another zeroconf app? (Bonjour Browser or Service Browser in Google Play for instance)

@emcniece the result is same with the cell network data connection . . .
@becvert yes, zeroconf.register(...) is being called . . . I get the success callback firing . . . I'm afraid it's the zeroconf.watch(...) , that's not doing anything . . . Did I miss anything ?? Here's the watch method below -
var connection;
function watchForServer(){
if(!zeroconf){
alert("No Zeroconf !");
return;
}
window.plugins.spinnerDialog.show("Looking For Service", "Please wait...", function(){});
zeroconf.watch(SERVICE_TYPE, 'local.', function(result){
  window.plugins.spinnerDialog.hide();

  var service = result.service, hostname, url;

  alert("Watch Result ServerIP - "+ service.txtRecord.server_ip);

  if (result.action === 'added') {

      hostname = service.txtRecord.server_ip;

      if(/^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}$/.test(hostname)){
          url = ['ws://', hostname, ':', service.port, '/'].join(''); // ipv4
      } else {
          url = ['ws://[', hostname, ']:', service.port, '/'].join(''); // ipv6 // hostname.slice(0, hostname.length - 5)
      }

      connection = new WebSocket(url);
      connection.onopen = function() {
          // Now the client is connected
          alert("Now the client is connected "+ result.service);
      }
  } else if (result.action == 'resolved') {
      alert("service resolved "+ result.service);
  }else{
      alert("Service Removed "+ result.service);
  }

}, function(cause){
// failed to watch for service
window.plugins.spinnerDialog.hide();
alert("Failed to watch "+ cause);
});
}

If I were you, again as @emcniece said, I would just console.log(result) or alert(result) in watch

I did . . . It's in the code I provided . . . But somehow neither the success nor failure callback is firing !! Does the implementation looks good to you (in the code provided) ??

are you sure service.txtRecord is not null for instance? I'm just trying to go step by step here.
otherwise I can't see anything wrong.
again use a bonjour browser app to check that the service is registered.

Ok . . . I'll do some more experimenting and let you know . . . Than you for your supports :)

are you using the hotspot mode or WI-FI direct?

I'm just turning the wifi on using another plugin . . . not creating any hotspot . . . Do I need hotspot ??

no. It's just that in your code you're looking for the p2p0 interface which is Wifi Direct I think.
Hotspot mode and wifi direct are either not well supported or not tested for this plugin.
Can you confirm that your devices are all connected to the same router?

No, devices are not connected to same router . . . I used p2p0 because in my server code, inside wsserver.getInterfaces(function(result){....}) I used alert(JSON.stringify(result)); and it gave me the following response after the server started -
{"p2p0":{"ipv4Addresses":[],"ipv6Addresses":["fe80::bcd1:d3ff:fe51:ea60%p2p0"]}}
so I had to use response.p2p0 . . .

ok I think that's the source of your problem. your devices must be on the same router.
which wifi plugin are you using?

I've used cordova-plugin-wifi just to enable the wifi on dviceready . . .

ok. I don't know how you're setup but try to connect your devices to the same router.
otherwise if in hotspot mode or wifi direct try also to disable mobile data.
good luck.

Closing old issue. Feel free to reopen.


reduce mean by broadcast, change uint8 to float32 in load_mosaic() fu…

reduce mean by broadcast, change uint8 to float32 in load_mosaic() function

please merge it when you are free

please merge it


Use single script for deployment

Add deploy make target
Update deploy.sh to allow driver image and registrar image to be
overrode.
Update install doc to use make target
Remove test code that runs its own driver deployment.

/hold
Needs https://github.com/openshift/release/pull/20960 to work correctly.

/hold cancel

/retest

/lgtm

from one of the e2e's:
Deploying using csi driver registry.build02.ci.openshift.org/ci-op-pgpdqqrj/pipeline@sha256:cb813c886ba2b84a51fcc4d1004355f31aefe62b733b087a973a1f3d0b710505
good to go


Add standalone symbolic enumeration and syntax tree balancing demos; add symbolic enumeration to main API.

Standalone demos illustrating how symbolic enumeration and abstract syntax tree balancing can be implemented.

Coverage remained the same at 88.27% when pulling 965c7f054783d0d88c2f1cf6d4ee4edfabf72430 on reity:master into 0ccf301be820ea19ab595dc79ca7e72e58d837a7 on hicsail:master.

Added symbolic enumeration to main API.


Orchestrator: build base docker images for tests execution

Once test-preprocessor sends new test IDs, build a base image using files in shared volume, also including SAVE Agent and SAVE CLI.

For this task path to test suite is needed, which should be created in #43

Actually, not the path to the test suite, but rather path to all execution data. Can be added, if not already.

This action's trigger will be added in #58 , so here we can only implement logic


[enhancement] Ozhera's Plan for Extension Points in ETL Server and Log Agent

Ozhera plans to extract extension points in the project, which will be convenient for the open-source community to expand. The advantage of extension points is that they are open for expansion while closed for modification. In the first phase, extension points will be added to the ETL server and Log Agent.

The approach we can think of now is similar to Dubbo, having an extension project. When needed, it can be introduced into the project and then the configuration can be adjusted accordingly.

Will there be any protocols to follow if we want to utilize the upcoming extension points ~

just overview this project. it seems a very convenient tool for business systems monitoring and alerts!
btw, i am very interested in this project and want to be a contributor and also want to use this platform in the near future.
so i have a question to the person who is in charge of  this project, how can i become the contributor?
since kafka is also popular for both individuals and startup to use, i think maybe i  can apply kafka(another mq middleware) in this project first.
thanks!!

just overview this project. it seems a very convenient tool for business systems monitoring and alerts! btw, i am very interested in this project and want to be a contributor and also want to use this platform in the near future. so i have a question to the person who is in charge of this project, how can i become the contributor? since kafka is also popular for both individuals and startup to use, i think maybe i can apply kafka(another mq middleware) in this project first. thanks!!

Welcome, welcome, and your suggestions are excellent!

This is our WeChat community group, you can join the group for discussion.

just overview this project. it seems a very convenient tool for business systems monitoring and alerts! btw, i am very interested in this project and want to be a contributor and also want to use this platform in the near future. so i have a question to the person who is in charge of this project, how can i become the contributor? since kafka is also popular for both individuals and startup to use, i think maybe i can apply kafka(another mq middleware) in this project first. thanks!!

We will provide an extension point for MQ (and by default provide a RocketMQ implementation), you can refer to this.

@xiaotietietie  This is a relatively early PR (https://github.com/XiaoMi/ozhera/pull/61), you can refer to it.

I will refer to this PR #61  to extend the RocketMQ Producer's extension.

I will refer to this PR #61 to extend the RocketMQ Producer's extension.

I've added an extension for the RocketMQ Producer, which uses the same Extension as the Consumer. You can refer to this PR #71 .


How to wire/configure I2C components (s.a., IMU_MPU9250)

Possibly an update request to the README and/or docs, but how should I be wiring I2C components (s.a., IMU_MPU9250)? I'm assuming it's as simple as wiring up ground, power, MISO, & MOSI.

Got the accelerometer and gyro data from the IMU MPU9250 to show in channels, so I can tackle this issue.


Updating the celery_periodic_task_changed triggers ALL the existing tasks now.

Whenever I need to update the scheduler tasks, I update the celery_periodic_task_changed to now to make beat aware of the changes.
The problem is that doing that triggers all the scheduled tasks to run NOW, and I just need them to run at the right time they were scheduled.
There is any workaround for this?
Thanks

This is a known issue https://github.com/celery/celery/issues/4806. The gist of it is that when a change is made to any one of your scheduled tasks, beat then reloads the table to make sure everything is current. In doing so it also ends up checking the last_ran_at timestamp and if too much time has elapsed it schedules it for execution. There's some logic issues with how that works. There's a larger work around in the same issue that you can use if you want to fork your own copy. Note that this can also happen if you restart beat in the same timeframe.
The way I've been able to work around it, on start up or changes made to any one of my scheduled entries, I basically just set last_run_at to null. As the logic for last_run_at wont trigger an execution if its the 'first time'. Of course this creates an issue if you actually care about the last execution time. Here my use case it doesn't matter to have this viewable by anyone as I have flower to track all my tasks executions as well as a custom audit table.
This is what my start up of beat looks like (replace SessionManager() with whatever your db connection is):
@beat_init.connect
def reset_last_run(**_):
    """
    Reset all the last ran times in celery database. This is to prevent accidental runs if a new service is deployed
    or restarted.
    """

    logging.info("Resetting last run at for Periodic Task table")
    with SessionManager() as session:
        periodic_tasks = session.query(PeriodicTask).all()
        for pt in periodic_tasks:
            pt.last_run_at = None
            session.add(pt)
        session.commit()


Possibly escape apostrophes differently

Hi there,
I'm using your library to produce HTML tables to good effect in most cases.
However, when the dictionary input involves apostrophes, the output fails to play nice with Folium popups.
Using html.escape seems to fix that.
For example, running
from json2html import json2html as jh
import html

d = {'stop_name': "Ponsonby Rd & K'Rd"}
dd = {}
for k, v in d.items():
    try:
        vv = html.escape(v)
    except AttributeError:
        vv = v
    dd[k] = vv

jh.convert(d), jh.convert(dd)

produces
'

stop_name	Ponsonby Rd & K\'Rd

',
 '

stop_name	Ponsonby Rd &amp; K&#x27;Rd

'

The first output crashes Folium popups, but the second works with them.
So would it be better for json2html to escape apostrophes in the same way that html.escape does?

import html
from json2html import json2html as jh

def convert_with_escape(data):
    # Create a new dictionary to store the escaped values
    escaped_data = {}
    for key, value in data.items():
        if isinstance(value, str):
            # Escape the value to handle special characters
            escaped_value = html.escape(value)
            escaped_data[key] = escaped_value
        else:
            escaped_data[key] = value  # Keep non-string values unchanged

    # Use the json2html conversion method on the escaped data
    return jh.convert(escaped_data)

# Example usage
d = {'stop_name': "Ponsonby Rd & K'Rd"}
html_output = convert_with_escape(d)
print(html_output)


db.RAW() throws an error and crashes when soft deletion is enabled

this is not correct behavior

Please provide a sample program where it crashes, personally I can't reproduce it.

@jbfm  see #1474


Add 'Open Folder' menu option + change directory

This is just some scaffolding for #566 and is to help understand the sort of functionality users might want with the Open Folder option.
This change:

adds the Open Folder option to the menu
changes the working directory to the selected folder (which means QuickOpen is now relative to that folder)

Brought in a change to have the statusbar show the working directory, as well as to open the 'Open Folder' dialog if clicked on.

This should've been a smaller PR - but needed to plumb the directory-changed event to the plugin layer, as well as expose the executeCommand method.


Update entity conflict logic for additional case

Right now, there are exactly three situations in which a new entity version is supposed to be marked as a conflict. Two of them are new as of v2024.3.

The base version of an entity update is different from the current version on the server. This is the classic case of an entity conflict.
An offline entity create was delayed, then was later applied as an update. In that case, the update should be marked as a soft conflict.

Introduced in #702

An entity update was made on an offline branch, but there was another update made from outside the branch between the trunk version of the branch and when the new update from the branch was processed. In other words, the new version is not contiguous with its trunk version: there was an interleaving update. In that case, the new version from the branch is marked as a soft conflict. The most interesting example of this is when the new version immediately follows its base version (i.e., the previous update from the branch). If the new version doesn't immediately follow its base version (if the new version is not the subsequent version), that's already a conflict due to rule 1 above.

Introduced in #698

Note one important situation in which a new entity version is not marked as a conflict. If an offline update is force-applied from the backlog, that is not considered to be a conflict unless rule 3 applies. For example, let's say I create an entity, then make two offline updates to the entity. I submit both updates, but the first is delayed, so the second ends up being force-applied from the backlog and processed before the first. Assuming that there was no other update from another source, the second update should not be marked as a conflict. Its base version according to the server is v1, and it immediately follows it (1 ✅); it was not a create applied as an update (2 ✅); and it is contiguous with its trunk version (3 ✅). If the first update does eventually arrive, the first update will be marked as a conflict due to rule 1. However, the second update (the one processed first) is not considered to be a conflict.
This issue has to do with a related situation in which a new entity version is marked as a soft conflict when it is not intended to be. This situation came up as part of #698:

Create an entity (v1).
Download the entity to Collect, then create 4 offline updates to the entity. Don't send the updates yet.
Send the 2nd update first. Wait 5 days or force-process the update immediately. The update will be v2 on the server. It is not a conflict: its exact base version was not found, so it was applied on top of the latest version.
Now send the 1st update. It will be immediately applied, as its base version (v1) is on the server. The update will be v3 on the server. It is a conflict because there was another version between it and its base version.
Now send the 4th update. Wait 5 days or force-process the update immediately. The update will be v4 on the server. It is not a conflict, for the same reasons as v2.

In this example, even though v3 and v4 are from the same branch, and v3 is a conflict, we do not expect v4 to be a conflict. v2, v3, and v4 are all contiguous with the trunk version (v1): there's no conflict with some interweaving update from another source, as in the first example above. To summarize: if the versions from an offline branch were force-processed out of order, then even if all the versions are contiguous with their trunk version, it may be the case that an earlier version from the branch is a conflict while a later version is not.

According to the three rules above, v4 should not be marked as a conflict. However, right now, it is being marked as a conflict. That can be seen in the Backend test here.

@ktuite and I explored this issue a little while reviewing getodk/central-backend#1187. We ended up suspecting that there was an issue with these lines of code:
add(version) {
  if (version.baseVersion === this.lastContiguousWithTrunk &&
    version.version === version.baseVersion + 1)
    this.lastContiguousWithTrunk = version.version;
}

When this method is called for v3 (the 1st update) in the scenario above, version.baseVersion will be 1, which differs from this.lastContiguousWithTrunk, which will be 2. In other words, add() considers the branch to have been interrupted. What's actually happening is that all the updates are contiguous with the trunk version, but the updates have been applied out of order.
add() was originally written for Frontend and was adapted for Backend. If we patch it in Backend, we should probably also patch it in Frontend: there may be a problem there as well. In Frontend, I think lastContiguousWithTrunk is just used to show the accuracy warning ("In this case, the author’s view may not be accurate.").

The example above involves four offline updates from the same branch, where two of the updates are force-processed at different times. However, I'm pretty sure that this issue will also come up in simpler cases. For example:

Create an entity (v1).
Download the entity to Collect, then create 3 offline updates to the entity. Don't send the updates yet.
Send the 3rd update first. Wait 5 days or force-process the update immediately. The update will be v2 on the server. It is not a conflict: its exact base version was not found, so it was applied on top of the latest version.
Now send the 1st update. It will be immediately applied, as its base version is on the server (v1). The update will be v3 on the server. It is a conflict because there was another version between it and its base version.
Now send the 2nd update. It will be immediately applied, as its base version is on the server (v3). The update will be v4 on the server. It should not be a conflict, as it immediately follows its base version and is contiguous with its trunk version. However, right now, it will be marked as a conflict.

I think this issue requires that:

An offline update is force-processed from the backlog.

We need the updates from the branch to be contiguous with the trunk version, because otherwise it should be a conflict. Yet to create the issue, we also need the updates to be out of order, which is what force-processing achieves.

A subsequent offline update from the same branch is processed where the base version exists on the server, but is not the latest version.

Since the base version exists on the server, this update would not be force-processed. But to create the issue, it would have to come in after force-processing has taken place for the offline update in step 1.

A third update from the same branch is processed. It is this update that would have the incorrect conflict status. No matter what this update is — what order, whether it's force-processed or not — it will be marked as a conflict. But in order for it to be incorrectly marked as a conflict, its base version must be the latest version on the server.


[8.1] docs: duplicate file (#160)

Backport
This will backport the following commits from main to 8.1:

docs: duplicate file (#160)

Questions ?
Please refer to the Backport tool documentation

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-03-24T22:06:56.174+0000

Duration: 7 min 2 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
84

Skipped
0

Total
84

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


Self config still shows Kentico Cloud logo

Check out the file https://github.com/Kentico/kontent-sample-app-net/blob/master/DancingGoat/Areas/Admin/Views/Shared/_Layout.cshtml - it contains SVG with Kentico Cloud logo. The overall feel of the page is Kentico-Cloud-like.

The page should be updated to have Kentico Kontent look and feel.

it could use complete redesign but we should wait with that until the product's redesigned. so I only replaced the logo.


Rename Internal.data_columns after arithmetic operations for IndexOpsMixin

As mentioned at https://github.com/databricks/koalas/pull/1224#discussion_r370971017,
this PR for renaming Internal.data_columns for IndexOpsMixin (Index & Series) after arithmetic operations are done.
of course we should have more discussion about this, but i think we better to rename after those operations to avoid confusing when we develop or use some API with _InternalFrame.

@itholic can you rebase?

Closing this for now since we can't handle below if the name is changed.
>>> pdf = pd.DataFrame(
...             {
...                 "a": [1, 2, 6, 4, 4, 6, 4, 3, 7],
...                 "b": [4, 2, 7, 3, 3, 1, 1, 1, 2],
...                 "c": [4, 2, 7, 3, None, 1, 1, 1, 2],
...                 "d": list("abcdefght"),
...             },
...             index=[0, 1, 3, 5, 6, 8, 9, 9, 9],
...         )
>>> kdf = ks.from_pandas(pdf)
>>> (kdf.b + 1).groupby(kdf.b).sum()
Traceback (most recent call last):
pyspark.sql.utils.AnalysisException: "Reference 'b' is ambiguous, could be: b, b.;"


Documentation is too sparse

The provided documentation only provides very basic examples and does not cover a lot of the different available options.

I agree with you but fortunately, this is one of the few projects where there are plenty of xmldocs and the source code is relatively easy to read.
That said, there's only so much you can get from that. I can't help but feel like there's a lot this project can do that I'm not able to take advantage of for lack of examples / formal documentation.

+1 for this, but I find this a problem of too many .net packages... It is like they teach .net people to not write good documentation :-) Coming from Python/Go world it just saddens me as I really love .net core, but am finding it just hard to work with it's ecosystem. Reading a source code and internal api should be a last resort and docs should cover majority of use cases.
Just for comparison check this documentation for click, which is same type of library but for Python: https://click.palletsprojects.com/en/7.x/

I agree. Once I spent a couple days and sort of poked around, I am finding that this is quite a lovely little library. But the documentation is fragmented, confusing, and often less helpful than just parsing through the source code.
@ericnewton76 I don't know if you're the right person to ask about this, but I saw your name as an author on the wiki. It seems the wiki pages are not publicly editable (or I am just GitHub-illiterate, also a possibility). I think a lot of the sparse documentation could be remedied incrementally if this wiki was publicly editable/PR'able. I'm using this library at work, so I'm having to write documentation within our code about how it works. So I'm already doing the work of writing a lot of documentation (for a pretty complex CLI with verbs, a good example case) but I can't figure out how to contribute the docs I am writing to the wiki on this repo. I suspect I'm not the only one in a situation like this, and I think "crowdsourcing" the documentation may be a good solution if the maintainers have bigger fish to fry at the moment.


Rearrange and organize nav bar

This commit includes:

Moving more information to 'about.rst', so that people know where to look
Actually archive old lessons.  TODO check links
Condense the slides section, again so it's more clear where things are

While we're doing a lot of general stuff, would you mind taking out the winter schedule from the front page.


Ability to connect blockstack id to existing local user

It would be nice to be able to add Blockstack ID to a normal user account on the forum.
Issue for tracking. I have no idea if it's possible currently. From forum question.

For the included social logins this seem to work at least. Whether it'll work for a plugin, and even how to do it is unclear to me atm.

Since the launch of Discourse in 2013, you’ve always been able to add any login method that maps to the exact same email address.

https://meta.discourse.org/t/social-login-issue/58593/12


fix word encourter to encounter

make the document more readable

Can you add the DCO?

OK. @brian-brazil

I'm still not seeing it.

Sorry, I have encountered a problem that caused the delay, now no problem. @brian-brazil


Unknown Error for apt-check in WSL Ubuntu

This bug-tracker is monitored by developers and other technical types.  We like detail!  So please use this form and tell us, concisely but precisely, what's up.  Please fill out ALL THE FIELDS!
If you have a feature request, please post to the UserVoice.
Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to<EMAIL_ADDRESS>referencing the GitHub bug number. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".

Your Windows build number:  (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.17017.1000]
$ uname -a
Linux Lion 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)

In apt-using distros, the command /usr/lib/update-notifier/apt-check is used to show the number of available updates and the number of available security updates, in STDERR and normally in 0;0 format, but there's a flag for human readable.
With WSL, I get
$ /usr/lib/update-notifier/apt-check 2>&1
E: Unknown Error: '<class 'PermissionError'>' ([Errno 1] Operation not permitted)

What's wrong / what should be happening instead:

🔥 ✔ jacoby@oz 09:41 37°F No coffee ~
$ /usr/lib/update-notifier/apt-check
0;0

Strace of the failing command, if applicable:  (If <cmd> is failing, then run strace -o strace.txt -ff <cmd>, and post the strace.txt output here)

strace.txt
See our contributing instructions for assistance.

getpriority(PRIO_PROCESS, 0)            = 20
setpriority(PRIO_PROCESS, 0, 19)        = -1 EACCES (Permission denied)

Same as #1838


Repo sync for protected CLA branch

The pull request is created from main637878854874903744 to main to fix git push error for protected CLA branch

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

@shsagir - Could you review this proposed update to your article and enter #sign-off in a comment if it's approved for merge?
Thanks!
#label:"aq-pr-triaged"

Not relevant


Add changing the amount of hands on the GUI depending on your body parts

Closes #1149
https://streamable.com/ts6ese

The changes to the BodyManager are probably going to cause massive conflicts with GlassEclipse's work. It'd be better if you cut out all the styling changes and kept only the actual added/removed hooks.

Reverted in https://github.com/space-wizards/space-station-14/pull/1406/commits/13e92db3902eb80f1fc16bfc754db2a0fd606ac9


Unable to find a valid app

Receiving the below error (screenshot from client) that appears by random after a while after updates using Squirrel, on runtime, not on compile time.
I have checked #369 and #269 and both do not resolve.

What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the packager() function?
"package": "electron-packager ../app --platform=win32 --arch=ia32 --asar --overwrite --app-copyright=\"Copyright (c) 2016 The Client. All rights reserved.\" --icon app.ico --ignore=\"styles/less\" --ignore=\"\\.DS_Store\" --win32metadata.CompanyName=\"Force 24 Ltd\" --win32metadata.ProductName=\"The Client Value Passport\" --win32metadata.FileDescription=\"The Client Value Passport\" --win32metadata.OriginalFilename=\"theclient_value_passport.exe\""

What does your package.json look like?

app package.json:
{
  "dependencies": {
    "electron": "^1.4.11",
    "electron-machine-id": "^1.0.9"
  },
  "devDependencies": {
    "less": "^2.7.1",
    "less-plugin-clean-css": "^1.5.1",
    "less-plugin-glob": "^1.1.1",
    "watch": "^1.0.1"
  },
  "id": "name_like_this_here",
  "name": "name_like_this_here",
  "author": "COMPANY NAME HERE <EMAIL HERE>",
  "version": "1.1.1",
  "main": "app.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "electron .",
    "build:css": "lessc --glob --clean-css styles/less/styles.less styles/styles.min.css",
    "build": "npm run build:css",
    "build:watch": "node_modules/watch/cli.js 'npm run build:css' styles/less"
  },
  "keywords": [],
  "repository": {
    "type": "git",
    "url": "GIT URL HERE"
  },
  "description": "APP DESCRIPTION HERE",
  "license": "UNLICENSED"
}

Installer package.json:
{
  "name": "name-like-this-here-installer",
  "version": "1.0.0",
  "devDependencies": {
    "electron-packager": "^8.4.0",
    "electron-winstaller": "^2.5.0"
  },
  "main": "installer.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "prepackage": "cd ..\\app && npm install --production && cd ..\\installer",
    "package": "electron-packager ../app --platform=win32 --arch=ia32 --asar --overwrite --app-copyright=\"Copyright (c) 2016 COMPANY NAME HERE. All rights reserved.\" --icon app.ico --ignore=\"styles/less\" --ignore=\"\\.DS_Store\" --win32metadata.CompanyName=\"ANOTHER COMPANY NAME HERE\" --win32metadata.ProductName=\"PRODUCT NAME HERE\" --win32metadata.FileDescription=\"PRODUCT NAME HERE\" --win32metadata.OriginalFilename=\"name_like_this_here.exe\"",
    "postpackage": "signtool\\signtool sign /f F24.pfx /p APasswordHere /t http://timestamp.verisign.com/scripts/timstamp.dll name_like_this_here-win32-ia32\\name_like_this_here.exe",
    "installer": "node installer.js",
    "build": "npm run package && npm run installer"
  },
  "keywords": [],
  "author": "Jublo Solutions<EMAIL_ADDRESS>  "repository": {
    "type": "git",
    "url": "GIT URL HERE"
  },
  "description": "PRODUCT NAME HERE",
  "license": "UNLICENSED"
}

So you're using a two-package.json solution? That's not a recommended way of packaging. You'll probably have issues with the main key.

On packaging and delivery, everything works fine. The errors on the photo appeared by random weeks later – ideas?

That shouldn't be an intermittent error. It indicates that the main script pointed at in your packaged package.json does not exist anymore. My only suggestion at this point is to look at  your app code to see if the main script gets deleted somehow.


Decrease page load time for Trending and Leaderboard page

Important observation: We have to query submission table without any condition. Why make a db query every time compute_row is called, instead keep a dictionary and pass the list of submissions to compute_row corresponding to the user.

We prefer page load optimization over code cosmetics ;)

https://github.com/stopstalk/stopstalk-deployment/blob/master/controllers/problems.py#L303
Remove this for loop and put SQL IN in the query

Store globally trending problems in a table and run a cron to update it?

Still some scope to improve time by removing sql query in loop

As the number of users are increasing - Leaderboard is slowing down.! Optimize fast.

Why compute everything on every pageload ? Cron to update a particular db table that stores the previous rating and other stuff?

Can find a query to get streak of a user - here

Leaderboard page - This query is taking most of the time. Calculate this result in cron and create a SQL VIEW.
When should we update the VIEW -

In update-submissions.py
After all the three submissions1, submissions2 and submissions3 have executed.

Next is to optimize LeaderBoard page, trending page done.

Deployment procedure for maintaining new columns of rating directly.


Add 'clear' button to create market form

Also known as a 'reset' button.
This button would allow the user to clear newMarket state object.
...
need design guidance on this, moving to design
Where should the clear button go?
-bthaile

Never seen a real person / user ask for this, closing


Import Error on albucore 0.0.17

Exception has occurred: ImportError
cannot import name 'preserve_channel_dim' from 'albucore.utils' (/home/user/.pyenv/versions/general/lib/python3.11/site-packages/albucore/utils.py)
Exception happened when trying to import albumentations. 0.0.15 work fine.
environment: python3.11.10

same error with me.

Downgrading worked for me.
albucore = "^0.0.16"

Downgrading worked for me.
albucore = "^0.0.16"

hey man can u tell what exactly you did that helped i have been trying for a good while nothing seems to work

Downgrading worked for me.
albucore = "^0.0.16"

hey man can u tell what exactly you did that helped i have been trying for a good while nothing seems to work
just   pip install -U albucore==0.0.16

thanks for the help brother

Released version 1.4.16 of albumentations. Works correcly with albucore 0.0.17


use  ScreenUtil.setContext()

use  ScreenUtil.setContext()
Originally posted by @lizhuoyuan in https://github.com/OpenFlutter/flutter_screenutil/issues/341#issuecomment-1045989595
我也有同样的问题

666


[Error] Extempore effect doesn't create

Hi, please excuse my low english level.
When i try to create an extempore effect, nothing happen. I have this message on the console :
Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'value')
[Detected 2 packages: system:pf2e, pf2e-extempore-effects]
    at get level [as level] (main.bundle.js:1:750107)
    at EffectPF2e.getRollOptions (main.bundle.js:1:688787)
    at EffectPF2e.getRollOptions (main.bundle.js:1:752997)
    at CharacterPF2e.isImmuneTo (main.bundle.js:1:25651)
    at Proxy.createDocuments (main.bundle.js:1:696821)
    at async Object.callback (pf2e-extempore-effects.js:203:31)
get level @ main.bundle.js:1
getRollOptions @ main.bundle.js:1
getRollOptions @ main.bundle.js:1
isImmuneTo @ main.bundle.js:1
createDocuments @ main.bundle.js:1
await in createDocuments (asynchrone)
#onClickItem @ foundry.js:56177
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2

Can you explain what exact steps you're taking to try this creation?
Can you try again, with all other modules disabled, and see if it works?

I'm having problems, too.  Same error with all modules except libwrapper disabled.

Hey so I'm also getting the exact same problems though its more of a recent issue. So I assume the modules it depends upon has changed. (Maybe PF2E?)
In short if I create a chat output for say, Trollhounds blood fever, I can't create an extempore effect from it (I assume its trying to read the item card for certain values to autofill)
But really generic items and messages it can.

Fixed in v1.6.5

thank you


Keep console report even on graph generation

Hey there,
I am not sure if this is a question or a feature request :)
I find the console report very much useful to see what is going on:
 -------------------- -----
  Report
 -------------------- -----
  Violations           0
  Skipped violations   0
  Uncovered            0
  Allowed              87
  Warnings             0
  Errors               0
 -------------------- -----

However, it will be hidden in case a graph output is generated (like adding --formatter=graphviz-image --output=./reports/dep-graph.svg).
Is there anyway to keep the standard console report even when a graph is generated?

Unfortunately, no, it is not. The way deptrac is written, you can have only one type of output at the time.
If you want both, you can always re-run the command to get it. Since the AstMap generated on the first run is cached, it should be quite fast to do so.


Property 'toNumber' does not exist on type '{}'.ts(2339)

I am working on a project in Next.js and it has thrown me an error that I really have no idea how to solve since I have only been doing this for a week, I have not found proper answers on the internet to solve this, what should I do and how?

It looks like this is a question rather than a bug report. This issue tracker is for tracking bugs and active work on TypeScript itself, rather than a general forum for programmers using TypeScript to get help or ask questions.
You can ask questions on sites like Stack Overflow. We are not able to provide one-on-one support on the issue tracker. Please read the issue template carefully - it has important information on what kinds of reports can be acted on here, as well as links to useful TypeScript resources. Thanks!


allow users to defined own interface name in remote api

Background
We are migrating programs from machines to containers. As most physical network interface naming eth1 in our company and lots of programs hard coding of retrieving ip address from eth1, it would be nice if we can define the name of the veth interface inside container which connects to a single network to be eth1 instead of eth0.
Solution
this PR adds an option to allow users to define the whole interface name inside container instead of prefix name plus automatic generated index by libnetwork.
Signed-off-by: mYmNeo<EMAIL_ADDRESS>

ping @docker/core-libnetwork-maintainers for design review.


relative size of areas should be controllable with slider

At the moment, the relative sizes of the areas (display, chat history, entry) is fixed. We should at least have an option where the relative size can be changed by dragging the border. (Many web apps allow this for changing the size of panes.)

I assume those border changes should be logged for optimize future layouts?

Yes, good idea.


Not working on disconnected network

Environment (please complete the following information):

OS: Windows 10
Extension version: 1.4.1

Describe the bug:

the extension is not working under offline\disconnected network, due to the need of:
https://devtools.azureedge.net/serve_file/
the following error is appear:
https://github.com/microsoft/vscode-edge-devtools/blob/08cef848fd7e18f8c06b4f8572fe42a72b611a0e/src/devtoolsPanel.ts#L467
any chance for disconnected computers to workaround this issue?

Thanks for this, looking into adding this as an enhancement in the future

This feature should be available in the latest version of the extension

This feature should be available in the latest version of the extension

Thank you, but still no luck for me.
I've installed 1.4.7 from the marketplace, and same problem.
Unable to download DevTools for the current target
I also unzipped the vsix, and I can still see that function:
https://github.com/microsoft/vscode-edge-devtools/blob/main/src/devtoolsPanel.ts#L521
my disconnected network cannot fetch this url, so its fail

Hey @tomer953,
Thanks for reaching out.  This is how our disconnected session works. When you have internet, the extension remembers the last known valid connection to the DevTools and service workers on the DevTools side caches the files retrieved from the https://devtools.azureedge.net/serve_file/ link. The next time you open the DevTools offline, you will try connecting to the same https://devtools.azureedge.net/serve_file/ link, but instead of trying to retrieve the files from the URL, it will grab it from your local cache.
Try this workflow:

With internet: Use our extension and launch an instance of the DevTools
Disconnect from internet
Use our extension and launch an instance of the DevTools

Let me know if this flow is still broken for you.

Hi, thanks for the help.
However, it might sound strange - but we cannot access to the internet at all in the discussed development pc.
We can transfer data in form of files, but other then that they are completely disconnected. (Security reasons)
As i see it, we can solve with:
copy the cache files from a connected computer to the disconnect pcs. (I will need a little hint of what to copy) - the main cons is that the installation process for each disconnected pc is a little hard.
The other option is to a configuration setting to define the url that being used for the fetch - this is also being tricky, because we will need to self host the entire files as a website, and im not sure if its easy to just clone everything.
The last and best for us obviously, is that the extension itself will packed with  a cache copy of everything needed, and will refresh it if can.
thought?


Make the action pure JS

After testing the first alpha version of the action on a custom repository the workflow failed because it could not retrieve any docker image which makes kind of sense because there has not been any docker building step at any time. It also made me think about why is a docker image needed for running javascript if the actions runner is a docker image itself, I initially designed it like this because of following some examples, but after reading this official typescript action example I don't believe is needed, so I got rid of docker and just configured the action to run the javascript code directly.

I think the error on the build-test/test step can be ignored by now. I'll rework it once I could try the action.


Missing train_fasttext_classifier.py

Hi,
I cannot find train_fasttext_classifier.py mentioned in this file
Can you provide it in some ways?
Thank you!

HI @yuzc19 ,
Thank you for pointing that out. It should be there now, can you please confirm?
Thanks

Yes. It works well. Thank you!


SC-31 # Added call to service for deployment

Added

SC-20: Call to deployment service when running bm server deploy

Code Review Notes

Known incomplete work to be tackled in future:

[ ] Update information logged to console after a successful deployment with base url of deployed routes/apis.

LGTM 👍


Output internal 'key' if no SPDX ID (for pseudo licenses)

I prefer #297 to this, but making this PR to illustrate the alternative.
Fixes #296

Closing in favor of #297


i2c + MMA7455L - Input/Output ERROR

Hi, I have a problem related to the i2c. My application needs to take acceleration from a MMA7455L. So, first, I need to configure the sensor writing in the register 0x16. But i'm receiving a I/O error. Can someone help me?
Module: NodeMCU V1.0 || ESP-12E
Sensor: MMA7455L
Code:
#include "i2c/i2c.h"

#define SCL (0)
#define SDA (2)

void configure();

void user_init()
{
    gpio_enable(BT, GPIO_INPUT);
    uart_set_baud(0, 115200);
    printf("SDK version:%s\n\n", sdk_system_get_sdk_version());
    i2c_init(SCL, SDA);
    configure();
}

void configure(){
    uint8_t addr = 0x1D;
    const uint8_t reg = 0x16;
    const uint8_t cmd = 0x01;

    int error = i2c_slave_write(addr, &reg, &cmd, 1);
    if(error!=0){
        printf("ERROR\n");
        if(error == -EBUSY){
            printf("Device Busy!\n");
        }
        if(error == -EIO){
            printf("Input/Output Error!\n");
        }
    }
}

Unfortunately, I've had some sketchy behavior with I2c. Double and triple check your connections and pull-ups, and consider modifying the i2c bit delay to slow down communications.
A logic analyzer (or DSO or maybe even analog scope) would go a long ways toward debugging this.

I would also suggest changing pullups to 4.7kOhm and maybe trying a lower frequency (if you are using 400k)

@andrewclink, I used another code(Arduino) with the same connections that I have now and the applicantion worked. So, I think that the connections are right . I will try to change the delay, but how can I do this? Thank you for your help.

@resetnow how can I change the pullups and the frequency? Thank you for help!

how can I change the pullups

If you haven't already, you need to physically connect resistors to I2C lines (if your board doesn't have them already).

how can I change the pullups and the frequency

Currently there is a line of code that ended up in the repo by accident. You can remove #define I2C_FREQUENCY_400K from i2c.h

@resetnow I tried to remove the I2C_FREQUENCY_400K, but nothing happened. However, I know that the frequency of the device is 100K.
I will try to connect the resistors, but as i said before, with another code(Arduino) the configuration works.
Anyway, thank you very much for your help.


It does not work!

Hi @vincent-chan-hk . Thanks for reporting this issue. Are you able to log in as a user from the tenant where the app is registered?

I cannot. It seems that Microsoft updated a new standard and your code did
not keep it updated.
2017年1月4日 07:30 於 "DianeD"<EMAIL_ADDRESS>寫道：

Hi @vincent-chan-hk https://github.com/vincent-chan-hk . Thanks for
reporting this issue. Are you able to log in as a user from the tenant
where the app is registered?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoftgraph/angular2-connect-rest-sample/issues/8#issuecomment-270249931,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQF6qxUJaSaffdom0Wp8k63PWlAoZljYks5rOtKSgaJpZM4LX9uo
.

What behavior are you seeing? Are you prompted to consent? Do you get an error on the page or in the address bar?
I was able to log in and run the sample with a few users from my tenant. For one of the users, I did have to click the Connect button twice before the sample loaded correctly.

No consent! I click without any response in my Chrome. Anyway, if you can
log in successfully, your code should be fine but you are using ADSL.js.
How you rate between your method and Kurve.js? Thanks!
On 4 January 2017 at 09:01, DianeD<EMAIL_ADDRESS>wrote:

What behavior are you seeing? Are you prompted to consent? Do you get an
error on the page or in the address bar?
I was able to log in and run the sample with a few users from my tenant.
For one of the users, I did have to click the Connect button twice before
the sample loaded correctly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoftgraph/angular2-connect-rest-sample/issues/8#issuecomment-270269406,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQF6q_iTR-L0DVIZvpRn1kKaLEV8q2O3ks5rOu94gaJpZM4LX9uo
.

Hi Vincent. I haven't tried Kurve.js. In general, we try to stick with supported or compatible libraries for the samples.
You might try asking about it on stackoverflow (tagged with [microsoftgraph]).

Hi Diane,
Thank you very much! Happy New Year! :)
Vincent
On 5 January 2017 at 08:54, DianeD<EMAIL_ADDRESS>wrote:

Hi Vincent. I haven't tried Kurve.js. In general, we try to stick with supported
or compatible libraries
https://docs.microsoft.com/en-us/azure/active-directory/active-directory-v2-libraries
for the samples.
You might try asking about it on stackoverflow
https://stackoverflow.com/questions/tagged/microsoftgraph (tagged with
[microsoftgraph]).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoftgraph/angular2-connect-rest-sample/issues/8#issuecomment-270531681,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQF6q0kQR_040DF7ERoM2xDFJ7FnG1xwks5rPD8wgaJpZM4LX9uo
.

Thanks Vincent :)


fix: attribute.defaultValue should be set when init attributes

when loading attributes from information_schema, the attribute.defaultValue should be set as well to be compliant with the validation change introduced by https://github.com/cyjake/leoric/pull/262/files

Codecov Report

Merging #271 (8d1b698) into master (0aaaf41) will decrease coverage by 0.02%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master     #271      +/-   ##
==========================================
- Coverage   97.49%   97.46%   -0.03%
==========================================
  Files          44       44
  Lines        3188     3192       +4
==========================================
+ Hits         3108     3111       +3
- Misses         80       81       +1

Impacted Files
Coverage Δ

src/bone.js
97.98% <ø> (ø)

src/drivers/sqlite/schema.js
98.00% <50.00%> (-0.99%)
:arrow_down:

src/drivers/postgres/schema.js
100.00% <100.00%> (ø)

src/realm.js
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

the line that misses test coverage is a debug output at rare cases in sqlite driver, ignored for now


triangulate is really slow (because of jax.numpy.linalg.svd)

I found it was about 10X faster to move to CPU and use the opencv triangulation method. The output is exactly the same...
def opencv_triangulate(Ps, ys, camera_pairs=[]):
    C = len(Ps)
    batch_shape = ys.shape[1:-1]
    if not camera_pairs:
        camera_pairs = [(i,j) for i in range(C) for j in range(i+1, C)]
    Xs = jnp.empty((len(camera_pairs), *batch_shape, 3))
    for i, (c0, c1) in enumerate(camera_pairs):
        Xs = Xs.at[i].set(opencv_triangulate_dlt(Ps[(c0,c1),:,:], ys[(c0,c1),...]))
    return jnp.median(Xs, axis=0)

def opencv_triangulate_dlt(Ps, ys):
    batch_shape = ys.shape[1:-1]
    Ps = np.array(Ps)
    ys = np.array(ys).reshape(2,-1,2)
    X_hom = cv2.triangulatePoints(Ps[0],Ps[1],ys[0].T,ys[1].T)
    X = (X_hom[:3] / X_hom[3]).T.reshape(*batch_shape,3)
    return jnp.array(X)

print('Observations shape:', ys.shape)

t = time.time()
X1 = opencv_triangulate(Ps, ys, camera_pairs=[])
print('Runtime with opencv:', time.time()-t)

t = time.time()
X2 = gimbal.util.triangulate(Ps, ys, camera_pairs=[]).block_until_ready()
print('Runtime with jax:', time.time()-t)

print('Mean squared difference of output:', jnp.nanmean((X1-X2)**2))

Output is
Observations shape: (6, 5000, 23, 2)
Runtime with opencv: 6.574772834777832
Runtime with jax: 68.68624544143677
Mean squared difference of output: 9.889472634621758e-23

See #4


start-iap-tunnel api for node.js

Hi Team,
I am trying to use IAP for TCP forwarding ref: ( https://cloud.google.com/iap/docs/using-tcp-forwarding#tunneling_other_tcp_connections )
But i am not able to find nodejs api for start-iap-tunnel
Please help me regarding the same.

Hello! We are migrating this repo over to google-cloud-node. If this is still a concern for you, we ask you kindly reopen the issue there. Thank you very much!


Deploy Site on Vercel

Objective:
Deploy the project on the Vercel platform to make the website accessible to users and stakeholders.
Description:
This issue focuses on deploying the project to Vercel, a cloud platform for hosting and deploying web applications. Deployment on Vercel ensures that the website is publicly accessible, allowing users and stakeholders to interact with the latest version of the project.
Prerequisites:

The project is ready for deployment.
Access to the Vercel platform.
Necessary environment configurations for deployment.

Tasks:

Set up a new project on the Vercel platform.
Configure deployment settings, including environment variables if required.
Deploy the project to Vercel using the appropriate deployment commands.
Verify the deployment status and ensure the website is accessible.
Handle any issues that may arise during the deployment process.

Acceptance Criteria:

The project is successfully deployed on the Vercel platform.
The deployed website is accessible via the provided Vercel URL.
Environment configurations are accurately applied during deployment.
Any deployment-related issues are identified and resolved.

Project deployed on vercel, https://your-le-jardin.vercel.app/


MD Editor - Use home container

Updated to use home container to store datas instead of using _public container

r? @ustulation
(maidsafe_highfive has picked a reviewer for you, use r? to override)


Address inconsistencies in comments, naming, casing, etc.. Part 3

Throughout the code base there are inconsistencies in various aspects of the comments, naming, casing, etc.
As a developer/user, I want consistent comments, naming, casing, etc. so that when I read the code, or see output it is consistent from one interaction to the next.
In the `Modules/BenchPress.Azure/:

[x] Update file encoding to UTF-8 w/BOM
[ ] Ensure all code comments have complete sentences with correct punctuation.

Acceptance Critera

[ ] Thoroughly go through the code base to find any inconsistencies
[ ] Correct the inconsistencies

[ ] Add PropertyType and PropertyKey to descriptions in Confirm-AzBPResource examples

I will be closing this issue and moving the action items into existing issues to better align with the outstanding PRs. Hopefully this will make it easier to track which PR is applying what changes.
"Update file encoding" has been moved to both #285 and #245.
"Ensure all code comments have complete sentences and correct punctuation" has been moved to #285.
"Add PropertyType and PropertyKey to descriptions in Confirm-AzBPResource examples" has been moved to #245.
If there are more inconsistencies, please add to #285 and/or #245.


Admin Teleport Problem

I got PermissionsEX. When somebody with the '*' permissions note teleports to a different world (by command of by portal), the server starts lagging and it takes a while befor he starts to teleport. When normal players teleport, all is normal.
Sry for my bad english :D

A recent issue (#222) determined this to be an issue in PEX, whereby it recomputes permissions when moving a player between worlds. As such, assigning the * permission tends to lag the server a bit, since recalculating all children of * is (usually) difficult. It's reported to be resolved in PEX dev builds - grab one of those.


ISPN-16795 NullPointerException when gauges is set to false

https://issues.redhat.com/browse/ISPN-16795

@pruivo Seems it needs a rebase


Getting Started Issues

I want to build a cli from my company's api and I'm trying to get started with the openapi-cli-generator https://github.com/danielgtaylor/openapi-cli-generator but I'm running into some different errors.
I took the petstore demo api https://petstore.swagger.io/v2/swagger.json removed the top of the file comments and converted it to yaml using https://www.json2yaml.com/ then following the steps on the openapi-cli-generator github page, I run openapi-cli-generator generate petstore.yaml
and I get this type of error: Failed to resolve '#/definitions/Pet' in fragment in URI: 'definitions': Struct field not found: definitions which is complaining about lines like schema: "$ref": "#/definitions/Pet" in the yaml file. I tried replacing the $ref values with '' ex "$ref":"" and now I can run openapi-cli-generator generate petstore.yaml Was relacing the ref values with empty string the right thing to do? What is the nature of the problem.
Next, the git hub instructions say to add a line like openapiRegister(false) what is this supposed to do exactly? What does it mean to register a command? Are these the commands that will be part of the cli? What does the syntax look like? The github page doesn't give any examples
Is there supposed to be a one cli command per api call in the generated cli?
petstore-cli PetstoreFindPetsByStatus --help - unknown command "PetstoreFindPetsByStatus" for "petstore-cli.exe" (I need to register the command that I want?)

ad 1.: Use OpenAPI version 3.0: https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
ad 2.:
The function openapiRegister is created by the openapi-cli-generator generate subcommand. It's named after the name of the YAML file (here: "openapi.yaml" hence "openapiRegister"). This function kind of activates the API for use in the resulting CLI tool.


Logging to GKE fails to set container_name label

I am finding that when I log in GKE using option 1 (https://cloud.google.com/logging/docs/integrate/dotnet) the resource.label.container_name field is empty.  This seems odd especially given that the pod_name, cluster_name and location are present. In other logging frameworks by Google such as the Python and Java one's the conatiner_name is set. This is causing issues with log analysis since we cannot properly query for a specific container. Is there a reason why this label is not set?
Below is a very small example of how I am adding the logger.
using Google.Cloud.Diagnostics.AspNetCore;
...
loggerFactory.AddGoogle(app.ApplicationServices, "project-name");

Yes we know about this and we are tracking here https://github.com/googleapis/gax-dotnet/issues/432. I'll close this one now but feel free to follow the one I've linked. Thanks


connection setup failed

Describe the bug
the times i receive the error "connection setup failed" but the configs is right when i try connect in outlook using OAuth2.0, but no is always that this do, i using the version 4 of the webklex
Used config
$cm = new \Webklex\PHPIMAP\ClientManager();
$imapClient = $cm->make([
'host'  => "outlook.office365.com",
'port'  => 993,
'protocol'  => 'imap',
'encryption'    => "ssl",
'validate_cert' => false,
'username' =><EMAIL_ADDRESS>'password' => "mytokenoauth",
'authentication' => 'oauth',
'proxy' => [
'socket' => null,
'request_fulluri' => false,
'username' => null,
'password' => null,
],
"timeout" => 30,
"extensions" => []
]);
Desktop / Server (please complete the following information):

OS: Ubuntu 18.04
PHP: "php": ">=7.0.0"
Version "webklex/laravel-imap": "^4.0"
Provider Outlook

Hi @wawa67 @nitin-usualsmart ,
many thanks for your reports. Unfortunately this can have many different causes.
Here are some things you can try:

Enable the debug mode (https://github.com/Webklex/php-imap/blob/master/src/config/imap.php#L152) this will dump the imap server communication and might provide some additional insight.
Outlook / Azure has some unique challenges. You have to tick the correct boxes and set the right scopes. It's easy to forget something somewhere.
Checkout these issues: https://github.com/Webklex/php-imap/issues?q=+outlook+oauth there are a lot of people who shared how they've solved their issue.

If the issue persists, please share some additional information - perhaps someone spots the issue and is able to help or chip in their ideas.
Best regards and happy coding,


How to use vue-i18n-loader with vue-loader 15?

With vue-loader 14, my Webpack 4 config has the following block:
{
  test: /\.vue$/,
  loader: 'vue-loader',
  options: {
    loaders: {
      i18n: '@kazupon/vue-i18n-loader'
    }
  }
},

After upgrading to the release candidate of vue-loader 15, none of my translations work, vue-i18n doesn't load any translation from <i18n> blocks within the .vue files.
Is this a known limitation or do I have to change anything in the Webpack 4 config? For vue-loader 15, I had to add new VueLoaderPlugin(), in the plugins section after adding const { VueLoaderPlugin } = require('vue-loader')

You can add following rule in your webpack.conf.js:
{
  module: {
    rules: [
      {
        resourceQuery: /\bblockType=i18n\b/,
        loader: '@kazupon/vue-i18n-loader'
      }
      //, Other rules
    ]
  }
}

Any idea how to then make it work with Webpack 4 which throws Module parse failed: Unexpected token i in JSON at position 0? With vue-loader 14, the hint from https://github.com/kazupon/vue-i18n-loader/issues/13 helped, but using your snippet from above no longers does the trick.

I am using Webpack 4.6.0 without json-loader, and it works fine for me.

Are you using it with JSON files? As in <i18n src="locale.en.json"/>?

Follow-up: It works if I rename the files to *.loca. Any idea how to make it work with *.json?

{
  resourceQuery: /\bblockType=i18n\b/,
  loader: '@kazupon/vue-i18n-loader',
  type: 'javascript/auto'
}

This works. 👍

No, I was using i18n custom block like this, not with JSON files:
<i18n>
{
  "en": {
    "hello": "hello world!"
  },
  "ja": {
    "hello": "こんにちは、世界！"
  }
}
</i18n>

The documentation of vue-loader suggests to use resourceQuery: /blockType=i18n/. Why do you use resourceQuery: /\bblockType=i18n\b/? I.e. what does the \b do?

I still couldn't get vue@2, vue-loader@15, vue-i18n, vue-i18n-loader and webpack@4 work together in single-file-components. I created a very minimal bare-bones repository here: https://github.com/mekeor/webpack4-vue2-vueLoader15-vueI18n-vueI18nLoader-singleFileComponent
I'm gettings this error:

@Lanfei Would you mind telling me what I'm doing wrong? You seem to have working exactly what I'm trying to achieve.

The workaround has a heavy performance impact on compilation. I also can not exclude node_modules folder (vue-loader complains it can not find it's own folder for some reason).
Please make fixing this a priority, I'll see if I can contribute. Can't we use the generic i18n-loader and take the working parts and insert into vue?

@mekeor Sorry that I was on a trip in the past week, have you solved your problem?

Yes, I solved my problem (– by moving away from vue-i18n, sorry –) but thank you :)

@mekeor Where did you move? Just using the regular webpack i18n loader? I'm using the workaround and it works fine more or less.

My project is tiny, so I just wrote my own few lines of code for that little internationalization I need. :woman_shrugging:

Ah well, I work with many other programmers on the vue components, so we really need this thing to work. But yeah, the workarond is ok, the performance impact is not bad if you set json-loader to use only your .json files in your specific i18n .json file folder.


All image elements have alt attrributes

add alt attributes to images

Added the alt attribute but when I checked the website they don't work, so I'll have to go back to this.

The alt attribute is working as should.


[2171] improvement(remote merge): remove cached block for partition.

What changes were proposed in this pull request?
remove cached block for partition.
Why are the changes needed?
Fix: #2171
Does this PR introduce any user-facing change?
No.
How was this patch tested?
unit test, integration test.

Oh, dear! Sorry for missing # before 2171.


Bump org.scalatest:scalatest_2.12 from 3.1.1 to 3.2.18

Replace #12867

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 0.00%. Comparing base (59551e4) to head (48a5baa).
Report is 266 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #12879       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436     2422       -14
  Lines        133233   132710      -523
  Branches      20636    20543       -93
=============================================
- Hits          82274        0    -82274
- Misses        44911   132710    +87799
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
0.00% <ø> (-61.75%)
:arrow_down:

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Our element-desktop is not built with encrypted chat search support

Describe the bug

Open Riot-Desktop
Settings -> Security & Privacy

Under the "Message search" heading, observe:

Riot is missing some components required for securely caching encrypted messages locally. If you'd like to experiment with this feature, build a custom Riot Desktop with search components added.

it links to here: https://github.com/vector-im/riot-web/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms
Notify maintainers
cc: @pacien @worldofpeace
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.6.12, NixOS, 20.09pre-git (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.4`
 - nixpkgs: `/home/cole/code/nixpkgs/cmpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: riot-desktop

Would be fantastic to have riot-desktop built with seshat. I tried building it myself but couldn't do it. :cry:

Just stumbled across this myself. What's the current state on this? What needs to be done before this can be fixed?

So, element seems to use its own build system hak to build these native dependencies. It tries to download and build those itself with cargo and stuff. Seems quite complicated to package.

I would like to add that support for desktop notifications would be also appreciated. (They showed up on Arch's version, at least)

I would like to add that support for desktop notifications would be also appreciated. (They showed up on Arch's version, at least)

I made some progress. This solves the issue of downloading the hakDependencies. Unfortunately they are not locked in any way, so we need to lock them at packaging-time (is that even a term?) by adding them to yarn.lock and yarn.nix. Since yarn2nix always runs yarn with --ignore-scripts, we can safely ignore the upstream reasoning for fetching them outside of yarn dependencies.
I'm now at the point where it tries to build seshat in the element-desktop derivation, but unfortunately they don't provide a Cargo lockfile. I'm working on resolving this problem upstream:
https://github.com/matrix-org/seshat/pull/79
diff --git a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
index 332563476d1..c73000234e4 100644
--- a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
+++ b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
@@ -1,6 +1,7 @@
 { lib, stdenv, fetchFromGitHub
 , makeWrapper, makeDesktopItem, mkYarnPackage
 , electron, element-web
+, python
 }:
 # Notes for maintainers:
 # * versions of `element-web` and `element-desktop` should be kept in sync.
@@ -20,9 +21,31 @@ in mkYarnPackage rec {
   inherit version src;

   packageJSON = ./element-desktop-package.json;
+  yarnLock = ./element-desktop-yarndeps.lock;
   yarnNix = ./element-desktop-yarndeps.nix;

-  nativeBuildInputs = [ makeWrapper ];
+  nativeBuildInputs = [ makeWrapper python ];
+
+  postConfigure = ''
+    rm deps/element-desktop/node_modules
+    cp -R "$node_modules" deps/element-desktop
+    chmod -R u+w deps/element-desktop
+  '';
+
+  preBuild = ''
+    (
+      cd deps/element-desktop
+      mkdir -p .hak/matrix-seshat
+      ln -s $PWD/node_modules/matrix-seshat .hak/matrix-seshat/build
+      mkdir -p .hak/keytar
+      ln -s $PWD/node_modules/keytar .hak/keytar/build
+      node scripts/hak/index.js check
+      node scripts/hak/index.js build
+    )
+  '';

   installPhase = ''
     # resources
diff --git a/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh b/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh
index 69d0d3d7072..4638997fc9b 100755
--- a/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh
+++ b/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh
@@ -1,5 +1,5 @@
 #!/usr/bin/env nix-shell
-#!nix-shell -I nixpkgs=../../../../../ -i bash -p wget yarn2nix
+#!nix-shell -I nixpkgs=../../../../../ -i bash -p curl wget yarn2nix

 set -euo pipefail

@@ -11,7 +11,28 @@ fi

 RIOT_WEB_SRC="https://raw.githubusercontent.com/vector-im/element-desktop/$1"

-wget "$RIOT_WEB_SRC/package.json" -O element-desktop-package.json
-wget "$RIOT_WEB_SRC/yarn.lock" -O element-desktop-yarndeps.lock
+# Here we deal with the so-called hakDependencies. They are not part of yarn.lock.
+# Upstream doesn't add them to the dependencies field, because they want to prevent
+# the install scripts to be run by npm/yarn. Fortunately, yarn2nix doesn't run
+# install scripts by default, so it's okay to add them to the dependencies for us.
+# For more information, read the description at
+# https://github.com/vector-im/element-desktop/tree/v1.7.17/scripts/hak
+
+TMPDIR="$(mktemp -d)"
+trap "rmrf ''${TMPDIR};" EXIT
+
+pushd "$TMPDIR"
+
+curl "$RIOT_WEB_SRC/package.json" \
+       | jq '. + { dependencies: (.dependencies + .hakDependencies) }' \

I made some progress. This solves the issue of downloading the hakDependencies. Unfortunately they are not locked in any way, so we need to lock them at packaging-time (is that even a term?) by adding them to yarn.lock and yarn.nix. Since yarn2nix always runs yarn with --ignore-scripts, we can safely ignore the upstream reasoning for fetching them outside of yarn dependencies.
I'm now at the point where it tries to build seshat in the element-desktop derivation, but unfortunately they don't provide a Cargo lockfile. I'm working on resolving this problem upstream:
https://github.com/matrix-org/seshat/pull/79
diff --git a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
index 332563476d1..c73000234e4 100644
--- a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
+++ b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
@@ -1,6 +1,7 @@
 { lib, stdenv, fetchFromGitHub
 , makeWrapper, makeDesktopItem, mkYarnPackage
 , electron, element-web
+, python
 }:
 # Notes for maintainers:
 # * versions of `element-web` and `element-desktop` should be kept in sync.
@@ -20,9 +21,31 @@ in mkYarnPackage rec {
   inherit version src;

   packageJSON = ./element-desktop-package.json;
+  yarnLock = ./element-desktop-yarndeps.lock;
   yarnNix = ./element-desktop-yarndeps.nix;

-  nativeBuildInputs = [ makeWrapper ];
+  nativeBuildInputs = [ makeWrapper python ];
+
+  postConfigure = ''
+    rm deps/element-desktop/node_modules
+    cp -R "$node_modules" deps/element-desktop
+    chmod -R u+w deps/element-desktop
+  '';
+
+  preBuild = ''
+    (
+      cd deps/element-desktop
+      mkdir -p .hak/matrix-seshat
+      ln -s $PWD/node_modules/matrix-seshat .hak/matrix-seshat/build
+      mkdir -p .hak/keytar
+      ln -s $PWD/node_modules/keytar .hak/keytar/build
+      node scripts/hak/index.js check
+      node scripts/hak/index.js build
+    )
+  '';

   installPhase = ''
     # resources
diff --git a/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh b/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh
index 69d0d3d7072..4638997fc9b 100755
--- a/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh
+++ b/pkgs/applications/networking/instant-messengers/element/update-element-desktop.sh
@@ -1,5 +1,5 @@
 #!/usr/bin/env nix-shell
-#!nix-shell -I nixpkgs=../../../../../ -i bash -p wget yarn2nix
+#!nix-shell -I nixpkgs=../../../../../ -i bash -p curl wget yarn2nix

 set -euo pipefail

@@ -11,7 +11,28 @@ fi

 RIOT_WEB_SRC="https://raw.githubusercontent.com/vector-im/element-desktop/$1"

-wget "$RIOT_WEB_SRC/package.json" -O element-desktop-package.json
-wget "$RIOT_WEB_SRC/yarn.lock" -O element-desktop-yarndeps.lock
+# Here we deal with the so-called hakDependencies. They are not part of yarn.lock.
+# Upstream doesn't add them to the dependencies field, because they want to prevent
+# the install scripts to be run by npm/yarn. Fortunately, yarn2nix doesn't run
+# install scripts by default, so it's okay to add them to the dependencies for us.
+# For more information, read the description at
+# https://github.com/vector-im/element-desktop/tree/v1.7.17/scripts/hak
+
+TMPDIR="$(mktemp -d)"
+trap "rmrf ''${TMPDIR};" EXIT
+
+pushd "$TMPDIR"
+
+curl "$RIOT_WEB_SRC/package.json" \
+       | jq '. + { dependencies: (.dependencies + .hakDependencies) }' \

It turns out to be much more complicated, because the cargo build of seshat-node-native calls npm install, so we have multiple layers of npm calling yarn calling cargo calling npm. It's a huge shitshow.

Is there anything we could do to help fix building element-desktop with encrypted chat search working on NixOS?

I poured some (many) more hours into this today. I can build the two native modules, matrix-seshat and keytar, both in a seperate derivation and as part of the element-desktop build. However, I can not build them correctly against electron's node lib, so when starting the compiled thing, it refuses to load the module. Attempting to build against electron gives this mystic error:

   Compiling notify v4.0.15
   Compiling r2d2 v0.8.9
   Compiling hkdf v0.10.0
   Compiling aes-ctr v0.6.0
   Compiling tempfile v3.2.0
   Compiling r2d2_sqlite v0.17.0
   Compiling pbkdf2 v0.6.0
   Compiling futures-macro v0.3.12
   Compiling thiserror-impl v1.0.23
   Compiling failure v0.1.8
   Compiling futures-util v0.3.12
The following warnings were emitted during compilation:

warning: ar: /build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native/build/Release/obj.target/neon/src/neon.o: No such file or directory

error: failed to run custom build command for `neon-sys v0.4.0`

Caused by:
  process didn't exit successfully: `/build/source/seshat-node/native/target/release/build/neon-sys-564e91a635bdfcb5/build-script-build` (exit code: 1)
  --- stdout
  Skipping node-gyp installation as part of npm install.

  > @ build-release /build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native
  > node-gyp build

  make: Entering directory '/build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native/build'
    CXX(target) Release/obj.target/neon/src/neon.o
  make: Leaving directory '/build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native/build'
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  AR_x86_64-unknown-linux-gnu = None
  AR_x86_64_unknown_linux_gnu = None
  HOST_AR = None
  AR = Some("ar")
  running: "ar" "cq" "/build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/libneon.a" "/build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native/build/Release/obj.target/neon/src/neon.o"
  cargo:warning=ar: /build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native/build/Release/obj.target/neon/src/neon.o: No such file or directory
  exit code: 1

  --- stderr
  In file included from /build/source/seshat-node/.electron-gyp/13.0.1/include/node/node.h:67,
                   from ../../../../../../../../node_modules/nan/nan.h:56,
                   from ../src/neon.cc:2:
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/v8.h:1670:79: warning: 'using ResolveCallback = class v8::MaybeLocal<v8::Module> (*)(class v8::Local<v8::Context>, class v8::Local<v8::String>, class v8::Local<v8::Module>)' is deprecated: Use ResolveModuleCallback [-Wdeprecated-declarations]
   1670 |                                                       ResolveCallback callback);
        |                                                                               ^
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/v8.h:1652:9: note: declared here
   1652 |   using ResolveCallback V8_DEPRECATE_SOON("Use ResolveModuleCallback") =
        |         ^~~~~~~~~~~~~~~
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/v8.h:8652:51: warning: 'using HostImportModuleDynamicallyCallback = class v8::MaybeLocal<v8::Promise> (*)(class v8::Local<v8::Context>, class v8::Local<v8::ScriptOrModule>, class v8::Local<v8::String>)' is deprecated: Use HostImportModuleDynamicallyWithImportAssertionsCallback instead [-Wdeprecated-declarations]
   8652 |       HostImportModuleDynamicallyCallback callback);
        |                                                   ^
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/v8.h:7291:7: note: declared here
   7291 | using HostImportModuleDynamicallyCallback V8_DEPRECATE_SOON(
        |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from ../src/neon.cc:2:
  ../../../../../../../../node_modules/nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
  ../../../../../../../../node_modules/nan/nan.h:2294:7: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
   2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
        |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from ../src/neon.cc:10:
  ../src/neon_task.h: In member function 'void neon::Task::complete()':
  ../src/neon_task.h:62:70: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     62 |     node::MakeCallback(isolate_, context->Global(), callback, 2, argv);
        |                                                                      ^
  In file included from ../../../../../../../../node_modules/nan/nan.h:56,
                   from ../src/neon.cc:2:
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/node.h:192:50: note: declared here
    192 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
        |                                                  ^~~~~~~~~~~~
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/node.h:108:42: note: in definition of macro 'NODE_DEPRECATED'
    108 |     __attribute__((deprecated(message))) declarator
        |                                          ^~~~~~~~~~
  In file included from ../src/neon.cc:10:
  ../src/neon_task.h: In function 'void neon::queue_task(neon::Task*)':
  ../src/neon_task.h:98:17: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
     98 |                 (uv_after_work_cb)complete_task);
        |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../src/neon.cc: In function 'size_t Neon_ArrayBuffer_Data(void**, v8::Local<v8::ArrayBuffer>)':
  ../src/neon.cc:217:20: error: 'Contents' is not a member of 'v8::ArrayBuffer'
    217 |   v8::ArrayBuffer::Contents contents = buffer->GetContents();
        |                    ^~~~~~~~
  ../src/neon.cc:218:15: error: 'contents' was not declared in this scope
    218 |   *base_out = contents.Data();
        |               ^~~~~~~~
  ../src/neon.cc: In function 'void Neon_Class_SetClassMap(v8::Isolate*, void*, Neon_DropCallback)':
  ../src/neon.cc:329:41: warning: 'void node::AtExit(void (*)(void*), void*)' is deprecated: Use the three-argument variant of AtExit() or AddEnvironmentCleanupHook() [-Wdeprecated-declarations]
    329 |   node::AtExit(cleanup_class_map, holder);
        |                                         ^
  In file included from ../../../../../../../../node_modules/nan/nan.h:56,
                   from ../src/neon.cc:2:
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/node.h:866:22: note: declared here
    866 |     NODE_EXTERN void AtExit(void (*cb)(void* arg), void* arg = nullptr));
        |                      ^~~~~~
  /build/source/seshat-node/.electron-gyp/13.0.1/include/node/node.h:108:42: note: in definition of macro 'NODE_DEPRECATED'
    108 |     __attribute__((deprecated(message))) declarator
        |                                          ^~~~~~~~~~
  In file included from ../src/neon.cc:8:
  ../src/neon_string.h: In member function 'v8::Local<v8::String> neon::Slice::ToJsString(v8::Isolate*, const char*)':
  ../src/neon_string.h:28:18: warning: ignoring return value of 'bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const [with S = v8::String; T = v8::String]' declared with attribute 'warn_unused_result' [-Wunused-result]
     28 |     maybe.ToLocal(&result);
        |     ~~~~~~~~~~~~~^~~~~~~~~
  make: *** [neon.target.mk:113: Release/obj.target/neon/src/neon.o] Error 1
  gyp ERR! build error
  gyp ERR! stack Error: `make` failed with exit code: 2
  gyp ERR! stack     at ChildProcess.onExit (/nix/store/009815w1n26nl10rgffgahk7aka80p1m-nodejs-14.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
  gyp ERR! stack     at ChildProcess.emit (events.js:376:20)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
  gyp ERR! System Linux 5.11.21
  gyp ERR! command "/nix/store/009815w1n26nl10rgffgahk7aka80p1m-nodejs-14.17.0/bin/node" "/nix/store/009815w1n26nl10rgffgahk7aka80p1m-nodejs-14.17.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
  gyp ERR! cwd /build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native
  gyp ERR! node -v v14.17.0
  gyp ERR! node-gyp -v v5.1.0
  gyp ERR! not ok
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! @ build-release: `node-gyp build`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the @ build-release script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  npm ERR! A complete log of this run can be found in:
  npm ERR!     /tmp/.npm/_logs/2021-05-29T21_41_18_532Z-debug.log

  error occurred: Command "ar" "cq" "/build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/libneon.a" "/build/source/seshat-node/native/target/release/build/neon-sys-f7ab2e53f2e370fb/out/native/build/Release/obj.target/neon/src/neon.o" with args "ar" did not execute successfully (status code exit code: 1).

warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:

warning: ar: /build/source/seshat-node/native/target/release/build/neon-sys-400bc8aadcaf0046/out/native/build/Release/obj.target/neon/src/neon.o: No such file or directory

error: build failed
neon ERR! cargo build failed

Error: cargo build failed
    at Target.<anonymous> (/build/source/seshat-node/node_modules/neon-cli/lib/target.js:121:35)
    at step (/build/source/seshat-node/node_modules/neon-cli/lib/target.js:32:23)
    at Object.next (/build/source/seshat-node/node_modules/neon-cli/lib/target.js:13:53)
    at fulfilled (/build/source/seshat-node/node_modules/neon-cli/lib/target.js:4:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
builder for '/nix/store/vs8qn1fzq0cbh5830pci0mxr8fiqdx89-seshat-node-2.2.4.drv' failed with exit code 1
error: build of '/nix/store/vs8qn1fzq0cbh5830pci0mxr8fiqdx89-seshat-node-2.2.4.drv' on<EMAIL_ADDRESS>failed: builder for '/nix/store/vs8qn1fzq0cbh5830pci0mxr8fiqdx89-seshat-node-2.2.4.drv' failed with exit code 1
builder for '/nix/store/vs8qn1fzq0cbh5830pci0mxr8fiqdx89-seshat-node-2.2.4.drv' failed with exit code 1
error: build of '/nix/store/vs8qn1fzq0cbh5830pci0mxr8fiqdx89-seshat-node-2.2.4.drv' failed

Is there anything we could do to help fix building element-desktop with encrypted chat search working on NixOS?

If you can find a fix for the error described in the last post, there shouldn't be much work left.

I think I found the solution to that error: Upstream is using Electron 12.x while we are using Electron 13.x.

PR incoming :sparkles:


Remove unnecessary indirection in Chunk.operation

Minor follow-up to https://github.com/dask-contrib/dask-expr/pull/324

thx @rjzamora


force user to use the valid schema

Is your feature request related to a problem? Please describe.
Yes.
When I use the invalid schema(https, http) with explicit port in uri
//dev config, host=domain:port

String url = String.format("http://%s/%s", host, "websocket");

ws = new WebSocketClient(new URI(url))

MayBe, I can't find the potential the problem, because it can run without exception.
But, it will failed when we omit the port in uri. and It will throw an exception:"unkown schema http"
// prod config, host=domain

String url = String.format("http://%s/%s", host, "websocket");

ws = new WebSocketClient(new URI(url)) `

I'm alway frustrated when run failed only with different config in prod environment.
I think we should allow user to find the potential problem during development.
Describe the solution you'd like
always check the schema and throw exception on invalid schema,  regardless whether the port is explicit set(no matter uri.getPort() == -1).

@yindex thx for creating the issue.


CTRL-Y doesn't work inside VIM/Linux

OS version and name:  Fedora 25
Hyper.app version: 1.1.0
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/dmitry-saritasa/9fc435adf8eecda554ab813c39c2dc0d

Issue
When I copy text in the browser and try to insert it inside vim (inside hyper) - no paste happens (Ctrl-Y)
how to solve?

just for reference. works for me on mac.
OS version and name: 10.10.2
Hyper.app version: 1.1.0
Does someone have Fedora in order to debug this ?

same here:
https://github.com/zeit/hyper/issues/1069
https://github.com/zeit/hyper/issues/1132
the problem is that hyper uses ctrl+ keys, on osx it uses cmd+ so, no problems on osx.
But on windows and linux it isn't usable when it blocks the normal shortcuts.
i hoped in 1.2.0 its getting fixed, but... no it is not.

I been used CTRL-a as prefix for tmux, however in a Hyper terminal CTRL-a selects all text. This simple issue is stopping me from use Hyper as my every-day terminal app.

True, i want to use hyper but all the ctrl + keys issues makes me sad and i have to constantly use another term :/

are you always only mapping ctrl+ singlekey or do people use ctrl + manykey mappings when changing tmux keybindings.

close in #1876


Change Snapshot signature to match simulator.snapshot (#2592)

Summary
This updates the pulse.commands.snapshot.Snapshot class to make its signature align with the signature of extensions.simulator.snapshot.Snapshot (#2592)
Details and comments

Param name change: name -> label
Param name change: snap_type -> snapshot_type
Make snapshot_type optional with default value of 'statevector'
New optional param 'name' which defaults to the value of label

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@taalexander Thanks for the review - the requested changes have been made.

The contribution guidelines say that you should add a line to a file named CHANGELOG.rst.  Looks like the file is now CHANGELOG.md - is this something I should do for this PR?

Hello @chowington, I believe a new set of tests that were added are now causing an issue with your PR. Could you update it, please and thank you?

@taalexander Done 👍

Thank you very much for your contribution @chowington!


Manage connections from Setup Connection Screen

Issue Type

[x] Feature Request
[ ] Bugfix/Errors
[ ] Questions
[ ] Other

Description
I would like to change/update/add connections from Setup Connection screen.

Is there no way to edit/delete a connection right now? If so then then the edit/delete buttons could be added to the sql connection sidebar next to each connection.

Where are the connections stored right now? I noticed that even when I uninstall the extension and then reinstall it the previous incorrect connections are still there. Are they stored in a file somewhere in the file system?

It's not released yet.
Next week you will be able to remove it using the right click menu over a connection
Matheus Teixeira
On Mar 1 2019, at 12:57 pm, Brandon<EMAIL_ADDRESS>wrote:

Where are the connections stored right now? I noticed that even when I uninstall the extension and then reinstall it the previous incorrect connections are still there. Are they stored in a file somewhere in the file system?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/2826CADA-5C8B-4268-A683-6D1EE52B3BE7@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2Fmtxr%2Fvscode-sqltools%2Fissues%2F64%23issuecomment-468712942&recipient=cmVwbHkrMDAwYWNiZTk4YmE0MDdiNzBmMjg5MDAxMjIwNjdmNjg4NmMzNmJlMDU0YTEyYzczOTJjZjAwMDAwMDAxMTg5MTE4NTU5MmExNjljZTExYjJiNGQzQHJlcGx5LmdpdGh1Yi5jb20%3D), or mute the thread (https://link.getmailspring.com/link/2826CADA-5C8B-4268-A683-6D1EE52B3BE7@getmailspring.com/1?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAArL6RqH1BasPQlf7BXou3SpOcZowd84ks5vSU3VgaJpZM4SEkeV&recipient=cmVwbHkrMDAwYWNiZTk4YmE0MDdiNzBmMjg5MDAxMjIwNjdmNjg4NmMzNmJlMDU0YTEyYzczOTJjZjAwMDAwMDAxMTg5MTE4NTU5MmExNjljZTExYjJiNGQzQHJlcGx5LmdpdGh1Yi5jb20%3D).

Here is how it will work for it's first version:

Awesome! 👍


DCC Official: 1.04, compendium drop fixes

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] I have authorization from the game's publisher to make this an official sheet on Roll20 with their name attached.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Bug Fixes

NPCs will no longer be stuck on the mancer starting dialog
NPC alignment values updated to match those used for PCs

Character Sheet Info Roll20 Internal Use only.