realip.conf not working

I have trouble setting up real.conf. It just doesn't seem to work.
I did read some related issues, specially #53 where it seems its working for some guys.
I did try a couple of versions:
set_real_ip_from  <IP_ADDRESS>/32;

header X-Forwarded-For;

set_real_ip_from  <IP_ADDRESS>/32;

real_ip_header X-Real-IP;

real_ip_header X-Real-IP;
real_ip_recursive on;

Pretty sure I did all the combos you can do with it. But still the real ip won't get through.
Also to my to my knowledge it should work with both X-Forwarded-For and X-Real-IP in same block.
One thing I don't get at all, shouldn't there be changes in my default.conf when I change something in the real.conf? (of course after a restart of nginx-web container) I can't see any.
Maybe my understanding is to basic, but shouldn't there be changes in the location section.
Here is my default.conf when starting the container with the start.sh script:
# xxx.xxx.com
upstream xxx.xxx.com {
                                ## Can be connected with "webproxy" network
                        # xxx
                        server <IP_ADDRESS>:80;
}
server {
        server_name xxx.xxx.com;
        listen 80 ;
        access_log /var/log/nginx/access.log vhost;
        return 301 https://$host$request_uri;
}
server {
        server_name xxx.xxx.com;
        listen 443 ssl http2 ;
        access_log /var/log/nginx/access.log vhost;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
        ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA$
        ssl_prefer_server_ciphers on;
        ssl_session_timeout 5m;
        ssl_session_cache shared:SSL:50m;
        ssl_session_tickets off;
        ssl_certificate /etc/nginx/certs/xxx.xxx.com.crt;
        ssl_certificate_key /etc/nginx/certs/xxx.xxx.com.key;
        ssl_dhparam /etc/nginx/certs/xxx.xxx.com.dhparam.pem;
        ssl_stapling on;
        ssl_stapling_verify on;
        ssl_trusted_certificate /etc/nginx/certs/xxx.xxx.com.chain.pem;
        add_header Strict-Transport-Security "max-age=31536000" always;
        include /etc/nginx/vhost.d/default;
        location / {
                proxy_pass http://xxx.xxx.com;
        }
}

So again I would think it would need to be something like:
# xxx.xxx.com
upstream xxx.xxx.com {
                                ## Can be connected with "webproxy" network
                        # xxx
                        server <IP_ADDRESS>:80;
}
server {
        server_name xxx.xxx.com;
        listen 80 ;
        access_log /var/log/nginx/access.log vhost;
        return 301 https://$host$request_uri;
}
server {
        server_name xxx.xxx.com;
        listen 443 ssl http2 ;
        access_log /var/log/nginx/access.log vhost;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
        ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA$
        ssl_prefer_server_ciphers on;
        ssl_session_timeout 5m;
        ssl_session_cache shared:SSL:50m;
        ssl_session_tickets off;
        ssl_certificate /etc/nginx/certs/xxx.xxx.com.crt;
        ssl_certificate_key /etc/nginx/certs/xxx.xxx.com.key;
        ssl_dhparam /etc/nginx/certs/xxx.xxx.com.dhparam.pem;
        ssl_stapling on;
        ssl_stapling_verify on;
        ssl_trusted_certificate /etc/nginx/certs/xxx.xxx.com.chain.pem;
        add_header Strict-Transport-Security "max-age=31536000" always;
        include /etc/nginx/vhost.d/default;
        set_real_ip_from <IP_ADDRESS>/8;
        real_ip_header X-Real-IP;
        real_ip_recursive on;
        location / {
                proxy_pass http://xxx.xxx.com;
                proxy_set_header  Host $host;
                proxy_set_header  X-Real-IP $remote_addr;
                proxy_set_header  X-Forwarded-For $remote_addr;
        }
}

thanks guys

Hello @teminvictus,
Did you manage to solve it?
If you set it on the realip.conf file it will be loaded by nginx, but not in the default.conf file.
When checking the nginx configurations loaded you will see the real ip there:
$ docker exec -it nginx-web nginx -T

You must check the logs of the nginx-web and the container forwared to see if the ip is being passed... one think I have done to prove that it is working, load up a new nginx container to receive the connection from the proxy and log the ip address or real ip header set in your conf. You will see the ip address in the log will be the origin ip addres.
Hope you already got through it.
Cheers!
Sorry my late reply...

Sorry I wasn't able to look into that issue earlier.
So when I do "docker exec -it nginx-web nginx -T" I see that my configuration is loaded correctly.
Strangely its working for one container right now, a few others not. all in the same ip range.

@teminvictus What do you get when running docker network inspect when running the containers that are not working?

What result are you wanting to get out of network inspect?

@teminvictus did you manage to solve it? You might will need to restart the containers after enabling the options on realip.conf


Freeze - Soft Lockup - Display Lockup

I'm experiencing a periodic "lock-up,"  which happens at a regular interval, approximately every 13s, where the display locks for ~3s, then activity returns to normal. During this time, the mouse cursor is still responsive, however any keyboard input or screen output appears to be frozen.
I thought at first this was a disk issue, but it only appears while in an xrdp session. Also, as per below, everything is actually still running, but the display is locked-up. I haven't yet tried vnc or teamviewer to see if there's a similar issue.
I wrote a script on the client computer that types the name of a python script which outputs the current time. What's interesting is that the server is still receives this keyboard input from the client and displays the correct time (each command is run at ~0.05s, and the intervals remain the same) while it's "locked up," there's just no response from the display for ~3s.
The issue appears independent of client machine.
I've tried checking the open issues here and the usual google search, but I've had no luck. I've checked a few logs (), but don't see any smoking gun (nothing written at this short of an interval ~13-20s). Any suggestions of specific logs to check, or any other ideas what this might be? I consider myself a novice+ Linux user, so assume any normal checks / setup issues haven't been completed.
Server Info:
OS: Debian 10 (Buster)
Kernel: 4.19.0-5-amd64
xrdp version: xrdp-0.9.9
CPU: Ryzen 7 1700x

what client?
which desktop environment?

The clients I've tried:

FreeRDP (my go to)
Remmina
RD Client (on android device)

Current DE is XFCE 4.12, though it should be noted that KDE was also installed, so there's some "cross pollination" if you will, of apps and settings.

Client and DE look ok.
I recently had a network issue like this and it was a switch.
Can you verify with iperf?
What happens with pings during these 3 secs?
maybe strace the xrdp process when this happens.
sudo strace -f -p

I definitely wouldn't rule out network, I'm not at home and I'm using a suboptimal router. I'm not entirely sure what to make of iperf results, but that 0 bytes 0bits/s seems not quite right...


Idea: multiple geo areas

Currently, you can change the LCS urls, which is great. However, when working for different customers in different geo areas, you would need a separate application for each area (default, eu, ch...). It would be great to have, for instance, checkboxes which areas you want to include.

Thanks for the suggestion. I worked on a proof of concept for something similar a while ago. At that time, Microsoft's plans to move from LCS to Power Platform became concrete, which made me abandon that attempt. If you are interested and have a developer background, you can take a look at it at https://github.com/FH-Inway/2LCS/tree/geo-project-environment-treeview
It would be fairly easy to add a geo selection in the parameters instead of having to change the LCS urls. However, that would only allow switching from one geo to another.
The proposal of selecting multiple geos to include would be more effort to implement. 2LCS was created at a time when there only was the global/US geo and no plans existed at that time to support multiple geos. Its design reflects that.


uncaught promise error

When i click dialog backdrop to get error on console "uncaught promise error"

This is a known error, I will fix it but it shouldn't effect the process

ok

Fixed in 2.0.0-beta.2


F431 FETCH and T321

Fixes #132.
request: CREATE OR ALTER PROCEDURE GET_NAMECOMPANY4 RETURNS (NAMECOM CHAR(30)) AS DECLARE curs1 CURSOR FOR (Select namecompany from Company where typeproduct = 'pc'); BEGIN OPEN curs1; FETCH NEXT FROM curs1; NAMECOM = curs1.namecompany; SUSPEND; CLOSE curs1; END
error message: You have an error in your SQL syntax: CREATE OR ALTER PROCEDURE GET_NAMECOMPANY4 RETURNS (NAMECOM CHAR(30)) AS DECLARE curs1 CURSOR FOR (Select namecompany from Company where typeproduct = 'pc'); BEGIN OPEN curs1; FETCH NEXT FROM curs1; NAMECOM = curs1.namecompany; SUSPEND; CLOSE curs1; END null

Исправил


Remove travis-ci testing files and change the build badge in the readme.

Fixes https://github.com/elifesciences/elife-pubmed-feed/issues/55.

Closing and going to try once more a test of Alfred's webhook.


Comma splice

The following contains a comma splice.
"Segmenting workloads in a way that differs from the implementation options for management group hierarchy**,** can create a complex policy and access control structure to govern your environment."

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c9da9dea-b71c-1d66-5ed9-b9fa705f1359
Version Independent ID: c9da9dea-b71c-1d66-5ed9-b9fa705f1359
Content: Azure landing zone design principles - Cloud Adoption Framework
Content Source: docs/ready/landing-zone/design-principles.md
Service: cloud-adoption-framework
Sub-service: ready
GitHub Login: @jtracey93
Microsoft Alias: jatracey

https://mseng.visualstudio.com/TechnicalContent/_workitems/edit/2017694

Comma splice removed from line 72

@JanetCThomas -- please review this edit. Thank you.

@19BMG00 -- could you please link to the PR where this edit has been made.

@ckittel - Looking at the history of the doc, he pushed a commit Dec. 31 which fixed the comma splice issue. While I can't find a PR in the repo that he's authored, the live product no longer has a comma. Are we able to consider this issue resolved?

Sounds like it.  @arcesso please re-open with additional details if we miseed anything.
#please-close


Tag all the things with "creator"

I'd like all persistent things like exchanges, queues etc tagged with metadata so we know that it was rabbit-puppy that created it (and what time, maybe some version if we could get a convention around that)

:+1:

This is a good use case. To accomplish this in an un-opinionated way, we should allow the configuration to contain defaults for exchanges/queues/bindings per vhost, see #4. Then, you can put any argument in there that you would like, including 'creator:rabbit-puppy'.

Closed, let's try #4 and see if it's a good way to do this.


Added key bindings to the undo, save and help actions.

The actions are bonded to Using the standard OS key bindings.
Linux / Mac OS
Undo => Ctrl+Z / Command+Z
Save => Ctrl+S / Command+S
Help => F1 / Command+?

I update the commit description.
The help is not useful. Maybe have the key bindings added to the usage help?


No Support for Tapo Cameras

Describe The Bug
I just purchased a Tapo C420 camera and an H200 hub. I've entered my TP-Link account name and password in the plugin and the plugin generates the following log errors
Expected behavior
The plugin will work with my camera.
Logs
homebridge.log.txt
Plugin Config
{
"addresses": [
"<IP_ADDRESS>"
],
"name": "xxx",
"email"<EMAIL_ADDRESS>"password": "xxx",
"platform": "HomebridgeTPLinkTapo"
Plugin Version
homebridge-tp-link-tapo v3.2.2
Homebridge Version
te v1.6.1
Node.js Version
v18.17.1
NPM Version
v18.17.1
Operating System
Debian GNU/Linux 11 (bullseye)

Hello, the camera is not supported and I don't have the means to add support for it at this time, the hub will get a support soon with the tapo button

Thanks for the quick response. Can you elaborate on what you mean regarding the tapo button? TIA.

The devices H100 and S200 will be added to the plugin

Thank you for this info. Looking forward to it.Regards, Jeff Edelheit12518 Chasbarb TerraceOak Hill, VA 20171-2468(703) 758-0241 (h)(703) 626-4605 (c)On Aug 31, 2023, at 7:02 AM, Nicolae-Rares Ailincai @.***> wrote:
The devices H100 and S200 will be added to the plugin
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

As i don't have the device, i can't add support for it


Implement Deploy Parsing Method(s)

To help clean up code in the Signer and as a general nice-to-have it would be great to have robust methods for parsing out human-readable data from a deploy.
Optimally they would:

Identify the type of deploy, i.e. transfer, session call, stored call.
Parse out all the data and return it in a JSON format for easy handling and display on the frontend.
Return useful errors if there is anything invalid with the deploy or internal data.

Done. Closed


memory leaks

It seems to me that nya is leaking if used with multiple ng-view
I was managed to reduce leaks by adding
 $scope.$on('$destroy', function () {
            dropdownMenu.off();
            dropdownToggle.off();
            searchBox.off();
            nyaBsSelectCtrl.off();
            $document.off('click', outClick);

            console.log('destroy called for task nya-bs-select ');
        });

it looks like watchers are not cleaned up at all on $destroy.

Thank you for suggesting, I'll try to fix this in next release


Updated the MkDocs config from the deprecated format

This requires MkDocs >= 0.13.
I left out the comments as the new structure is designed to make the categories clear. Hopefully that is okay.

Thanks for the update Dougal, I didn't know about this until you sent this pull request.
Cheers!

Denis


NewVersion: Fixes & Improvements (e.g. Cost Assessment&Tracking, Azure, +more)

Since the project is no longer officially supported, I created a fork in which I inserted numerous fixes and improvements.
For more info see the repo

Feel free to contribute & Star the repo to ask for faster development :) -> repo

New Features:

[x] Easy configuration + Azure support
[x] Cost tracking using openai-cost-logger
[x] Set cost upperbound and stop the experiment when it is reached
[x] New models and OpenAI API support
[x] Cost assessment (link)
[x] Added the simulation skip-morning-s-14 that starts at ~8am and permits to see actions and interactions earlier.
[x] Added zoom-in/zoom-out using Z/X keys
[x] Powerful automated script for enhanced simulation performance (see repo readme).

Fixes:

[x] Resolves #93
[x] Resolves #61
[x] Resolves #40, Resolves  #44, Resolves #59
[x] Resolves #50
[x] Resolves #150, Resolves #56
[x] Resolves #26
[x] Resolves #122
[x] Resolves #111

Issue #111 fix
I figured this one out. It's just a string parsing issue. The duration variable in line 378 gets messed up because the code earlier in the function is expecting the gpt_response to contain the string "duration in minutes:" but when the error happens the prompt has a string that reads "duration:" only. So the code fails after that because  "in minutes" is not there. I just wrote a quick fix to get it working. Checked that "duration in minutes:" was there and if not I parsed it with just "duration:"
  if "duration in minutes" in i:
    k = [j.strip() for j in i.split("(duration in minutes:")]
  else:
    k = [j.strip() for j in i.split("(duration:")]

Issue #111 fix
I figured this one out. It's just a string parsing issue. The duration variable in line 378 gets messed up because the code earlier in the function is expecting the gpt_response to contain the string "duration in minutes:" but when the error happens the prompt has a string that reads "duration:" only. So the code fails after that because "in minutes" is not there. I just wrote a quick fix to get it working. Checked that "duration in minutes:" was there and if not I parsed it with just "duration:"
  if "duration in minutes" in i:
    k = [j.strip() for j in i.split("(duration in minutes:")]
  else:
    k = [j.strip() for j in i.split("(duration:")]

Thanks, nice catch! I'll try that

Issue #111 fix
I figured this one out. It's just a string parsing issue. The duration variable in line 378 gets messed up because the code earlier in the function is expecting the gpt_response to contain the string "duration in minutes:" but when the error happens the prompt has a string that reads "duration:" only. So the code fails after that because "in minutes" is not there. I just wrote a quick fix to get it working. Checked that "duration in minutes:" was there and if not I parsed it with just "duration:"
  if "duration in minutes" in i:
    k = [j.strip() for j in i.split("(duration in minutes:")]
  else:
    k = [j.strip() for j in i.split("(duration:")]

Thanks, nice catch! I'll try that

There was yet another case where the gpt_response had an entry that did not have a "duration" AT ALL. It just contained the task. So I modified the code a bit more. My fix is SUPER ugly. Hopefully someone will write a cleaner code block than me but here's what I did. Not tested yet:
  if "duration in minutes" in i:
    k = [j.strip() for j in i.split("(duration in minutes:")]
  elif "duration" in i:
    k = [j.strip() for j in i.split("(duration:")]
  else:
    task = i
    duration = 0 #arbitrary value, don't know if 0 minutes will hurt anything
  if "duration" in i:
    task = k[0]
    if task[-1] == ".":
      task = task[:-1]
    duration = int(k[1].split(",")[0].strip())
  cr += [[task, duration]]

Issue #111 fix
I figured this one out. It's just a string parsing issue. The duration variable in line 378 gets messed up because the code earlier in the function is expecting the gpt_response to contain the string "duration in minutes:" but when the error happens the prompt has a string that reads "duration:" only. So the code fails after that because "in minutes" is not there. I just wrote a quick fix to get it working. Checked that "duration in minutes:" was there and if not I parsed it with just "duration:"
  if "duration in minutes" in i:
    k = [j.strip() for j in i.split("(duration in minutes:")]
  else:
    k = [j.strip() for j in i.split("(duration:")]

Thanks, nice catch! I'll try that

There was yet another case where the gpt_response had an entry that did not have a "duration" AT ALL. It just contained the task. So I modified the code a bit more. My fix is SUPER ugly. Hopefully someone will write a cleaner code block than me but here's what I did. Not tested yet:
  if "duration in minutes" in i:
    k = [j.strip() for j in i.split("(duration in minutes:")]
  elif "duration" in i:
    k = [j.strip() for j in i.split("(duration:")]
  else:
    task = i
    duration = 0 #arbitrary value, don't know if 0 minutes will hurt anything
  if "duration" in i:
    task = k[0]
    if task[-1] == ".":
      task = task[:-1]
    duration = int(k[1].split(",")[0].strip())
  cr += [[task, duration]]

I am concerned that it relies entirely on the model answer. If this is the case, we can't be certain that the answer will always be in the requested format.
To address this, I am developing a script that can resume the simulation from the previous step in case of failures. You can find it in my repository under the name run_backend_automatic. I will write a short guide on how to use it in the next few days (it contains several features that can be useful for everyone, e.g. execution w/o UI - save checkpoints every n steps - resume run in case of failures).

Issue #156
Execution time slowwwwww for n25.

Issue #156
Execution time slowwwwww for n25.

Yeah, don't know how to solve it.
You are probably hitting the rate limit, right now is very slow also for me :(
I did a 15k steps run and it took ~41hrs if I remember well (but I have to run another long run in the next days, I'll keep you updated with the exact time).

Hi @drudilorenzo, thanks for your fork!
I run into the same error with your fork as I do with the original repository:
https://github.com/joonspk-research/generative_agents/issues/97#issue-1872403085
It seems others are experiencing this error as well. Any idea how to solve it? I followed your install steps and am running on an M2 MBP.

Hi @drudilorenzo, thanks for your fork!
I run into the same error with your fork as I do with the original repository: #97 (comment)
It seems others are experiencing this error as well. Any idea how to solve it? I followed your install steps and am running on an M2 MBP.

I suspect this is an error having to do with which directory you are executing reverie.py i.e. the backend server from. It has to match up with where the files are located for the simulation. So wherever base_the_ville_isabella_maria_klaus is located then its relative path must be reachable from wherever you ran reverie.py. At least that's what happened to me when I was messing around with using a batch file to run things. I ran the batch file in a different location from the source code and it couldn't fine the simulation files.

@dafrontman Hmmm, thanks for your advice. I did the following:
terminal 1:
cd environment/frontend_server
python manage.py runserver

terminal 2:
cd reverie/backend_server
python reverie.py

Did you run them from different locations?

@dafrontman Hmmm, thanks for your advice. I did the following:
terminal 1:
cd environment/frontend_server
python manage.py runserver

terminal 2:
cd reverie/backend_server
python reverie.py

Did you run them from different locations?

No, those are the right locations, but what I did that caused the error message to come from the server is I tried to automate my run process by putting that stuff in a batch file. When I did it that way, because I ran the batch file from a different directory, I think python saw my execution path as different from "reverie/backend_server" so when it tried to grab the simulation data and it was using relative paths it couldn't find it because I launched from the wrong path.

Hi @drudilorenzo, thanks for your fork!
I run into the same error with your fork as I do with the original repository: #97 (comment)
It seems others are experiencing this error as well. Any idea how to solve it? I followed your install steps and am running on an M2 MBP.

Hi!
Unfortunately, I have never encountered the error you mentioned (I am using Ubuntu and never directly tried the project on MacOS).
Here are a few questions to better understand your setup:

Do you always see the message Please start the backend first or do you see it only when you refresh the page?
Are you using the conda env specified?
Which browser are you using?

The correct procedure should be:
Step 1:
Activate the conda env.
Create all the files required (utils.py in the case of the original repo, open_config.json in my fork).
Step 2:
cd environment/frontend_server
python manage.py runserver

Step 3:
In another terminal:
cd reverie/backend_server
python reverie.py

Step 4:
Open #http://<IP_ADDRESS>:8000/simulator_home

If you haven't done so yet, try the steps above both on the original repo and also on my fork.

Let me know if it works!

Hey, thanks for your reply. Yeah, those are exactly the steps I've done. I also tried Ubuntu from an AWS EC2 instance and got the same result. I've tried Arc browser and standard chrome browser.
I'm able to see map page after starting the backend and first browsing tohttp://<IP_ADDRESS>:8000/simulator_home, but it doesn't show the current time and it doesn't update when I enter a run command. Also when I refresh the page it shows that error, which seems to come from this file: https://github.com/joonspk-research/generative_agents/blob/fe05a71d3e4ed7d10bf68aa4eda6dd995ec070f4/environment/frontend_server/templates/home/error_start_backend.html#L4
Here's what it looks like:

Ah, didn't realize that that page when refreshing is normal!
After waiting a few minutes without touching anything I finally see it moving! I guess I was too impatient 😅
Thanks for your help!

@drudilorenzo I am still facing an issue mentioned in https://github.com/joonspk-research/generative_agents/issues/93
The simulation gets stuck at the Ville:Dorm for Oak Hill College:Klaus Mueller's room:bed
Do you have any suggestions? Thanls

@drudilorenzo I am still facing an issue mentioned in #93 The simulation gets stuck at the Ville:Dorm for Oak Hill College:Klaus Mueller's room:bed Do you have any suggestions? Thanks

How many steps are you running?
Which config file are you using?
Have you tried to wait as suggested above?

hey，when i try to run run_backend sh ，it have some error
Running backend server at: http://<IP_ADDRESS>:8000/simulator_home
Timestamp: 2024-09-12_17-10-08
Traceback (most recent call last):
  File "D:\codebase\generative_agents2\reverie\backend_server\reverie.py", line 37, in <module>
    from persona.persona import *
  File "D:\codebase\generative_agents2\reverie\backend_server\persona\persona.py", line 23, in <module>
    from persona.cognitive_modules.perceive import *
  File "D:\codebase\generative_agents2\reverie\backend_server\persona\cognitive_modules\perceive.py", line 12, in <module>
    from persona.prompt_template.gpt_structure import *
  File "D:\codebase\generative_agents2\reverie\backend_server\persona\prompt_template\gpt_structure.py", line 67, in <module>
    cost_logger = OpenAICostLogger_Singleton(
  File "D:\codebase\generative_agents2\reverie\backend_server\persona\prompt_template\openai_logger_singleton.py", line 16, in __call__
    instance = super().__call__(*args, **kwargs)
  File "D:\codebase\generative_agents2\reverie\backend_server\persona\prompt_template\openai_logger_singleton.py", line 33, in __init__
    self.__cost_logger = OpenAICostLogger(
  File "C:\Users\zhangpeihao\.conda\envs\generative_agents\lib\site-packages\openai_cost_logger\openai_cost_logger.py", line 43, in __init__
    self.__build_log_file()
  File "C:\Users\zhangpeihao\.conda\envs\generative_agents\lib\site-packages\openai_cost_logger\openai_cost_logger.py", line 145, in __build_log_file
    with open(self.filepath, 'w') as file:
OSError: [Errno 22] Invalid argument: 'cost-logs\\simulacra-test_2024-09-12_17:10:09.json'
imported openai-cost-logger

the openai_config.json need api_base  environment

Thanks for your work, @drudilorenzo! My team and I have been iterating on your repo on our own fork, and have further improved this codebase based on your work.
Here is the PR which describes the updates we've made, in case anyone else interested too: https://github.com/drudilorenzo/generative_agents/pull/8


client shouldn't bother escaping values

I found particularly hard to understand why linebreaks in values are escaped by node-memcached, since this prevents other (unaware) clients from effortlessly reading values encoded in such a way.
A blame shows that behavior has been introduced in commit https://github.com/3rd-Eden/node-memcached/commit/e1faeebabb789594ee0d3268fe39efea5949c69c in order to fix https://github.com/3rd-Eden/node-memcached/issues/59, but IMHO this is somewhat a dirty hack rather than a clean solution.

This issue still exists.


When updating to version 2.0 the library disappear.

I'm also using xcode 8 for the first time. I'll try to solve this by myself, but just so you know there is maybe an issue on your side. As you can see, there is just LICENSE and README file in the folder.
UPDATE
I created an empty xcode project and the issue remain. I use the latest cocoapods pre-release version (https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.rc.2) that is recommended for xcode 8.
~~This guy claims to have found a solution for pods that use swift 3.0.
https://blog.sabintsev.com/submitting-swift-3-libraries-to-the-cocoapods-trunk-1-1-0-rc-2-2d07c22c9754#.ditdqbkd7~~ (I see you already make this)
UPDATE 1
And I case of having both xcode 7 and xcode 8 installed on a system you should run this:

sudo xcode-select -switch /pathTo/Xcode8.app

to make the xcode 8 the default app for generating pod. Here's the post about<EMAIL_ADDRESS>UPDATE 2
Tried your example file from git and and it also fails to run. Saying: No such module 'iOSDFULibrary'.

Ouch, somehow managed to delete the sources in the podspec, will get that fixed ASAP!

@klemenzagar91  Sorry for the delays, lots of configs, can you verify that it works now ? 2.0.1 wasjust released to fix this issue

aaaa it works :)
thank you

That's great to hear!, thanks a lot for your feedback and sorry for the delays!


Document exit codes

This small PR slightly improve the internal documentation for our exit codes, now that we are adding exit codes to the user documentation.

Codecov Report

Merging #617 (0de08de) into main (583e25a) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main     #617   +/-   ##
=======================================
  Coverage   93.85%   93.85%
=======================================
  Files         104      104
  Lines        4849     4849
=======================================
  Hits         4551     4551
  Misses        298      298

Flag
Coverage Δ

unittests
93.85% <ø> (ø)

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

Impacted Files
Coverage Δ

ggshield/core/errors.py
89.85% <ø> (ø)


♻ Use different error message on v1 redirects

Selected Reviewer: @hramezani

please review

Do we have a test for it? Or, Don't we need a test for it?


Archive

Hi
I think it would be very beneficial if there is a way to archive the current todo in the same folder(or under a subfolder) and empty it afterwards so the todo.txt starts clean.

Hi @gerroon. I am not sure if I understand this requirement, could you please be more specific?
Also did you see that there is an archiving function that moves completed todos into a done.txt file?

Hi
I was more thinking like dated done.txt (so has versioning based on months ) maybe.
I am not seeing done.txt option myself here.
thanks

Hello @gerroon, Maybe I do not understand what you are asking.
Does the Archive feature in Setting meet your needs?

@gerroon. I'm sorry but I think without any clear and detailed description of the idea, we can only do guesswork.

I have not used the done.txt method but I assume it will become a one giant done.txt file after couple years of using this method. What I am asking is maybe more like done.txt but done_022021.txt (feb_2021) so that one can distinguish the dones per month. Splitting a giant done.txt is harder then a merging bunch of them later.
thanks

Ok, now I understand. I think it's not a bad idea, yet a very specific use case only few users would actually make use of. Also it raises quite some conceptual questions and therefor would consume a significant amount of developing hours.
If this is a common use case for you, you can workaround this by making use of the archiving function, which moves the completed todos of your "todo.txt" to a "todo_done.txt" file and after this happens, you just rename the "todo_done.txt" file each month one time to something like "2021_03_todo_done.txt".

Excuse me for interjecting again. I accomplish something like @gerroon is requesting by opening the done.txt file then pressing Ctrl-F and enter a search term like "x 2021-02".  This displays all the done tasks for February 2021.

Simple but effective

@gerroon, I hope the workaround @velardevines suggested works for you. As for the feature I think I won't invest any effort in it and therefor will close this feature request.
But sleek is open source and if you have skills in JavaScript, you can work on this feature and contribute it to the project.

Has this feature disappeared? I cannot find the archive button anymore in settings.

Shortcut key for Archive feature is A.
On 8/30/21 9:33 AM, Aleks Fadini wrote:

Has this feature disappeared? I cannot find the archive button anymore
in settings.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ransome1/sleek/issues/65#issuecomment-908443928,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADHPOGSJCXXOIWBAOJNJKNLT7OQGJANCNFSM4ZLB7NQA.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@velardevines thanks!
@aleksfadini also if you show completed todos there is a button in each completed item, that will trigger the archiving process. It's also in the main native menu that shows when you press the Alt key.


sgadmin kill Elasticsearch&

WARNING: JAVA_HOME not set, will use /bin/java
Search Guard Admin v6
Will connect to <IP_ADDRESS>:9300 ... done
Connected as CN=kadmin,OU=client,O=client,L=Test,C=DE
Contacting elasticsearch cluster 'elasticsearch' and wait for YELLOW clusterstate ...
Clustername: ESPROD
Clusterstate: GREEN
Number of nodes: 14
Number of data nodes: 10
searchguard index already exists, so we do not need to create one.
Populate config from /ES_HOME/elasticsearch-6.1.2/plugins/search-guard-6/sgconfig
Will update 'sg/config' with ../sgconfig/sg_config.yml
SUCC: Configuration for 'config' created or updated
Will update 'sg/roles' with ../sgconfig/sg_roles.yml
SUCC: Configuration for 'roles' created or updated
Will update 'sg/rolesmapping' with ../sgconfig/sg_roles_mapping.yml
SUCC: Configuration for 'rolesmapping' created or updated
Will update 'sg/internalusers' with ../sgconfig/sg_internal_users.yml
SUCC: Configuration for 'internalusers' created or updated
Will update 'sg/actiongroups' with ../sgconfig/sg_action_groups.yml
SUCC: Configuration for 'actiongroups' created or updated
Done with success
[1]+  Killed                  ./elasticsearch  (wd: /ES_HOME/elasticsearch-6.1.2/bin)

Is this reproducible? If yes please post whats in the logs of the killed ES node.
Pls provide also the following information:

Elasticsearch and SG version
Operating system details
JVM version and vendor
Installed tcnative + openssl version (if any)


Driver Breaks

Hello,
For Google.OrTools.7.5.7466 in .Net, using Routing
I'm checking Breaks using IntervalVar. Aiming for one break per vehicle, that occurs anytime within a certain time-window.
With a small set (1 vehicle, 2 nodes: P + D) adding the breaks does not seem to change the solution times at all. I do get a solution.
I used the newer version of the API:
SetBreakIntervalsOfVehicle(
    std::vector<IntervalVar*> breaks,
    int vehicle,
    int pre_travel_evaluator,
    int post_travel_evaluator);

To simplify I set the last two parameters to -1 (which should make these return 0 for pre and post times).
Anyone successful with implementing such case?  (i.e. getting a correct and consistent solution)
Can this API work, are we forced to use wacky fake-nodes?
p.s. Posted also in GitHub
Thanks

did you try master ? v7.5 is quite old and IIRC there was some dev on break recently...

Changed to v7.8 and used this:
break_intervals[vehicle] = model.solver().MakeFixedDurationIntervalVar(0, end_time, 10000, false, "vehicle " + vehicle.ToString());
time_dimension.SetBreakIntervalsOfVehicle(break_intervals, vehicle, -1,-1);
With the SetBreakIntervalsOfVehicle condition solver seems to push the visits to be as late as possible, i.e. the solution always visits the end point at the latest possibe (end time = 60000). This occurs even when setting IntervalVar Duration=0.
However, commenting-out just this condition pulls the visits to be as early as possible and the end point is visited early.
The total time remains the same, the differences in visit times are the same ....

Probing IntervalVar:
long startvalue = solution.StartValue(brk_var);
long endvalue = solution.EndValue(brk_var);
It is performed and gets start and end values assigned to it, but only pushes the visit times (i.e. no effect on time between node and total solution time )

I would like to know whether a basic one-break with one vehicle case works using  time_dimension.SetBreakIntervalsOfVehicle
Any experience ? I did not yet mange to get this to work ... (v7.5 or v7.8)

Is there a way for the vehicle break to start certain T time-units after the vehicle's start time, which is
IntVar start = time_dimension.CumulVar(routing.Start(v))
By setting the interval var min_start and max_start parameters, using "start":
break_intervals[vehicle] = model.solver().MakeFixedDurationIntervalVar(start, start+T, 10000, false, "vehicle " + vehicle.ToString());
Or by setting a proper contstaint:
model.solver().MakeIntervalVarRelation(break_interval, start) ?
model.solver().Add(break_interval.StartMin() > start) ?
break_interval.SetStartMin(start) ?

Any ideas?

Is this a feature to be supported? or a possible to trick to support on 7.X ?

so using a duration dimension like explaining in another thread won't make it ?

Should work as long as no is added Slack in the time-dimension.
BTW: I saw Laurent's earlier request. Should we move all discussion to GitHub?

move: If you want to. I will keep both systems in parallel to
understand trends and preferences.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le ven. 4 déc. 2020 à 15:30, GMan<EMAIL_ADDRESS>a écrit :

Should work as long as no is added Slack in the time-dimension.
BTW: I saw Laurent's earlier request. Should we move all discussion to
GitHub?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2193#issuecomment-738814397,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3ORBZYSEQSNPJXZX3LSTDW6PANCNFSM4SIL4VHQ
.

Since break is a hot and specific topic, I like github issue since you can have several labels while discussion seems to be one category only. 😞
e.g.: https://github.com/google/or-tools/labels/routing_break it's nice to see all related routing break issues/topics


⚠ Mobitopup has degraded performance

In df62524, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 3736 ms

Resolved: Mobitopup performance has improved in 963bd97 after 23 minutes.


Fix syncing of unread articles with Feedly when…

…adding new or existing feeds to folders. #1289 #1332
This PR:

Renames FeedlyAddFeedOperation to FeedlyAddFeedToCollectionOperation to disambiguate the higher level operations from the more fundamental ones.
Removes FeedlyAddFeedRequest in favour for two separate operations: FeedlyAddExistingFeedOperation and FeedlyAddExistingFeedOperation.
FeedlyAddExistingFeedOperation ensures all unread statuses are fetched before ingesting article content.
Modifies FeedlyAccountDelegate to use these operations.

Also uses the new downloadProgress property on FeedlyOperation.

@vincode-io If this PR addresses the referenced issues you created, could you please close them? Thanks!


i Build IDASkins For Ida Pro 7.0 for Mac OS

@athre0z
i hope it helps 😎  , you can use it on releases ;)
https://goo.gl/NNsqvF

Thanks mate! We generally have a policy of not releasing binaries we didn't build ourselves, but I'll leave this one open until I motivated our Mac IDA guy to build official ones.

Closing. Plugin has been rewritten in Python — no more platform specific binary fiddling!


Migration failing if project already have migration setup using typeorm

Description
We are already using typeorm for migration, so getting following issue while using the package
(node:8882) UnhandledPromiseRejectionWarning: Error: Migration failed. Reason: Hashes don't match for migrations '0_create-migrations-table.sql,1-init.sql,2-add-db-functions-agg.sql,3-add-db-functions-ind.sql,4-add-db-functions-sessions.sql,5-hotfix-update-constraints.sql'.
This means that the scripts have changed since it was applied.
at /Users/arunrajkumar/Documents/code/ATOACore/node_modules/postgres-migrations/dist/migrate.js:100:27
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at /Users/arunrajkumar/Documents/code/ATOACore/node_modules/postgres-migrations/dist/with-lock.js:25:28
at /Users/arunrajkumar/Documents/code/ATOACore/node_modules/postgres-migrations/dist/with-connection.js:16:28
at applyMigrations (/Users/arunrajkumar/Documents/code/ATOACore/node_modules/@acpr/rate-limit-postgresql/dist/index.cjs:78:3)
(Use node --trace-warnings ... to show where the warning was created)
(node:8882) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:8882) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Library version
1.3.1
Node version
14.9.2
Typescript version (if you are using it)
4.5.5
Module system
ESM

https://github.com/express-rate-limit/rate-limit-postgresql/pull/14 , handle the migration in your base project


Panic on unsupported operation: automatic sidecar injection

Current Behavior
Panicked when "Automatic sidecar injection" operation was run from Meshery UI.
➜  meshery-app-mesh git:(master) make run
DEBUG=true go run main.go
INFO[2021-10-18T18:19:30-05:00] Adaptor Listening at port: 10005              app=app-mesh-adapter
INFO[2021-10-18T18:22:11-05:00] Creating instance                             app=app-mesh-adapter
INFO[2021-10-18T18:22:11-05:00] Listing Operations                            app=app-mesh-adapter
INFO[2021-10-18T18:22:11-05:00] Creating instance                             app=app-mesh-adapter
INFO[2021-10-18T18:22:17-05:00] Creating instance                             app=app-mesh-adapter
INFO[2021-10-18T18:23:03-05:00] Creating instance                             app=app-mesh-adapter
INFO[2021-10-18T18:23:03-05:00] Applying operation label-namespace            app=app-mesh-adapter
panic: interface conversion: error is *errors.StatusError, not *errors.Error

goroutine 33 [running]:
github.com/layer5io/meshkit/errors.GetCode(0x5fbd600, 0xc000796a00, 0x0, 0x0)
	/Users/lee/code/go/pkg/mod/github.com/layer5io/meshkit@v0.2.31/errors/errors.go:90 +0xd1
github.com/layer5io/meshkit/logger.(*Logger).Error(0xc000134088, 0x5fbd600, 0xc000796a00)
	/Users/lee/code/go/pkg/mod/github.com/layer5io/meshkit@v0.2.31/logger/logger.go:57 +0xaa
github.com/layer5io/meshery-adapter-library/adapter.(*Adapter).StreamErr(...)
	/Users/lee/code/go/pkg/mod/github.com/layer5io/meshery-adapter-library@v0.1.24/adapter/stream.go:25
github.com/layer5io/meshery-app-mesh/app_mesh.(*AppMesh).ApplyOperation.func3(0xc0005a6060, 0xf, 0xc0005a6070, 0xe, 0xc0005a6058, 0x8, 0x0, 0x0, 0x0, 0xc0005dc030, ...)
	/Users/lee/code/meshery-app-mesh/app_mesh/app_mesh.go:94 +0x199
created by github.com/layer5io/meshery-app-mesh/app_mesh.(*AppMesh).ApplyOperation
	/Users/lee/code/meshery-app-mesh/app_mesh/app_mesh.go:85 +0x565
exit status 2
make: *** [run] Error 1

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@Shreyas220 @DelusionalOptimist fyi

@Shreyas220 @DelusionalOptimist fyi

faced this problem in istio as well, for not using meshkit style errors


Debug strings for counterexamples

Counterexamples get printed using toDebugString. Thus:

If the type conforms to DebugPrintable, debugDescription will be evaluated.
If the type conforms to Printable, description will be evaluated (as it was before).
Otherwise, Swift will construct a default string which will probably not be very helpful.

This allows counterexamples to be printed with more detail than regular descriptions might provide.

:+1:

:heart:

:bow:


Fixed getting filename from search

Description
This PR includes the following proposed change(s):

Updated GetFilesBySearchAsync method to get filename directly from the FileSearchResult property instead of searching for internal metadata key.

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Does the change impact or break the Docker build?

[ ] Yes
[x] No

If Yes: Has Docker been updated accordingly?

[ ] Yes
[ ] No

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes

My PR addresses this.

My PR addresses this.

But my PR came in before your PR 😃. Thanks. I'm closing this one then.


RenameVariables handling of default value with environment variables

Robotidy, version 4.11.0 with RenameVariables tries to do the following change of the default value of an environment variable:
-  Set Test Variable    ${MY_VAR}    %{MY_ENV_VAR=None}
+  Set Test Variable    ${MY_VAR}    %{MY_ENV_VAR=_None}

Manually setting the default value to uppercase or lowercase also satisfies Robotidy:RenameVariables.
-  Set Test Variable    ${MY_VAR}    %{MY_ENV_VAR=None}
+  Set Test Variable    ${MY_VAR}    %{MY_ENV_VAR=NONE}

I was under the impression that Robot Framework was "None/NONE/none"-insensitive.
Robotidy should probably don't change the default value.

Agreed, robotidy simply do not read default value in RenameVariables (it is parsed as part of the name). I will fix it so default value is ignored.

also handled variables in defaults:

Log    %{MY_ENV=default with ${global}
Log    %{MY_ENV=${local}

which should be converted to
Log    %{MY_ENV=default with ${GLOBAL}
Log    %{MY_ENV=${local}


Initial translation for Portuguese

This PR brings initial human-translated strings for the Portuguese language for the Tokimei Bluesky client.
For now, the translation was made directly based on the content of the pt.json file.
Some updates will be required in the future, especially one related to the design and layout, as Portuguese is a very verbose language with long terms and words compared to English.

Thank you for your contribution!!
We will check back later on the UI and make adjustments if they are needed.


Google oauth2 picture url

Describe the issue
I was previously using the jwt and auth plugins for Caddy v1 and they eventually worked really well, when I got the configuration right in the end. One of the things I got through the authorization framework in v1 was an URL to the user's profile picture as part of the jwt. Now when using this and auth portal, I'm not getting that information. Is there a configuration part somewhere I've missed to get this information through?
Configuration
{
  debug
  order jwt first
}

(encoding) {
  encode gzip zstd
}

(dns) {
  tls {
    dns cloudflare xxx
  }
}

(primary-auth) {
  jwt {
    primary yes
    auth_url https://auth.xxx.xxx/oauth2/google
    trusted_tokens {
      static_secret {
        token_name access_token
        token_secret xxx
      }
    }
    allow roles superuser
  }
}

(auth) {
  jwt {
    auth_url https://auth.xxx.xxx/oauth2/google
    trusted_tokens {
      static_secret {
        token_name access_token
        token_secret xxx
      }
    }
    allow roles superuser
  }
}

auth.xxx.xxx {
  import dns
  import encoding
  route {
    auth_portal {
      path /
      cookie_domain xxx.xxx
      backends {
        google_oauth2_backend {
          method oauth2
          realm google
          provider google
          client_id xxx
          client_secret xxx
          scopes email openid
          user<EMAIL_ADDRESS>regex add role superuser
        }
      }
      jwt {
        token_name access_token
        token_secret xxx
      }
      ui {
        links {
          "Plex" https://plex.xxx.xxx
        }
      }
    }
  }

  route /version* {
    respond * "1.0.0" 200
  }

  route {
    redir https://{hostport} 302
  }
}

plex.xxx.xxx {
  import auth
  import dns
  import encoding
  reverse_proxy http://plex.xxx:32400
}

proxy.xxx.xxx {
  import primary-auth
  import dns
  import encoding
  file_server
  root * <path>
}

Version Information
admin.api.load v2.3.0
admin.api.metrics v2.3.0
caddy.adapters.caddyfile v2.3.0
caddy.listeners.tls v2.3.0
caddy.logging.encoders.console v2.3.0
caddy.logging.encoders.filter v2.3.0
caddy.logging.encoders.filter.delete v2.3.0
caddy.logging.encoders.filter.ip_mask v2.3.0
caddy.logging.encoders.json v2.3.0
caddy.logging.encoders.logfmt v2.3.0
caddy.logging.encoders.single_field v2.3.0
caddy.logging.writers.discard v2.3.0
caddy.logging.writers.file v2.3.0
caddy.logging.writers.net v2.3.0
caddy.logging.writers.stderr v2.3.0
caddy.logging.writers.stdout v2.3.0
caddy.storage.file_system v2.3.0
dns.providers.cloudflare v0.0.0-20210105070211-eda8e5aa2223
http v2.3.0
http.authentication.hashes.bcrypt v2.3.0
http.authentication.hashes.scrypt v2.3.0
http.authentication.providers.http_basic v2.3.0
http.authentication.providers.jwt v1.2.3
http.encoders.gzip v2.3.0
http.encoders.zstd v2.3.0
http.handlers.acme_server v2.3.0
http.handlers.auth_portal v1.3.10
http.handlers.authentication v2.3.0
http.handlers.encode v2.3.0
http.handlers.error v2.3.0
http.handlers.file_server v2.3.0
http.handlers.headers v2.3.0
http.handlers.map v2.3.0
http.handlers.metrics v2.3.0
http.handlers.push v2.3.0
http.handlers.request_body v2.3.0
http.handlers.reverse_proxy v2.3.0
http.handlers.rewrite v2.3.0
http.handlers.static_response v2.3.0
http.handlers.subroute v2.3.0
http.handlers.templates v2.3.0
http.handlers.vars v2.3.0
http.matchers.expression v2.3.0
http.matchers.file v2.3.0
http.matchers.header v2.3.0
http.matchers.header_regexp v2.3.0
http.matchers.host v2.3.0
http.matchers.method v2.3.0
http.matchers.not v2.3.0
http.matchers.path v2.3.0
http.matchers.path_regexp v2.3.0
http.matchers.protocol v2.3.0
http.matchers.query v2.3.0
http.matchers.remote_ip v2.3.0
http.matchers.vars v2.3.0
http.matchers.vars_regexp v2.3.0
http.reverse_proxy.selection_policies.cookie v2.3.0
http.reverse_proxy.selection_policies.first v2.3.0
http.reverse_proxy.selection_policies.header v2.3.0
http.reverse_proxy.selection_policies.ip_hash v2.3.0
http.reverse_proxy.selection_policies.least_conn v2.3.0
http.reverse_proxy.selection_policies.random v2.3.0
http.reverse_proxy.selection_policies.random_choose v2.3.0
http.reverse_proxy.selection_policies.round_robin v2.3.0
http.reverse_proxy.selection_policies.uri_hash v2.3.0
http.reverse_proxy.transport.fastcgi v2.3.0
http.reverse_proxy.transport.http v2.3.0
pki v2.3.0
tls v2.3.0
tls.certificates.automate v2.3.0
tls.certificates.load_files v2.3.0
tls.certificates.load_folders v2.3.0
tls.certificates.load_pem v2.3.0
tls.handshake_match.sni v2.3.0
tls.issuance.acme v2.3.0
tls.issuance.internal v2.3.0
tls.issuance.zerossl v2.3.0
tls.stek.distributed v2.3.0
tls.stek.standard v2.3.0

Expected behavior
I want the jwt to contain the picture url again.

One of the things I got through the authorization framework in v1 was an URL to the user's profile picture as part of the jwt. Now when using this and auth portal, I'm not getting that information. Is there a configuration part somewhere I've missed to get this information through?

@adlibdalom , thank you for opening the issue. This feature is not a part of authorization plugin.

I want the jwt to contain the picture url again.

Are you asking for the picture URL to be a claim within JWT token issued by the portal plugin?

One of the things I got through the authorization framework in v1 was an URL to the user's profile picture as part of the jwt. Now when using this and auth portal, I'm not getting that information. Is there a configuration part somewhere I've missed to get this information through?

@adlibdalom , thank you for opening the issue. This feature is not a part of authorization plugin.

I want the jwt to contain the picture url again.

Are you asking for the picture URL to be a claim within JWT token issued by the portal plugin?

Are you asking for the picture URL to be a claim within JWT token issued by the portal plugin?

Ah, yes, I’m so new to all this, so you’re most likely right. Sorry for the confusion.
I remember parsing the cookie in JavaScript to extract the profile picture url to display the logged on user’s picture to them, which looked kind of neat.

Are you asking for the picture URL to be a claim within JWT token issued by the portal plugin?

Ah, yes, I’m so new to all this, so you’re most likely right. Sorry for the confusion.
I remember parsing the cookie in JavaScript to extract the profile picture url to display the logged on user’s picture to them, which looked kind of neat.

@adlibdalom , what you can do is go to “/whoami” endpoint in the “portal” plugin. You can request JSON output and it will return the information necessary to create a user card.

@adlibdalom , what you can do is go to “/whoami” endpoint in the “portal” plugin. You can request JSON output and it will return the information necessary to create a user card.

It does not support avatar yet, but your javascript could pull the image from Gravatar.

It does not support avatar yet, but your javascript could pull the image from Gravatar.

Yeah, I get that, but the jwt from the v1 version got a ‘picture’ claim with an URL, and with the new one it seems to be missing, so I think there’s something different with the claims.
https://github.com/tarent/loginsrv/blob/7a8566d795ccd0337dbd35078817f06ae5edccb1/model/user_info.go#L10 indicates this somewhat with the UserInfo object.
Are you saying all this info is available somewhere already? Because when I’m looking at /whoami I don’t see this info.
Sorry if I’m not explaining in a way that’s comprehensible. 😕

Yeah, I get that, but the jwt from the v1 version got a ‘picture’ claim with an URL, and with the new one it seems to be missing, so I think there’s something different with the claims.
https://github.com/tarent/loginsrv/blob/7a8566d795ccd0337dbd35078817f06ae5edccb1/model/user_info.go#L10 indicates this somewhat with the UserInfo object.
Are you saying all this info is available somewhere already? Because when I’m looking at /whoami I don’t see this info.
Sorry if I’m not explaining in a way that’s comprehensible. 😕

Hello again.
https://developers.google.com/identity/protocols/oauth2/openid-connect#discovery points to picture within the claims_supported section in the code, so what I can't seem to figure out is how to have that claim be ”included” in the resulting jwt cookie, as it previously was with the loginsrv/caddy1 solution I employed.

Hello again.
https://developers.google.com/identity/protocols/oauth2/openid-connect#discovery points to picture within the claims_supported section in the code, so what I can't seem to figure out is how to have that claim be ”included” in the resulting jwt cookie, as it previously was with the loginsrv/caddy1 solution I employed.

And hello again … 😛
My very basic knowledge of programming in general, and Go in particular, would imagine that this section with the claims part could be changed to include a picture claim on a google backend, but I might be way off.

And hello again … 😛
My very basic knowledge of programming in general, and Go in particular, would imagine that this section with the claims part could be changed to include a picture claim on a google backend, but I might be way off.

My very basic knowledge of programming in general, and Go in particular, would imagine that this section with the claims part could be changed to include a picture claim on a google backend, but I might be way off.

@adlibdalom , I understand the ask and still thinking how I can get it to you. The difficulty is to fit this particular ask into a "big picture" of all other providers and plugins.

would imagine that this section with the claims part could be changed

Yes, picture is part of the standard claims: https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims

My very basic knowledge of programming in general, and Go in particular, would imagine that this section with the claims part could be changed to include a picture claim on a google backend, but I might be way off.

@adlibdalom , I understand the ask and still thinking how I can get it to you. The difficulty is to fit this particular ask into a "big picture" of all other providers and plugins.

would imagine that this section with the claims part could be changed

Yes, picture is part of the standard claims: https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims

@adlibdalom , another question. What is the issuer of your JWT tokens? Do you use caddy-auth-portal?

@adlibdalom , another question. What is the issuer of your JWT tokens? Do you use caddy-auth-portal?

@adlibdalom , also, what application component reads the avatar URL? javascript, middleware, etc. Any screenshots?

@adlibdalom , also, what application component reads the avatar URL? javascript, middleware, etc. Any screenshots?

@adlibdalom , another question. What is the issuer of your JWT tokens? Do you use caddy-auth-portal?

Yeah, I'm using caddy-auth-portal.

@adlibdalom , also, what application component reads the avatar URL? javascript, middleware, etc. Any screenshots?

I'm using the caddy directive templates and some javascript code to set a variable with the jwt-info which I then parse and ”apply”.
<script>
    var access_token = "{{.Cookie "access_token"}}";
</script>

$(document).ready(function(){
    var userinfo = JSON.parse(atob(access_token.split('.')[1]));
    document.querySelectorAll('.name').forEach(
        el => { el.innerHTML = userinfo.name});
    document.querySelectorAll('.email').forEach(
        el => { el.innerHTML = userinfo.email});
    document.getElementById('picture').src = userinfo.picture;
...

@adlibdalom , I am adding the parsing of picture in this plugin. and will make it available in portal plugin too.

@adlibdalom , I am implementing the change for the picture. You would need to set scope as scopes openid email profile (the way you had it would not work). Will update the issue shortly.

Will update the issue with the new portal version today.

@adlibdalom , the picture is available in https://github.com/greenpau/caddy-auth-portal/releases/tag/v1.4.4

Nice, I just tried it and it worked straight out of the box after rebuilding with the new version, marvellous!
Thanks a bunch!


AudioServer: Remove redundant nullptr check before delete

Remove redundant nullptr check before delete. The delete keyword already checks if the pointer is null under the hood, so this check is performed two times.

Thanks!


Question: how to track path length during search?

This is a user question, and please let me know if there's a better place to ask this.
I'm using the bfs function, and I'd like to prune some of the next states based on how many steps we've taken. Is that possible? I tried bfsM with a simple state monad holding an integer, which I bumped every next call, but this gives me (I think) the number of states explored, not the number of states in the current path.
If this is not currently possible, would that be a useful addition to the package? Since the algorithm keeps track of the path internally, it shouldn't be hard to expose it (and, by extension, any feature of it, like the length) to the callbacks (probably, makes sense for next but not for final though).
The motivation is the following: I run bfs from several initial points in the space and want to find out which one of the initials gives me the shortest path. If there's a lot of initials (relative to the size of space) and/or they are close to each other, I'll keep observing the same states during various bfs's. The idea is that I memoize the shortest paths for previously processed initials, and during next bfss I can prune some states if the steps I took already plus the shortest path from that state is worse than the current record.

All right, I found a way to track depth: instead of an integer, I use  a map where I'm adding newly discovered nodes with depth of the current incremented by one.
And maybe extending the API as I suggest is tricky because it would expose the internals too much.

Perfect, that sounds like exactly what I was going to recommend.
I wonder if it is possible to do this all in a single BFS call (with no memoization), by making your state somehow represent the BFS progress from all of the initial points. I.e., the first "round" of BFS would represent the initial points, the second "round" would represent all points within one step of the initial points, etc. The bookkeeping might be pretty messy, so your way is probably cleaner, but it's interesting to think about.

Yes, interesting question. On the other hand, when I solved the task I was solving (it's AOC 2022: Day 12, btw), I learned that there was a better way: instead of running several bfs' to one final state, it's easier to run one bfs from that final state and see which of the initials is reached first. Of course, this hack only works because there's only one final state. In general, the question of how to run from several initials is a valid one.


Add support for EnableStopPropagation and EnablePreventDefault.

For our current world Blazor both of these properties are always true. However, for other non-web Blazor scenarios the EventHandler attributes at that layer will turn off these features because they're specific to web.

#14517

🆙 📅

Spoke to @NTaylorMullen offline. We can get this in as is, but he's going to file an issue to add some E2E tests for this.


New user/add hooroo

Love your work, team!!!
Added bonus: Remove executable permission on one of existing user image file.

Hi @aaronang, I have adjusted the aspect ratio to remove those white spaces.

@tancnle thanks for the PR!

Wait, shoudn't the SVG have a viewbox of 500x200?

@aaronang it's fine.


Lokomotive component azure-arc-onboarding

This PR adds a new Lokomotive component azure-arc-lokomotive for onboarding and removing a Lokomotive cluster from Azure Arc.
To test:
follow the configuration reference documentation for the component.
component azure-arc-lokomotive {
  application_client_id=""
  tenant_id=""
  application_password=""
  resource_group=""
  cluster_name=""
}

lokoctl component apply azure-arc-onboarding

Why azure-arc-lokomotive and not azure-arc. We know it's part of Lokomotive :)

Why azure-arc-lokomotive and not azure-arc? We know it's part of Lokomotive :)

https://github.com/kinvolk/lokomotive/pull/1473#discussion_r649713690

@invidian @surajssd
Added a cleanup section which was forgotten and I have addressed your comments. PTAL.


Added update to Ionic 2 2017

Updated the Ionic 2 article to use the latest templates for Visual Studio 2017

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


fix(deploy): Github Actions out-of-space errors

#44  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


[chore] Add more granular dead_code annotations

Preparing for a significant refactor of this module.

Current dependencies on/for this PR:

master

PR #30

PR #31   (this PR)

This comment was auto-generated by Graphite.


Misleading error message for enabling the records feature

I was trying to use the records feature in Dart 2.19.4. The error message asked me to specify the minimum SDK version, which I already did.
This requires the 'records' language feature to be enabled.
Try updating your pubspec.yaml to set the minimum SDK constraint to 2.19.0 or higher, and running 'pub get'.dart(experiment_not_enabled)

It turned out I also need to add the following lines to the analysis_options.yaml file to enable the feature:
analyzer:
  enable-experiment:
    - records

It would helpful if the error message pointed me to the right direction.

It helped me with the old version of flutter (3.7.12)!


update contributing.md

Hi! I would like to add the following in contributing.md
Add the following -
1.Difference between GIT and GITHUB
2.How to clone,fork repository
3.How to create a branch and then use git push to push to repo
4.Create a PR
5.Squash commits in a single issue into one
6, Updating the forked and local repo as the updations are made in the upstream
I would lie to work on this as a part of GSSOC'21

@khareyash05 We already have that covered in the guide :)


Properly restore PublishedContent and TemplateAlias after processing fails

Fixes issue #16

Thanks for the fix @hakon-knowit, this one was simple to review so accepting straight away. Should be on NuGet in a few minutes.


fetching lab 4

This pull request consists of only merge commits, and doesn't have any changes. Closing.


track me

please

also if you don't know already somehow my scratch account is @CST1229

ok
I should watch this repo

done


ModuleNotFoundError: No module named 'lyric'

Search before asking

[X] I had searched in the issues and found no similar issues.

Operating system information
Linux
Python version information

=3.11

DB-GPT version
main
Related scenes

[X] Chat Data
[ ] Chat Excel
[ ] Chat DB
[ ] Chat Knowledge
[ ] Model Management
[ ] Dashboard
[ ] Plugins

Installation Information

[X] Installation From Source

[ ] Docker Installation

[ ] Docker Compose Installation

[ ] Cluster Installation

[ ] AutoDL Image

[ ] Other

Device information
device :GPU
Models information
MODEL:glm-4-chat-9b
What happened
lyric cannot pip in python3
What you expected to happen
how to pip lyric
How to reproduce
no
Additional context
lyric cannot pip in python3
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

try:
pip install -e ".[code]"

pip install lyric-py


[SP-5637] Fixed issue with creating report using streaming HTML outpu…

…t and updated Copyright data
This commit is a cherry-pick from master 330004bf6

:white_check_mark: Build finished in 28m 1s
Build command:
mvn clean verify -B -e -Daudit -amd -pl engine

:ok_hand: All tests passed!
Tests run: 3654, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message

:white_check_mark: Build finished in 23m 44s
Build command:
mvn clean verify -B -e -Daudit -amd -pl engine

:ok_hand: All tests passed!
Tests run: 3654, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message


SSE with PMK/CMK for Ultra disk

[Enter feedback here]
Hello team,
according to the Microsoft internal discussion, it seems Azure SSE with PMK/CMK supports Ultra disks. would you team check it and update this page of Azure docs (https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disk-encryption#restrictions-1)?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 143bdfce-bcca-f901-c996-e22642a37561
Version Independent ID: 384e5861-97da-a89a-39b2-48e1f992ab61
Content: Server-side encryption of Azure Managed Disks - Azure CLI - Azure Linux Virtual Machines
Content Source: articles/virtual-machines/linux/disk-encryption.md
Service: virtual-machines-linux
Sub-service: disks
GitHub Login: @roygara
Microsoft Alias: rogarana

After I discuss with the internal team, I understand the difference between my understanding and what Azure docs says. (Thus, it doesn't have to be corrected!) Thank you.

After I discuss with the internal team, I understand the difference between my understanding and what Azure docs says. (Thus, it doesn't have to be corrected!) Thank you.


cnn_segmentation_test failure

The cnn_segmentation_test in perception module  reports the following issue:
Failure. Expected : out_objects.size() which is 13 to be equal to 15.
It seems to indicate that the CNN network even cannot work well on the simple test case.
By the way, this test program triggers a segmentation fault when exits.

Should have been fixed in master HEAD.


Clean up duplicate code

Resolves #30928.
It could technically remove the null check since the current js API also does a null check and thus doesnt care if called with no parameter or null parameter, but preserved to maintain API.

[x] You've read the Contributor Guide and Code of Conduct.
[x] You've included unit or integration tests for your change, where applicable.
[x] You've included inline docs for your change, where applicable.
[x] There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

PR Title
Summary of the changes (Less than 80 chars)
PR Description
Detail 1
Detail 2
Addresses #bugnumber (in this specific format)

@davhdavh thanks for submitting a PR.
Unfortunately this is a breaking change and not something we want accept.


Possibility for C-like "static int written = 0" inside a function that retains its value when incremented?

In C, I have a fast printint function and wish to do the same in Codon.
static inline void printint(uint64_t value, int flush_only)
{
    // Print integer to static buffer. Empty buffer automatically when full.
    // Before exiting, call printint(0,1) to empty and flush standard output.
    //
    // OMP_NUM_THREADS=4 ./primes 1e10 -p >/dev/null  #  4.6GB
    //   14.070s before, unbuffered
    //   10.012s buffered
    //
    static char buf[65536];
    static int flush_limit = 65536 - 24;
    static int written = 0;

    if (written && (written > flush_limit || flush_only)) {
        fwrite(buf, written, 1, stdout);
        written = 0;
    }
    if (flush_only) {
        fflush(stdout);
        return;
    }
    // end of buffer logic

    char c;
    int s = written, e = written;
    uint64_t temp;

    // base10 to string conversion
    do {
        temp = value / 10;
        buf[s] = (char) ('0' + value - 10 * temp);
        s++;
    } while ((value = temp));

    // increment the number of characters including linefeed
    written += s - e + 1;  buf[s] = '\n';

    // reverse the string in place
    while (--s > e) {
        c = buf[s];
        buf[s] = buf[e];
        buf[e] = c;
        e++;
    }
}

The following is the Codon version, but was hoping to not resort to global variables buf and written.
BUF = __array__[byte](65536)  # similar to "unsigned char buf[65536]" in C
FLUSH_LIMIT: Static[int] = 65536 - 24
WRITTEN = 0

@inline
def printint(value: u64, flush_only: int) -> None:

    from C import fwrite(Ptr[byte], int, int, cobj) -> int

    # Print integer to static buffer. Empty buffer automatically when full.
    # Before exiting, call printint(0,1) to empty and flush standard output.
    #
    # OMP_NUM_THREADS=4 ./primes 1e10 -p >/dev/null  #  4.6GB
    #   14.070s before, unbuffered
    #   10.012s buffered
    #
    global BUF, FLUSH_LIMIT, WRITTEN

    if WRITTEN and (WRITTEN > FLUSH_LIMIT or flush_only):
        fwrite(BUF.ptr, WRITTEN, 1, _C.seq_stdout())
        WRITTEN = 0

    if flush_only:
        _C.fflush(_C.seq_stdout())
        return

    # end of buffer logic

    s, e = WRITTEN, WRITTEN

    # base10 to string conversion
    while True:
        temp = value // u64(10)
        BUF[s] = byte(int(u64(ord('0')) + value - u64(10) * temp))
        s += 1
        value = temp
        if not value:
            break

    # increment the number of characters including linefeed
    WRITTEN += s - e + 1; BUF[s] = byte('\n')

    # reverse the string in place
    s -= 1
    while s > e:
        c = BUF[s]
        BUF[s] = BUF[e]
        BUF[e] = c
        e += 1
        s -= 1

Is it possible to declare a var similarly in Codon, that can be updated and retain its value?
static inline void printint(uint64_t value, int flush_only)
{
    static char buf[65536];
    static int flush_limit = 65536 - 24;
    static int written = 0;

    ...
}

I'm going to create a class for this.

After testing, I settled with the following to not impact performance.
FLUSH_LIMIT: Static[int] = 65536 - 24

class My:
    # In C, one can declare a static variable inside a function that
    # retains its value when incremented. E.g. static int written = 0;
    # In Python, one can create a class, accessed via an object var.
    # But that reduces the performance by %5. I tried @classmethod,
    # though not yet supported in Codon. In the end, I created this
    # class to contain the few global variables. E.g. My.written += N.

    buf = Array[byte](65536)
    last_completed = -1
    written = 0


errors are not highlighted

Type: Bug
yesterday after the update of vs code my vscode has stopped underlining the errors and warnings.
VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:02.548Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i3-1005G1 CPU @ 1.20GHz (4 x 1190)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
undefined

Memory (System)
11.77GB (5.41GB free)

Process Argv
--crash-reporter-id 365e7065-f718-4a8c-bf57-8db31e96125c

Screen Reader
no

VM
0%

Extensions (37)

Extension
Author (truncated)
Version

vsc-material-theme-icons
equ
2.7.5

code-runner
for
0.12.0

codespaces
Git
1.14.6

copilot
Git
1.84.51

remotehub
Git
0.54.0

vscode-test-explorer
hbe
2.21.1

isort
ms-
2022.8.0

python
ms-
2023.6.1

vscode-pylance
ms-
2023.4.40

jupyter
ms-
2023.3.1201040234

jupyter-keymap
ms-
1.1.0

jupyter-renderers
ms-
1.0.15

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

remote-containers
ms-
0.288.1

remote-ssh
ms-
0.100.0

remote-wsl
ms-
0.77.0

cmake-tools
ms-
1.14.30

cpptools
ms-
1.14.5

cpptools-extension-pack
ms-
1.3.0

powershell
ms-
2023.3.3

remote-explorer
ms-
0.4.0

remote-repositories
ms-
0.32.0

test-adapter-converter
ms-
0.1.7

vsliveshare
ms-
1.0.5864

sqltools
mtx
0.27.1

sqltools-driver-mysql
mtx
0.5.1

java
red
1.18.0

LiveServer
rit
5.7.9

pdf
tom
1.2.2

intellicode-api-usage-examples
Vis
0.2.7

vscodeintellicode
Vis
1.2.30

vscode-java-debug
vsc
0.50.0

vscode-java-dependency
vsc
0.22.0

vscode-java-pack
vsc
0.25.11

vscode-java-test
vsc
0.38.2

vscode-maven
vsc
0.41.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1cf:30587006
2e4cg342:30602488
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
vsccsb:30705552
azdwalk:30721579
pythonms35:30701012
pythonfmttextcf:30716743

Now i reinstalled the jdk and vs code once again now it is working good
..but thankyou so much.
On Mon, 1 May 2023, 20:44 SteVen Batten, @.***> wrote:

@21241A66J9 https://github.com/21241A66J9 This is possibly caused by an
extension. A few things to verify:

Does it happen in all programming languages for which you have
extensions installed to report errors?
If not, find the extension which gives the language support for the
problem language.
File an issue on that extension.

If it reproduces on all languages, don't hesitate to reply.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/181180#issuecomment-1529821683,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2UG43V2NJYF34GFJZ3GS5DXD7HMHANCNFSM6AAAAAAXQERBRA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Add function to remove trailing characters

Is your feature request related to a problem? Please describe.
Trailing characters, such as commas at the end of titles or extra carriage returns at the end of note content, can cause display issues.
Describe the solution you'd like
A function which can remove trailing punctuation. Ideally this function would allow users to pass one or more characters, and would remove multiple instances of a given character.

I started working on it and found out that the builtin rstrip() function (which I've previously used to trim whitespace) does precisely what this issue is asking for if you pass it a string as a second argument. In other words:
"this is a string...,.\n\n\n".rstrip(".,\n")

will return
"this is a string"

Given, this, I don't think it's worth writing a helper to close this issue, but instead we should all note that this method exists as part of the Python standard library.
See also:

https://www.programiz.com/python-programming/methods/string/rstrip
https://www.geeksforgeeks.org/python-string-rstrip/#:~:text=


Use libclang with C++ instead of Rosyln to figure out macro types

Currently C2CS uses Rosyln to figure out the type of a macro object. This happens by creating a new adhoc .cs file and evaluating the expression using var and letting Rosyln figure out what is the appropriate type through semantic analysis. I didn't think about it before, but technically the same approach could be done usinglibclang with auto in C++.
This would remove the slowest part of C2CS currently making C2CS run much faster. It would also allow C2CS to not rely on the .NET runtime/sdk being installed in a specific location which opens the path for true single file deployments and NativeAOT.

Turns out using C2CS on windows.h chokes right now because of this. Will need to do this for using C2CS as a P/Invoke generation tool for system headers.

I have a prototype of this working; working through the edge cases.

Finished in next branch. Will close this issue when released to v3.0.0.


Something went wrong during completion. Reason: module 'openai' has no attribute 'error'

Menu buttons working fine, but after message to bot sent - this is the answer
Something went wrong during completion. Reason: module 'openai' has no attribute 'error'
I believe it is becouse of updates in opanai python package...

Reinstall bot from repository. Make sure that you use all new configs. Setup it completely


Add detailed documentation how to use external-dns

[ ] GCE

[x] with type=LoadBalancer services
[x] with GLBC ingress controller
[x] with nginx-ingress-controller
[ ] with voyager ingress controller
[ ] with traefik ingress controller

[ ] on AWS

[x] with type=LoadBalancer services
[ ] with skipper-ingress-controller
[ ] with nginx-ingress-controller
[ ] with voyager ingress controller
[ ] with traefik ingress controller

[ ] on Bare metal (no cloud load balancer)

[ ] with nginx-ingress-controller

The AWS tutorial isn't clear on how to setup/use the IAM Permissions. We were previously using molecule's route53-kubernetes in which we used env vars for AWS_SECRET_ACCESS_KEY, and KEY_ID but I don't see anything about that in the tutorial here. I think those are probably something the aws cli uses. Either way, it would be good for this tutorial to be a bit more complete for beginners.


Inconsistent instructions and object creation

Great work! Thank you for sharing the code.
I would like to reproduce some results but the arguments are flawed. For example this line is suggested in order to train Diffusion-ProjectedGAN:
python train.py --outdir=training-runs --data="~/cifar10.zip" --gpus=4 --cfg cifar --kimg 50000 --target 0.45 --d_pos first --noise_sd 0.5
Argument target does not exist (I suppose you mean --d_target?).
cifar is not a valid choice for cfg.
Then when trying e.g this:
python train.py --outdir=training-runs --data="~/cifar10.zip" --gpus=1 --cfg stylegan2 --kimg 50000 --d_target 0.45 --d_pos first --noise_sd 0.5 --batch 16 I run into a bug:
In diffusion-projected-gan.pg_modules in line 119 a Diffusion-object is constructed:
self.diffusion = Diffusion(t_init=5, t_max=500, beta_start=1e-4, beta_end=1e-2)
but t_init is no valid argument of the Diffusion-class. Thus I changed it to:
self.diffusion = Diffusion(t_min=5, t_max=500, beta_start=1e-4, beta_end=1e-2)
Training now works.
Are these changes correct?

Hi,
First, thanks for your interests in our new work, and also thanks for pointing out the argument issue for Diffusion-Projected GAN here. That is some copy/paste bug when I clean the code, and sorry to make you inconvenience.
Your changes are correct. I also update the running instructions and code. Just git pull and it should work now. :)

Thank you.
You changed the prompt for training Diffusion-ProjectedGAN to: python train.py --outdir=training-runs --data="~/cifar10.zip" --gpus=4 --batch 64 --batch-gpu=16 --cfg fastgan --kimg 50000 --target 0.45 --d_pos first --noise_sd 0.5--noise_sd 0.5
While it still contains target instead of d_target, does the fastgan-config refer to projected GAN?

Yeah, I have updated the inner code to all use target and I tested that the code can run. Yes, fastgan is the specific config for Projected GAN, and I refer to https://github.com/autonomousvision/projected_gan for more details.

Great. Thank you for the clarification.


add the pretrained resnext101_64x4d model

🚀 Feature

add the pretrained resnext101_64x4d model
Motivation

In object detection, the resnext101_64x4d is a widely used backbone.
But the torchvision model only provide the resnext101_32x8d pretrained models.
If we want to use the resnext101_64x4d in object detection, it cannot be smoothly to change.

Hello. @tangjiuqi097 . The discussion for adding new models is in #2707. Feel free to comment there.
I will add this to the list.


Add support for load-version/load-versions

I run multiple time the same pipeline on AzureML (multiple experiments testing different parameters at the same time).  My pipeline is as follow :

Unversionned dataset is used as input in function x, which generates a versionned dataset
That versionned dataset is used  as input in function y

Another way of looking at it, it looks like this :
unversionned dataset -> function x -> versionned dataset -> function y
I have the following timeline :

Starts Run A, node x
Starts Run B, node x
Run B node x finishes, saves a versionned dataset
Run B node y starts with versionned dataset from step 3 (as expected)
Run A node x finishes, saves a versionned dataset
Run A node y starts with versionned dataset from step 3 (unexpected, should start with versionned dataset generated at step 5)

The issue seems to stem from how the version ID is generated/transfered.  Instead of having a single version ID for the run, and transfering that version ID from node to node, each node generates its own version ID (or fetch the latest one).  That bug seems to happen with kedro also, but is easily fixed if I specify "--load-versions" in the CLI (which I can't with kedro azureml).  If I was able to specify --load-versions, I believe this bug would disappear (or I could manage to work around it).  Right now, I can't run the same pipeline in parallel with different parameters, I'd need to create a new pipeline with a different name (which doesn't make sense at all, I'm just running multiple experiment in parallel).

Hi @AlexandreOuellet , thanks for creating the issue.
Indeed, the --load-versions is missing from the current CLI. Moreover, even if it will be passed, current implementation does not propagate it. It should definitely be added to the plugin.
We're keen to accept the contribution on that part! Are you willing to create a PR with that? We can guide you through the implementation process.
If not, we will add it to our backlog, but without any specific estimates on the implementation time yet.

Actually, an update for you @AlexandreOuellet :
in the PR created by @tomasvanpottelbergh there is added support for exactly that https://github.com/getindata/kedro-azureml/pull/60/files#diff-b581001a106daa976944fadbd8c82928c83738a13c27264db1fd5d67ffbd39c3R212
So this should be covered after the PR will get merged.

The issue is 2 way actually.
The first issue is related to kedro directly (see https://github.com/kedro-org/kedro/issues/2694)
The 2nd is the --load-versions, which seems to be what you are referring.  I'm happy to close this issue as soon as the PR is merged.
Thanks!

@marrrcin this can be closed I think

Closed by #60


bash-completion for tagfs

bash completion for tagfs commands and also tags will be very helpful and handy

bash completion is now added for all the tracked tagfs functions: a9555cca117fe45b51c3162d3a6130b417aec9b0


Compatibility issues with Window List extension.

It causes the windows to minimize. My gnome version is 3.18 on Ubuntu 16.04 LTS.

I confirm this bug

Don't modify WindowsList-buttons please

#108 does not fix this bug, as I had hoped.


[ POC ] Test module with upcoming dependency changes

Description
Create POC to validate if it is possible to test serverless-manager as a reaction on upcoming dependency changes (istio/tracing/eventing).
https://wiki.one.int.sap/wiki/display/kyma/Microdelivery+and+Testing+Strategy#MicrodeliveryandTestingStrategy-Backwardcompatibilitycheck
AC: Compliance with the the Operational Test Management specification

Reasons
Compliance with the the Operational Test Management specification

Closing in favor of Contract testing approach


Connection to datalog?

With MonoSAT's graph operations, it feels vaguely like there might be a somewhat mechanical transformation from datalog to GNF and MonoSAT, but I haven't fleshed that out. Have you given it much thought, or is there any related work you know of in that space?

I haven't thought too deeply about the Datalog/MonoSAT connection before; but it could be promising.
Maybe something like: rules in data log become edges in a graph, facts are modeled as nodes (perhaps with a node 'true' always present), and we consider facts to be derivable if they are reachable from the true node. Each edge would have constraints on it ensuring that it can only be true if the body of one of its rules holds. Queries would be reachability predicates.
Is that similar to what you had in mind? It might be worth trying.
One thing to keep in mind:
MonoSAT scales well for graphs with as many as a few million nodes, depending on how complex the constraints are. But it isn't going to handle billions of nodes. So you would only be able to apply this to problem domains where the total space of possibly-derivable-facts (each of which will become a node) is not too large.
The closest thing I'm aware of in that area would be Answer Set Programming, which is a logic programming language with constraints. High-performance ASP solvers typically use a modified SAT solver on the backend. I'm not sure how closely the semantics of datalog and ASP line up (ASP is based around a notion of 'stable models' that I think differs from datalog), but that might be another direction to explore if you wanted a SAT backend for datalog constraints. This paper discusses the semantics of datalog and ASP.


player argument not work with bing engine

trans hello  -player open
work fine
 trans hello  -e bing -player open
not work
system: mac 10.12.6

I'm not sure macOS's open command will work as a -player argument, since trans's workaround for Bing TTS makes use of a temporary file which macOS's open may fail to infer the media type.
Have you tried to specify the actual player name (for example, afplay) directly?


Release 0.9.42 to main.

uprade polka to 0.9.42
upgrade rust toolchain to nightly-2023-05-22
upgrade weights to use from_parts constructor instead of temporary from_ref_time

next steps after merge:

#231
#251

I was also curious why you changed MaxCodeLen and CallStack in pallet_contracts::Config and probably is worth mentioning  this pr containing information on where these numbers come from, what they affect and how they can be adjusted.

I was also curious why you changed MaxCodeLen and CallStack in pallet_contracts::Config and probably is worth mentioning this pr containing information on where these numbers come from, what they affect and how they can be adjusted.

This also comes from the update to v0.9.40, and it follows https://github.com/paritytech/cumulus/pull/2108

Just added the fix to the WeightsToFee. The commit also includes some formatting fixes.

@kalaninja we are ready to merge right ?

LGTM 🚀


turned in old course assignment

Grading zzzz00 in assignment kmom05 [in routes:68]
File "/home/deploy/umbridge/app/eve/models/course_manager.py", line 182,n copy_and_zip_student_code
shutil.rmtree(dest)
File "/usr/lib/python3.7/shutil.py", line 447, in _rmtree_safe_fd
 os.unlink(entry.name, dir_fd=topfd)
 FileNotFoundError: [Errno 2] No such file or directory: 'answer.py'

No clue how this happend, dest should be archive folder. So rmtree() finds answer.py  to delete but then can't find it when deleting?


remove react-scripts

Dependabot has an alert for nth-check, which is required by react-scripts
yarn list nth-check
yarn list v1.22.18
warning Filtering by arguments is deprecated. Please use the pattern option instead.
├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>   └─<EMAIL_ADDRESS>
Unfortunately, react-scripts doesn't have a later production version (see open issue complaining about this)
I just removed it since it seems like we only use it in the ts declaration file that is included by default for create-react-app. There's an issue of people complaining about 😆 I don't think we need it for any of our usage and could workaround anything that we would need the types for, so I removed it for now

nth-check is still there, but it's included as a dep, but


user ops: Allow from statements

Closes #4645

@mattnibs: Looks like passing in the pool/filename target is not covered yet. Just curious if you got a sense while you were working on this PR how difficult it might be to add that later? Not sure where its priority will stand among the users, but I've been opening User Ops issues along the way with that aspirational long-term goal of "see if we can get to the point where everything that can be done in the main scope can be done inside a User Op, ideally with parameters".

FYI it looks like (modulo parameterized pool/filename refs) #4652 may be mostly covered. For instance, here's the inner join example from the Join Tutorial implemented inside a User Op with everything else parameterized.
$ zq -version
Version: v1.8.1-58-g939f61cd

$ cat inner-join-in-op-params.zed
op CallMe(left_key_field, right_key_field, left_dest, right_source): (
  file fruit.ndjson | sort left_key_field
  | inner join (
    file people.ndjson | sort right_key_field
  ) on left_key_field=right_key_field left_dest:=right_source
)
CallMe(flavor, likes, eater, name)

$ zq -I inner-join-in-op-params.zed
{name:"figs",color:"brown",flavor:"plain",eater:"jessie"}
{name:"banana",color:"yellow",flavor:"sweet",eater:"quinn"}
{name:"strawberry",color:"red",flavor:"sweet",eater:"quinn"}
{name:"dates",color:"brown",flavor:"sweet",note:"in season",eater:"quinn"}
{name:"apple",color:"red",flavor:"tart",eater:"morgan"}
{name:"apple",color:"red",flavor:"tart",eater:"chris"}

Though I did bump into this limitation when I try to isolate just the User Op in the imported Zed and make the call from the shell.
$ cat inner-join-in-op-params-just-op.zed
op CallMe(left_key_field, right_key_field, left_dest, right_source): (
  file fruit.ndjson | sort left_key_field
  | inner join (
    file people.ndjson | sort right_key_field
  ) on left_key_field=right_key_field left_dest:=right_source
)

$ zq -I inner-join-in-op-params-just-op.zed 'CallMe(flavor, likes, eater, name)'
redundant inputs specified: use either command-line files or a Zed source operator

Looks like passing in the pool/filename target is not covered yet.

@philrz separate pr.


Custom Max Level Perms

Description of new idea or improvement on existing one
Basically take the part in the config where it is talking about:
'//[OPTIONAL] - the maximum level of this class with specific permission
//use jobs.[jobsname].vipmaxlevel, in this case it will be jobs.exampleJob.vipmaxlevel
vip-max-level: 20'
And allow us to add our own, giving us free control over this.
Detailed information what should do what and when
When a user has the correct perm they will be able to go over the default max level and also allow them to go over the top of each other for example:
Default Level: 10
Basic Group Level: 15
VIP Group Level: 25
VIP2 Group Level: 50
etc etc.

There is a permission for this: jobs.max.[number]


WebAssembly based SIMD library

As I know, SIMD.js removed from browsers and specifications, and merged into WebAssembly. But I suggest to make dedicated SIMD library (and SIMD remake) for JavaScript, independed from ECMAScript specifications? With new syntax, with wrappers, with classes, with TypeScript support?

New syntax would require inclusion in ecmascript.
All of the SIMD stakeholders are only interested in wasm at this time.


⚠ Bofrost.be has degraded performance

In 62fd31c, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1842 ms

Resolved: Bofrost.be performance has improved in b6b0fc2.


Is there a 'boot' button on the T-Embed board as I need to reset

On the t-display and t-display touch boards there is a boot GPIO-0 button that can be used to reset the board in the event of a fail, by holding the boot button down before plugging the USB cable in, then attach the Usb cable, then release and upload the code etc.  This procedure is described in the TIPS section of the relevant GitHub pages.
How does one do this on the T-Embed board please?  Mine is currently u/s, I can't use it at all and I cannot get any sketch to upload!
Thanks

So, I have discovered the BOOT button GPIO 0 is actually the centre button for the rotary encoder dial.  However, using the same process as described on the T-Display GitHub board page to reset the board via BOOT mode does not work with the T-Embed board.
Frustrating.

It seems possible to reset the T-Embed. GPIO 0 is connected to the encoder button.
Push the encoder button, push the reset button, power on the device, release the reset button then release the encoder button


[CT-1545] [Bug] dbt.config.get returns Undefined instead of the default value in Python model

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
dbt.config.get("missing_key", "default_value") default value dosen't work.  This behavior creates an Undefined variable inside the context after the compilation like this.
config_dict = {'KEY_AVAILABLE': 'everthing_is_ok',  'MISSING_KEY': Undefined}

Expected Behavior
config_dict = {'KEY_AVAILABLE': 'everthing_is_ok',  'MISSING_KEY': "default_value"}

Steps To Reproduce
Define a model like:
def model(dbt, session):

    CONFIG_KEY = dbt.config.get("KEY_EXIST", "DEFAULT_VALUE")
    MISSING_KEY = dbt.config.get("MISSING_KEY", "DEFAULT_VALUE")

    df = dbt.ref("orders")

    return df

With configs like:
version: 2
models:
  - name: something
    config:
      CONFIG_KEY:  everthing_is_ok

Run dbt compile.
The compiled output will create a config_dict like this
config_dict = {'CONFIG_KEY': 'everthing_is_ok',  'MISSING_KEY: Undefined}

In that case, Undefined is a undeclared variable in the context. Because that, this will create an exception.
Relevant log output
No response
Environment
- OS: Linux/Ubuntu
- Python:3.9.12
- dbt-core==1.3.0
- dbt-databricks==1.3.0

Which database adapter are you using with dbt?
spark
Additional Context
No response

Related to https://github.com/dbt-labs/dbt-core/issues/5846. I can work in a PR to fix that.

@devmessias Good catch, thanks for opening!
This feels like a relatively simple & self-contained fix, so we'd welcome a contribution for it. Let us know if it turns out to be trickier than expected.

@devmessias Good catch, thanks for opening!
This feels like a relatively simple & self-contained fix, so we'd welcome a contribution for it. Let us know if it turns out to be trickier than expected.

 It was a quite simple fix


Does logspout work with docker swarm

I started a logspout container pointing it to my swarm cluster as follows:
docker run --name=logspout -e DOCKER_HOST=tcp://${swarm-manager}:4000 --net=host -e ROUTE_URIS=logstash://my-logstash:5454 ictu/logspout:latest

It seems that no logs are being sent to my ELK stack
When I start the logspout container pointing it to the local docker engine container logs are sent to ELK.
Some info about my setup:

single (and multi) node swarm cluster using docker 1.10.3 (not built in docker swarm 1.12)
logspout image (master and v3 tag): https://github.com/ICTU/logspout
logspout sending logs to logstash over udp using adapter: https://github.com/ICTU/logspout-logstash

Does logspout work in a swarm cluster and if so what am I missing in my configuration?

After further investigation it seems that logspout works just fine with docker swarm!
What I have come to find is that container logs are not forwarded when the container is started in the foreground e.g. docker run --name=test01 --rm -it alpine sh -c "while true; do echo Hello; sleep 2; done"
From another shell curl -v http://localhost:8000/logs shows no logs, while docker logs -f test01 does
Detached container logs however are forwarded
docker run -d alpine sh -c "while true; do echo Hello; sleep 2; done"
curl -v http://localhost:8000/logs #shows logs

Closing issue.


Impressive

Not an issue, just to say this is an impressive piece of work !! Well done. 👍

Thank you, this means a lot to me ❤