Android app loses connection to API

I recently changed my API server from http to https (added LetEncrypt cert), and changed my ddns provider.  Since then my Android connection to the API server fails after several hours ("Status Error") and will not recover by itself.  If I reenter the API service URL, the Android app reports "Not a valid xBrowserSync service".  Note that I can set it to https://api.xbrowsersync.org successfully, although I have not tested a sync.
To recover, I need to clear the app storage/data.  The app will then accept my API service URL, but will fail again after several minutes or hours, seemingly at random.
The API service (v1.1.4) was not changed with the ddns/https change, and worked solid on Android when not running with SSL/TLS.  The API server with SSL/TLS and the new ddns provider continue to work fine/solid for several Chrome and Firefox PC clients from within my LAN or from the WAN.
Steps to reproduce

Not sure.  I can send you my service URL if that will help.

Expected behaviour
Tell us what should happen
Actual behaviour
above
Client app information
App Platform: (Chrome, Firefox, iOS, etc)
Android 6.0.1
App Platform Version:
v1.4.0
Other info
Personal API service running v1.1.4.

Odd one, not doing much in the xBrowserSync code besides checking /info from your service. Assuming the call returns the service info and the SSL cert is valid it should work fine. Can you browse to your service in Chrome on Android (over HTTPS) when you start getting the error in xBrowserSync?

Yes, I can browse to the service in Chrome on Android with HTTPS while the Android app says it cannot talk to the service.  This works while on my LAN wifi (local to the server) and over the carrier (Verizon) WAN.  A Windows notebook connected to the phone via Wifi hotspot also connects to the service without error (and can update bookmarks back to the server).
I'll email my service URL for your testing and poking.  Perhaps you can reproduce this from your Android device.

After replicating the issue with the service url you emailed me, I discovered that the connection error that gets thrown indicates that the request was aborted for some reason, but give no other information as to why it was aborted. It definitely is not timing out, and the service is online as I can browse to it within chrome and access both the home page and the API routes fine.
I also found that when your service is erroring, I can get it back online by doing the following:

Change the service to https://api.xbrowsersync.org
Close xBrowserSync completely (you have to swipe it right on the recent apps menu so it's not running in the background).
Re-open xBrowserSync.
Change the service back to yours and it will connect fine.

However, this will only work until you close the app. The next time you re-open it the service connection will fail again.
I wanted to debug the error directly on my android phone, so I compiled a "debug" build (release builds cannot be debugged remotely) of v1.4.0 and installed it on my device. However, I'm unable to replicate the error using the debug build, which means I cannot debug the error to find out why it might be occurring! The code is exactly the same as the release build that was failing... 😖
So then I decided to test a few different SSL configurations using api-beta.xbrowsersync.org (running v1.1.5), and using v1.4.0 of the app (release build), here are the results:

API running over https:443 - NO ISSUES
API running over https:50773 - ISSUE REPLICATED (initially, but then seems to have resolved itself)
API running over http:8080 behind a reverse proxy exposed as https:443 - NO ISSUES
API running over http:8080 behind a reverse proxy exposed as https:50773 - NO ISSUES

What's even weirder is that the problem is intermittent, for me when running scenario 2, the problem does not occur initially, it occurred after a few hours when I opened the app and the service status showed as error. However, some time after that the connection was restored and has been working fine since! Note, during the whole time the service was always reachable via Chrome, and the browser extension never had a connection error occur.
In conclusion, I'm unable to draw any conclusion as to why this problem is occurring. I can only say that I do not believe the problem is with the xBrowserSync app or service, it is perhaps some edge case issue with the Android webview (which cordova apps run in), but after much googling I've been unable to find any information to back this hunch up. Without an error message to go on I can't get any further here, perhaps some more information will come to light in future that may help in resolving this.
In the meantime, I would suggest either running the your service over the standard https port (443) or even better, running behind a reverse proxy (running SSL from there rather than the xBrowserSync service) which you can then use expose on any port you wish (i.e. scenario 4 above). This is a much better configuration as web servers are far more secure than an exposed node service.
Even better, I'll be releasing a docker configuration for the API very soon which will automatically configure your service and a reverse proxy for you. Keep an eye on this issue if you're interested.

Hi @cjnaz, give the new xBrowserSync Docker image a try. This will allow you to stand up a fully configured, production ready service (complete with api, database and reverse proxy) running over HTTPS. Hopefully that way you will no longer see these issues.

Thanks Rich. I'll give this a shot on my next API update.  For now,
everything is solid when running https on port 443.
On Thu, Jan 3, 2019, 6:57 AM Rich<EMAIL_ADDRESS>wrote:

Hi @cjnaz https://github.com/cjnaz, give the new xBrowserSync Docker
image https://hub.docker.com/r/xbrowsersync/api a try. This will allow
you to stand up a fully configured, production ready service (complete with
api, database and reverse proxy) running over HTTPS. Hopefully that way you
will no longer see these issues.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xbrowsersync/app/issues/61#issuecomment-451149906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOKq4RHXxwV_k2slk8R71E7TYfT9F564ks5u_gxPgaJpZM4Y009I
.


Azure.RequestFailedException: Service request failed.  Status: 407 (Proxy Authentication Required)

Library name and version
Azure.AI.FormRecognizer
Query/Question
Trying to call Invoice API using .dotnetSDK
RecognizeInvoicesOperation operation = await client.StartRecognizeInvoicesAsync(stream, options);
Response operationResponse = await operation.WaitForCompletionAsync();
getting
Azure.RequestFailedException: Service request failed.  Status: 407 (Proxy Authentication Required)
Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
incorrect username and/or password, but could also be caused by network problems.
credentials are fine.
Environment
Windows 2012 Server

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

any updates

Hello @Shankaranand-m

Could you tell us what method of authentication you're trying to use?
What's the service and SDK version you're using?
The complete error message includes an error header called apim-request-id to help us debugging the issue on the service side. Could you share it with us? Example:

Headers:
apim-request-id: fde39ce8-cdd8-4498-9674-4be81364f116
Content-Length: 224
Content-Type: application/json
Date: Mon, 20 Jun 2022 21:39:21 GMT


Update index.md

Added "." to line 40, as invoking file would not work as-provided unless refactored or renamed file

Thank you for this contribution @alexsolaat. This issue was fixed in https://github.com/MicrosoftDocs/windows-dev-docs/commit/ca90ce0471458f85af6dc789200b263affcfd8ec


Added instrumentation timers around joins.

Had this on my branch testing #1324 with the INDEL realigner. Thought it was more generally useful.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1816/
Test PASSed.

Thank you, @fnothaft


ALTER TABLE ALTER COLUMN not working

I did as the docs said, however am getting the error below.
→  .schema
CREATE TABLE emails (user_id INT, email TEXT);
CREATE TABLE users (id INT PRIMARY KEY);
→  ALTER TABLE emails ALTER COLUMN user_id TO user_id INT REFERENCES users(id);
Error: failed to execute SQL: ALTER TABLE emails ALTER COLUMN user_id TO user_id INT REFERENCES users(id);
SQL string could not be parsed: near ALTER, "None": syntax error at (1, 25)
→

Did I do something wrong?

Works on a local file database but not when connecting to a sqld server for me.

Any work-arounds? This is these third time I'm facing this issue in the last few days.
One time I was able to circumvent the issue by doing a lot of manual work using the shell to recreate the table (I couldn't really use Drizzle migrations for this – it doesn't seem to be possible to disable the foreign keys pragma, since each statement runs separately), and this doesn't scale well with CI etc.
The other time I completely wiped the database and start from scratch, since this was easier than any work-around.
But now we are approaching to run things in production, and this is really getting in our way.

Any work-arounds? This is these third time I'm facing this issue in the last few days.
One time I was able to circumvent the issue by doing a lot of manual work using the shell to recreate the table (I couldn't really use Drizzle migrations for this – it doesn't seem to be possible to disable the foreign keys pragma, since each statement runs separately), and this doesn't scale well with CI etc.
The other time I completely wiped the database and start from scratch, since this was easier than any work-around.
But now we are approaching to run things in production, and this is really getting in our way.

I didn't find any real workarounds workarounds, but in my case I just needed to change the data type of a single field so I was able to use drizzle migrations like this:
ALTER TABLE stickers RENAME COLUMN image TO image_old;
--> statement-breakpoint
ALTER TABLE stickers ADD image blob;
--> statement-breakpoint
UPDATE stickers SET image = image_old;
--> statement-breakpoint
ALTER TABLE stickers DROP COLUMN image_old;


Azure OpenAI API key not working for Autogen

Hello, I am trying to code an autogen bot using my Azure OpenAI Api key and my deployment I have created. I have used this key and deployment before in other projects not involving Autogen, and it has worked fine. However, when I try to use it for my Autogen code on a local Jupyter notebook, I get this error:
InvalidRequestError: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.
I know that it's not my code and has to do with the Azure OpenAI API key itself, because when I tried my code with my own personal OpenAI API key, the code worked perfectly. However, for logistical reasons I must use my Azure OpenAI API key for this project. Does anyone know how to fix this? Here is my code for implementing my Azure OpenAI API key:
!pip install pyautogen
import sys
sys.path.append('./lib/python3.9/site-packages')
import autogen
config_list = [
{
'model' : 'gpt-3.5-turbo',
'api_key':'XXX',
'api_base' : 'XXX
'api_type' : 'azure',
'api_version' : '2023-05-15',
'deployment_name':'XXX'
}
]

Which version of pyautogen are you using?

"model" needs to be set to match the deployment_name while "deployment_name" can be removed.

I'm getting the same error here. This is my OAI_CONFIG_LIST.json
{
        "model": "gpt-35-turbo",
        "base_url": "xxx",
        "api_type": "azure",
        "api_version": "2023-07-01-preview",
        "api_key": "xxx"
 }

I know this instance exists because I can use it with just a normal openai call but getting 'Resource not found' when using it with autogen.

When you say it works with a regular OpenAI call, are you changing "model" -> "engine"?
I think Autogen does this automatically, but the OpenAI endpoint does not. I would expect it to fail with this same configuration.

Yes, I switch it to engine.
So, it looks like the version on openai that autogen is using, 1.0.0b3, doesn't include the AzureOpenAI function that openai version 1.1.0 has. This is necessary to handle a call to an azure openai instance.

Yes, I switch it to engine.
So, it looks like the version on openai that autogen is using, 1.0.0b3, doesn't include the AzureOpenAI function that openai version 1.1.0 has. This is necessary to handle a call to an azure openai instance.

Were you able to fix it yet?

Thanks for debugging. I think 0.2.0b2 or 0.2.0b3 moves to OpenAI 1.1.0. Perhaps this offers a fix? @sonichi knowns more.

@anna11290

Yes, I switch it to engine.
So, it looks like the version on openai that autogen is using, 1.0.0b3, doesn't include the AzureOpenAI function that openai version 1.1.0 has. This is necessary to handle a call to an azure openai instance.

Were you able to fix it yet?

So, to fix it on mine I had to upgrade to 1.1.0 then I had to update the _client function call and the _process_for_azure function call in client.py to handle AzureOpenAI as well as OpenAI. It's a tad clunky since I don't know how all the code ties together but if you guys want a fix then I'd start there.

To fix this issue, you need to install AutoGen with beta release:
pip install pyautogen==0.2.0b2

Here is how to load config to fix this problem to specify deployment_name:
import autogen

config_list = [
    {
        "model": "YOUR_DEPLOYMENT_NAME",
        "base_url": "https://xxx.openai.azure.com",
        "api_type": "azure",
        "api_version": "2023-07-01-preview",
        "api_key": "xxx"
 }
]

I've stuck for a lot time, that is why wanna share with you to help to fix it.

pyautogen==0.2.0b3 uses openai==1.1.1

"model" needs to be set to match the deployment_name while "deployment_name" can be removed.

This was not clear in the sample or documentation, so I created a PR for this: https://github.com/microsoft/autogen/pull/734

To fix this issue, you need to install AutoGen with beta release:
pip install pyautogen==0.2.0b2

Here is how to load config to fix this problem to specify deployment_name:
import autogen

config_list = [
    {
        "model": "YOUR_DEPLOYMENT_NAME",
        "base_url": "https://xxx.openai.azure.com",
        "api_type": "azure",
        "api_version": "2023-07-01-preview",
        "api_key": "xxx"
 }
]

I've stuck for a lot time, that is why wanna share with you to help to fix it.

THANK YOU SO MUCH! Just spent a couple of hours on this 😆 Now we know that MS research scientists don't use AOAI!

Hi everyone,
Is there a way to use Azure OpenAI and Autogen without having the API key? In my company, we only receive information for access via the token. Here are the details we have:
API_VERSION: '....'
AZURE_OPENAI_ENDPOINT: '....'
MODEL_NAME: '....'
URL_TOKEN: '....'

Any guidance on how to proceed with this setup would be greatly appreciated.
Thanks!


⚠ Bofrost.fr has degraded performance

In 4cfedf9, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1239 ms

Resolved: Bofrost.fr performance has improved in a3f7ad7 after 14 minutes.


2pc: refactored metadata tables

Changing the table names: This allows me to start with a clean slate.
Since the feature is not yet in use, I don't have to migrate the old
tables.
enums->ints: Enums looked like a good idea in the beginning. But it's
a pain if you have to add a new state, because it requires a schema
change. Switching to numbers in db and enums in code.
Dropping deprecated columns & indexes: During implementation, I made
some improvements to the prepare flow (compared to the design). That
allows me to simplify that table.
Summary:
redo_log_transaction -> redo_state, drop resolution, drop
state_time_idx.
redo_log_statement ->redo_statement.
transaction -> dt_state.
participant -> dt_participant, drop time_updated

PTAL

LGTM looked at it yesterday forgot to comment.


Install clobbers /etc/systemd/system/ollama.service file destroying any custom configurations like specifying IP or PORT being served or preventing cors errors

Describe the bug
A clear and concise description of what the bug is.
Upgrading to the latest version clobbers my /etc/systemd/system/ollama.service file.  If the file exists it should not be overwritten.  Or the distro should only include a sample file like so /etc/systemd/system/ollama.service.sample
To Reproduce
Steps to reproduce the behavior:
1 Install ollama-webui as a service
2 Customize /etc/systemd/system/ollama.service like adding:
Environment=OLLAMA_HOST=<IP_ADDRESS>
Environment=OLLAMA_ORIGINS=*
3 Upgrade to the latest ollama-webui version
Expected behavior
A clear and concise description of what you expected to happen.
/etc/systemd/system/ollama.service is overwritten, destroying any customizations to this file.
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]
ubuntu - but applies to all

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Hi, Could you tell us how exactly you installed the web ui? The WebUI does not contain any code that edit any system service files. Keep us updated, Thanks!


[FEATURE] Better Login page

Description
In the current project, the Login section is at the top and not very easily visible. The accessibility of the website is affected by this.
Solution

Make A pop-up login prompt whenever a new user comes.

Screenshots

That's a great new feature we can add to improve the UX!
Would you like to work in this bro?

I would love to do it. But now a day's I am busy with my School stuff so I can't give you a deadline. But I will my best to make this thing happen as soon as possible.
If someone is else looking at this comment and want to work on this feature go ahead. But please notify me by replying to this comment.

No problem, take your time.
And if someone else is interested to work on this issue then please reply.

I would love to contribute to it, is there anything in your mind?

Go ahead, bro :)

Made Changes to Sign in Button
https://user-images.githubusercontent.com/102273412/184884215-f3640776-5218-4f25-9ff0-f6e485bf7fdb.mov

Great work @bhavya-giri! It looks pretty good!
Why don't you raise a PR with the changes?

I did
https://github.com/Dharmik48/notes-react-firebase-v2.0/pull/14


Convert devnet-based automated tests to use no mining mode

📚 Context
Some tests uses Devnet on default automine mode. But tests will benefit of a more controlled and predicted way of handling inputs, outputs and associated hashes
✔ Solution
To refactor the tests , disabling the default Devnet auto mine and  adding "mine" commands to fine tune block generation (see #415)
📈 Subtasks

[x] Refactor ethutil tests
[ ] Refactor machine tests
[ ] Refactor echo-test

ethutil tests covered at eddf0a06dbceee66648f0a94719fa739013123f7


sscs 9045 class to pull templates

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/SSCS-9045
Change description
A class to talk to Notify and get templates
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

When/How is this triggered @chrisdavecm  - does it just run on startup and you will read from logs?


LOP_FORGPREP_NEXT behaves differently to LOP_FORGPREP when not in a safe env

getfenv(0).next = {1, 2, 3}
print("first loop:")
for i, v in getfenv(0).next, {1, 2, 3} do
    print("hi")
end
print("second loop:")
for i, v in next, {1, 2, 3} do
    print("hi")
end

the second loop causes an error: attempt to iterate over a table value

This is an intentional limitation (you'd note the check in FORGPREP_NEXT that checks that the substituted value is a function - it's there exactly to make sure that next is only replaced with a function object) - it exists so that we don't have to duplicate the fairly large setup block that's used for generalized iteration. We might lift it at some point if we rework how next/pairs loops are compiled, but for now it's by design.


make r2 analyzer compatible with latest r2

damn, should have created a dev branch.


Always good exit codes?

I think the application almost always stops with a exit code indicating success?
This should not be the case if it's stopping due to an exception.
E.g. if it stops somewhere here:
https://github.com/paalbra/zabbix-auto-config/blob/1dabb4f7d414eea8f08ab93206ab14959ea3be6f/zabbix_auto_config/__init__.py#L201-L204

Better codes after https://github.com/paalbra/zabbix-auto-config/commit/f7630f8006e9b2c1b950e13f525533665ce8370d


schema regex and OR directive

Hi, forgive me for my bad english.
The "or" directive in my regex is not working:
"type": "['regex:^search1|search2|search3$']",
The pipe seems to be interpreted by the indicative engine and return:
"search2 is not defined as a validation"
Is there another way to do this ?

Fixed in https://github.com/poppinss/indicative/commit/26468ac2bbab6b521a764f52ac14edc560d1357e.
Docs will be out soon


Getting Response & Error?

I have the below key (issued by cognito - pasted at bottom).  I validated in jwt.io successfully.
When calling: 	token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) { return token }
I get both a token and an error.  The token has the right claim I can pull but I have an error that the key is not valid.  What does that mean given it is from the service and passes jwt. Can I safely ignore this error (key is of invalid type)?
if err != nil {
	if claims, ok := token.Claims.(jwt.MapClaims); ok {
		fmt.Println(claims["iss"], claims["client_id"])
		return BasicAuth{user: claims["cognito:username"].(string)}, err  // this returns claim as expected and error
	}
	return BasicAuth{user: "nothere"}, err  // code doesn't get here
}

key: eyJraWQiOiJOV3pPaWFxenp5enhDRmxJTDlXOFBORzQ0YXBObjBNTWJQSmcwNDVHdE5nPSIsImFsZyI6IlJTMjU2In0.eyJhdF9oYXNoIjoiV0dWbXNXNzhiaGkwcGFQbHEzYUVtUSIsInN1YiI6ImJjMDE1N2U5LTM3YTItNDgxNi05ZTY0LTJjODg2ZDQwOGYwNyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAudXMtZWFzdC0xLmFtYXpvbmF3cy5jb21cL3VzLWVhc3QtMV9qUVJtU3p2SmciLCJjb2duaXRvOnVzZXJuYW1lIjoic3VhcmVkIiwiYXVkIjoiNnFwMHVtMWpwODNyYTZndm80ZGR2NjN2OGYiLCJldmVudF9pZCI6IjgxMDgwOWI1LTgyNzYtMTFlOS1hZDI1LWQ1MDkxNTk0MGZhYSIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNTU5MTc4MTA5LCJuaWNrbmFtZSI6IkZpcnN0VGVzdFN1YXJleiIsImV4cCI6MTU1OTE4MTcwOSwiaWF0IjoxNTU5MTc4MTA5LCJlbWFpbCI6ImRhdmlkQHN1YXJlemhvdXNlLm5ldCJ9.IAt_gJKUXPhA4G7rgDi-B9Y40mgaq9w4VJgf_vFxGh6UL6rOhAuSZ7na7jw0agmMZclqTM98tL4M1rkJvPgMajRKzdWpW3vus-o0_wzjyEQmb8qW4h1sb5HO146mW0NY6F9KuGd0yyOyySiP4hytaQhXKgIOqSsB_2rMq7BpKfnfH4u7l92uvp3iqbv_IeoeLA-RmoUfOcFxStT6gNAlO7I_5Ku0ltIQ4nPpVcnm9I3mRtuuomTSxWzNY_QFQo0q3Faw8WvUUHJcebY1VizE2c_bol52uns7PyiCHQEZnWES4OFFKbhK_Q33cjVfaWT9Kkx0wDfOBTkSrAXtKmWEPg

If it helps, I was tracing another key (above one now expired so you need to regen to troubleshoot unfortunately) and these are the lines where it fails:
if rsaKey, ok = key.(*rsa.PublicKey); !ok {
return ErrInvalidKeyType
}
It is in rsa.go:61.  My question is why does it pass in jwt.io?  It seems like a defect if passes in jwt.io and not in this code, correct?  What is the best way for you to see what I am seeing with fresh keys to enable it to be reproduced easily?  I can share my current key but I am sure it will be expired by the time you see it :-)  Please advise.

Please don't share keys here. This token uses the signing method (alg) RS256. You must provide a key of type *rsa.PublicKey in order for the library to be able to verify your token.
If you print the error, you will see a message indicating as much. The library doesn't automatically parse the key for you, though there are helpers available for parsing keys from common formats. See ParseRSAPublicKeyFromPEM for an example.

You absolutely should not ignore any error returned by Parse. If you get an error, one of two things happened:

The token is invalid
The token could not be parsed or validated

In either event, you should not trust the token. If you look at the returned error, it should provide an explanation for why it failed.

Thank you for the pointer.  It is now solved for Cognito!  May I suggest in your example docs you add a placeholder comment that says "return Key here if RSA " in the parse block.  It would probably help save you from others running into the same issue.  Thanks again for the help!
Side note:  the key above is "garbage/ temp dev env" so no huge worry there.


Testing results on small validation set

Hi,
Firstly thanks a lot for great work. Your model is basis for my current internship project!
I have done testing on validation split set containing 200 video sequences and I got the same results as mentioned in your paper as shown below:

I want to try testing on small validation split to save time. Hence I only chose first ten validation sequences, make the corresponding annotations using python -m bdd100k.label.to_coco command and run the testing. For the small validation split, the metrics like TETA, LoacA etc were heavily decreased. Even the MOTA is coming up in negative values (see figure below).

I am not sure about the reason for such low metric values for a smaller validation split. I only changed the ann_file, scalabel_gt and img_prefix paths to respective small validation split folder in cem_bdd.py configuration file.
Can you guide me in this issue. Is this the expected output or I am missing something because of which my metrics are coming very low on small validation split. Any suggestion would be helpful for me.
Best Regards,
Rehman

Are you testing the model trained by yourself？

No,
I am using teter_bdd_r50_1x_20220706_134248.pth, the same shared in the repo.

In that case, if you only change the ann_file, scalabel_GT and get much lower results. I would recommend you to check your code for generating those small set annotations, especially for the ground truth file. Check if you have consistent ann_file and GT file, eg their class mapping , video name , image names…

Thanks for your suggestions. I will look into the generated annotation file.
But I am not using a different code to generate annotations. I have used the same code that was used to generate annotations of actual validation split.
I used the following command line mentioned in the repo.
python  bdd100k.label.to_coco -m box_track -i bdd100k/labels/box_track_20/val_tiny -o data/bdd/annotations/box_track_20/box_track_val_tiny_cocofmt.json
Only the input path is changed to tiny validation split val_tiny insted of actual validation set.


Order of checking next masks

Way of choosing which mask schould be checked first.

Splitter added, need to make him look better


ChatMemberUpdated.via_chat_folder_invite link is empty

While trying to fight with spammers who bulk join chats via chat folders I have observed this behavior of bot API.

I am admin of some chat group. I create chat folder and add this group to the folder. Then I share my folder with a user. If user joins my chat group via this folder then the ChatMemberUpdated event has  via_chat_folder_inivte_link = true field.

I am NOT admin of some chat group. I create chat folder and add this group to the folder. Then I share my folder with a user. If user joins this chat group via this folder then the ChatMemberUpdated event has NO via_chat_folder_inivte_link field.

Is it a bug?

Same bug in telegram bug tracker: https://bugs.telegram.org/c/45651

The bug was fixed.


appui more space between MEM and NET columns

Tiny visual issue :
please add more space between MEM and NET columns

They are too close.
BR
Vincent

Thanks for reporting!!
Terminal width plays a role here, but it makes sense to try and give more room to these two columns.

Sur, resizing my screen make it better, but in some time, it's too close :)


ESP32 Auto Light Sleep (IDFGH-11051)

Is your feature request related to a problem?
Use of forced Light Sleep leads connection drops on ESP32 as expected.
So please get us Auto Light Sleep.
ESP8266 has such a feature but ESP32 still missing...
THanks
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context.
No response

We do support automatic light sleep for ESP32. You can find details about how to use it here.

Oops. Wrong project. I wanted to send into Arduino project instead of here. Thanks!


Update jquery.fileuplade.d.ts

Extend JQueryFileUpload from JQuery to enable chaining, add JQuerySupport Interface

jquery.fileupload/jquery.fileupload.d.ts
to author(@rob-alarcon). could you review this PR?
:+1: or :-1:?
check list

[ ] pass the Travic-CI test?

Looks good to me :+1:

@rob-alarcon thanks!
@abbasmhd thanks mate!


fix(gateway-api): verify TLS/TCPRoute is accepted before pushing to Gateway

What this PR does / why we need it:
Fixes lack of verifying if TLS/TCPRoutes are accepted by the Gateway before proceeding with provisioning. It effectively enables GEP-957 port matching for them -- without that even when a Route doesn't match any Listener, it will be provisioned in Kong Gateway, which is incorrect.
It also improves populating ListenerStatus.SupportedKinds by deriving kinds from listener's protocol or AllowedRoutes.Kinds.
Which issue this PR fixes:
Part of #2709.

Special notes for your reviewer:
UDPRoute is left with no modifications due to a lack of possibility to specify two separate publish services for TCP and UDP (see https://github.com/Kong/kubernetes-ingress-controller/issues/2544), which is blocking passing the existing integration tests. The default "publish service" (ingress-controller-kong-proxy LoadBalancer) exposes all its ports as TCP ones (including the 9999 which is meant to be UDP). Due to that, it falls into this case where Listener is marked as not ready due to a missing UDP port.
We may decide to:

fix that before the 2.8 release by implementing https://github.com/Kong/kubernetes-ingress-controller/issues/2544 and adapting UDPRoute tests to use ingress-controller-kong-udp LoadBalancer as its Unmanaged Gateway publish service,
postpone fixing UDPRoute to the next release.

PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[x] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

As for the UDP issue: I'm personally in favor of postponing this (unless we have a strong desire to include this in 2.8). Reason being that the fix might take some time and be more involved (although I can be convinced otherwise).


Expose options for logging level of file and console

ref #194

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

In the file src/ambianic/logger.py:

Line 35:1: E302 expected 2 blank lines, found 1
Line 38:1: W293 blank line contains whitespace
Line 51:64: W291 trailing whitespace

In the file tests/config_mgm/test_config_diff.py:

Line 239:1: W293 blank line contains whitespace
Line 239:1: W391 blank line at end of file

Neat PR, @muka ! Thank you!
Would you mind adding a brief section to the config doc about command line options?

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


opt calc Projection cost according to the expressions in project list

Proposed changes
T(a, b, c)
MV(a+b as x, a, b, c)
the cost of
project (a+b)->scan(T)
is larger than the cost of
project(x)->scan(MV)
Issue Number: close #xxx

run buildall

run buildall


Remove console and test_utils from the top level __init__

In particular, importing console means that otioconvert will call the ActiveManifest() during the import sequence which can cause problems in certain environments.  There is no reason we need to import these things during start up.  ActiveManifest() will trigger plugin modules to be loaded, which shouldn't happen until import is complete.

Addressed by #472


Failed to build python module: "not implemented dumpmemcpy for align 2"

cuda-oc-cl installed with debug (spam) and test options enabled.
simplify _ZN5Eigen9half_impl9half_baseC2ERKS1_
instructions processed before crash 341
/home/inferno/.cache/bazel/_bazel_inferno/5213170a00a40926f3a8ece61425e0a5/execroot/tensorflow-cl/third_party/cuda-on-cl/bin/../share/cocl/cocl.Makefile:25: recipe for target 'bazel-out/local_linux-py3-fastbuild/bin/tensorflow/core/kernels/_objs/constant_op_gpu/tensorflow/core/kernels/constant_op_gpu-device.cl' failed
@blockIdx = extern_weak addrspace(1) global %struct.__cuda_builtin_blockIdx_t, align 1
@blockDim = extern_weak addrspace(1) global %struct.__cuda_builtin_blockDim_t, align 1
@threadIdx = extern_weak addrspace(1) global %struct.__cuda_builtin_threadIdx_t, align 1
@gridDim = extern_weak addrspace(1) global %struct.__cuda_builtin_gridDim_t, align 1
terminate called after throwing an instance of 'std::runtime_error'
  what():  not implemented dumpmemcpy for align 2
make: *** [bazel-out/local_linux-py3-fastbuild/bin/tensorflow/core/kernels/_objs/constant_op_gpu/tensorflow/core/kernels/constant_op_gpu-device.cl] Aborted (core dumped)
ERROR: tensorflow-cl/tensorflow/core/kernels/BUILD:433:1: output 'tensorflow/core/kernels/_objs/constant_op_gpu/tensorflow/core/kernels/constant_op_gpu.cu.pic.o' was not created.
ERROR: tensorflow-cl/tensorflow/core/kernels/BUILD:433:1: not all outputs were created.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 555.318s, Critical Path: 44.49s

can you reconfirm stil have same issue with latest v0.13.0?

I think this is for a very old version of tensorflow-cl, so maybe we close this, and create new issues for latest version of tensorflow-cl branch ?


Upgrade to the latest version of normalize?

Any plans to upgrade your package to the latest version of normalize.css (v4.1.1)?

@visoft this has been addressed in https://github.com/HeroicEric/ember-normalize/pull/7 and is out in the latest release!


Is there a way stop renaming the image with  200x200 at the end? This would be a lot helpful

extension name: Resize Images
I installed this plugin in my project for resizing the images
This works great except for the renaming of the original file name. I wish there is a checkbox to stop renaming the file if I want to delete the original and keep the resized one.
Please help!
Thanks!

Thanks @vishnusait. Updated for consideration

I second that idea! Alternatively it would be great to be able to set the name ourself. Using two different sizes someone could e.g. call 100x100 = small and 1024x1024 = large. Afterwards the developer could still edit the image sizes and still have a consistent result (name of the image).

@kalmicka @zaidkazi @vishnusait  can you explain what's the user need for this feature and what problem would it solve?

@jhuleatt Hello i think thats a good alternative but it would still be easier to not have to worry about what the file name will be in general. If i upload a picture and my application wishes to consume it there is a chance my image will be
image.png
or
image_200x200.png
(Depending on if its been processed and deleted in time)
i would rather my application does not have to guess

@i14h  sorry forgot to tag you aswell

@zaidkazi if we resize in place keeping the original image name it might mess up caching not only in GCS but on all the other potential proxies in between the client and the image. Can your application make a second request in case the original request for the image returns a 404?

@kalmicka @zaidkazi @vishnusait can you explain what's the user need for this feature and what problem would it solve?

The problem I am having is that I am setting a size for the images to be converted to e.g. 640x640. As time passes it might be necessary to increase the sizes of the images to 1024x1024. This would require me to provide some logic for changing the resolution. Considering the fact that I could keep the name (e.g. large for 640x640 and afterwards for 1024x1024) no code change would be required. The user would just start seeing better a better quality in their picture. Hope that I made my point clear :)

Because of the above issues, specifically caching and renaming an image as it is being processed a code-based change would not be possible.
We have recently added events, which allows developers to run custom functions when the resizing has been completed.
Updating your configuration to use the firebase.extensions.storage-resize-images.v1.complete event and renaming through a custom function should be considered the best solution for handling custom resize image names.


IDENTITY-3856 Identity Management + Workflow use case should break

Sent new PR with addressing comments given by @johannnallathamby @darshanasbg  and @hasinthaindrajee , https://github.com/wso2/carbon-identity/pull/1220, hence closing.


[Issue]: Assistant not answering question when providing clear question and context?

Describe the issue
Attempting to create a simple QA RAG chat between the RetrieveUserProxyAgent and AssistantAgent. I will provide my code below, however note that I am using one textbook in .txt format in my "./data/csc" directory for the context, which I won't provide here, however I will provide the retrieved context in its entirety for others to test on their end, just be prepared for a long copy/paste section below. See the code and output:
from autogen import AssistantAgent
from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent
from autogen.cache import Cache

# Use Ollama's llama3:8b model for the User and Assistant Agents
llm_config = {
    "llama3:8b": {
        "config_list": [
            {
                "model": "llama3:8b",
                "api_key": "NA",
                "api_type": "openai",
                "base_url": "http://localhost:11434/v1",
            },
        ],
        "temperature": 0.01,
        "timeout": 7200,
    }
}

# The task to ask the AssistantAgent to perform
CLIENT_REQUEST = "Ten years ago, what percentage of the average investor's financial assets (bank accounts, registered retirement savings plans, pension, insurance, etc.) were stocks, and what has that percentage grown to today?"
# Desired sentence to reference from context: "Ten years ago, 22% of the average investor’s financial assets (bank accounts, registered retirement savings plans, pension, insurance, etc.) were stocks. Today, this share has grown to 30%."

# The configuration for the RetrieveUserProxyAgent
custom_retrieve_config = {
    "task": "qa",
    "vector_db": "chroma",
    "db_config": {},
    "docs_path": "./data/csc",
    "extra_docs": True,
    "new_docs": True,
    "model": llm_config["llama3:8b"]["config_list"][0]["model"],
    "chunk_token_size": 1024,
    "context_max_tokens": 4096,
    "chunk_mode": "multi_lines",
    "must_break_at_empty_line": True,
    "embedding_model": "all-MiniLM-L6-v2",
    "embedding_function": None,
    "customized_prompt": None,
    "update_context": True,
    "collection_name": "CSCCollection",
    "get_or_create": False,
    "overwrite": False,
    # "custom_token_count_function": len,
    "custom_text_split_function": None,
    # "custom_text_types": None,
    "recursive": True,
    "distance_threshold": -1,
}

# Create a Client UserProxyAgent to interact with the AssistantAgent.
client = RetrieveUserProxyAgent(
    name="Client",
    human_input_mode="ALWAYS",
    is_termination_msg=None,
    retrieve_config=custom_retrieve_config,
    max_consecutive_auto_reply=3,
    code_execution_config=False,
    default_auto_reply=None,
    llm_config=llm_config["llama3:8b"],
    system_message="You are the Client UserProxyAgent asking the Assistant for answers to your questions.",
    description="UserProxyAgent that asks the Assistant for answers to questions.",
)

# Create an AssistantAgent to generate answers for the Client.
assistant = AssistantAgent(
    name="Assistant",
    system_message="You are a helpful AssistantAgent that answers questions asked by the Client.",
    llm_config=llm_config["llama3:8b"],
    is_termination_msg=None,
    human_input_mode="ALWAYS",
    default_auto_reply="TERMINATE",
    max_consecutive_auto_reply=3, # used only when human_input_mode is not ALWAYS
    code_execution_config=False,
    description="AssistantAgent that generates answers to questions asked by the Client.",
)

# Reset the AssistantAgent to clear its memory
def _reset_agent(agent):
    agent.reset()

# START
if __name__ == "__main__":

    _reset_agent(assistant)

    with Cache.disk() as cache:

        response = client.initiate_chat(assistant,
                                        clear_history=False,
                                        silent=False,
                                        cache=cache,
                                        max_turns=None,
                                        message=client.message_generator,
                                        problem=CLIENT_REQUEST,
                                        n_results=3,
                                        )

    print(response)

Steps to reproduce
Python 3.11
Windows 10
ollama version is 0.3.10, with llama3:8b in my example
pyautogen==0.3.0

Create a "./data/csc" folder, make a .txt file in it, and copy paste this context:
For example, by the end of 2007, individual Canadians had just over $500 billion in personal
savings deposits at the chartered banks alone (Source: Bloomberg). They had many more billions
of dollars at other financial intermediaries such as trust companies, credit unions and investment
dealers. Canadians also have other substantial assets in the form of securities investments made
either directly or indirectly through investment funds and pension plans, equity in homes and
businesses, cash values of insurance policies, retirement plans, etc.
Over the past ten years, Canadian investors’ holdings of securities have doubled to more than
$600 billion today. Ten years ago, 22% of the average investor’s financial assets (bank accounts,
registered retirement savings plans, pension, insurance, etc.) were stocks. Today, this share has
grown to 30%. Canadians are increasingly turning to the securities industry to ensure their
prosperity and future retirement security.
Foreign investors also are a significant source of investment capital. Historically, Canada has
depended upon large inflows of foreign investment for continued growth. Foreign direct
investment in Canada has tended to concentrate in particular industries: manufacturing,
petroleum and natural gas, and mining and smelting. There are many industries that are largely
Canadian-controlled (e.g., merchandising, finance, agriculture, transportation, construction,
utilities). Some industries also have restrictions with respect to foreign investment.
Canada’s use of foreign investment, while necessary, has its costs. Some Canadian economic
nationalists feel that direct foreign investment implies control. They feel that foreign investment
leads to long-term outflows of interest and dividend payments, negatively affecting our
international balance of payments. They also fear that foreign owners may favour their own
domestic plants, or subsidiaries in other countries over their Canadian subsidiaries in the pursuit
of export markets, research and development efforts, and in plant closings or layoffs during
recessions.
The debate on the appropriate level of foreign investment in Canada will, no doubt, continue.
But over the past 20 years there has been a significant swing in government policy away from
the protection of Canadian businesses. The Canadian Government and the business community
recognize that foreign capital continues to be needed and that foreign investors must be made to
feel that Canada is a safe and attractive country in which to invest.
1•8 CANADIAN SECURITIES COURSE • VOLUME 1
© CSI GLOBAL EDUCATION INC. (2010)
Users of Capital
Based on the simplest categorization, the users of capital are individuals, businesses and
governments. These can be both Canadian and foreign users. The ways in which these groups use
capital are described below.
INDIVIDUALS
Individuals may require capital to finance housing, consumer durables (e.g., automobiles,
appliances) or other types of consumption. They usually obtain it through incurring indebtedness
in the form of personal loans, mortgage loans or charge accounts. Since individuals do not issue
securities to the public and the focus of this text is on securities, individual capital users are not
discussed further.
Just as foreign individuals, businesses or governments can supply capital to Canada, capital
can flow in the other direction. Foreign users (mainly businesses and governments) may access
Canadian capital by borrowing from Canadian banks or by making their securities available to
the Canadian market. Foreign users will want Canadian capital if they feel that they can access
this capital at a less expensive rate than their own currency. Access to foreign securities benefits
Canadian investors, who are thus provided with more choice and an opportunity to further
diversify their investments.
BUSINESSES
Canadian businesses require massive sums of capital to finance day-to-day operations, to renew
and maintain plant and equipment as well as to expand and diversify activities. A substantial part
of these requirements is generated internally (e.g., profits retained in the business), while some is
borrowed from financial intermediaries (principally the chartered banks). The remainder is raised
in securities markets through the issuance of short-term money market paper, medium- and longterm
debt, and preferred and common shares. These instruments are discussed in detail in later
chapters.
THE FEDERAL GOVERNMENT
Governments in Canada are major issuers of securities in public markets, either directly or
through guaranteeing the debt of their Crown corporations.
Each year the Minister of Finance presents the government’s budget to Parliament. The budget
details the government’s estimate of its revenues and expenses, which in turn results in a
projection of a budget surplus or budget deficit.
When revenues fail to meet expenditures and/or when large capital projects are planned, the
federal government must borrow. The government makes use of four main instruments: treasury
bills (T-bills), marketable bonds, Canada Savings Bonds (CSBs) and Canada Premium Bonds
(CPBs). The characteristics of each of these instruments are discussed in detail in the material on
fixed-income products.
PROVINCIAL AND MUNICIPAL GOVERNMENTS
Like the federal government, the provinces issue debt directly themselves and may guarantee
over any period of time. Most stock indexes are value-weighted and are derived by using the total market value (i.e., market capitalization) of all stocks used in the index relative to a base period. The total market value of a stock is found by multiplying its current price by the number of shares outstanding. Each day, the total market value of all stocks included in the series is calculated, and this value is compared to the initial base value to determine the percentage change in the index.
Example: The S&P/TSX Compos ite Index closed at a value of 10,230 on October 6, 2008, and at a
value of 11,248 on October 6, 2009 . The change in the Index translates into a ga in of 9 .95% for the
per iod .
In a value-weighted index, such as the S&P/TSX Composite Index or the S&P 500, companies
with large market capitalizations dominate changes in the value of the index over time. Thus a change in the market capitalization of a large company will have a greater impact on the value of the index than a comparable change in the market capitalization of a smaller company.
A stock average  is the arithmetic average of the current prices of a group of stocks designed to
represent the overall market or some part of it. Most stock averages are price-weighted, which means that movements in the average are tied directly to changes in the prices of the stocks included in the group.
Probably the most widely used stock market average is the Dow Jones Industrial Average (DJIA).
The DJIA includes 30 large, blue-chip stocks that trade on the New York Stock Exchange (NYSE). The DJIA is computed each day by adding up the current prices of the 30 stocks in the index and dividing by a specific divisor developed by Dow Jones & Co. The divisor adjusts the sum of the stock
prices to reflect more accurately changes in value, for example from stock splits or mergers.
In contrast to a market-weighted stock index, stocks included in an average are composed of
equally weighted items. Within a stock index, each stock has a relative weight based on the stock’s total market capitalization. A stock’s relative weight within an index can change every day, whereas a stock’s weight within an average is always the same.STOCK INDEXE S AND AVERA GESEIGHT • EQUITY SECURITIES: COMMON AND PREFERRED SHARES 8•25
© CSI GLOBAL EDUCATION INC. (2010)Canadian Market Indexes
In Canada, the Toronto Stock Exchange and the TSX Venture Exchange compile and publish
indexes of stock prices for a variety of industry classifications. These indexes, their dividend yields, and the price-earnings ratios based on the S&P/TSX Composite Index can be found in the TSX Monthly Review , the B ank of Canada Review , and in financial newspapers in Canada and
elsewhere.
THE S&P/TSX COMPOSITE INDEX
The Toronto Stock Exchange began its first stock price indexes in 1934. Many changes and revisions have been made to the Index over the years. Figure 8.1 illustrates the growth of the market since 1980.
FIGURE 8.1 YEAR-END CLOSES, S&P/TSX AND S&P/TSX 60 INDEXES
0 2,0004,000 6,000 8,000 10,000 S&P/TSX 60 Index S&P/TSX Compos ite Index S&P/TSX 60 S&P/TSX
300400500600
1980 1985 1990 1995 2000 2005700
12,00014,000800
Source : Bloomberg
The S&P/TSX Composite Index measures changes in the total market capitalization of the
stocks in the Index. A stock’s weight within the Index changes if its price or the number of shares outstanding changes. The Index has a floating
number of stocks.CANADIAN SECURITIES COURSE • VOLUME 1 8•26
© CSI GLOBAL EDUCATION INC. (2010)To be included in the Index, a stock must meet the following criteria based on price,
capitalization and liquidity:
• Companies must be listed on the Toronto Stock Exchange for at least 12 full calendar
months as of the month end prior to the index stock review meeting;
• A company must have a minimum trade-weighted price of $1.00 over the past quarter as well as a closing price greater than or equal to $1 at the
previous month-end;
• A company must represent a minimum weight of 0.05% of the Index, after including the
ﬂ oat for that company in the total ﬂ  oat capitalization for the Index;
• T rading volume, value and transactions of a candidate company for the 12 months
14•25
Net return on invested capital,
14•24 to 14•25
Net tangible assets, 14•15 to 14•16Net worth, 12•5New Account Application Form,
3•15, 15•21
New York Stock Exchange (NYSE),
1•14, 1•15
 indexes, 8•29NEX, 1•21, 11•32Nikkei Stock Average (225) Price
Index, 8•30
No-load funds, 18•11 to 18•12
No par value (n.p.v.) shares, 11•18,
11•19
Nominal GDP , 4•11Nominal interest rate, 4•25
Nominal rate of return, 7•14, 7•15,
15•9
Nominee, 3•20Non-Accelerating Inﬂ  ation Rate of
Unemployment (NAIRU), 4•23
Non-callable preferred shares, 8•18Non-competitive tender, 11•14Non-controlling interest, 12•11 to
12•12, 12•17INDEX Ind•13
© CSI GLOBAL EDUCATION INC. (2010)  Non-operating income, 12•14 to
12•15
Non-systematic risk, 15•11Non-trading employees, 3•14Notes to ﬁ  nancial statements,
12•22, 14•9 to 14•10
Notional units, 20•5
O
Odd lot, 8•5Offer, 1•11Offering memorandum, 21•6Offering price:  for mutual fund share or unit,
18•10
 for rights, 10•33Ofﬁ ce of the Superintendent of
Financial Institutions (OSFI),
3•5, 20•17
Ombudsman for Banking Services
and Investments (OBSI), 3•12
Open-end funds, 1•10, 2•22. See
also Mutual funds
Open-end trust, 18•8Open interest, 10•18Open market operations, 5•14 to
5•16
Open order, 8•9Operating cash ﬂ  ow ratio, 14•14 to
14•15
Operating costs (amortization
excluded), 14•5 to 14•6
Operating expenses (amortization
included), 12•15, 12•16
Operating income, 12•14 to 12•15Operating performance ratios,
14•12, 14•22 to 14•27
 after-tax return on invested
capital, 14•24 to 14•25
 gross proﬁ  t margin, 14•22
 inventory turnover, 14•25 to
14•27
 net proﬁ  t margin, 14•24
 operating proﬁ  t margin, 14•23
 pre-tax proﬁ  t margin, 14•23
 pre-tax return on invested capital,
14•24
 return on common equity
(ROE), 14•25
Operating proﬁ  t margin ratio,
14•23
Option premium, 10•14Option strategies, 10•18 to 10•26 buying calls to manage risk,
10•21
 buying calls to speculate, 10•19
to 10•21
 buying puts to manage risk, 10•23 to 10•24
 buying puts to speculate, 10•23 cash-secured put writing, 10•24
to 10•25
 covered call writing, 10•21 naked call writing, 10•21
 naked put writing, 10•25 strategies for corporations, 10•25
to 10•26
Options, 1•10, 10•14 to 10•26

Screenshots and logs
Here is the log of the conversation:
Client (to Assistant):

You're a retrieve augmented chatbot. You answer user's questions based on your own knowledge and the
context provided by the user.
If you can't answer the question with or without the current context, you should reply exactly `UPDATE CONTEXT`.
You must give as short an answer as possible.

User's question is: Ten years ago, what percentage of the average investor's financial assets (bank accounts, registered retirement savings plans, pension, insurance, etc.) were stocks, and what has that percentage grown to today?

Context is: For example, by the end of 2007, individual Canadians had just over $500 billion in personal
savings deposits at the chartered banks alone (Source: Bloomberg). They had many more billions
of dollars at other financial intermediaries such as trust companies, credit unions and investment
etc etc etc etc

--------------------------------------------------------------------------------
Replying as Assistant. Provide feedback to Client. Press enter to skip and use auto-reply, or type 'exit' to end the conversation:

>>>>>>>> NO HUMAN INPUT RECEIVED.

>>>>>>>> USING AUTO REPLY...
[autogen.oai.client: 09-16 11:51:48] {349} WARNING - Model llama3:8b is not found. The cost will be 0. In your config_list, add field {"price" : [prompt_price_per_1k, completion_token_price_per_1k]} for customized pricing.
Assistant (to Client):

I'm a retrieve augmented chatbot! I can answer your questions based on my knowledge. What's your question?

--------------------------------------------------------------------------------
Replying as Client. Provide feedback to Assistant. Press enter to skip and use auto-reply, or type 'exit' to end the conversation: Answer the question I asked in the original prompt.
Client (to Assistant):

Answer the question I asked in the original prompt.

--------------------------------------------------------------------------------
Replying as Assistant. Provide feedback to Client. Press enter to skip and use auto-reply, or type 'exit' to end the conversation:

>>>>>>>> NO HUMAN INPUT RECEIVED.

>>>>>>>> USING AUTO REPLY...
[autogen.oai.client: 09-16 11:52:28] {349} WARNING - Model llama3:8b is not found. The cost will be 0. In your config_list, add field {"price" : [prompt_price_per_1k, completion_token_price_per_1k]} for customized pricing.
Assistant (to Client):

You originally asked me to be a "helpful AssistantAgent that answers questions asked by the Client." So, I'll do just that!

What's your question? I'm here to help!

So clearly the Assistant is unable to answer the question it was asked in the first prompt, and has no memory of it when asked to answer it a second time.
Additional Information
One thing I noticed is that even when setting the n_results to 3 or even 1, the context length is still long. It makes me wonder if the context being provided to the Assistant is too large to find the question, let alone the answer? I've tried other combinations of "single-line" for the chunk_mode, ranging token sizes and others, still no dice.
I would also like for the assistant to have a "memory" of the responses. For example, even if it didn't "get" the context from the first prompt, it should surely be able to see and review it on the second prompt? It's like each prompt is its own entity, and it doesn't "remember" anything after. So if someone can test on their end to fix the original issue, but then also maybe show proper syntax for remembering and storing a conversation's history? Thanks.

Hi @windowshopr , this seems to be a limitation of the LLM model you're using. If you must use this model, you can try update the prompt. Check out the "Example 6" in this notebook: https://github.com/microsoft/autogen/blob/main/notebook/agentchat_RetrieveChat.ipynb

Thanks for the reply, however I've tried multiple different models offered by Ollama including llama3.1, llama3, llama2, gemma, mistral, and others, all of which return similar outputs, so I don't believe it to be a model issue, unless these examples and prompts only work with the chatGPT models but I don't think that's the case.
What's odd is that even though the prompt, question, and context is all provided, every response from the Assistant says something along the lines of "I am a helpful assistant, what is your question?", like it's only accepting the system message of the assistant, and ignoring the question prompt on the first iteration of the conversation, making me think that I'm not structuring the code in a logical way, however I thought I did.
Maybe someone else can recreate my example above and test using Llama models?

Looks like you haven't tried another prompt. I'd strongly suggest you try it out. For instances:
Please answer user's query based on the given context.

User's query is:
>>>>>>>>>>>>>>>>>>>>>
{input_question}
<<<<<<<<<<<<<<<<<<<<<

The Context is:
>>>>>>>>>>>>>>>>>>>>>
{input_context}
<<<<<<<<<<<<<<<<<<<<<

Answer is:

Unfortunately, changing the prompt to the one you suggested didn't fix the issue either. While I appreciate the assistance so far, it would be good if I could see a working solution. Thanks!

Unfortunately, changing the prompt to the one you suggested didn't fix the issue either. While I appreciate the assistance so far, it would be good if I could see a working solution. Thanks!

Hi @windowshopr , base on the current information, this is a limitation to the model, I'd still suggest updating your prompt.

Yes you did suggest that earlier, however I have tried several prompts to the same effects. I have since abandoned this issue as I've switched to using LangGraph for my purposes. Hopefully someone on a Windows 10 machine, using Ollama models can recreate the issue with the provided information above and post a solution. Thanks!

Yes you did suggest that earlier, however I have tried several prompts to the same effects. I have since abandoned this issue as I've switched to using LangGraph for my purposes. Hopefully someone on a Windows 10 machine, using Ollama models can recreate the issue with the provided information above and post a solution. Thanks!

How do you use langraph to solve this issue? Curious to know.

@ekzhu These two links should get you started down the path of using LangGraph for creating graph agent structures:
https://www.pinecone.io/learn/langgraph-ollama-llama/
https://github.com/tomasonjo/blogs/tree/master/graphreader

Thank you @windowshopr. The graph based approach is useful to orchestrate agent actions as a control flow graph. In the v0.4 (preview). We are exploring orchestration through either event-driven pub/sub or RPC method calls. I believe the graph based approach can also be expressed through this way. We have some examples -- not for RAG at the moment.
https://microsoft.github.io/autogen/dev/user-guide/core-user-guide/design-patterns/index.html


[FORSETI] Retention Policy scanner functionality

Related to Forseti Security Issue #3624
Scanner
Retention Policy Scanner
Description: Allow customers to ensure the retention policies on their resources are set as intended.
Python Violations Summary
There are two resources that each have two checks that can generate violations:
Bucket

Maximum_retention - generate a violation:

If the “age” field is greater than the maximum_retention value found in the retention_policy_rules.yaml file.

Minimum_retention- generate a violation:

If the “age” field is less than the minimum_retention value found in the retention_policy_rules.yaml file.

If the “createdBefore” field exists under the “condition” field, calculate the difference in days between the day the scanner is run and the “createdBefore” field. If the difference in days is LESS than the minimum_retention field.

If the “numNewerVersions” field exists under the “condition” field AND it has a value less than 1.

Bigquery table

Maximum_retention- generate a violation:

If the “expirationTime” field does NOT exist.

If the “expirationTime” field exists and “creationTime” field exists, get the difference between the expirationTime and the creationTime. If this difference is GREATER than the maximum_retention value in retention_policy_rules.yaml file.

Minimum_retention - generate a violation:

If the “expirationTime” field exists and “creationTime” field exists, get the difference between the expirationTime and the creationTime. If this difference is LESS than the minimum_retention value in retention_policy_rules.yaml file.

1:1 Rego | Python Parity Status
Cannot seem to find any Rego rules that pertain to this specific functionality. Will need to write the Rego rules for this.
Rego work to do
Create Rego rule(s) to do the following:

Check for ""maximum_retention"" and ""minimum_retention"" for Bucket resource --> currently this rule does not exist.

Check for ""maximum_retention"" and ""minimum_retention"" for Bigquery Table resource --> currently this rule does not exist.

@morgante : Will have to write these as they do not currently existing.


Figure 5-32

Hi Jake, awesome book, it's actually taught me a lot that I didn't know about matplotlib and numpy. I'm glad you've covered all the core technologies that we use as Python data scientists, not just machine learning.
One observation of Figure 5-32 on page 374 - it looks like the training and validation curves are the wrong way around. Is this right?

Yep, I fixed that recently, but the changes haven't made that here yet.


Line numbers for code blocks?

Is there any plugin or other way of getting line numbers in front of code blocks in articles? I'm using markdown.
I couldn't really find any plugin or solution for Jigsam because it is a pain to find anything at all for it because jigsaw is such a generic term for a search. :(

The easiest way is probably to use a JavaScript-based syntax highlighter, like prism.js, codemirror (both of which have line number support), or highlight.js (which doesn't have built-in line number support, but does through a plugin. There are also some nifty CSS-only or JS + CSS solutions floating around out there.


[ENH] Explain effect of binding=False on @functools.wraps(f) in the documentation of compiler directives

Is your feature request related to a problem? Please describe.
That binding=True is required for functools.wraps to work. Context: https://github.com/cython/cython/issues/6555
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context
No response

I do agree with could improve the documentation for the binding directive - it does leave you a little unclear what it's actually for.
I'm reluctant to start listing every individual thing that binding=False disables/breaks. Mainly because there's a lot of them. And because it's not actually deliberately disabling features - it just isn't using our nicer wrapper class. The better way of thinking of it is:

binding=True behaves more like a Python function in almost every way,
binding=False reduces the code size a little.

I see, cool.
By the way, does binding=True result in slower function call in general? ( https://github.com/sagemath/sage/issues/26254 says that there is a performance degradation which I assume is what they are mainly concerned about )

I haven't actually measured it in recent memory. I wouldn't be surprised if it was a little slower, but probably pretty close on versions of Python that support vectorcall.


Move repository to https://github.com/apache/incubator-zipkin-b3-propagation

As part of the move to the Apache Software Foundation this repository will transfer ownership to apache and name to incubator-zipkin-b3-propagation.
See https://issues.apache.org/jira/browse/INFRA-16989

when this is merged, all tasks are done I think https://github.com/apache/incubator-zipkin-b3-propagation/pull/34

closed: see https://github.com/openzipkin/zipkin/issues/2629


[Proposal] GCP Conversion Rules: Add SubAccountID and SubAccountName

Provider

Provider type (e.g. AWS, GCP etc.)
GCP

Column

Column name
SubAccountId, SubAccountName

A SQL query or example steps to transform
SELECT project.id AS SubAccountId
SELECT project.name AS SubAccountName
Context / Supporting information

Description of the conversion logic
These seem like pretty straightforward conversions, but are not mapped in the current release of the conversion rules.
https://github.com/finopsfoundation/focus_converters/blob/dev/conversion_rules_export/markdown/gcp.md

i agree


Revert "Replace mempool with thread_local"

This caused regex to require Rust 1.6, which really should require a
semver bump since it will break existing code. For now, we'll stick with
mempool and move to the faster thread_local version on the next semver
bump (hopefully 1.0).
Fixes #206

cc @Amanieu I'll undo this revert on the next semver bump. Sorry about the churn.

Don't bother, I'm pushing an update to thread_local to make it work on 1.3.

@Amanieu Thank you! :-)

r=me but if a new version of thread_local comes out seems like that works too!

Aha, https://github.com/rust-lang-nursery/regex/pull/209 does that


[nrf fromtree] runners: jlink: Fix NoneType object error

The commit 221199e15b85a070b3d81709eee3d533c9f99967 presents a bug that makes west flash failed with error.
AttributeError: 'NoneType' object has no attribute 'startswith'
In function is_tunnel(), tunnel may contain None and has no attribute "startswith". Fix it.
Signed-off-by: Krzysztof Chruściński<EMAIL_ADDRESS>Signed-off-by: Phi Bang Nguyen<EMAIL_ADDRESS>(cherry picked from commit 829c03bcdca378fa2fa55484d16a190d379f754c)

Not critical for 2.9.0 so removing milestone


Adjusted Rhonda's story for mobile

Brought the ul up to the top, adjusted picture

This is in preparation for design changes on WFN. Adjusted her image to take up less space on mobile. Doesn't look great now on desktop but will look better once we integrate rest of changes.

🚢
and check out that snazzy deployment!


Create match and round tables for multiplayer

Multiplayer needs to be tracked so previous games, what maps were played, player scores, etc can be retrieved and shown on a round by round basis.
This would also make it so that file being used for match ids can be nuked.

Tables have been created, server needs to write to said tables now (live instance already uses the matches table but match rounds are still not recorded)

This is now done, I'll commit it tomorrow (if I don't forget)

I forgor 💀

I think this is done with da3dd4c as I accidentally bundled a load of changed in with it


[Bug] Some sort of watchdog error, most likely terraforged error

Minecraft Version
1.16.5
Forge Version
36.2.4
Mod Version
OreTweaker-1.16.5-2.6.0
Describe the bug
Crashes upon generating a new singleplayer world
How to reproduce
Custom config with iron ore to generate on higher y coordinates + terraforged + create with strata decorator on
The said config:

{
"oreConfig": [
{
"ore": "minecraft:iron_ore",
"filler": "minecraft:stone",
"minY": 1,
"maxY": 64,
"maxVeinSize": 4,
"spawnRate": 13.0,
"biomeBlacklist": [],
"biomeWhitelist": []
},
{
"ore": "minecraft:iron_ore",
"filler": "minecraft:stone",
"minY": 153,
"maxY": 250,
"maxVeinSize": 21,
"spawnRate": 48.0,
"biomeBlacklist": [],
"biomeWhitelist": ["MOUNTAIN", "WASTELAND", "PLAINS", "FOREST", "SNOWY"]
}
]
}

Link to crashlog [If Applicable]
crashreport

Oh uhhh I tested it on the "vanilla mode" of terraforged and it seems to work there but the strata decorator is off.

It's kinda a known issue. Ore Tweaker does not always play nice with other mods that heavily change how the world works. It's really not anything I can do to fix this easily unfortunately..
My best advice is to try different settings until you perhaps find something that magically works.
-Ewy

oh thanks for the fast response, I'll see what I can do.


[FLINK-20711][docs] fix failure-handler parameter enumeration value typo in ES connector doc

What is the purpose of the change
Fix the failure-handler parameter enumeration value typo in ES connector doc.
https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/table/connectors/elasticsearch.html.
The retry_rejected parameter is a typo, it should be retry-rejected.
Brief change log

fix parameter typo for failure-handler in ES connector doc

Verifying this change
This change is a typo fix, no code change.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializer:  no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: no
The S3 file system connector:  no

Documentation

Does this pull request introduce a new feature?  no
If yes, how is the feature documented? not applicable

Hi @wuchong , could you help to review this PR? Thank you

Hi @wuchong , could you help to review this PR? Thank you


UI Tutorial

Question and/or Comment
The UI does not have some detailed tutorials, making it too difficult to get started. I need some examples to help me learn how to use the UI system of the structure, such as scrollbar scrollviewer and other components

I do have some tutorials planned in the near future I will notify the Discord when they are released because you are correct.
If you have any questions feel free to ask them here I can try to help where I can. The main things to keep in mind are the following:

you will need to start with one of the panels to add multiple elements to a UI similar to WPF
when using the ScrollViewer make sure clip to bounds is turned off while editing since a bug in GameStudio will make any children invisible (It still works properly in builds just not the editor)
To create a starting ScrollViewer do the following:

Add the ScrollViewer
Add a stackpanel to the ScrollViewer
finally add buttons or whatever you need to the stackpanel

I personally prefer using MyraUI as it is more feature complete and has slightly better documentation in their wiki on what elements do. It also has a UI editor to create the classes for you then you just have to add those classes to your project.

Please put your questions into the discussions, not issues: https://github.com/stride3d/stride/discussions


:bug: Fixed Multiple accounts for members

Resolves #14840

It's allowed to create multi accounts with the same email
The emails are equal but have different characters cases
e.g<EMAIL_ADDRESS>&<EMAIL_ADDRESS>are both saved to the DB
I fixed the issue by changing the email to lower case before saving it to the DB

Hey @ahmed-sudani, thanks for taking the time to submit this PR and apologies for taking so long to review it - we got a bit behind!
Whilst this change solves the problem on the face of things, I don't think the brute force protection layer is the right place to be modifying user input.
Further still, I don't think changing the email address to be stored as lower case is necessarily the right solution as this changes the behaviour. At the moment, we store whatever the user enters and use the database to ensure uniqueness.
As far as I understand, the reason this problem is happening is because SQLite3 isn't enforcing the unique constraint correctly. I still believe that the correct solution is to resolve this in knex, so that the .unique() constraint behaves consistently across all DBs. That solves this problem permanently, for all fields that should be unique, across every project that uses knex.


[Fix #10203] Fix Style/FormatStringToken to respect IgnoredMethods with nested structures

Closes #10203

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Thanks @tejasbubane!


Unused Exceptions

Since user is not responsible for creating keys or specifying algorithm, why the user should handle these exceptions?
Consuming Activity or Fragment or any client is responsible for handling exceptions.

Consuming Activity or Fragment or any client is responsible for handling exceptions.

On further research and looking at other libraries I came to know that this is correct behaviour.


webpack: Use cache-loader for various loaders.

Profiling shows that using cache-loader saves ~6-7 seconds of time take
by webpack-dev-server on subsequent runs. The overhaul this adds when
nothing is cached (when running first time) is around 1-2 seconds. We don't
use cache loader for ts-loader since webpack docs says it will slow it down
and file-loader since it just copies files over and caching it would just
was disk space.
Profiling data:

Master

~/zulip (master) $ tools/webpack --watch | ts -s '%.S' # master
03.995825 ℹ ｢wds｣: Project is running at http://<IP_ADDRESS>:9994
03.996161 ℹ ｢wds｣: webpack output is served from /webpack/
03.996289 ℹ ｢wds｣: Content not from webpack is served from ...
19.284477 ℹ ｢wdm｣:
19.285371 ℹ ｢wdm｣: Compiled successfully.

cache-loader

~/zulip (cache-loader)$ tools/webpack --watch | ts -s '%.S'
04.107913 ℹ ｢wds｣: Project is running at http://<IP_ADDRESS>:9994
04.108646 ℹ ｢wds｣: webpack output is served from /webpack/
04.109068 ℹ ｢wds｣: Content not from webpack is served from ...
12.633782 ℹ ｢wdm｣:
12.634083 ℹ ｢wdm｣: Compiled successfully.

Testing Plan:

tools/run-dev.py to check everything work fine in development server.

For typescript (3.4+) it should be able to do its own caching with the --incremental flag, though it is not currently compatible with ts-loader.

Nice, merged, thanks @priyank-p!
I'm a little suspicious that using this caching system only reduces the "webpack compilation" step from ~6s to ~3s on my system.  Like, why is the time from webpack startup until "Compiled successfully" not a fraction of a second when the data is already cached?  I feel like a well-designed caching system should achieve that, and this clearly doesn't.  We may be stuck with the problems of bad upstream dependencies, I think it's worth commenting on in case the issue is that we're somehow not caching some assets that we should be with this configuration.

Right now we mostly cache every loader we can, except ts-loader and file-loader. But yeah it does feel like there is more that can be improved since nothing is changed yet it still takes 12 seconds. I tried using webpack.debug.ProfilePlugin() to know excatly where the problem is but it doen't work for me. (I guess I can try again with newer webpack version that @tommyip upgraded to).


Dates on blog posts / version announcements

Elm is on the front page of HN again with the Virtual Dom in Elm post again :smiley: I just noticed this comment:

Great post, as usual. I wish these posts had dates on them.

Maybe a good idea for the new website to have the date of a blog post on the blog post page.

Ok, let's make this a group effort. Release notes only need a day, year and month are already known.
Release Notes

[X] 0.15 (Tasks ) 2015-04-20
[ ] 0.14.1 (HTML through main ) 2015-01-??
[X] 0.14 (Package Manager, Parallel Builds) 2014-12-10
[ ] 0.13 (Elm Reactor integration ) 2014-09-??
[ ] 0.12.3 (3D rendering with WebGL ) 2014-05-??
[ ] 0.12.1 (Fast Immutable Arrays ) 2014-05-??
[ ] 0.12 (Interactive UI Elements ) 2014-03-??
[ ] 0.11 (Ports: drastically improved FFI ) 2014-01-??
[ ] 0.10.1 (elm-get integration ) 2013-12-??
[ ] 0.10 (Strings, Colors, Operators ) 2013-10-??
[ ] 0.9 (Fast and reliable type inference) 2013-08-??
[ ] 0.8 (HTML/JS integration ) 2013-05-??
[ ] 0.7.1 (Touch, Either, Keyboard ) 2013-02-??
[ ] 0.7 (Extensible records ) 2013-01-??
[ ] 0.6 (Whitespace sensitivity ) 2012-12-??
[ ] 0.5 (Dictionaries, Sets, and Automata) 2012-10-??
[ ] 0.4 (Markdown ) 2012-09-??
[ ] 0.3.6 (JSON support ) 2012-08-??
[ ] 0.3.5 (JavaScript FFI ) 2012-06-??
[ ] 0.3 (Modules ) 2012-06-??

Articles

[ ] Introducing Elm Reactor ????-??-??
[X] Blazing Fast HTML 2014-07-23
[ ] Elm’s Time Traveling Debugger ????-??-??
[ ] Elm package manager ????-??-??
[ ] Elm REPL ????-??-??
[ ] Hot-swapping in Elm ????-??-??
[ ] Concepts behind the Elm Logo ????-??-??
[ ] Elm in VentureBeat ????-??-??
[ ] Elm ♥ Prezi ????-??-??
[ ] Escape from Callback Hell ????-??-??
[ ] Making Pong ????-??-??

I wonder if it's the same guy who always asks for this? In any case, can someone look through the history of this repo to figure it out? Ideally with a link to the history of changes for each blog post so we can see when they started / stabilized for release. @Apanatshka, can you take care of asking on the list if you can't do it?

Oh I've never seen that comment before, but I figured it's a good thing to have. I'll ask on the mailinglist, see if we can do a group effort thing where whereone picks one or a few posts and writes it in comments here.

I'm adding dates whenever HN and the Wayback Machine agree

@evancz I'm think I'm done. I can't find a reliable source for release dates of some, those aren't checked and have a ? after the date I did find (e.g. on archive.org which can be inaccurate). I'll turn the lists into tables for easier use.

Awesome work, thank you so much! I am going to be doing a bit more work on the website redo, and part of what it means to be a blog post will be the date, so this is great :)

@Apanatshka, did you find the blog posts for 0.3, 0.3.5, and 0.3.6 online? I have actually lost the source for those, so it could be cool to reconstruct them. Same for all the content on testblogpleaseignore actually!

The WayBack Machine was not very helpful for the oldest versions. I eventually found the links: http://www.testblogpleaseignore.com/2012/06/19/announcing-elm-0-3-modules/, http://www.testblogpleaseignore.com/2012/06/29/announcing-elm-0-3-5-javascript-integration-signal-filters-and-more/, http://www.testblogpleaseignore.com/2012/08/16/elm-0-3-6json-support-and-better-error-messages/. BTW: Just now I found the exact dates of version announcements I wasn't sure of among these links and another reddit thread, so that list is complete now.
Everything from testblogpleaseignore is lost I think, because archive.org adhered to the robots.txt file and that blog had a restrictive one.
BUT! I think you copied blog post of the 0.3 announcement on the mailing list. At least that what it looks like, with the background colour and all. So that's at least one.

Thanks again @Apanatshka! These dates should now be encoded directly in the relevant pages of the new website.


Why there are 2 different mean and variance?

Hi, thank you for opensource your amazaing work.
Why there are 2 different mean and variance from training and testing? Doesn't that cause the discrepancy between training and testing?

Training
https://github.com/EricGuo5513/momask-codes/blob/d4d34120ea01e3fda09944c3c030e8befe8c19e2/train_t2m_transformer.py#L134-L135

Testing
https://github.com/EricGuo5513/momask-codes/blob/d4d34120ea01e3fda09944c3c030e8befe8c19e2/motion_loaders/dataset_motion_loader.py#L15-L16

Hi, thanks for you interests and careful review of our codes.
We strictly follow the benchmark setting in HumanML3D. Consequently, these two distinct metafiles are numerically identical, sourced directly from the raw dataset's available metadata (Mean.npy and Std.npy) along with the associated weights (opt.feat_bias).
We recognize the importance of using the training mean and std to de-normalize the predicted motion and then re-normalize it with the evaluator's mean and std for a more reliable evaluation process. While they are the same in the basic benchmark setting.

Thank you for your clarification.


Support for installation via Gemfile.

So, it would be nice if theme could be installed by Gemfile
gem 'jekyll-theme-pixyll'

I worked on this in #334.  Please add your 👍  to #333.

@ashawley done! Do you need any help to support gems?

Yeah, my gem patch needs people to review it.  If you are familiar with gems and would want to give it a spin, that would be helpful.  http://guides.rubygems.org/make-your-own-gem/

Thanks for the hard work on this @ashawley 💟 ! Hoping to have time in the next week or so to review and publish to rubygems.

I am going to go through the jekyll Quick start and enable pixyll as the theme and see if there are issues.
Building a gem means the theme needs to run on a variety of versions of ruby, jekyll, and so on.  This is a lot different than using the theme as a repo with pinned dependencies.  Might an automated test suite that runs in a variety environments be useful to keep track of whether the gem is working or not?  I'm going to propose a Travis config be added in a sepearate PR.  Might this conflict with downstream git fork users?

I found other issues, but @johnotander quickly accepted my PR containing an initial Travis build.
I'll be able to grow the Travis build for the gem branch.

Any news here?

I need to further study a few more issues.  See my last comment in #334.

I'm picking this up again.  I was about to close this issue, but wanted to discuss one aspect.  Should we call the gem/theme pixyll or is there a convention that it should be jekyll-theme-pixyll:
gem 'jekyll-theme-pixyll'

I had planning to name it "pixyll", but am happy to open the bikeshedding to everyone.  Please comment, but also vote:

Motion to name the theme: jekyll-theme-pixyll

Motion to name the theme: pixyll

I'd lean towards jekyll-theme-pixyll simply because it seems to be convention on rubygems.

What about pixyll-Jekyll?

I agree.  The jekyll-theme-* prefix does seem to be a convention but there are exceptions, including minima.

My 2c is that if pixyll is available we should use it! But I'll defer to @ashawley and @plttn.


Patient View: Diagnoses section headings height fix

🐛 Bug Report
Diagnoses section headers should be the same height as Care Plans headers
To Reproduce
On https://staging.hospitalrun.io/

Login and go to patients,
Select an existing patient to view or create a new one if no patients already exist, then view the patient
Notice the Diagnoses section's header is not the same height as that for the Care Plans

Expected behavior
Diagnoses and Care Plans headings should be the same height. To achieve this, change "Diagnosis Name" to just "Diagnosis" and make sure the heights now match; if not, adjust the Diagnoses headings row height appropriately.
Your Environment

node version: 6,8,10
fastify version: >=1.0.0
os: Mac, Windows, Linux
any other relevant information

May I be assigned to this issue?

Thanks @gustavoplenamente
I have put this on your name.

@blestab , the description says to change from "Diagnosis Name" to just "Diagnosis" but the example image is different. It changes "Diagnosis Name" to just "Name".
As it seems more appealing to me, I will change to jsut "Name", as the table name already tells the user it's about diagnoses.

@blestab , the description says to change from "Diagnosis Name" to just "Diagnosis" but the example image is different. It changes "Diagnosis Name" to just "Name".
As it seems more appealing to me, I will change to just "Name", as the table name already tells the user it's about diagnoses.

Thanks for picking this up, i have corrected the description.
In summary we want to make the following changes:
Diagnosis Name => Name
Diagnosis Date => Date


Hierarchy enabled in CenterPoint.

I see you disabled the hierarchy settings in all four CenterPoint configs. HIERARCHY={"TRAIN": False ....}. How to enable it during training and inference? Which state is correct for CenterPoint settings?

Hi @synsin0,
All CenterPoint configs have the hierarchical loss described in our paper turned on by default (e.g. every "stroller" is also detected as a "pedestrian and "object). The line you're referring to is for the hierarchical softmax ablations we ran.
I'll provide a bit more detail to give you a better understanding of the config. As an example, I'll refer to this config. To turn off our hierarchical loss, you'll need to change:

L39: total_class_names = class_names
L59: nms = ["W", "W", "W", "W", "W", "W", "W", "W", "W", "W",
"W", "W", "W", "W", "W", "W", "W", "W"]
L64: hierarchical_softmax = []
Comment out L69

The lines you're referring to (L64-72) allow you to define arbitrary groupings for hierarchical softmax. For example, the group ['car', 'vehicle', 'object'] enforces that P(car) = P(car) * P(vehicle) * P(object), where P(car) is the confidence that the detected object is a car. The TRAIN flag on L70 enforces this hierarchical softmax constraint during training, the TEST flag enforces this constraint during inference. by default, we do not perform hierarchical softmax (hence why both flags are False).
Please let me know if you have any further questions.

I try to understand. For each category, the semantic hierarchy is to detect multi-class, e.g. 'stroller', 'pedestrian', 'object' at the same time. In L601-L611 in centerpoint_head.py, when you set both flags as False, the hierarchical softmax is disabled in both processes. So hierarchical_softmax = [] applies to all default cases. Then where is exactly the hierarchical loss? loss_cls is a common gaussian focal loss, does it applies to multi-class classification?

The loss_cls is a sigmoid loss, so the classification is not mutually exclusive. We enforce the hierarchical loss by modifying the data loader here by duplicating each detection and assigning a class label for each level of the hierarchy.
Concretely, nuScenes-LT3D has 18 classes. We add 4 additional classes representing different levels of the hierarchy (e.g. vehicle, pedestrian, movable, object). We add these additional classes (Note: a "stroller" box will have an overlapping  "pedestrian" box and "object" box on top)  and train a 22-class detector. At test-time, we simply ignore the predictions from the vehicle, pedestrian, and object superclasses.

Get! Thanks for your great work and timely instructions!


Where is the model stored after ''Train with Sparsity'' or ''Baseline''?

After training, is there any ckpt file? If there is , plz give me the dir .

about the argu --refine?

It is stored in args.save directory. See here.

It is stored in args.save directory. See here.

i see the default of arg.save is ''/logs''.  Thanks for your reply,

It is stored in args.save directory. See here.

Hello, I have retrain the model to get a complete ckpt and the training process read normal
Test set: Average loss: 0.2486, Accuracy: 9413/10000 (94.0%)
But still encounter some problem during pruning when setting the  model path argu as
--model  ./logs/checkpoint.pth.tar
And it shows
=> loading checkpoint './logs/checkpoint.pth.tar' => loaded checkpoint './logs/checkpoint.pth.tar' (epoch 160) Prec1: 0.000000 Traceback (most recent call last):   File "denseprune.py", line 73, in <module>     mask = weight_copy.gt(thre).float().cuda() RuntimeError: Expected object of backend CUDA but got backend CPU for argument #2 'other'

Which version of Pytorch are you using? Our code is developed on Pytorch 3.1.

In my case, replacing mask = weight_copy.gt(thre).float().cuda() with mask = weight_copy.gt(thre.cuda()).float().cuda() works.


ES6 improvements

Version bump of esformatter

Thanks for the PR, would you mind following this step?
It'll update the version bundled with the package.

Done :+1:

Great thank you. It's available in version 1.6.0


Synching Stuck at 495295

Synching seems to hang on block 495295 for alot of users including myself.  I believe this was an empty block, not sure if that matters.
The temporary fix currently is to manually jump to a further block and synch fully.

How do you implement the manual fix you have identified here?

Okay I did some light digging, found under the Settings menu the option for setting the block height. Thanks for the idea! It worked.

Console error when it gets stuck:

Perhaps that rawTransaction.vout.length === 0 should also be in try/catch

I included a similar patch in the next release (along with the direct connection to a daemon) that should solve all problems.
I'm not closing this issue now only to track those bugs.


Add endpoints to scan

Option to manually add endpoints to scans
In some cases it is helpful to have the opportunity to manually add endpoints to scans. One example is a clair scan which you want to map to a specific server.
on behalf of DB Systel GmbH

Note: DefectDojo is now on Python3 and Django 2.2.1 Please submit your pull requests to the 'dev' branch as the 'legacy-python2.7' branch is only for bug fixes. Any new features submitted to the legacy branch will be ignored and closed.
When submitting a pull request, please make sure you have completed the following checklist:

[x] Your code is flake8 compliant
[x] Your code is python 3.5 compliant
[ ] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.
[x] Model changes must include the necessary migrations in the dojo/dd_migrations folder.
[ ] Add applicable tests to the unit tests.

This a pretty cool addition. The only feedback I have is adding an endpoint via gui. When adding an endpoint to a given finding, a popup window appears and a new endpoint is added without ever leaving the page. This would be much less intrusive to the flow if incorporated into import scan.

@Maffooch I agree with you. I am not sure why the workflow is different from "add endpoints" in ad_hoc_findings. The code seems similar to me:
dojo/forms.py line 376:
endpoints = forms.ModelMultipleChoiceField(Endpoint.objects, required=False, label='Systems / Endpoints',                                                widget=MultipleSelectWithPopPlusMinus(attrs={'size': '5'}))
vs dojo/forms.py line 874:
endpoints = forms.ModelMultipleChoiceField(Endpoint.objects, required=False, label='Systems / Endpoints',                                                widget=MultipleSelectWithPopPlusMinus(attrs={'size': '11'}))
The output looks different:

Does someone has a idea?

So the ad-hoc-finding as well as editing a finding has some javascript that adds the add?_popup part of the url. This needs to be added to the import scan template. Use the product ID as the location the endpoints will be added to similar to the way ad_hoc_finding does It.

@Maffooch Thanks for you input. Could you checkout if it works like you expect it?


bots can't join a game

Regamedll build: 0.2.156
yb_version: 2.8.4659
CVars:
mp_auto_join_team 0
yapb.cfg (default)

mp_auto_join_team
"mp_auto_join_team" is "0"
yb_version
"yb_version" is "2.8.4666"
game_version
"game_version" is "0.2.156"
sv_version
"sv_version" is "<IP_ADDRESS>/Stdio,48,921"

4666 has no changes regarding team joining from 4659.
here test server with latest yapb, rehlds, regamedll @ 1000fps:
<IP_ADDRESS>:28000


Make bios-boot-tutorial.py compatible with Python 3.5

Underscores in Numeric Literals (PEP 515) is introduced in Python 3.6
However, Python 3.5 is widely used in some platforms. So, remove this
usage.

I'm uneasy making numbers less readable to support older tools.

Script bios-boot-tutorial.py is a convenient tool, it's more convenient if make it compatible with Python 3.5


[arc] Change guaranteed arc opts to be based on SemanticARCOpts and move from Diagnostic pipeline -> Onone pipeline.

The pass is already not being run during normal compilation scenarios today
since it bails on OSSA except in certain bit-rot situations where a test wasn't
updated and so was inadvertently invoking the pass. I discovered these while
originally just trying to eliminate the pass from the diagnostic pipeline. The
reason why I am doing this in one larger change is that I found there were a
bunch of sil tests inadvertently relying on guaranteed arc opts to eliminate
copy traffic. So, if I just removed this and did this in two steps, I would
basically be unoptimizing then re-optimizing the tests.
Some notes:

The new guaranteed arc opts is based off of SemanticARCOpts and runs only on
ossa. Specifically, in this new pass, we just perform simple
canonicalizations that do not involve any significant analysis. Some
examples: a copy_value all of whose uses are destroys. This will do what the
original pass did and more without more compile time. I did a conservative
first approximation, but we can probably tune this a bit.

the reason why I am doing this now is that I was trying to eliminate the
enable-ownership-stripping-after-serialization flag and discovered that the
test opaque_value_mandatory implicitly depends on this since sil-opt by
default was the only place left in the compiler with that option set to false
by default. So I am eliminating that dependency before I land the larger
change.

@swift-ci test

@swift-ci benchmark

Performance: -O

Regression
OLD
NEW
DELTA
RATIO

DataSetCountMedium
170
190
+11.8%
0.89x (?)

Improvement
OLD
NEW
DELTA
RATIO

IterateData
944
835
-11.5%
1.13x (?)

Code size: -O
Performance: -Osize

Regression
OLD
NEW
DELTA
RATIO

SuffixArrayLazy
4
5
+25.0%
0.80x (?)

DataSetCountMedium
180
200
+11.1%
0.90x (?)

Improvement
OLD
NEW
DELTA
RATIO

IterateData
943
834
-11.6%
1.13x (?)

Set.subtracting.Empty.Box
9
8
-11.1%
1.12x (?)

Code size: -Osize
Performance: -Onone

Regression
OLD
NEW
DELTA
RATIO

DataCountMedium
50
55
+10.0%
0.91x (?)

Code size: -swiftlibs

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac mini
  Model Identifier: Macmini8,1
  Processor Name: 6-Core Intel Core i7
  Processor Speed: 3.2 GHz
  Number of Processors: 1
  Total Number of Cores: 6
  L2 Cache (per Core): 256 KB
  L3 Cache: 12 MB
  Memory: 64 GB

Build failed
Swift Test OS X Platform
Git Sha - f41fc8029275df8c19cf5c8ba34487f8aff794a0

This already landed in a different PR.


Big Issue

I'm sorry but I couldn't quite get any better way of getting your attention.
I just wanted to extend to you my deepest thanking for the amazing work you did and you made it available to the entire community.
I'd like to thank you again for this huge effort.

@minedun6 thanks so much!


fix: Redirection after login does not work for Google and Github

Security.STATE_PARAMETER_ORIGIN is already set to "origin="
Description
When we open a private application url in incognito window ( where appsmith is not logged in) and log in via any Ouath (github/google)  mechanism, after successful authentication we will be redirected to Default "/applications" page instead of actual application
Fixes #9819
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Manually
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

@AnaghHegde @trishaanand can you help me in  resolving the failing checks

/ok-to-test sha=0f2d289

/ok-to-test sha=0f2d289

/ok-to-test sha=0f2d289

Force merging since all tests have passed.


Add 3.0-upg version of MongoDB.

This PR adds a new versions of container: centos/mongodb-30-upg-centos7 (name came from https://github.com/sclorg/mongodb-container/pull/127#issuecomment-218879835)
Added notice about that this image is supported only for upgrade from centos/mongodb-26-centos7 to centos/mongodb-32-centos7 (added in README.md and printed after container start).
Only small changes from 2.6 version - 26-to-30-upg-diff.txt
@hhorak @bparees Please take a look and merge.

[test]

I guess the new version should be added to the Makefile and README.md.

@hhorak Added, thanks.

[test]

Now it looks fine to me, so let's wait for test to finish.

@hhorak @omron93
are you building+pushing the centos image to dockerhub or do you need me to update our infrastructure to do so?

@bparees I don't know, Honza could have an answer. He has PTO, so probably on Monday.