PackageKit daemon fails at startup because of missing libpk_backend_nix.so

I'm running a current version of nixos-unstable @ 179b8146e66. When systemd tries to start packagekit.service, I get the following error:
Nov 05 17:55:26 peti PackageKit[8708]: daemon start
Nov 05 17:55:26 peti packagekitd[8708]: Failed to load the backend: opening module nix failed : /nix/store/mj9dw9d3j5ky5i0icg2pa665zdk1b1y7-packagekit-1.1.11/lib/packagekit-backend/libpk_backend_nix.so: cannot open shared object file: No such file or directory

Indeed, that shared object does not exist on my system:
# ls -l /nix/store/mj9dw9d3j5ky5i0icg2pa665zdk1b1y7-packagekit-1.1.11/lib/packagekit-backend
total 92
-r-xr-xr-x 2 root root  2117 Jan  1  1970 libpk_backend_test_fail.la
-r-xr-xr-x 3 root root 13016 Jan  1  1970 libpk_backend_test_fail.so
-r-xr-xr-x 2 root root  2111 Jan  1  1970 libpk_backend_test_nop.la
-r-xr-xr-x 3 root root  7624 Jan  1  1970 libpk_backend_test_nop.so
-r-xr-xr-x 2 root root  2123 Jan  1  1970 libpk_backend_test_spawn.la
-r-xr-xr-x 3 root root 12472 Jan  1  1970 libpk_backend_test_spawn.so
-r-xr-xr-x 2 root root  2135 Jan  1  1970 libpk_backend_test_succeed.la
-r-xr-xr-x 3 root root 13704 Jan  1  1970 libpk_backend_test_succeed.so
-r-xr-xr-x 2 root root  2129 Jan  1  1970 libpk_backend_test_thread.la
-r-xr-xr-x 3 root root 12664 Jan  1  1970 libpk_backend_test_thread.so

That doesn't seem right?

So there once was a PackageKit backend for Nix but it broke with the update to Nix 2.0. I haven't had time to fix it yet.
You should try commenting out this line in the packagekit service:
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/packagekit.nix#L13
I think it's just pulling that value.


Publish extension to open-vsx.org

Hello. Could you please publish brightscript-language extension to open-vsx.org in addition to the VS Code Marketplace.
This will allow VSCodium users to find your extension.

Sure! I'll look into this. Thanks for asking. :)

@DusanLesan Done!
https://open-vsx.org/extension/RokuCommunity/brightscript

@DusanLesan Done!
https://open-vsx.org/extension/RokuCommunity/brightscript

Thanks. My VS Code did automatic update on it's own now

@DusanLesan I just wanted to check in and see how the open-vsx releases have been working for you? All good?

@DusanLesan I just wanted to check in and see how the open-vsx releases have been working for you? All good?

@DusanLesan I just wanted to check in and see how the open-vsx releases have been working for you? All good?

Thank you very much for checking. Everything is alright. The latest version is available for me (2.14.0)

@DusanLesan I just wanted to check in and see how the open-vsx releases have been working for you? All good?

Thank you very much for checking. Everything is alright. The latest version is available for me (2.14.0)

Great, glad to hear it! Thanks.

Great, glad to hear it! Thanks.


console 'variants' (actually just recolours of main console)

classic - : time monstor, 1963
toyota -  orange, blue
victorian (8th)
tokamak
dwcm

move to next update, not that important


Change Data Loader Namespace

Description:
Update the artifact name of the xml file and the namespaces. Co-authored with @tjaffri
Maintainers:
@rlancemartin, @eyurtsev

thanks @kenzie28!


Support svg, pdf

As eg stored by matplotlib
Since you asked for a project to avoid writing ;-)

PR welcome ;)


I ported this package to rust, is there anything I need to include?

I have never ported a project before so I'm not sure if there are expectations when it comes to licensing or such.
The source is here: https://github.com/chanced/rs-polyline-codec
Please let me know if I need to do anything. Also, I apologize if this isn't the appropriate channel for this sort of question. I wasn't sure where else to ask.
Thanks!

@chanced Thank you for opening this issue. 🙏
Please check out these other resources that might be applicable:

Support Console - If you have a support contract.
Discord - chat with other developers
StackOverflow - use the google-maps tag
Google Maps Platform issue trackers

This is an automated message, feel free to ignore.

@chanced Please take a moment to fill out this short survey. Thank you!
This is an automated message, feel free to ignore.


OAuth2 Support

I realised that BigCommerce deprecated HTTP Basic authentication and upgraded API to use OAuth2. Is there any plan to upgrade the gem to give OAuth2 support?

This has been added


Add MoE feedforward

Stack from ghstack (oldest at bottom):

#206
#204
#259
#203
#256
#255
-> #210

/land


(putty.install) Tries to write MSI log file at an invalid location

Chocolatey Version
1.2.1
Chocolatey License
None
Package Version
0.78
Current Behaviour
putty.install fails to upgrade to 0.78 as the path for the MSI log does not exist.
putty.install v0.78 [Approved]
putty.install package files upgrade completed. Performing other installation steps.
Installing 64-bit putty.install...
WARNING: Something is wrong with the install log location specified. Please fix this in the package silent arguments (or in install arguments you specified). The directory specified as part of the log file path must exist for an MSI to be able to log to that directory. This is most likely an issue with the 'putty.install' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly.
ERROR: Running ["C:\Windows\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\putty.install\tools\putty-64bit-0.78-installer.msi" /qn /norestart /l*v "c:/programdata/chocolatey/choco-cache\chocolatey\putty.install\0.78\install.log" ] was not successful. Exit code was '1622'. Exit code indicates the following: Something is wrong with the install log location specified. Please fix this in the package silent arguments (or in install arguments you specified). The directory specified as part of the log file path must exist for an MSI to be able to log to that directory. This is most likely an issue with the 'putty.install' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly..
The upgrade of putty.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\putty.install\tools\chocolateyInstall.ps1'.
 See log for details.

Expected Behaviour
The package should determine if the path that it wants the MSI log file to be written to actually exists before passing it to the installer. Alternatively, it should not use a path under $env:TEMP but format the log filename instead (package name, version etc.). Many packages just use the root of $env:TEMP.
Steps To Reproduce
I cannot reproduce this behaviour on a test system. But I can reproduce it on my own system and I have provided the output above, and the log below.
I was upgrading from 0.77 to 0.78.
Environment
- Operating System: Microsoft Windows NT 10.0.19044.0
- PowerShell Version: 5.1.19041.1682
- Shell: PowerShell

Chocolatey Log
Gist is here.
Anything else?
My choco-cache setting:
> choco config
Chocolatey v1.2.1
Settings
cacheLocation = c:/programdata/chocolatey/choco-cache | Cache location if not TEMP folder. Replaces `$env:TEMP` value for choco.exe process. It is highly recommended this be set to make Chocolatey more deterministic in cleanup.

I uninstalled and reinstalled the package and the problem went away. I have absolutely no idea what is going on. The putty.install folder is still not in c:\programdata\chocolatey\choco-cache  but it still installs. Yet it didn't when upgrading.
No idea. Very confused. Closing this.


[Clean up] remove bogus folder

@mariamabarham  - I think you accidentally placed it there.

Same for the dataset_infos.json at the project root no ?

Sorry guys, I haven't noticed. Thank  you for mentioning it.


implemented eel style recursive search for mac OS

Hi so i implemented recursive search for chrome on mac OS please check it out. I do not use mac OS so i was unable to test the code. Also, while reading eel's source code i noticed that eel also search for chromium, is there any plans to implement this in the future ?

@C-NERD Thank you very much! I see the pull request, I'll have time to review, test, and release an update this weekend :)

Yes, we plan on supporting Chromium as well!

Ok when you want to add chromium support contact me, I would love to help if I am free

I've indent the code at line 184 and i compiled the code with no problems


updated with comments

updated with comments

I'm not sure what the purpose of this change is, can you explain?


Missing photos

Hey we started using steem/steepshot android couple of weeks ago as @gaiama most seems to work for us except on picture started to be missing in steepshot android app (on steemit it shows all correctly) which I commented here now it's 8 missing images in total and we're a little confused cause we're trying to build a nice looking gallery (of course :D)
not to blame..just to inform and try to figure out what's going on and if they'll return eventually?

Hi, our caching server was attacked, now all data is restored. Your content is stored in the cloud + IPFS and protected from such attacks, but it took some time to restore the quick data cache

nasty attackers -.-
awesome we noticed the returned images yesterday just didn't had the time to comment
thank you 🥇 👍


Added terrible styling attempt

This is the start of my attempt at styling these pages.
Feel free to rip out whatever doesn't belong.

@KaitCrawford Please review

Just adding a picture of the success page for posterity.
Thank you so much Mitso!! this is great!! :+1:


grafana-config secret is not created

What happened?
The grafana-Pod from the grafana deployment does not start.. All other components also work perfectly.
How to reproduce it (as minimally and precisely as possible):
Ich habe die Installation entsprechend der Schnellstartanleitung ausgeführt: kubectl create -f manifests/setup -f manifests
Environment

Prometheus Operator version: quay.io/prometheus-operator/prometheus-operator:v0.50.sudo kubectl version
Kubernetes version information: v1.21.4+k3s1
Kubernetes cluster kind: K3s
Manifests: manifests/grafana-deployment.yaml

Anything else we need to know?:
When creating the Grafana pod, these errors occur:
Events:
  Type     Reason       Age                   From               Message
  ----     ------       ----                  ----               -------
  Normal   Scheduled    22m                   default-scheduler  Successfully assigned monitoring/grafana-8df68868b-jd8f8 to r4
  Warning  FailedMount  22m                   kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-namespace-by-workload" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  22m                   kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-pod-total" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  22m                   kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-apiserver" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  22m                   kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-node-rsrc-use" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  22m                   kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-k8s-resources-namespace" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  22m                   kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-nodes" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  22m (x2 over 22m)     kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-controller-manager" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  22m (x2 over 22m)     kubelet            MountVolume.SetUp failed for volume "grafana-dashboard-k8s-resources-cluster" : failed to sync configmap cache: timed out waiting for the condition
  Warning  FailedMount  12m (x12 over 23m)    kubelet            MountVolume.SetUp failed for volume "grafana-config" : secret "grafana-config" not found
  Warning  FailedMount  2m47s (x14 over 22m)  kubelet            (combined from similar events): Unable to attach or mount volumes: unmounted volumes=[grafana-config], unattached volumes=[grafana-dashboard-k8s-resources-namespace grafana-dashboard-k8s-resources-node grafana-config grafana-dashboard-workload-total grafana-dashboard-k8s-resources-cluster grafana-dashboard-nodes grafana-storage grafana-dashboard-proxy grafana-dashboard-controller-manager grafana-datasources grafana-dashboard-prometheus grafana-dashboard-alertmanager-overview grafana-dashboard-node-cluster-rsrc-use grafana-dashboard-node-rsrc-use kube-api-access-9lsbl grafana-dashboard-namespace-by-pod grafana-dashboard-k8s-resources-pod grafana-dashboard-scheduler grafana-dashboard-k8s-resources-workload grafana-dashboard-persistentvolumesusage grafana-dashboards grafana-dashboard-kubelet grafana-dashboard-pod-total grafana-dashboard-namespace-by-workload grafana-dashboard-prometheus-remote-write grafana-dashboard-apiserver grafana-dashboard-k8s-resources-workloads-namespace grafana-dashboard-cluster-total]: timed out waiting for the condition

As far as I could see, no secret was created with grafana-config in any manifest.

I have the same issue.

@Sternrassler I had the same issue.
The problem was the compatibility mismatch of prometheus-operator and Kubernetes version.
You can check the this link - https://github.com/prometheus-operator/kube-prometheus#compatibility
In my case, the prometheus-operator version i was using is v0.80 but Kubernetes version was v1.19 which are not compatible.

Fixed by #1373


SMM intrinsic motivation signs

Hey,
Not sure if anyone can clarify just wanted to check on signs with intrinsic reward for SMM
intr_reward = pred_log_ratios + self.latent_ent_coef * h_z + self.latent_cond_ent_coef * h_z_s.detach()
The original paper in equation 3 has:
r_z(s) = log(p*(s)) - log(rho_pi(s|z)) + log(p(z|s)) - log(p(z))
Why do we add the log(rho_pi(s|z)) == pred_log_ratios  and log(p(z)) == self.latent_ent_coef and not subtract them as in equation 3, sorry if this is obvious 😄

I'm also wondering about the signs of SMM's intrinsic reward.
Regarding pred_log_ratios, I noticed that the VAE of the original SMM implementation returns the negated log_prob (= h_s_z) value.
And within the intrinsic reward it is negated again.
Hence, URLB's intrinsic reward might be correct w.r.t. the sign of h_s_z because URLB's VAE does not negate the log_prob in the first place.


Custom CallBackHandlerFactory is not Working on APIM 4.3.0

Description
This issue and we have patched it for 4.2.0 for the org.wso2.carbon.user.core 4.9.25 version.
And it is not available in org.wso2.carbon.user.core 4.9.26 version.
Steps to Reproduce
Please refer to [1].
[1].https://github.com/wso2/api-manager/issues/2125
Affected Component
APIM
Version
4.3.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

Closing this issue as https://github.com/wso2/carbon-kernel/pull/3983 has been merged.


sign out element doesnt show up

Hello,
First of all, thanks for all the latest addition & assistance!
I'm trying to add the sign out option, do I have to use currentAdmin or Authenticate?
login to the admin is done via passport
it would be great if you had a simple method of showing the sign out button, regardless.
Cheers
DT

In authenticate method (assuming you use express) you have to return CurrentAdmin with email field. Then sign out button should appear.

yes, I'm using express
can I combine that into the passport process?

haven't use passport so far so I won't be able to help :(

use your passport.session to store the user:
passport.session.user = user
then, in you router, in default route:
if (passport.session.user) {
req.session.adminUser = passport.session.user
}


Passing variables to createClient constructor in Next.js

Hello, it would be helpful to me having a more specific example on how to fetch users data in liveblocks.config.js.
From the docs currently:
// ...

export const {
  /* ... */
} = createRoomContext(client, {
  resolveUsers: async ({ userIds }) => {
    const usersData = await __getUsersFromDB__(userIds);

    return usersData.map((userData) => ({
      name: userData.name,
      avatar: userData.avatar.src,
    }));
  },
});

The config file is in the root of the project and I can't read session or context in order to get userIds using hooks. The only way I got it to work is setting a cookie specially for this purpose containing userId and then reading it on the authEndpoint.
This is the docs page:
Ex. https://liveblocks.io/docs/api-reference/liveblocks-react
Thank you.

Hey @azivkovi, thanks for the message! We're working on more docs that will be complete on, or shortly after, our Comments launch (it's still in private beta) 🙂
Setting a cookie, right! We'd recommend using a fetch function inside resolveUsers, to get the users from your back end. Is this possible in your app? Would setting a cookie, or something like sessionStorage still be required? Any info about your auth set up would be appreciated!

Thank you for the info @CTNicholas. The docs are really well done and we did get the app running in a couple of days. It was just this one thing I was wondering if there is a better way than what we do.
This is our auth setup in liveblocks.config.js, which is pretty standard:
const client = createClient({
  authEndpoint: async (room) => {
    const response = await fetch('/api/v1/liveblocks/auth', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json', Authorization: process.env.API_KEY },
      body: JSON.stringify({ room }),
    });
    return await response.json();
  },
});

The auth endpoint reads the cookie containing userId and gets the user from db. This is just for single user auth. We set the cookie just for this purpose, but I was wondering if it was possible for authEndpoint to get the userId right here in liveblocks.config.js as a prop alongside room. Using sessionStorage isnt possible because it requires window object which isn't defined at that point.

Thank you for the kind words @azivkovi!

Okay, thanks for the info on your setup!

but I was wondering if it was possible for authEndpoint to get the userId right here in liveblocks.config.js as a prop alongside room

Do you mean like this?
authEndpoint: async (room, userId) => {
//                         ^^^^^^

This actually isn't possible! userId isn't set until after this function has been returned, therefore we can't provide its value. authEndpoint is only called when you connect to the app, and we use it to set the userId.
Did you mean you'd like have userId provided to resolveUsers?

I was thinking of having the userId loaded in the liveblocks.config.js before setting the liveblocks client and then just passing it in the body of the post request to the auth endpoint.
If that isn't possible I guess the only way for the auth endpoint to get the userId is reading if from cookies on the backend. Is that right, or perhaps there is another way that you guys prefer or recommend doing it?


httpd process is using 100% CPU when myfixip module is enabled

I am doing some testing with Amazon ELB's proxy protocol and apache 2.4.9 + myfixip now.
The module is working and I can get correct client IP in apache's access log. But I noticed after a while httpd process is trying to use as much as possible CPU.
top - 14:09:48 up 1 day, 19:56, 2 users, load average: 1.05, 1.30, 1.46
Tasks: 80 total, 2 running, 78 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.7%us, 14.4%sy, 0.0%ni, 79.9%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3857672k total, 3747412k used, 110260k free, 113828k buffers
Swap: 0k total, 0k used, 0k free, 3517740k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30539 wwwrun 20 0 119m 3492 1584 R 99 0.1 5:43.91 httpd2-prefork
strace -p 30539 shows it's non-stop calling epoll_wait
epoll_wait(27, {{EPOLLIN, {u32=2213386584, u64=139975197563224}}}, 2,<PHONE_NUMBER>) = 1
epoll_wait(27, {{EPOLLIN, {u32=2213386584, u64=139975197563224}}}, 2,<PHONE_NUMBER>) = 1
epoll_wait(27, {{EPOLLIN, {u32=2213386584, u64=139975197563224}}}, 2,<PHONE_NUMBER>) = 1
epoll_wait(27, {{EPOLLIN, {u32=2213386584, u64=139975197563224}}}, 2,<PHONE_NUMBER>) = 1
netstat shows
netstat -nap | grep tcp | grep 30539
tcp 0 0 <IP_ADDRESS>:54357 <IP_ADDRESS>:80 ESTABLISHED 30539/httpd2-prefor
tcp 0 0 <IP_ADDRESS>:81 <IP_ADDRESS>:60080 CLOSE_WAIT 30539/httpd2-prefor
<IP_ADDRESS> is the ELB server with proxy protocol enable;
<IP_ADDRESS>:81 is the apache server configured to proxy websocket traffic to ws://echo.websocket.org  ( I am just doing a test for websocket proxy).
It looks like the apache server didn't close the socket to ELB.
Did a few tests,

if myfixip is disabled and ELB proxy protocol is disabled, this problem doesn't happen;

if myfixip is enabled but it's directly accessed by client ( so no request with proxy protocol ), this problem doesn't happen, I only see TIME_WAIT between apache server and my client.

if myfixip is enabled, ELB proxy protocol is disabled, and I access the webserver through ELB ( still no request with proxy protocol ), this problem doesn't happen.

only when myfixip is enabled and ELB proxy protocol is enabled and I access the webserver through ELB, this problem will happen.

so it looks like it's related with myfixip module?

The environment is Suse Linux with apache 2.4.9:
apache2-utils-2.4.9-1.2
apache2-prefork-2.4.9-1.2
apache2-event-2.4.9-1.2
apache2-worker-2.4.9-1.2
apache2-devel-2.4.9-1.2
apache2-2.4.9-1.2

Thank you very much for all the details. This will help me find the problem.

I kind of understand what caused the high CPU load now. the ELB is configured to use TCP instead of HTTP ( because I need it to forward websocket to my apache server ).
So I configured the ELB heath check also as TCP ping on port 80. Normally this seems is not a issue; but when myfixip is enabled, the health check tcp ping will cause a 408 error like :
<IP_ADDRESS> - - [24/Jun/2015:17:55:07 +0000] "-" 408 - "-" "-"
and cause the web server CPU spike.
The workaround is to change the heath check method to HTTP.

This is very bizarre.  after changed health mornitoring to HTTP. I still got 408 error from ELB.

If I enable myfixip module:
<IP_ADDRESS> - - [24/Jun/2015:18:36:12 +0000] "-" 408 - "-" "-"
<IP_ADDRESS> - - [24/Jun/2015:18:36:42 +0000] "GET /maintenance.html HTTP/1.1" 200 506 "-" "ELB-HealthChecker/1.0"
<IP_ADDRESS> - - [24/Jun/2015:18:37:12 +0000] "-" 408 - "-" "-"
<IP_ADDRESS> - - [24/Jun/2015:18:37:37 +0000] "GET /maintenance.html HTTP/1.1" 200 506 "-" "ELB-HealthChecker/1.0"
<IP_ADDRESS> - - [24/Jun/2015:18:38:12 +0000] "-" 408 - "-" "-"
<IP_ADDRESS> - - [24/Jun/2015:18:38:32 +0000] "GET /maintenance.html HTTP/1.1" 200 506 "-" "ELB-HealthChecker/1.0"
<IP_ADDRESS> - - [24/Jun/2015:18:39:13 +0000] "-" 408 - "-" "-"
<IP_ADDRESS> - - [24/Jun/2015:18:39:27 +0000] "GET /maintenance.html HTTP/1.1" 200 506 "-" "ELB-HealthChecker/1.0"
The mystery "408" showed up every 1 minute, it's not controlled by the 55 seconds interval from ELB health monitoring.

running tcpdump, now I can see the ELB is connecting to the web server every 1 minute, then close the connection without sending any data.
when myfixip is not enabled, httpd probably just ignore this connection; when myfixip is enabled, httpd generate a 408 error and the process is using 100%CPU. Working with AWS to see why there is this weird traffic now.

AWS support told me this is a "pre-open" connection from ELB to backend instance, seems ELB only does that for HTTP listener.

I also found this to be a problem, I tested on a EC2 t2.small behind an ELB using an Amazon AMI and Apache/2.4.12, but when I thought everything was good to go and put it into production the CPU jumped to 100% and stayed there on two c3.large instances that normally run at about 3-15% CPU usage.  Any thoughts?

Here is from 'top':
top - 15:35:26 up 27 min,  2 users,  load average: 6.88, 4.30, 2.34
Tasks: 100 total,   8 running,  92 sleeping,   0 stopped,   0 zombie
Cpu(s): 99.8%us,  0.0%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.2%si,  0.0%st
Mem:   3858728k total,   522608k used,  3336120k free,    19868k buffers
Swap:        0k total,        0k used,        0k free,   111088k cached
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
2741 apache    20   0  452m  26m 5768 R 30.6  0.7   1:19.92 httpd
2745 apache    20   0  441m  15m 5484 R 29.0  0.4   0:45.76 httpd
2740 apache    20   0  441m  15m 5728 R 28.6  0.4   1:17.16 httpd
2727 apache    20   0  450m  24m 5784 R 28.0  0.7   2:15.40 httpd
2734 apache    20   0  455m  29m 5680 R 28.0  0.8   1:30.39 httpd
2742 apache    20   0  451m  24m 5248 R 27.6  0.7   1:30.30 httpd
2737 apache    20   0  441m  16m 5356 R 27.3  0.4   2:31.34 httpd

I released a new version 0.8, can check if bug is resolved?

I will try it first thing tomorrow morning!  Thanks for the quick response 😄👍

On Jun 29, 2015, at 4:52 PM, G.Grandes<EMAIL_ADDRESS>wrote:
I released a new version 0.8, can check if bug is resolved?
—
Reply to this email directly or view it on GitHub.

The problem still exists.  If I leave the ELB health check pointing at a port handled by Apache it more quickly reaches 100% CPU usage for Apache processes.  If I point it at another port not handled by Apache it takes more time, but eventually it does the same.  Let me know if there is anything I can do to help resolve this issue.

@awelters About If i point it at another port not handled by apache... you say that if you points to port 1234 (o anything else) that is listening by another application (not apache), CPU reaches 100%?

Yes, if I point the ELB health check at another port listening by another application (not apache) the CPU reaches 100%.  I open multiple tabs on multiple computers and head to the website, periodically refresh some, others are polling.  On the ELB, the idle timeout is set to 300 seconds and connection draining is set to 25 seconds.  Any thoughts?

If you need any help testing let me know, you could create a branch, I could check it out, and then send you back the results.

^--- I would be happy to do the same. I have an environment setup and ready to test so if you are able to create a separate branch let me know so we can both provide results.
Thanks @ggrandes!

@awelters If ELB point to other application (not apache)... and mod_myfixip.c run inside apache... this seem like a poltergeist :ghost:
A) Are you sure that when ELB point to other port, not other ELB check-connection is done from ELB to Apache?
B) If you disable myfixip module inside apache and enable ELB check pointing to other application (not apache), CPU rise again to 100%?

@niczak can you describe your environment?

Sorry for the confusion, but the ELB load balances against port 80/443 with Apache, Health Checks can be done against other ports which I did for testing.  More importantly, when mod_myfixip is turned off the 100% CPU goes away.  It is most definitely this mod.

B) If you disable myfixip module inside apache and enable ELB check pointing to other application (not apache), CPU rise again to 100%?
—
Reply to this email directly or view it on GitHub.

@awelters ok, no problem... I suppose that ELB is sending fragmented data in some cases, and mod expect no partial sending of proxy header line. I'm working on this.

Hi, new version 0.9 released. please, check and send me your feedback!

Hi guys! how it goes? version 0.9 solve the problem?
@awelters @niczak

Unfortunately I had to go a different route in order to meet deadlines but this is still something I would like to revisit.  Blew away test environment but will definitely give this a go when time allows.  @awelters - is your test env still up?

the test env is no longer up.  I will try to retest in the coming weeks.  Thanks @ggrandes for the effort on this, very important project!

ok, thanks for all!

closed by [43e0ab4300aea5f059e6dccb9c7fb6f7a04b8911]


Allowed RGB elements to accept a PIL image

HoloViews RGB elements can plot PIL images, but only if you know to convert them to Numpy arrays first using numpy.array(pil_image).  This PR tries to detect PIL images and convert them automatically so that they can be passed directly to RGB:

We don't import PIL to do the check, for two reasons: most users of RGB are unlikely to need PIL, and PIL comes in two flavors, PIL and pillow, which can have strange interactions if both imported.  I think this approach is safe, in that this code should rarely be executed if not for actual PIL objects and vastly more rarely could the conversion to Numpy cause a problem in that case not resulting in an exception, but it's possible that I'm overlooking some scenario of importance.

I suppose if we want to be more paranoid we could check a combination of attributes:
if hasattr(data,'thumbnail') and hasattr(data,'tobitmap') and hasattr(data,'getpixel') :

Why not attempt a conditional import, then do a proper isinstance check?

See above.

What is wrong with hv.Image(np.array(image))?
I don't think it is worth having a special case for PIL, even if we could do a robust isinstance check.

I would be in favor of reverting the code change here and using this PR to add the documentation to show how to work with PIL images by casting to numpy array (you would need some documentation anyway, even if PIL images were supported directly).

This would make sense as an extra little section in the RGB element notebooks.

I'll close this and open a new PR for the docs changes.


Rename Matches to Match.

Match could be a better name for the filter? think I remember a while ago @markmandel and I had discussed having a convention for filters and to use verbs like compress/encrypt where possible (not sure how well we've kept to it ^^)
Originally posted by @iffyio in https://github.com/googleforgames/quilkin/pull/447#discussion_r759947759

I think Match would be better -does seem to be inline. We should probably document the standards for Filter names somewhere as well.
Did a quick playground test, and Rust doesn't complain about a struct called Match
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e757f0800bc897783e16a45eb813b344


refactor(sleep): replace promise implementation with nodejs timers

☁ Nx Cloud Report
We didn't find any information for the current pull request with the commit 4e83424c27c4835422091338c2712dc17637d01f.
Please verify you are running the latest version of the NxCloud runner.
Check the Nx Cloud Github Integration documentation for more information.
Alternatively, you can contact us at<EMAIL_ADDRESS>
Sent with 💌 from NxCloud.


Create CONTRIBUTING.md

Contributing guide

Yes

_posts/0000-01-02-goforthkd.md

https://github.com/goforthkd/github-slideshow/pull/7/files


RFC: API Gateway Proxy Event utils

Key information

RFC PR: (leave this empty)
Related issue(s), if known:
Area: Utilities
Meet tenets:  Yes

Summary

One paragraph explanation of the feature.

Add the ability to help map multiple API Gateway Proxy events to a single lambda much like how Chalice or Lambda Proxy does it, but in a very simple and light weight way and still be compatible with Powertools
Motivation
Simplify the work needed to setup API Gateway Proxy Lambdas that support multiple endpoints on a single lambda
Proposal
Build something like: https://github.com/vincentsarago/lambda-proxy
But also allow the develop to keep their existing handler with all of the powertools decotators supported kind of like how
#324 works.

app = APIGatewayProxy()

@app.post(uri="/merchant")
def create_merchant(merchant: dict) -> dict:
   # return a 200 OK response with JSON details
    return {"id": ...}

@app.get(uri="/merchant/{uid}", include_header=True)
def get_merchant(uid: str, headers: dict):
   return {"name":...}

def handler(event, context):
    return app.resolve(event, context)

Drawbacks

Why should we not do this?
Do we need additional dependencies? Impact performance/package size?
No additional dependencies

Rationale and alternatives

What other designs have been considered? Why not them?
What is the impact of not doing this?

Unresolved questions

Optional, stash area for topics that need further development e.g. TBD

Hey @michaelbrewer - Could you let us know when the RFC body is ready to review? It's missing a few sections like  drawbacks, rationale, a more complete proposal besides the link, and any open questions you might have (if any), etc.

@heitorlessa  here is a super lightweight implementation:
from typing import Any, Dict, Tuple, Callable, List

from aws_lambda_powertools.utilities.data_classes import APIGatewayProxyEvent
from aws_lambda_powertools.utilities.typing import LambdaContext

class ApiGatewayResolver:
    def __init__(self):
        self._resolvers: List[Dict] = []

    def _register(
        self,
        func: Callable[[Any, Any], Tuple[int, str, str]],
        http_method: str,
        uri_starts_with: str,
        include_event: bool,
        include_context: bool,
        kwargs: Dict,
    ):
        kwargs["include_event"] = include_event
        kwargs["include_context"] = include_context
        self._resolvers.append(
            {
                "http_method": http_method,
                "uri_starts_with": uri_starts_with,
                "func": func,
                "config": kwargs,
            }
        )

    def get(self, uri: str, include_event: bool = False, include_context: bool = False, **kwargs):
        return self.route("GET", uri, include_event, include_context, **kwargs)

    def post(self, uri: str, include_event: bool = False, include_context: bool = False, **kwargs):
        return self.route("POST", uri, include_event, include_context, **kwargs)

    def put(self, uri: str, include_event: bool = False, include_context: bool = False, **kwargs):
        return self.route("PUT", uri, include_event, include_context, **kwargs)

    def delete(self, uri: str, include_event: bool = False, include_context: bool = False, **kwargs):
        return self.route("DELETE", uri, include_event, include_context, **kwargs)

    def route(
        self,
        method: str,
        uri: str,
        include_event: bool = False,
        include_context: bool = False,
        **kwargs,
    ):
        def register_resolver(func: Callable[[Any, Any], Tuple[int, str, str]]):
            self._register(func, method.upper(), uri, include_event, include_context, kwargs)
            return func

        return register_resolver

    def resolve(self, _event: dict, context: LambdaContext) -> Dict:
        event = APIGatewayProxyEvent(_event)
        path = _event.get("pathParameters", {}).get("proxy")
        resolver: Callable[[Any], Tuple[int, str, str]]
        config: Dict
        resolver, config = self._find_resolver(event.http_method.upper(), path)
        kwargs = self._kwargs(event, context, config)
        result = resolver(**kwargs)
        return {"statusCode": result[0], "headers": {"Content-Type": result[1]}, "body": result[2]}

    def _find_resolver(self, http_method: str, proxy_path: str) -> Tuple[Callable, Dict]:
        for resolver in self._resolvers:
            expected_method = resolver["http_method"]
            if http_method != expected_method:
                continue
            path_starts_with = resolver["uri_starts_with"]
            if proxy_path.startswith(path_starts_with):
                return resolver["func"], resolver["config"]

        raise ValueError(f"No resolver found for '{http_method}.{proxy_path}'")

    @staticmethod
    def _kwargs(event: APIGatewayProxyEvent, context: LambdaContext, config: Dict) -> Dict[str, Any]:
        kwargs: Dict[str, Any] = {}
        if config.get("include_event", False):
            kwargs["event"] = event
        if config.get("include_context", False):
            kwargs["context"] = context
        return kwargs

    def __call__(self, event, context) -> Any:
        return self.resolve(event, context)

And its usage:
import json
from typing import Tuple

from aws_lambda_powertools.utilities.data_classes import APIGatewayProxyEvent
from aws_lambda_powertools.utilities.event_handler.api_gateway import ApiGatewayResolver

app = ApiGatewayResolver()

@app.get("/foo")
def get_foo() -> Tuple[int, str, str]:
    # Matches on http GET and proxy path starting with "/foo"
    return 200, "text/html", "Hello"

@app.post("/make_foo", include_event=True)
def make_foo(event: APIGatewayProxyEvent) -> Tuple[int, str, str]:
    # Matches on http POST and proxy path starting with "/make_foo"
    post_data = json.loads(event.body or "{}")
    return 200, "application/json", json.dumps(post_data)

@app.delete("/delete", include_event=True)
def delete_foo(event: APIGatewayProxyEvent) -> Tuple[int, str, str]:
    # Matches on http DELETE and proxy path starting with "/delete"
    item_to_delete = event.path.removeprefix("/delete/")
    return 200, "application/json", json.dumps({"id": item_to_delete})

I have updated the RFC PR include a couple more feature ideas:

https://github.com/awslabs/aws-lambda-powertools-python/pull/369

While still keeping the code to a minimum

This is now OUT, thanks a lot for the gigantic help here @michaelbrewer -- https://github.com/awslabs/aws-lambda-powertools-python/discussions/423


[SDL] update packages

Fix Issue #2199
Changes

Upgrade Microsoft.AspNetCore.Hosting
Explicit dependency on System.Text.Encodings.Web

Checklist

[ ] I ran Unit Tests locally.
[ ] CHANGELOG.md updated with one line description of the fix, and a link to the original issue if available.

For significant contributions please make sure you have completed the following items:

[ ] Design discussion issue #
[ ] Changes in public surface reviewed

The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.
Notes for authors:

FxCop and other analyzers will fail the build. To see these errors yourself, compile localy using the Release configuration.

Notes for reviewers:

We support comment build triggers

/AzurePipelines run will queue all builds
/AzurePipelines run <pipeline-name> will queue a specific build

This is ready to merge.


Add scan workflow

Failing due to repository not enabled for code scanning. @fredrikhgrelland could you enable repository for scanning? Reference on github documentation

Requires beta. Joining waitlist.


DLUHC-201 add timetable form

Adds basic timetable form
To run, cd into prototype-kit, do npm i then npm run dev
Validation/getting JSON from timetable will be done in another MR

Closing as going to redo in react


FindDoc: IN with ID does only return first Result

Hello,
if you execute a query like documented on the README, it will only return the first result:
db.my_documents.findDoc({id : [1,3,9]}, function(err,docs){
  //documents with ID 1, 3, and 9
});

->Returns only the document with ID 1.
Best Regards
Marcel

Yes, got the same problem with  massive "version": "2.5.0" and postgres 9.6. Any clues for the fix?


Object-improvement branch: moved module methods as class methods

Most module methods moved to class methods. Remaining module methods could be either used for IRDIS or left as module methods in IFS.
This change will make manual step-by-step reductions much easier.

Closed.


How do i unselect a CellViewHolder?

I'm trying to unselect the cell from the table, aslo it should unselect the colum and row headers. How can i accomplish that?
Plus: I'm deleting a row that is charged with SQlite Data. I'm trying to refresh my tableview with the changes i made. But nothing happends. And doing it throught a PopUpMenu as used in OnLongPressedColumnView.

Hi @tuvirus,
To clear selections, use the below code;
tableView.getSelectionHandler().clearSelection();
TableViewAdapter has two methods to remove the desired row easily. These are;

removeRow(int rowPosition);
removeRow(int rowPosition, boolean updateRowHeader) ;

you can easily row the row like this;
tableView.getAdapter().removeRow(rowPosition);

Thanks about the removeRow method, helped me a lot :D . But the clearSelection(); method does not exists :(.
Good day!

0.8.7 and 0.8.8 which is the newest version has the method.

If I want to delete multiple rows at a single shot, any method available for that?

Hi @SnehaInGitHub
You can remove multiple rows using these;

removeRowRange(int rowPositionStart, int itemCount)
removeRowRange(int rowPositionStart, int itemCount, boolean updateRowHeader)

@evrencoskun
I want to delete multiple rows that are not contiguous in manner. A user can select multiple rows at a time and can delete all selected rows. I tried to use removeRow method of yours. But as inside the removeRow method, you have -
 mCellRecyclerViewAdapter.deleteItem(rowPosition);         mRowHeaderRecyclerViewAdapter.deleteItem(rowPosition);
Now deleteItem method has notifyItemRemoved method. So, I am getting an arrayIndexOutOfBound exception.

@evrencoskun ,
Hello, thanks for the reply, it worked it unselects, but check on this. I'm using tabs in my app, one of the tabs has de the TableView while i'm on the tab i can unselect but on scrolling, because my table is a bit long, seems like the not rendered cells are still selected and also when i go on another tab and comeback to the TableView Tab it reselects itself again (Row/column/cell) from the last selection i've made. I think it is some kind of bug(?).
Here some screenshots:

And I can't clear selection. What should I do?

java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v7.widget.RecyclerView$ViewHolder com.evrencoskun.tableview.adapter.recyclerview.CellRecyclerView.findViewHolderForAdapterPosition(int)' on a null object reference
at com.evrencoskun.tableview.handler.SelectionHandler.changeVisibleCellViewsBackgroundForColumn(SelectionHandler.java:342)
at com.evrencoskun.tableview.handler.SelectionHandler.unselectedColumnHeader(SelectionHandler.java:234)
at com.evrencoskun.tableview.handler.SelectionHandler.clearSelection(SelectionHandler.java:407)

SelectionHandler in clearSelection() Method :
unselectedRowHeader();
unselectedCellView();
unselectedColumnHeader();
add:
    mPreviousSelectedViewHolder = null;
    mSelectedColumnPosition = UNSELECTED_POSITION;
    mSelectedRowPosition = UNSELECTED_POSITION;

`

嗨@tuvirus，
要清除选择，请使用以下代码；
tableView.getSelectionHandler().clearSelection();
TableViewAdapter有两种方法可以轻松删除所需的行。这些是;

removeRow（int rowPosition）;
removeRow（int rowPosition，boolean updateRowHeader）;

您可以像这样轻松地排行；
tableView.getAdapter().removeRow(rowPosition);

Tableview. Getselectionhandler(). Clearselection(); but how to solve the null pointer exception?

Hey, I am using date range picker so I just want to select those rows under that range of date
Please help


[Bug] Rename VM option only available with all super_administrator privileges

The option to rename a VM is only available for users who have full rights, from the moment that I revoke one right which has nothing to do with the rename VM option, the "Rename VM" field disappears from the configuration menu. In the screenshot below is an example of when the option is unavailable to the user.

@gtanzillo Can you look into this one?

I was able to recreate this behavior and determined that the necessary product feature vm_rename does not exist. It works for super admin because that user unconditionally is entitled to everything.
It looks like @harpreet already fixed this with https://github.com/ManageIQ/manageiq/pull/19456


[UI] Add ability to update an Application's Source

Currently user can only update minor parts of an existing application
User's should also be able to supply new source for it

We should be able to show the same component as the wizard. There's a UX issue though in how we show the progress of the multiple https requests to support changing the source (supply source, apply source, restart, etc). In the wizard we have a full step for it, but when editing the app we don't

@richard-cox Yesterday and today I checked on epinio-dev and I am not sure if this is working or I am doing something wrong but when I try to update a source I simply can't and get several errors:

Is it a bug?

@richard-cox Yesterday and today I checked on epinio-dev and I am not sure if this is working or I am doing something wrong but when I try to update a source I simply can't and get several errors:

Is it a bug?

@mmartin24  I can take a look.

Opened a bug for the previous one for better tracking: https://github.com/epinio/ui/issues/217. Not sure if this one is also related: https://github.com/epinio/ui/issues/218

Quick question regarding env vars update.
I remember @richard-cox told me at the moment you need 2 steps to if you wanted to add an env var (1 for saving it and 1 for updating) but I was surprised you only need 1 to remove the env vars and get the app in a non-working state
Is this expected?

There should only be one step to update env vars (and custom values), however they won't apply to an existing app until the app is restarted.

There should only be one step to update env vars (and custom values), however they won't apply to an existing app until the app is restarted.

But why it seems to apply when removing the env vars in one step?

Tested this in latest epinio-dev and seem to work fine.
It seems to work, I tried updating from different sources including:
Image -> file app
File -> Folder
Folder -> File
Github -> Gitlab
Gitlab -> Github
Github commit 1 -> commit 2
Gitlab commit 1 -> commit 2

Corner cases:

https://github.com/epinio/ui/issues/216 (already being fixed)
Application stops working in the moment that env vars are removed (without restart) but not the other way around.  Is it expected
Env vars cannot be applied with restart, only with update source. Is it because of this or need a new bug? https://github.com/epinio/ui/issues/200

Sorry, functionality mix up.
For standard application env vars and custom values a restart of the application is required.
For the EPINIO_APP_DATA env var, it can be ignored. Storing them there is a byproduct of the create/edit process.

Sorry, functionality mix up.
For standard application env vars and custom values a restart of the application is required.
For the EPINIO_APP_DATA env var, it can be ignored. Storing them there is a byproduct of the create/edit process.

Sorry, just to make sure I get it. So it is ok that on a deployed application, after an env var is added and saved, we need to click Update Source, correct?

The Update Source process is purely for updating the source of an application (there's some other stuff under the hood that changes env vars, but to the user these aren't a consideration).
Updating env vars is done via the Details tab, the changes are persisted when Save is clicked and can be used by the app after it's been restarted.

Clarified offline.
The behavior of restate / rebuild will be checked separate for CLI.
Give this was only pending point, closing issue

Clarified offline. The behavior of restate/rebuild will be checked separately for CLI. Given this was the only pending point, closing the issue

This has been tackled here: https://github.com/epinio/epinio/issues/2220

Retested in v1.8.0-rc1 and working.
Done: Deployed Gitlab app, updated source to file, and updated source again to folder.


Cannot format files until they are saved (bug arrived again, was fixed same bug not long time ago)

Does this issue occur when all extensions are disabled?: Yes

Version: 1.96.2
Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f
Steps to Reproduce:

Open new file, put any JS code, select file type "JavaScript"
format file command

If save file, then formatting works.
If change formatter from "eslint" to built-in VS Code formatter and then back to eslint formatter - then formatting works on unsaved file. This means that this is not extension problem.

does it work if you click on another JS file then click back?

Now I cannot reproduce this again as closed IDE. After fresh open IDE it formats. Seems like this is floating bug


Support docstrings

I believe the draft SDL spec now supports docstring-style string descriptions. So this reports as an error, when I'm pretty sure the following should be valid:
"""
Nullable because the field refers to data that may be absent. This is only
required if there is another nullability decorator, otherwise, it is implicit
that a nullable field is optional.
"""
directive @nullableOptional on FIELD

This also relates to #121 as only newer GraphQL libraries will support this.
I don't see this mentioned at http://facebook.github.io/graphql/ yet. Do you have any additional info?

Bump.
The PR now seems to be merged and descriptions can be very useful when doing an introspection query.
Thanks for the hard work 🙏

Thanks @jimkyndemeyer for the amazing plugin!
Any updates on this matter? The """ syntax is officially in GraphQL spec draft now: http://facebook.github.io/graphql/draft/#sec-String-Value

The 2.0 alpha follows the latest GraphQL language draft spec as of June 2018.
See 2.0.0-alpha-2 if you'd like to try it and help test it.

Still in progress?
WebStorm 2019.1 EAP
Build #WS-191.6014.17, built on March 6, 2019
WebStorm EAP User
Expiration date: April 5, 2019
JRE: 1.8.0_202-release-1483-b31 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 8.1 6.3
JS GraphQL: v 2.0.0-alpha-8

Still """ triple quote comment """ turns out into a warning?
Thank you for awesome tool :1st_place_medal:

@blacksmoke26 The GraphQL grammar only allows the single/triple quote strings to be used as descriptions in type system definitions, hence the expectation that a definition follows immediately after.
Comments are still single line and marked by #.
See https://facebook.github.io/graphql/June2018/#sec-Appendix-Grammar-Summary.Document


Clear the thread state before shutdown on executor, make exception fo…

…r MacOS and iOS

@nicolasnoble

Side note: everything I wrote above about iOS not shutting down is for iOS running Objective-C. I guess iOS running C++ (which is starting to get used) does actually shut down though. @rmstar


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 4ea8540, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 5496 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in 393b002.


[iOS] App crashes if a push notification is sent when the app is terminated

Hi mate, please help
KMPNotifier and Kotlin version:
kmpnotifier version: 1.2.0-alpha02
kotlin version: 1.9.21
koin version: 3.6.0-Beta5
Describe the bug
In iOS, it works well in the foreground and background. However, the app crashes if a push notification is sent when the app is terminated.
In which platform bug occurs?
iOS
To Reproduce
Steps to reproduce the bug:

Login into the app
Terminate/kill the app
Send push notification

Expected behavior
It should not crash

Found this error Crash Log Details in xcode:

fix: just send 1 firebase setting and it converts to whateer device on the firebase end, rather then sending gcm and aps


Rewrite test_poolmanager.py to be pytest-style

Part of #1160.
Note: I took out all the cleanup code because I don't get any ResourceWarnings without it when running locally. I'd like to double-check that CI doesn't think differently before this is merged.

Codecov Report

Merging #1208 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1208   +/-   ##
======================================
  Coverage     100%    100%
======================================
  Files          21      21
  Lines        1975    1975
======================================
  Hits         1975    1975

Continue to review full report at Codecov.

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

The CI does. ;)

Can you give me a pointer please? I can see a bunch of FD leaks in test/with_dummyserver/test_[proxy_]poolmanager.py, but that’s unrelated to this test. I can’t see any leaks coming from this file specifically.


Roll out support for Spark 2.1.0

Just opened a PR addressing this: https://github.com/bizreach/aws-kinesis-scala/pull/5

@ChetanBhasin Merged #5. Thanks!


Don't enable RUST_BOOTSTRAP in build.rs

The crate is currently "usable" on stable rust, despite using nightly-only feature, by enabling RUST_BOOTSTRAP=1 in build.rs. This is a very bad idea. This flag is only meant to bootstrap the compiler itself, and any other use of it is unsupported and might lead to the code breaking if/when the API changes. This is not unheard of: Nightly features aren't finalized and often changes shape prior to stabilization.
The currently used features are also not very stable, const_generics and const_fn can easily cause ICEs in the compiler or soundness issues in the final binary, due to implementation bugs.
IMO, this crate shouldn't abuse RUST_BOOTSTRAP like this. The correct way is to tell the users to use a nightly compiler. If that's not possible, the use of RUST_BOOTSTRAP should at least be called out in the README so users can make an informed decision about using this crate.

Hi roblabla, I'm aware of this and I consider it a mistake that I did this in the first place. I was so excited to make this library but I needed one little thing, to be generic over arrays of all sizes. That one puzzle piece has always been missing and at the time I considered cheating with RUSTC_BOOTSTRAP a small price to pay.
From there on forward I considered ways to remove this but I was held back because this would be a 'breaking' change and so I justified to myself continued usage of this backdoor.
I'm actually surprised crates.io accepted my crate and cargo doesn't try to contain this particular env var from being propagated from a build script.
For now this won't go away (unless forced to by eg. cargo no longer propagating this env var via build script). Perhaps open an issue on cargo's issue tracker to see what other people think.
Thanks and congratulations for being the first person to notice this :)

See https://github.com/rust-lang/cargo/issues/7088 for more information.

So, this answer was a bit disappointing to hear, as it makes it pretty hard to rely on obfstr on production code. I have forked obfstr 1.1 and, with the use of generic_array managed to make something working reasonably well on stable without the need for any nightly feature. See https://github.com/roblabla/obfstr/commit/195db0c91af3f7fe93cbbb92126e52c61c4517ea
Only real downside is that it makes obfconst slightly less ergonomic to use:
static GSTR: obfstr::ObfString<[u8; 10]> = obfstr::obfconst!("Hello 🌍");
use generic_array::{GenericArray, typenum::consts::*};
static GSTR: obfstr::ObfString<GenericArray<u8, U10>> = obfstr::obfconst!("Hello 🌍");
assert_eq!(GSTR.decrypt(0).as_str(), "Hello 🌍");

And, as with anything relying on generic-array, the errors that occur when giving the wrong output size are pretty bad if you don't know how to read them:

---- src/lib.rs - obfconst (line 72) stdout ----
error[E0308]: mismatched types
 --> src/lib.rs:74:56
  |
5 | static GSTR: obfstr::ObfString<GenericArray<u8, U9>> = obfstr::obfconst!("Hello 🌍");
  |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `obfstr::typenum::B0`, found struct `obfstr::typenum::B1`
  |
  = note: expected struct `obfstr::ObfString<obfstr::GenericArray<_, obfstr::typenum::UInt<obfstr::typenum::UInt<_, obfstr::typenum::B0>, obfstr::typenum::B1>>>`
             found struct `obfstr::ObfString<obfstr::GenericArray<_, obfstr::typenum::UInt<obfstr::typenum::UInt<_, obfstr::typenum::B1>, obfstr::typenum::B0>>>`
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

So my question is this: are you open to moving to such a solution? If not, I guess I'll publish my fork on crates.io with another name (like obfuscate or something).

I have a very strong dislike for GenericArray as it makes something that should be simple so complicated (I know it isn't anyone's fault and Rust wants to make sure that adopting new features are solid).
I'm also moving past the proc-macro honeymoon phase and seeing the extra crate requirement as a serious downside, hence in v0.2 I implemented the whole API in const fn (but again needing nightly, unstable and unfinished features).
THAT SAID:
Since I've moved on from v0.1 and don't care about it anymore I have no problems publishing a v0.1.2 with is a carbon copy if your PR (but not merged into master). Basically a blessed fork which is kept updated and I don't have a problem making this choice explicit in the readme.
Technically this would be a breaking change (you pointed out obfconst) but I hope not too many people have a need for using this API directly as it was hard to use regardless.
I'll reopen this issue and we can discuss the details of how to best merge your work. Thanks for taking interest and caring, it really is appreciated.

I have a very strong dislike for GenericArray as it makes something that should be simple so complicated (I know it isn't anyone's fault and Rust wants to make sure that adopting new features are solid).

Haha, I'm also not a fan of GenericArray, but in this case I couldn't find any other way to make it work, given the constraints ^^.

Technically this would be a breaking change (you pointed out obfconst) but I hope not too many people have a need for using this API directly as it was hard to use regardless.

https://github.com/search?l=Rust&q=obfconst&type=Code shows a single user in open source repo. That said, I expect most users of obfstr to have closed source code, so it's kinda hard to gauge. In my own code, I used that function once in order to share an obfuscated string between multiple sites.
Something I could do to mitigate breakage is allow ObfString<[u8; N]> for N < some sane value (like 128). This would make existing code using small enough strings work. The downside is, I'll probably have a macro generate a ton of code to support this, which would slow compilation down.
Another thing I also thought about: It might be worth adding a new macro (tentatively named obfstatic), meant to replace obfconst's main use-case working like this:
// Generates static GSTR: ObfString<GenericArray<u8, "test".len()>> = ObfString::new(_random_!(), "test");
obfstatic!(GSTR = "test");
fn test() {
    println!("{}", GSTR.decrypt());
}

The idea is to hide the underlying type within the obfstr from the user as much as possible. It has the additional nice trait that it lets the user omit the string length :smile: . If the same macro is implemented for 0.2, it would allow for easy migrations between both versions without changing any code.

Thanks for taking interest and caring, it really is appreciated.

Thanks for the great crate - it's really nice!

Perhaps the syntax can more closely mimic static/const syntax (and suppport visibility rules in the process):
obfconst! {
    pub const GSTR = "test";
}

I've made a branch with such an experiment for v0.2: obfconst

Something I could do to mitigate breakage is allow ObfString<[u8; N]> for N < some sane value (like 128).

I think this is a good idea.

shows a single user in open source repo

Reverse dependencies on crates.io shows another user (usage in its build script, ctrl-f obfstr)
Looking at these example shows questionable usage of obfstr in order to hide credentials in the final binary which is not something I had in mind when I made this crate... Oh well I guess I should have known better >.<

Thanks for the great crate - it's really nice!

Thanks!

So, I finally got some more time to work on this. Unfortunately, I sort of hit a roadblock on my current idea using GenericArray with a compat layer for "old-style" arrays, that I don't think I'll be able to solve. The crux of the problem is, I would need the arr! macro to generate either a GenericArray of a raw array depending on the context it's in. And it can't even know what it's supposed to generate, since it's all based on type inference. So, back to the drawing board.
I've got a solid new idea for a layer that would drop the GenericArray requirement, work on stable, and basically be compatible with most of the API surface of the 0.1.x API series. The only breaking change needed, I think, is making ObfString::new() unsafe. The rest of the API would stay entirely untouched, only the internal implementation would change.
Here's the idea: Change ObfString::new to be an unsafe function of signature 	pub const unsafe fn new(key: u32, data: A) -> ObfString<A>;. The user must pass a byte array in data.
The decrypt function will then cast data to a slice of the correct size with:
let data = {
    // Safety: ObfString::new guarantees that the input type is a byte array.
    slice::from_raw_parts(&self.data as *const A as *const u8, mem::size_of::<A>())
}

ObfBuffer::as_str() will similarly cast to a slice with the same function.

In practice, I don't think anyone uses ObfString::new() function directly. So while it's technically a breaking change, I expect actual breakage to be nil.
A PR will go up soon.

Thanks for your work! I'll be available in the weekend to work through your PR.
I'll also set up a separate 0.1.x branch because merging to master won't be possible.

I don't think anyone uses ObfString::new() function directly.

If they are, they're not supposed to as it is intended to be only used by the macro. This approach may work.
Rust also recently stabilized some trait implementations for all array sizes (feature min_const_generics). This means that it may be possible to use the constraint A: AsRef<[u8]> to implement the conversion to slice and avoid unsafe code.

Hey @roblabla if it's okay I implemented my proposal using AsRef and AsMut instead of GenericArray. I also created a separate stable0.1 branch to track updates. Future PRs I would like to add better notifications to the 0.2 series referring to this branch and actually publishing newer 0.1 versions.

I believe the only thing missing to close this issue is a 0.1.2 release on crates.io :tada:

It's not that simple, I need to make new PR updating the version number for the proc-macro and the this crate. It's so easy to screw up. I think the proc-macro needs to be a 0.2.0 because from its perspective it is a breaking change, but I only need to update obfstr itself to 0.1.2. I need to not forget to update the proc-macro dependency.
I really dislike updating more than one crate in sync. For all its glory in making it hard to make programming mistakes Cargo has shortcomings when it comes to preventing accidental versioning mistakes... I'll get to it when I find the courage to think about this in detail.

Rust 1.51.0 is released now. I believe this means obfstr 0.2.0 can now work on stable without any hacks, all that's required is removing the build.rs and the feature flag. Doing so will bump the MSRV though, so it's probably wise to wait a bit before doing this change :).

I'll update the repo soon (tm) and wait a week or so before publishing. Personally I have no intention to support anything other than latest stable.


Introduce ObjectsTrait

This PR extracts a few methods from ObjectsComponent and creates an ObjectsAwareTrait (name is subject to change) to make methods such as loadSingle and loadMany available in other places, such as CakePHP's view cells.

Superseded by #8.


Add support for numpy.ones([...])

Turning list to tuple whenever possible does help. This is till very
naive but should handle most cases.

@paugier can you confirm this fixes your bug?

No, unfortunately I cannot confirm this... But I don't think it is related to this issue and your branch default/feature/list-to-tuple.
Here, pythran crashes for changeset > 2757:24e9cfed2a21. It works with 2757:24e9cfed2a21 but not with 2758:0d0ed9ef0fec and above.
| @  changeset:   2758:0d0ed9ef0fec
|/   bookmark:    feature/networkx-2
|    tag:         default/feature/networkx-2
|    user:        serge-sans-paille<EMAIL_ADDRESS>|    date:        Mon Sep 25 11:56:25 2017 +0200
|    summary:     Moving to networkx2
|
o    changeset:   2757:24e9cfed2a21
|\   parent:      2754:32cc332cead7
| |  parent:      2756:25b64ec82ddf
| |  user:        serge-sans-paille<EMAIL_ADDRESS>| |  date:        Wed Sep 20 16:46:58 2017 +0200
| |  summary:     Merge pull request #721 from serge-sans-paille/fix/leak-tuple

With the most recent changesets, I get:
Traceback (most recent call last):
  File "/home/pierre/opt/mypy3/bin/pythran", line 9, in <module>
    load_entry_point('pythran==0.8.2', 'console_scripts', 'pythran')()
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/run.py", line 141, in run
    **compile_flags(args))
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/toolchain.py", line 387, in compile_pythranfile
    **kwargs)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/toolchain.py", line 329, in compile_pythrancode
    module, error_checker = generate_cxx(module_name, pythrancode, specs, opts)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/toolchain.py", line 131, in generate_cxx
    refine(pm, ir, optimizations)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/middlend.py", line 42, in refine
    pm.apply(FalsePolymorphism, node)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/passmanager.py", line 216, in apply
    res = a.apply(node, ctx)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/passmanager.py", line 178, in apply
    new_node = self.run(node, ctx)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/passmanager.py", line 171, in run
    n = super(Transformation, self).run(node, ctx)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/passmanager.py", line 114, in run
    return self.visit(node)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/passmanager.py", line 80, in visit
    return super(ContextManager, self).visit(node)
  File "/usr/lib/python3.5/ast.py", line 245, in visit
    return visitor(node)
  File "/usr/lib/python3.5/ast.py", line 300, in generic_visit
    value = self.visit(value)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/passmanager.py", line 80, in visit
    return super(ContextManager, self).visit(node)
  File "/usr/lib/python3.5/ast.py", line 245, in visit
    return visitor(node)
  File "/home/pierre/opt/mypy3/lib/python3.5/site-packages/pythran-0.8.2-py3.5.egg/pythran/transformations/false_polymorphism.py", line 37, in visit_FunctionDef
    e = next(iter(udgraph.nodes))
TypeError: 'method' object is not iterable

Of course, I tried with networkx>=2.

On Fri, Oct 13, 2017 at 01:01:56AM -0700, paugier wrote:

No, unfortunately I cannot confirm this... But I don't think it is related to this issue and your branch default/feature/list-to-tuple.

You need to update networkx package!
pip install -U networkx

Arrg, it was a silly virtualenv problem, with an "old" version of decorator (4.0.11). Thank you for the hint!
I can now confirm that it works for my case. Thank you for the fix!


Changing configmap values triggers pod restart

It seems that the chart contains invalid configuration in deployment.yaml which restarts gatus pod every time there is a change in configmap.
Because gatus supports hot-reload of configuration file, changing configmap should not trigger pod restart.
Steps to reproduce
1. Deploy the chart
2. Modify any of the endpoints values
3. Run helm upgrade
4. Pod restarted

The culprit is the following line: gatus/templates/deployment.yaml:30
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
I believe this line is unneeded for this application due to hot-reloading capabilities of the underlying application and could be removed safely.
If this can be confirmed as a bug I am willing to create a Pull request with the relevant fix
Relevant version information:
gatus version
chart version: gatus-2.5.5
app version: v4.3.2

helm version
{
  Version: "v3.9.0",
  GitCommit: "7ceeda6c585217a19a1131663d8cd1f7d641b2a7",
  GitTreeState: "clean",
  GoVersion: "go1.17.5"
}

Hi @martinlillemets, thank you for the issue. I see your point, gatus can re-read the config "on-the-fly" with some delay (about 30s). Personally I prefer to annotate pod, so gatus is restarted on each config change and there is an immediate "feedback" if config is not valid.
I've added a flag to disable the config checksum: set deployment.annotateConfigChecksum to false. See https://github.com/avakarev/gatus-chart/pull/50/files for details, version 2.6.0 is released.
I'm closing the issue. Please, let me know if you still have problem with config reload.


deploy in netify

can  anybody deploy this project in netify

i would...

Can I deploy this project in netlify?


Ball Placement Interference Timer

[https://robocup-ssl.github.io/ssl-rules/sslrules.html#_ball_placement_interference](Rule 8.4.3) interference is a foul when robot is too close for more than 2 seconds

Was already implemented


Bad Auth

No matters what I try, i keep getting :  DATA: 1 RESULT: Error=BadAuthentication NULL
from the getAuthtoken function.
doubt its my server since i recently got a new.

@ibennz probably it's your server, try it in localhost, it works in my side
Regards

Yes, something is wrong on my side. Thanks.


[ACR]: Generate credential for token fails if token name contains a dash (-)

Describe the bug
Generating credential fails if the underlying token name contains a dash (-):
acrName=youracrname
rgName=yourrgname

az acr token credential generate -n sample-token -r $acrName -g $rgName --expiration-in-days 90 --password1

However, if you change the name of the token to SampleToken or sampletoken, everything works as expected.
To Reproduce
Execute the following commands:
acrName=test1234
rgName=rg-1234
az acr scope-map create -n scope-read-everything -r $acrName -g $rgName --repository content/read metadata/read
az acr token create -n sample-token -r $acrName -g $rgName --no-passwords true --scope-map scope-read-everything
az acr token credential generate -n sample-token -r $acrName -g $rgName --expiration-in-days 90 --password1

Last command will fail with:
(ResourceNotFound) The resource smaple-token could not be found.
Code: ResourceNotFound
Message: The resource smaple-token could not be found.

Expected behavior
Credential should be generated.
Environment summary
macOS-12.0.1-x86_64-i386-64bit, Darwin 21.1.0
Python 3.9.9
Installer: PIP

azure-cli 2.30.0

Extensions:
k8sconfiguration 0.2.1
connectedk8s 1.1.3
log-analytics-solution 0.1.1
k8s-extension 0.2.1
aks-preview 0.5.42
resource-graph 1.1.0
containerapp 0.2.0
application-insights 0.1.13
account 0.2.1
connectedmachine 0.3.0

route to service team

Hi @ThorstenHans it seems that there was a typo in your command, based out of the output
The resource smaple-token could not be found.
Perhaps the smaple-token should be replaced by sample-token?

Yeah the typo was just here in the issue, I can re-verify this evening CEST
https://thorsten-hans.com

From: gildardogmsft @.>
Sent: Saturday, December 4, 2021 12:04:14 AM
To: Azure/azure-cli @.>
Cc: Thorsten Hans @.>; Mention @.>
Subject: Re: [Azure/azure-cli] [ACR]: Generate credential for token fails if token name contains a dash (-) (Issue #20538)
Hi @ThorstenHanshttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FThorstenHans&data=04|01||eab62a0468d64483f03008d9b6b139e7|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637741694559863243|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=1FFdkygYz%2B1ERHLYtbQJwhxBaZ1kQq37JC3oea9aNsc%3D&reserved=0 it seems that there was a typo in your command, based out of the output
The resource smaple-token could not be found.
Perhaps the smaple-token should be replaced by sample-token?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fissues%2F20538%23issuecomment-985899535&data=04|01||eab62a0468d64483f03008d9b6b139e7|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637741694559863243|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=mrP8XutWm0oK4xoDSjn5AnNJW6y3RA35P7jIHNw0iM4%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAACXL7E5C7SXN7GDLWO73R3UPFEG5ANCNFSM5I667E3A&data=04|01||eab62a0468d64483f03008d9b6b139e7|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637741694559873201|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=y7NcQMq1T95K3FwW07v%2BgB3VCugfdh5rTbCX8WxuMV0%3D&reserved=0.

@gildardogmsft you were right. I had a typo locally too. My bad!
Sorry, and thanks for pointing me to this one.


Typo in Readme

Hey cool package, thanks for sharing
Just saw a typo in the Readme, so here is a pr fixing that.
Keep up the good work!

Pull Request Test Coverage Report for Build 6

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

Totals

Change from base Build 3:
0.0%

Covered Lines:
48

Relevant Lines:
49

💛  - Coveralls

Thanks!


Add Flasher feature to upload arbitrary HEX images

Besides hooking the Flasher up to an online Clouduboy session (#10), add a UI (practically a browse and Upload! button :) ) to be able to upload arbitrary local HEX files to an Arduboy.
The image should, obviously be compiled for the device but this would make anything from local development to flashing HEX-es downloaded from the forum much easier, since the Flasher is already easily accessible from the tray.

Fixed with 311d436cade51cb4617ff53c6c20cade35afb770.


I'm testing the game with the not official version and is opening steam when I launch the game

This makes my controller not work at all.
Any fix to make steam stop launching when I open the game using the Fps unlock launcher?
Thanks in advance.

buy the game

I'll add a toggle to disable the auto-steam startup in the next version.

If you have a pirated copy of the game then you don't need to worry about EAC by default... So no need to run it through the patcher.
Launch the game then the patcher and it'll hook into the game process automatically, just hit No when asked if you want to restart the game because it's already running.
Or am I misunderstanding the issue?

I'm using a not official version of the game, and it doesn't open steam.
It's not this program, it's the crack you're using.

Added with v<IP_ADDRESS>


Flowing async contexts

Would you be open to merge support for flowing async context?
We have an internal wrapper that enables this for one of the other C# Zipkin libraries.
This allows us to do the same kind of using blocks as you do here, but instead of passing around the spans and client etc. it's all ambient, much like TransactionScope works.
It uses LogicalCallContext/AsyncLocal under the hood.
Or do you prefer to have a more explicit API where all the different elements are passed around manually?
Our API looks like this, all the span state etc is handled by the async context.
https://github.com/rogeralsing/ElasticTraceLogging/blob/master/Demo/Program.cs#L37
(Although that public repo is very dated)

Hi, we also use AsyncLocal https://github.com/clearctvm/zipkin.net/blob/master/src/Zipkin/TraceContextPropagation.cs
And the API usage ends up very similar to the one you use.

Awesome! thanks for the quick answer, I'll take this for a spin then and see if we can use it to replace ours


Add support for cron triggers

Adds support for cron triggers (resolves #53).
I currently need some inspiration for handling an undefined scheduled event in the shim.mjs

@Randoooom - this is great, thank you for working on adding scheduled event triggers.
I think we should still include waitUntil in the API, but it will require updating more code to include the ctx object into the function signature. I'd suggest taking a look at the docs for this function: https://developers.cloudflare.com/workers/runtime-apis/scheduled-event#syntax-module-worker
It might seem more complicated at first glance with the old implementation in workers-rs since it was leftover from a prior implementation where the EventListener format vs. modules
Let me know if you have any specific request for guidance or commentary on this while its in review. You can also join us on our Discord: https://discord.com/invite/cloudflaredev, where the team can more continuous conversation with you.

Oh yea, now I see I might be very stupid: I already implemented waitUntil but instead of using ctx I used the root object.  Keep at it, and let me know how we can help.

Just resolved the generation of the shim.mjs.
I'm not sure if there is a better variant, but this is working at the moment:
    let shim_content = format!(
        r#"
import * as imports from "./{0}.mjs";

const fetch = imports.fetch;
const scheduled = imports.scheduled;

export * from "./{0}.mjs";
export default {{ fetch, scheduled }};
"#,
        bg_name
    );

During my process of fixing this merge conflict, I accidentally managed to squash your commits. But this has been merged, thank you @Randoooom.


Register ContinuousTimeMarkov: 0.2.0

Registering: ContinuousTimeMarkov
Repository: https://github.com/tpapp/ContinuousTimeMarkov.jl
Version: v0.2.0
Commit: 31396f76af040c50e35eaa1e1ef2671b793629d2
Proposed by: @tpapp
Reviewed by: @tpapp
Reference: https://github.com/tpapp/ContinuousTimeMarkov.jl/commit/31396f76af040c50e35eaa1e1ef2671b793629d2#commitcomment-33258951

Consider enabling TagBot to make sure the release is persistent in your repo, see https://discourse.julialang.org/t/ann-tagbot-creates-tags-and-releases-for-your-julia-packages-when-theyre-registered/23084


Paste without formatting

Hello
We like this WYSIWYG editor and it lacks only 2 options.

Paste without formatting
Remove formatting button in toolbar

Can you add these so that we can actually use it ? We need this feature as a lot of our users are going to copy-paste stuff in this editor from word files / web but we need to save it as text without formatting.

I've implemented the first point here;
And the second at the same lines :)
Soon in a release.

:+1: Thanks for this! Works a charm =)

Is this in release stage yet? I am using your editor for "Support Ticket" system (because its mega light), but as users post errors or messages from various web services, a lot of it becomes unreadable :(
I tried to use the version from git, but custom configs wouldnt work then, it was ignoring any parameter i included.

Hum... i don't have release the v2, but if you build from master it should be works.
Open a new issue for that.

I've just released the v2.0.0-beta.0 if you want check that the bug is correctly fixed.
Thanks!

:+1: woo! I will check out tomorrow on my site and see if it is fine, if any problems I will create a new issue.


FileNotFoundError on broken symbolic link

upload-batch fails when it encounters a broken symbolic link
Command Name
az storage blob upload-batch
Errors:
[Errno 2] No such file or directory: '/home/brbroll/current-target/inspection/lf-vs-human/labels'
Traceback (most recent call last):
python3.7/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 603, in execute
    raise ex
cli/core/commands/__init__.py, ln 661, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 652, in _run_job
    cmd_copy.exception_handler(ex)
...
storage/v2018_11_09/blob/blockblobservice.py, ln 453, in create_blob_from_path
    count = path.getsize(file_path)
usr/lib/python3.7/genericpath.py, ln 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/home/brbroll/current-target/inspection/lf-vs-human/labels'

Environment Summary
Linux-5.2.9-arch1-1-ARCH-x86_64-with-arch
Python 3.7.4
Shell: bash

azure-cli 2.0.71 *

@brollb Thanks for your issue, @Juliehzl could you please take a look?

add to S171

@brollb Could you please show me the specific parameters you used? And have you confirmed the existence of the path /home/brbroll/current-target/inspection/lf-vs-human/labels?

Because there is no reply to this question for a long time, I will close it temporarily. If you have any questions, please feel free to let us know.


Model defaults to version 2.1 even when specified to claude-2

Hello and thank you for providing access to the SDK and Claude APIs.
Two notes:
1. Pydantic Versioning:
The Anthropics SDK currently has a hard dependency on Pydantic version 1.0, which causes other modules, of which are dependent on higher versions, to break.
2. Model Versioning in Completion API:
When using the Python SDK's completion API, it appears that the specified model version is not being honored. Despite selecting "claude-2" as the model, the API defaults to version 2.1.
Below are the relevant version details and execution code:
Version Information:
% conda list | grep anthropic
anthropic 0.7.4 pyhd8ed1ab_0 conda-forge

Execution Code:
completion = self.anthropic.completions.create(
    model="claude-2",
    max_tokens_to_sample=4096,
    prompt=final_prompt,
)

Response:
completion.model
'claude-2.1'

Pydantic 2 is suppoted now - what have you the impression it wasn't?
Claude-2 is now an alias for Claude-2.1
On Sat, Nov 25 2023 at 6:12 PM, Kasra Rasaee @.***>
wrote:

Hello and thank you for providing access to the SDK and Claude APIs.
Two notes:
1. Pydantic Versioning:
The Anthropics SDK currently has a hard dependency on Pydantic version
1.0, which causes other modules, of which are dependent on higher versions,
to break.
2. Model Versioning in Completion API:
When using the Python SDK's completion API, it appears that the specified
model version is not being honored. Despite selecting "claude-2" as the
model, the API defaults to version 2.1.
Below are the relevant version details and execution code:
Version Information:
% conda list | grep anthropic
anthropic 0.7.4 pyhd8ed1ab_0 conda-forge
Execution Code:
completion = self.anthropic.completions.create(
model="claude-2",
max_tokens_to_sample=4096,
prompt=final_prompt,
)
Response:
completion.model
'claude-2.1'
—
Reply to this email directly, view it on GitHub
https://github.com/anthropics/anthropic-sdk-python/issues/255, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFL6LTZBQYGX4E4VVXLF5DYGJ3NVAVCNFSM6AAAAAA72MZPBSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTAOBSGQ4DIMY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thank you for your response and reaching out to us.
We are also interested in testing Claude-2.0. We've noticed that Claude-2.1 demonstrates different responses, particularly on controversial topics such as nonhuman animal beings. While these differences are truly appreciated, we would also like to evaluate Claude-2.0.
Is there a way to access and test this specific version? if not, we understand.
Apropos of  Pydantic 2.0, we suspect there might be an issue with its compatibility on ARM versions. Could this be the case? see below. (perhaps the channel order needs to be changed or a new package channel is required?)
(alethic-processor) % conda install anthropic
Retrieving notices: ...working... done
Channels:
 - conda-forge
 - defaults
 - pytorch-nightly
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/kasrarasaee/miniconda3/envs/alethic-processor

  added / updated specs:
    - anthropic

The following NEW packages will be INSTALLED:

  anthropic          conda-forge/noarch::anthropic-0.7.4-pyhd8ed1ab_0
  anyio              conda-forge/noarch::anyio-3.7.1-pyhd8ed1ab_0
  distro             conda-forge/noarch::distro-1.8.0-pyhd8ed1ab_0
  exceptiongroup     conda-forge/noarch::exceptiongroup-1.2.0-pyhd8ed1ab_0
  h11                conda-forge/noarch::h11-0.14.0-pyhd8ed1ab_0
  h2                 conda-forge/noarch::h2-4.1.0-pyhd8ed1ab_0
  hpack              conda-forge/noarch::hpack-4.0.0-pyh9f0ad1d_0
  httpcore           conda-forge/noarch::httpcore-1.0.2-pyhd8ed1ab_0
  httpx              conda-forge/noarch::httpx-0.25.1-pyhd8ed1ab_0
  hyperframe         conda-forge/noarch::hyperframe-6.0.1-pyhd8ed1ab_0
  sniffio            conda-forge/noarch::sniffio-1.3.0-pyhd8ed1ab_0

The following packages will be SUPERSEDED by a higher-priority channel:

  pydantic           conda-forge/noarch::pydantic-2.5.2-py~ --> conda-forge/osx-arm64::pydantic-1.10.13-py311h05b510d_1

Proceed ([y]/n)?

Have you tried passing model='claude-2.0'?
Perhaps Pydantic 2 doesn't have ARM binaries available on Anaconda? You may need to request them. Some relevant links I found:

https://anaconda.org/conda-forge/pydantic
https://github.com/pydantic/pydantic/discussions/4699

My pleasure!
I'd appreciate it if you could open an issue on the pydantic project suggesting that they have explicit Linux ARM support, and sharing your experience and workaround.


[bug] mixin degradation from 0.9 to 0.10

Hello, @Peefy hope you are doing well.
I've noticed a weird behavior which certainly looks like a bug:
protocol StringProtocol:
    s: str

mixin StringMixin for StringProtocol:
    add = lambda pref: str {
        pref + s
    }

schema String:
    mixin [StringMixin]
    s: str
    add: (str) -> str

s1 = String { s: "hello" }
s2 = String { s: "world" }

output = {
    s1_add: s1.add("foo ")
    s2_add: s2.add("foo ")
}

Produces:
s1:
  s: hello
s2:
  s: world
output:
  s1_add: foo world
  s2_add: foo world

Though there should've been foo hello and foo world, in other words we get a singleton mixin function set by the latest type initiation.

@Peefy Hello there, could you please clarify if this is a bug?

Thank you :+1:


Option for OP's to send commands from discord

We are now running your mod on our 1.14 playthrough and its working great (apart from datapacks spamming hidden advancements...).
But one of the features we are missing is being able to send commands to the server via discord. We very often used this for whitelisting more players or profiling without having to join the server/opening up the server console.

I second this request.
I suggest looking at the way it's done in Chikachi's DiscordIntegration mod.
There's a list of Discord user IDs allowed to use commands in the config. For each user, you can add a command that discord listenes to and another command that's then sent to the server.

Thanks for the idea. I will look for this awesome feature as soon as possible.
Is it vanilla advancement or only added advancement which spam hidden advancement ?
Perhaps could you give me the name of the data pack? So I can add a config field to block some mods advancement.

The problematic one was from the Multiplayer sleep Datapack. I think we got it from here: https://vanillatweaks.net/picker/datapacks/ .
It spammed
kjmaster1 has made the advancement multiplayer_sleep:sleep.
about 100 times.

Everything added in 1.0.3.
Feel free to update by downloading the mod in curseforge.
If you have new features idea or if you find some bug open a new issues :+1:


Add support for running before-commit with pypy

Basically be able to also do pypy3 -m "before-commit".
Additionally testing with tox for pypy should be supported and CI should test against, at least, one version of pypy.

Blocked by https://github.com/yaml/pyyaml/issues/531 .


in function reactive, i find useless code

What problem does this feature solve?
i find reactive function declare belows
export function reactive(target: object) {
// if trying to observe a readonly proxy, return the readonly version.
if (target && (target as Target)[ReactiveFlags.IS_READONLY]) {
return target
}
return createReactiveObject(
target,
false,
mutableHandlers,
mutableCollectionHandlers
)
}
i think if (target && (target as Target)[ReactiveFlags.IS_READONLY]) {     return target   } is useless, want to delete
What does the proposed API look like?
export function reactive(target: object) {
return createReactiveObject(
target,
false,
mutableHandlers,
mutableCollectionHandlers
)
}

The use of that piece of code is explained in the comment directly above it.

The use of that piece of code is explained in the comment directly above it.

The use of that piece of code is explained in the comment directly above it.

i think the code above i mentinoned is useless, because in function createReactiveObject will solve the situation that if trying to observe a readonly proxy, return the readonly version, becasuse in createReactiveObject , except readonly() on a reactive object,
as long as the target is a proxy, the function createReactiveObject will return the target, so the code is repleat, and when i delete
the code above i mentioned, when i run 'npm test', it can pass and has no errors

The use of that piece of code is explained in the comment directly above it.

i think the code above i mentinoned is useless, because in function createReactiveObject will solve the situation that if trying to observe a readonly proxy, return the readonly version, becasuse in createReactiveObject , except readonly() on a reactive object,
as long as the target is a proxy, the function createReactiveObject will return the target, so the code is repleat, and when i delete
the code above i mentioned, when i run 'npm test', it can pass and has no errors


fixed auto-pull script

PR-Codex overview
This PR focuses on improving the workflow for checking if a branch exists before creating a pull request.
Detailed summary

Added a Python script (py/is_branch_exist.py) to check if a branch exists.
Updated the workflow file (releases.yml) to use the Python script instead of the git ls-remote command.
Added code to write the result of the branch existence check to the environment file.
Modified the create-pull-request step to use the updated environment variable.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@yegor256 This pull request is aimed at fixing the existence check of the branch in the home repository. Before the fix, this check was working incorrectly.


Cavern survival bug

When i trying to defeat Glacian in Cavern survival - after 20-30 seconds my hero begins to act very strange eg. running into walls and doing not he must to do. did see this bug with other players.
Some time (if i change code) Glacian becomes untouchable - no orces or  my skeleton wants to attack him until timeout. it begins in 40 seconds and last till 120.

Fixed; invisibility and hide, when stacked, weren't reverting to an unhidden state properly. Now each cancels the other correctly when first applied.


Evaluate 3.2.1

https://github.com/egouldo/EcoConsPreReg/blob/b5d4ed469c4ceb09c2f57db28f570960785baea0/analysis/preregistration_template.Rmd#L180-L183

@hannahsfraser : HF- this is great. Only slight concern is the deceptively difficult task that last sentence represents

Definitely difficult. I will see how this one goes in the testing and evaluation with the vefmap project... and raise an issue to double check this down the track.

f753664e0919c0cb04295fbb02aa0bf0a9a4827f


Restrict using empty init for unbounded streams

Purpose

$subject

Fixes #34966
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

We need to change the base @pcnfernando


feat(quantic): add facet manager component

https://coveord.atlassian.net/browse/SFINT-3827
This PR adds the QuanticFacetManager component. In a nutshell, it allows facet reordering by the Dynamic Navigation Experience (DNE).
How does it work?
First, the facets declared inside the c-quantic-facet-manager element are stored in an unnamed slot. Upon rendering, the facet elements are moved to a host element (which has lwc:dom="manual" to allow the facet manager to append child elements). When the facet manager state changes, we reorder the facets by re-appending them in the host element.
To ensure correct spacing between facet elements, the facet manager wraps each facet in a div element with a predefined bottom margin. But, a custom wrapping element can be defined using the itemTemplate slot. In such case, the facet manager will clone this custom element to wrap each facet. The custom element is optional and can be defined this way:

What's missing?

end to end tests

This is very cool!


expression to select subset of output to display in view

We provide a rendered view of the output (as markdown) in the output payload. Would it be possible to have an expression to select that subfield and render it instead of the output?

👍 If I understand correctly, this request is related to #786 - looking for the ability to display a specific field in the output rather than the entire output.

yes could be a convention or a configuration.


Using vmaCreateBuffer will cause Development build renderdoc output invalid warining message.

Description

I'm using VulkanMemoryAllocator to help me manage the memory when using Vulkan and I'm also debugging some hangs when using renderdoc to capture my game, so I'm using the version compiled by myself.
Then I found the renderdoc will output some message like Truncating memory size %llu to dedicated buffer size %llu for %s, after debugging, it seems this warning is invalid when using vmaCreateBuffer to create buffer. Here is what I found:

VMA call vkCreateBuffer with the exact size passed by user, let's see we are creating buffer with size 500.
VMA check buffer memory requirements, in my computer, it returns alignment with 256 and with size 512.
VMA use this memory requirement size 512 to allocate memory, the arugment will pass buffer object.
Renderdoc hook the vkAllocateMemory and check memory size is same to buffer size, then output the debug warining message.

Since Vma has already done the memory requirement check, so I think Serialise_vkAllocateMemory could check if the memory allocate size is already meet the requirement for the dedicated buffer creation and not to output warning message?
Steps to reproduce

Using vmaCreateBuffer from  VulkanMemoryAllocator to create buffer with size not align to memory requirements. For example, if the buffer memory requirements need alignment of 256, create the buffer with size 500, the you might get this message in output.

Environment

RenderDoc version: Build from tag v1.24
Operating System: Window 10
Graphics API: Vulkan 1.1.0

Your report does not clearly outline what the actual bug is. You list a log message which is irrelevant and the log is intended for RenderDoc developers only, it is not user facing and you should not be reading it or doing anything with it.
Is this causing a crash? what other misbehaviour is the actual bug? Your steps to reproduce are also incomplete since you do not provide any information about the details of the buffer and its creation info, which may easily be relevant.
Please outline what the actual problem you observe is and complete steps to reproduce it.

It actually doesn't cause crash or misbehaviour, it only print a invalid log message when using development RenderDoc.
So I will close this issue since it won't affect any user.
The pure Vulkan step to reproduce is:

vkCreateBuffer, doesn't need any special create info, just use a unaligned size, for example 500, so the creation info could be this:

VkBufferCreateInfo bufferInfo = {};
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
bufferInfo.size = 500;
bufferInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
vkCreateBuffer(device, &bufferInfo, nullptr, buffer);

vkGetBufferMemoryRequirements to get the memory requirement size for this buffer, for example it may return 512.

VkMemoryRequirements memReq = {};
vkGetBufferMemoryRequirements(device, buffer, &memReq);

vkAllocateMemory to allocate memory bind to buffer later, but with struct VkMemoryDedicatedAllocateInfoKHR to pass buffer object:

VkMemoryDedicatedAllocateInfo dedicatedAllocInfo = {VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO};
dedicatedAllocInfo.buffer = buffer;

VkMemoryAllocateInfo allocInfo = { VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO };
allocInfo.memoryTypeIndex = FindMemoryTypeIndex(buffer, memReq);  // the type index is not important here
allocInfo.allocationSize= memReq.size;
allocInfo.pNext= &dedicatedAllocInfo;

VkDeviceMemory memory = VK_NULL_HANDLE;
vkAllocateMemory(device, &allocInfo, nullptr, &memory);

Then RenderDoc will get buffer from VkMemoryDedicatedAllocateInfo and get size from the buffer, in this case, it will get 500, and compare to memory size which is 512, then print the log message like Truncating memory size 512 to dedicated buffer size 500 for 1234567. But in fact, the memory size and buffer size is well handled by VMA.
It is the VMA logic to create buffer in my case, the original post has put on the source code link to reference to.
Hope it will give a help for other developers get this log message when using self built RenderDoc.

Even if log messages are incorrect that is not a bug, and this log message is correct so there is certainly no problem here.
The log is for RenderDoc developers only and it is deliberately not visible to users since the messages are only intended to be interpreted by those familiar with the RenderDoc codebase, it is not relevant to anyone who is using RenderDoc.