Create and Deploy HTML5 and SAP Fiori Launchpad Site Modules

Tutorial URL: https://developers.sap.com/tutorials/abap-environment-deploy-cf-production.html
Please specify the step you are referring to
Provide following information:
Module Name: TRAVEL_APP_XXX
Title: TRAVEL_APP_XXX
Click Next.
Namespace   - value is required

Hi @DuoBelt ,
thank you for your feedback. We'll update this asap.
@thecodester Can you merge following pull request: #4610?
Thank you.
Best regards,
Merve

Done


problem between 7.1.3 and 8.1.0 when i use glob.sync

hello， im faced a using problem， below is my code
import { resolve } from "path";
const routeArr = ["user"];
const apipath =  ' D:\workspace\project';
routeArr.forEach(item => {      glob.sync(resolve(apiPath, './'+ item + ".js")).forEach(require);     });
it will return empty array []  in version 8.1.0;
but in version 7.1.3, it will work as expected, and return  filenames array found matching the pattern;

You have to use / as the path separator for glob patterns, as it says in the readme. But you can set the cwd option to set the current working fit for the search.
Try this:
import { resolve } from "path";
const routeArr = ["user"];
const apipath = 'D:\\workspace\\project';
routeArr.forEach(item => {
  glob.sync(item + ".js", {
    cwd: apipath,
  })).forEach(require);
});

Thanks. it resolved.

You have to use / as the path separator for glob patterns, as it says in the readme. But you can set the cwd option to set the current working fit for the search.
Try this:
import { resolve } from "path";
const routeArr = ["user"];
const apipath = 'D:\\workspace\\project';
routeArr.forEach(item => {
  glob.sync(item + ".js", {
    cwd: apipath,
  })).forEach(require);
});

Thanks. it resolved.


Register__StopCameras.bin sends two stop messages when session ended.

Per Bruno's request,
Session [716458\20240422T091200]
When verifying that camera metadata.csv matched that of harp data for session   (ie., SideBodyCamera\Metadata.csv and Register__Camera1Frame.bin), I noticed that Register__StopCameras.bin sent two stop messages when the session ended.

Comparing the CSV file and the bin file of the full session
Since the timestamps match 1:1, the (blue and green) lines overlap perfectly.

Zoomed-in view to better show Register__StartCameras.bin and  Register__StopCameras.bin
The difference between two stop signals is a 1000th of a millisecond so the difference cannot be seen on the chart.

Can you also add the data of the CamTrigger dataframe including the first 10 and last 10 frames? thanks!

Can you also add the data of the CamTrigger dataframe including the first 10 and last 10 frames? thanks!

Register__Camera1Frame.bin

SideBodyCamera\Metadata.csv

Please match the timestamp axis. Your previous post zeros all timestamps whereas your last one doesn't. Thanks!

Please match the timestamp axis. Your previous post zeros all timestamps whereas your last one doesn't. Additionally, try to include text instead of images. Copy-paste to code blocks limited by "```" works fine. Thanks!

Updated comment

As far as I can tell all data looks good.
First frame and last frame arrive in between the start and stop pwm. I will check the workflow but i suspect I am just sending two messages to stop the cameras (one when i stop the logging and a second one when bonsai closes all the hardware). This has no effects on the actual data so not that urgent to fix.

Register__StartCameras.bin

0
MessageType

Time

1809641.9474879999
0
READ

1809641.9545600000
1
WRITE

Register__StopCameras.bin

0
MessageType

Time

1809641.9495039999
1
READ

1812810.4904960000
1
WRITE

1812810.4938560000
1
EVENT

There appears to be an undocumented EVENT type message from this register. I am tracking the issue here: https://github.com/harp-tech/device.behavior/issues/18
Otherwise everything looks good with our workflow


Implement mappings from ontology terms to BioLink model concepts

Review available mappings from terms used in the CAM tbox to BioLink concepts; augment the mappings as required. Determine how to store BioLink mappings within the tbox for use in query answering (i.e. what relation to ontology terms: superclass?)

Ontology = Ubergraph + more
Every CAM entity should have a BioLink type; if it is not bridged, then we need to add an axiom somewhere to make that connection.

Based on https://github.com/TranslatorIIPrototypes/cam-pipeline/blob/master/cam-db-model.pdf, note that the only instances in the graph are in the individual CAMs -- so as long as I create a SPARQL query that focuses on them, I don't need to worry about trying to figure out which graph the instance is in. The key question is: which instances don't have a Biolink class in their type hierarchy somewhere?

Supplemental mappings are included in https://github.com/TranslatorIIPrototypes/cam-pipeline/blob/master/biolink-local.ttl


Rollbar stops sending after few days

We upgraded our java server recently to the recent spring libraries, and rollbar stops sending errors after few days of the server working. Nothing is found in our logs. Is there any way to log locally when rollbar fails to send?
We have other rollbar instances, not in java, that are sending as usual. We also have other java servers that are sending as usual but they are not in production and they are restarted very frequently.

Hi @amiram, rollbar-java and related projects use slf4j, and a failure to send a payload will log an error through slf4j. Whether that ends up in the logs for your app will depend on what slf4j can find in your classpath at runtime, but for example for an out of the box spring-boot app, a failure to send the payload due to a connection refused would result in this, via Logback:
2021-02-26 13:06:07.504 ERROR 340268 --- [buffered_sender] com.rollbar.notifier.sender.SyncSender   : Error sending the payload.

com.rollbar.notifier.sender.exception.SenderException: java.net.ConnectException: Connection refused (Connection refused)
        at com.rollbar.notifier.sender.AbstractSender.send(AbstractSender.java:46) ~[rollbar-java-1.7.5.jar:1.7.5]
        at com.rollbar.notifier.sender.BufferedSender$SendTask.run(BufferedSender.java:239) ~[rollbar-java-1.7.5.jar:1.7.5]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na]
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
        at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

If you have a Logback configuration in your application, the loggers used by rollbar are under com.rollbar, so you should ensure those are configured at level ERROR at least. The specific logger that would report a failure to send an error to Rollbar would be under com.rollbar.notifier.sender.
Can you add here the versions of the rollbar and spring dependencies, as well as the java version? And if possible, the versions under which things were working (what you upgraded from)?
Thanks
Diego

We discovered that lombok was adding an override for toString(). If two classes had a reference to each other, the serializer failed to serialize the object, and also it caused all other rollbar payloads to not being sent right after the first serializer error, even if they had no serializer error.
Example:
@Data
public class User {
    @ToString.Exclude // This solves it. Needs to be in both places if it is lazy loaded
    @ManyToMany
    @JoinTable(...)
    private List<Account> accounts;
}

@Data
public class Account {
    @ToString.Exclude // This solves it. Needs to be in both places if it is lazy loaded
    @ManyToMany
    @JoinTable(...)
    private List<User> users;
}

The fact that a class cannot be serialized is out of our control, but if that causes subsequent payloads to fail as well, we need to look into it. Could you please add the versions of the rollbar dependencies you're using?
Thanks
Diego

We're using rollbar 1.7.5

For further clarification:
We are using Spring Boot as our Java framework. We use Lombok in Java which generates an automated toString method in human readable form. When you call toString on the payload, Lombok recursively moves through all non-primitive class members and prints the values of all primitives.
We were sending a class to rollbar that had a circular dependency (this is not uncommon with JPA). The toString function in this case was causing an infinite loop which led to a stack overflow. This stack overflow occurred in the async thread dedicated to sending data to rollbar. Because this is not an Exception but rather an Error, not only was it uncaught, but it also seems to have killed the thread that was sending data to rollbar. It seems as though there was only one thread responsible for this, and when it died, data stopped being sent to rollbar.
For a fix, you should probably focus on handling an Error in the async thread in a way that the thread does not die. Please let us know if you need any further information from us.

Hi @klethys
Thanks very much for the detailed info.
Yes, there are a few places where we catch Exception instead of Throwable, one for sure is the root cause of your issue, and we'll have a fix for that released in the next few days.
Thanks
Diego

@amiram @klethys this is now fixed in the latest version, 1.7.6.
Thanks for reporting the issue and helping identify the root cause!


feat: added optional description to Icon Items

After attempting to check how the elements were created in the libs repository found this way instead to update them all... however, I am not able to run the scripts as there is some error during the build
 => [builder 6/6] RUN cargo build --release --features vendored-openssl
 => => # error: could not compile `cc`
 => => # Caused by:
 => => #   process didn't exit successfully: `rustc --crate-name cc --edition=2018 /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.69/src/lib.rs --error-format=json --json=diagnostic-rendered-an
 => => # si,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=4210e52f53f6b87b -C extra-filename=-4210e52f53f6b87b --out-dir /usr/sr
 => => # c/plantuml-generator/target/release/deps -L dependency=/usr/src/plantuml-generator/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
 => => # warning: build failed, waiting for other jobs to finish...

@tmorin not sure if you got this PR request in your radar. I think having the ability to display a description is very important to make a diagram readable without relying on the icons / titles only - there is more to the story behind that

Hi @chalmagr
Thank you for the PR.
Let's see how CI will manage it ;)
Best regards

Hi @chalmagr ,
I fixed the main branch. The Inkscape version was not the right one in CI.
You can rebase from the main branch.
Best regards

After pulling in the changes all tests are good


bug: error fetching price

Prerequisites

[X] I have searched for existing issues that already report this problem, without success.

Script Version
version
Platform
Webapp
Current Behavior

it keeps saying error fetching price
Expected Behavior
it should have showed the price
Steps to Reproduce

Additional Information
No response

Seems like a futbin ban, wait for some time and retry again


Brats bundle compatible issue

Describe the bug
Brats bundle is not compatible with 0.9.1.

Could you please include detailed error messages? It'll be useful for the users running into a similar issue.

Hi @KumoLiu This is partly due to the Invertd postprocessing. Please ensure the last preprocessing transform as the Ensuretyped, no the ToTensord.
Or adjusting the preprocessing transforms, some are not invertible.

Hi @tangy5 Thanks for your advice! I just raised this issue to submit the pr to fix the bundle.


New template

Just to let you know the documentation for AthenaJS is now using Docma with a new template (which is based on Docma's default template) and is available here :)

Glad to hear that. Nice work !

I really like the type definition links you added. Is there a reason you didn't link to types within the API too? (For example, linking from the MapEvent constructor to the Map type). That would really be a nice feature to have in docma.

Closing this now. We can improve the template(s) more once we get v2 out.

@mojavelinux Yes, there is a reason. I wanted to do it for API types too but it's not that easy since links can be in different API pages sections.
For example, the ?api=map section contains documentation for Map, MapEvent, Tile but there's no way for me to know that when the links are generated.
I could hardcode it quite easily but I wanted something could be reused by anyone so I decided to leave it as is for now.

Thanks for the explanation. That helps me think about how I'm going to approach this problem. I think links between types is essential in an API, so I'm going to need to find a way to do it if I'm going to be able to use docma for my API docs. This really does seem like something docma should be able to track internally.

I guess it should be possible to do that by poking into documentation global var but I had some timing constraints cc @onury.
I'll have a look when I can find some free time.

This should be a template feature, rather than docma builder core.
Each symbol is a bookmark on that route/page. You could link it via hash.
e.g. ?api=map#MapEvent
Linking could be done via a custom Docma/Dust Filter. So (for the default template) in the symbol partial, you'd do something like this;
{symbol|$type_linked}

$type_linked would be a custom filter, used instead of $type filter.
docma.addFilter('type_linked', function (symbol) {
    // ...
});

I'll play with this in v2 branch, let you know.

That's already what I am doing, the only problem was getting the correct api to link to.

Alright. We can add a utility method to get link for a symbol in docma web-core.

@mojavelinux It wasn't so hard after all: I added link to API objects in the documentation.
I also did the same thing for returned types and for extend types.


Why isn't "a.length > 0" an type-guard that help me Narrowing?

Bug Report

🔎 Search Terms
array length narrowing
🕗 Version & Regression Information

This is a crash
This changed versions is 4.4.4

⏯ Playground Link

Playground link with relevant code
💻 Code

const a:object[] = []
/**
* It can be 'push' 0 or multiple times.
* a[] is an array of arbitrary length
*/
a.push({});a.push({});a.push({});a.push({});a.push({});
while (a.length > 0) {
  // obj: object | undefined
  const obj = a.pop()
  // Object is possibly 'undefined'.
  console.log(obj.toString)
}

🙁 Actual behavior
Object is possibly 'undefined'.
I've obviously determined that the a [] length is greater than zero, which means pop cannot return undefined.
But TS is still telling me that obj might be undefined.I had to useconst obj = a.pop()! to make right.
Is this a bug or is ts not implemented？
If not implemented, Why didn't you do it(I'm very interested in it) ?

🙂 Expected behavior
obj type is not included undefined

Duplicate of #30406. Used search terms: array pop in:title


Remove auth preserving request

Airlift contribution check list

[x] Git commit messages follow https://cbea.ms/git-commit/.
[ ] All automated tests are passing.
[x] Pull request was categorized using one of the existing labels.

https://github.com/airlift/airlift/issues/1315


write migration to delete table 'searches'

with the new search we don't need it anymore

table searches seems not to exist anymore - structure.sql seems to be misleading


fix(learn): Improve tests for the Nest an Anchor Element within a Paragraph challenge

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

I created this PR to address a recurring confusion I see in the Nest an Anchor Element within a Paragraph challenge.  This is the first challenge where the user is introduced to the concept of nesting an existing element into a newly created element.  So many times, a user ends up creating another anchor element instead of just using the existing anchor element.  Creating a new anchor element without the exact attributes/text of the original can lead to problems such as the one in this forum topic.
This PR aims to better guide the user into writing the correct code.  This is similar to the approach we are taking in the v7 curriculum.

@moT01 can you approve this change.

Bazinga! That works

@RandellDawson go ahead and dismiss my review. It should merge the PR.

@raisedadead Cool, so not until you either dismiss your requested change or approve it, will anything else happen?

Cool, so not until you either dismiss your requested change or approve it, will anything else happen?

That is correct. Why don't you go ahead and try dismissing my review?

Woah that's neat.

I just hope this does not get abused.  For instance, if there was a hold out mod that was requesting changes and two other mods approve and just decide to dismiss the other mod's requested changes.

I do not see myself making all that much use of this auto-merge feature, because I often edit the commit message.

@ShaunSHamilton for what it is worth, the default commit message would be the title of the pull request.

because I often edit the commit message.

You will be able to edit the message prior commit. Everything works as usual (the only advantage is you skip the wait for a CI to pass, which could be helpful if we mandated the Cypress tests to be required)
Screenshot of editing commit message prior enabling auto merge:


fix type error "Not a string or buffer"

For contributor use:

[ ] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

@hotrungnhan can you elaborate what this PR should fix? 🤔

@MaxStalker  don't known exactly what is , but if we pass Buffer.from(text) to SHA3.update function it will throw "Not a string or buffer"


hashi-up unable to ssh to fresh DigitalOcean droplet

When trying to run hash-up nomad install on a fresh digitalocean droplet, I'm met with the following error:
$ hashi-up nomad install --ssh-target-addr <IP_ADDRESS>  --ssh-target-key ~/.ssh/id_rsa

There was an issue connecting to your target host.
This could happen when hashi-up can not reach the target host or when the private key authentication is invalid.

Reason: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

How to fix this?

- check if the target host is reachable and an SSH server is running
- check if the user and the private key are valid

What's odd is that I am able to ssh onto the host using root without a problem. Below I'll outline additional context along with my machine specs and stuff.
Context
I'm provisioning my droplet with terraform, using the following config...
resource "digitalocean_droplet" "nomad_server" {
  image    = "ubuntu-22-04-x64"
  name     = "nomad-server"
  region   = "nyc1"
  size     = "s-1vcpu-1gb"
  ssh_keys = [data.digitalocean_ssh_key.corey_mb_air.id]
}

The ssh key above is the public key on my M1 MacBook Air running MacOS 12.5.1. When running ssh<EMAIL_ADDRESS>I am able to log onto the host without a problem. Passwordless login is also enabled.

Interesting.... I just tried this with the image ubuntu-18-04-x64 and it worked completely fine. This only seems to break with image ubuntu-22-04-x64

Found the solution.... https://askubuntu.com/questions/1409105/ubuntu-22-04-ssh-the-rsa-key-isnt-working-since-upgrading-from-20-04
tl;dr: RSA SHA-1 hash algorithm is being deprecated. Using a more secure key allowed this to work 👍


Deduct Time for Incorrect Answer

WHEN I answer a question incorrectly
THEN time is subtracted from the clock

Complete - Every incorrect question loses 5 seconds on the clock.


autoNumeric 2.0.7 npm packages causes build error with typescriptify + browserify

When building a typescript project with gulp, browserify, and typescriptify, we get build errors from the autonumeric npm package:
TypeScript error: main.ts(24,8): Error TS2656: Exported external package typings file 'node_modules/autonumeric/typings.d.ts' is not a module. Please contact the package author to update the package definition.
If we edit the node_moduels/autonumeric/package.json file and remove the typings setting, we get past this error and then encounter issue #388

There is an interesting answer about how to generate a typings.d.ts file, but since that file has never been updated to reflect the current real version of autoNumeric, we can assume it's not widely use and we'll just remove it.


chore: release 1.1.0

:robot: I have created a release *beep* *boop*
1.1.0 (2019-06-18)
Features

add v1 client (#43) (0707792)

This PR was generated with Release Please.

Release is at https://github.com/googleapis/nodejs-containeranalysis/releases/tag/v1.1.0

The release build has started, the log can be viewed here. :sunflower:

:egg: You hatched a release! The release build finished successfully! :purple_heart:


[fuchsia] Add explicit sources to a few targets.

We are likely to end up letting these get out of sync because we don't have pre-commit tests for Fuchsia. Is there some way it would make sense for us to test this?

It turns out we could leave the sources parameter empty, and not worry about keeping it in sync. I'll follow up with another CL.

https://github.com/flutter/flutter/pull/15337


Accessing DB context from

How can I access my DB context from event handlers? For example I would like to check access rights in a different method, hand out tokens for my clients and then in OnBeforeCreateAsync connect to database and check that the valid token has been supplied or update database that file has been uploaded in OnFileCompleteAsync.

It depends on what framework you are on. If running on asp.net core I would suggest using AsyncLocal to get a per request static instance of your DbContext that you can use. https://msdn.microsoft.com/en-us/library/dn906268(v=vs.110).aspx
On OWIN you could use the same technique as above or use HttpContext.Current (if you are referencing System.Web).
Ideally one would like to have the IServiceCollection from asp.net core in the event context but since tusdotnet runs on multiple frameworks this isn't possible in an easy way.

I'm on .Net Core 2.0.
If I inject it into Configure by the time the OnBeforeCreateAsync executes it's disposed.  I think that using AsyncLocal would have the same problem - the issue isn't getting a reference to dbcontext.
I think it would have to get injected in Invoke: https://github.com/tusdotnet/tusdotnet/blob/8872d101d3aa440ca83b98fcc6d00a11e541c059/Source/tusdotnet/ExternalMiddleware/Core/TusCoreMiddleware.cs#L34

I have solved it like this:
public void ConfigureServices(IServiceCollection services)
{
services.AddScoped();
}
public void Configure(IApplicationBuilder app, IServiceProvider serviceProvider, ILoggerFactory loggerFactory)
{
...
app.UseTus(context => context.RequestServices.GetService());
app.UseMvc();
}
So far so good.

Thanks for the pointers, really appreciate it.


fix k8s.py scheduler

Many changes are necessary to work with k8s 1.1.1 (k8s.py was written for 1.0.2). This still needs a lot of testing and fixing up, but I wanted to push it out in-progress so others could help test and tell me what I'm doing wrong. :-)
TODO:

[x] use docker-py or controller's existing Docker client instead of the existing docker code
[x] debug logging for main scheduler operations
[ ] pod deletion errors on deis destroy
[ ] improve "find first container port" logic somehow--can't do TCP to docker port as we did before...

for my knowledge (and not a suggestion for this PR) - is it worth rewriting this in Go at some point?

The controller was originally built using Django. We once considered moving the API server over to Go but found that a complete rewrite wouldn't give us any technical benefits other than being able to use code shared across the rest of our packages.
That being said... Yes, at some point it would be worth rewriting the controller in Go, but we rely on a lot of features like LDAP auth which won't be easy to port over.

@bacongobbler got it, thanks especially for the history

This isn't working perfectly, but is ready for review nonetheless because 1) it moves the ball forward, and 2) others working on Deis v2 need to build off this code and are blocked.

@mboersma I can't seem to get this to run by hacking with the helm chart, injecting my built image and then running helm install deis. Seems like it cannot connect to etcd:
+ etcdctl --no-sync -C :4001 ls
+ echo 'waiting for etcd at :4001...'
waiting for etcd at :4001...
+ sleep 10

Which is similar to what @rimusz was saying earlier this morning. I'll see if I can write a patch to the etcd service.

@bacongobbler are you testing with the proto-Deis chart? I'm guessing it isn't finding $DEIS_ETCD_1_SERVICE_HOST.

nvm, it was because I deployed deis-workflow manually, then did the rest which caused $DEIS_ETCD_1_SERVICE_HOST to not be present, which then caused further issues. I'll use helm install deis moving forward. Disregard!
EDIT: heh, you realized that too

Got this error ("name does not resolve"):
ERROR knotty-caffeine: knotty-caffeine_v2.cmd (scale): [Errno -2] Name does not resolve
ERROR [knotty-caffeine]: knotty-caffeine_v2.cmd (scale): [Errno -2] Name does not resolve
ERROR Internal Server Error: /v1/apps/knotty-caffeine/builds/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/rest_framework/viewsets.py", line 85, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/rest_framework/views.py", line 407, in dispatch
    response = self.handle_exception(exc)
  File "/usr/lib/python2.7/site-packages/rest_framework/views.py", line 404, in dispatch
    response = handler(request, *args, **kwargs)
  File "/app/api/views.py", line 140, in create
    return super(AppResourceViewSet, self).create(request, **kwargs)
  File "/app/api/views.py", line 117, in create
    return super(BaseDeisViewSet, self).create(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/rest_framework/mixins.py", line 21, in create
    self.perform_create(serializer)
  File "/app/api/viewsets.py", line 21, in perform_create
    self.post_save(obj)
  File "/app/api/views.py", line 256, in post_save
    self.release = build.create(self.request.user)
  File "/app/api/models.py", line 757, in create
    self.app.deploy(user, new_release)
  File "/app/api/models.py", line 475, in deploy
    self._default_scale(user, release)
  File "/app/api/models.py", line 519, in _default_scale
    self.scale(user, structure)
  File "/app/api/models.py", line 311, in scale
    self._scale_containers(scale_types, to_remove)
  File "/app/api/models.py", line 344, in _scale_containers
    **kwargs)
  File "/app/scheduler/k8s.py", line 270, in scale
    if not 200 <= self._get_rc_status(rc_name, app_name) <= 299:
  File "/app/scheduler/k8s.py", line 139, in _get_rc_status
    'namespaces/'+namespace+'/replicationcontrollers/'+name)
  File "/usr/lib/python2.7/httplib.py", line 1053, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1093, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 893, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 855, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 832, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 557, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name does not resolve
<IP_ADDRESS> "POST /v1/apps/knotty-caffeine/builds/ HTTP/1.1" 500 27 "Deis Client v1.12.1"

this was during a deis pull deis/example-go -a knotty-caffeine

Odd. Tried again but there was no failure this time. Might've been transient?

Also saw this when attempting to scale:
INFO italic-utensils: bacongobbler scaled containers cmd=3
INFO [italic-utensils]: bacongobbler scaled containers cmd=3
DEBUG scale italic-utensils_v2.cmd, img italic-utensils:v2, params {u'num': 3, u'tags': {}, u'aname': u'italic-utensils', u'version': u'v2', u'memory': {}, u'cpu': {}}, cmd ""
ERROR italic-utensils: italic-utensils_v2.cmd (scale): Successfully assigned italic-utensils-v2-cmd-b7rah to <IP_ADDRESS>
ERROR [italic-utensils]: italic-utensils_v2.cmd (scale): Successfully assigned italic-utensils-v2-cmd-b7rah to <IP_ADDRESS>
<IP_ADDRESS> "POST /v1/apps/italic-utensils/scale/ HTTP/1.1" 503 77 "Deis Client v1.12.1"

Not sure what the issue is... Seems like an error when the operation succeeded?

Wow. This is a really fabulous cleanup. I had a few comments, but none of them should block this from getting merged. So I'm LGTMing.

this gets my LGTM as well. There's more work to be done for sure so let's get this sucker merged and see where we stand from there :) :shipit:


Add API to invalid sessions/exchanges for UpdateNOC command

Problem
Per spec:

All internal data reflecting the prior operational identifier of the Node within the Fabric SHALL be revoked and removed, to an outcome equivalent to the disappearance of the prior Node, except for the ongoing CASE session context, which SHALL temporarily remain valid until the NOCResponse has been successfully delivered or until the next transport-layer error, so that the response can be received by the Administrator invoking the command.

Change overview
Add API required by UpdateNOC command

ReleaseSessionForNodeExceptOne: invalid all sessions except one which is used by UpdateNOC command
AbortExchangeForNodeExceptOne: invalid all exchanges except one which is used by UpdateNOC command

Testing
These APIs should be tested by UpdateNOC feature.

The tests all pass...which imply then that we don't test UpdateNOC today as part of automated testing, since that should have failed?

The tests all pass...which imply then that we don't test UpdateNOC today as part of automated testing, since that should have failed?

@mrjerryjohns This PR just adds some early APIs which aren't called yet.


DOC: Fix typo in documentation of scipy.stats.morestats

What does this implement/fix?
This PR fixes a small typo in the documentation of scipy.stats.morestats.
Reference: https://www.jstor.org/stable/2286009?seq=1

Thanks @kechtel! If you'd like your name added to THANKS.txt, please make an entry here.


Bot: Reverse string

Too simple/boring?
Alternate/related, Is Palindrome Bot

In general I don't think there's anything that's too simple/boring. :)
This one does depend on whether the participants will be tempted by the Prelude.reverse function or will want to write it themselves? They'll still have to find the function, which will force them to use ghci or hoogle.

Given we're not doing fold or pattern matching of lists I'm going to drop this one for now. Sorry Peggy.


Cannot assign a value of type 'ChartLimitLabelPosition' to a value of type 'ChartLimitLine.ChartLimitLabelPosition'

Yo guys,
excellent work this project is!
I was converting the demos from ObjC to Swift one by one but I have incurred in two compilation issues.
Example 1:
        // x-axis limit line
        var llXAxis = ChartLimitLine(limit:10.0,label:"Index 10")
        llXAxis.lineWidth = 4.0;
        llXAxis.lineDashLengths = [(10.0), (10.0), (0.0)]
        llXAxis.labelPosition = ChartLimitLabelPosition.Right
        llXAxis.valueFont = UIFont.systemFontOfSize(10.0)

That gives me the error:
Cannot assign a value of type 'ChartLimitLabelPosition' to a value of type 'ChartLimitLine.ChartLimitLabelPosition'
Another issue is this one:
self.chartView!.legend.form = ChartLegendForm.Line

Cannot assign a value of type 'ChartLegendForm' to a value of type 'ChartLegend.ChartLegendForm'
Any help is welcome.
I can also publish the Swift code at the end once I manage to compile it!

self.chartView!.legend.form = .Line. It's Swift.

Wow thanx, my fault Swift syntax is still weird to me!


proposal: Custom vapid build, new vapid publish, and One Click Deploy

Had a bit of a crazy idea and wanted to document it :)
Is your feature request related to a problem? Please describe.
With #155 in the works, we now have even more potential for multiple methods for application distribution. Ex:

Deploy dashboard to vapid hosting (the current lib/deployer.js script)
Deploy dashboard to Heroku
Deploy dashboard to DigitalOcean
Deploy static site to Surge.sh
Deploy static site to a Google Cloud Bucket
Deploy static site to AWS Bucket
And so on....

The potential deploy targets list is very long, and we can not hope to commit each and every deploy implementation to the @vapid/cli package.
Luckily, a good pattern has emerged in the past few years from CLI runners like ember-cli and vue-cli for module based CLI plugin systems. By adopting this pattern for Vapid deploy scripts, we can enable easy configuration of the vapid deploy CLI behavior, and an opt-in deploy button built into the dashboard for simple, one-click deploys.
Describe the solution you'd like
These three use cases should be fulfilled.

As a developer, I want to opt-in to a production deployment strategy for the Vapid Server by installing a module in my main project template.

As a developer, I want to opt-in to a production publishing strategy for the Vapid Builder's static sites and a new vapid publish command to go with it.

As a content author, I want a simple one-click publish button in the Vapid dashboard to publish a static build of the site.

As a deployment package author, I want to be able to author packages that customize the vapid deploy command.

As a deployment package author, I want to be able to author packages that customize the vapid publish command.

To enable these user stories, this will require a number of changes to @vapid/cli:

Turn vapid deploy into a no-op by default
By default, the vapid deploy command will print a message like: "No Vapid deploy strategies discovered. Please install a Vapid deployment strategy module in your project template to enable deployments."

Add vapid publish, which is a no-op by default
By default, the vapid publish command will print a message like: "No Vapid publish strategies discovered. Please install a Vapid publish module in your project template to enable static site publishing."

Auto-discover vapid-module packages
On startup, @vapid/cli will look for top-level installed packages in the template's that are tagged with the vapid-module in its package.json keyword. The discovery of this tag means it is a Vapid module and will customize the behavior of @vapid/cli.

Discover vapid-modules that deliver an onDeploy() or onPublish() hook
As I'll describe below, vapid-module's main export will be a configuration object that delivers zero to many custom event hooks that will be called during regular @vapid/cli execution. In this proposal, onDeploy() and onPublish() will be the first hooks introduced.

Call discovered onDeploy() and onPublish() methods on vapid deploy
When vapid-modules are present that have an onDeploy() hook, the vapid deploy command will no longer print a warning, and instead call each discovered package's hook. Note: this allows for a site to have multiple deploy targets. A potentially handy feature.
When vapid-modules are present that have an onPublish() hook, the vapid publish command will no longer print a warning, and instead call each discovered package's hook. Note: this allows for a site to have multiple publish targets. A potentially handy feature.

When an onPublish() capable module is discovered, show a "Publish" button in the Dashboard
This "Publish" button will call out to a new dashboard route /publish. Under the hood, this calls the same series of hooks that vapid publish does. For static site deployers, this button should always be present so content creators can deploy their sites to production without bothering maintainers.

Maintainers of Vapid deployment modules have two requirements:

Add the vapid-module to their package's keywords field in package.json.
The main entry of the module should have a default export that implements zero to many of the hooks made available by @vapid/cli.

Hooks
We should be judicious with adding hooks. I can envision a future with beforeStart, afterStart (for modifying the server and adding middleware), beforeBuild and afterBuild (for modifying the static build), and initialize hook for when the addons are all mounted, etc, but that poses a lot of problems I don't think we want to deal with right now! In this proposal, only two hooks will be available to addon:

/**
  * onPublish and onDeploy are passed the Vapid runner instance used for that project build type.
  * This object contains a reference to all Models, the database connection, absolute project paths, etc. and should contain everything needed to deploy the site.
  * Both methods should return a Promise that resolves with a URL that either a) shows deployment status, or b) is the location of the newly deployed site. This can be used for visual feedback (ex: opening a browser window on deploy) or CLI feedback.
**/
export default const VapidAddon  = {
  async onPublish(vapid: VapidBuilder): Promise<string>  {
    // Static deploy code goes here
  },
  async onDeploy(vapid: VapidServer): Promise<string> {
    // Server deploy code goes here
  },
}

Additional Context
The Publish button in the dashboard has a lot of utility for static site deployments. The dashboard can be hosted on a separate server for content creators (ex: beta.nameofsite.com) and can serve as a preview of site content. When they hit "Publish" it will upload static files to nameofsite.com. However, for full server deployments, the use case of this button becomes more confusing... When deploying the full Vapid server to a hosting service (ex: pushing new template updates to beta.nameofsite.com in the above scenario) the in-product button is far less useful. Content creators will never need to run this deployment, so the button does not need to be in-product. Because server deployments are intended only for site developers, not content creators, it may make sense not to show it. This is why I differentiate between onPublish() and onDeploy() hooks. The dashboard will only show the button in the if an onPublish() hook is discovered.
Describe alternatives you've considered

Commit all deploy strategies directly to @vapid/cli.
Keep this process manual and require CLI access to the development machine for custom deploy strategies. (This becomes difficult and onerous for frequent static site deploys, and requires self-hosted Vapid maintainers to also maintain custom deploy workflows)
Use a custom fork 🤫

(Note: Edited with a non-insignificant proposal change 🙂)

100% understand the need to have a default deploy strategy, and to walk that line between open source and enterprise software 🙂
I see three options here to incentivize Vapid as the default deploy strategy for new projects:

We can bake the default vapid deploy into the main codebase as it is now
We can have the main codebase depend on a `@vapid/vapid-deploy that will function like the plugins above, but during plugin resolution we fall back to it if no other deploy strategy is found
We add @vapid/vapid-deploy to the project template so it is in new projects' package.json by default. In the version this is added to we can code mod the upgrading project to add it as a dependency. (I'm all about the automated upgrade code mods)

I'm partial to option three from a technical standpoint – option one has us not dogfooding our own plugin system, and option two has dependency management issues (users aren't in control of their deploy strategy version, we'd need to do an otherwise unnecessary publish of @vapid/cli to update the deploy script, and we're now managing hook inheritance during plugin resolution). However, option two may be more business sensible since its more strictly enforced! Open to either.

The Publish button in the dashboard has a lot of utility for static site deployments. ... Content creators will never need to run this deployment, so the button does not need to be in-product.
Agreed. What if we just showed it when the server was run in development mode?

I think we can do one better and only show it if there is a discovered onPublish hook delivered a plugin! By default, it won't be there since the default site template won't make opinions about the publish strategy – only the deploy strategy. (Unless you want to add static site publishing to the hosted Vapid product to reduce costs! Then we can provide a default publish strategy using the same method we pick for above).


clang_complete is not working

Installed a vanilla copy of clang_complete. :omnifunc, :completefunc and :messages report that ClangComplete is loading up just fine. Although, I am not getting any suggestions when editing cpp files... No other suggestion or code completion is installed except what's standard here.
Really want https://github.com/Rip-Rip/clang_complete to work here. What could be interfering?

Please report in their repository. I don't think this is related to this vimrc.


Better checks during startup: Keys and Keyring

We should impose certain constraints on keys in the keyring:

Cannot be empty string
Should be of definite length
Should be ':' separated and have no other special characters.

Note: The keyring only needs to be ':' separated when it is being set via an environment variable. One can also edit the bigchaindb config file (JSON) manually, in which case the keyring is a JavaScript array of strings, like ["string1", "string2", "string3"]

Point to note here is that, for the first node in the cluster, the keyring should be unset.
For example, if using the environment variable BIGCHAINDB_KEYRING is set to a null string "", the BigchainDB node tries to wait for a vote from a member with "" as the public key, and this results in a block never getting into a valid state.

In a BigchainDB config file (JSON), you can have
   "keyring": []

and that will work fine. It gets problematic when you try to set an empty keyring using the BIGCHAINDB_KEYRING environment variable. Setting it to "" doesn't work.
One idea: If the environment variable BIGCHAINDB_KEYRING is set, and it equals "EMPTY" (or some other special value), then internally, inside BigchainDB Server, set the keyring to an empty list. (If its value is "falsy", such as None or "", then raise an exception?)

There are a lot of issues about things that can go wrong when starting bigchaindb: configuration file, database setup, ...
Maybe we should create a project that would run some pre start routine to check that everything is configured correctly before starting bigchaindb to address all these issues.


Discuss about using Dapr in Chapter 3 to not slow down development during transition from monolith to Microservices

Is your feature request addressing a specific issue? Please elaborate.
Some individuals have suggested that the next stage of evolution could involve the incorporation of Dapr. This would enable us to maintain our focus on the business aspects rather than getting entangled in Microservices infrastructure management.
Please provide further details on the proposed solution.
I would like to initiate a discussion on this matter.

After internal discussion we decided to not spend time on this specific technology.
🤖 After internal discussion, we've carefully considered the suggestion of incorporating Dapr into our evolutionary architecture. However, we've decided not to pursue this specific technology at this time. Instead, our focus is on addressing more generic challenges that can provide value to most developers. 🙅♂💼💡


Vercel Deployment Issues

Main "start chatting" page when clicked, changes URL to login, however, will NOT actuall hide the start chatting page once deployed to vercel.
The locally hosted version works great but a deployed version will not. Anyone have any idea?

Better yet, can we just remove that "start chatting page"????... im not sure it is really very useful

Same issue on my side.
Moreover, when following the instruction on the Readme, it appears that I actually pushed onto my github fork project the service role key.... which is of course not acceptable. I had to revoke the supabase project to erase the key. How to modify the migration file into Github without creating a security issue ?

According to the doco you don’t use the .env.local file with Vercel or even locally.  Just set the environment variables in Vercel.  That is the correct secure approach.

Same issue on my side.
Moreover, when following the instruction on the Readme, it appears that I actually pushed onto my github fork project the service role key.... which is of course not acceptable. I had to revoke the supabase project to erase the key. How to modify the migration file into Github without creating a security issue ?

According to the doco you don’t use the .env.local file with Vercel or even locally. Just set the environment variables in Vercel. I do the same for self hosted. That is the correct secure approach for Vercel.

Sure, I know about the env.local to be filled in within the Vercel portal. But my concern is about the migration file for which two lines must be modified (see the Readme). If I am not mistaken, the project url and the service role need to be kind of « hard coded » into that file… that is being pushed and synced with the GitHub remote repository…

@djuillard yeah as far as I know, the igration files ar eonly used for the supabase setup so you dont need to reference them after that occurs on your initialization of the app :) -- I would be cognizant of the RLS though

Tried troubleshooting for 3 hours tonight and nothing. Anyone have any ideas? Ive tried:
Altering the page.tsx code > did NOT work. It would jsut refresh the screen constantly.
Altering the .env variables file etc as mentioned before to no avail
Anyone have any solutions> I think the bet idea is to remove the start chatting page.... Can we get some votes on that?

Sorry do you actually have an issue\problem?   Or just want to hide the "Start Chatting Page".
I actually like the "Start Chatting Landing Page"

en when you build the DB you can keep the original code, and run that specific migration sql a

OK, very clear, thank you, I didn't know that!

@spammenotinoz Ok well we dont have to remove that page, it was just a secondary thought. Yes i do have an issue. Same thing I had said earlier. Running the program locally works fine, on vercel, I cannot get past the starting page.
When i click the "start chatting" button, it changes the url to the /login route, but then "something" happens. When i check the console logs, there are no errors. So either the when that button gets clicked, its hitting an error when rendering the login page (or its not), but either way it just shows the start chatting page and no way to click past it.
I have opened up a Vercel issue as well. Im not sure if its something to do with the transition of server to client side rendering or something like this.
I see @mckaywrigley commended in a "use client" tag at the top but i'm not sure its purpose, as there are no reference imports.

Anyways.. Any Thoughts? I'd love to fix this for future users... thanks

Ok now ive confirmed Im not going crazy. I decided to completely re-fork the newest branch and deploy right to vercel and theres an error - will not show up on newly deployed vercel at all .
We've got to look at the updates made last few weeks and make sure that the app can be deployed and wthe updates created that now will not allow it to be deployed.

@djuillard Yes exactly.  With Next.js, you need the supabase environment variables in there exactly correctly (in the vercel environment), for deployment. So just make sure you have those in there exactly like this and redeploy. That worked for me.


bug: PR auto-test runs on changes from target branch

Context: https://github.com/meltano/hub/pull/961#issuecomment-1290845199

It seems to have happened here too:

db2: https://github.com/meltano/hub/pull/964#issuecomment-1290964895
Postgres: https://github.com/meltano/hub/pull/964#issuecomment-1290966187

I'm pretty stumped by this right now. Given the low impact I'm going to deprioritize this for now. @pnadolny13 Let me know if this becomes a greater issue.

@pnadolny13 Have you noticed this problem since #971 was merged? I think that PR might've fixed this issue too.

@WillDaSilva I havent noticed it recently so yeah that probably fixed it. We can close this for now and re-open if we notice it pop back up again.

@WillDaSilva I'm not sure if this is the same cause but I saw it again on https://github.com/meltano/hub/pull/1047#issuecomment-1329391160. tap-spotify wasnt changed in my PR but it got tested anyways, the others were correct. I re-opened this issue but feel free to close and open another if this isnt the right spot for its.

Looks like there was an edit 2 days ago on tap-spotify--matatika here:
https://github.com/meltano/hub/commits/main/_data/meltano/extractors/tap-spotify/matatika.yml
This likely caused the diff between the the feature branch for #1047 and main.

@aaronsteers ahh ok so if I understand correctly thats expected behavior because my PR branch was out of sync? If so we can re-close this 😅

Yeah - I think that's it. The diff against main seems to work properly, just that 'from us' or 'from them' isn't distinguished. We could additionally try to pass this through a  'changed by us' filter, but I think for now, we're probably okay to keep deprioritized.


Refactored ElasticSearchRepository

PR for #58
To follow: AmazonEsRepository which sends the data into AWS Elasticsearch service (has to run a signing algorithm for the request to be successful)

Coverage decreased (-0.7%) to 73.404% when pulling 046ce44ffd9fea3f2ca34f978c7f12f6e7dbcd27 on 58 into 120fa0415e84ff111322349aada18612e6ab992e on master.

Coverage decreased (-0.7%) to 73.404% when pulling 046ce44ffd9fea3f2ca34f978c7f12f6e7dbcd27 on 58 into 120fa0415e84ff111322349aada18612e6ab992e on master.


Python URL Shortener

Develop a URL shortening service that takes a long URL and generates a short, shareable link.

please assign it to me

please assign it to me

Assign it to me


After upgrade to 0.50.0 I get: " Extension of type 'VersionCatalogsExtension' does not exist "

[ ] I have read the guidelines for submitting issues

🐛 Describe the bug
I upgraded to 0.50.0 (from 0.40.2) by updating the version number in settings.gradle.kts and buildSrc/settings.gradle.kts
⚠ Current behavior
gradle refreshVersions fails with this message:
> Task :refreshVersions FAILED

----------------------------------------------------------------------------------------------------------------------------------------------------
183 projects                                                                                CONF        EXEC    TOT EXE FLD SKP UTD WRK CHD NSR ACT
----------------------------------------------------------------------------------------------------------------------------------------------------
: .............................................................................. FAILURE [  5.634 s] [  0.013 s]   1   1   1   0   0   1   0   0   1
----------------------------------------------------------------------------------------------------------------------------------------------------

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':refreshVersions'.
> Extension of type 'VersionCatalogsExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, BasePluginExtension, DefaultArtifactPublicationSet, IdeaModel, NexusStagingExtension, KoverProjectConfig, KoverMergedConfig, ReportingExtension, LicensePluginExtension, NodeJsRootExtension, YarnRootExtension]

📱 Tech info
Outout:
https://gist.github.com/jschneider/e7f2e61d72ddfa152e581f812d57ea52
Gradle: 7.4.2
Ubuntu 22.04
Java 17.0.4

Build Scan URL

Thanks for the report.
You can probably work it around by creating an empty grade/libs.versions.toml file for now.
I'll make a quick fix for that in 0.50.1

I created the file:
touch gradle/libs.versions.toml
Seems work fine now! Thanks!

Fixed in 0.50.1, thank you again for the prompt report!


 Luckily, I was able to pretty quickly figure that out both times, but many users might not. Its a quality IDE, but the updates are total garbage.  Just an FYI

VSCode Version: 1.11.2
OS Version: Windows 10

Steps to Reproduce:

Try to update
Update fails

On the flip side, I have daily updates (if not bi-daily) with VSCode-Insiders and it's never been a problem.

I encountered the same issue from time to time.
Since VSCode is targeted to developers, though, I would assume that the majority of VSCode users would be able to figure out how to solve this problem. Not saying it is ok like this, just that it's less critical an issue in my opinion.

@svanetten1976 Could you help us reproduce and figure out which process lingers? i.e. this might be a deeper problem than just updating (VS Code processes might linger around in other cases). To find out which process remains, you can use e.g. process explorer and hover over the process to find out its arguments:

Once we identify which process is lingering around, we can proceed investigating.

Hi @alexandrudima thanks for getting back to me. Well, when I shut down those rogue processes that were preventing the update (and preventing the program from even re-opening), I used the native Resource Monitor to end those tasks. Here is a screenshot of what it was like, but this is with everything working now that I've righted the update. I wish I had taken a screenshot of both the rogue processes I had to kill yesterday and the error message alert that was thrown when I first tried to launch VS after the failed update. I can't imagine I am the first person to have reported this issue? Anyways, if this occurs again in a future update, I will try to capture as much relevant information as possible and follow up for you. Thank you for looking into this, I'm sure its something your team wants to get fixed. Cheers -- Steve

Thank you @svanetten1976
VS Code has a multi-process architecture. This allows us to be as fast as possible even if some extension miss-behaves and ends up in a computationally intensive task (a nice way of saying a while true loop ... ).
To fulfil their purpose, extensions themselves sometimes decide to spawn additional processes (e.g. language servers for rich language features, etc.). Sometimes we spawn short-lived processes to speed things up (e.g. searching in files spawns multiple processes).
The interesting case is if any of these places forget to properly kill their child processes. Since there are so many processes being spawned for various tasks, it is sort of important we figure out which process lingers. The best way to find out which one it is is to use a tool such as process explorer which can show the command line arguments the process was spawned with.
It is not so interesting to see these processes when VS Code is running, but more interesting to find out what they are when VS Code is shut down.
Under normal conditions, all processes are killed or shut themselves down gracefully, but there might be certain cases where this doesn't happen. We're considering adding a watchdog process that could monitor them, but we don't have that implemented at this time.
Thank you for getting back to me, and if you spot any VS Code processes running after you closed VS Code, please do let us know.

@alexandrudima OK, I figured it might have been a VS extension that wasn't being properly shut down that was causing the problems I encountered. If I run into this issue with the next update, I will do a better job of documenting it and let you know. Thanks for taking the time to reply to this post. Have a good day! -- Steve


Add python side tests

Currently we have no tests for the python package

I'm going to close this. We may want more python side tests in the future, but we have a few now and they're quite helpful!


Extract result automatically for wrapped RPC calls

@vgrichina can you add more information about what you'd like to see? I'd love to see some example code/responses

@chadoh I think this is done already in Contract


how to use open-source models?

Please add examples using local open-source models, like llama or chatGLM. Thanks

I think we should add this, it's an easy win and open doors for many efforts @yuyuan223 @basicmi

thx for the advice. Just try to understand better about you needs. You need local open-source models because of the concern about gpt cost? or from the privacy perspective? or other reasons?

more than that, I think we can play with different models in the same game and compare them.

I saw in the video the ability to select open source models, but when I ran skyagi I found that it was not possible to choose. Is it not supported yet?

We are working on the local/cloud-hosted open-source LLM support, with the help of https://github.com/tensorchord/modelz-llm.
It should be available next week.

I successfully run skyAGI with lmsys/fastchat-t5-3b-v1.0 on my PC, without the GPU:
# Terminal 1
modelz-llm -m lmsys/fastchat-t5-3b-v1.0 --device cpu
# Terminal 2
export OPENAI_API_BASE=http://localhost:8000
export OPENAI_API_KEY="anystring"
skyagi

I have some workarounds to

change the embedding size (from 1536 to 384 because I am using sentence-transformers/all-MiniLM-L6-v2 which generates 384-dimension vectors) #92
Upgrade to latest langchain (Could use openai-gpt-3.5-text-davinci-003 to avoid #93 )

I will write a doc for it.

Thank you @gaocegege for writing a doc, because so far I can't make it work:
pip install modelz-llm transformers sentencepiece accelerate
modelz-llm -m lmsys/fastchat-t5-3b-v1.0 --device cpu

works, but skyagi doesn't add fastchat to its list.


Story/add bussiness rules arch test

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

Comparison is base (f03315b) 96.81% compared to head (fef7754) 96.84%.
Report is 2 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
+ Coverage   96.81%   96.84%   +0.02%
==========================================
  Files          61       61
  Lines         533      538       +5
  Branches        9        9
==========================================
+ Hits          516      521       +5
  Misses         14       14
  Partials        3        3

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


Arch arm float impl disable

Addressing #15981
Currently on top of #16005.
The top 5 commits is the actual patch:

introduce k_float_disable system call
implement for ARM and refactoring for x86
minor update to fp_sharing test
add an arch- Kconfig dependency to FLOAT
documentation updates, to align the text with the new design

FYI @jtguggedal

@andrewboie, pls, review this patch

There is no usage of CONFIG_FLOAT in ARC architecture (or other ARCHes). It is not used in cmake for arc, either, although it's true that some arc SOCs do select CPU_HAS_FPU. This selection makes "some" sense, as it declares capabilities, but it is effectively, not used.
I think we should go by the spec here; ARC does not, currently support FP services and should be blocked at Kconfig level. If floating point services are, in the future, enabled for arc, we should first update the spec and then we can add arc in this list!

I thought FP was supported for ARC as well. I see all the context save/restore macro's as well as compiler flags. But, indeed I don't see it used in any test/sample software (e.g. fp_sharing test) and it's not documented. I'll create an new issue for this, as a reminder.


Moodle exemple

Moodle supported xAPI, cf https://moodledev.io/docs/4.4/apis/subsystems/xapi and is a relatively popular open-source LMS.
I understand that the goal of the library is to be applicable to any LMS, or even beyond that any backend that implements and expose xAPI. Yet, I believe it could be helpful for discovery by developers to provide examples for popular LMS implementations. In order not to bias such examples it could also be interesting to give examples to alternatives, e.g SenseiLMS (even though for now https://github.com/Automattic/sensei/issues/357 they don't seem to support xAPI in core at least) or rather https://github.com/LearningLocker/learninglocker but as LRS rather than LMS.

My bad, seems Moodle is native only, no more Web based, so probably not a great example of inclusivity. Maybe better to find a proper entire suite (with containers) for better DevEx.

My bad... someone I clicked on the search engine first result which lead to https://moodledev.io/general/app/development/setup/docker-images which is for the client app, not the backend. That makes a lot more sense now. Consequently I still believe a Moodle example would be useful. Apologies, re-opening.

Could possibly rely on https://github.com/moodlehq/moodle-docker?tab=readme-ov-file#quick-start-with-gitpod got an end-to-end testing environment.

Hi @Utopiah, thanks for your query.
Are you asking for a basic example of how a piece of learning content that is uploaded to Moodle can communicate with it via xAPI? I'm not familiar with the implementation(s) of xAPI within Moodle, is it trying to act like any other conformant LMS or is it configured in a specialised way that needs xAPI call structures to be explicitly designed for it? It looks like there are broad use-cases in Moodle e.g. creating a plugin/application that can leverage xAPI to read/write data for the learner in a non traditional e-learning capacity. It also doesn't look like it supports standard xAPI e-learning module tracking out of the box, some additional plugins may be required and some specific configuration required in the learning content for compatibility.
Do you have an example of your use case of how you would like to leverage this library with Moodle? That should help narrow down if its possible and see if there are any nuances to the implementation.


tfsec reports 3 potential problems

We are using tfsec in our CI pipeline and it reports "3 potential problems" with the resources generated by this module:

[AWS002][ERROR] Resource 'module.remote_state:aws_s3_bucket.replica' does not have logging enabled
[AWS017][ERROR] Resource 'module.remote_state:aws_s3_bucket.replica' defines an unencrypted S3 bucket (missing server_side_encryption_configuration block)
[AWS002][ERROR] Resource 'module.remote_state:aws_s3_bucket.state' does not have logging enabled

The detailed explanation of the detected errors and their possible solutions can be found on the tfsec website:

AWS002 no logging enabled
AWS017 missing server_side_encryption_configuration block

Although, to have the possibility to enable logging may be relevant, I am not sure if it make sence to have server side encryption in the replica as we are replicating an encrypted S3 anyway... (BTW how do we restore the replicated S3 in case we loose the kms key together with the S3 bucket in the first region?)

Hi @Cajga
AWS017 should be sorted by
https://github.com/nozaq/terraform-aws-remote-state-s3-backend/pull/42/commits/845b8222d5f444fa3757f134b4a10ba2b75ae036
I will work on logging feature in a separate PR

Just merged #42, which resolve server_side_encryption_configuration warning.

I think we can close this ticket. Logging feature is available. You can set enable logging with s3_logging_target_bucket and  s3_logging_target_prefix variables.


added Washington State University's Executive MBA

For more context, their curriculum covers Business Analytics, Data Collection, Analysis, Sampling, Database Management, modeling, and much more.  Here's an entry on their blog as to what Big Data means to EMBA students: http://embaonline.wsu.edu/resources/articles/why-big-data-means-major-opportunities-for-emba-students/

closing this as a duplicate


Declare default language on root node

See https://github.com/bpmn-miwg/bpmn-i18n/issues/1

Great. Thank you Philipp!


[WIP] Axiom V2 halo2 implementation

This is a halo2 proof of PLUME signatures. This will be critical for fast client-side proving, and we will release benchmarks as well as simple functions in our NPM package soon. Initiative led by @shreyas-londhe.
Resources:
Understanding the components required for secp256k1 hash2curve. Following this doc - https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-13.html#name-hash_to_field-implementatio
Following this for the hash-to-curve impl: https://github.com/geometryresearch/secp256k1_hash_to_curve
Axiom V2 used for dynamic passthrough verifiers.

Done

Note that this code includes hash to curve here: https://github.com/axiom-crypto/halo2-lib/pull/261/files


[PYTORCH]AvgPool3d, MaxPool3d and Squeeze op support

Squeeze
AvgPool3d
MaxPool3d

@masahi Please help to review this PR and merge. Thanks in advance.
Thanks for contributing to TVM!   Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

Thanks @siju-samuel @wyc-ruiker


Fix restart to wait for stop() to complete first.

Fixes #1732
@drwasho if you want to test it out.

Coverage decreased (-0.01%) to 39.091% when pulling 7f56f5f2bf61e8491bbe1f406463a1b0e7ac2482 on brian.fix-restart into fdf79f52921d1d3a0a219a455b25e55833a20eb2 on ethereum-master.


Wrong link highlight position on searching a word

in some pdf, the marking is not placed correctly due to layout issues or any other reason.
but the size of the text was correct marking but the placement goes a little differently
example as shown in the image where two words were correctly placed but see the bottom of the image it was wrongly placed
pls check this
@espresso3389
Originally posted by @dineshnaikb in https://github.com/espresso3389/pdfrx/issues/189#issuecomment-2247131510

@dineshnaikb
There seems some kind of mis-calculation of text index.
From the screenshot, I'm guessing that for the 3rd one, indexOf("where") on the "Countries where" returns 5 instead of 10. The 4th one return 3.
The calculation of the text index is accumlative. So some letters on the text mis-increase the text index and it results in such problem.
If possible, could you allow me to access the PDF file (Or at least the page of the problem) to reproduce the issue?

Pulp_Paper_and_Packaging_Guidelines_June_21_1685614275 (2)_1698976928 (1)_1698977318_1698977700_1698982520 (1)_1699000343_1699005244.pdf
pdf sample


add get_applet_settings to C example

in the vala example there is example code for using the applet settings functions  e.g. member function "get_applet_settings"  - var settings = this.get_applet_settings(uuid);
Any chance of an equivalent example code for the C example please?  ... having difficulty trying to translate the Vala example to C ...

Yeah the C example is actually pretty crap, and I can't remember if it handles the dispose chain properly. I'll redo it to be nice and include all the typical Budgie bits one needs

FWIW in the mean time..:
https://github.com/solus-project/budgie-desktop-examples/blob/master/c_project/NativeApplet.c#L78
static void native_applet_init(__budgie_unused__ NativeApplet *self)
{
}

This is where you do basic initialisation, before you have access to any gobject properties.
The constructor will need modifying to pass the uuid. Now, in GObject C you're only guaranteed to have these constructor-time properties set in the construct function, so we need to override the GObjectClassvtable to have a ->construct method, which can then set to do something like:
self->settings = budgie_applet_get_applet_settings(BUDGIE_APPLET(self), ourUUID);

I'll flesh out the example. I suspect a slight API change in 11 to make this less derpy. It catered to Valaisms unfortunately.

Moved this under the new org, slipped my mind

Hi Ikey - noticed you have updated the example!  cheers.
I compiled and installed the example - saw the "I am groot" by adding the new applet.
When removing the applet via raven - the panel crashed. (Ubuntu 16.04)
backtrace enc - thoughts on what the issue is?
http://paste.ubuntu.com/23482435/

Yeah seeing it here too, haven't yet tracked it down fully. I know that its happening in the library itself (Dereferencing ->priv which SHOULD be initialised..)

k - sorry Ikey - just got back to looking at this.
so we think this is a budgie-panel issue itself or something wrong with the example itself?
If the former - should this be tracked on the budgie-desktop tracker?


Fix: Bad Transpile to es5 in 0.6.0-alpha.2

PR Type
What changes does this PR include (check all that apply)?
[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build process changes
[ ] Documentation changes
[ ] Other... please describe:

Related issue / current behavior
https://github.com/dschnelldavis/angular2-json-schema-form/issues/139
New behavior
moved comment to after line to fix es5 transpile bug
Does this PR introduce a breaking change?
[ ] Yes
[x ] No

Thanks!


ltr-rtl problem

If slick element is defined as ltr in an element that is dir="ltr" but the page body is dir="rtl" the order of the slides is reversed. Also afterchange and beforechange events give the wrong current slide number.
see this:
http://jsfiddle.net/9f1mj8b4/
if this is forced, the problem is solved for this specific case:
.slick-slide {
float: left!important;
}
problem might be in slick.css, here:
[dir='rtl'] .slick-slide
{
float: right;
}

+1

Still the same problem exists..

This problem still exists.

This problem still exists((

+1

Whose genius idea was it to use the ltr/rtl language/locale setting of my webpage as the attribute that controls the slider direction?
So much for scalability...
I have an rtl language page.
This is completely unrelated to the direction I want my slider to go.
I have text labels (rtl) inside my gallery elements. Yet I need my slider to progress left-to-right.
Trying to set this to work rtl:false leads to some really wacky behaviour.
Also this:
[dir='rtl'] .slick-slide
{
float: right;
}
I've yet to work out ANY combination of direction styles that
a. slides left-to-right on my ltr page
and
b. actually starts at the first slide (instead of the last)


Do not return uninitialized box

#846 fix should be rerolled.
_boxes[name] = newBox;
await newBox.initialize();

_boxes can contain a box which isn't initialized so it is possible that isBoxOpen(name) return true and program can acquire this uninitialized box which can lead serios problems for example box.put called.
Imagine the following situation:
var box = Hive.openBox('box');
var sameBox = Hive.openBox('box');

In this case sameBox can be referenced before it's initialized. However this cannot be achieved so easily because we have to get the reference after _boxes[name] = newBox; and during await newBox.initialize(); call (and also after _manager.open).
There is a period when both isBoxOpen(name) and _openingBoxes.containsKey(name) return true.
Let me a show an example (I won’t be bored with how the dart event loop works, this is the easiest example):
import 'dart:async';
import 'dart:io';

import 'package:hive/hive.dart';
import 'package:hive/src/backend/storage_backend.dart';

import 'package:hive/src/hive_impl.dart';

const boxName = 'test_box';

final completer = Completer();

final f1 = Completer();
final f2 = Completer();

class BackendManagerInterceptor extends BackendManager {
  @override
  Future<StorageBackend> open(
      String name, String? path, bool crashRecovery, HiveCipher? cipher) async {
    final result = await super.open(name, path, crashRecovery, cipher);

    completer.complete();
    return result;
  }
}

void main() async {
  final sep = Platform.pathSeparator;
  final dbDirectory = Directory('${Directory.current.path}${sep}hive_db');

  print('dbDirectory: ${dbDirectory.path}');
  await resetAndInitDatabaseLocationPath(dbDirectory);

  final hive = HiveImpl.debug(BackendManagerInterceptor());
  hive.init(dbDirectory.path);

  var box = hive.openBox(boxName);
  box.then(
    (value) {
      print('Successful init');
      f1.complete();
    },
  );

  completer.future.then((value) {
    var sameBox = hive.openBox(boxName);
    sameBox.then(
      (value) {
        print('Box is avaible before it\'s initialized');
        f2.complete();
      },
    );
  });

  // make sure program doesn't exit before all print executed
  await (Future.wait([f1.future, f2.future]));
}

Future<void> resetAndInitDatabaseLocationPath(Directory dbDirectory) async {
  if (await dbDirectory.exists()) {
    await dbDirectory.delete(recursive: true);
  }
  await dbDirectory.create(recursive: true);
}

There is another fix just place _openingBoxes.containsKey(name) check before  _boxes[name] = newBox; however I think there shouldn't be any point in time when both return true, moreover in case of error _boxes will contain an unitialized box.
#846 should use Hive.deleteBoxFromDisk('boxName'); which handles the delete of unopened box ( see implementation ).
  @override
  Future<void> deleteBoxFromDisk(String name, {String? path}) async {
    var lowerCaseName = name.toLowerCase();
    var box = _boxes[lowerCaseName];
    if (box != null) {
      await box.deleteFromDisk();
    } else {
      await _manager.deleteBox(lowerCaseName, path ?? homePath);
    }
  }

In nutshell if some one calls Hive.openBox while await newBox.initialize(); is working it is possible to acquire an uninitialized box.

Yes that's correct. But there's another issue with your proposed solution. Check #846 for additional details. TLDR if initialization fails db file keeps locked on WindowsOS, so you can't delete or re-open said box.

Also when you re-call openBox it will not return uninitialized box because we have some sort of locking mechanism in place that will await openBox calls to same box while initialization completes.
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/hive_impl.dart#L82-L89

This is not to say our implementation is flawless. Ofc it's still buggy as someone can call openBox without awaiting and then call box to get instance to uninitialized box object.
Maybe we can try fixing #846 in a different way instead. One way I can think of is closing box on initialization failure..
Let me know what you think about that.
/cc @Jon-Salmon, I would like to know your thoughts too
PS: sorry for comment spamming

It is possible to return uninitialized box since isOpenBox is before _openingBoxes.containsKey.
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/hive_impl.dart#L75-L89
Run my example code and check output.
Take 2x breakpoint
First:
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/hive_impl.dart#L79
Second:
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/backend/vm/storage_backend_vm.dart#L81
And you can see that the first breakpoint returns the box while initializing it.

It is possible to return uninitialized box since isOpenBox is before _openingBoxes.containsKey.

True! Missed that part, sorry. Let's merge your patch and I'll work on fixing #846.

I think this can be moved before try and make is nullable
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/hive_impl.dart#L103
In catch block it can be closed if it's not null
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/hive_impl.dart#L116
I think these should be nullable
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/backend/vm/storage_backend_vm.dart#L29-L40
So close close should only close underlying file if it is not null.
This is because open can fail too and we can avoid LateInitializationError if one of them died during BackendManager.open:
https://github.com/hivedb/hive/blob/99212d9f521520cb27cfe5aa2d522729c11d2799/hive/lib/src/hive_impl.dart#L99-L100


Version 3.0

Hi everyone,
From what I understood reading some closed issues, there is a version 3.0 currently being developed.
Is there any wip repo/branch that we could have a look and maybe contribute to?
Best

Hi @10ko , thank you for your interest. For now the development repo is in private mode, we plan to release a candidate soon.


Changed countMatchKeywords() return total weighting of matched keywords

made countMatchKeywords() return total weighting of matched keywords

implemented change for Choice and Carousel step

Hey Rory, after you proposed to get rid of the 'break' feature in countMatchKeywords(), I made the change to the method in TalkStep to make it happen. The totalMatchWeighting basically does what originally the scoreAccumulator was doing -- adding up all the weights of the keywords that matched the message. After adding up all the weightings of keywords that matched (without break), it returns it as an int, where in the runAnalysis methods of each step entity, will add to the scoreAccumulator.
Let me know if you have any other questions


fix filter job list

Coverage decreased (-0.03%) to 91.505% when pulling d5083204b7018e4170b7edb86378dec943b3f5a0 on antgonza:fix-filter-job-list into ed899a8d9213c10b3273c31308aad8ba85d14cfa on biocore:master.


Feature/midi map

From a general UX perspective I'd be happy to tweak things a bit as I think it could be a more more obvious once one is in active "MIDIMapping" mode. Also I suspect we'd ideally like to disable changing parameter values from the UI when selecting a param to map and just maintain a "selection" state?

ahh yeah, that is a good idea!

Another q would be - should we auto disable MIDI mapping when the user switches views / tabs or at least prevent direct navigation with a confirm dialogue?

Yes, I was actually gonna ask about that, I briefly looked into it but then maybe i lost track

From a general UX perspective I'd be happy to tweak things a bit as I think it could be a more more obvious once one is in active "MIDIMapping" mode. Also I suspect we'd ideally like to disable changing parameter values from the UI when selecting a param to map and just maintain a "selection" state?

ahh yeah, that is a good idea!

I can just clean that up as part of polishing the UI a bit. Was thinking we could just follow the Max color scheme a bit here to rely on something already existing.
Once u took a look at the suggestions just throw it my way and I can take a pass.

the Midi vs MIDI thing exists elsewhere too, I figure maybe we can do a cleanup pass after?

ok tweaked things by

introducing a violet colorscheme for active MIDI mapping
disabling midi mapping when changing types, navigating away, switching instances
general parameter MIDI mapping UX tweaks

Also noticed that our parameter column layout was broken, so fixed that.
Thing one issue is left if we really want to allow "any" JSON input in the meta editor or if it is safe to assume that meta should and will always be "" | Record<string, AnyJSON>. If that is the case I think we can further harden the validation of the JSON input and the parsing functions on the ParameterRecord

Gonna break out the remaining tasks / discussions into tickets


Add project Dawn to your expo page

Hi there,
i have recently written and published a small tool for managing plain file backups using this library.
I'd like you to take a look and consider adding it to your Expo page.
The project can be found here
Thanks for your amazing framework 👍
If you need further information, please don't hesitate to ask :)

Added some screenshots and other information to my readme. Feel free to use anything you find there.

Hi,
thanks for suggesting your project!
I'm happy to add it to the Expo.
I'll use the third image of your readme file if that's ok for you.
Sorry for the late reply btw.

I'll go ahead now and add the project.
If you don't like how it's presented just tell me what to change.

Thx! I like it the way it is.


Move to AXIS 10.3

Title of ticket:
Description
IMB is not moving to AXIS 10.7 until late July
Dependencies
Are there any dependencies?
DOD

[ ] Determine if we need to clear the database
[ ] Retest validation with Andrew
[ ] need database connection details
[ ] Determine details/impact for reporting - Just need connection string details / no database structure changes
[ ] Connect with Dean

Timing: End of week so we can stage requests

@lmullane @divyav-aot Please make any updates to this ticket following your conversation with IMB today. Please have DOD ready to bring into Sprint Planning on Wednesday. Thanks!

Confirmed complete with IMB


KeyError when uninitialized -- blocking initial sync?

Hey, thanks for the great workflow! The line here throws a KeyError. I didn't dissect the stack enough to follow exactly what myLabels represents here, but it seems like it's probably some kind of placeholder the first time through before the first Todoist refresh has succeeded? This was blocking initial syncing for me. I changed it to use myLabels.get('is_deleted', False) locally (and did the same on the next L102), and that allowed me to sync up.

thanks for the report @dustykline! Did you have any labels in Todoist?


eliminated next_id from README.md

minor edits

Looks good but I believe you need to fix copyright.

This is old stuff, then I forgot to merge long ago.
@andreistefanescu please check.

Looks good. The errors are due to missing copyright. You can add <!-- Copyright (c) 2010-2015 K Team. All Rights Reserved. --> on the first line of each file.

@grosu, do you still want to this merged? It seems to be very close.

Thanks for the reminder, @cos, and for not deleting this PR.


/ghost/api/v0.1/schedules/posts/... schedule request HTTP status 404

Issue Summary
The scheduling of posts doesn't work.
The only thing I see in logs is that there is a GET request to /ghost/api/v0.1/schedules/posts/5bc89644f2572d7e9bdb13ea?client_id=ghost-scheduler&client_secret=xxxxxxxxxxx which has HTTP status 404.
Always 404 for these requests.
To Reproduce
Create a post and activate schedule for later.
Scheduled posts are never published.
Technical details:

Ghost Version: 2.2.3
Node Version: v8.12.0
Browser/OS: Firefox Windows
Database: SQLite3

Please use our forum for help.
e.g. see this thread

@kirrg001 Why you are closing immediately? What's up with fixing your scheduler to follow Redirects which is HTTP standard?!
I don't like to put the Reverse Proxy up to port 80. And I don't want to listen Ghost on port 443. So I need to configure Ghost config url to http:// and set proxy forward protocol to https so that the links in Ghost work.
So why your scheduler is not using the same procedure as the rest of the app to use the protocol from the proxy forward?!

Also if I think something more about it, it would be better to fix the server setup. So that you can really specify the correct external url in the config, but say something in the server config to not use ssl setup.

Ok. Sorry. Partly my fault. I've got SSL handshake failures and logs about missing cert and key and info about LetsEncrypt during setup when using https in config.url.
But after looking through your code, there is no way to start express with ssl by config.
So seems to be only a setup and first run problem.
I've switched config.url to https and it uses correct urls over the place.
Because it works for me now, it's your job if you'd like a hacked or working product.


Additional information for permissions in onboarding (EXPOSUREAPP-1663)

EXPOSUREAPP-1663

https://jira.itc.sap.com/browse/EXPOSUREAPP-1663


Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes

help me please , I was working on a project to diagnose a disease and I used the tflite library to do this, but this problem started to appear, so how can it be solved?
ERROR:C:\Users\hp.gradle\caches\transforms-3\9e8d46caf4d48b7b054bf8aab959d37b\transformed\jetified-guice-5.1.0.jar: D8: com.android.tools.r8.internal.k2: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)
FAILURE: Build failed with an exception.

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

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform guice-5.1.0.jar (com.google.inject:guice:5.1.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
Execution failed for DexingWithClasspathTransform: C:\Users\hp.gradle\caches\transforms-3\9e8d46caf4d48b7b054bf8aab959d37b\transformed\jetified-guice-5.1.0.jar.
Error while dexing.

Set minSdkVersion 26 will solve it


Fix: fixed handlers to listen to proper notifiers

Fix case for handlers

I saw it as well. I checked the error messages from the pipeline but I didn’t saw anything relevant to this specific change.
As a suggestion, maybe you can create a new patch version as well?
I really appreciate your time for fixing this. Thank you

There are other issues with CI, I'll try to sort them out this week.

CI failures have been resolved in https://github.com/ansible-community/ansible-consul/pull/547. I'll rebase your branch and re-test.

Ok, looks good! Thanks for your contribution. 👍


Feature: resizable container view

I'd like to be able to be able to say
ResizableContainer::left(cx, move |cx| {
    ...
});

And everything in the ... should show up in a container with a handle on the left side, where dragging that handle left will increase the container width and dragging it right will decrease the container width.

As it happens, I've implemented something like this for another project. However, in my implementation it looks like this:
ResizableContainer::left(cx, AppData::width, |cx, new_width| cx.emit(AppEvent::SetWidth(new_width)), |cx| {
    ...
});

So the second parameter is a lens for the width and the third is a callback for setting the width when the container is dragged. I did it this way because I wanted the configuration of the panels to be savable and reloadable in my application. What do you think of this?

Yes, that is great!


Brew install requires Xcode

As far as I understand the installation instructions, installation of PushToTalk via brew should not require Xcode. However, this is not the case:
$ brew tap yulrizka/tap
$ brew install pushtotalk
==> Installing pushtotalk from yulrizka/tap
pushtotalk: A full installation of Xcode.app is required to compile
this software. Installing just the Command Line Tools is not sufficient.

Xcode can be installed from the App Store.
Error: An unsatisfied requirement failed this build.

Would be great if there was a way to install PushToTalk without Xcode!

Thanks for the info. This is related to #15. Will close this ticket for now


LSP find_references not supported since 0.164

Hello folks,
Starting on 0.164 find_references is not working, which breaks the ability for editors using flow's LSP to show references of a variable used on the codebase.
I could confirm that when I used 0.163 it works as expected.
Looking at the release of 0.164 I see: Removed flow find-refs command.
But my guess is that find_refences was supposed to stay functional and it might have been broken accidentally.
Flow version: 0.164
Expected behavior
find_references should work on my editor
Actual behavior
I get an error saying that find_references is not supported on the current LSP server.
Thank you for your help!

https://github.com/facebook/flow/blob/main/Changelog.md#01640

Support for finding references and renaming has been removed. While these features often worked well, they also caused extremely bad performance and crashes. We hope to reimplement these features as soon as we can.


MSYS-832 - Added feature that end use can configure STDER/STDOUT size

Description
Provide option that user can configure the max_body_size in push-jobs-client.rb. Default max_body_size is 63000, also user can provide options as --max-body-size at runtime.
Signed-off-by: piyushawasthi<EMAIL_ADDRESS>

There should not be a problem, but it would be useful to see that an adhoc build for the client passes with these changes. You can add the link for the build in the description if you already have one.

Thanks for review @PrajaktaPurohit, actually @rhass want some changes in push-jobs-server side after that, I'll verify this PR and create adhoc build for the same.

@PrajaktaPurohit - Updated PR as per your review comment please have a look and let us know your thought about that.

@piyushawasthi You need to rebase so that expeditor will be happy.

Hi @markan , I have re-factor validate_params code also as per your suggestion we don't need to show more than one message to the client. Now validate_params decides if it's too large, we drop the output, and send the message. I think it's best approach to fix that issue please let me know your thought.

@markan Could you give this another look when you get a moment? Thanks!

@markan : All set just a small help will you please check the error message and let me know if you need any changes into that.

expeditor failure has been fixed in master already. branch isn't in chef so I can't force push a rebase.


Copy/paste of emojis not working.

I have some emojica images in my UITextView.
Now, I am going to copy that emojis.
The problem happens when attempt to paste those emojis.
Let me know if this doesn't make sense.

Yes, I understand. At the moment you'll have to revert the text manually before allowing the UITextView to copy the selection to UIPasteboard.
I'll mark this as a feature request, and will include this functionality into the next version.


Terms & Conditions | Privacy Policy Links in the Footer are not redirecting - https://threefold.tech/

The Terms & Conditions and Privacy Policy links in the footer of the website are not leading to the actual pages. They just take you back to the top of the main page.

@hossnys please check if this is the same issue we just had with main website and see how to fix it. Thank you.

@ehab-hassan  will look into it , it's related to site content .


Can the driver support custom path?

In my workflow, I use python and duckdb quite often, I have been considering how to migrate to Elixir for a while, Recently duckdb officially support the ADBC API and provided examples.
DuckDB ADBC - Zero-Copy data transfer via Arrow Database Connectivity
ADBC API
The offical C++ example is as follow:
AdbcDatabaseNew(&adbc_database, &adbc_error);
AdbcDatabaseSetOption(&adbc_database, "driver", "path/to/libduckdb.dylib", &adbc_error);
AdbcDatabaseSetOption(&adbc_database, "entrypoint", "duckdb_adbc_init", &adbc_error);
// By default, we start an in-memory database, but you can optionally define a path to store it on disk.
AdbcDatabaseSetOption(&adbc_database, "path", "test.db", &adbc_error);
AdbcDatabaseInit(&adbc_database, &adbc_error);

Currently, the project only supports a fixed drivers sqlite postgresql flightsql snowflake, Is it possible to add a driver for custom path?
for example:
{:ok, db} =
  Kino.start_child(
    {Adbc.Database, driver: "/path/to/libduckdb-osx-universal/libduckdb.dylib", entrypoint: "duckdb_adbc_init"}
  )
{:ok, conn} = Kino.start_child({Adbc.Connection, database: db})
{:ok, result} = Adbc.Connection.query(conn, "select 1;")

or
{:ok, db} =
  Kino.start_child(
    {Adbc.Database, driver: :custom, path: "/path/to/libduckdb-osx-universal/libduckdb.dylib", entrypoint: "duckdb_adbc_init"}
  )
{:ok, conn} = Kino.start_child({Adbc.Connection, database: db})
{:ok, result} = Adbc.Connection.query(conn, "select 1;")

Yes, pull requests are welcome!

Actually, I may have a fix soon!

@watsy0007 Were you able to successfully set up DuckDB via ADBC in the end?

@dlindenkreuz yes. as follows

Nice, thanks for the swift response. I found out that further keyword options are passed through to the native initializer, so I was able to specify the DB path like this:
defmodule MyApp.Application do
  def start(_type, _args) do
    children = [
      {Adbc.Database,
       driver: "./libduckdb.dylib", # relative to cwd
       entrypoint: "duckdb_adbc_init",
       path: "./.data/duck.db",
       process_options: [name: MyApp.DuckDB]},
      {Adbc.Connection, database: MyApp.DuckDB, process_options: [name: MyApp.DuckConn]},
      # ...


[docs] MenuItem::About() expected 2 arguments

Writing add_native_item(MenuItem::About("Blabla".to_string())) now returns error expected 2 arguments
Please add an example in the doc https://tauri.studio/docs/guides/menu.
Here https://docs.rs/tauri-runtime/0.3.4/tauri_runtime/menu/enum.MenuItem.html#variant.About it doesn't say if MacOS is supported. It doesn't seem so, metadata are not displayed.

The documentation does state that the metadata is only applied on Linux.


CAMEL-11596:Fix to get info about a single route we need to

[CAMEL-11596] Fix to get info about a single route we need to

Could somebody verify

Can you squash the commits and amend it with the same title as the issue ?

I see that the body of the commit message contains some noise like
CAMEL-11596:Fix to get info about a single route we need to
CAMEL-11596:Fix to get info about a single route we need to
CAMEL-11596:Fix to get info about a single route we need to
CAMEL-11596:Removed Unused Imports
CAMEL-11596: Implemented Reviewer suggestions
"CAMEL-11596:Spring-boot - actuator endpoint routes - Get single route only"

Can we get rid of such noise ?

There is also #1858 which changes in similar code, so we may get merge conflicts.

So this change has to be done after merging the 1858 PR . Please let me know

Seems like PR got messed up . Closing this to raise new one


Purges the Fastly cache for a page once the page has been modified

Pre-Flight checklist

[X] Testing

[X] Code is tested
[X] Changes have been manually tested

[X] Settings

[X] New settings are documented and present in app.json
[X] New settings have reasonable development defaults, if applicable

What are the relevant tickets?
Fixes #749
What's this PR do?
Adds some receivers for some Wagtail signals that are sent when a page is (un)published or moved to invalidate the Fastly cache for the affected pages. This should ensure that new edits made in the CMS override the cache when they happen.
How should this be manually tested?
Fully testing this manually will attempt to invalidate pages in the Fastly cache. This will fail unless your system is configured to look like a system it knows about (e.g. you need to set up your testing machine to respond to rc.mitxonline.mit.edu locally for it to really work). However, you should be able to see log entries where the app queues and then invalidates the cache regardless of your local instance's settings.
Do any number of these operations:

Publish a page.
Move a page such that the URL for it will change.
Unpublish a page.

Each of these should cause Wagtail to signal, which should then be picked up by the code in this PR and will queue a Fastly purge request via Celery.
Other
It doesn't appear that the purge API is set up to require authentication at the moment - this (can be changed)[https://docs.fastly.com/en/guides/authenticating-api-purge-requests] and if/when it does, the MITX_ONLINE_FASTLY_AUTH_TOKEN setting will need to be set.

Codecov Report

Merging #838 (e0c4535) into main (585367c) will decrease coverage by 0.15%.
The diff coverage is 67.92%.

@@            Coverage Diff             @@
##             main     #838      +/-   ##
==========================================
- Coverage   85.36%   85.20%   -0.16%
==========================================
  Files         132      135       +3
  Lines        5800     5853      +53
  Branches      955      965      +10
==========================================
+ Hits         4951     4987      +36
- Misses        696      707      +11
- Partials      153      159       +6

Impacted Files
Coverage Δ

cms/tasks.py
50.00% <50.00%> (ø)

cms/signalreceivers.py
85.71% <85.71%> (ø)

cms/api.py
97.26% <100.00%> (+0.03%)
:arrow_up:

cms/apps.py
100.00% <100.00%> (ø)

main/settings.py
93.30% <100.00%> (+0.06%)
:arrow_up:

ecommerce/discounts.py
78.94% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

LGTM. For testing, I can see that editing a page causes a signal queuing the request via celery log


Constrain resolution when fit called without duration

Fixes #11560

Thanks a lot for proposing a fix. The changes makes sense to me. Do you think you can add a test that is failing without the fix, and passing with it?

Some of the other View tests use a size of [200, 200], but here:
https://github.com/openlayers/openlayers/blob/2de80e04e4c16799c43cb2b9b2e88b62db396ab1/src/ol/View.js#L1714-L1716
the default size ([100, 100]) is used regardless.
I have not investigated if this is a problem, just found it a bit strange.