Python 2.7 support

There is no mention of this in the README so I'm guessing it's unsupported but I'm unable to get this package working in Python 2.7.10 (which I unfortunately have to use).
I installed through pip and initially had an import error where it was failing to import enum so then I did a pip install enum and tried again but the script is now failing with AttributError: 'module' object has no attribute 'unique' in reference to the enum module.

Yeah, I didn't make any effort towards backwards compatibility when I wrote
this. At the same time there isn't a ton of code. I'm happy to take a pull
request that adds py2k support, but it's not something I have any interest
in doing. Sorry.
On Sun, Sep 27, 2015 at 20:38 Michael Leonard<EMAIL_ADDRESS>wrote:

There is no mention of this in the README so I'm guessing it's unsupported
but I'm unable to get this package working in Python 2.7.10 (which I
unfortunately have to use).
I installed through pip and initially had an import error where it was
failing to import enum so then I did a pip install enum and tried again
but the script is now failing with AttributError: 'module' object has no
attribute 'unique' in reference to the enum module.
—
Reply to this email directly or view it on GitHub
https://github.com/ppannuto/python-saleae/issues/5.

Understandable, I wouldn't either if I didn't have to. With that said, it doesn't look like too difficult of a change to make. Would you be opposed to a pull request that converts the enums to dictionaries? A few of the other changes I came across are:

A try-except block for the bytes() function, in Python 2.7 this function doesn't have the format argument and I believe it defaults to UTF-8 anyways.
In the demo function, do an initial check of the Python version, if it is less than 3 set input = raw_input. In Python 2.7 the input function did something very different but the raw_input function behaves essentially the same.

On Tue, Sep 29, 2015 at 12:06 AM Michael Leonard<EMAIL_ADDRESS>wrote:

Understandable, I wouldn't either if I didn't have to. With that said, it
doesn't look like too difficult of a change to make. Would you be opposed
to a pull request that converts the enums to dictionaries?

Don't feel strongly about this, but anything wrong with just adding a
dependency on the enum34 package? Less work for you.
http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python

A few of the other changes I came across are:

A try-except block for the bytes() function, in Python 2.7 this
function doesn't have the format argument and I believe it defaults to
UTF-8 anyways.

Sounds good

In the demo function, do an initial check of the Python version, if
it is less than 3 set input = raw_input. In Python 2.7 the input function
did something very different but the raw_input function behaves essentially
the same.

I've done that before w/out issue. Sounds good.

—
Reply to this email directly or view it on GitHub
https://github.com/ppannuto/python-saleae/issues/5#issuecomment-143938198
.

Good find on enum34, I had installed enum which would explain why it isn't working at all. I'll check that out.

ConnectionRefusedError is still undefined in Python 2.7.
Not exactly a showstopper, but it can be misleading to newbies.


[for-each] has-own-prop issue node

possible solution for https://github.com/mzabriskie/axios/issues/436

Coverage remained the same at 93.947% when pulling 077153a0a73cceeba917a985078319b5a8e9be48 on tony-kerz:tk/has-own-prop into 755a9b345953b1eb08f18ca1bc7c5b54cedf9858 on mzabriskie:master.

I've just replaced Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call (@4c4e648)

I also fixed the test, which wasn't actually testing the changes the PR introduced (b8f6f5049)


[Deque Analysis] Reorder buttons in Edit Item / Bitstreams forms are not keyboard accessible (Critical Issue)

Critical: This issue results in blocked content for people with disabilities, and will definitely prevent them from accessing fundamental features or content. This type of issue puts your organization at risk. Prioritize fixing as soon as possible, within the week if possible. Remediation should be a top priority.

Deque Analysis Summary
The buttons used to reorder multi-valued fields, or Bitstreams within an item are not fully keyboard accessible. Currently, while you can tab to the button, you cannot "click" it by pressing Enter.
(Issue ID: 470936) Edit Item, Bitstreams tab: Button to reorder bitstreams (in a bundle) is not keyboard accessible.
(NOTE: This is related to #1271, which is a similar issue related to reordering fields in the submission form.)
The full list of these issues (which includes links for more info) can be found at this link (requires login): https://axeauditor.dequecloud.com/test-run/0856438a-a19a-11eb-bc31-b7d5be387c86/issues?activeTab=dt-issue&page=0&pageSize=100&sortField=ordinal&sortDir=asc&row=9&filter[severity]=4&filter[page_number]=12&filter[page_number]=13&filter[page_number]=14&filter[page_number]=15
Possible solutions
As mentioned in https://github.com/DSpace/dspace-angular/issues/1271#issuecomment-965575328

... we may want to consider whether there's a way to more easily make these reorder buttons more accessible by using arrow keys to reorder the list. Here's an example of what I'm talking about with regards to using arrow keys to sort a list of items: https://medium.com/salesforce-ux/4-major-patterns-for-accessible-drag-and-drop-1d43f64ebf09#0303 (And another example of the same idea: https://www.barrierbreak.com/can-drag-and-drop-be-made-accessible-yes-it-can-be-in-different-ways/)

More Information / Tools

Related to #1271 and may be solved in a similar way.
Consider using Deque's free Chrome plugin to check your work

Atmire would like to claim this issue as well as https://github.com/DSpace/dspace-angular/issues/1270 and https://github.com/DSpace/dspace-angular/issues/1191, and refactor this page to solve them all

@tdonohue This will take about 24hrs


Dogecoin-qt hangs up closing sometimes

I'm using dogecoin-qt version 1.8.1 under Gentoo linux. Sometimes, on closing the client, the "Dogecoin core shutting down..." window just stays open. If I close that, the tray icon is still there. When I click on the tray icon, the client window opens again, but it says that the wallet has not been loaded. The network indicator indicates 10 connections (I'm running a full node).
2015-03-21 22:22:54 Requesting shutdown
2015-03-21 22:22:54 Running Shutdown in thread
2015-03-21 22:22:54 opencon thread interrupt
2015-03-21 22:22:54 msghand thread interrupt
2015-03-21 22:22:54 addcon thread interrupt
2015-03-21 22:22:54 net thread interrupt
2015-03-21 22:22:54 dumpaddr thread stop
2015-03-21 22:22:54 Shutdown : In progress...
2015-03-21 22:27:55 Stopping thread

(the "Stopped thread" message which appears if the client exits normally doesn't appear)
My configuration looks like this
addnode=<IP_ADDRESS>
addnode=<IP_ADDRESS>
addnode=<IP_ADDRESS>
addnode=<IP_ADDRESS>
addnode=<IP_ADDRESS>
addnode=<IP_ADDRESS>
addnode=doge.cryptoculture.net
addnode=doge.netcodepool.org
addnode=dogepool.pw
daemon=1
listen=1
server=1
#rpcport=22555
rpcallowip=<IP_ADDRESS>
rpcallowip=<mylocalnetwork>
rpcssl=0
rpcuser=suchuser
rpcpassword=muchpass
maxconnections=100

Probably not really related to the issue, but you should remove those addnode entries. They seem to include more than a few that are certainly not online anymore.
I'll have a look at the non-stopping threads.


Suggestion to updage the docs regarding the game's pre-reqs needing outside installation

My first attempts to get this working on a dedicated server machine were failures. Turns out that the game requires Microsoft Visual C++ 2015-2022 runtime as a pre-req to run. I kept getting exit code -1073741515 when trying to launch the game. If you are trying to get this running on a dedicated WindowsGSM server that does not have Steam on it, you'll either need to download and install that manually first, or install steam, install the base game, and launch it - the requirements will install on the actual game's first run.

thought it was common knowledge that on steam games the prerequesits are delivered with the serverfiles.
just click Browse => Server files, go to _CommonRedist and install everything in there even if you think you already have it.
but will add it to the readme :)

Honestly you're probably right, this is just the first time I've encountered it. I've been running several SteamCMD games off this dedicated server, this was the first one that needed outside pre-reqs.

No problem, always good to add those things to the readme.
Happy it works :)


Revert to previous ECS AMI

Getting stung by this issue with the latest ECS agent: https://github.com/aws/amazon-ecs-agent/issues/478 which causes the job instances to run out of disk space due to the logs growing too large. Reverting to AMI with previous version of ECS agent.

🍍

🍝

I don't use Sundial, but the AMI you used to use is also affected by aws/amazon-ecs-agent#488.


Deploing install: variables not seted

I have a trouble when deploy  my app to server.
I run compose install but variables apears invalid.
Take a look. jpg attached.
What is missing?
Laravel 5.8/AdminLTE 1.25.1

Is your Laravel installation a fresh copy, or did you migrated from older Laravel to 5.8? May the ServiceProvider needs to loaded if you run old configs.


Update wireshark.sh

Updated download URL.
appNewVersion is no longer necessary. but i left it commented out.

For what it's worth: I tried this change and it worked.

Thank you!


InvalidTemplate on user defined function input variable that has a space in its variable name

Bicep version
Bicep CLI version 0.26.54 (5e20b29b58)
Describe the bug
The following works:
  resource ruleAllowTagHTTPSInbound 'securityRules' = {
    name: 'AllowInboundHTTPS'
    properties: dnbnetfunc.buildNsgRuleInboundAllowServiceTag(
      1024,
      dnbnetvar.nsgRuleServiceTagsInbound.VirtualNetwork,
      dnbnetvar.nsgRuleServiceTagsOutbound.VirtualNetwork,
      dnbnetvar.nsgRuleDestinationService.HTTPS)
  }

This doesn't, assuming your user defined var has a space as a var name:
  resource ruleAllowTagHTTPSInbound 'securityRules' = {
    name: 'AllowInboundHTTPS'
    properties: dnbnetfunc.buildNsgRuleInboundAllowServiceTag(
      1024,
      dnbnetvar.nsgRuleServiceTagsInbound['Virtual Network'],
      dnbnetvar.nsgRuleServiceTagsOutbound['Virtual Network'],
      dnbnetvar.nsgRuleDestinationService.HTTPS)
  }

The diff:

A bicep build works, but starts to fail on a what-if with message:
ERROR: InvalidTemplate - Deployment template validation failed: 'The template resource 'nsg-sndbx-hellobicep-tst-001/AllowInboundHTTPS' at line '1' and column '21326' is not valid: Unable to parse language expression '_1.buildNsgRuleInboundAllowServiceTag(1024,variables('_6.nsgRuleServiceTagsInbound').Virtual Network,variables('_6.nsgRuleServiceTagsOutbound').Virtual Network,variables('_6.nsgRuleDestinationService').HTTPS)': expected token 'RightParenthesis' and actual 'Identifier'.. Please see https://aka.ms/arm-functions for usage details.'.

as you can see, it doesn't encapsulate Virtual Network in brackets and/or quotes anymore, so it just doesn't compile nicely.
Some part of the bicep build output:
"nsg::ruleAllowTagHTTPSInbound": {
              "type": "Microsoft.Network/networkSecurityGroups/securityRules",
              "apiVersion": "2023-09-01",
              "name": "[format('{0}/{1}', _1.buildNsgName(parameters('subnetPostfix')), 'AllowInboundHTTPS')]",
              "properties": "[_1.buildNsgRuleInboundAllowServiceTag(1024, variables('_6.nsgRuleServiceTagsInbound')['Virtual Network'], variables('_6.nsgRuleServiceTagsOutbound')['Virtual Network'], variables('_6.nsgRuleDestinationService').HTTPS)]",
              "dependsOn": [
                "nsg"
              ]
            },

To Reproduce
Make a var like this:
var nsgRuleServiceTagsInboundAndOutbound = {
  'Any Service tag (*)': '*'
  'App Service Environment': 'AppServiceManagement'
  'Autonomous Development Platform': 'AutonomousDevelopmentPlatform'
  'Microsoft Entra Domain Services': 'AzureActiveDirectoryDomainServices'
  'Virtual Network': 'VirtualNetwork'
}

... and navigate to a value while using it in your own user defined function, like i displayed earlier.

@erwinkramer Do you know if the template can be deployed successfully? I'm curious as to whether this is an issue with what-if or a more general ARM issue.

@jeskew  just tried it now on a stack deployment (not sure if that matters), so inside a DeploymentStackDeploymentFailed, im getting DeploymentFailed  with seemingly the same error:
Message: Deployment template validation failed: 'The template resource 'nsg-sndbx-hellobicep-tst-001/AllowInboundHTTPS' at line '1' and column '21042' is not valid: Unable to parse language expression '_1.buildNsgRuleInboundAllowServiceTag(1024,variables('_6.nsgRuleServiceTagsInbound').Virtual Network,variables('_6.nsgRuleServiceTagsOutbound').Virtual Network,variables('_6.nsgRuleDestinationService').HTTPS)': expected token 'RightParenthesis' and actual 'Identifier'.. Please see https://aka.ms/arm-functions for usage details.'.

@erwinkramer I think I may have found the root cause -- is the nsg resource created with a copy loop?


how to process messages from users

I have action buttons in Handler
public function addNumbers()
{
$this->chat
->message('Choose a provider')
->keyboard(
Keyboard::make()->buttons(
[
Button::make('🔵 Telegram')->action('addNumbersSalesmen')->param('name', 1),
Button::make('   WhatsApp')->action('addNumbersSalesmen')->param('name', 2),
])
)
->send();
}
How can I add the ability for the client to write his number for processing in the addNumbersSalesmen function?
I can’t yet figure out where this is in the documentation
please tell me
I write in Laravel framework

Hi, you should use a webhook to accomplish what you are saying
https://docs.defstudio.it/telegraph/v1/webhooks/overview


[question] Why can't we insert premade CSS classes in

));

const SocialIconList = () => (

    ...

      {generateSocialIcons} // here will insert the social icons markup in our component

);

I also try importing the classes (as a string) from other module. And some combinations. Nothing works :(. I'm out of ideas.
Thanks for your time 👍.

Currently this is not possible because CSS is static.
That's why we throw the "Only constants defined outside of the component scope are allowed here" error.
We are planning on adding support for dynamic values in the future but we want to make sure that whatever solution we come up with is fast – I will probably tackle this after #148 ships. You can subscribe to #81 if you want to stay updated.
For now I would use inline styles onMouseEnter it requires a bit of extra work but it is not complicated.
FWIW in your generateSocialIcons you are looping and outputting ${socialIconsClasses} which leads to duplication since that var contains all of the styles :)


Won't run in Terminal on my Mac, prob. wrong version of Java

Hi Devon,
I really loved your video about coding the timelapse plugin - it is exactly what I always wished for!
Today I wanted to try it for the first time. I shot an amazing timelapse of a sundown in my holidays, but the aperture changes are really distracting. Your plugin should smooth them out in no time :)
Unfortunately, when I try to run the file, I get an error message:
Exception in thread "main" java.lang.UnsupportedClassVersionError: proRAW : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I'm guessing that I'm running the wrong version of Java, but since I basically know nothing about Java, I was really hoping you could help me solve this issue - thanks a lot in advance!
All the best from Switzerland,
Lukas

See #11 , looks like you need to be using Java 8 for this. Just stopped by from YouTube, so not 100% sure.


Fixed #36 (Terminating a process after its execution does not work correctly)

I looked into how queues work in Laravel and found a similar process termination scheme that is very similar to my solution described in issue.
Link to code: this
This is due to the fact that such a constricted system is not able to track upper-level signals by itself.
I also made some improvements, if they need to be moved to a separate pull request, please let me know about it.

Could your experiment with ways to fix the graceful termination on PHP 8.2?

@freekmurze please review my pull request again

Seems like it still fails on PHP 8.2


RelationManager modal issue

Package
filament/filament
Package Version
v2.13.3
Laravel Version
v9.17.0
Livewire Version
v2.10.5
PHP Version
PHP 8
Bug description
In a RelationManager, when viewing or editing a relation first time, everything is fine. But if I close the modal and reopen it (edit or view), the table of the RelationManager is refreshing and I have the following error in console:

Steps to reproduce
No response
Relevant log output
No response

I assume this doesn't happen with all form components. For example, please test it with just a simple TextInput inside. Which components cause issues for you?

It seems that I have this issue with forms having FileUpload (SpatieMedia in my case). Quite similar to #2772

It's probably the same issue, all action modals are the same component

What do you mean by "Not planned" : no fix ?

Sorry the GitHub message for that is vague, I marked it as duplicate


Support for --bigendian true

Looking at the code here: https://github.com/drom/bitfield/blob/master/lib/render.js#L209
I don't see how setting --bigendian true does anything

True. This feature was requested but never been properly implemented. Do you plan using it?

Yes, that was my hope.

Hi @drom ,
I discovered WaveDrom by reading your interview with electronicdesign, that you posted recently on LinkedIn. I am part of a project that builds a document drafting framework (with focus on Technical Norms/Standards such as IETF, IEEE, ETSI etc.) and big-endianness is the dominant ordering in networking protocols. Often message descriptions as in the following picture are required:

Hence my interest in the bitfield library and especially on the big-endian feature. What would be your advice on how to progress best with this feature ?

It should be too hard. Let me try.

I ended up implementing 2 options in v1.3.1:

Horizontal flip -- hflip
Vertical flip -- vflip

You can see how they work here: https://observablehq.com/@drom/bitfield-testbox

Hi @drom ,
Thanks a lot for this update ! The options {compact: true, vflip: true, hflip: true} provide the rendering that is most often used in our standards. Very impressive your tool. We will implement a prototype in our platform. I will keep you posted.

@smnice looking forward to seeing your prototype.
Closing this ticket.


⚠ Mitsubishi has degraded performance

In 3473f7f, Mitsubishi (https://mitsubishimotorsid-mobileapp.com/app/login) experienced degraded performance:

HTTP code: 200
Response time: 17485 ms

Resolved: Mitsubishi performance has improved in b51153d after 7 minutes.


add ElasticsearchHttpAdminPolicy policy_templates

to add Advanced operation on ES additional permissions are required
Issue #, if available:
Description of changes:
New policy_templates proposed
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thanks for the PR. Could you describe your use case?

Hi @brettstack , in case a lambda function required to perform GET/PUT/DELETE action against an ES cluster there are no policy_templates .
Unfortunately, if you want to publish a function inside the AWs serverless repo you must use  policy_templates

Closing due to lack of response.


Proposal: Oklink sdk for kaiachain in Typescript

Description

This proposal is to create an oklink backend sdk for the kaiachian

Bounty track

Developer tool

Cool. We had a previous submission #15 here.
As per the rule, what would be your upgrades?

Cool. We had a previous submission #15 here.
As per the rule, what would be your upgrades/differentiation?

Handled proper error, modularise code and increased type enhancements,

Cool. Approved to proceed. Revert back with repo link.

Cool. Approved to proceed. Revert back with repo link.

https://github.com/PaulElisha/oklink-kaiachain-ts

Decent improvement. Approve for a 500 KLAY bounty payout.

Closing this issue because bounty has been paid. Open new one if you want to add updates.


Sagemaker User Profile - Add Execution Role Selector

What problem are you facing?
For provider-aws-sagemaker the UserProfile only allows a statically set IAM execution role under spec.forProvider.userSettings
How could Official AWS Provider help solve your problem?
Add the selector feature like spec.forProvider.userSettings.executionRoleSelector to allow matchControllerRef and matchLabels to be used.

Hi @jasondroz, thank you for bringing up this.
If you want to contribute we would appreciate it. Here is a guide about adding new ref and selector, if you have any questions feel free to ask.
And here is a current example, it is safer to use TerraformName instead of Type.


Portuguese

Any possibility to have the templates in portuguese?
Had some trouble to customize the templates, any tips that help me to customize the templates are welcome!

Report strings are in the xml files next to report templates.
There is no portugese resources in the software and it will set itself to English by default.
Workaround : You can set an other language in the settings (e.g. Spanish) and then you need to edit file ESP.xml next to the report template, and translate all the inside strings to portuguese.


[Model Request] Octopus-v2

⚙  Request New Models

Link to an existing implementation (e.g. Hugging Face/Github): https://huggingface.co/NexaAIDev/Octopus-v2
Is this model architecture supported by MLC-LLM? (the list of supported models) NO

Additional context

I think this model will perform well on mobile devices, and it's worth a try

Octopus is based on Gemma arch, so mlc-llm should work well

Thanks to Dr. Feng, I'll give it a try

I am also interested in this

That's okay

That's okay


Update signature using legacy algorithm (Fixes #8)

Sign all md files using legacy algo to keep old versions of dnscrypt-proxy happy. This also fixes reported issues with packaged version of dnscrypt-proxy on certain Linux distros (e.g. Fedora) that show different behavior compared to the original codebase.

This fixes #8


Facing some reliability issues

Hello everyone,
I don't know if reliability is a known issue, given the early preview of the service, but I'm facing such issue constantly.
I have a timerTrigger function that runs every few minutes, and it's still under development. I change something, add some logs or functionality, then upload it. Suddenly, the function "decides" not to run at all... no errors, no logs, and not even "Function started" message.
The problem is I don't know when it happens and how (no repro unfortunately), and the bigger problem is I don't have a "Please Run" option or at least "What's Wrong" option.
Can someone help me troubleshoot such issue when it happens?

What language is your function? What happens when you hit the "Run" button which allows you to run the function on demand? When you say "upload it" you mean you're not editing via the portal?

@mathewc, (1) I'm using Node.js, (2) haven't tried the "Run" button; maybe will have chance to try it the next time I face this issue, and (3) by "upload" I meant FTP, but I also edit via the portal when I want to tweak something or add debugging statements.

This still needs investigation. If you're not seeing this issue anymore please let us know.

@christopheranderson, I'm still seeing this and tried again just now.
The function is scheduled to run every 3 minutes. I modified it at 20:05 and got the message that says something like "reloading because the function was updated". Immediately after that it run (before 20:06) and myTimer.isPastDue was true; however, the function didn't seem to complete and didn't print any error (the context.log() I have).
I tried updating the function and enabling/disabling it, but didn't get the "reloading" message, and the function didn't run again, until the writing of this.
In addition, when I run the function manually using "Run" button, I get "Status: 503 Service Unavailable", not in "Output" box, but above it and in red.
Although I tried my best to make sure it isn't my code that causes this, it still might be something with my code, but whatever the reason is, I'm stuck with no option to debug or restart the function, or no visibility on what's going on.

Could you share your code and the json from the "Advanced Editor" on the integrate tab? Does this repro when you create a new function with the same code and settings? It's not something I'm able to easily reproduce. It'd be really helpful to have a look at your code/settings.

@christopheranderson unfortunately I can't share the code as it is, but will try to create something similar that reproduce the issue

That'd be great. Thanks! If you want to, you can also email me your function app name and I can look at the health of your functions from our backend as well. (chrande (at) microsoft (dot) com)

We need to try to repro this on current bits.

@TheBlueSky -- this issue is a couple of months old, have you continued having this problem?

@brettsam, yes, last time I tries was less than 3 weeks ago. I had some time, so I tried create something that simulate the issue I have. However, I came across many issue that I eventually gave up.

the editor does not allow me to copy and past.
uploading files from the UI results to an  infinite Open File dialogs; whether I selected a file or cancelled.
the function does not recompile after updating the script from UI.
once I forgot to upload a referenced file; like in require('./file.js');, but even after I uploaded it later, the function is still not seeing it.
I uploaded all the necessary NPM modules and I still receive "no such file or directory" for a file that is already there (part of some module).
sometimes out of the blue, without modifications from my side, the function decides that "manybe I'm running too often" and starts showing service unavailable (when I click run button)... once I had to deleted the entire function app and recreate it because I couldn't find a way to get rid of this error.
there are no troubleshooting or detailed log that shows why the function doesn't run on schedule, why it doesn't run at all, why doesn't recompile, and many other whys.

Those are just few that I encountered maybe in an hour trying to create a repro for this issue.

Sorry you ran into so many issues. A couple follow-ups --

If you weren't able to copy/paste in the editor, that may be a bug. What browser were you using?
When you say you were uploading files in the UI -- which UI were you using?
If you have an example of the script and the npm modules that were giving you problems, could you share those?

Hello @brettsam.

I tries in both, Edge and Chrome. I didn't face this issue that often and today I tried again and I was able to copy and paste. It's either me or Azure Functions were having a bad day at the time :)
Under the Function editor, "Code", there is an option that says "View files". When clicking this option, the list of files appears with 2 buttons beneath it. The right one is the one I meant.
You can see here a sample similar (in some way) to what I'm trying to do. Well, I'm not really trying to scrape Bing results; it's just a close enough sample.  See below the result of executing the function (that I provided the code for) in a 3-min schedule. As you can notice, the function ran once successfully, run the second time without completing, and then nothing happened until I gave up and disabled it (more than 20 minutes later).

    2016-08-13T15:37:50  Welcome, you are now connected to log-streaming service.
    2016-08-13T15:38:50  No new trace in the past 1 min(s).
    2016-08-13T15:39:00.025 Function started (Id=c2f28c3f-2be8-4225-bb99-8107944e540a)
    2016-08-13T15:39:01.057 http://www.bing.com/search?q=azure+functions
    2016-08-13T15:39:01.572 completed
    2016-08-13T15:39:01.666 Function completed (Success, Id=c2f28c3f-2be8-4225-bb99-8107944e540a)
    2016-08-13T15:40:50  No new trace in the past 1 min(s).
    2016-08-13T15:41:50  No new trace in the past 2 min(s).
    2016-08-13T15:42:00.005 Function started (Id=84524e3c-84ec-4a5c-b6fa-dfe688478dc5)
    2016-08-13T15:42:00.005 http://www.bing.com/search?q=azure+functions
    2016-08-13T15:43:50  No new trace in the past 1 min(s).
    2016-08-13T15:44:50  No new trace in the past 2 min(s).
    2016-08-13T15:45:50  No new trace in the past 3 min(s).
    2016-08-13T15:46:50  No new trace in the past 4 min(s).
    2016-08-13T15:47:50  No new trace in the past 5 min(s).
    ....

Hope this helps.

Sorry it took me so long to get back to this. I looked at your code and there's a couple of things that explain what you're seeing:

completedCount is a global variable. That means that every time the function runs, it's being incremented. And since you're checking for it to equal urls.length, it ends up working once and then never again (because it's greater than that now). If you add something like context.log(completedCount); inside your polling code, you can see that it never goes back to 0 (unless the host restarts).
Also, you're using setTimeout to check for completion. That will only ever run once -- I think you meant to use setInterval. And then you'd need to use clearInterval to stop it from running forever.

I think with these two things fixed everything should run as expected.

Closing this for now. If you continue to see issues, feel free to re-open and I'll take a deeper look. Thanks for the feedback!

@brettsam thanks for your assist and sorry for bothering you with my own bugs :)
For the other issue, I'll try to reproduce again when I have time and open new Issues when needed.


Fail to install

note-seq requires protobuf>=4.21.2,but tensorflow requires protobuf==3.20.x

How are you installing?  MT3 has its note-seq dependency pinned to 0.0.3, which has a less strict protobuf requirement: https://github.com/magenta/note-seq/blob/v0.0.3/setup.py


Restoring inventory from variable

Description
set {staffinv::%uuid of player%::inventory} to the player's serialized inventory works just fine, but when you restore the inventory using restore inventory of player from {staffinv::%uuid of player%::inventory} it doesn't do anything and prints out the error below.
Steps to Reproduce
command /sm:
	trigger:
		if {staffmode::%uuid of player%} is not set:
			set {staffmode::%uuid of player%} to true
			set {staffinv::%uuid of player%::inventory} to the player's serialized inventory
			wait 1 tick
			clear player's inventory
			message "Turned on"
		else:
			delete {staffmode::%uuid of player%}
			message "Turned off"
			restore inventory of player from {staffinv::%uuid of player%::inventory}

Expected Behavior
I expected it to actually restore the inventory.
Errors / Screenshots
https://paste.gg/p/anonymous/eafb559482d540ffb6990b4e633b6a89
Server Information
Server version/platform: Paper-143
Skript version: Skript 2.4.1
SkQuery version: SkQuery 3.6.5

hi , you can use
set {staffinv::%uuid of player%::inventory} to serialized contents of player's current inventory #for saving
and
set serialized contents of player's current inventory to {staffinv::%uuid of player%::inventory}
tell me if that worked ;)

This is not working in SkQuery 4.1.9

Same issue as mybe, nothing happens once it's triggered.

any updates on this?


scala file in jacoco report converted to java file in cobertura

I'm generating jacoco report to cobertura report with jacobo that contains some scala classes, and found all scala file are became same class name with java suffix in cobertura report.
Here's the sample:
sample jacoco xml report

  <sourcefile name="**ScalaApp.scala**">
     <line nr="7" mi="0" ci="2" mb="0" cb="0" />
     <line nr="9" mi="0" ci="5" mb="0" cb="0" />
     <counter type="INSTRUCTION" missed="0" covered="10" />
     <counter type="LINE" missed="0" covered="2" />
     <counter type="COMPLEXITY" missed="0" covered="3" />
     <counter type="METHOD" missed="0" covered="3" />
     <counter type="CLASS" missed="0" covered="1" />
  </sourcefile>

will be convert to cobertura xml report

class name='ScalaApp$' filename='ScalaApp.java' line-rate='1.0' branch-rate='0.0' complexity='3.0'

here's used build.gradle was used

plugins {
id "java"
id "application"
id "scala"
id "jacoco"
id "net.saliman.cobertura" version "2.5.2"
id "com.kageiit.jacobo" version "2.0.8"
}
import com.kageiit.jacobo.JacoboTask
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
compile 'com.google.guava:guava:21.0'
compile 'org.scala-lang:scala-library:2.11.8'
testCompile 'junit:junit:4.12'
testCompile 'org.scalatest:scalatest_2.11:3.0.1'
testRuntime "org.slf4j:slf4j-api:1.7.10"
}
mainClassName = 'App'
task hello {
doLast {
println "Hello World!"
}
}
jacoco {
toolVersion = "0.7.9"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination file("${buildDir}/reports/jacoco/jacocoHtml")
}
}
test.finalizedBy(project.tasks.jacocoTestReport)
project.tasks.create("jacobo", JacoboTask, {
it.jacocoReport = file("${project.buildDir}/reports/jacoco/test/jacocoTestReport.xml")
it.coberturaReport = file("${project.buildDir}/reports/cobertura/cobertura.xml")
it.srcDirs = sourceSets.main.java.srcDirs
})

@kageiit our project gairos-ingestion need this feature for test coverage. You can fix it when you have more time. Thanks!


Allow installation via pip

There are some things that this tool is required for now. An example is publishing universal packages. However, since this tool can't be installed through pip (or some other tool manager), we can't easily automate the installation of it on our machines.
Being able to run pip install vsts_cli or similar would make life significantly simpler.

You can install by running pip install vsts-cli.  I would recommend running that from a sandboxed python environment, so it doesn't have dependency conflicts with other packages.

That's great. Can we get this added to the docs in that case?

Adding this to the install guide right now, thanks everyone!


Delete XmonSimulator

This simulator has only delivered marginal improvement over cirq.Simulator(), and then only on some machines.
Functionality about only supporting some gates will come with the addition of gateset to device.

Fixes #1978

RIP


Fix number_of_states and number_of_pos_neg_clauses_per_label params validation

Right now both number_of_pos_neg_clauses_per_label number_of_states set to 0 or negative integer can be used to create an estimator.

Fixed with PR #122 .


Different search providers

I use DuckDuckGo and not Google so being able to switch search providers would be a nice addition.

Indeed. Web search being Google-only would absolutely be a non-starter for me on using this tool.


[Proposal/Experimental] :sparkles: AnimatedVectorDrawable was used to animate the header of the About screen.

Issue

close #none

Overview (Required)

The header of the About screen is now animated.
It is animated only once when the screen is opened.

Links

https://github.com/DroidKaigi/conference-app-2023/pull/1176

Movie (Optional)

Looks amazing!
Let me consult the designer about this. 👍

The designer said, "So cute! It looks good!" 🎉


Filter CIDRs in NDS response

These are filtered in istio-agent anyways, but this just makes it more
clear they are not supported. There should be no user facing change -
CIDR is not supported in DNS response before nor after this change
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
a6f9d0498001073a5ef757c67eacfbe15d5c14b0
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
a6f9d0498001073a5ef757c67eacfbe15d5c14b0
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-pilot-k8s-tests_istio

/test integ-pilot-k8s-tests_istio


Things like "Added" "Fixed" are not good for Commit Messages.
Link: Git Commit Messages
Normal Link: https://beams.io/posts/git-commit/
Happy Hacking and Happy Learning :)
Cheers,
Jerry

Hey, I think as long as you know what we mean, it's enough - but thanks anyway :) I will have a look at the page :)

Hey @Jeerrryyyy ,
thank you to mention this. In my personal opinion it's not the worst thing which could happen, but we'll think about it and change it in the future! 👍
_Klaro

If you see any commit messages, which should be better, just mention them here :)

Due to no further replies we decided to close this issue

Sure. Just wanted you to read the little article about commit messages.
Cheers


We Should Disable Copy When Multi-Selecting Blob Snapshots

Steps to reproduce:

Manage a blobs snapshots
Select multiple items
Copy
Paste them clipboard into an empty container

Actual result:
only one of the pastes succeeds. Initially I was confused as to what had happened. I then realized that only one succeeded because I was trying to paste the same file multiple times into the same place, which you obviously can't do.
This is TFS bug 591429.

I digress, you should ask the user what he wants:

Paste the latest snapshot
Paste all snapshots as individual blobs, with the snapshot time appended to the name

@Bartolomeus-649, Do you have an example use case? I'm not sure it would be that common but perhaps we can offer it in the future.

All lists should always support (unless it obviously doesn't make sense)

single click selections
ctrl + click to select several individual items in the list
shift + click to select ranges of items in the list
columns should be clickable for sorting (asc/desc), which should not affect current selection.
position active item based on keyboard input.

All operations should always operate on the current selections, no matter if it is a single item, several independent items or a range of items.
It has been like this in Windows since I started working with c application in windows in 1991.
Some of the principles at work here are;

The principle of least asonishment
you never know what the user wants to do, so provide flexibility in the way tools can be used, don't assume you can figure out all the use cases out there in the real world.
it's the application developers responsibility to take on crap from the end user, and by doing so making the life of the end user easier.


Allow theme inheritance

@linawolf discovered that the recent theme changes did no longer allow to extend other themes. For instance, the TYPO3 docs could extend the existing bootstrap theme and the Symfony docs can extend the RTD theme.
This PR introduces theme inheritance, which I think is the most modular way of allowing this (you no longer have to hardcode paths to vendor templates). Meanwhile, I also allowed a single theme to pass multiple paths.
The config now allows a couple variants:
$container->prependExtensionConfig('guides', [
    'themes' => [
        // current behavior: a theme with a single path. Result will be: theme path + default paths
        'bootstrap' => dirname(__DIR__, 2) . '/resources/template',

        // same, but with multiple paths
        'bootstrap' => [dirname(__DIR__, 2) . '/resources/template', ...],

        // extend from other templates. result will be: theme paths + parent paths + default paths
        'bootstrap' => [
            'extends' => 'parent-theme',
            'templates' => [dirname(__DIR__, 2) . '/resources/template'],
        ],
    ],
]);

We use a chainloader in phpDocumentor, this allows us to overwrite specific files and even extend files using the prefix functionally of twig. guides:: is the prefix for the base templates of this project for example allowing you to wrap the base template in another template.
It might be worth it to have a look at that.
https://twig.symfony.com/doc/2.x/api.html#loaders

@jaapio we already use the chainloader. wouter only introduces a new way to register the template paths with our application


Create an * resource that matches any model/field

This will make many things easier. Suppose you want to create an Admin role that has access to everything, or maybe allow access to everything from the global role to use denys instead of allows (switch to blacklisting since the default is whitelisting).

Just to clarify a little bit, this can be done already for model fields (by not specifying a field in the resource.) But the focus is on models, since there's no 'catch all' case for them.
I think maybe Any would be a better identifier than *.

Just to clarify a little bit, this can be done already for model fields (by not specifying a field in the resource.) But the focus is on models, since there's no 'catch all' case for them.
I think maybe Any would be a better identifier than *.

Yes, but Any should be like a resource that matches anything (fields and models). For example, if I need to allow everything, I can do this
allow ALL Any

or maybe I want to allow reads on everything:
allow READ Any

or maybe I want to allow MUTATE on every list field or non-primitive field
allow MUTATE Any

same for PUSH_TO and REMOVE_FROM
Also, checkout #65 because I think it's related to this issue.


Small bug in control.asm: wrong label "j:". It must be "_j:".

Small bug in control.asm: wrong label "j:". It must be "_j:".

Thanks! (How did you find this bug, by the way?) Fixed in 09b87e69f5

First parameter of macro HEADER is ignored, label j: not used anywhere therefore this bug has no effect. I found it by reading the source.


Make used branch/repository of osism/cloud-in-a-box configurable

Already possible by specifying the kernel parameter.
Please reopen when there are still open topics.


Change the order of attrs in products to_a

With the previous order in to_a whenever an array is created with the "all" method in ProductRepository the order of the attrs in the array's objects is mixed

Good suggestion, @ristovskiv ! :+1:


Click on Notification does not send Deep-Link

Describe the Bug
When music is playing, a click on the notification opens the app, but does not send a deep link. Therefore I cannot go to the song screen.
When clicking in browser on a link with trackplayer://notification.click, the app will open and receive the deep link.
Steps To Reproduce

Play a song
Listen for deep links via Linking.addEventListener("url, {url})
Click on Song-Notification

Environment Info:
Paste the results of npx react-native info
System:
    OS: macOS 11.5.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 820.59 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.22.7 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 6.14.15 - /usr/local/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.2 AI-202.76<IP_ADDRESS>86908
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.12 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: ^5.0.1 => 5.0.1
    react: 17.0.2 => 17.0.2
    react-native: 0.66.3 => 0.66.3
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Paste the exact react-native-track-player version you are using
2.1.2
Real device, iOS 15.2 and Android 9
How I can Help
Have you investigated the underlying JS or Swift/Android code causing this bug? -  No
Can you create a Pull Request with a fix? - No

@Ainias this seems more like an issue with you have deep linking configured in your app than how this package works. I'm closing this but if you can show me where I'm wrong I'll happily reopen it.

Facing the same issue here. When I call Linking.getInitialURL() or Linking.addEventListener, I receive null as response.

@jspizziri checking the code base I noticed the code that set the URI trackplayer://notification.click was removed a while ago (see MetadataManager on https://github.com/doublesymmetry/react-native-track-player/pull/1289), so that feature needs to be reimplemented.

@kaioduarte I'll reopen. A PR would be 💯 since you seem to have already located the issue.

Just to confirm, my understanding is that this is an Android only issue. I'll label it that way for now.


Fixed Postmark gem issues reported

Hi @tomazy
when you have some time, could you check out this branch? It contains fixes for issues users reported:

Inflector issue (you could not use symbols if hash container sub-objects like hash or aray)- https://github.com/wildbit/postmark-gem/issues/94
Email addresses issue - https://github.com/wildbit/postmark-gem/issues/95
Archive message stream endpoints - https://github.com/wildbit/postmark-rails/issues/80

hold on on this one, need to fix something

@ibalosh would you mind splitting this PR into individual ones please? I'm afraid we may need to bump the major version number for the changes to the HashHelper.

Hey @tomazy good point, will separate it out and fix the remaining test failures.

hey @tomazy
separated out all the updates and fixed the tests. Will send PR for hash helper later today. It works but I am looking if I could make it less intrusive.


IntelliJ Tiling Issue

I currently have the following tiling rule enabled with the intent of tiling the main IntelliJ IDEA window but not the popup modals (the main window always has a title similar to spring-hello-world - [~/Documents/Projects/spring-hello-world]):
chunkc tiling::rule --owner \"IntelliJ IDEA\" --except \".+ - \[.+\" --state float

This works immediately after a chunkwm restart, but when I open a modal and then close it, the main IntelliJ window floats and never tiles again. Is there something wrong with my rule? Or is this a bug?

Possibly related to #198.

Is this still relevant after #198 was implemented?

Just tested. It's still a problem. IntelliJ still floats and never tiles after a modal appears using the above rule.

Not sure if this is to be considered a bug in chunkwm or not. I don't use IntelliJ, so not sure how it manages its windows. I believe you just need some more tricky usage of the rule patterns to solve this.

I occasionally use Intellij IDEA CE 2017.2 and it tiles properly.  I cannot reproduce your bug.. What version of Intellij IDEA do you use?

@crisidev I'm using IntelliJ IDEA Ultimate 2017.1. The issue is not that it doesn't tile properly, it's that I can't make it tile properly while allowing modals to float. I don't want a "Are you sure you want to refactor this method? Yes/No" popup to tile to half my screen.

@jessemillar, gotcha.. sorry, I did't get the problem right.

@koekeishiya No such luck unfortunately. In the output below, 44397 is the modal I'd like to have float. 42441 is the main window.
44397, IntelliJ IDEA, Reformat File: application.properties
42441, IntelliJ IDEA, shopper-app [~/Documents/Projects/shopper-app] - .../commodities/src/main/resources/environmentConfig/gif-pick-commodities/gif-commons/dev/application.properties [commodities]

id: 44397
level: 0
name: Reformat File: application.properties
owner: IntelliJ IDEA
role: AXWindow
subrole: AXStandardWindow
movable: 1
resizable: 1

id: 42441
level: 0
name: shopper-app [~/Documents/Projects/shopper-app] - .../commodities/src/main/resources/environmentConfig/gif-pick-commodities/gif-commons/dev/application.properties [commodities]
owner: IntelliJ IDEA
role: AXWindow
subrole: AXStandardWindow
movable: 1
resizable: 1

@jessemillar @koekeishiya I found a rule which works for me. It's pretty similar to what @jessemillar suggested in his first post, but simpler. For me the \[ didn't seem to be picked up at all, so I went with this instead:

Found a better working pattern:
chunkc tiling::rule --owner \"IntelliJ IDEA\" --except \".+[.+\" --state float &

Found a similar solution.
There is a plugin to set custom title bar: https://github.com/mabdurrahman/custom-title-plugin
Throw some unique identifier in the title:
Project Title Template: <% if (projectDefaultTitle) { %>-PyCharm- <%= projectDefaultTitle %><% } %>
File Title Template: <% if (fileDefaultTitle) { %><%= fileDefaultTitle %><% } %>

Add rule:
chunkc tiling::rule --owner "PyCharm" --except "-PyCharm- " --state float


Cannot build with OSL enabled Cycles

Need to link against OSL libs

@trebconnell Can't you link against statically built cycles libs?
There has been some considerable changes on the Cycle side recently and except openvdb and tbb, everything seems statically linkable:
I also wrote a Github CI to build Cycles, maybe this can help you there: https://github.com/grische/cycles/actions/runs/240177182


Republish all published corporate information pages

This commit republishes all published corporate information pages to apply the change made in https://github.com/alphagov/whitehall/pull/3363.

I copied another data migration that did the same thing :)


Support parsing of async generators in non-async functions

This is a new syntax added in python3.7, so black can't verify that reformatting will not change the ast unless black itself is run with 3.7. We'll need to change the error message black gives in this case. @ambv any ideas?
Fixes #125.

Pull Request Test Coverage Report for Build 280

8 of 8 (100.0%) changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 95.13%

Files with Coverage Reduction
New Missed Lines
%

tests/test_black.py
1
97.46%

Totals

Change from base Build 274:
-0.03%

Covered Lines:
1758

Relevant Lines:
1848

💛  - Coveralls

Yeah I had some 8 hours to dive deeper into how this works in cpython itself, and it's the same thing. Await expressions still raise syntax error with this PR. So I think for the purposes of black this is sufficient

Let's do it.


dubList.gr hangs on typecheck

Running gr -t frontend/tests/regression/good/dubList.gr never seems to complete for me, is anyone else having the same issue?

I currently have to run tests after removing this file, otherwise they hang

It takes suspiciously long to type check on my machine, but it passes.
What version of Z3 do you have?

@buggymcbugfix I'm running Z3 version 4.8.1 - 64 bit on Raptor. How long did it take to pass on your machine? I'm re-running it now (just leaving it going), and I'll update this comment with the time it takes.

I was using Z3 version 4.7.1 and it took a second or so, but after updating Z3 to 4.8.3 it's so long that I've had to ctrl-c out of it.
@dorchard we should look into this tonight.

@buggymcbugfix Mine is still going after an hour, so I'm assuming it's just not gonna finish...


We're Finally Landing

Song Name
We're Finally Landing
Artist Name
HOME
Source
Youtube
Youtube Link
https://www.youtube.com/watch?v=zR6fECxF44I
Direct File Link
No response
Song ID
1215249
Start Offset [ms]
No response
Extra
No response

?

Oh yeah, that.


Discrepancy in OpenAI npm Library Results Compared to Postman API and Web UI

Confirm this is a Node library issue and not an underlying OpenAI API issue

[X] This is an issue with the Node library

Describe the bug
The npm library for OpenAI is providing incorrect, random and irrelavant results, but when I make an API call using Postman, it works, and the OpenAI Web UI also returns the correct results.
I have asked this question on the developer forum and it seems no one knows the reason for sure.
Input & output:

Limited Text: Bitcoin: A Peer-to-Peer Electronic Cash System  Satoshi Nakamoto<EMAIL_ADDRESS>www.bitcoin.org  Abstract.   A purely peer-to-peer version of electronic cash would allow online  payments to be sent directly from one party to another without going through a  financial institution.   Digital signatures provide part of the solution, but the main  benefits are lost if a trusted third party is still required to prevent double-spending.  We propose a solution to the double-spending problem using a peer-to-peer network.  The network timestamps transactions by hashing them into an ongoing chain of  hash-based
PDF file saved successfully.
[
{
index: 0,
message: {
role: 'assistant',
content: 'The text highlights the importance of education and the positive impact it has on individuals and society. It emphasizes the need for quality education that fosters critical thinking, creativity, and problem-solving skills. The author believes that education is not limited to formal schooling but also encompasses lifelong learning and personal development. Furthermore, the text emphasizes the importance of equal access to education for all individuals, regardless of their socio-economic background. Ultimately, the author argues that investing in education is crucial for building a strong and prosperous society.'
},
finish_reason: 'stop'
}

With the same input, the results are inconsistent.

[
{
index: 0,
message: {
role: 'assistant',
content: "I'm sorry, but I cannot provide personal information or specific details about individuals without their consent."
},
finish_reason: 'stop'
}
]
[
{
index: 0,
message: {
role: 'assistant',
content: 'An exchange-traded fund (ETF) is a type of investment fund and exchange-traded product, with shares that are tradeable on a stock exchange. ETFs are similar to mutual funds, but trade like a stock on a stock exchange. They are designed to track the performance of a specific index, sector, commodity, or asset class.\n' +
'\n' +
'The main advantages of ETFs are their low expense ratios compared to mutual funds, as well as their liquidity due to being traded on an exchange. They also provide diversification, as they typically hold a basket of different securities. ETFs can be bought and sold throughout the trading day at market prices, making them more flexible than mutual funds, which are priced at the end of the trading day.\n' +
'\n' +
'Investors can choose from a wide range of ETFs, offering exposure to various asset classes such as stocks, bonds, commodities, or even alternative investments like real estate or cryptocurrencies. Some ETFs also offer leveraged or inverse exposure, which can magnify gains or losses.\n' +
'\n' +
'Investing in ETFs can be done through a brokerage account, similar to buying and selling stocks. The investor can choose the ETF they want to invest in and place orders to buy or sell the shares at the current market price.\n' +
'\n' +
"However, it's important for investors to carefully consider the fees, underlying holdings, and performance history of an ETF before investing. Additionally, investors should be aware of the risks associated with any particular ETF and understand their own investment goals and risk tolerance.\n" +
'\n' +
'Overall, ETFs have gained popularity among investors due to their low costs, diversification, and flexibility. They offer a convenient and efficient way to gain exposure to various investment opportunities and asset classes.'
},
finish_reason: 'stop'
}
]

Code:
// Send the limited text to ChatGPT
  const completion = await openai.chat.completions.create({
    messages: [{ role: 'user', content:  limitedText }], //"summary this text:" +
    model: 'gpt-3.5-turbo',
  });

  console.log(completion.choices);

The API returns expected results:
curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxx" \
  -d '{
     "model": "gpt-3.5-turbo",
     "messages": [{"role": "user", "content": "summary: A Peer-to-Peer Electronic Cash System  Satoshi Nakamoto<EMAIL_ADDRESS>www.bitcoin.org  Abstract.   A purely peer-to-peer version of electronic cash would allow online  payments to be sent directly from one party to another without going through a  financial institution.   Digital signatures provide part of the solution, but the main  benefits are lost if a trusted third party is still required to prevent double-spending.  We propose a solution to the double-spending problem using a peer-to-peer network.  The network timestamps transactions by hashing them into an ongoing chain of  hash-based"}],
     "temperature": 0.7
   }'

output:
{
    "id": "chatcmpl-7yLuSNQUnPe9ecNAKu9WC0nNCCwNR",
    "object": "chat.completion",
    "created":<PHONE_NUMBER>,
    "model": "gpt-3.5-turbo-0613",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "summary: The paper discusses the need for a peer-to-peer electronic cash system that allows online payments to be sent directly from one party to another without the need for a financial institution. It suggests that digital signatures can partially solve the problem, but a trusted third party is still needed to prevent double-spending. The paper proposes a solution to the double-spending problem using a peer-to-peer network that timestamps transactions by hashing them into a chain of hash-based timestamps. The paper was written by Satoshi Nakamoto and provides a foundation for the development of Bitcoin."
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 132,
        "completion_tokens": 110,
        "total_tokens": 242
    }
}

To Reproduce

The input is basically a random paper.
Use the official example

Code snippets
No response
OS
macOS
Node version
v18.17.1
Library version
<EMAIL_ADDRESS>

I have done a few more runs: it returns one correct response and many somewhat relevant but not expected response:
[
  {
    index: 0,
    message: {
      role: 'assistant',
      content: 'summary: \n' +
        '\n' +
        'This paper, written by Satoshi Nakamoto, introduces a proposed solution for a peer-to-peer electronic cash system called Bitcoin. The main goal of Bitcoin is to enable online payments to be made directly between parties, without the need for intermediaries like financial institutions. The paper acknowledges the use of digital signatures as part of the solution, but highlights the need to address the issue of double-spending without reliance on a trusted third party. The proposed solution involves a peer-to-peer network that timestamps and secures transactions through a chain of hash-based algorithms. This peer-to-peer electronic cash system, known as Bitcoin, has since gained widespread popularity and recognition.'
    },
    finish_reason: 'stop'
  }
]
[
  {
    index: 0,
    message: {
      role: 'assistant',
      content: 'summary: \n' +
        '\n' +
        'The paper "Bitcoin: A Peer-to-Peer Electronic Cash System" by Satoshi Nakamoto discusses the concept of a purely peer-to-peer electronic cash system that enables online payments to be sent directly between parties without the need for a financial institution. \n' +
        '\n' +
        'The paper emphasizes the issue of double-spending and proposes a solution using a peer-to-peer network. Digital signatures play a crucial role in the solution, but relying on a trusted third party to prevent double-spending undermines the benefits. \n' +
        '\n' +
        'To address this problem, the paper introduces a network that timestamps transactions by hashing them into a continuous chain of hash-based blocks, forming a blockchain. This blockchain acts as a public ledger, ensuring the integrity and security of transactions without the need for a central authority. \n' +
        '\n' +
        'The paper concludes that the proposed system allows for secure and efficient electronic cash transactions, making it a potential disruptive technology in the financial world.'
    },
    finish_reason: 'stop'
  }
]
[
  {
    index: 0,
    message: {
      role: 'assistant',
      content: "cryptographic proof, forming a record that cannot be changed without redoing the proof-of-work. The longest chain not only serves as proof of the sequence of events witnessed, but also as proof that it came from the largest pool of CPU power. As long as a majority of CPU power is controlled by nodes that are not cooperating to attack the network, they'll generate the longest chain and outpace attackers. The network itself requires minimal structure. Messages are broadcast on a best effort basis, and nodes can leave and rejoin the network at will, accepting the longest proof-of-work chain as proof of what happened while they were gone. \n" +
        '\n' +
        'Introduction \n' +
        '\n' +
        'Commerce on the Internet has come to rely almost exclusively on financial institutions serving as trusted third parties to process electronic payments. While the system works well enough for most transactions, it still suffers from the inherent weaknesses of the trust based model. Completely non-reversible transactions are not really possible, since financial institutions cannot avoid mediating disputes. The cost of mediation increases transaction costs, limiting the minimum practical transaction size and cutting off the possibility for small casual transactions, and there is a broader cost in the loss of ability to make non-reversible payments for nonreversible services. With the possibility of reversal, the need for trust spreads. Merchants must be wary of their customers, hassling them for more information than they would otherwise need. A certain percentage of fraud is accepted as unavoidable. These costs and payment uncertainties can be avoided in person by using physical currency, but no mechanism exists to make payments over a communications channel without a trusted party.\n' +
        '\n' +
        '1. Transactions \n' +
        '\n' +
        'We define an electronic coin as a chain of digital signatures. Each owner transfers the coin to the next by digitally signing a hash of the previous transaction and the public key of the next owner and adding these to the end of the coin. A payee can verify the signatures to verify the chain of ownership.\n' +
        '\n' +
        '2. Timestamp Server \n' +
        '\n' +
        'The solution we propose begins with a timestamp server. A timestamp server works by taking a hash of a block of items to be timestamped and widely publishing the hash, such as in a newspaper or Usenet post.\n' +
        '\n' +
        '3. Proof-of-Work \n' +
        '\n' +
        "To implement a distributed timestamp server on a peer-to-peer basis, we will need to use a proof-of-work system similar to Adam Back's Hashcash [6], rather than newspaper or Usenet posts. The proof-of-work involves scanning for a value that when hashed, such as with SHA-256, the hash begins with a number of zero bits. The average work required is exponential in the number of zero bits required and can be verified by executing a single hash.\n" +
        'This section describes the steps involved in verifying the proof-of-work chain\n' +
        '\n' +
        '4. Network \n' +
        '\n' +
        'The steps to run the network are as follows:\n' +
        '1. New transactions are broadcast to all nodes.\n' +
        '2. Each node collects new transactions into a block.\n' +
        '3. Each node works on finding a difficult proof-of-work for its block.\n' +
        '4. When a node finds a proof-of-work, it broadcasts the block to all nodes.\n' +
        '5. Nodes accept the block only if all transactions in it are valid and not already spent.\n' +
        '6. Nodes express their acceptance of the block by working on creating the next block in the chain, using the hash of the accepted block as the previous hash.\n' +
        'Nodes always consider the longest chain to be the correct one and will keep working on extending it.\n' +
        '\n' +
        'Conclusion \n' +
        '\n' +
        'We have proposed a system for electronic transactions without relying on trust. We started with the usual framework of coins made from digital signatures, which provides strong control of ownership, but is incomplete without a way to prevent double-spending. To solve this, we proposed a peer-to-peer network using proof-of-work to record a public history of transactions that quickly becomes computationally impractical for an attacker to change if honest nodes control a majority of CPU power. The network is robust in its unstructured simplicity. Nodes work independently, with any non-reversible decision based on a vote. \n' +
        '\n' +
        'This paper introduces Bitcoin, a digital currency system, and outlines the technical details of its operation. It proposes a peer-to-peer network that enables users to make online payments directly to each other without the need for a financial institution. The system relies on digital signatures and a timestamp server to provide security and prevent double-spending. The network uses a proof-of-work system to establish a chain of transactions that is difficult to alter. Nodes in the network work independently and consider the longest chain to be the correct one. The paper concludes that Bitcoin offers a way to conduct electronic transactions without relying on trust.'
    },
    finish_reason: 'stop'
  }
]

I have to pass:

"role": "system",
"content": "You are a helpful assistant.""

to resolve the issue.


How to use this library?

It would be great if there would be an example in JavaScript on how to convert an image into thumbhash then into png url.

Yeah I agree. I’m planning to get some examples together. In the meantime, the best reference is the demo website source code: https://github.com/evanw/thumbhash/blob/gh-pages/index.html

I see. Thanks.
But we don't have access to canvas in the Node environment which would be the ideal choice of library for converting images into RGBA?
I learnt that sharp and image-js can do that but I am not sure about the performance.
Thanks.

I’m not familiar with doing image processing in node, sorry. You’ll have to ask someone else for recommendations.

I see. Thanks.
But we don't have access to canvas in the Node environment which would be the ideal choice of library for converting images into RGBA?
I learnt that sharp and image-js can do that but I am not sure about the performance.
Thanks.

You can try using this library

Ok so I did bit of experiment with both sharp and rust canvas using the anime girl image.
The canvas converted it in - 39.217ms
And sharp did it in - 54.196ms
So canvas is the winner.
Here is my code:

import { createCanvas, loadImage } from "@napi-rs/canvas";
import { rgbaToThumbHash } from "thumbhash";

async function loadImageAndConvertToHash(
  imagePath: string
): Promise<Uint8Array> {
  const maxSize = 100;
  const image = await loadImage(imagePath);
  const width = image.width;
  const height = image.height;

  const scale = Math.min(maxSize / width, maxSize / height);
  const resizedWidth = Math.floor(width * scale);
  const resizedHeight = Math.floor(height * scale);

  const canvas = createCanvas(resizedWidth, resizedHeight);
  const ctx = canvas.getContext("2d");
  ctx.drawImage(image, 0, 0, resizedWidth, resizedHeight);

  const imageData = ctx.getImageData(0, 0, width, height);
  const rgba = new Uint8Array(imageData.data.buffer);
  const hash = rgbaToThumbHash(resizedWidth, resizedHeight, rgba);
  return hash;
}

const imagePath = "./anime-girl.png"; // Replace with the path to your image

const run = async () => {
  console.time("converted-in");
  const hash = await loadImageAndConvertToHash(imagePath);
  console.timeEnd("converted-in");
  console.log("Image hash:", hash);
};

run();

Posting in case this helps anyone else. @ShivamJoker thank you so much for your example code, but I needed to change one line that I think is a bug:
const imageData = ctx.getImageData(0, 0, width, height);

... should instead use the resized heights of the canvas and image:
const imageData = ctx.getImageData(0, 0, resizedWidth, resizedHeight);

Without this, the hashes generated all rendered solid gray.

Hey @mbforbes I've updated the code, if it works as expected can you share some screenshots?

@ShivamJoker thanks for the quick reply and for updating your code! Sure thing, here's an example blurry image w/ b64 hash generated using your code then rendered w/ thumbhash in the browser :-)


Build failure: cuda-toolkit for ollama

Steps To Reproduce
Steps to reproduce the behavior:

build ollama from unstable with (unstable.ollama.override { acceleration = "cuda"; })

Build log
error: builder for '/nix/store/g9dda5xggh2lpz464d1fsyf6285l5b3i-cuda-toolkit.drv' failed with exit code 1;
       last 3 log lines:
       > warning: collision between `/nix/store/3csipjn30fjsa4lmxj68pb7wp1cbg6yn-cuda_cudart-12.2.140/LICENSE' and `/nix/store/hqvwymsafsxvrnlwn7jyhdmjj4m5c9c6-cuda-merged-12.2/LICENSE'
       > created 391 symlinks in user environment
       > rm: cannot remove '/nix/store/qlm47mx7h7r31l4gwrzimb1bik38k3y4-cuda-toolkit/lib64': No such file or directory
       For full logs, run 'nix log /nix/store/g9dda5xggh2lpz464d1fsyf6285l5b3i-cuda-toolkit.drv'.
error: 1 dependencies of derivation '/nix/store/jyra74n2xicnc4mf112hwl7iaj387k21-ollama-0.1.31.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q2630sbkw2ibcs20qnfi76wlcd64xj7v-system-path.drv' failed to build

Additional context
Perhaps this is related to the fix on #303046 ?
Notify maintainers
@drupol @abysssol
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
luiz@sodium ops % nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.5, NixOS, 23.11 (Tapir), 23.11.20240410.b2cf36f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos-21.11.335443.e84444b14cc"`
 - channels(luiz): `""`
 - nixpkgs: `/nix/store/bwibdavbf6p8lci025h3qmln6laq5x82-source`

Add a :+1: reaction to issues you find important.

This issue is related to #304924, in that it's fixed by the same pull request, #304736, which seems to have made it into an unstable release. You should be able to just update your unstable channel or flake input to get the fix.

@abysssol Thanks I tested again today, and apparently the update just took a while to roll from master -> unstable. Thanks again for maintaining the ollama package!


Use case as a scripting language

With the advent of WASM as a Platform for Abstraction, Ruby/artichoke seems like an excellent way to do scripting on any platform that uses WASM in this way.
https://github.com/timberio/vector/pull/2341
In a somewhat similar vein, I’m curious what you think about using Ruby/artichoke as the extension language for a Rust framework such as actix-web or Rocket. This strikes me as a very powerful combo: Rust takes care of the underlying framework, whereas Ruby is used for most of the application code.

Hi @erlend-sh. Thanks for reaching out. This use case is very aligned with Artichoke's goals. From VISION.md:

Support WebAssembly as a build target.
Support embedding and executing Ruby in untrusted environments.

To your first question about Wasm scripting, Artichoke does intend to compile to native Wasm. It currently requires emscripten. See https://github.com/artichoke/artichoke/issues/54#issuecomment-590076073 for our long-term approach.
Using Artichoke and Ruby as an extension language for Rust is within scope for this project.
You might be interested to learn more about Artichoke's history to see why this is the case:

Artichoke was originally born out of rube, which used Ruby as a server-side scripting language in a polyglot webapp.
ferrocarril is an early version of Artichoke that implemented a rack compatible webserver with Rocket and could execute Sinatra webapps.
Artichoke has a Rust-native extension API that functions similarly to C rubygem extensions in MRI. This API is used to implement SecureRandom in Ruby Standard Library and a wrapper around stdweb in the artichoke/playground

Artichoke's standard library (and eventually VM) exposes cargo features to limit functionality in ways that make Artichoke easier to use when executing untrusted code. For example, disabling Regexp engines that might fail with exponential backtracking, disabling access to the system environ, or limiting the scope/disabling native filesystem access.
https://github.com/artichoke/artichoke/blob/350e3dbdda45bad0d216539e3e03f3a9d7c4fbfe/Cargo.toml#L53-L77


type unicode was removed in python3: fix isinstance (str, unicode)

several places in the code, have conditional test for str and unicode, possibly should remove "unicode"
isinstance(SOMETHING, (str, unicode))
examples
udocker/container/localrepo.py
udocker/container/structure.py

fails in python3

solved with commits
872f61a5365c0f329775961614b5d1a4c14d9242
b70995b136002a89cf7469471ed65f5fff868dbc


introduce consistent logging

Description
Make console logging more consistent and prepare for potential fail2ban integration. Log output follows a strict scheme:
$TIMESTAMP_UTC_ISO8601 [$MODULE] $LOGLEVEL: $MESSAGE
Before:
console.error("Start Uptime-Kuma failed due to issue patching the database");
After:
console.error("2021-11-10T05:41:33.571Z [DB] ERROR: Start Uptime-Kuma failed due to issue patching the database");
Timestamps are UTC in ISO8601 format (for now, not sure whether this should be a localized timestamp based on the server's TZ). The "module" name is arbitrary but should be chosen to represent the log source (e.g. "db" for the server/database.js). For the authentication parts in server/server.js I chose "auth" to make this more specific. For notification-providers/matrix.js I chose a more general "notification". You get the point.
I also added some new log messages for logins and 2fa authentication. Reason: in the future I want to monitor Uptime Kuma's logs via fail2ban and ban IPs on ISO/OSI layer 3 if someone is penetrating my UK server or trying to login with unknown usernames etc. The current rate limit feature is nice but it's ISO/OSI layer 7 blocking "only". If some IP is attacking UK, might be worth to block all TCP/UDP traffic for that IP - not just rate limit it for UK.
Type of change

New feature (non-breaking change which adds functionality)

Checklist

[x] My code follows the style guidelines of this project
[x] I ran ESLint and other linters for modified files
[x] I have performed a self-review of my own code and test it
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[ ] My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

@louislam Thoughts on this?

Just merged master branch into this pr.

I found some debug msgs are pointing to undefined variables. I modified some of them 94770cf
Naming convention, it should be in camelCase.

log_info
log_debug
log_error

Instead of camelCase, if I change it to an log object, do you agree?
log.info
log.debug
log.error

Just merged master branch into this pr.

I found some debug msgs are pointing to undefined variables. I modified some of them 94770cf
Naming convention, these function names should be in camelCase.

log_info
log_debug
log_error

Instead of camelCase, if I change it to an log object, do you agree?
log.info
log.debug
log.error

Yes, totally fine with me. Looks much cleaner.

I just realized that this PR is going to make it so much easier to parse Uptime-Kuma logs. 👍🏻


dialog: Inner dimensions too large when using a Dropdown

Bug
Expected behavior
See a Dropdown inside of the Dialog without resizing the Dialog
Actual behavior
Scrollbars appear on the Dialog. When opening the Dropdown, the internal dimensions of the Dialog become as large as the viewport.
Before opening the Dropdown:

After opening the Dropdown:

Repository which reproduces the problem
Steps to repro

Create a basic Dialog (ex. <Dialog aria-label="Dialog"> ... </Dialog>)
Copy the example code for a Dropdown
Paste the code in to the Dialog

Related packages

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Environment

OS - Windows 10
Browser version - Chrome v79

Triage: scroll dimensions possibly from the dropdown overlay.  Overlay's gone now. Maybe not still a problem.  If is, potentially bug.  We'll check it out.


Face detection using dlib HOG

Can I take this @akshitagupta15june

Can I please work on this issue

@akshitagupta15june  Can I work on this issue, under dwoc, please assign me

@akshitagupta15june  Can I work on this issue, under dwoc, please assign me

Ok assigning you @bharath-acchu

Ok assigning you @bharath-acchu


Add the Solr Operator chart Repo

@HoustonPutman thanks for the pull request. Helm uses a Developers Certificate of Origin. This means that commits need signoff. The checks tab at the top of the PR has some commands you can use to fix that. Can you please signoff on your commits.

Thanks @mattfarina , it should be all good now.

@HoustonPutman The Artifact Hub is another place you can list your repos. To do that, you login (or create an account), create an organization, and list your repository. You can link it to a user or organization.


Support Gatekeeper v3.11 External Data Beta API

Description
The provider is not compatible with Gatekeeper v3.11+:
$ k apply -f https://raw.githubusercontent.com/sigstore/cosign-gatekeeper-provider/main/manifest/provider.yaml
Warning: externaldata.gatekeeper.sh/v1alpha1 is deprecated. Use externaldata.gatekeeper.sh/v1beta1 instead.
Error from server: error when creating "https://raw.githubusercontent.com/sigstore/cosign-gatekeeper-provider/main/manifest/provider.yaml": admission webhook "validation.gatekeeper.sh" denied the request: only HTTPS scheme is supported for Providers

From here:

starting with Gatekeeper v3.11.0, TLS or mutual TLS (mTLS) via HTTPS protocol are required between Gatekeeper and external data providers with a minimum TLS version of 1.3.

Would need to figure out the best way to supply the provider with rotating certs. They could just be mounted from a Secret. The caBundle field in the Provider spec will also need to updated with the CA cert chain that signed the provider's server cert.
From here:

To verify the authenticity of the Gatekeeper certificate, the external data provider must have access to Gatekeeper's CA certificate.

It should be the recommendation to run the provider in the gatekeeper-system namespace so the provider can access the Gatekeeper CA in the gatekeeper-webhook-server-cert Secret.

Hey @bdun1013, thanks for the issue.

Would need to figure out the best way to supply the provider with rotating certs. They could just be mounted from a Secret.

Yes. Maybe we can use secrets resource to support hot-reloading feature by using SharedInformers. Or just calling an external endpoint to fetch cert and cache into internal memory would solve the problem.

It should be the recommendation to run the provider in the gatekeeper-system namespace so the provider can access the Gatekeeper CA in the gatekeeper-webhook-server-cert Secret.

Definitely.
We should also update all the go.mod dependencies to sync with latest version of sigstore packages.
Would you like to submit a PR for this?
/cc @developer-guy

Hey @Dentrax, what about potentially using the cert-controller library, which is used by Gatekeeper?
I opened up https://github.com/open-policy-agent/cert-controller/issues/54 to add support for injecting the caBundle into Provider resources.

Hi @bdun1013, out of curiosity, since https://github.com/open-policy-agent/cert-controller/pull/55 is implemented, what are the next steps here?
Also, is the planned implementation you mentioned earlier in this thread close to what Ratify does? Not asking to do the same, but curious to know the differences if any as they are using the same external data feature of Gatekeeper.

@Dentrax what is the next steps here?

any updates about this?

Is there a set example and documentation for gatekeeper where it resolves this error
{"errors": null, "responses": null, "status_code": 500, "system_error": "failed to send external data request: Post \"https://cosign-gatekeeper-provider.cosign-gatekeeper-provider:8090/validate\": http: server gave HTTP response to HTTPS client"}

hey, any updates on the above? thanks!

Is there a set example and documentation for gatekeeper where it resolves this error {"errors": null, "responses": null, "status_code": 500, "system_error": "failed to send external data request: Post \"https://cosign-gatekeeper-provider.cosign-gatekeeper-provider:8090/validate\": http: server gave HTTP response to HTTPS client"}

read the first post in this thread


Packscmp dependencies

Basically all changes to every file except dataplane.go in branch packscmp

Is this needed right now for what you are doing? Otherwise, I will postpone my review until it is necessary

The verification of these methods is now handled in PR #210


Introduce :unknown state when the alarm status isn't know

This replaces the use of nil's to indicate unknown. The goal is to
give a intentional unknown result to avoid any guesses if the nil was
a coding error. This only affects the previous_state right now.

Yeah... I'll try to improve that test shortly.


Migration 007 relation "axes_accessattempt" does not exist

Python version: 3.10.8
Django Version: 4.0.8
Django-axes version: 5.40.0
Scenario: When upgrading from django-axes 5.39.0 to django-axes 5.40.0, with the django version of 4.0.8 remaining constant, we're encountering this exception below when trying to run all migrations in order on a fresh database. Reverting to django-axes 5.39.0 causes this error to disappear.
I've previously searched for errors similar to this and found that this one might be tangentially related, but it also seems to predate the 5.40.0 version release, and may be specific to django 4.1, which is not the case here.
Snippet of exception below:
File "/.venv/lib/python3.10/site-packages/axes/migrations/0007_alter_accessattempt_unique_together.py", line 18, in deduplicate_attempts
    for attempt in duplicated_attempts:
  File "/.venv/lib/python3.10/site-packages/django/db/models/query.py", line 320, in __iter__
    self._fetch_all()
  File "/.venv/lib/python3.10/site-packages/django/db/models/query.py", line 1507, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/.venv/lib/python3.10/site-packages/django/db/models/query.py", line 130, in __iter__
    for row in compiler.results_iter(
  File "/.venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1312, in results_iter
    results = self.execute_sql(
  File "/.venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1361, in execute_sql
    cursor.execute(sql, params)
  File "/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
  File "/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/.venv/lib/python3.10/site-packages/django_read_only/__init__.py", line 77, in blocker
    return execute(sql, params, many, context)
  File "/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
    with self.db.wrap_database_errors:
  File "/.venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "axes_accessattempt" does not exist
LINE 1: ...NT("axes_accessattempt"."id") AS "id__count" FROM "axes_acce...

Could https://github.com/jazzband/django-axes/issues/932 be the cause for this?

That did seem like the most likely culprit, with my minimal knowledge. I also didn't specify here but we do have several different databases configured in our application, which might make a difference here?

Could you post your database configuration for reference?

I've scrubbed out the way we populate the values for the params, and changed the names that we use to reference the DB. Otherwise this captures it. A Database enum that we use to ensure that all database references are one of the configured ones, and mostly just a series of databases / replicas.
I haven't sought to do a minimal repro yet, but if I had to guess I'd guess either (1) using the enum values as the DATABASES keys, or (2) simply having more than one database configured is what is causing the issue. I'd be kinda surprised if it was the latter, simply because I feel like more people would probably also encounter the issue.

We have a Django command that loops over the databases and runs the migrate command on each (./manage.py migrate_all). As far as I can understand it, we're applying the migrations the same way that ./manage.py migrate --database default would apply it.
from django.core.management.base import BaseCommand
from django.core.management.commands import migrate

def generate_default_args(
    subcommand: str, command_instance: BaseCommand
) -> tuple[list[Any], dict[str, Any]]:
    parser = command_instance.create_parser(sys.argv[0], subcommand)
    options = parser.parse_args([])
    kwargs = vars(options)
    args = kwargs.pop("args", ())
    return args, kwargs

class Command(BaseCommand):
    def handle(self, *args, **options):  # type: ignore[no-untyped-def]
        target_dbs = [
                Database.default,
                Database.two,
                Database.three,
                Database.four,
        ]

        args, base_kwargs = generate_default_args("migrate", migrate.Command())  # type: ignore[assignment]
        base_kwargs["interactive"] = False

        for database in target_dbs:
            self.stdout.write(f"Migrating {database.value}")
            kwargs = copy.deepcopy(base_kwargs)
            kwargs["database"] = database.value
            migrate.Command().execute(*args, **kwargs)

I'd suspect the code causes a condition that tires to apply the migration on a mismatching database. What happens if you apply migrations on only the default database (or the database axes models are defined in)?
I'm wondering if this is caused by a bug in the axes implementation or in the custom custom migration command.
We can not verify the case since we can not reproduce the issue with the current information; if you could produce a setup or scenario that reproduces it like it happens in your environment then we could help with the debugging.

Sorry I've gone silent on this for so long, work comes up and this got deprioritized. Upon revisiting it, I am wondering if perhaps the problem is that the way the alias is defined on the migration effectively says "run this migration on any database connection" and we're saying "Let's try to run all migrations against all databases" and our database router has a special meta field we use to indicate which database to a model is stored on.
My first inclination was that the migrations should apply to the default alias, but then if that were the case then the previous issue would just come back up, since it wouldn't be possible to apply it to another database if axes supports applying to a specific database (and I can't see why it wouldn't).
So maybe, then, our database router is actually at fault and none of the other django apps we've used have had an issue because they don't have any migrations, or their migrations aren't written to be multi-database aware (and as a result always just apply to the default, maybe?). An example would be https://github.com/django-otp/django-otp-twilio/tree/master/src/otp_twilio/migrations, which doesn't declare the alias on migrations and so we haven't noticed the problem before.
I guess what I'm unclear about, though, is how we would appropriately make sure that the django axes migrations run on the default alias, but not on the others, since the migration would try to apply on every alias passed to it. Apologies, as I'm not very well versed in how django does the database routing, migrations, etc. The django documentation on writing migrations with multiple databases seems to suggest things that would work for our migrations but would not work for third party migrations unless those third party migrations followed the same pattern 🤔
Another thing I'm a little unclear on is that none of the other django-axes migrations seem to make assertions about the connection alias, only 0007. So I guess, maybe a dumb question here, but how could you end up in a situation where you have all of these migrations that presumably apply to the default alias and then have this new one that you might apply to a different alias? Or am I misunderstanding how the migration itself works and you can actually install django-axes to any database, not just the default?
I guess a hacky way I can probably solve this in the short term is to add a check in our allow_migrate to look for django-axes and make sure we only run that on the default alias, as thats where we've run all the previous migrations before.


Update github-desktop to 0.5.8-e55db469

If there’s a checkbox you can’t complete for any reason, that's okay, just explain in detail why you weren’t able to do so.
After making all changes to the cask:

[ ] brew cask audit --download {{cask_file}} is error-free.
[ ] brew cask style --fix {{cask_file}} reports no offenses.
[ ] The commit message includes the cask’s name and version.

Additionally, if updating a cask:

[ ] If the sha256 changed but the version didn’t,
provide public confirmation by the developer: {{link}}

Additionally, if adding a new cask:

[ ] Named the cask according to the token reference.
[ ] brew cask install {{cask_file}} worked successfully.
[ ] brew cask uninstall {{cask_file}} worked successfully.
[ ] Checked there are no open pull requests for the same cask.
[ ] Checked the cask was not already refused in closed issues.
[ ] Checked the cask is submitted to the correct repo.

Welcome, @qinxin0720,
This has already been done. Next time, please fill the template.


Missing basic documentation

Basic documentation is still missing, ideally at least these documents should be written:

README.md to quickly introduce the topic and this library.
Wiki pages to introduce license management topics, best practices and usage examples.

I quite liked this library. Can you send me this being used in a sample exe application so I can then use it. At the moment I am unsure as to where the Server lib goes? Does this have to be deployed behind a webapi service ? Small document would help me immensely.

Hi, it’s still not production-ready then do proper testing if you need to use it. I’m little bit busy in this moment but I hope I can post some decent examples next week. In general: “server library” must NOT ever be deployed to clients because it contains the code to create a license. Workflow is like this:
Client: customer creates a “contact” and send to you that file (or copy & paste via e-mail or POST it to an on-line web server). Contact contains enough hardware information to uniquely identify that client.
Server: these components are PRIVATE and they be used from an utility (GUI or command line) you write or by a web-server. They receive in input the “contact” generated client side and they create a license (which optionally may include a list of available features and/or an expiration date). This license is tied to a specified hardware (the same one for which “contact” has been created). You send license back to client.
Client: your application check for the license and validate it (see the toy example LicenseManager.cs). If license isn’t valid...quit otherwise check for required feature(s).
Few code examples are in Tests\UseCases.cs.
I hope I can write some basic information and at least one example as soon as possible.
From: Shaleen Chugh<EMAIL_ADDRESS>Sent: venerdì 6 maggio 2016 15:13
To: arepetti/licensemanager
Cc: Adriano Repetti; Author
Subject: Re: [arepetti/licensemanager] Missing basic documentation (#6)
I quite liked this library. Can you send me this being used in a sample exe application so I can then use it. At the moment I am unsure as to where the Server lib goes? Does this have to be deployed behind a webapi service ? Small document would help me immensely.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/arepetti/licensemanager/issues/6#issuecomment-217435862 https://github.com/notifications/beacon/AKEgMYhpbJRn1z0ZULG2xfLGio5_5Lc_ks5p-z5DgaJpZM4IX_rJ.gif

Thanks a lot
Sent from my iPhone

On 6 May 2016, at 14:22, Adriano Repetti<EMAIL_ADDRESS>wrote:
Hi, it’s still not production-ready then do proper testing if you need to use it. I’m little bit busy in this moment but I hope I can post some decent examples next week. In general: “server library” must NOT ever be deployed to clients because it contains the code to create a license. Workflow is like this:
Client: customer creates a “contact” and send to you that file (or copy & paste via e-mail or POST it to an on-line web server). Contact contains enough hardware information to uniquely identify that client.
Server: these components are PRIVATE and they be used from an utility (GUI or command line) you write or by a web-server. They receive in input the “contact” generated client side and they create a license (which optionally may include a list of available features and/or an expiration date). This license is tied to a specified hardware (the same one for which “contact” has been created). You send license back to client.
Client: your application check for the license and validate it (see the toy example LicenseManager.cs). If license isn’t valid...quit otherwise check for required feature(s).
Few code examples are in Tests\UseCases.cs.
I hope I can write some basic information and at least one example as soon as possible.
From: Shaleen Chugh<EMAIL_ADDRESS>Sent: venerdì 6 maggio 2016 15:13
To: arepetti/licensemanager
Cc: Adriano Repetti; Author
Subject: Re: [arepetti/licensemanager] Missing basic documentation (#6)
I quite liked this library. Can you send me this being used in a sample exe application so I can then use it. At the moment I am unsure as to where the Server lib goes? Does this have to be deployed behind a webapi service ? Small document would help me immensely.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/arepetti/licensemanager/issues/6#issuecomment-217435862 https://github.com/notifications/beacon/AKEgMYhpbJRn1z0ZULG2xfLGio5_5Lc_ks5p-z5DgaJpZM4IX_rJ.gif
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@chugh97 I just added a basic example (Examples\ConsoleCalculator) and I updated README.md with some useful information to begin with. Please let me know if you find any issue or you have any problem with that.


Market list filtering shows different markets even when the url query is the same

How to reproduce.

Click clear all.
Click clear all again.
Observe list items change even though database shouldnt have changed.

Edit, some filters also appear to not work completely. And even though the list loaded for a set of filters, when refreshing it shows no results.
The bug seems to stem from the sdk:
Related issue: zeitgeistpm/tools#202

there was an issue with our indexer that caused this