Isaac 2019.2 not supported by Nvidia anymore

Hi,
It seems the ISAAC 2019.2 SDK is not supported anymore by Nvidia.
There is no "Archive" folder on their download page.
(cf https://forums.developer.nvidia.com/t/downloading-isaac-sdk-2020-2/195227)
Is there any workaround?
Can Benchbot compile with the new ISAAC 2021.1 SDK?

Thanks for bringing this to our attention @vincentcartillier.
Getting BenchBot to work with the latest version of ISAAC will require some engineering work that we hadn't allocated time for. We didn't expect NVIDIA to proceed this way. We will need to dig in to the latest versions of ISAAC to understand: 1) how much work that will involve, 2) if we have the cycles available to get it done.
Sorry for the non-answer at the moment, but we will get back to you once we know more.

Thanks for your reply.
I have started to look into compiling benchbot with Isaac-2021.
Environment: I am running a VM from GCP with Ubuntu18 and a Tesla P4.
Following are some notes to what I have tried and how far I reached..
Notes:

I have started by adding the isaac-2021.1 tar.gz file under isaac/ and modify the checksum condition in the installation script (bin/benchbot_install:L379):
chk_isaac_check='find $PATH_ISAAC_SRCS -type f -name "isaac*"'

There seem to be discrepancies with the .isaac_patches/ from the benchbot_simulator. I am commenting out this part for the moment... (docker/backend.Dockerfile:59)
#.isaac_patches/apply_patches

When building ROS, Bazel seems to have a hard time finding packages:

I will continue looking and I'll post updates here if I manage to get it working. In the meantime any suggestions are welcome!
PS: The installation script is very well made ! :)

Thanks for digging in for us @vincentcartillier .
Here's my notes on what would need work for this to work with the latest Isaac:

The checks you've identified in the install scripts would definitely have to be updated
Post 2019.2 ISAAC dropped support for the Unreal Engine version of ISAAC Sim which is what we use for our environments. This is the big step where most of the uncertainty lies. We would have to:

port the existing environments (here and here) to Omniverse, which looks achievable based on the Omniverse documentation
port our short list of BenchBot specific additions (only one I can think of is we use Unreal to tell us if the robot has collided)
probably mark benchbot_simulator deprecated and rename it to benchbot_simulator_unreal or something similar
make new simulator bindings for Omniverse environments to ROS (something like benchbot_simulator_omniverse), which should be much easier these days as the ISAAC SDK sits in the middle and has become much more mature
add support for a new simulator target to the ecosystem sim_omniverse
implement support in both the benchbot_install and benchbot_run scripts

I provide this exhaustive list just for context. It's certainly not a "these things are why it's too hard, so we won't do it" situation. Because they are all doable, it just requires time. It's more a "this is the roadmap of tasks we would need to complete to add this support in the future".
Thanks for the nice comments about the install script, and for digging into BenchBot for us; it's the community engagement that makes projects like this worthwhile!

Please see the latest release @vincentcartillier .
We now have official support for the latest Isaac Sim (2021.2), powered by Omniverse. Apologies about the delay.
We're aware there may be some bugs with a migration of this size, so please let us know if you encounter any.

Hi, It seems the ISAAC 2019.2 SDK is not supported anymore by Nvidia. There is no "Archive" folder on their download page. (cf https://forums.developer.nvidia.com/t/downloading-isaac-sdk-2020-2/195227)
Is there any workaround? Can Benchbot compile with the new ISAAC 2021.1 SDK?

I find this archive https://github.com/NvPhysX/UnrealEngine/tree/IsaacSim_1.2

That will get Unreal Engine at the version that was used in Isaac Sim 1.2 @floodsung , but doesn't include the extra file which was required to pull in the appropriate dependencies unfortunately.
That was contained in the download page which is unfortunately gone.


Upgrade from laravel 7 to laravel 8

Is there any guide for upgrade?

@RayhanYulanda generator does not intend to provide an upgrade of laravel apps. You need to upgrade your laravel application to version 8 and then use Laravel Generator's 8.0 branch to generate new CRUDs.

Oke, thanks a lot! @mitulgolakiya


[token-2022] allow split confidential transfer instruction constructors to be invoked on chain

Problem
The constructors for the split confidential transfer and confidential transfer with fee instructions do not require proofs to be generated and only require context state accounts. However, these functions are labeled to target only offline usage.
Summary of changes
Remove the restriction on the target build for these functions.

Looks good! I took a look through the rest of the file, and is there a reason for any of the instruction creators be gated on not(target_os = "solana")? Since none of them are performing any encryption or decryption (that I can see at least), they all seem safe.
Some of them call into the verify_* on the proof program, which will fail, but we could likely relax that restriction in the future. What do you think?

Oh yes, you are right. All of them take in the proof data as input; the proof is not generated inside those functions. It seems like we can remove it. Let me merge this PR and then do it in a follow-up since there might be something that we are overlooking.


some functions from examples are missing?

[root@devbox /home/work/sand/nginx/top]# php index.php
PHP Fatal error:  Uncaught Error: Call to undefined method Madkom\NginxConfigurator\Builder::addServerNode() in /home/work/sand/nginx/top/index.php:27
Stack trace:
#0 {main}
thrown in /home/work/sand/nginx/top/index.php on line 27
I try to search your github repo for "addServerNode" i also only get example page. Also example $builder->appendServerNode($defaultServer); is not found, except in examples.
Maybe you know what is with that? Or how to fix this?

i was checking wrong branch examples. great library btw !


Feature/enabling logdna

@stepbeekio Minor comments- happy for you to self merge once they are fixed!


Breaking out ACMEOrder handling & supporting alternative HTTP01 strategies (i.e. Contour IngressRoute & Istio Gateway)

Currently ACMEOrder handling/processing is performed as part of the standard Certificate controller's sync operation.
This has created a 'heavy' controller, which is responsible for many different codepaths. This in turn has made it more difficult to test and extend, due to the varying responsibilities of the controller.
This issue is a tracker/precursor to a full proposal that I have been working on.
Briefly, the goals are:

Support additional strategies for solving HTTP01 challenges (beyond simply 'Ingress')
Simplify the Certificates controller (i.e. remove the complex ACME related code)
Move from an 'asynchronous' ACME solver design into a synchronous model (namely in order to control and reduce the number of calls we make to ACME servers)
Either support, or at least provide a valid story on how we can support, external DNS01 solvers too.

ref https://github.com/heptio/contour/issues/509
ref https://github.com/istio/istio/issues/6486
/cc @rosskukulinski @davecheney @mattmoyer @alexbrand @aledbf

ref #742


Fresh cmake

rewrite cmakelists.txt

do not commit revisions to mutiple issues at one time.
It's recommended to submit one specified issue at one time.


Relying party

Issue #, if available:
Description of changes:
Enhanced tests and comments in get-relying-party-info.sh:

Added explicit tests for STAGE var defined by command line, environment variable, or defaulting to USER.
Exit if config file not found.
Added explicit tests for variables aws_profile, aws_region, solution_name.
Exit if any of the above configuration values are not defined in config file.
Expanded error messages when reading configuration file.
Explicitly echo config file name and config values.

Checklist:

[ ] Have you successfully deployed to an AWS account with your changes?
[ ] Have you written new tests for your core changes, as applicable?
[ ] Have you successfully tested with your changes locally?
[ ] If new dependencies have been added, have they been pinned to specific versions?
[ ] Is this change also required on the AWS Solution version?
[ ] Have you updated openapi.yaml if you made updates to API definition (including add, delete or update parameter and request data schema)?
[ ] If you had to run manual tests, have you considered automating those tests by adding them to end-to-end tests?
[ ] If you are updating the changelog and vending out a new release, have you updated versionNumber and versionDate in .defaults.yml

AS review ticket id:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Hi Andrew,
Thanks for submitting this change! Could you please specify the tests you've done for these changes?
Also, please change the base branch of the PR to develop branch and use conventional commit messages.
Please let me know if you have any questions.
Thanks,
Yanyu


Network error

I got always Network error
I tried to inspect the HTTP call but there's no response

Bye :)

I've also been having "Network Error" problems for 2 days.

Talk to a Polygon Dev on the Live support page so that your issue can be looked into.

The https certificate expired, need to be renewed.

Still, the certificate is not renewed. Can we run this locally and try?

renewed certificate, sorry for delay


Support for cross-server transactions

Clarifying support for Azure App Tier and adding documentation for cross-server functionality PoSH cmdlets.

Hi @torsteng, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (torsteng). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


Preparation for v0.11.0 to disable treasury module

Related Github tickets

a list of github issues that are relevant for this PR

Background
A short paragraph on test what exactly this PR solves.
Testing completed

[ ] a list of actions that you've performed to ensure that this PR works as intended
[ ] 99% of the times you should have an item: "wrote tests"

Breaking changes

[ ] I have checked my code for breaking changes
[ ] If there are breaking changes, there is a supporting migration.

@Vizualni okay to close this? The treasury module is NOT the issue. I'm not sure this release will change anything.

@Vizualni okay to close this? The treasury module is NOT the issue. I'm not sure this release will change anything.

Yep. Closing.


Configuration#3:Step#1: simulating alpha_S=0.4, matter: q_0=1 | matterlbt: q_0=1.5: matterlbt03

run the simulation with the above config by jetscape,
transfer the final state hadron to the related directory named as config-XX-final-state-hadrons
after doing step1 on all 12 simulations go to step 2 for the configurationX

ported into Excel for overleaf


All mestro commands hang indefinitely when using SSH tunnelling

When I try to use any commands (status/start etc), maestro hangs indefinitely. The hanging occurs in bgtunnel.py in _validate_ssh_process
I can see bgtunnel has opened up an SSH tunnel to the docker host, something like this:
152638154 47788 47783   0 10:01am ttys003    0:00.02 /usr/bin/ssh -o BatchMode=yes -i /Users/jbloggs/.ssh/id_rsa -T -p 22 -L <IP_ADDRESS>:57656:<IP_ADDRESS>:4243<EMAIL_ADDRESS>
Interestingly, I can also confirm the tunnel is working fine using curl on the command line:
$ curl <IP_ADDRESS>:57656/images/json?all
[{"Created":1406811123,"Id":"be45fb9546dda26f073dfb9bb2cb232377d22e4ff9138280de831c5a49f38f60","ParentId":"bb18aaa8b7a92176b13aea9eba872cb3a9a9301e66c3a3aad04fbd216d1e9baf","RepoTags":["quay.io/somerepo/somesvc:1.0.0"],"Size":0,"VirtualSize":822164249}

Playing with the maestro code, I added in bgtunnel's expect_hello option and set it to false just to confirm that was not a problem (not including that as an option might block some servers from functioning with maestro), but that just results in getting 'host down' almost immediately when doing maestro status
Anyone got any ideas?
Mestro - 0.2.2
Environments - tried Ubuntu Precise and Mac OS X 10.9.2
Python - tried 2.7.3 and 2.7.5
Docker - 0.11

Any progress? I've added a banner but also get the same problem:
$ maestro status
Error: Banner

Hey guys, just struggled with the same problem. SSHD outputs the banner in stderr which causes validation fail on the bgtunel side.
Anyway to workaround this issue you need to setup you server to write something in STDOUT after login. My solution was to add this line:
echo "Deployer connected"

at the end of .bashrc file of the user I use in maestro.
So just login on you server with a user you want to use in maestro file and run the following:
echo "echo \"Deployer connected\"" >> ~/.bashrc

Thanks for the workaround @corvis.
Unfortunately there isn't much Maestro can do here to help. https://github.com/jmagnusson/bgtunnel/issues/7 tracks the issue already on bgtunnel's side.


Slots are a pixel too low

As you can see in this image, the slot appears to be selected even though there is no tooltip and you cannot take items out. http://i.imgur.com/13ljboP.png
And here, the bottom slot appears to be selected, when actually it displays the tooltip and you can take items out from the slot above: http://i.imgur.com/g0DhYdO.png

I'll give this a look.

Seems to be a bit more complicated to fix that I anticipated. At any rate, I will fix it eventually (if it's possible).

Is it more than a simple variable being 1 too many,

Yeah, it seems to be related to the mouse's actual pixel position rather than the GUI position, which is strange.

Turns out, it was a GUI offset glitch, and also made the slots a pixel too far right. Fixed for next release.


scan is undefined

I integrated the plugin on cordova and cannot find the scan object. I keep getting undefined
undefined", source: file:///android_asset/www/index.html (37)
[INFO:CONSOLE(38)] "window plugins scan", source: file:///android_asset/www/index.html (38)
[INFO:CONSOLE(39)] "undefined", source: file:///android_asset/www/index.html (39)
[INFO:CONSOLE(40)] "window Scan", source: file:///android_asset/www/index.html (40)
[INFO:CONSOLE(41)] "undefined", source: file:///android_asset/www/index.html (41)
[INFO:CONSOLE(42)] "navigator.scan", source: file:///android_asset/www/index.html (42

Hey @vofili
Can you show me the code you used. You don't need to use it as navigator.scan. You can directly use scan.
You can try this in console after just adding the plugin and running the cordova app on an android device then going into google chrome and type in chrome://inspect/#devices  into the search bar then press enter. Here you will see your app under which there will be an inspect button you can click. On click a new window opens with a console. Try typing in scan and it should autofill if everything is working correctly.
Cheers,
Chris
Neutrinos

@ChrisTomAlx - I am also facing same issue, scan scan is not defined i have already added plugin. But it's only in Android in iOS it's working very well..

@Karanveer-logiciel please could you show me your code?
Cheers,
Chris
Neutrinos

yeah sure

@ChrisTomAlx - Here you can see...

scan.scanDoc(0, function(imageURI) {
console.log(imageURI)
});

Could you try this instead and see if it works?
scan.scanDoc(0, onSuccess, onFail);

function onSuccess(imageURI) {
    console.log(imageURI);
}

function onFail(message) {
    alert('Failed because: ' + message);
}

Cheers,
Chris
Neutrinos

@Karanveer-logiciel  && @vofili What android version are you using. Is it Android Oreo? If so please use the fix that has been provided in the readme file under issues and fixes.

Hi @ChrisTomAlx
Here is my code
`document.addEventListener("deviceready", onScanDeviceReady, false);
function onScanDeviceReady() {
Scan.scanDoc(sourceType, successCallback, errorCallback);
}
function successCallback(imageData){
console.log("picture taken - ",imageData);
localStorage.setItem("chequefrontpicture",imageData);
var image = document.getElementById('imagechequefrontpicture');
image.src = "data:image/jpeg;base64," + imageData;
	}
	function errorCallback(error){
			localStorage.setItem("imagedata","");
			console.log("error picture taken - ",error);
	}
	`

i have used this line
			scan.scanDoc(sourceType, successCallback, errorCallback);
and this line
			Scan.scanDoc(sourceType, successCallback, errorCallback);
both returned

scan is undefined

@ChrisTomAlx - I tried both ways as you told but not working for me and i am using after device ready also...

Hey @vofili ,
Okay three things I noticed

To be more clear. Use scan.
Scan won't work.

Also change sourcetype to either 0 or 1.

Use the function after the deviceready event was received. For eg it would look like below in your index.js :-

var app = {
    initialize: function() {
        document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
    },

    onDeviceReady: function() {
        this.receivedEvent('deviceready');
        //device ready received
        scan.scanDoc(0, onSuccess, onFail);

        function onSuccess(imageURI) {
             console.log(imageURI);
         }

         function onFail(message) {
             alert('Failed because: ' + message);
         }
    },

    receivedEvent: function(id) {
        var parentElement = document.getElementById(id);
        var listeningElement = parentElement.querySelector('.listening');
        var receivedElement = parentElement.querySelector('.received');

        listeningElement.setAttribute('style', 'display:none;');
        receivedElement.setAttribute('style', 'display:block;');

        console.log('Received Event: ' + id);
    }
};

app.initialize();

Cheers,
Chris
Neutrinos

Hey @Karanveer-logiciel
Unfortunately, I will need more information to help you. The best thing you can do is create a new app with the plugin and your code. Make sure it isn't working in yours then send it over to me and I will test if it is working on my end. If it is we can find our way out from there./
Cheers,
Chris
Neutrinos

@ChrisTomAlx - FYI i am using CORDOVA CLI -> 6.5.0

@ChrisTomAlx - Can you help me to find this plugin in platform folder may it will be helpfull for me

@Karanveer-logiciel You definitely need cordova 7.1.0+ and cordova android 6.4.0+ for this to work.
Cheers,
Chris
Neutrinos

Im using Cordova v7.1.0 and android v 7.1.0

okay @ChrisTomAlx
I upgraded my platform android
ionic cordova platform add<EMAIL_ADDRESS>and now i can use the scan object.
I am also able to call scanDoc
Thank you..

Hi, I'm having the same problem. "Uncaught ReferenceError: Scan is not defined"
I'm using cordova and cordova android platform 11.0.0


Pinned completed tasks can be marked completed in the pin notification

Offering to mark a completed task completed just does not make sense.
Note that this is independent from #199, because you can always pin completed tasks manually (no matter whether they have been unpinned automatically or not).
Also, the notification should clearly indicate that the task is completed and should not display a due date.

true, we need to update the pin notification for completed tasks

As I understand from other threads here, currently we don't want to automatically remove pinned notification when the task gets completed from the app, so it should stay there.
How should it look like in completed state?

I see now that upon completion the pin notification does get removed automatically actually. So this case is about when we pin an already completed task, if I get this right the second time.

Right. A second case is that a pinned task is completed via sync (#199).

Correct. The pinned notification should respect the completed state of the task. So when a pinned task is completed via sync the notification should be updated, not removed.
I'm not 100% sure, but also I think that the task is still pinned when you swipe to complete.


Warning: Location "/" did not match any routes

I have tried to convert react-router 0.13.3 to 0.14.3 and I got the error in router like "Warning: Location "/" did not match any routes"
below I have converted
main.js
var React = require('react');
var ReactDom=require('react-dom');
var ReactRouter = require('react-router');
var Router = ReactRouter.Router;
var Route = ReactRouter.Route;
var routes=require('./routes');
var createHashHistory =require('history/lib/createBrowserHistory');

var history = new createHashHistory();
ReactDom.render(<Router history={history}>{routes}</Router>,document.getElementById('app'));

routes.js
var React = require('react');
var ReactRouter = require('react-router');
var Router = ReactRouter.Router;
var Route = ReactRouter.Route;

var routes=(
  <Route  path="app" component={require('./Component/app')}>
    <Route path="about" component={require('./Component/about/aboutpage')} />
  </Route>
);

module.exports=routes;
app.js
var React = require('react');
var Header = require('./common/Header');
$=jQuery=require('jquery');
var App=React.createClass({
  render:function(){
    return(

        {this.props.children}

    );
  }
});
module.exports=App;

it would be really great help if you show where do I had mistake while converting

As the message suggests, you'll need to define a corresponding route. E.g.:
<Route path="/" component={LandingPage} />

Thanks for your question!
We want to make sure that the GitHub issue tracker remains the best place to track bug reports and feature requests that affect the development of React Router.
Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #react-router? https://stackoverflow.com/questions/ask?tags=react-router.
We also have an active and helpful React Router community on Reactiflux, which is a great place to get fast help with React Router and with the rest of the React ecosystem. You can join at https://discord.gg/0ZcbPKXt5bYaNQ46.

@janklimo : Thanks it's worked but another warning came Warning: [history] pushState is deprecated; use push instead


MOL-675-Show-Payment-Method-Transaction-Reference-in-Administration

I don't know what kind of label would be preferred here so I added some to the best of my knowledge.

nice one, thanks :), ill check it out and in case the look doesnt fit, ill add it, but i guess its fine


Tai Bwo Wannai Trio gp reward incorrect

I was doing Tai Bwo Wannai Trio and was like "this quest is the best gp/h :D

It should only say "2,000 coins"

I also found similar bugs in two other quests, these are the ones I can check now:
contact: 2 x 2 x 7,000
fairytale II: 2 x 2 x 2,500
watchtower: 5000 x 5,500

Contact! lamps have been fixed in https://github.com/Zoinkwiz/quest-helper/commit/28cd74af15f3e5b0a8c752f21928ad08045db959
Watchtower reward was fixed in https://github.com/Zoinkwiz/quest-helper/commit/0a03a2746d772f8548969a3cf4feb5a319cde649#diff-fbb9577424e1236db01b360f6791d9f270d895b21b326dd0e9d45554c32b5d99R669
Fairytale II lamp was fixed in https://github.com/Zoinkwiz/quest-helper/commit/0a03a2746d772f8548969a3cf4feb5a319cde649#diff-429c50009aea6dd817fc8bdd7a8464ae2a4ba72e721ee0be900adaf9cbf702c0R404
The Tai Bwo Wannai Trio GP reward will be fixed by https://github.com/Zoinkwiz/quest-helper/pull/1270
The fixes will only show up in-game next time Quest Helper makes a release to the RuneLite Plugin Hub

I also found similar bugs in three other quests, these are the ones I can check now: contact: 2 x 2 x 7,000 (xp lamp) fairytale II: 2 x 2 x 2,500 (xp lamp) watchtower: 5000 x 5,500 (gp)
possibly more are broken :(

Should be fixed when this PR #1260 is merged.


callSettersOnNulls=true doesn't work in version 3.3.0 anymore

Since Version 3.3.0 mybatis doen't set Null-Value in an association-structure.
Please see here https://github.com/rsiggi/callSettersOnNulls-test
mvn test
Version 3.2.8 Test is ok
Version 3.3.0 Test failed.

There was a change in that logic to fix a bug. I remember I made a change that could affect existing code and this is the reason we waited till 3.3.0 to release the fix.
I will check it anyway. Thanks for pointing!

Is this fixed ?

No, it is not. I will have a look at this one next.

Hi again. I have ported your test to the project. You can see it in the commit above.
I would say that this behaviour is the expected. Call setter on nulls was initially designed to call setters with null values for simple properties, not for associations. I suppose people asked for this feature because they have custom code in a setter that should be called even when the value was null (and it is not a primitive value)
But this setting will never create a whole tree filled with null values as you were expecting:
"ParentBean [name=p1, client=ChildBean [name=null, child=ChildBean [name=null, child=null, beans=null], beans=null]]"

Hi again, I know its a late answer, but this situation is not exactable for me. For me its a feature! Now we want to change to mybatis-spring 1.3.0 that required 3.4.0.
Why:
We use mybatis to  generate xml files with jaxb. With Version 3.2.8 I can directly marshal the result object. The Schema file definition constrained this Objectbean tree. So from version 3.3.0 the xml file is invalid.
I had debug the the change and I had seen, that the objects were always created, but not set.
Possible Solutions:

add a new configuration element, such as callSettersOnNullsAlways

pro:

no changes on callSettersOnNulls

con: that is by setting callSettersOnNulls=false and callSettersOnNullsAlways=true?

add an new value to callSettersOnNulls such as deep or tree or all

pro: no new configuration element
con:

change the type from boolean to an enum
I haven't the overview there needed anywhere a code changes , but for XMLConfigBuilder, Configuration and DefaultResultSetHandler.

I had implemented the second solution and all unittests are successful.
Please check the solutions.

➡  See #800


Browser not working after downgrade to 2.1.0-4u

I am currently stuck on what i should do...
I am using a n3dsxl going through the motions of installing a9lh onto the 3ds.....I manage to finish everything up til part 5 encountering no issues apart from luma refusing to load at times and that i cannot boot into 2.1.0-4u with a sd card inserted into the 3ds...i manage to work around the latter by cold booting without the sd card...
i am unable to proceed with any steps to install a9lh as the browser refuse to launch and just gets stuck on the "internet browser" splash screen after you click on the icon....kind folks over at the forums have suggested i either upgrade to 4.x.x. and then to 9.2.x or use cubic ninja....
which is the best course of action i should take.....with/without the either the cart update or cubic ninja...and also if there is any alternative other than hardmodding it(its an LE n3dsxl....dont wish to damage it)
here's my OTPHelper.log
update:
i manage to  get hold of a 4.4 cart update and followed the steps detailed here....the update failed and now i cant even get into the home menu nor can i boot into recovery

If you can't boot recovery, that's a hard brick.
You need a hardmod. @

kk thanks....manage to contact someone that can help me with the hardmod
On Fri, Aug 12, 2016 at 9:26 AM, Plailect<EMAIL_ADDRESS>wrote:

Closed #327 https://github.com/Plailect/Guide/issues/327.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Plailect/Guide/issues/327#event-753476821, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AT_CFufTfAOuNAsKav2iYqAhQvzZ9UA-ks5qe8vHgaJpZM4Jhczu
.

--
·ץʘʊʁϩ·ɱӧṣʈ·ʂῚᾓͼɜґɛ·ᾷṅ∂·ḁḺϖḀұʂ·
ғӧԓᾱⱠᵭ·♂·ɲơṯ·άƶ·ṣᾦɛӭŦ


how prediction model works

I've just now seen the example of movie rating prediction. But on what algorithms the prediction model is going to work. How can we compare the accuracy of different models?

@KattaOmkareshwar Based on your input and output features, Ludwig selects default encoders, decoders and combiner.  If you want to specify a particular type of model, you can choose them in the model definition. Check some examples here.

To compare different models, you can compare their measures and use visualizations to do that too.


charger connected but no data in HA

Everything is installed and charger is connected to mqtt - connection is shown in mqtt log
But I don't get any data in the entities.
Only relevant logfile entry in HA log I can find is:
Logger: homeassistant.components.mqtt.number
Quelle: components/mqtt/number.py:195
Integration: MQTT (Dokumentation, Probleme)
Erstmals aufgetreten: 20:38:18 (8 Vorkommnisse)
Zuletzt protokolliert: 20:48:59
Invalid value for number.go_echarger_232684_set_next_trip_energy_limit: 9000 (range 0.0 - 100.0)

Correction:
I do get all values in MQTT where it shows as 1 Device with 41 Entities but nothing in the Go-e module (always "no available")
Example from MQTT Debug Information:
{
          "device_class": null,
          "disabled_by": null,
          "disabled": false,
          "entity_category": null,
          "entity_id": "sensor.go_echarger_232684_energy_charged",
          "icon": null,
          "original_device_class": "energy",
          "original_icon": "mdi:flash",
          "state": {
            "entity_id": "sensor.go_echarger_232684_energy_charged",
            "state": "2808.28",
            "attributes": {
              "unit_of_measurement": "Wh",
              "device_class": "energy",
              "icon": "mdi:flash",
              "friendly_name": "go-eCharger_232684 Energy charged"
            },
            "last_changed": "2024-05-25T06:03:27.275854+00:00",
            "last_reported": "2024-05-25T06:03:27.275854+00:00",
            "last_updated": "2024-05-25T06:03:27.275854+00:00"
          },
          "unit_of_measurement": "Wh"
        },{
          "device_class": null,
          "disabled_by": null,
          "disabled": false,
          "entity_category": null,
          "entity_id": "sensor.go_echarger_232684_energy_charged",
          "icon": null,
          "original_device_class": "energy",
          "original_icon": "mdi:flash",
          "state": {
            "entity_id": "sensor.go_echarger_232684_energy_charged",
            "state": "2808.28",
            "attributes": {
              "unit_of_measurement": "Wh",
              "device_class": "energy",
              "icon": "mdi:flash",
              "friendly_name": "go-eCharger_232684 Energy charged"
            },
            "last_changed": "2024-05-25T06:03:27.275854+00:00",
            "last_reported": "2024-05-25T06:03:27.275854+00:00",
            "last_updated": "2024-05-25T06:03:27.275854+00:00"
          },
          "unit_of_measurement": "Wh"
        },

Please double check the base_topic. I guess it's a prefix thing. Either set the base-topic to an empty string or change the topic using the app to /go-eCharger/232684.

@syssi That did the trick, added a / in the go-e app and now I see everyting
thanks a lot!


Can not make pipelines work with management group

Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: here
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment
- If using Azure Pipelines, provide the account name, team project name, build definition name/build number:
-

https://dev.azure.com/NetSupportSoftware/NetSupport_DevOps

Agent - Hosted or Private: N/A

Issue Description
Can not make pipelines work with management group, this is on the back of issue: 14744. I was told to apply my service connection to multiple subscriptions. Yet when doing that, it doesn't work as you physically can not tie a service connection to multiple subscriptions. I have tried and it fails at seeing resources.
Task logs
Says can not find resource group
Troubleshooting
Followed advice from ticket 14744, doesn't work. Tried also re-scoping to management group with new app registration doesn't work.
Error logs
[Insert error from the logs here for a quick overview]

Please can I get an update on this. Everytime you scope a Service connection to a management group and give it the relevant rights for example, contributor access. The pipeline fails to deploy into any subscription within that Management group. I have a ticket open with MS, where the only current trying but not tested solution is to some how pass in service connections into a yaml pipeline. Yet we are struggling to get this work.
When really all that needs to happen is you need to fix the bug where you can not scope properly to a management group. With Azure Dev Pipelines and a service connection.

Hi @jasric89 this repo is mostly for pipeline tasks related issues - for Azure DevOps related questions you can open a ticket on https://developercommunity.visualstudio.com/search?space=21 to get right eyes on it.

Hi @anatolybolshakov, I do not agree with that. There are (very) few Pipeline Tasks that work with Service Connections on Management Groups. Therefore support for Management Groups has to be implemented into the Pipeline Tasks specifically.

This is still a problem!

Can you give me an update on when this will be fixed please?

This is still a problem.

Hi this is still a problem when will a fix be available?

there is no point to keep closing this bug, it still doesn't work the fact I have to keep coming back here asking for an update is just disgraceful.


Make TypeRefBuilder::getFieldTypeInfo iterate over images in a smarter manner

Description: Currently, whenever we're asked to retrieve a particular FieldDescriptor for a TypeRef, we naively parse all the ReflectionInfos in the order they were registered (caching everything) until we find the one we're looking for. This can be very costly for the debugger, as we may be reading memory from a remote target. This patch introduces a heuristic to prioritize this search by processing first ReflectionInfos where the FieldDescriptor we're looking for is likely to be. If the heuristic fails, we fallback to the old behavior. In profiling debugging large apps, this has significant impact on the time to stop on the first breakpoint.
Risk: Low. If the heuristic fails we fall back to the old behavior.
Testing: Swift reflection tests plus all lldb tests that use frame variable.
Original PR: https://github.com/apple/swift/pull/59802 plus Typeref.cpp changes from https://github.com/apple/swift/pull/59262
Issue: rdar://87889973

@swift-ci test

Thanks @nkcsgexi!


fix(xcb): check for composite extension

Rendering doesn't work if the composite extension is disabled (confirmed by me and @Derynect), so we should check that it is enabled.
Fixes #1425

Codecov Report

Merging #1430 into master will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1430      +/-   ##
=========================================
+ Coverage    5.83%   5.83%   +<.01%
=========================================
  Files         161     162       +1
  Lines        8935    8941       +6
=========================================
+ Hits          521     522       +1
- Misses       8414    8419       +5

Flag
Coverage Δ

#unittests
5.83% <0%> (ø)
:arrow_up:

Impacted Files
Coverage Δ

src/x11/extensions/composite.cpp
20% <0%> (ø)

src/x11/connection.cpp
1.02% <0%> (-0.02%)
:arrow_down:

Continue to review full report at Codecov.

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

For me the xcomposite extension is disabled by default and I can still render fine.
And from what I can see from the cmake logs in many of the issues here, it's disabled for everyone.

I meant disabled in X11. We need to enable the composite extension in polybar to check if the extension in X11 exists (which is usually the case).

I'm having trouble reproducing this. For some reason I cannot disable the Composite X extensions, it prints the warning Ignoring unrecognized extension "Composite", even though xdpyinfo -queryExtensions list it as enabled. I will try to reproduce it on my desktop, maybe I'll have more luck there.
I have seen that you needed to add a new dependency in travis for this. Is this an actual hard dependency that we have missed before?

I had that problem too, apparently it had to be "COMPOSITE" (all caps).
It might be a new dependency, but most people already have it installed. On Arch it's a dependency of gtk, compton, and even xorg-xdpyinfo, which is why it's easy to miss. I guess on Gentoo it isn't set as a dependency of compton.

I have added the packages providing xcb-composite to the wiki where necessary.

Where does the xrandr extension throw an error while compiling?

If you manually disable the randr extension (with -DWITH_XRANDR=OFF) x11/extensions/randr.hpp will hit #error "X RandR extension is disabled..."
Because the code cannot compile without randr, at least not in the current code base.

I think that's only a catchall to make sure it shouldn't be compiled when it is accidentally included, because x11/extensions/all.hpp should not include randr.hpp if WITH_XRANDR=OFF. composite.hpp already has the check as well.

Even if you actually add that check to all inclusions of randr.hpp, you still get compiler errors like
/home/patrick96/Projects/github.com/patrick96/polybar/src/components/screen.cpp:60:16: error: ‘class polybar::v3_2_0_26_g11d66ee_git::connection’ has no member named ‘randr’
   m_connection.randr().select_input(m_proxy, XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE);

and a bunch more.

So how should this be handled? Should we remove the flag entirely or keep it somewhat modular and just throw an error when not using the flag?

I think it should be impossible to disable hard dependencies, since it will just fail either during compilation or runtime anyways, and I'd rather have an error during cmake.
So yeah, remove the flag, or probably better, make it immutable and fail cmake, if the library wasn't found. We probably still want to show it in the settings.hpp file, so we can't totally drop WITH_XCOMPOSITE.
We should try to separate hard and soft dependencies inside cmake anyway, so after this PR, we can use the same approach you used for xcb-composite for the other hard dependencies like xrandr.

@patrick96 is this good enough?


[WIP] ROS2 Porting: scenario_intersection

Summary
Relatively straightforward port of the scenario_intersection package. Some changes are not complete yet due to unmet dependencies.
Notable Changes:

rclcpp::Logger object needed to be propagated to lower level classes and methods in order for the ROS logging calls to be retained
ros::Time is passed in as a method but not used - this was removed
rosbag package was listed as a dependency in the package.xml - this was not seen anywhere and therefore removed
Rearranged headers so they were only where they were needed

Note to reviewer
Waiting on scenario_api
Testing
This package should compile and at the moment with
colcon build --packages-up-to scenario_intersection

@jilaada is this ready for review? I see that @mitsudome-r and I are assigned as reviewers.

@jilaada is this ready for review? I see that @mitsudome-r and I are assigned as reviewers.

It is set to draft. I've ported as much as I can while waiting for dependencies to be merged. Feel free to review the sections of code which have already been ported - notably the changes I listed in PR description. I figured I would create the PR for visibility as this package is one that many other depend on.

Closing as this is now replace with #26


Multi-edit changing quotes doesn't quite work

VSCode Version: Code 1.10.2 (8076a19fdcab7e1fc1707952d652f0bb6c6db331, 2017-03-08T13:56:35.908Z)
OS Version: Darwin x64 16.3.0
Extensions:

Extension
Author
Version

vscode-docker
PeterJausovec
0.0.12

jsx
TwentyChung
0.0.1

vscode-great-icons
emmanuelbeziat
1.1.44

hopscotch
idleberg
0.1.4

Go
lukehoban
0.6.55

vscode-react-native
vsmobile
0.3.1

vscode-proto3
zxh404
0.1.0

Steps to Reproduce:

Type some code using double quotes:

{
  "field": "value",
  "field2": "value",
  "field3": "value",
  "field4": "value"
}

Select the first quote "
Press Cmd+D to select all quotes in the block one at a time
Delete the double-quote
Type a replacement single quote
Notice you get duplicated single quotes at the end

{
  'field': 'value',
  'field2': 'value',
  'field3': 'value',
  'field4': 'value''
}

This problem manifests in lots of ways

Duplicate of https://github.com/Microsoft/vscode/issues/21767


[WIP] Update user stats data

going to be changing some stats_data

What's the WIP on this?  It seems to get most of the way there 🤔


clarified some code shading

@Kdisimone not sure about this one - it undoes a lot of the additions scott just provided. Maybe close, re-update your branch, and then try this one again?


fix(timetable): Fix link to pip demo slides

Description
Fix the link to the pip demo previously pointing to the pypi slides in timetable.md
Checklist

[x] I made sure that the markdown files are formatted properly.
[x] I made sure that all hyperlinks are working.

Duplicated #117, sorry.


UI: App state incorrectly shown

An app that I deployed got stuck in delayed state in one UI tab. It doesn't update anymore:

If I open the UI in another tab, it is better:

Note that the "Running 1 of 1 tasks" is incorrect, too. There are two tasks.
If I refresh this page, I get:

In the network debug tab of the browser one still sees that the API is continuously queried but the UI doesn't update.
The JSON of the tested app:
{
  "cmd": "python -m SimpleHTTPServer $PORT",
  "cpus": 0.1,
  "disk": 0,
  "healthChecks": [
    {
      "gracePeriodSeconds": 10,
      "ignoreHttp1xx": false,
      "intervalSeconds": 10,
      "maxConsecutiveFailures": 3,
      "path": "/",
      "portIndex": 0,
      "protocol": "HTTP",
      "timeoutSeconds": 3
    }
  ],
  "id": "/test-http",
  "instances": 1,
  "mem": 16,
  "ports": [
    10000
  ]
}

The API info got:
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, must-revalidate
Content-Type: application/json; qs=2
Date: Thu, 05 Nov 2015 13:30:34 GMT
Expires: 0
Pragma: no-cache
Server: Jetty(9.3.2.v20150730)
Transfer-Encoding: chunked
X-Marathon-Leader: http://vbox:8080

{
    "apps": [
        {
            "acceptedResourceRoles": null,
            "args": null,
            "backoffFactor": 1.15,
            "backoffSeconds": 1,
            "cmd": "python -m SimpleHTTPServer $PORT",
            "constraints": [],
            "container": null,
            "cpus": 0.1,
            "dependencies": [],
            "deployments": [],
            "disk": 0,
            "env": {},
            "executor": "",
            "healthChecks": [
                {
                    "gracePeriodSeconds": 10,
                    "ignoreHttp1xx": false,
                    "intervalSeconds": 10,
                    "maxConsecutiveFailures": 3,
                    "path": "/",
                    "portIndex": 0,
                    "protocol": "HTTP",
                    "timeoutSeconds": 3
                }
            ],
            "id": "/test",
            "instances": 2,
            "labels": {},
            "maxLaunchDelaySeconds": 3600,
            "mem": 16,
            "ports": [
                10000
            ],
            "requirePorts": false,
            "storeUrls": [],
            "taskStats": {
                "startedAfterLastScaling": {
                    "stats": {
                        "counts": {
                            "healthy": 1,
                            "running": 1,
                            "staged": 0,
                            "unhealthy": 0
                        },
                        "lifeTime": {
                            "averageSeconds": 690.584,
                            "medianSeconds": 690.584
                        }
                    }
                },
                "totalSummary": {
                    "stats": {
                        "counts": {
                            "healthy": 1,
                            "running": 2,
                            "staged": 0,
                            "unhealthy": 0
                        },
                        "lifeTime": {
                            "averageSeconds": 733.5595,
                            "medianSeconds": 776.535
                        }
                    }
                },
                "withLatestConfig": {
                    "stats": {
                        "counts": {
                            "healthy": 1,
                            "running": 2,
                            "staged": 0,
                            "unhealthy": 0
                        },
                        "lifeTime": {
                            "averageSeconds": 733.5595,
                            "medianSeconds": 776.535
                        }
                    }
                }
            },
            "tasksHealthy": 1,
            "tasksRunning": 2,
            "tasksStaged": 0,
            "tasksUnhealthy": 0,
            "upgradeStrategy": {
                "maximumOverCapacity": 1,
                "minimumHealthCapacity": 1
            },
            "uris": [],
            "user": null,
            "version": "2015-11-05T13:19:03.528Z",
            "versionInfo": {
                "lastConfigChangeAt": "2015-11-05T13:17:37.527Z",
                "lastScalingAt": "2015-11-05T13:19:03.528Z"
            }
        }
    ]
}

This was tested on master commit c34dd0aa50c0d0732c798ff20f9b5ddbff5c8fb6.

If I switch back to the index page and then go to the app page again, the information shown is correct.

If I use browser reload again, it shows the suspended state again.

@kolloch this should be the reference implementation for UI bug reports!
I'll take a look.

Fixed in mesosphere/marathon-ui#373


Incident: OpenAI

The service "OpenAI" has been down since 2024-11-17T19:00:44.475Z (Downtime: 60.061 seconds).

Test: test


Add an information about the necessary constraint type for the linked collections

Add the information right after the description of constraint types. Users should understand how to check
associated entities. https://doc.cuba-platform.com/manual-latest/constraints.html
See: https://www.cuba-platform.com/discuss/t/direct-m2m-with-access-group-constraint/5902/2

I think we should emphasize that:

Database constraints are not applied for reference collections.
In-memory constrains are applied for them.


Add jskjott.com to sites

The icon is located in the bottom right of my site within the .footer section.

Welcome to the Webring!


Initial version to add the ability to right-click on (i) info to open…

… the detail in a new tab.  Mini-menu still not working correctly.

Linux Firefox: Ctrl+click on (i) works properly. Shift+click on (i) opens the Detail in a new TAB (not window) and then also pops up a new window with a brand new OPUS (no search terms, no detail, etc).
Linux Chrome: Ctrl+click on (i) works properly. Shift+click on (i) works properly. Ctrl+click on hamburger works properly. Shift+click on hamburger works properly.
Mac Safari: Ctrl+click on (i) works properly. Shift+click on (i) opens the Detail in a new window and ALSO opens another window with a brand new OPUS.

Also the problem with "add range from here" is still present.


queued RestActions lost on shutdown()

[X] I have checked for similar issues.
[X] I have updated to the [latest JDA version][download].
[x] I have checked the branches or the maintainers' PRs for upcoming bug fixes.

Bug Report
The code snippet below does not send all messages to the channel. This is unexpected because https://ci.dv8tion.net/job/JDA/javadoc/net/dv8tion/jda/api/JDA.html#shutdown() says that "Already enqueued RestActions are still going to be executed." The code works correctly, when complete() is used instead of queue().
Expected Behavior
15 messages (Test0 ... Test14) are sent to the channel.
Code Example or Reproduction Steps
JDA jda = new JDABuilder("MyToken").build().awaitReady();
Guild guild = jda.getGuildsByName("MyGuild", true).get(0);
TextChannel channel = guild.getTextChannelsByName("MyChannel", true).get(0);
for (int i = 0; i < 15; i++) {
    channel.sendMessage("Test" + i).queue();
}
jda.shutdown();

Exception or Error
N/A

This should be fixed in 4.1.1_110

@MinnDevelopment Thanks for the quick patch. Unfortunately the issue persists using 4.1.1_110.

Are you sure? I tested your code and it works as expected sending messages from 0 to 14

I only see "Test0". I verified that I am actually using 4.1.1_110 by printing the version number. I am open to debugging suggestions.

I can actually reproduce this on 4.1.1_110.
Code:
public class TestBot {
    private final static String TOKEN = "hereToken";
    private final static long CHANNEL_ID = hereChannelId;

    public static void main(String[] args) throws LoginException, InterruptedException  {
        JDA jda = new JDABuilder(TOKEN).build().awaitReady();
        TextChannel channel = jda.getTextChannelById(CHANNEL_ID);
        channel.sendMessageFormat("I am on Version %s!", JDAInfo.VERSION).queue();
        for (int i = 0; i < 15; i++) {
            channel.sendMessage("Test" + i).queue();
        }
        jda.shutdown();
    }
}

Console-Output:
[main] INFO net.dv8tion.jda.api.JDA - Login Successful!
[JDA MainWS-ReadThread] INFO net.dv8tion.jda.internal.requests.WebSocketClient - Connected to WebSocket
[JDA MainWS-ReadThread] INFO net.dv8tion.jda.api.JDA - Finished Loading!

Output in my Discord:
[9:25 PM] BOT DisscordFunBot: I am on Version 4.1.1_110!

Program was instantly terminating after "Finished Loading!" was printed in the console and the bot has send the single message after that (at least the notification appeared after this).

Same code:

Is it possible that you use a different version of okhttp? In newer versions all the threads by okhttp are daemon which causes the JVM to shutdown. The rate-limiter threads are also daemon by default.

I don't have many dependencies for this project.
dependencies {
    compile 'net.dv8tion:JDA:4.1.1_110'
    //compile 'org.jscience:jscience:4.3.1'
    compile group: 'org.json', name: 'json', version: '20180813'
    testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
}

According to my "Project and External Dependencies", I use OkHttp 3.13.0, is that the newest version used by JDA? I don't think that one of the other dependencies uses OkHttp so I don't see how I could have a different / older version.

From my testing, it works on the JDA provided okhttp version and doesn't work when forcing a newer version with daemon threads.

Can this be the cause of an older JRE / JDK? My project uses JRE 1.8.0_181. Else I can't explain it tbh.

JVM:          11.0.6 (Ubuntu 11.0.6+10-post-Ubuntu-1ubuntu119.10.1)
Dependency Tree:
+--- net.dv8tion:JDA:4.1.1_110
|    +--- com.google.code.findbugs:jsr305:3.0.2
|    +--- org.jetbrains:annotations:16.0.1
|    +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.28
|    +--- com.neovisionaries:nv-websocket-client:2.9
|    +--- com.squareup.okhttp3:okhttp:3.13.0
|    |    \--- com.squareup.okio:okio:1.17.2
|    +--- org.apache.commons:commons-collections4:4.1 -> 4.2
|    +--- net.sf.trove4j:trove4j:3.0.3
|    \--- com.fasterxml.jackson.core:jackson-databind:2.10.1
|         +--- com.fasterxml.jackson.core:jackson-annotations:2.10.1
|         \--- com.fasterxml.jackson.core:jackson-core:2.10.1

Try putting Thread.sleep(30000); after your call to shutdown.

Works for me.

Also works for me but somehow, the bot goes offline before sending those messages. But it sends it.

@DManstrator thats intended. the Websocket is shut down right away, as it is no longer needed

@kantenkugel Aren't messages still queued supposed to be sent via the websocket?

No, Messages are sent via REST API, the Websocket is mainly for events and status

Assuming this issue is closed now?

Assuming this issue is closed now?

I'd suggest to fix this more properly. It would break again anyway as soon as okhttp is updated.

Hm. adding a custom thread/waiter to wait for queue emptying would probably break the shutdown contract by possibly waiting minutes

I'd suggest to fix this more properly.
I would agree on that. At least I would like to know why it works for Minn but not for us (without that hotfix).

This should be completely resolved on 4.1.1_116

Can not confirm. Behaviour unchanged.
+--- net.dv8tion:JDA:4.1.1_116
|    +--- com.google.code.findbugs:jsr305:3.0.2
|    +--- org.jetbrains:annotations:16.0.1
|    +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.28
|    +--- com.neovisionaries:nv-websocket-client:2.9
|    +--- com.squareup.okhttp3:okhttp:3.13.0
|    |    \--- com.squareup.okio:okio:1.17.2
|    +--- org.apache.commons:commons-collections4:4.1 -> 4.2
|    +--- net.sf.trove4j:trove4j:3.0.3
|    \--- com.fasterxml.jackson.core:jackson-databind:2.10.1
|         +--- com.fasterxml.jackson.core:jackson-annotations:2.10.1
|         \--- com.fasterxml.jackson.core:jackson-core:2.10.1

I have to take that back. I was accidentally executing using JUnit. All good. Thank you.


Complete EIP model intialization when bridging from EA model

When initializing EIP model from EA one, only model elements declaration is done today. However, we could initialize a default EIP integration route with Gateway_In, Gateway_Out items and channels linking everything together. This would allow to quickly start EIP design thereafter ...

Done!


Variables available in template file (for prompt)

Can you please tell me, which variables can be used in model template file? Only {{.Input}}?
Do you have some place (like Model Gallery) for usable general prompt templates for supporting models?

is there any cool geek can show a demo of yaml and teml? I use ggml-gpt4all-j(sha1sum ccfbaf3e2406f442f3b4fefb8672e706aafd522a) and localai docker(v1.40.0 (6ef7ea2635ae5371be4e6eef516c2ad4afd9f4a3)).
I am not sure things of below are good. so I want a good example

gpt-3.5-turbo-16k.yaml

name: gpt-3.5-turbo-16k-0613
parameters:
  model: ggml-gpt4all-j
  top_k: 80
  temperature: 0.2
  top_p: 0.7
context_size: 8192
stopwords:
- "HUMAN:"
- "GPT:"
roles:
  user: " "
  system: " "
template:
  completion: ggml-gpt4all-j
  chat: ggml-gpt4all-j

ggml-gpt4all-j.tmpl

The prompt below is a question to answer, a task to complete, or a conversation to respond to; decide which and write an appropriate response.
### Prompt:
{{.Input}}
### Response:


No way to get the video in HomeKit

Hello,
Recently I installed this plugin. I wanted to test some streamers on my HomeKit.
The steps was this:
sudo npm install -g homebridge-camera-ffmpegcd /home/pi/
sudo apt-get install libssl-dev libomxil-bellagio-dev -y
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-openssl
sudo make -j4
sudo make install
and in config.json
{
{
			"platform": "Camera-ffmpeg",
			"cameras": [{
				"name": "testcam",
				"videoConfig": {
					"source": "-i https://video3.earthcam.com/fecnetwork/10874.flv/playlist.m3u8",
					"stillImageSource": "https://www.earthcam.com/cams/includes/image.php?logo=0&img=64ea74600b4ef6441db62fd3ad3ce754",
					"maxStreams": 2,
					"maxWidth": 1280,
					"maxHeight": 720,
					"maxFPS": 30,
					"vcodec": "h264_omx"
				}
			}]
		}

After that I added the "new" device but the image doesn't works.
the ffmpeg proctocols are:
hbridge:~$ ffmpeg -protocols
ffmpeg version N-89970-ge8323c42c1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
  configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-openssl
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58. 10.100 / 58. 10.100
  libavformat    58.  9.100 / 58.  9.100
  libavdevice    58.  1.100 / 58.  1.100
  libavfilter     7. 11.101 /  7. 11.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
Supported file protocols:
Input:
  async
  cache
  concat
  crypto
  data
  ffrtmpcrypt
  ffrtmphttp
  file
  ftp
  gopher
  hls
  http
  httpproxy
  https
  mmsh
  mmst
  pipe
  rtmp
  rtmpe
  rtmps
  rtmpt
  rtmpte
  rtmpts
  rtp
  srtp
  subfile
  tcp
  tls
  udp
  udplite
  unix
Output:
  crypto
  ffrtmpcrypt
  ffrtmphttp
  file
  ftp
  gopher
  http
  httpproxy
  https
  icecast
  md5
  pipe
  prompeg
  rtmp
  rtmpe
  rtmps
  rtmpt
  rtmpte
  rtmpts
  rtp
  srtp
  tee
  tcp
  tls
  udp
  udplite
  unix

And If I try to execute on console:
ffmpeg -i https://video3.earthcam.com/fecnetwork/10874.flv/playlist.m3u8 /home/pi/test.mp4
I get good news about:
Press [q] to stop, [?] for help
[swscaler @ 0x3b30310] deprecated pixel format used, make sure you did set range correctly
Output #0, mp4, to '/home/pi/test.mp4':
  Metadata:
    encoder         : Lavf58.9.100
    Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97 tbc
    Metadata:
      variant_bitrate : 3766260
      encoder         : Lavc58.10.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
[https @ 0x31ce190] Opening 'https://video3.earthcam.com/fecnetwork/10874.flv/chunklist_w985233886.m3u8' for reading
[hls,applehttp @ 0x31bb030] Opening 'https://video3.earthcam.com/fecnetwork/10874.flv/chunklist_w985233886.m3u8' for reading
skipping 10 segments ahead, expired from playlists
[https @ 0x31d8560] Opening 'https://video3.earthcam.com/fecnetwork/10874.flv/media_w985233886_3719.ts' for reading
[hls,applehttp @ 0x31bb030] Opening 'https://video3.earthcam.com/fecnetwork/10874.flv/media_w985233886_3719.ts' for reading
frame=  287 fps=6.4 q=31.0 size=    1280kB time=00:00:09.54 bitrate=1098.8kbits/s dup=1 drop=0 speed=0.213x   frame=  291 fps=6.4 q=31.0 size=    1280kB time=00:00:09.67 bitrate=1083.7kbits/s dup=2 drop=0 speed=0.214x   frame=  295 fps=6.4 q=31.0 size=    1280kB time=00:00:09.80 bitrate=1068.9kbits/s dup=2 drop=0 speed=0.214x   frame=  299 fps=6.4 q=31.0 size=    1280kB time=00:00:09.94 bitrate=1054.6kbits/s dup=2 drop=0 speed=0.214x

But... I cannot see on HomeKit. Just black screen.
Does anyone can help me with?
Thanks a lot in advance. :)

Looks like your config.json is missing a couple of lines. I think the camera platform stuff should be in the “platforms” section:
"platforms": [{
camera.stuff.here
}]


DevTools lack their tab header, possibly other L10n-related issues, caused by tampering with browser/omni.ja

Note: DevTools lacking their tab header is only the first issue I noticed; there may be more. Ideally, this issue entry eventually captures all related issues. So far, all stack-traces end in null being passed to functionkey. Usually such calls look like functionkey(l10n( some string )). I currently assume that any symptomatic issue, whose culprit are these function calls, may have the same fix.

Recently, an issue has occured when you re-zip and replace browser/omni.ja (with or without any of the two sed changes):
Developer Tools lack their tab header
Shortly before or on 2020-07-09, any Firefox that has been tampered with lacks the tab header in the developer tools, i.e. the tabs to switch to “Inspector”, “Console”, “Debugger”, etc., picking an element, and the close button.
In the browser console, each time when opening the developer tools, these five errors are thrown in a row:
TypeError: can't access property "split", shortkey is null at react-dom.js:12769:13
    functionkey resource://devtools/client/definitions.js:669
    get tooltip resource://devtools/client/definitions.js:240
    render resource://devtools/client/framework/components/ToolboxTab.js:58
    React (13)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
    React (19)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
TypeError: can't access property "split", shortkey is null at react-dom.js:12769:13
    functionkey resource://devtools/client/definitions.js:669
    get tooltip resource://devtools/client/definitions.js:379
    render resource://devtools/client/framework/components/ToolboxTab.js:58
    React (13)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
    React (19)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
TypeError: can't access property "split", shortkey is null at react-dom.js:12769:13
    functionkey resource://devtools/client/definitions.js:669
    get tooltip resource://devtools/client/definitions.js:263
    render resource://devtools/client/framework/components/ToolboxTab.js:58
    React (13)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
    React (19)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
TypeError: can't access property "split", shortkey is null at react-dom.js:12769:13
    functionkey resource://devtools/client/definitions.js:669
    get tooltip resource://devtools/client/definitions.js:436
    render resource://devtools/client/framework/components/ToolboxTab.js:58
    React (13)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
    React (19)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    open resource://devtools/client/framework/toolbox.js:924
TypeError: can't access property "split", shortkey is null at definitions.js:669:3
    functionkey resource://devtools/client/definitions.js:669
    get tooltip resource://devtools/client/definitions.js:240
    render resource://devtools/client/framework/components/ToolboxTab.js:58
    React (13)
    setCanRender resource://devtools/client/framework/components/ToolboxController.js:125
    setCanRender self-hosted:935
    open resource://devtools/client/framework/toolbox.js:924

Developer Tools lack their tab header
I have analyzed this issue. It seems that l10n("styleeditor.commandkey") (and possibly other calls) within chrome/devtools/modules/devtools/client/definitions.js are null if tampered. This causes these tooltips to not be able to resolve to their intended text:

The errors appear in this function:
function functionkey(shortkey) {
  return shortkey.split("_")[1];
}

which fails if shortkey is null. A simple (and safe) workaround is to replace the function by
function functionkey(shortkey) {
  return (shortkey || "_").split("_")[1];
}

This way, the tab bar renders properly, with the tooltips containing only part of their text, e.g. “JavaScript-Debugger (Shift+)”. This is an acceptable compromise.
An updated version of the script will be uploaded shortly. Before closing this, I’ll be monitoring this issue, look out for related bugs, look for better alternatives, and see if this should (or will) be fixed by Mozilla instead.

It seems that this works without an issue for a few builds, e.g. 2020-08-18 and at least one earlier build.
If it does fail, and if the final sed line is removed, I’ve noticed a couple other things:

The element <div id="toolbox-toolbar-mount"> is empty. That’s where the tabs get placed.
// In the browser console (Ctrl + Shift + J), after opening dev tools in some tab:
document.querySelector("browser.devtools-toolbox-bottom-iframe").contentDocument.querySelector("#toolbox-toolbar-mount").childElementCount === 0 // true

When invoking Menu → Web Developer → Browser Toolbox, it fails. On Linux it opens a strange invisible window, but it doesn’t throw errors.

So far, I’ve only tested this in the German locale of Firefox. Let’s see if any of these issues happen in the English one or in a different locale…
Presuming a German locale, chrome/de/locale/de/devtools/startup/key-shortcuts.properties is a very interesting file. Remember the l10n("styleeditor.commandkey") call? That’s where properties such as styleeditor.commandkey appear to be defined. There’s three peculiarities:

Note that the path says startup. The above error messages do happen at startup of the dev tools.

Such a file only exists in chrome/de/locale/de/devtools/startup/. There is no such localization file for the en locale.

The file appears to be loaded and used in modules/DevToolsStartup.jsm.

Looks like I’ve found the answer: this semi-related Super User answer says

The resulting file is however about 2.5 times smaller than the original so I assume firefox doesn't use 9 as compression level these days but 0. Indeed
zip -qr0XD omni.ja *

produces a file almost the exact same size as the original.

I never cared about the file size of omni.ja. Yes, I always found it peculiar how the size after repacking was only a fraction of the original, but it seemed to work, and it was documented as such on MDN, clearly stating (emphasis mine):

[…]; editing extracted files won't affect Firefox, and repacking edited files may break Firefox if you do not use the right options when packing the extracted files. The correct command to pack omni.ja is:
zip -qr9XD omni.ja *

After several failed attempts, back when I first attempted to tamper with this file, I really believed it. I really believed that without these exact options (well, except -q), there’s no chance to make any edit work.
Now, not only is the file size nearly identical to the original omni.ja, but the tab header appears to fully work now! :tada:

Next steps:

[ ] Test the script with the zip -0 option instead of the -9 option for a few days. Maybe this is all a coincidence or a dream!
[ ] Test different compression levels and pick the highest that still works. -9 may actually be an oddball1, so I’ll test with -8 right away; I’d be surprised if that doesn’t work.
[ ] Update the script here.
[ ] Update the Super User answer.
[ ] Document the correct compression level(s) to use on MDN.

1 The zip man page states (emphasis mine):

-# (-0, -1, -2, -3, -4, -5, -6, -7, -8, -9)
Regulate the speed of compression using the specified digit #, where -0 indicates no compression (store all files), -1 indicates the fastest compression speed (less compression) and -9 indicates the slowest compression speed (optimal compression, ignores the suffix list). […]

So -9 ignores the file suffix? I thought that’s what made repacking omni.ja work in the first place, but it may be the thing that actually breaks it.


Add another common history re-writting case (sensitive data)

While I think is very good advice (a must actually), I wouldn't say it qualifies as a styling rule. I think it  would be a better fit in a list like "things to watch out for when working with git".
Thanks! :smiley:


Confusion with configuration

Proxy
Waterfall 1.17-448
CommandBridge 1.1-BETA
proxy config.yml
# CommandBridge Config File

# This field is to recognize the config version
# DO NOT EDIT AT ANY TIME
version: '1b'

# This is the password field
# You need to set to a different value for security reason
# You need it to send a command, see https://github.com/SouthplexStudio/CommandBridge/wiki/FAQ:-How-to-send-a-command-to-BungeeCord
password: 'tryThis'

Server
Paper 1.17.1-157
CommandBridge 1.2-BETA (from link above)
server config.yml
#Running Modes:
#- PluginMessage (Outdated,will be REMOVED in 2.0)
#- MessageQueue (Recommended,using built-in ActiveMQ)
#- Redis
#NOTE: PluginMessage Mode only support Bukkit->Bungee.
running-mode: PluginMessage

#Allows player (with permission "commandbridge.bukkit.send",or OP) to execute command in game
enable-player-command: true

Running mode
On server start-up, log reports
[09:30:11] [Server thread/WARN]: Legacy plugin CommandBridge v1.2-BETA does not specify an api-version.
[09:30:15] [Server thread/INFO]: [CommandBridge] Loading CommandBridge v1.2-BETA
[09:30:52] [Server thread/INFO]: [CommandBridge] Enabling CommandBridge v1.2-BETA*
[09:30:52] [Server thread/INFO]: [CommandBridge]Setting Up...
[09:30:52] [Server thread/INFO]: [CommandBridge]Registering Outgoing Channel...
[09:30:52] [Server thread/INFO]: [CommandBridge]Using PluginMessage mode.
[09:30:52] [Server thread/INFO]: [CommandBridge]Disable PluginMessage mode.
[09:30:52] [Server thread/WARN]: [CommandBridge]Did not found a valid running mode, please check your config.
[09:30:52] [Server thread/WARN]: [CommandBridge]Using PluginMessage Mode instead.
[09:30:52] [Server thread/INFO]: [CommandBridge]Registering Command...
[09:30:52] [Server thread/INFO]: [CommandBridge]Done! Plugin By: jingwenMC

If I try running-mode: MessageQueue, log reports
[09:51:42] [Server thread/WARN]: Legacy plugin CommandBridge v1.2-BETA does not specify an api-version.
[09:51:45] [Server thread/INFO]: [CommandBridge] Loading CommandBridge v1.2-BETA
[09:52:22] [Server thread/INFO]: [CommandBridge] Enabling CommandBridge v1.2-BETA*
[09:52:22] [Server thread/INFO]: [CommandBridge]Setting Up...
[09:52:22] [Server thread/WARN]: [CommandBridge]Did not found a valid running mode, please check your config.
[09:52:22] [Server thread/WARN]: [CommandBridge]Using PluginMessage Mode instead.
[09:52:22] [Server thread/INFO]: [CommandBridge]Registering Command...
[09:52:22] [Server thread/INFO]: [CommandBridge]Done! Plugin By: jingwenMC

In the first instance, it is disabling and then reenabling PluginMessage mode. In the second instance, it is disabling the preferred MessageQueue mode and enabling PluginMessage mode. So my guess is that the configuration node is not being parsed correctly.
Execution
Commands I have tried do not work. For example

sendcmd tryThis alert Hello

at the server console, returns nothing and nothing is executed on the proxy. There are no error messages on server or proxy. What do I need to do?

I see. Fixed in the BETA version. I will update soon.

Update posted, closing issue.


GH Issue 171: asset missing height width properties

Motivation
Which issue does this fix? Fixes #171
Checklist

[x] Code follows coding conventions held in this repo
[x] Automated tests have been added
[x] Tests are passing
[ ] Docs have been updated (if applicable)
[x] Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

Hey @makma, thank you for catching that. I've added the properties to the constructor and fixed the spacing. Oddly though, the spacing looked correct in VS, VSCode and Notepad++, so I ended up fixing in browser.


Question: Anyone tried scaling this up?

I've a 3HP collector, but don't really have the room to run 2x of these side by side. Wondering if going up to say a 7" diameter would still get the job done or just totally make a mess of things.
(This is probably better suited for the discussions, but it's not enabled on this repo).

Turns out you can't just go and buy a 7" pipe anywhere... so going to ignore this one!


docs: fix typo in installing from scratch

SUMMARY

carrying over work from https://github.com/apache/incubator-superset/pull/11026
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

closing as the source of the issue has been found https://github.com/apache/incubator-superset/pull/10949


Why minSdkVersion 15?

Is there any important reasons for 15 api version as minimum?
RxAndroid 0.24.0 worked well with 9 api level.

See here how to make it work https://github.com/JakeWharton/RxBinding/issues/48

Nothing beyond that there's really no reason to ship app updates to anyone on API levels lower than 15 anymore. It's already changed to 14 on master because I can't be bothered to argue against what seemed like someone reading an API distribution chart wrong. Do you have a compelling argument for API 9? (which is also a non-existent API like 14 and you probably mean 10)


Fix toplevel in FuseSoC core file

Can we please have this merged? Just noticed that it hasn't been applied, and the FuseSoC builds break without this fix

Merged


langchain.schema.OutputParserException: Could not parse LLM output: `

Hey there,
thanks for langchain! It's super awesome! 👍
I am currently trying to write a simple REST API but i am getting somewhat random errors. Sometimes (about 1 in 15 runs) it's this:
% python3 app.py "Who won the superbowl the year justin bieber was born?"
llama.cpp: loading model from /Users/myadmin/dalai/llama/models/13B/13b-ggml-model-q4_0.bin
llama_model_load_internal: format     = ggjt v1 (latest)
llama_model_load_internal: n_vocab    = 32000
llama_model_load_internal: n_ctx      = 512
llama_model_load_internal: n_embd     = 5120
llama_model_load_internal: n_mult     = 256
llama_model_load_internal: n_head     = 40
llama_model_load_internal: n_layer    = 40
llama_model_load_internal: n_rot      = 128
llama_model_load_internal: ftype      = 2 (mostly Q4_0)
llama_model_load_internal: n_ff       = 13824
llama_model_load_internal: n_parts    = 1
llama_model_load_internal: model size = 13B
llama_model_load_internal: ggml ctx size =  73.73 KB
llama_model_load_internal: mem required  = 9807.47 MB (+ 1608.00 MB per state)
llama_init_from_file: kv self size  =  400.00 MB
AVX = 0 | AVX2 = 0 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 0 | NEON = 1 | ARM_FMA = 1 | F16C = 0 | FP16_VA = 1 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 0 | VSX = 0 |
Answer the following questions as best you can. You have access to the following tools:

Google Search: A wrapper around Google Search. Useful for when you need to answer questions about current events. Input should be a search query.
Wikipedia: A wrapper around Wikipedia. Useful for when you need to answer general questions about people, places, companies, historical events, or other subjects. Input should be a search query.

Use the following format:

Question: the input question you must answer
Thought: you should always think about what to do
Action: the action to take, should be one of [Google Search, Wikipedia]
Action Input: the input to the action
Observation: the result of the action
... (this Thought/Action/Action Input/Observation can repeat N times)
Thought: I now know the final answer
Final Answer: the final answer to the original input question

Begin!

Question: {input}
{agent_scratchpad}
-- Serving request for input: Who won the superbowl the year justin bieber was born?

> Entering new AgentExecutor chain...
Traceback (most recent call last):
  File "/Users/myadmin/lc-serve/app.py", line 54, in <module>
    ask(sys.argv[1])
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/lcserve/backend/decorators.py", line 14, in sync_wrapper
    return func(*args, **kwargs)
  File "/Users/myadmin/lc-serve/app.py", line 47, in ask
    return agent_executor.run(input)
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py", line 213, in run
    return self(args[0])[self.output_keys[0]]
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py", line 116, in __call__
    raise e
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py", line 113, in __call__
    outputs = self._call(inputs)
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py", line 796, in _call
    next_step_output = self._take_next_step(
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py", line 676, in _take_next_step
    output = self.agent.plan(intermediate_steps, **inputs)
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py", line 385, in plan
    return self.output_parser.parse(full_output)
  File "/Users/myadmin/Library/Python/3.9/lib/python/site-packages/langchain/agents/mrkl/output_parser.py", line 26, in parse
    raise OutputParserException(f"Could not parse LLM output: `{text}`")
langchain.schema.OutputParserException: Could not parse LLM output: `
Thought: I don't know who won that year... or what happened in the next 3 years.

Action: Google Search

Google Search: Super Bowl`

The script is as follows:
# app.py

#model = "/Users/myadmin/dalai/"
model = "/Users/myadmin/dalai/llama/models/13B/13b-ggml-model-q4_0.bin"
#model = "/Users/myadmin/dalai/llama/models/13B/ggml-vic13b-q5_1.bin"
#model = "/Users/myadmin/dalai/alpaca/models/30B/ggml-model-q4_0.bin"

import sys, os
os.environ["GOOGLE_CSE_ID"] = "xyz"
os.environ["GOOGLE_API_KEY"] = "xyz"

from langchain import LLMChain
from langchain.llms import LlamaCpp
from langchain.agents import AgentExecutor, Tool, ZeroShotAgent, load_tools

from lcserve import serving

prefix = """Answer the following questions as best you can. You have access to the following tools:"""
#suffix = """Begin! Remember to speak as a pirate when giving your final answer. Use lots of "Args"
suffix = """Begin!

Question: {input}
{agent_scratchpad}"""

llm = LlamaCpp(model_path=model, verbose=True)
tools = load_tools(["google-search", "wikipedia"], llm=llm)
prompt = ZeroShotAgent.create_prompt(
	tools,
	prefix=prefix,
	suffix=suffix,
	input_variables=["input", "agent_scratchpad"],
)

print(prompt.template)

llm_chain = LLMChain(llm=llm, prompt=prompt)
tool_names = [tool.name for tool in tools]
agent = ZeroShotAgent(llm_chain=llm_chain, allowed_tools=tool_names)

agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)

@serving
def ask(input: str) -> str:
	print("-- Serving request for input: %s" % input)
	return agent_executor.run(input)

if __name__ == "__main__":
	if len(sys.argv) == 1:
		ask('How many people live in canada as of 2023?')
	else:
		ask(sys.argv[1])

Not quite sure what i'm doing wrong here, or if it's just purely a random thing i should just catch?
Thank you very much in advance!

@fbettag I believe a workaround might be to try this
@serving
def ask(input: str) -> str:
	print("-- Serving request for input: %s" % input)
        try:
             response= agent_executor.run(input)
        except Exception as e:
             response = str(e)
             if response.startswith("Could not parse LLM output: `"):
                  response = response.removeprefix("Could not parse LLM output: `").removesuffix("`")
	return response

This is not perfect but it may give you an idea you can even try to run the query again and this time pass some instructions to it so it doesn't give that sort of answer

@fbettag I believe a workaround might be to try this
@serving
def ask(input: str) -> str:
	print("-- Serving request for input: %s" % input)
        try:
             response= agent_executor.run(input)
        except Exception as e:
             response = str(e)
             if response.startswith("Could not parse LLM output: `"):
                  response = response.removeprefix("Could not parse LLM output: `").removesuffix("`")
	return response

This is not perfect but it may give you an idea you can even try to run the query again and this time pass some instructions to it so it doesn't give that sort of answer

Well i went as far as doing this
@serving
def ask(input: str) -> str:
	try:
		response = agent_executor.run(input)
	except Exception as e:
		response = str(e)
		if response.startswith("Could not parse LLM output: `"):
			response = response.removeprefix("Could not parse LLM output: `").removesuffix("`")
			return response
		else:
			response = "{\"error\": \"%s\"}" % str(e)

Now at least i get the "Thought" half way decently out of it.
I'd still like to understand the issue itself, is it that the model can't handle german prompts?

well, I had the same issue while my prompts were in Greek this can occur when the LLM fails to follow the proper format and may give the answers slightly altered. One way is to keep telling the LLM to follow the correct pattern to answer.
The method langchain is using is very prone to errors as this is a bad way to have a parser that would parse just based on the pattern only and raise an error if the response is not in the correct form.
Either you can have another LLM and ask it to parse and return the output from the given text which is a simple but slow solution another one would be to write your own parser and modify the one langchain provides to be robust and work if the pattern is not followed

that makes so much sense. thank you!

check this, worked for me: https://python.langchain.com/en/latest/modules/agents/agent_executors/examples/handle_parsing_errors.html

This page is removed. Could you please provide correct link, if possible.

https://python.langchain.com/docs/modules/agents/how_to/handle_parsing_errors ?


Context name is cut off when it is wider than the menu

This should be fixed on master with #1181
Duplicate with #1183 and #1170 - we should probably cut a release with this soon


Custom label UI 107

ref: https://github.com/pdfme/pdfme/issues/107

Hey @peteward ,
Can you review it when you have time?
CI is failing, but it's unrelated to this fix, so I'd like to address it in a separate PR.

@peteward
Thank you for reviewing.
When customizing labels that are not part of the official schema, users can add labels as shown below.
https://github.com/pdfme/pdfme/blob/a7217408b16286ea9c881cf28688812d021331b7/playground/src/FormAndViewer.tsx#L61
Forcing the addition of labels for each language under the schema package would be a significant overhead for plugin developers, so I have done it this way.
As you suggest, merging into the main translation list is also a good idea, but I thought it was overkill at this stage, so I implemented it minimally."

ok great.
Yes, I saw that you can add your own labels - which is great.
But if you want to write a custom plugin for other people to use, then ideally they should be able to use it without having to pass labels through the designer.
Something to consider for future.


Identify different parameters in im_coll that we may or may not need to filter out

We are currently filtering the following, however it could be worth looking into and playing around with different parameters:
.filterBounds(aoi)
.filterDate(ee.Date('2016-09-01'), ee.Date('2017-09-01'))
.filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'))
.filter(ee.Filter.eq('relativeOrbitNumber_start', 27))
.filter(ee.Filter.listContains('transmitterReceiverPolarisation',
'VV'))
.filter(ee.Filter.listContains('transmitterReceiverPolarisation',
'VH'))

New filtering is set up in the image_search function. Closing this for now.


ServerSpec Looking for Files that Associated Resource Doesn't Create

The ServerSpec script mysql/test/integration/config55/serverspec/linux_spec.rb suggests the directory /etc/mysql-default should be as follows:
  describe file("#{prefix_dir}/etc/mysql-default") do
    it { should be_directory }
    it { should be_mode 755 }
    it { should be_owned_by 'root' }
    it { should be_grouped_into 'root' }
  end

However, in a generic/default setup, this is not the case. The default resource of:
mysql_client 'default' do
  action :create
end

mysql_service 'default' do
  version '5.5'
  initial_root_password 'my-password'
  action [:create, :start]
end

Yields this:
vagrant@vm:~$ ls -l /etc/ | grep mysql
drwxr-xr-x 3 root  root    4096 Jan  5 14:35 mysql
drwxr-x--- 3 mysql mysql   4096 Jan  5 14:35 mysql-default

Should the /etc/mysql-default directory be chown-ed to root:root with permissions 755 or should the ServerSpec test be updated to mysql:mysql with permissions 750?

Thanks for reporting this issue @jcderose. I believe this has been removed at this point. If it's still an issue, please do re-open.


Pattern Validator Doesn't Work For Underscore ( _ )

Description: Underscore isn't working or taking as a special character in the validator
Screenshot:

Fix: Add _ to RegExp in the Validator.dart file

PR merged.

Thanks @ArefMozafari 🎉


deps: updates wazero to 1.0.0-pre.4

This updates wazero to 1.0.0-pre.4.
Notably, v1.0.0-pre.4:

improves module initialization speed
supports listeners in the compiler engine
supports WASI fd_pread, fd_readdir and path_filestat_get

Thank you for the update!! 👏


Update chromedriver uri

Checklist

[x] I've run make from the root directory to see all Dockerfiles are created successfully.
[x] I've updated the documentation if necessary.

Motivation and Context
This PR relates to .

https://circleci.zendesk.com/agent/tickets/47945

tested in docker
Description

updated release number to new versioning by Google

@iynere @felicianotech Ready for review.


fix glsl-to-spriv for m1/m2 macs

This will not happen, I was checking how to do this, and the sizes of the binary will be bigger than the allowed on crates.io. I am inclined towards #149 to improve the support of m1/m2 chips.


Further update to ConnectionInfoSummary typings

Original PR : https://github.com/microsoft/azuredatastudio/pull/20511
Companion PRs:
https://github.com/microsoft/sqlops-dataprotocolclient/pull/66
https://github.com/microsoft/sqltoolsservice/pull/1665
I'm further updating this to :

Fix the actual types to be correct - most of the properties here can be null based on whether the connection was successful or not so making that explicit to help avoid errors with not properly checking them. This is technically a breaking change for anyone who might be compiling in strict mode - but given that this is just fixing the typings to be correct (we're currently sending null for those values) it's better to have it be correct so that consumers can fix it themselves when they update their typings. This doesn't affect anything at runtime.
Update the descriptions to be more accurate/generic

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 42.035%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
27926

Relevant Lines:
61877

💛  - Coveralls


[EBE-5550] Update Microsoft Azure instructions for App Registration

Add an extra step for clarification.
@DiegoSanjuan and @gsanchezu please review

👍


refactor(streaming): unify and refine rate_limit related type

Background
Currently, we are using two types to present "rate_limit".
In .proto files, all rate limit values are optional uint32:

None: infinite
0: pause
other value v: rate limit at v

However, when we are parsing the rate limit with SQL, we are using i32:

-1 (and other negative value for compatibility): infinite
0: pause
other positive value v: rate limit at v

Although it looks wired, it works fine for now.
But things are getting worse when we want to introduce some new rate limit policy. It is too tricky to use more conventional values, especially with u32 type. (e.g. To introduce the adaptive rate limiter for backfill, #19743 )
Design
Use a new message Throttle to unify and refine all rate limits.
e.g.
enum ThrottleKind {
	THROTTLE_KIND_ADAPTIVE = 1;
	THROTTLE_KIND_INFINITE = 2
	THROTTLE_KIND_FIXED = 3;
}

message Throttle {
	ThrottleKind kind = 1;
	// Only valid when `kind` is `FIXED`.
	uint32 value = 2;
}

Future Optimizations
No response
Discussions
No response
Q&A
No response

Any comments? cc @hzxa21 @StrikeW @kwannoel @tabVersion

at least it should not be THROTTLE_KIND_INFINiTE (THROTTLE_KIND_INFINITE) 🤣

at least it should not be THROTTLE_KIND_INFINiTE (THROTTLE_KIND_INFINITE) 🤣

Fixed. 🫠

proposing
enum ThrottleKind {
	THROTTLE_KIND_ADAPTIVE = 1;
	THROTTLE_KIND_INFINITE = 2
	THROTTLE_KIND_FIXED = 3;
++  THROTTLE_KIND_PAUSE = 4; // more distinguishable than contained by FIXED
}

message Throttle {
	ThrottleKind kind = 1;
	// Only valid when `kind` is `FIXED`.
	uint32 value = 2;
}

How about THROTTLE_KIND_DISABLED instead of infinite.

Proposings on naming accepted.
Can I assume this refactor works for you?
We need to keep both fields for a few versions. Because the streaming plan is stored as proto in meta


[3.x] Fix X11 is_window_maximized

Fix bug https://github.com/godotengine/godot/issues/46840 for 3.x branch

Thanks!


Javadoc linting task

Adds a javadocLint task that ensures the current javadoc comments follow Yarn's guidelines for javadocs, namely:

Write quick descriptions for parameter javadocs as well as @return tags, with no uppercase or period. Add parameter docs to the parameter itself instead of using the @param tag.

(The @return tags are not currently checked, nor are some other guidelines defined in CONVENTIONS.md. The parameter style seems to be broken most often.)
All javadoc comments are also fixed here to follow the conventions.
Example output of javadocLint when there are errors:

lint: net/minecraft/world/gen/chunk/ChunkGenerator.locateStructure.radius: parameter javadoc ends with '.'
lint: net/minecraft/world/gen/chunk/ChunkGenerator.locateStructure.radius: parameter javadoc starts with uppercase word 'The'
lint: net/minecraft/entity/player/PlayerEntity.dropItem.throwRandomly: parameter javadoc starts with uppercase word 'If'
lint: net/minecraft/entity/EyeOfEnderEntity.initTargetPos: method contains parameter docs, which should be on the parameter itself
lint: net/minecraft/screen/ScreenHandler.onSlotClick.actionType: parameter javadoc starts with uppercase word 'The'

Can you just reuse existing frameworks' javadoc lint tasks and run them on the generated fake source? Imo your current work would be prone to be out of date.

Hmm, I think it might be possible to run something like Checkstyle on the generated sources instead? One caveat is that tools processing them can't detect @param declarations on methods because parameter docs are converted to that in the source.

@liach I made a WIP (non-commited) Checkstyle check for the parameter checks, but I noticed one major issue: With Checkstyle, you can't see what causes the problem, only the file and the line/column numbers.
That's most likely true for other source-based tools as well (ktlint for example also does it like this iirc), so a custom mapping-based library is better IMO.

Side note: using Groovy for the Gradle task was a bit of a pain as it can't handle the wildcard type Entry<?> that well. I had to add as Entry<?> casts to get the static compilation working (the dynamic compilation/typing would probably have produced more readable code).

I’m not convinced groovy is the way forward for this build logic stuff. There are some other issues I came across with the whole buildscript plugin thing that aren’t a fault of groovy.

Superseded by FabricMC/fabric-filament#2.


Improve PatternRecognizer to respect multiple match groups

PatternRecognizer treats complex match groups as one match group, this is not desirable behaviour. It would be preferable if all match groups were individually considered a match.
Example:
from presidio_analyzer import PatternRecognizer, Pattern

text = 'this is an example string with many words'

patterns = [
  # regex with non match group
  Pattern('Non match group', r'\b(is)(?: an)', 0.9),
  # regex with non match group
  Pattern('Multiple match groups', r'(string).*?(words)', 0.9),
]

pr_wrong = PatternRecognizer(supported_entity='X', patterns=patterns)
pr_right = MultiPatternRecognizer(supported_entity='X', patterns=patterns)

print('Wrong')
for m in pr_wrong.analyze(text, entities='X'):
  t = text[m.start: m.end]
  print(m, f'- "{t}"')

print('\nCorrect')
for m in pr_right.analyze(text, entities='X'):
  t = text[m.start: m.end]
  print(m, f'- "{t}"')

Output:
Wrong
type: X, start: 5, end: 10, score: 0.9 - "is an"
type: X, start: 19, end: 41, score: 0.9 - "string with many words"

Correct
type: X, start: 5, end: 7, score: 0.9 - "is"
type: X, start: 19, end: 25, score: 0.9 - "string"
type: X, start: 36, end: 41, score: 0.9 - "words"

A simple change to PatternRecognizer.__analyze_patterns something like this should work:
From:
for match in matches:
    start, end = match.span()
    current_match = text[start:end]

To:
for match in matches:
    # Loop through each match group if more than one
    offset = 0 if len(match.regs) == 1 else 1
    for start, end in match.regs[offset:]:
        current_match = text[start:end]

Thanks @mprojlb, we'll look into this!

Hey @mprojlb, thanks for this! Quick question: The first pattern should detect both "is" and " an". However on the proposed change the substring " an" is not detected. Same goes for the "with many" substring. Is this the expected behavior? Checking my understanding of the issue.

@omri374 I think that 'an' is encapsulated in a non-capturing group (?: an)
In that case, the regex will match on 'an', but it will be excluded from the results

As @SharonHart states groups that start (?: are non-capturing.
Here's a very good explanation of how non capturing groups work https://stackoverflow.com/a/3513858

This looks like a valid addition!
So to summerize, the PatternRecognizer extracts matches, not match groups.
Adding it will move the decision of which substrings will be recognized to the supplier of the regex.
In your case, I can decide on extracting the legacy result with (string.?words) or (string).?(words) to apply groups

Pretty much. Worth noting that with this change (string.*?words) would return the legacy result of one match of "string with many words" and (string).*?(words) would return two matches of "string" and "words".
My apologies, but I'm afraid I'm not interested in the Microsoft contribution guidelines and process. However, the code in the top post works as described and is sufficient for someone to make the change (great first issue).


Payload Functions: Pass bytes as Buffer to Decoder, not Array

The Decoder currently gets an Array (tested via Array.isArray(bytes)). It would be very helpful if we'd pass the actual Buffer. You can still use it as an Array, but also get access to all the read* methods to get multiple bytes as  numeric value without having to do manual bit shifting.

BTW, I cannot create a buffer in the Payload Function either. If I run Buffer.isBuffer(bytes) I get:
ReferenceError("'Buffer' is not defined")

This is how it would simplify decoders:
Before:
var myInt32 = (bytes[0] << 24) + (bytes[1] << 16) + (bytes[2] << 8) + (bytes[3]);
var myInt16 = (bytes[4] << 8) + (bytes[5]);
// var myFloat =  IMPOSSIBLE?

After:
var myInt32 = bytes.readInt32BE(0);
var myInt16 = bytes.readInt16BE(4);
var myFloat = bytes.readFloatBE(6);

The payload functions are JavaScript without browser context, it's not Node.js so there's no Buffer available. I'd rather pre-load a JavaScript library that makes life a bit easier. Submit a separate issue for that with specific requirements or API.

See https://github.com/TheThingsNetwork/ttn/issues/300

I also noticed otto is missing simple APIs like Array.shift() as this:
function Decoder(bytes /*, port */) {
  var decoded = {};

  // until PF support port we pass it in first byte
  decoded.port = bytes.shift();
}

will give:
TypeError("TypeError")

Maybe instead of using a very limited JS VM, we should just use Go for the payload functions?
https://github.com/novalagung/golpal

I think that JavaScript is the most commonly understood language. I'd rather work towards a Node.js container than Go, but best is to keep it simple. There are many a lot of advantages to have a lightweight vm like this when it comes to scaling. Also, the payload functions in general are remote code execution which is always risky.
Ideally, developers use Google Protocol Buffers so they don't have to deal with arrays at all. If they want to deal with arrays, they can 1) use our utility functions that we pre-load, 2) do the magic themselves in the payload functions or 3) do the magic themselves on their premises. For private handlers, we may support 4) a Go function and 5) a HTTP call to decode/convert/validate.

JS is indeed lowest barrier. But if it's missing even simple (browser) APIs like Array.prototype.shift() then it will be frustrating to work with. I'd love to have NodeJS if we can.

Jep, let's try to get the max out of Otto. Node.js is a completely different setup.
Seems like there is support for shift(): https://github.com/robertkrimen/otto/blob/master/builtin_array.go#L92-L112
Don't know why it's not available as you expect it. Can you isolate this issue a bit more maybe?

It's a bug: #303