WIP: Drag to select

Add drag to select support for dayRangeCalendar
Todo:

[x] Implement drag to select functionality
[x] Fix onDisabledDayError functionality
[x] Fix bug when after selecting the range completely at one side of a disabled day, we can't reset our selection either select the first day at the opposite side
[x] Improve behavior when the user selects one day by a simple click and then starts dragging from the selected day (intended behavior is selecting the second state instead of changing the first one)
[x] Fix bug reported by this comment (second gif)
[x] Add support for touchscreens
[ ] Fix functionality for single day date picker use case
[ ] Find a better workaround for closing Calendar after selection is completed (I'm thinking of something like using a callback named onSelectCompleted or so)
[ ] Document these changes

related to issues: #1

I can use some help in writing documentation :)

Also, let me know what you think about accepting a flag named enableDragToSelect or something like that in order to enable this feature.
Personally, I think since there is already a lot of abstraction implemented in this library, it's better to have this feature out of the box and without a flag, but it would be nice to have a way for bailing out (i.e having the enableDragToSelect flag, but setting it to true by default)

@Eddie-CooRo Thanks for your contribution. there are a few issues:
1- It's working on mobile
2- If you select a starting day by a simple click and then drag from the day you just selected, it will get a little bit glitchy:

2- Follow these steps to reproduce:

Start a dragging
Drag to the end of  days and on a "-blank" day(don't release your mouse. On the following .gif file I made the blank days' background red for clarification)
Release your mouse click on a blank day
Now hover the calendar days

These sort of contributions warm my heart. Keep up the good work 🎊

Also, let me know what you think about accepting a flag named enableDragToSelect or something like that in order to enable this feature.
Personally, I think since there is already a lot of abstraction implemented in this library, it's better to have this feature out of the box and without a flag, but it would be nice to have a way for bailing out (i.e having the enableDragToSelect flag, but setting it to true by default)

I agree. I think it would be better to have this flag and enable it by default(default value set to true)

There's one more issue. Just check the times Calendar gets rerendered. It seems there are unnecessary rerenders.

There's one more issue. Just check the times Calendar gets rerendered. It seems there are unnecessary rerenders.

Yes, I haven't considered performance at all :)
I'm currently somewhere between "make it work/make it right" steps, after finishing with the functionality we can work on "making it fast"

1- It's not working on mobile(actually not working on touchscreens because of mouse-based events. there are pointer events for touchscreens)

I can't get how pointer-events could help us with supporting touchscreens.
Currently, I've added some supported touch handlers to day items, but there is no onMouseEnter equivalent for touch screens. I've tried to implement it with onTouchMove but it needed too much effort and I'm so sleepy now :)
I think we can merge this feature event without onTouchEnter event. currently, it works just as before on touchscreens and supports drag-to-select on pointer-based screens

1- It's not working on mobile(actually not working on touchscreens because of mouse-based events. there are pointer events for touchscreens)

I can't get how pointer-events could help us with supporting touchscreens.
Currently, I've added some supported touch handlers to day items, but there is no onMouseEnter equivalent for touch screens. I've tried to implement it with onTouchMove but it needed too much effort and I'm so sleepy now :)
I think we can merge this feature event without onTouchEnter event. currently, it works just as before on touchscreens and supports drag-to-select on pointer-based screens

Thanks you Eddie for your efforts. Yeah, the trick is to use onTouchMove. Maybe this dnd is too much for now, but If it's gonna get merged we need to have the touchscreens support. Because it's whether draggable or not. We can't just add this whole of code and then document "Not working on mobile".

By the way, I checked both mentioned bugs again, and they weren't fixed 🤔Can you check them again, please?

Yeah, I checked both of them and they seem fixed to me :)
Maybe I got something wrong :thinking:
Here are corresponding gifs:
2-
3-

If it's gonna get merged we need to have the touchscreens support.
Ok. I'll work on it :)

Yeah, I checked both of them and they seem fixed to me :)
Maybe I got something wrong 🤔

Sorry, my bad. I hadn't pulled the latest changes, but the second one seems a little bit broken. DatePicker crashes after dragging the mouse over the blank days. Maybe your local changes haven't got committed yet. We will discuss this on your next commit.

Yeah, I checked both of them and they seem fixed to me :)
Maybe I got something wrong thinking

Sorry, my bad. I hadn't pulled the latest changes, but the second one seems a little bit broken. DatePicker crashes after dragging the mouse over the blank days. Maybe your local changes haven't got committed yet. We will discuss this on your next commit.

No problem.
Actually, I've committed everything so far, can you describe the steps to reproduce for getting DatePicker crashed? It looks ok in my laptop, maybe there are some compatibility issues between browsers?

No problem.
Actually, I've committed everything so far, can you provide steps to reproduce for getting DatePicker crashed? It looks ok in my laptop, maybe there are some compatibility issues between browsers?

The s2r are the same. here's a gif:

The s2r are the same. here's a gif:

This doesn't happen to me :|
Can you show me the error it gives to you?

Oops. I found the error, give me some minutes :)

Thanks for

Oops. I found the error, give me a couple of minutes :)

Thanks for the fix. Found a new issue. the dragging seems broken on touchscreens:

One more thing.firstSelectedDay and secondSelectedDay should be derived from selectedDayRange. They're not our state value. We gotta send the new value for them through onChange prop. It seems you've removed the commented code for them

Hi Eddie,
If you're busy these days, I can close this one for now, and you can submit a new PR when you're a little bit free.


Colorize the borders of the filetabs in the same color as the solution

Hi,
thx for your great extension
Is it possible to Colorize the borders of the filetabs in the same color as the solution?
In VS 2022 (perhaps also in earlier Version) there is an option to "Color the document tabs". But this uses an other color (i.e. brown) as your extensiong (blue on the top of the screenshot). It would be great if the colors were the same

In the following screenshot the point (for coloring) in the VS options dialog ist shown.

Im looking forward to hearing from you
best regards

You would never have two different solutions opened in the same VS window, can't seem to see how this would be usefull as all your tabs will have the same color.


Cannot access to variable.value

Hello everyone !
Description
I run into an error trying to access a variable value after solving an optimisation problem with linear matrix inequalities :

the matrix $T>0$ here is diagonal and is a decision variable
The problem status is okay and the value of the objective I am trying to minimize (here the value of L) is the correct one on a dummy example.
Now when I want to access $M_l (L^2, W)$ I have the following error :

It seems to be caused by one part of the matrix which is stored as a sparse variable :

Thie variable which seems to be stored in a sparse fashion is a subpart of the matrix $T$, I think.
To reproduce
As it is part of a research paper implementation a minimal code takes a little time to write but if it helps I'll send one.
Version

CVXPY Version: 1.2.1

Thank you for your help !

it looks like you are combining numpy or some such library with cvxpy. This is not supported and leads to errors such as you are seeing. Specifically you cannot ever apply numpy function to cvxpy objects.


X10 devices into a scene or automation on Smartthings

When putting multiple X10 devices into a scene or automation on Smartthings, not all of the devices respond when the scene or automation is executed.
I believe it may be because commands are too rapid for the devices to respond.
I have looked for a fix for this but couldn't find one.
I would sincerely appreciate any help or advice.

@xerexa If you are using HEYU to execute your X10 commands you can use a SCENE and execute it with HA-Bridge rather than multiple devices from the HA-Bridge.  You can add/edit your SCENE in the x10.conf file.  To find this file type: $ heyu info  You should see something like this:
Heyu version 2.11-rc2
Configuration at /etc/heyu/x10.conf
Powerline interface on /dev/ttyUSB0
Firmware revision Level = 1
Interface battery usage = 0:01  (hh:mm)
Raw interface clock: Tue, Day 365, 09:11:36
(--> Civil Time: Tue 01 Jan 2019   09:11:36 EST)
Uploaded schedule will expire in 1 days.
Housecode = M
0 = off, 1 = on,               unit  16.......8...4..1
Last addressed device =       0x1000<PHONE_NUMBER>000000)
Status of monitored devices = 0x0000<PHONE_NUMBER>000000)
Status of dimmed devices =    0x0000<PHONE_NUMBER>000000)

The second line is where your config file is located.  To edit the config file type:  $ sudo nano /etc/heyu/x10.conf Here is the SCENE info from HEYU
# Scenes and Usersyns (User-defined synonyms):
# Format:  SCENE   Label Command1 <args> [; Command2 <args> [; ...
# Format:  USERSYN Label Command1 <args> [; Command2 <args> [; ...
# The label is limited to 32 characters and is case-sensitive.
# Scenes and Usersyns are both semicolon-separated lists of
# commands with their arguments which can be executed or used
# in macros as if their labels were ordinary Heyu commands.
# See 'man x10config' for the features and limitations of Scenes
# and Usersyns.
# (In the current version of heyu, the ONLY distinction between
# scenes and usersyns is the 'show' menus in which they appear.)
# Some examples:

# SCENE  blinker  on A1; off A1; on A1; off A1
# USERSYN normal_lights  on front_porch; on back_porch
# SCENE   tv_on   on tv_set; dimb living_room 10

Here is the SCENE that I use for my holiday lights:
SCENE   holiday_on  fon M1; pause 1.5; on M14,15; pause 1.5; dimb M5-10 5
SCENE   holiday_off  foff M1; pause 1.5; off M5-8; pause 1.5; off M9,10,14,15

I added the pause for 1.5 seconds to allow each set of commands to be executed.  I then created a device in HA-Bridge named "holiday". The On Items: heyu holiday_on and the Off Items: heyu holiday_off. I hope this helps, let me know if you have more questions.


Plasma display manager in configuration.nix crashes some applications

Issue description
When I enable plasma5 in my configuration.nix, cantata fails to start (segfaults after a few milliseconds), with an error related to the qsqlite driver.
Steps to reproduce
Add the following line to /etc/nixos/configuration.nix:
services.xserver.desktopManager.plasma5.enable = true;

Install cantata, and try to start it:
$ nix-env -iA nixos.cantata
$ cantata

Technical details

System:
NixOS: 17.03.1395.9b948ea439 (Gorilla)

Nix version:
nix-env (Nix) 1.11.11

Nixpkgs version:
17.03.1395.9b948ea439

Sandboxing enabled:
false

I have noticed this on recent unstable as well but it's most of the KDE applications that are crashing if I try nixos-rebuild test inside a running KDE session. I'll try to find the last good revision.
@ttuegel, any thoughts?

I'm not seeing this anymore, so it's probably OK to close this.


Links to diagnostics don't appear in tooltip after session restore(reopen last session), or when opening file from Recent menu at initial program launch

VSCode Version: 1.45.1 stable / 1.46.0 insiders (both x64)
OS Version: win10 x64

Steps to Reproduce:
In a fresh VSCode stable/insiders installation, with only ESLint 2.1.5 extension installed.
Also ESLint 7.0.0 is installed with node 14.2.0 x64, and have some ESLint config file.

Launch VSCode and use File|Open File to open a .js with some ESLint issues.
Hover mouse on such a squiggly underline: notice that the link appears ok in the tooltip.
Now, close and restart VSCode: the .js file from last session will be automatically re-opened:
hover the squiggly underline and notice that the link is now missing from the toolip.
Close the file via its own "X" button and then also close and restart VSCode itself:
now open the .js file via File|Open Recent:
hover the squiggly underline and notice that the link is now also missing from the toolip.

Screenshots:
The issue:

When working ok:

On the other hand, if I open the File via:

either directly, via File|Open File (as in step 1), or via drag'n'drop in VSCode,
or close the file that I opened via the Recent menu at initial program launch,
and re-open it via the Recent menu,

in both cases, the link will appear ok in the tooltip.

PS. Kindly cc'ing @dbaeumer just to let him know.

@darkred can you provide me with a GitHub repository that I can clone that demos this. It is the best way to ensure we are using the same setup.

@dbaeumer This doesn't have to do with a specific repo.
Just make a plain test.js file with only the following line :
console.log('test');

having an ESLint config that includes the "no-console" ESLint rule,
e.g.this .eslintrc.json :
{
	"env": {
		"browser": true,
		"es6": true
	},
	"extends": "eslint:recommended",
	"parserOptions": {
		"ecmaVersion": 11,
		"sourceType": "script",
		"ecmaFeatures": {
			"globalReturn ": true,
			"impliedStrict": true
		}
	},
	"rules": {
		"no-console": "warn"
	}
}

and repeat the STR in a fresh VSCode stable/insiders installation.


how to train from scratch

Hi.
can you tell me what is the proper way to train object detector from scratch with pretrained base architectures such as Resnet50, VGG16, MobilenetV1, MobilenetV2?
or can you give me some references regarding this?
I first tried by command line below but it seemed that the training starts without pretrained weights.
python train.py --cfg=./experiments/cfgs/ssd_vgg16_train_voc.yml
So now I'm training VGG16-SSD on voc dataset using exactly the same command below
python train.py --cfg=./experiments/cfgs/ssd_vgg16_train_voc.yml
but changed RESUME_CHECKPOINT and PHASE like this
RESUME_CHECKPOINT: './weights/ssd/vgg16_reducedfc.pth'
PHASE: ['train']
and also I downloaded vgg16_reducedfc.pth from https://s3.amazonaws.com/amdegroot-models/vgg16_reducedfc.pth and put into ./weights/ssd/
but I wonder it is the right way to do it.
by the way, thanks for your great project! It seems like well-written, understandable codes! It helps me a lot.

how did you train with pretrained model?thanks


error compiling (i have hardly ever tried using psych engine so i apologize)

Describe your problem here.
upon running "lime test windows" i receive the following error:
Error: Error parsing haxelib.json for lime@dev: [file_contents,D:\FNF CODING\FNF-PsychEngine-main\lime/haxelib.json]
upon checking the contents of haxelib.json i dont see anything particularly interesting
i've gone and made sure each of my libraries are on the correct version, and i've gone as far to scroll through other issues for a few minutes looking for something similar, but unfortunately i've come up blank. i apologize if the issue is common/easily fixed, but i am inexperienced and couldnt find any solution online.

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
Nothing. This is a completely new repository.

i just now noticed


Refactor metrics management

Expose metrics to embedded server

I don't think that exposing a method to poll continuously to get fresh metrics is a good design; probably it's better to have some form of subscription


Missing SQS queue attributes after container restart

Thanks for making this, a very helpful little tool!
I've been using SQS, and I notice when running normally, SQS queue attributes work as expected, but if you restart the container, most of the attributes come back as you would expect, however the following 3 queue attribute disappear post-restart:
{
    "Attributes": {
        "ApproximateNumberOfMessages": "123",
        "ApproximateNumberOfMessagesNotVisible": "10",
        "ApproximateNumberOfMessagesDelayed": "0"
    }
}

Thank you!

Thanks for the report, this should now be fixed in localstack-persist 4.0.2 🙂


add: cbr support

Description
This PR adds cbr support in App Configuration module
Release required?

[ ] No release
[ ] Patch release (x.x.X)
[X] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content
This PR adds the cbr support in the App Configuration module.
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Live Captions Not Displaying Captions

System Details
MacBook Pro
14-inch, 2021
Chip Apple M1 Pro
Memory 32 GB
Startup disk Macintosh HD
Serial number LPW5Y7FFPR
macOS Sonoma 14.5

Thorium Version: Version 124.0.6367.218 (Official Build) (arm64)

Problem
No Captions appear when an audio source is playing. Tried YouTube, and a podcast.
Additional Notes
I installed Thorium via Homebrew.

This is a Chrome-only feature


Added a method to flatten multi-level maps into single level maps.

To enable simple ways of declaring remote-to-local Workitem maps,
we would need single level JSON structures in the remote tracker responses.
Example,
ProviderGithub: WorkItemMap{
		AttributeExpression("title"): SystemTitle,
		AttributeExpression("body"):  SystemDescription,
		AttributeExpression("state"): SystemStatus,
		AttributeExpression("id"):    SystemRemoteItemId,
},

The above map is a static map which is used to imply that the title field in the remote work item needs to be mapped as system.title
Now the trouble is when the remote work item ( for some remote providers ) has the title defined
in
{
   "meta":
              {
                 "title":" some title",
                 "description" : " some desc"
              }
}

In such cases, we would want to declare our remote-to-local Work item mapping to still look simple
{
      "meta.description" :"Some description",
     "meta.title":"some title"
}

In this case our remote-to-local Work item map would looks something like ( an example  ) :
ProviderJira: WorkItemMap{
		AttributeExpression("meta.title"): SystemTitle,
		AttributeExpression("meta.description"):  SystemDescription,
		AttributeExpression("state.stage"): SystemStatus,
		AttributeExpression("id"):    SystemRemoteItemId,
},

For this I've implemented a DFS which flattens a multiple level map into a single level map.
Fixes #214

This change is

TODO

Error handling.
Add test for flattening Jira response.

@aslakknutsen
Could you please review this PR - would like to get this merged soon ?

Hi @kwk ,
I've incorporated the changes, please review.

Current coverage is 19.68% (diff: 0.00%)

Merging #227 into master will decrease coverage by 0.45%

@@             master       #227   diff @@
==========================================
  Files            32         33     +1
  Lines          1167       1194    +27
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            235        235
- Misses          888        915    +27
  Partials         44         44

Powered by Codecov. Last update 5c04a5b...39bfb39

[test]

Hi Aslak, I have no other changes remaining on this unless there's more
feedback items to be taken care of.
On Sep 19, 2016 3:15 PM, "Aslak Knutsen"<EMAIL_ADDRESS>wrote:

@aslakknutsen commented on this pull request.
In remoteworkitem/flatten_test.go
https://github.com/almighty/almighty-core/pull/227:

@@ -0,0 +1,34 @@
+package remoteworkitem

See https://github.com/almighty/almighty-core/pull/249/files
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/almighty/almighty-core/pull/227, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhSAAoJ5TskErYBakm5-kQ00oinDwvwks5qrlmlgaJpZM4J3vMU
.

@sbose78 @kwk is investigating the reported coverage around this, correct?

{code}
github.com/almighty/almighty-core/remoteworkitem/flatten.go:9:                  Flatten                         100.0%
github.com/almighty/almighty-core/remoteworkitem/flatten.go:17:                 flatten                         100.0%
github.com/almighty/almighty-core/remoteworkitem/flatten.go:37:                 convertArrayToMap               100.0%
github.com/almighty/almighty-core/remoteworkitem/remoteworkitem.go:86:          NewGitHubRemoteWorkItem         83.3%
github.com/almighty/almighty-core/remoteworkitem/remoteworkitem.go:96:          Get                             100.0%
github.com/almighty/almighty-core/remoteworkitem/remoteworkitem.go:106:         NewJiraRemoteWorkItem           83.3%
github.com/almighty/almighty-core/remoteworkitem/remoteworkitem.go:116:         Get                             100.0%
github.com/almighty/almighty-core/remoteworkitem/remoteworkitem.go:121:         Map                             100.0%
{code}

@kwk @baijum Has your change request been convered?

[test]


Request: Add openrouter.ai endpoint support

Hi,
I have tried adding the openrouter.ai into ChainForge as the custom provider, but it always responsed"Error encountered while calling custom provider function: 400 Client Error: Bad Request for url: https://openrouter.ai/api/v1/chat/completions".
I'm not a developer, I have tried my best to debug this issue with GPT 4 turbo for multiple hours, and it was still not working:(
Could you please consider adding this endpoint like toghether.ai as the native endpoint when you are free?
https://openrouter.ai/docs#quick-start
This endpoint is really popular in the market.
Really appreciate if you can consider this request!

Hi, for this and all other requests to add a provider, I cannot personally devote time to it. The best solution is to submit a PR for it. Someone did this recently to add together.ai support to ChainForge.
The error you are getting suggests it is something with your call that is incorrect. The custom provider shouldn't be the problem here. I would check your Python code and make sure the call works outside of ChainForge first.

Thank you for your quick feedback!
Actually the reason that I want to use openrouter.ai basically is for two models:
Google Gemini flash/pro 1.5
Cohere Command R Plus
The weried thing is that if I specify some models from OpenAI like 「gpt-3.5-turbo」 or 「gpt-4-turbo」 in Openrouter.ai customized provider settings, it worked, ChainForge can successfully response to openrouter.ai correctly.
However if I specify the model name like 「google/gemini-1.5-pro」 or 「cohere/command-r-plus」 in Openrouter.ai customized provider settings(.py), it doesn't worked, responsed 400 error.
Below is the python code I wrote under GPT 4 assist:

`# -- coding: utf-8 --
from chainforge.providers import provider
import requests
JSON schemas to pass react-jsonschema-form, one for this provider's settings and one to describe the settings UI.
THIRD_PARTY_GPT_SETTINGS_SCHEMA = {
"settings": {
"temperature": {
"type": "number",
"title": "temperature",
"description": "Controls the 'creativity' or randomness of the response.",
"default": 0.7,
"minimum": 0,
"maximum": 1.0,
"multipleOf": 0.01,
},
"max_tokens": {
"type": "integer",
"title": "max_tokens",
"description": "Maximum number of tokens to generate in the response.",
"default": 4096,
"minimum": 1,
"maximum": 4096,
},
},
"ui": {
"temperature": {
"ui:help": "Defaults to 0.75.",
"ui:widget": "range"
},
"max_tokens": {
"ui:help": "Defaults to 100.",
"ui:widget": "range"
},
}
}
Custom model provider for the third-party OpenAI GPT service
@provider(name="Openrouter",
emoji="\U0001F680",
models=["openai/gpt-3.5-turbo-16k	","cohere/command-r"],
rate_limit="sequential",
settings_schema=THIRD_PARTY_GPT_SETTINGS_SCHEMA)
def third_party_gpt_v2_completion(prompt: str, model: str, temperature: float = 0.75, max_tokens: int = 100, repetition_penalty: float = 1.0, **kwargs) -> str:
url = "https://openrouter.ai/api/v1/chat/completions"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer API-KEY"
}
data = {
"model": model,
"messages": [{"role": "user", "content": prompt}],
"temperature": temperature,
"max_tokens": max_tokens,
"repetition_penalty": repetition_penalty
}
response = requests.post(url, headers=headers, json=data)
response.raise_for_status()
result = response.json()
return result["choices"][0]["message"]["content"]
`

Hmm this sounds like it has to do with the "/" in the path. It's certainly a workaround, but you can try changing all slashes to | or something else, then convert them back to slashes in your Python code.
It's probably something on CF's end with how custom providers work with the slash notation, that it's cutting off the prefix slashes.

Let me clarify:
Since Openrouter.ai also integrate the gpt model, and as I mentioned if I request this model ID--「openai/gpt-3.5-turbo-16k」 through openrouter.ai inside ChainForge, it worked, but when I request the model ID--「cohere/command-r」 , it failed.
So I personally assumed that it might not be the "/" issue?
Anyhow, due to I don't have the ability to write the coding, so I will let it go and wait for some great talent to push it forward some days;
Still really appreciate your time for help me debugging this issue, and I expcet ChainForge can be better in the future:)

Thank you for your quick feedback! Since I'm not a developer(I can read some easy code but I don't professional), I think I have no ability to submit a PR for it... But I can provide more background information for you or someone else who has ability to write the code in the future:
Actually the reason that I want to use openrouter.ai basically is for two models: Google Gemini flash/pro 1.5 Cohere Command R Plus
The weried thing is that if I specify some models from OpenAI like 「gpt-3.5-turbo」 or 「gpt-4-turbo」 in Openrouter.ai customized provider settings, it worked, ChainForge can successfully response to openrouter.ai correctly.
However if I specify the model name like 「google/gemini-1.5-pro」 or 「cohere/command-r-plus」 in Openrouter.ai customized provider settings(.py), it doesn't worked, responsed 400 error.
Below is the python code I wrote under GPT 4 assist:

`# -- coding: utf-8 --
from chainforge.providers import provider
import requests
JSON schemas to pass react-jsonschema-form, one for this provider's settings and one to describe the settings UI.
THIRD_PARTY_GPT_SETTINGS_SCHEMA = {
"settings": {
"temperature": {
"type": "number",
"title": "temperature",
"description": "Controls the 'creativity' or randomness of the response.",
"default": 0.7,
"minimum": 0,
"maximum": 1.0,
"multipleOf": 0.01,
},
"max_tokens": {
"type": "integer",
"title": "max_tokens",
"description": "Maximum number of tokens to generate in the response.",
"default": 4096,
"minimum": 1,
"maximum": 4096,
},
},
"ui": {
"temperature": {
"ui:help": "Defaults to 0.75.",
"ui:widget": "range"
},
"max_tokens": {
"ui:help": "Defaults to 100.",
"ui:widget": "range"
},
}
}
Custom model provider for the third-party OpenAI GPT service
@Provider(name="Openrouter",
emoji="\U0001F680",
models=["openai/gpt-3.5-turbo-16k	","cohere/command-r"],
rate_limit="sequential",
settings_schema=THIRD_PARTY_GPT_SETTINGS_SCHEMA)
def third_party_gpt_v2_completion(prompt: str, model: str, temperature: float = 0.75, max_tokens: int = 100, repetition_penalty: float = 1.0, **kwargs) -> str:
url = "https://openrouter.ai/api/v1/chat/completions"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer API-KEY"
}
data = {
"model": model,
"messages": [{"role": "user", "content": prompt}],
"temperature": temperature,
"max_tokens": max_tokens,
"repetition_penalty": repetition_penalty
}
response = requests.post(url, headers=headers, json=data)
response.raise_for_status()
result = response.json()
return result["choices"][0]["message"]["content"]
`

like this：
from chainforge.providers import provider
import requests
import json
import logging
Set up logging
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(name)
API_URL = "https://openrouter.ai/api/v1/chat/completions"
API_KEY = "XXXXXXX"
Define a mapping of simplified model names to full OpenRouter model identifiers
MODEL_MAPPING = {
"claude-3.5-sonnet": "anthropic/claude-3.5-sonnet",
"claude-3-opus": "anthropic/claude-3-opus",
"claude-3-haiku": "anthropic/claude-3-haiku",
"gemini-pro-1.5": "google/gemini-pro-1.5",
"gemini-flash-1.5": "google/gemini-flash-1.5",
"gpt-4o-mini": "openai/gpt-4o-mini-2024-07-18"
}
Define settings schema for the provider
OPENROUTER_SETTINGS_SCHEMA = {
"settings": {
"temperature": {
"type": "number",
"title": "temperature",
"description": "Controls the randomness of the output.",
"default": 0.7,
"minimum": 0,
"maximum": 2.0,
"multipleOf": 0.1,
},
"max_tokens": {
"type": "integer",
"title": "max_tokens",
"description": "Maximum number of tokens to generate.",
"default": 100,
"minimum": 1,
"maximum": 22937,
},
},
"ui": {
"temperature": {
"ui:help": "Higher values make the output more random.",
"ui:widget": "range"
},
"max_tokens": {
"ui:help": "The maximum length of the generated text.",
"ui:widget": "range"
},
}
}
@provider(
name="OpenRouter",
emoji="🌐",
models=list(MODEL_MAPPING.keys()),
rate_limit="sequential",
settings_schema=OPENROUTER_SETTINGS_SCHEMA
)
def openrouter_completion(prompt: str, model: str, temperature: float = 0.7, max_tokens: int = 1000, **kwargs):
logger.debug(f"Function called with prompt: {prompt}, model: {model}, temperature: {temperature}, max_tokens: {max_tokens}")
# Map the simplified model name to the full OpenRouter model identifier
full_model_name = MODEL_MAPPING.get(model, model)
logger.debug(f"Mapped model name: {full_model_name}")

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "HTTP-Referer": "XXXXXX",
    "Content-Type": "application/json"
}

data = {
    "model": full_model_name,
    "messages": [
        {"role": "user", "content": prompt}
    ],
    "temperature": temperature,
    "max_tokens": max_tokens
}

logger.debug(f"Sending request to {API_URL} with headers: {headers} and data: {json.dumps(data, indent=2)}")

try:
    response = requests.post(url=API_URL, headers=headers, json=data)
    logger.debug(f"Received response status code: {response.status_code}")
    logger.debug(f"Received response headers: {response.headers}")
    logger.debug(f"Received response text: {response.text}")

    response.raise_for_status()
    return response.json()['choices'][0]['message']['content']
except requests.exceptions.RequestException as e:
    logger.error(f"API request error: {str(e)}")
    if hasattr(e.response, 'text'):
        logger.error(f"Error response text: {e.response.text}")
    return f"Error: An unexpected error occurred. Please check the logs for more details."

Example usage (not typically needed in ChainForge, as it will call the function directly)
if name == "main":
print(f"Available models: {list(MODEL_MAPPING.keys())}")
result = openrouter_completion("What is the capital of France?", model="claude-3.5-sonnet")
if result:
print(result)


Docs for pandas.read_csv()

Hello @PokhodenkoSA! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file sdc/datatypes/hpat_pandas_functions.py:

Line 173:121: E501 line too long (138 > 120 characters)
Line 175:121: E501 line too long (145 > 120 characters)


 With React 18 you could use global React Types as React.JSX.Element, React.FormEvent, etc without an import statement.
But when we enable noUndeclaredVariables in Biome to check for possible bugs, we're getting a false positive on The React variable is undeclared.
A workaround is to explicitly add an import type React from 'react' on every file with React types. But we have hundreds of files that would need this. And it was working before migrating over.
Is there a better solution for this issue?
Thanks, and we love Biome!
Code of Conduct

[X] I agree to follow Biome's Code of Conduct

Hi! You can explicitly set a global using the javascript.globals configuration.

Hi! You can explicitly set a global using the javascript.globals configuration.

We did try that, though that introduces possible other issues.
For instance, in a JS file you can call this without an import.
const [count] = use React.useState(0);

Biome will allow it due to globals, but the app will error during runtime.
One other option was just to disable noUndeclaredVariables in Biome overrides for *.tsx files.

Have you suggestions to solve the issue? We could add metadata to globals (if it is a type, a writable flobal, ...).
Also, wee have a jsxRuntime configuration. i am unsure if we could leverage it in some way.

I think the jsxRuntime should apply here indeed, but not sure if it does 😅
I’m also used to just disabling this rule, since it’s kinda redundant if you also use tsc.

I don't have any suggestions unfortunately. But disabling it seems to be ok, since TypeScript will handle undeclared issues on its own in .tsx files.
We do run biome check and tsc --noEmit in git hooks already. So that will find both types of issues.

This one of the reason noUndeclaredVariabels is still not recommended. It reports too much false positive. We hope to improve it once we have proper type info.

Thanks @Conaclos, it does help in .js/.jsx files. As we're used to it coming from ESLint.
But using overrides was the perfect solution here.

That's a good idea. Since are types are handled by TypeScript anyways.

I am facing same issue. Is there a plan to fix this?

@marmikdesai please read the whole conversation, because it answers your question

We could add an option to ignore undeclared types.

This would be awesome!

Actually, I think we should always ignore types in noUndeclaredVariables because the equivalent ESLint rule no-undef only check JS and TypeScript ESLint doesn't provide any extension for this rule.


Tunnel is not loading | Whitelable Error Page

Here is my issue:

I've restarted my client-side tunnel many times, no change.

This seems to be an error on your side of the tunnel. This service doesn't display errors like that.


Add support for SMT & continuations for trace_decoder

Tracking issue as this will take multiple PRs.
The goal here is to be able to build a single binary that can handle payloads consisting of any combination of MPT/SMT & txn/continuation atomic block units.

[ ] Refactor trace_decoder to create overall structure with some logic stubbed out (#197).
[ ] Integrate Arpit's SMT decoding pre-image logic support (#127).
[ ] Integrate Linda's continuation support ().
[ ] Create logic to apply trace information for SMT w/ txns ().

Closing as #275 supersedes this.


Third time's the charm?

Coverage remained the same at 59.234% when pulling c0c12993032ecdd1fd7fa094e2674d1004306046 on AlCalzone-patch-1 into 8f179893fe516c90d751fd742a8dbb7c99ed96ff on master.


about DD

Hello, I see you've replicated Decision Diffuser. When I tried to replicate the results of hopper-medium-v2 from its original repository, the score was only 39.39589089718401. Why is there such a big difference between this implementation and what's in the paper? Do you know the reason for this?

Hi @xishuxishu I have the same question and I would like to ask whether this problem has been solved.
Best

You can refer to this code; it is of very high quality and reproducible.     https://github.com/CleanDiffuserTeam/CleanDiffuser


How can i create GPUImageTwoInputFilter with shader string

Simply create a subclass of GPUImageTwoInputFilter and provide your own shader code. See the many examples in the framework for how to do this.

can we achieve GPUImageTwoInputFilter in xamarin.ios with shader string

I'm sorry, I've never used Xamarin, so I can't answer that. This isn't an issue with the framework, though.

okay, thanks :)


Fix spelling: separate

fixed spelling: https://dictionary.cambridge.org/dictionary/english/separate

@jsbnr sorry sir, may I get your help again to check if this PR is merge-able this time round with the CLA approved? thanks!


File Handler icon and option not showing in Open menu or contextual menu in OneDrive or SharePoint

It does not show the file type icon or the app icon in default view, however details pane and preview pane do show the handler.
Here is my apps JSON from /_api/v2.0/drive/apps
{"@odata.context":"https://secloresi-my.sharepoint.com/_api/v2.0/$metadata#driveApps","value":[{"@odata.type":"#oneDrive.driveApp","@odata.id":"https://secloresi-my.sharepoint.com/_api/v2.0/oneDrive.driveAppee360a15-2a7b-41b5-90a9-309a899eb36b","@odata.editLink":"oneDrive.driveAppee360a15-2a7b-41b5-90a9-309a899eb36b","application":{"id":"d1a56703-db22-4104-a26d-53fb7e5a0025","displayName":"Adobe Document Cloud"},"fileHandler":{"fileTypeDisplayName":"Adobe PDF for Office 365","fileTypeIcon":{"png1x":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/file-handler-icon.svg"},"fileTypeIconUrl":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/file-handler-icon.svg","version":2},"id":"a0345218-04d9-4e3e-8c2c-de3117f260a7"},{"@odata.type":"#oneDrive.driveApp","@odata.id":"https://secloresi-my.sharepoint.com/_api/v2.0/oneDrive.driveAppf1510c0b-682b-4af0-b397-bf48422c2198","@odata.editLink":"oneDrive.driveAppf1510c0b-682b-4af0-b397-bf48422c2198","application":{"id":"dfc90964-c451-4866-b2bf-c340ef034164","displayName":"Seclore"},"fileHandler":{"actionMenuDisplayName":"Seclore","appIcon":{"png1_5x":"https://localhost:44362/images/ic_openwith_24px.png","png1x":"https://localhost:44362/images/ic_openwith_16px.png","png2x":"https://localhost:44362/images/ic_openwith_32px.png","svg":"https://localhost:44362/images/ic_openwith_24px.svg"},"fileTypeDisplayName":"Seclore Protected File","fileTypeIcon":{"png1_5x":"https://localhost:44362/images/ic_protected_24px.png","png1x":"https://localhost:44362/images/ic_protected_16px.png","png2x":"https://localhost:44362/images/ic_protected_32px.png","svg":"https://localhost:44362/images/ic_protected_24px.svg"},"fileTypeIconUrl":"https://localhost:44362/images/ic_protected_16px.png","version":2},"id":"56d2ac82-27e0-426f-8ba3-d44fd1d59389"}]}
@ificator

Thanks for your feedback.  We're taking a look.

@chackman - I checked the same today and the issue seems to be fixed. However I have provided different icons for File Handler command and file type. However at both places the File Handler command icon is getting rendered.
{"actionMenuDisplayName":"Seclore","appIcon":{"png1_5x":"https://localhost:44362/images/ic_openwith_24px.png","png1x":"https://localhost:44362/images/ic_openwith_16px.png","png2x":"https://localhost:44362/images/ic_openwith_32px.png","svg":"https://localhost:44362/images/ic_openwith_24px.svg"},"fileTypeDisplayName":"Seclore Protected File","fileTypeIcon":{"png1_5x":"https://localhost:44362/images/ic_protected_24px.png","png1x":"https://localhost:44362/images/ic_protected_16px.png","png2x":"https://localhost:44362/images/ic_protected_32px.png","svg":"https://localhost:44362/images/ic_protected_24px.svg"},"fileTypeIconUrl":"https://localhost:44362/images/ic_protected_16px.png","version":2},"id":"56d2ac82-27e0-426f-8ba3-d44fd1d59389"}]}

Also the app name being displayed in command bar open menu and preview pane open menu is different. In command bar open menu its taking the app name from Azure AD registration.

@chackman - Can you please let me know the complete addIns manifest schema that can be used with File Handlers?

Take a look here in regards to file handler documentation; there is a link to the Graph registration process.
Apologies about the issues, I have reached out again to a partner team in regards to investigating the issue.

Take a look here in regards to file handler documentation; there is a link to the Graph registration process.
Apologies about the issues, I have reached out again to a partner team in regards to investigating the issue.

@chackman - Any updates on this issue? Its still not working as expected.

@chackman Any updates on this issue? Its still not working as expected.

Sorry, I don't have an update to share from that partner team.

@iamrati  could you please let us know whether this issue is still reproducing?
If so, could you please provide us with:
The output of this query ({tenant} is your ODB tenant name):
https://{tenant}-my.sharepoint.com/_api/v2.0/drive/apps?select=*,promoted&expand=actions
The following response headers corresponding to your request:

Date (in UTC, please)
request-id
SPRequestGuid (for requests made to OneDrive for Business)

Thank you.

@chackman result of query https://secloredev-my.sharepoint.com/_api/v2.0/drive/apps?select=*,promoted&expand=actions
{"@odata.context":"https://secloredev-my.sharepoint.com/_api/v2.0/$metadata#driveApps","value":[{"@odata.type":"#oneDrive.driveApp","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppecf2c33f-1a7d-433c-ba5a-68849b18e6ca","@odata.editLink":"oneDrive.driveAppecf2c33f-1a7d-433c-ba5a-68849b18e6ca","application":{"id":"5630ad59-b026-4427-b5d1-ebda1dafedba","displayName":"Seclore"},"fileHandler":{"version":2},"id":"1057e305-633e-4e18-8130-5dd6fa3bfe57","actions@odata.navigationLink":"oneDrive.driveAppecf2c33f-1a7d-433c-ba5a-68849b18e6ca/actions","actions":[{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppActionfa06e583-0c51-4734-a6dc-a9997f8ab8b6","@odata.editLink":"oneDrive.driveAppActionfa06e583-0c51-4734-a6dc-a9997f8ab8b6","availableOn":{"file":{"extensions":[".bmp",".csv",".doc",".docx",".gif",".jpeg",".jpg",".odp",".ods",".odt",".pdf",".png",".ppt",".pptx",".rtf",".tif",".tiff",".txt",".xls",".xlsx"]},"allowMultiSelect":false},"displayName":"Seclore4","type":"open","url":"https://devjava1.stringsend.com/SecloreO365Service/openfile"}]},{"@odata.type":"#oneDrive.driveApp","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveApp2f142cea-2a6a-463e-b94b-0b60b2455111","@odata.editLink":"oneDrive.driveApp2f142cea-2a6a-463e-b94b-0b60b2455111","application":{"id":"5630ad59-b026-4427-b5d1-ebda1dafedba","displayName":"Seclore"},"fileHandler":{"version":2},"id":"eb39d967-2d38-4a0b-811d-25e17c538f9b","actions@odata.navigationLink":"oneDrive.driveApp2f142cea-2a6a-463e-b94b-0b60b2455111/actions","actions":[{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppAction84ee9049-8208-4d2f-a145-1c846b926af4","@odata.editLink":"oneDrive.driveAppAction84ee9049-8208-4d2f-a145-1c846b926af4","availableOn":{"file":{"extensions":[".html"]},"allowMultiSelect":false},"displayName":"Seclore4","icon":{"png1x":"https://dzlue6m1oppe1.cloudfront.net/file-handler-icons/ic_seclore_16px.png"},"type":"open","url":"https://devjava1.stringsend.com/SecloreO365Service/openfile"}]},{"@odata.type":"#oneDrive.driveApp","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveApp2a09dd7d-1983-4f55-9708-bdc2704900b7","@odata.editLink":"oneDrive.driveApp2a09dd7d-1983-4f55-9708-bdc2704900b7","application":{"id":"d1a56703-db22-4104-a26d-53fb7e5a0025","displayName":"Adobe Document Cloud"},"fileHandler":{"fileTypeDisplayName":"Adobe PDF for Office 365","fileTypeIcon":{"png1x":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/file-handler-icon.svg"},"fileTypeIconUrl":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/file-handler-icon.svg","version":2},"id":"a0345218-04d9-4e3e-8c2c-de3117f260a7","actions@odata.navigationLink":"oneDrive.driveApp2a09dd7d-1983-4f55-9708-bdc2704900b7/actions","actions":[{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppAction438415c5-0fae-46ad-91b7-c15da8171275","@odata.editLink":"oneDrive.driveAppAction438415c5-0fae-46ad-91b7-c15da8171275","availableOn":{"file":{"extensions":[".pdf"]},"web":{},"allowMultiSelect":false},"displayName":"Open in Adobe Document Cloud","icon":{"svg":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/file-handler-icon.svg"},"type":"open","url":"https://dcsi.adobe.io/ms/filehandler/preview?stream=production&api_key=dc-prod-dcsi"},{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppAction05362d09-3817-4c1d-8efc-6c9d53fabd69","@odata.editLink":"oneDrive.driveAppAction05362d09-3817-4c1d-8efc-6c9d53fabd69","availableOn":{"file":{"extensions":[".pdf"]},"web":{},"allowMultiSelect":false},"displayName":"Organize Pages by Adobe","icon":{"png1x":"https://main.iam.ad.ext.azure.com/api/Images/Applications/RNZTGx2vC5572ojyvafnUL6JuoITftJzABJ5Tdjh9vg=.jpg?t=636452206561972792","svg":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/A12_Organize.svg"},"shortDisplayName":"Organize Pages","type":"custom","url":"https://dcsi.adobe.io/ms/filehandler/organize?stream=production&api_key=dc-prod-dcsi"},{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppActionfd3255a8-e1f8-4006-bdf8-fae43ff0c4c6","@odata.editLink":"oneDrive.driveAppActionfd3255a8-e1f8-4006-bdf8-fae43ff0c4c6","availableOn":{"file":{"extensions":[".pdf"]},"web":{},"allowMultiSelect":false},"displayName":"Export PDF by Adobe","icon":{"png1x":"https://main.iam.ad.ext.azure.com/api/Images/Applications/RNZTGx2vC5572ojyvafnUL6JuoITftJzABJ5Tdjh9vg=.jpg?t=636452206561972792","svg":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/A12_Export.svg"},"shortDisplayName":"Export PDF","type":"custom","url":"https://dcsi.adobe.io/ms/filehandler/export?stream=production&api_key=dc-prod-dcsi"},{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppActionf0fdfe50-dd3d-4449-8cfe-4741a9816e02","@odata.editLink":"oneDrive.driveAppActionf0fdfe50-dd3d-4449-8cfe-4741a9816e02","availableOn":{"file":{"extensions":[".ai",".bmp",".doc",".docx",".form",".gif",".indd",".jpeg",".jpg",".png",".ppt",".pptx",".psd",".rtf",".text",".tif",".tiff",".txt",".xls",".xlsx"]},"web":{},"allowMultiSelect":false},"displayName":"Create PDF by Adobe","icon":{"png1x":"https://main.iam.ad.ext.azure.com/api/Images/Applications/RNZTGx2vC5572ojyvafnUL6JuoITftJzABJ5Tdjh9vg=.jpg?t=636452206561972792","svg":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/A12_Create.svg"},"shortDisplayName":"Create PDF","type":"custom","url":"https://dcsi.adobe.io/ms/filehandler/create?stream=production&api_key=dc-prod-dcsi"},{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppActioncc1a466e-752b-4967-a59b-098e78252a67","@odata.editLink":"oneDrive.driveAppActioncc1a466e-752b-4967-a59b-098e78252a67","availableOn":{"file":{"extensions":[".ai",".bmp",".doc",".docx",".form",".gif",".indd",".jpeg",".jpg",".png",".ppt",".pptx",".psd",".rtf",".text",".tif",".tiff",".txt",".xls",".xlsx",".pdf"]},"web":{},"allowMultiSelect":true},"displayName":"Combine Files by Adobe","icon":{"png1x":"https://main.iam.ad.ext.azure.com/api/Images/Applications/RNZTGx2vC5572ojyvafnUL6JuoITftJzABJ5Tdjh9vg=.jpg?t=636452206561972792","svg":"https://dc.acrobat.com/spodpdfservices/filehandler-resources/A12_Combine.svg"},"shortDisplayName":"Combine Files","type":"custom","url":"https://dcsi.adobe.io/ms/filehandler/combine?stream=production&api_key=dc-prod-dcsi"}]},{"@odata.type":"#oneDrive.driveApp","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppa997f18e-2c1a-480a-8381-d90b3c5e21b8","@odata.editLink":"oneDrive.driveAppa997f18e-2c1a-480a-8381-d90b3c5e21b8","application":{},"fileHandler":{"actionMenuDisplayName":"Open in AutoCAD (web app)","appIcon":{"png1_5x":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/png/autodesk_16x1_5.png","png1x":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/png/autodesk_16x1.png","png2x":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/png/autodesk_16x2.png","svg":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/svg/autodesk_16x1.svg"},"fileTypeDisplayName":"AutoCAD (web app)","version":2},"promoted":{},"actions@odata.navigationLink":"oneDrive.driveAppa997f18e-2c1a-480a-8381-d90b3c5e21b8/actions","actions":[{"@odata.type":"#oneDrive.driveAppAction","@odata.id":"https://secloredev-my.sharepoint.com/_api/v2.0/oneDrive.driveAppAction3da115bf-44e1-4859-8e09-e786499472e2","@odata.editLink":"oneDrive.driveAppAction3da115bf-44e1-4859-8e09-e786499472e2","availableOn":{"file":{"extensions":[".dwg"]},"allowMultiSelect":false},"displayName":"AutoCAD (web app)","icon":{"png1_5x":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/png/autodesk_16x1_5.png","png1x":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/png/autodesk_16x1.png","png2x":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/png/autodesk_16x2.png","svg":"https://static2.sharepointonline.com/files/fabric/partner-assets/brand-icons/product/svg/autodesk_16x1.svg"},"shortDisplayName":"AutoCAD (web app)","type":"open","url":"https://app.autocad.com/post-forward-one-drive?stage=prod"}]}]}
It shows the same icon in Open Menu as well as for file type even though i have supplied both which are different. It shows the appIcon everywhere.
Also the issue of preceding 'Open with' with the display name of app in SharePoint and OD Preview Pane toolbar still persists.
Let me know if you need more info.

@chackman Do you have any updates regarding when it will be fixed?

I've asked the team working on this issue to provide an update.

Hey @chackman We are experiencing the same issue again "File Handler icon and option not showing in Open menu or contextual menu in OneDrive or SharePoint".
Can you provide an update?

@JeremyKelley can you help me with this.
@OneDriveAutomation

I have the same problem, I want to know how to reslove this problem

I am seeing the same issue, the icon I use is not shown, but I get a default option instead.
I can get the file menu icons to show, just not the actual file icon picture.

@chackman could you take a look at this

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.


Image classification from scratch example

Changes in code for example Image classification from scratch https://keras.io/examples/vision/image_classification_from_scratch/

Closing file descriptor to prevent file lock and descriptor memory leakage
Usage of os.remove instead of rm to allow Windows usage

Thanks for the review. Sorry, I missed it. The md should be modified too.


[Hold #219254] iOS - Push notification leads to blank screen if the app not running at the background

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Kill the App (dismiss App's card)
Sent message to the user
Tap on the notification

Expected Result:
The user should be able to view chat after tapping on the notification when App was killed (not running at the background)
Actual Result:
Bank screen after logo appears
Workaround:
Unknown
Platform:

Where is this issue occurring?

iOS

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/200917754-3022b919-e600-46ac-bac1-f229e0e10222.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Yep - i'm able to reproduce this
https://user-images.githubusercontent.com/42940078/200965507-d70fada7-6617-4543-a07b-d526351c62ff.MP4

@Julesssss would this be part of the notifications project?

Oh, pretty sure this is a regression -- a RCA and testing older versions should locate the regression here. Will discuss this with Andrew though.

@Julesssss @AndrewGable what do you think? Should this be handled separately from your notifications project?

It's @arosiclair FYI, but yeah, i think this definitely falls under the reliability umbrella.

I added it to the tracker and will discuss with Andrew 1:1

Imma close this one out until we reopen and decide to do something with it!


1 - HTML structure

[x] use the initiated index.html (home page) file and create the structure and elements based on the wireframe
[x] use the initiated addNewApointment.html file and create the structure and elements based on the wireframe
[x] make the static HTML page
[x] make the page look like the wireframe

Have made the index.html (basic page W buttons and css styling)
Have made the addNewAppointment.html (basic page W buttons and css styling)


Restore versioning

Resolves the failed isolated versioning experiment from #46, #48, #49. Moving forward, need to have a custom script that gets called in the Circle workflow that preps the release by parsing the commits manually and bumping version as needed.

:tada: This PR is included in version 1.11.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


SpringBeanProcessor didn't find methods in super-class any more

It still did in 3.0.9. This makes the application broken, e.g. if you also use org.springframework.data.neo4j.aspects.config.Neo4jAspectConfiguration, which is a bean extending from another one.

Hi @mihxil, @wilkinsona
This problem seems always be present in 3.0.11.Final.
This problem break the "Spring Boot" intégration too.
Do you have any news about this PR or a fix of this issue ?

@VanRoy I haven't. I noticed the problem, and made a fix and a pull request, but afaik it wasn't pulled or fixed otherwise, and we're still using 3.0.9 because of that.

See https://issues.jboss.org/browse/RESTEASY-1212

New pull request in
https://github.com/resteasy/Resteasy/pull/659


cannot use executable file as input to a link Traceback (most recent call last)

juba@juba:~/LM-RISCV-DV/integrated_cores/SweRV_EH1$ make
mkdir -p out/rtl_sim
Sun, 11 Feb 2024 15:08:59 INFO     Processing simulator setup file : yaml/rtl_simulation.yaml
Sun, 11 Feb 2024 15:08:59 INFO     Compiling TB
mkdir -p out/seed-14431/.metadata
Sun, 11 Feb 2024 15:09:00 INFO     Creating output directory: out/seed-14431/instr_gen
Sun, 11 Feb 2024 15:09:00 INFO     Processing regression test list : riscv_dv_extension/testlist.yaml, test: riscv_arithmetic_basic_test
Sun, 11 Feb 2024 15:09:00 INFO     Found matched tests: riscv_arithmetic_basic_test, iterations:2
Sun, 11 Feb 2024 15:09:00 INFO     Processing simulator setup file : /home/juba/LM-RISCV-DV/google_riscv_dv/yaml/simulator.yaml
Sun, 11 Feb 2024 15:09:00 INFO     Found matching simulator: questa
Sun, 11 Feb 2024 15:09:00 INFO     Building RISC-V instruction generator
Sun, 11 Feb 2024 15:09:05 INFO     Running RISC-V instruction generator
Sun, 11 Feb 2024 15:09:05 INFO     Generating 2 riscv_arithmetic_basic_test
Sun, 11 Feb 2024 15:09:05 INFO     Running riscv_arithmetic_basic_test with 1 batches
Sun, 11 Feb 2024 15:09:05 INFO     Running riscv_arithmetic_basic_test, batch 1/1, test_cnt:2
Sun, 11 Feb 2024 15:09:10 INFO     Creating output directory: out/seed-14431/instr_gen
Sun, 11 Feb 2024 15:09:10 INFO     Processing regression test list : riscv_dv_extension/testlist.yaml, test: riscv_arithmetic_basic_test
Sun, 11 Feb 2024 15:09:10 INFO     Found matched tests: riscv_arithmetic_basic_test, iterations:2
Sun, 11 Feb 2024 15:09:10 INFO     Compiling out/seed-14431/instr_gen/asm_tests/riscv_arithmetic_basic_test_0.S
Sun, 11 Feb 2024 15:09:10 INFO     Converting to out/seed-14431/instr_gen/asm_tests/riscv_arithmetic_basic_test_0.bin
/home/juba/riscv-demo/bin/riscv64-unknown-elf-ld: cannot use executable file 'out/seed-14431/instr_gen/asm_tests/riscv_arithmetic_basic_test_0.o' as input to a link
Traceback (most recent call last):
  File "/home/juba/LM-RISCV-DV/google_riscv_dv/lm_run.py", line 1262, in <module>
    main()
  File "/home/juba/LM-RISCV-DV/google_riscv_dv/lm_run.py", line 1239, in main
    gcc_compile(matched_list, output_dir, args.isa, args.mabi,
  File "/home/juba/LM-RISCV-DV/google_riscv_dv/lm_run.py", line 459, in gcc_compile
    run_cmd_output(cmd.split(), debug_cmd = debug_cmd)
  File "/home/juba/LM-RISCV-DV/google_riscv_dv/scripts/lib.py", line 195, in run_cmd_output
    raise exc
  File "/home/juba/LM-RISCV-DV/google_riscv_dv/scripts/lib.py", line 192, in run_cmd_output
    output = subprocess.check_output(cmd)
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/juba/riscv-demo/bin/riscv64-unknown-elf-ld', '-m', 'elf32lriscv', '--discard-none', '-T/home/juba/LM-RISCV-DV/integrated_cores/SweRV_EH1/riscv_dv_extension/link.ld', '-o', 'out/seed-14431/instr_gen/asm_tests/riscv_arithmetic_basic_test_0.exe', 'out/seed-14431/instr_gen/asm_tests/riscv_arithmetic_basic_test_0.o']' returned non-zero exit status 1.
make: *** [Makefile:254: out/seed-14431/.metadata/instr_gen.compile.stamp] Error 1

Hi Ahmed,
I also run into the same issue recently. Have you already found a solution to this issue?
Thanks for any info.

Hi Ahmed, I also run into the same issue recently. Have you already found a solution to this issue? Thanks for any info.

Hello Mr. Unfortunately no.

Hi Ahmed, I also run into the same issue recently. Have you already found a solution to this issue? Thanks for any info.

Hello Mr. Unfortunately no.

Hi,
I think I solved this issue. You can search for  'gcc_compile' in the Makefile, and then you can see a '-o'  option in the command 'riscv64-unknown-elf-gcc'. But this is wrong, 'cause you should issue '-c -o' to generate an object file, otherwise an executable is generated instead of an object file.
That's where the error message '/home/juba/riscv-demo/bin/riscv64-unknown-elf-ld: cannot use executable file 'out/seed-14431/instr_gen/asm_tests/riscv_arithmetic_basic_test_0.o' as input to a link' comes from--this previously generated '.o' file is already an executable, and cannot be 'linked' again.
I am wondering if the author/contributor has tested the as-is code/repo before submitting to the github.
Anyway, some debugging info for your reference.
BTW, when executing SPIKE ISS in the steps that follow, remember to modify the executable to '.exe' instead of '.o' files. Otherwise, SPIKE may dump a bunch of strange info instead of successful executions.


Create outcomes.md

👷 Deploy Preview for famous-marshmallow-cfbd61 processing.

Name
Link

🔨 Latest commit
5e98fcc5e43741bbd36ce633fc69f99068afd887

🔍 Latest deploy log
https://app.netlify.com/sites/famous-marshmallow-cfbd61/deploys/64ddaa9ce154b50009d36e80


endpoint to broadcast a tx

Correct me If I'm wrong but I read that v1 endpoints (those exposed from the node) are being deprecated and v2 (indexer) is gonna replace them all.
I'm wondering what's the replacement for the POST v1/transactions endpoint to broadcast a raw transaction to the network? Is it possible to broadcast transaction through the indexer? what's the API?
Thanks

Posting transactions should still go through algod not indexer.

so the POST v1/transactions will be kept and working?

POST v1/transactions was only ever algod and not indexer

@roccomuso v1 is deprecated and eventually will not be part of algod. If possible, please switch to v2 at your earliest convenience. The call on v2 is simply POST v2/transactions.
Also, as mentioned above, posting transactions is part of algod and will not (at least for the foreseeable future) be part of indexer.
Please let me know if there are any other concerns.

So to be clear I'd be able to broadcast transactions using POST v2/transactions. I'm asking because I did not see this on the documentation.

Correct, you're already able to. Here is the link to the documentation


fix(proxy): transparently forward errors when passing ofetch

🔗 Linked issue
https://github.com/unjs/h3/issues/464
❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[x] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

As discussed in https://github.com/unjs/h3/issues/464 and https://github.com/unjs/nitro/pull/1489.
ProxyOptions type updated to allow overriding the default value (true).

Is it breaking change?
I would say so, users may depend on error masking. This is not strictly a bug. Mandatory xkcd: https://xkcd.com/1172/

I personally dislike this solution a lot; if we allow freedom of passing fetch implementation, it should be up to the callee to configure the behavior of their implementation exactly as they like. If it's required to pass option to do so, they already can do so with fetchOptions.
Forcing ignoreResponseError: true is implicitly re-configuring non-default user-passed implementation. I think better approach is to allow the freedom along with passing the responsibility. Another edge-case is when user passes fetch implementation which also supports ignoreResponseError or throws on unknown parameters - both sound plausible to me.
📝 Checklist

[x] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Either solution solves the problem. If you like it, that's good enough! Much better title too! ❤
I am still a little worried about this one guy who uses error masking to hide secrets from consumers, but if you consider it non breaking, be it 😂

You can try it on nightly channel now (check little new section in readme!)


Can tooltip be made hoverable?

So can I make ti hoverable somehow?

What is the use case to have a tooltip being interactive? It's not made for that.

For example when you got a "more info" link in tooltip.
On Fri, Feb 24, 2017, 22:09 Guillaume Chau<EMAIL_ADDRESS>wrote:

What is the use case to have a tooltip being interactive? It's not made
for that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Akryum/vue-tooltip/issues/12#issuecomment-282405074,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABMRYMEw0sRRPYFumr8wr-ADx7iTEX0aks5rf0cEgaJpZM4MLen1
.

Well, that not this library is for, maybe dropdowns or drop.js would be more appropriate. By the way, I don't recommend to have interactive elements displayed by hovering, this is bad for usability and touchscreens.


update npm repository

please update the latest version to npm,  many thanks

@lzyzsd The latest released version is available on npm!

acrobat published 6 months ago
1.4.0 is the latest release

@acrobat sorry, do not check the release versions。 since 1.4.0 do not have main property in package.json, it can not be used with webpack, when will you release 1.5.0?

I don't know when 1.5 will be released exactly, because we have a few critical bugs left and I have very limited time resources myself. But we will try to get it out as soon as possible. If the missing main property should be a blocking issue, I could port the fix and release 1.4.1 with the main property!

@acrobat many thanks for your effort to this awesome lib, currently, I can do some config in webpack to bypass the problem.

@acrobat Please do! Thanks.

I've pushed 1.4.1 to npm with the main property in the package.json. So you guys can update the your datepicker!

I've pushed 1.4.1 to npm with the main property in the package.json. So you guys can update the your datepicker!
/cc @lzyzsd , @Ben52

@acrobat  many thanks

I installed via npm i eternicode/bootstrap-datepicker#d014a14f0 -D where the hash is the latest.
But I cannot figure out how to get it to load. @lzyzsd @Ben52 what did you folks do to get webpack to load bootstrap-datepicker? Can you share your webpack.config.js and any other bits?

@stevepiercy I use browserify.

For others, in your app's entry point, say in main.js:
require('bootstrap-datepicker');
// example configuration
$('#date_measured').datepicker({
    format: "yyyy-mm-dd",
    startDate: "-1y",
    endDate: "0d",
    todayBtn: "linked",
    autoclose: true,
    todayHighlight: true
});


how to implement ChosenInlineResult ?

there is an inline query which is show a list of drugs as a result.

and my question is how to handle the selected item (which has shown above picture)? I looked at the telegram doc and found ChosenInlineResult but I don't know how to implement it? please help me to implement this !!

thanks to GOD. I found the answer this is simple. I have done the following steps:

in @BotFather  turn on Inline feedback .
and write this code
bot.on('chosen_inline_result', result => {  console.log(result); })


Fix withdraw bid unbonds

Fix unbonding purse creation in case of a withdrawal causing the validator's stake to fall below minimum_bid_amount.
Add a test for this scenario.
Closes https://github.com/casper-network/casper-node/issues/5012

Still have to go through the failing tests since they seem to depend on chainspec minimum_bid_amount value being ignored.

bors r+


fix: 🐛 pass the token to get the list of config names

Otherwise, get_dataset_infos doesn't work on gated or private datasets, even with the correct token.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Fixes IronPython intellisense

Fixes IronPython intellisense
Fixes IronPython tests
Removes unnecessary IronPython dependencies from test projects
Makes Ast.PythonModuleLoader public API
This is a prerequisite for #2943, though it's not a fix for it. Feel free to make architectural suggestions - I've gone for minimum top-level public APIs, but if you really hate the nested classes/enums then let me know why and I'll reconsider :)

For clarity, most of this change is:

adding a fallback to import using the AST analyzer for pure-Python modules in IronPython
removing unused code and unnecessary assembly references (that were breaking tests)


Serve blobs

This PR brings some necessary updates to the docker-compose.yml to properly serve blobs.
NOTE: this  file is not used in our actual deployment (that is handled by https://github.com/planetary-social/ansible-scripts/pull/20.  But if you are wanting to run the graphql as a container locally, this file helps with that.

Looks good to me.


Stepping sequentially through fragment tree

We need to step sequentially through the fragment tree to do our analysis tree building. I have made this a separate issue from #205  because I've decided to play with the milestones to see how they work.

This is now a duplicate of #424


Crashes when querying all records from a database containing images (blobs)

Describe the bug
My database file is 90MB large and contains 400 records, many of then containing an image blob. Running a query through all records makes the app crash, window disappears from screen. When running the same code on a smaller database (say 20 records, 4 images) there are no issues.
To Reproduce
Running this code makes the app crash:
            conn = new exports.SQLiteConnection(exports.CapacitorSQLite);
            console.log(conn);
            conn.createConnection(
                "Substances", false, "no-encryption", 3, false
            ).then(db => {
                console.log(db);
                db.open("Substances", false, 'no-encryption', 3, true).then(() => {
                    const sql = 'select * from `Substanzen - Substanzen`';
                    db.query(sql).then(
                        result => {
                            console.log(result);
                            document.querySelector('section.substances').innerHTML = '';
                            result.values.forEach(row => {
                                console.log(row.Name + ' - ' + row.Art);
                                // HTML aus Template lesen und die Platzhalter ersetzen
                                let html = document.getElementById('substance-tpl').innerHTML
                                    .replace(/{{name}}/g, row.Name)
                                    .replace(/{{art}}/g, row.Art)
                                    .replace(/{{beschreibung}}/g, row.Beschreibung)
                                if (row.Bild) {
                                    console.log((typeof new Blob([new Uint8Array(row.Bild).buffer])))
                                    html = html.replace(/{{img}}/g, URL.createObjectURL(new Blob([new Uint8Array(row.Bild).buffer])));
                                } else {
                                    html = html.replace(/{{img}}/g, '""');
                                }
                                // HTML in section mit den Substanzen am Ende eintragen
                                document.querySelector('section.substances')
                                    .insertAdjacentHTML('beforeend', html)
                            });
                            db.close("Substances");
                            return 'database read successfully';
                        });
                });
            });

Expected behavior
Query should run and complete without issues
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: Samsung A50
OS: Android 11
Browser n. a.
Version [e.g. 22]

Additional context
When running the query without images, i. e.
"select Name, Art, Beschreibung from Substanzen - Substanzen"
it's running without issues. I was able to create a running workaround by selecting the texts in a first step and then querying the images one by one:
            conn = new exports.SQLiteConnection(exports.CapacitorSQLite);
            console.log(conn);
            conn.createConnection(
                "Substances", false, "no-encryption", 3, false
            ).then(db => {
                console.log(db);
                db.open("Substances", false, 'no-encryption', 3, true).then(() => {
                    const sql = "select Name, Art, Beschreibung from `Substanzen - Substanzen`";
                    db.query(sql).then(result => {
                        console.log(result);
                        document.querySelector('section.substances').innerHTML = '';
                        result.values.forEach(row => {
                            console.log(row.Name + ' - ' + row.Art);
                            const sqlImg = "select Bild from `Substanzen - Substanzen` where Name='" + row.Name + "'";
                            db.query(sqlImg).then(result => {
                                const img = result.values[0].Bild;
                                if (img) {
                                    // HTML aus Template lesen und die Platzhalter ersetzen
                                    let html = document.getElementById('substance-tpl').innerHTML
                                        .replace(/{{name}}/g, row.Name)
                                        .replace(/{{art}}/g, row.Art)
                                        .replace(/{{beschreibung}}/g, row.Beschreibung)
                                    if (img) {
                                        console.log((typeof new Blob([new Uint8Array(img).buffer])))
                                        html = html.replace(/{{img}}/g,
                                            URL.createObjectURL(new Blob([new Uint8Array(img).buffer])));
                                    } else {
                                        html = html.replace(/{{img}}/g, '""');
                                    }
                                    // HTML in section mit den Substanzen am Ende eintragen
                                    document.querySelector('section.substances')
                                        .insertAdjacentHTML('beforeend', html)
                                }
                            });
                        });
                        // db.close("Substances");
                        return 'database read successfully';
                    });
                });
            });

@Sempervivum have you tried to increase the page-size and cache-size with the PRAGMA

Thanks for this hint. Unfortunately I'm new to Capacitor and not familiar with these terms. I'm gonna do some research and give it a try.

@Sempervivum you do it with an SQL statement that you execute
string stmt = "PRAGMA cache_size = 10000"
db.execute(stmt)
If 10000 is not enough increase it till is works

Many thanks for this explanation. I see, this is related to SQLite, not Android. I'll give it a try ASAP.

Many thanks!
I added it to my code but unfortunately the app keeps craching. I suspect the size of my mobile's memory is not sufficient.
            db.open("Substances", false, 'no-encryption', 3, true).then(() => {
                const stmt = "PRAGMA cache_size = 100000; PRAGMA page_size = 32768";
                db.execute(stmt).then((result) => {
                    console.log(result);
                    const sql = "select rowid, Name, Art, Beschreibung, Bild from `Substanzen - Substanzen`";
                    db.query(sql).then(result => {

I increased the values step by step.
The result of the execute statement says "changes: 0" which seems to be OK to me as no rows are affected.

@Sempervivum sorry but there is nothing i can do more. If you select half of the rows did it work.

Hi @jepiqueau
thanks for your support!
Don't worry, fortunately I got the workaround I mentioned in my initial posting. However this is fairly slow, there I referenced the images by the rowid:
            db.open("Substances", false, 'no-encryption', 3, true).then(() => {
                const sql = "select rowid, Name, Art, Beschreibung from `Substanzen - Substanzen`";
                db.query(sql).then(result => {
                    console.log(result);
                    ...
                    result.values.forEach(row => {
                            ...
                            const sqlImg = "select Bild from `Substanzen - Substanzen` where rowid='" + row.rowid + "'";
                            db.query(sqlImg).then(result => {

Unfortunately this didn't improve speed significantly.
I ended up in caching the images, i. e. storing them in the cache folder and read them from there when the same database is read again. This improved speed a lot. I think we can go with this.
I do not understand why reading from the file system is that faster than reading from the database. Does Android cache these images in memory?
Best regards, Ulrich

Remagine what you are doing. It's like every image is reencoded to SQLite blob instead of putting it in plain to the same filesystem.
For Images you should use Capacitor Filestorage, good example is basic tutorial on Ionic website. And if needed, like with PWA (using LocalStorage), sync them to server. This will also allow to save images to external storage which mobile users will prefer.
SQLite is by design database primarily for text data, it is not as robust as MySQL, Postgres or similar relational DBs. Not that I would suggest using any RDB for images or files. You can hardly optimize it if you running it on the same filesystem as your code.

Offline is not a problem with Capacitor FileStorage. But to make bridge between FileStorage and DB Browser would be a "fun" task.
Thing which can help here for displaying data back in html is pagination or so called loading data on scroll.
But that would require to separate html part out from the script you posted. If it is not already in your real code. Like document.getElementById should not be in the loop at all. There should be only one same ID per html site.
One function will only load data from DB (part of it based on pagination).
Another will process them in the loop and put them to predefined html template.
Third one will put it all to document/html.
If that would be still slow and you need some quicker pagination for SQLite here is something which should still work:
https://gist.github.com/ssokolow/262503
First limit in that query is how many lines to skip (50) second is how many to query (10).
I hope this will help at least a little.

OK, sorry, you have only one ID used for loading template. I would load it before loop as htmlTpl and then just copy it to var html = htmlTpl. Which should work as JS has no object pointers. But that's up to preference.

Hi @Antarian
thanks for your support. I tested pagination and it works without crashes. I used the query you referenced above. However not significantly faster than my approach, reading only texts first and then reading the images one by one.
BTW: I tried some debugging and noticed in the java sources that there is something like a cursor behind the scenes: Getting one row by one which would make it possible to avoid putting complete result of the query into a huge array. I suspect that this might be another option to avoid crashes. Is that correct? However I can't find a cursor in the docs of the SQLite plugin for capacitor.

@Sempervivum  For me the best will be to use a select with a LIMIT to two times the number of images that you can see simultaneously in your application page and when you slide up or down in your page manage to make a new SELECT containing the next or previous images. Your solution is also valid.
I will close the issue


Improvement - Add GitHub private security report in the Scorecard output

Is your feature request related to a problem? Please describe.
Not really. This feature might be an improvement to better evaluate the security posture of a project. Currently, the Scorecard reports only if a project has or does not have a security policy (e.g. SECURITY.md), without additional context. Recently, GitHub has introduced private security reports to report vulnerabilities to maintainers without opening a public issue. Even if only GitHub (AFAIK) offers a similar feature at the moment, and even if this feature is still in beta, it might be helpful to report this info in the Scorecard output - without points or evaluation.
Describe the solution you'd like
Community, platforms, and products can evolve rapidly by introducing new features or adopting new standards. It might be useful to have some of this info in the scorecard output, even if the scorecard will not add any score in the aggregated score.
Describe alternatives you've considered
//
Additional context
In OpenSSF, we are evaluating to use GitHub private security reports for our open-source projects. It is the easiest solution to enable security reports to an organization level - without creating a unique email address for all the repositories or multiple email addresses.

Duplicate of #2465. Closing to track in one issue.


feat(fiatconnect): add cico review screen

Description
Add Fiat Connect CICO review screen

Other changes
N/A
Tested
Unit tests and manually by changing a button to load this screen
How others should test
This component is not accessible in the app yet. It is a future flow that has not been fully built out
Related issues

Part of #2334

Backwards compatibility
Yes

This is a design feedback, wondering if you agree: From the screen, I was not able to tell what's the total amount of USD I'll receive from this withdrawal. From my understanding, I'm exchanging 20.13 cUSD to 20 USD and there will be a fee of $2.99. Does that mean the amount I received in the end is $17.01 in USD (minus the fee)? Thought it's weird, the total amount to be received by my bank account does not show up any where in the screen

Hey @MuckT please let us know when it has been enabled as it is mentioned , it is a future flow
Cc: @satish-ravi


npm start fails running less:layouts

Build fails for me on Ubuntu 15. All dependencies are installed, as well as all npm packages.
$ npm version
{ http_parser: '1.0',
  node: '0.10.25',
  v8: '<IP_ADDRESS>',
  ares: '1.10.0',
  uv: '0.10.23',
  zlib: '1.2.8',
  modules: '11',
  openssl: '1.0.1f',
  npm: '1.4.21',
  Drywall: '0.16.4' }

jon@ubuntu:~/PyCharmProjects/drywall$ npm start

><EMAIL_ADDRESS>start /home/jon/PyCharmProjects/drywall
> grunt

Running "copy:vendor" (copy) task

Running "newer:uglify" (newer) task

Running "newer:uglify:layouts" (newer) task
No newer files to process.

Running "newer:uglify:views" (newer) task
No newer files to process.

Running "newer:less" (newer) task

Running "newer:less:layouts" (newer) task

Running "less:layouts" (less) task
>> FileError: '../vendor/bootstrap/less/mixins.less' wasn't found. Tried - public/vendor/bootstrap/less/mixins.less,public/vendor/bootstrap/less/mixins.less,../vendor/bootstrap/less/mixins.less in public/less/bootstrap-build.less on line 3, column 1:
>> 2 @import "bootstrap-vars.less";
>> 3 @import "../vendor/bootstrap/less/mixins.less";
>> 4
Warning: Error compiling public/less/bootstrap-build.less Use --force to continue.

Aborted due to warnings.

npm ERR<EMAIL_ADDRESS>start: `grunt`
npm ERR! Exit status 6
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is most likely a problem with the Drywall package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     grunt
npm ERR! You can get their info via:
npm ERR!     npm owner ls Drywall
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.19.0-22-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /home/jon/PyCharmProjects/drywall
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/jon/PyCharmProjects/drywall/npm-debug.log
npm ERR! not ok code 0

Thanks for opening an issue. I wasn't able to reproduce this, the steps I took were:

made sure I was up to date with the master branch
$ npm cache clean
changed the html5shiv dependency to the git repo git@github.com:aFarkas/html5shiv.git, you can tack why with issue #312
$ npm install
$ npm start

Everything worked as expected.

Any updates? Should we close this issue?

Hi I've just run into the exact same problem installing on openshift. Will try your solution and get back.

FYI: THe html5shiv package has been republished so the 3rd step above shouldn't be needed.

OK, the problem I'm having now is that it's listening on the same port as my other application, and openshift only provides one external port to listen to, I think. If I'm wrong about that and / or anyone can shed any light on how to fix this conflict, please let me know.

@brightlylit that sounds correct. However I haven't worked with OpenShift myself. I'm going to close this issue related to running $ npm start + less complication failures. Feel free to open another issue specific to your current issue.


arch: arm: cortex-m: add support for clearing NXP MPU regions at boot

Clear NXP MPU regions at boot if CONFIG_INIT_ARCH_HW_AT_BOOT is enabled. Also remove MPU support from the K2x SoC since this leads to compilation issues as the K22F does not contain an MPU.

This brings https://github.com/mcu-tools/mcuboot/pull/896 into Zephyr.

Hello @henrikbrixandersen ,
First, thank you so much for sending this patch.
Unfortunately, I still need select MCUBOOT_CLEANUP_ARM_CORE at MCUboot.
My Steps:
# [ 1 ] build normally doesn't boot image

# At Zephyr dir after fetch PR
git checkout #34680
git fetch upstream
git rebase upstream/master
west update
cd ..
ls
bootloader  modules  net-tools  tools  zephyr

# build/flash bootloader
west build -b frdm_k64f -d build/mcuboot-frdm_k64f bootloader/mcuboot/boot/zephyr
west flash -d build/mcuboot-frdm_k64f

# build/flash updatehub
west build -b frdm_k64f -d build/app zephyr/samples/subsys/mgmt/updatehub
west sign -t imgtool -d build/app --no-hex -- --version 1.0.0 --pad --key bootloader/mcuboot/root-rsa-2048.pem
west flash -d build/app --bin-file build/app/zephyr/zephyr.signed.bin

# [ 2 ] build with MCUboot clean chain load enabled

rm -rf build

west build -b frdm_k64f -d build/mcuboot-frdm_k64f bootloader/mcuboot/boot/zephyr -DCONFIG_MCUBOOT_CLEANUP_ARM_CORE=y
west flash -d build/mcuboot-frdm_k64f

# build/flash updatehub
west build -b frdm_k64f -d build/app zephyr/samples/subsys/mgmt/updatehub
west sign -t imgtool -d build/app --no-hex -- --version 1.0.0 --pad --key bootloader/mcuboot/root-rsa-2048.pem
west flash -d build/app --bin-file build/app/zephyr/zephyr.signed.bin

The [ 2 ] boot Zephyr. However, I still see the issues. frdm-k64f not confirm image and the consequence is board boot on a loop.
*** Booting Zephyr OS build zephyr-v2.5.0-2840-g363af20fc4a6  ***
I: Starting bootloader
I: Primary image: magic=good, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: primary slot
I: Swap type: none
I: Bootloader chainload address offset: 0x20000
I: Jumping to the first image slot
*** Booting Zephyr OS build zephyr-v2.5.0-2840-g363af20fc4a6  ***

uart:~$ updatehub info
Unique device id: ffffffff4e454130000b000f
Firmware Version: 1.0.0
Product uid:
UpdateHub Server: coap.updatehub.io
[00:00:03.001,000] <inf> eth_mcux: ETH_0 enabled 100M full-duplex mode.
[00:00:03.002,000] <inf> main: UpdateHub sample app started
[00:00:03.002,000] <inf> main: Confirming the boot image
[00:00:03.002,000] <err> main: Error to confirm the image
[00:00:03.002,000] <inf> main: Network disconnected
uart:~$
[00:00:11.006,000] <inf> main: Network connected
[00:00:11.006,000] <inf> main: Starting UpdateHub polling mode
[00:00:11.006,000] <inf> updatehub: SHA-256 verification on download and from flash
[00:00:11.006,000] <err> updatehub: The current image is not confirmed
[00:00:11.006,000] <err> updatehub: Image is unconfirmed. Rebooting to revert back to previousconfirmed image.*** Booting Zephyr OS build zephyr-v2.5.0-2840-g363af20fc4a6  ***
I: Starting bootloader
I: Primary image: magic=good, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: primary slot
I: Swap type: none
I: Bootloader chainload address offset: 0x20000
I: Jumping to the first image slot
*** Booting Zephyr OS build zephyr-v2.5.0-2840-g363af20fc4a6  ***

[00:00:03.001,000] <inf> eth_mcux: ETH_0 enabled 100M full-duplex mode.
[00:00:03.002,000] <inf> main: UpdateHub sample app started
[00:00:03.002,000] <inf> main: Confirming the boot image
[00:00:03.002,000] <err> main: Error to confirm the image
[00:00:03.002,000] <inf> main: Network disconnected
uart:~$

Clear NXP MPU regions at boot if CONFIG_INIT_ARCH_HW_AT_BOOT is enabled.

This call is not implemented (is not part of the PR, at least)

Clear NXP MPU regions at boot if CONFIG_INIT_ARCH_HW_AT_BOOT is enabled.

This call is not implemented (is not part of the PR, at least)

@ioannisg Not sure what you mean with the above comment?

Totally fine with the change, of course, but can you move this out of ARCH code? We try to remove SoC-specific code from core AARCH32 directory; definitely not add more :)
You could implement the function either under soc/arm/common or soc/arm/nxp_kinetis.

Currently, the NXP MPU handling is all done under arch specific code (try grep'ing for CONFIG_CPU_HAS_NXP_MPU).
How would you suggest I tie in the NXP-specific functions to z_arm_init_arch_hw_at_boot()?
While I agree that SoC specific code does not belong there, I am not sure I can fit in cleaning up the NXP MPU handling in the scope of this PR.

Clear NXP MPU regions at boot if CONFIG_INIT_ARCH_HW_AT_BOOT is enabled.

This call is not implemented (is not part of the PR, at least)

Fixed (for now, at least, pending a potential shuffle of where the code must reside).

Hello @henrikbrixandersen ,
I confirmed that current PR, on top of faf68fb213, now boot image.
I still have the issue 34683, which don't confirm the image, but this is another history.
Thank you so much for fix this!
CC: @otavio

Let's treat this as a bug (it is actually, since chain-loadable images need to ensure the MPU state is clean), so we are not bound by the feature freeze.

@henrikbrixandersen / @ioannisg what's the status here?

@henrikbrixandersen / @ioannisg what's the status here?

From my point of view it is ready to go in. I think splitting the NXP-specific MPU code from the arch code needs to happen in another PR.

It feels like the z_arm_clear_arm_mpu_config() is in the wrong file to begin with and should be split out of sbc.c.
The NXP version should be in arch/arm/core/aarch32/mpu/nxp_mpu.c
Baseline Arm version in arch/arm/core/aarch32/aarch32/mpu/arm_mpu.c
This would follow the similar model of the rest of the MPU functions.

It feels like the z_arm_clear_arm_mpu_config() is in the wrong file to begin with and should be split out of sbc.c.
The NXP version should be in arch/arm/core/aarch32/mpu/nxp_mpu.c
Baseline Arm version in arch/arm/core/aarch32/aarch32/mpu/arm_mpu.c
This would follow the similar model of the rest of the MPU functions.

If this is the consensus, I can make those changes in this PR. Will this resolve your concerns, @ioannisg?

It feels like the z_arm_clear_arm_mpu_config() is in the wrong file to begin with and should be split out of sbc.c.
The NXP version should be in arch/arm/core/aarch32/mpu/nxp_mpu.c
Baseline Arm version in arch/arm/core/aarch32/aarch32/mpu/arm_mpu.c
This would follow the similar model of the rest of the MPU functions.

If this is the consensus, I can make those changes in this PR. Will this resolve your concerns, @ioannisg?

@henrikbrixandersen will look at it after the release meeting

I'm in agreement with @dleach02 but will not hold up this getting merged for 2.6 to fix the issue and doing the code cleanup post release.

@ioannisg Any update on this?

@ioannisg Any update on this?

Yeap, my next one for review, hang on a sec ;)


any plan to support team drive?

Hi,
thank you for your good utiliy.
Do you have plan to support google team drive function on drive?
Aactually rclone supports it but can't mount on system.
I would like to mount team drive on my system.
Please support team drive.

Hi! It's just a proposal for now but please see this feature request: https://github.com/odeke-em/drive/issues/913

Hello @fordarm, thank you for the request and welcome to drive! My apologies for the late reply, I hadn't seen this notification and I've been swamped.
Awesome, thank you @chevillet for reporting the duplicate, in deed it is.


Unexpected behavior of math.RoundToEven(17.1) in Golang 1.21.6 (returns 17 instead of 18)

Go version
go version go1.21.6 linux/amd64
Output of go env in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/aghiad/.cache/go-build'
GOENV='/home/aghiad/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/aghiad/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/aghiad/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.6'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3578265563=/tmp/go-build -gno-record-gcc-switches'

What did you do?
package main
import (
"fmt"
"math"
)
func main(){
fmt.Println("Value before rounding:", 17.1)
num:=math.RoundToEven(17.1)
fmt.Println(num)

}
What did you see happen?
Value before rounding: 17.1
17
What did you expect to see?
Value before rounding: 17.1
18

https://pkg.go.dev/math#RoundToEven

RoundToEven returns the nearest integer, rounding ties to even.

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions

But I think this is a bug ,unless u think 17 is the right answer for RoundToEven() function or 17 is an even number!!


Component is not updated after simulating error

Describe the bug
Component is not rendered correctly after error simulation
Possibly related issues: #1757, #1283
To Reproduce
I created minimal repo  with contained issue. Clone it, run npm i, then run tests with npm test command. One snapshot will fail.

Expected behavior
Error message should be rendered instead of normal content. It works fine with shallow and fails with mount
Desktop:

OS: win7
Version 3.6.0

enzyme has no snapshot support; the closest would be .debug().
Can you update your test cases to assert that either Component or Error have a length of 1, as you'd expect?

@ljharb, could you please explain why it works with shallow() and doesn't work with mount()?

enzyme has no snapshot support; the closest would be .debug().

There was no difference after I replaced snapshots with .debug(), except formatting.

Can you update your test cases to assert that either Component or Error have a length of 1, as you'd expect?

No problem. I updated repo, removed all unnecessary tests, added one similar test with pure error for comparison.

@asapach mount uses react itself to render; shallow uses react-test-renderer. It's possible/likely that there's bugs in react-test-renderer, or in enzyme's use of it.

@jgzuke I suspected something like that. Thank you for the clarification.

Reopening until #1812 lands.


Fix linter/formatter error on samples/ts-webpack.

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

Project coverage is 97.43%. Comparing base (f4bf056) to head (1b39235).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #303   +/-   ##
=======================================
  Coverage   97.43%   97.43%
=======================================
  Files          35       35
  Lines        2262     2262
  Branches      232      232
=======================================
  Hits         2204     2204
  Misses         57       57
  Partials        1        1

Flag
Coverage Δ

unittests
97.43% <ø> (ø)

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

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


publish_request() should be flushed like publish()

publish_request() wasn't flushing messages like publish() does.

Thanks for the contribution!


adding SDK

Hi
I usually use cocoapod and adding the SDK is more challeging than I tought I keep getting "no module SumupSDK"
I have copied the SumupSDK.embeddedframework to my project, as well as created a bridge file and ensure the framework was in linked Framework but to no avail. Am i missing something?

You might want to take a look at the sample project provided with the SDK.
It includes a swift  bridging header.
On Thu, 2 Mar 2017 at 19:24, Raph<EMAIL_ADDRESS>wrote:

Hi
I usally use cocoapod and adding the SDK is more challeging than I tought
I keep getting "no module SumupSDK"
I have copied the SumupSDK.embeddedframework to my project, as well as
created a bridge file and ensure the framework was in linked Framework bu
to no avail. Am i missing something?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sumup/sumup-ios-sdk/issues/35, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJBeH6LA2K26jBJ-UOHyry9Sl_z3zcXks5rhwlNgaJpZM4MRWba
.

Closing this one as I assume you succeeded https://github.com/sumup/sumup-ios-sdk/issues/19#issuecomment-283930027 .


Generating certs on AWS EC2

Re: Deploy CockroachDB on AWS EC2
Issue Description
When generating certs we say

Create the certificate and key for the first node, issued to all common names you might use to refer to the node as well as to the load balancer instances.

Following the instructions as written errored out as AWS was providing strings like ip-172-31-8-73 (internal host name) rather than <IP_ADDRESS> (internal IP address)
Suggested Resolution
We should explicitly call out "internal hostname"

@taroface, you recently worked on the AWS deployment docs. Is this issues till valid? It's quite old.

This section wasn't updated and the issue may still be valid. I think we should keep it open.

We have closed this issue because it is more than 3 years
old. If this issue is still relevant, please add a comment and reopen
the issue. Thank you for your contribution to CockroachDB docs!