Unknown location/Capacity limit reached — wttr.in will be back online at 0:00 UTC

From command lineL
$ curl -s 'wttr.in?format=3&m'
Unknown location; please try ~43.0833231,-73.8712155⏎

Thought I was the only one.
Even supply the Airport code, or latlon coordinates, results in the same error.
It does return my actual latlon for the "please try ... " portion of the error msg, though

Fixed, please try again

seems to working for me now. Thanks

Fixed, please try again

Fixed.
Cheers.

I am still getting this message:
curl -s 'wttr.in?format=3&m'
Unknown location; please try ~42.6545,15.64523

yes, it re-appeared

Having the same issue. Querying the coordinates doesn't work, also.

Same here unfortunately

Sorry guys it was down for a couple of hours two days ago again, but it should be working since that

working again

Same error appearing again.

@t89 Thomas, thank you for the reporting.
It happens from time to time, but not too often (once a week, or a month, when the load is peaking). I work on stabilization of this part, and at some point the error should disappear completely

Hey @chubin
Sorry to comment on a closed issue, but I thought I should mention that the problem is happening again
Hope you are well!

@jorge-barreto Yes, we are experiencing an outage at the moment, many apologies. the service will be back online
in 10 hours.

It is fixed now

It is fixed now

It's broken again. 😆

Yes, it happens from time to time, but I am working on this

Seems another outage?

Please try now

Working~ thx ;)

Again today

failing out...

...and again.

@Rergis It was a different problem, but it is fixed now. Please test it, and please execuse me for the inconvenience

Hi, I set up fresh Monterey (macOS 12.0.1) on my new iMac.
curl https://wttr.in\?format\="%l:+%C+%t+(%f)+at+%T+%m\n"

leads to this error:-
Unknown location; please try ~<coordinates of my city>%

@timothevs I've just checked your command, and it works fine for me.
Let's try to debug it: what commands from the following list do work:

curl wttr.in
curl wttr.in/<Your-Location>
curl wttr.in/<Your-Location>?format=...

?

@chubin , thanks for the quick follow up. VERY strange. Now the command curl https://wttr.in\?format\="%l:+%C+%t+(%f)+at+%T+%m\n" works as well, in addition to the three you mentioned.

Maybe it was a short outage of the data source; it happens from time to time, but not so often

I'm a bit sad this morning 😔 ...

I can only hope it will get better soon 😊 ...

Oh, I wasn't aware 1M was the limit, I've been doing a request every minute for waybar, so 1.5K requests per day. Sorry about that, maybe I'm partially responsible! What would be a reasonable rate? And could this be helped with some caching?

Having this issue this morning.

doesn't work again...

This issue is back.

Oh, I wasn't aware 1M was the limit, I've been doing a request every minute for waybar, so 1.5K requests per day. Sorry about that, maybe I'm partially responsible! What would be a reasonable rate? And could this be helped with some caching?

I personally get weather information once every boot, store it in a txt file and use it in bar(get raw default data and get my needed data with tools like grep, sed, sort).if you want more accurate weather information, 3 times a day would be enough. believe me we can predict far more than 1 minute :p

@CheesyChocolate No, it is fine; we have some caching layers, so feel free to make more queries (as long as it is not 10 queries per second :)

Looks like the service has hit the 1M requests limit again:

Sorry, we processed more than 1M requests today and we ran out of our datasource capacity.
We hope to solve the problem as soon as possible, so you can enjoy
your favourite weather service 24x365 even if it rains or snows.

Has the service hit again the 1M requests limit again ?

Limit has been hit several days in a row. Should we reopen this issue / is this being handled by another issue of which I'm unaware? Can anything be done about this? I don't know exactly how wttr.in gets its data but is there anything that the community can do to increase the limit?


chore(test): rearrange e2e structure folder

The goal of this PR is to rearrange the structure of the E2E test as they had grown untidily. We also address the need to reduce the time to execute the common smoke test which is used for nightly releases. The idea is to install an operator ahead of time for all those tests (80% of them) which do not require a brand new installation every time instead of creating one from scratch at every test. With this we'll leverage also the reuse of kits and dependencies stored.
With this PR we should go from the average 3 hours to execute such a test to about 45 minutes (tested in my fork).
Closes #3847

Release Note
chore(test): rearrange e2e structure folder

[ ] Missing some dev documentation to explain the new structure


[#4841] Add after_database_authentication callback after sign_in immediately after password update

Fixes #4841

@tegon For your review, please. Thank you.


How do we embed custom frozen modules into the v2 firmware?

Hi,
For microbit v1, I can do so by following the steps described here https://github.com/bbcmicrobit/micropython/issues/555#issuecomment-419491671. Are there similar steps that I can follow for the v2 firmware?
Thank you!

You can add your frozen code to src/codal_port/manifest.py and rebuild.

Thanks much! It works!


new issue

issue

/vote close

/vote close

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

/vote close it down

Time remaining: 0:02 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.

/vote close it down

Time remaining: 0:00 - Vote status: passing

:no_entry: The issue has been closed after a vote.

/vote reopen

Time remaining: 0:00 - Vote status: passing

:recycle: The issue has been reopened after a vote.


Access to BluetoothDevice

Would it be possible to add a val property to GattConnection to return its associated bt device?  It would be useful when I want to display properties (like mac address) without having to save them externally when they are already part of the object.

Hi, yes it is possible. Do you want to make a PR adding it to the interface, and editing the constructor of the implementation accordingly?


How to implement a label that is not the same as the value displayed when it is selected

I have a function
The data are as follows:
data:{
	userList:[
		{id:1,name:"tom",code:"10001"}
		{id:2,name:"tony",code:"10002"}
		{id:3,name:"jack",code:"10003"}
		......
		],
		user:{id:2,name:"lily",code:"10002"}
}

HTML:
<multiselect  v-model="user" label="name"
:show-labels="false"
:options="userList"
:hide-selected="true"
@search-change="findUser"
@select="setUser($event)">

1. I input "t" to display the following drop-down format:
tom-10001
tony-10002
When I selected "tony-10002", this input show "tom", not include "10002"
2. I input "92" to display the following drop-down format:
tony-10002
When I selected "tony-10002", this input show "tom", not include "10002"
How to implement this feature

maybe this will help you: sub-custom-option-template

@smartwei - As suggested by @aamatveev, please look at sub-custom-option-template.
If there is still any issue then let us know.


Doesn't work on my project

Hei,
I tried to setup pronto-credo on SignDict together with travis and sadly it does not report errors. Not sure what I did wrong or how to debug this, but I am happy to help you with any information you might need.
What do you need to investigate this with me?
Thanks <3

I am encountering the same problem. This might be the same error. I was debugging for a little bit.
Can you try to remove this line
And see what the output is? That did the trick for me (the path that is checked is an absolute path and will therefore never match the credo relative path).
I am not sure what the implications of removing this line will be.

Follow Up:
There is an open PR which seems to deal with this issue. Specifically this commit fixes it for me.

Yes, this fixes it for me. Would love that PR to be finished and merged 👍 .
@carakan: If there is anything that I can do to speed that up, please ping me. I can help to fix any outstanding things.

For a workaround, I forked this repo and applied the fix. I got it to run via specific_install:
gem install specific_install
gem specific_install -l https://github.com/leifg/pronto-credo

sorry @bitboxer @leifg  for the delay, I pick that commit https://github.com/carakan/pronto-credo/pull/4/commits/5677a48972dab75013a3d972fb5ac166aab3b691 and will make a new version, so about of PR #4 I'm going to create a test suite to handle correctly all the cases in this new BIG change, also I'll create two ways to use pronto with credo (if is possible in my time): the traditional it will the current functionality and a new with more detailed errors added with that PR, to avoid some weird and undesirable changes.


Update CI workflow

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

Project coverage is 100.00%. Comparing base (7182734) to head (88e22fd).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #204   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           74        74
  Lines         1743      1743
  Branches       170       170
=========================================
  Hits          1743      1743

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


Deliverable-1

In deliverable 1, the team is aimed to answer the following question:
How much energy is consumed in 10 minutes at 90MW?
Task Specifications:

[ ] Find raw data (load raw data into data frames & convert xlsx files to CSV files)
[ ] Do a basic data preprocessing (cleaning data)
[ ] Basic data analysis of existing data (find insights of data)
[ ] Finding external data relevant to Australian National Energy Market (try unimelb marketing database)
[ ] Generate the price trends plots on the project specification pdf page.10
[ ] Answer the first question: How much energy is consumed in 10 minutes at 90MW?

Other requirements:

[ ] Familiar with the current agile data project workflow
[ ] Familiar with PR, ACTION, CI & CD working pipeline
[ ] Understand the importance of documentation

Finish upload meeting 1 and 2 notes to wiki @chuangyu-hscy


Getting error by using model " gpt-3.5-turbo "

It gives this error
" Undefined array key "choices"
my code is:
$title = $request->youtube_title;
$result = OpenAI::completions()->create([
"model" => "gpt-3.5-turbo",
"temperature" => 0.7,
"top_p" => 1,
"frequency_penalty" => 0,
"presence_penalty" => 0,
'max_tokens' => 500,
'prompt' => sprintf('write a lesson plan on %s', $title),
]);
Can we find this out?

I have found the solution.

Can you tell me how you figured it out please ?

If you're trying to use gpt-3.5-turbo, you need to use the Chat endpoint: https://github.com/openai-php/client#chat-resource


correct IRC channel

refs #395, as this bit me as well.
Signed-off-by: Matthew Fisher<EMAIL_ADDRESS>

LGTM

thanks


Paste duplication

Steps to reproduce:

Cut text via Ctrl-X
Paste via Ctrl-V
The text is pasted twice

I have tried to reproduce this, and cannot.
My system is Windows 10 and Lite version 1.03 (09 May 2020).
It may be helpful to know which OS and version you are using.
Kind Regards Gavin Holt

Linux Fedora 32, ThinkPad X1 Carbon 5th Generation, 8GB RAM

lite uses SDL to manage it's clipboard, it does this through simple set and get functions provided by SDL -- as this seems to only be an issue for you specifically the bug is more likely to be in SDL or some other layer and thus is something that won't be fixed in lite directly. This may be something that you instead need to bring up with the SDL team.


Confirm subscription delete checklist created by Platform Admins

Describe the Issue
Confirm subscription delete checklist created by Platform Admins.
Additional Context
Add any other context, attachments or screenshots
Acceptance Criteria

Post-creation review of list, inquiries possibly made and new information added/to be added
Refine list where additional information is known
Discuss these together with Platform Admins before start of deletion execution (see separate task)

Process completed. Closing


Linking assistant messages back to vellum as executions

Still need to iterate on this - broken as it stands
Will record a demo when finished - I think it will be sick

Closing in favor of: https://github.com/vellum-ai/vellum-example-apps/pull/22


Add useSSL and region fields for s3 storage

This adds the useSSL and region fields to the s3 storage config from https://github.com/hzrd149/blossom-server-sdk/pull/1

Tested locally and works as expected 👍


Feature/tss 1606 update crown logo on trs services

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

Project coverage is 36.53%. Comparing base (acdb7e8) to head (bb85232).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #299   +/-   ##
=======================================
  Coverage   36.53%   36.53%
=======================================
  Files         104      104
  Lines        4289     4289
  Branches      547      547
=======================================
  Hits         1567     1567
  Misses       2722     2722

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


Updated EU callout text

https://govuk.zendesk.com/agent/tickets/1970518
All referendum callouts have been updated following the triggering of Article 50 so they are up to date and link to up to date information.

Closing this PR. It has been superseded by #3030


Random Crash during Training

My environment
GPU: gtx1080ti
Cuda: 9.2
Cudnn: not download
The program crashes during training sometimes, have you ever experienced the crash?

Sorry, I didn't have this problem. Maybe you can watch the memory usage or GPU power consumption during training stage.
------------------ 原始邮件 ------------------
发件人: "Yonghye<EMAIL_ADDRESS>发送时间: 2020年3月20日(星期五) 上午10:58
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS>主题: [yjh0410/pytorch-yolo-v2-v3] Random Crash during Training (#18)
My environment
GPU: gtx1080ti
Cuda: 9.2
Cudnn: not download
The program crashes during training sometimes, have you ever experienced the crash?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

@yjh0410
Thank you for the reply!


Some chars missing while decrypting in Android side!

While decrypting cypher text in Android using 'decryptCipherTextWithRandomIV', which was received from Php side, shows only a part of actual data or some character is missing. After a few tries randomly get the exact plain text as desired!
The code is mentioned below :
String cipherText = "WelKD2g4ThgJPeRiVz5FCcMoZG9pGCGgSjDlkD2hq3ee1SRPovlia0o9dEBwpLjg";
String key = "1122334455667788";
String decryptedString = cryptLib.decryptCipherTextWithRandomIV(cipherText, key);
Which may produce the plain text with some letters missing sometimes!!!.. Please help out.

Please try out these tests
This way you can narrow down to find if the issue is with Android or PHP

@skavinvarnan Thankyou for your valuable suggestion. Yes I have checked those examples in both Android side and Php side which is working fine!!
But in the same place while checking in the Php side,  decrypting the cypher text which was encrypted from php side itself works fine and receives the output. Also can decrypt the cypherText from Android side successfully.
So im confused in this scenerio. Expecting your valuable comments.

When you say some part is missing, can you confirm the character count. Is it 16?

String key = "1122334455667788";
(Actual cypher text val --> "Hello wolrd 2019")
String cipherText ="WelKD2g4ThgJPeRiVz5FCcMoZG9pGCGgSjDlkD2hq3ee1SRPovlia0o9dEBwpLjg";
But while decrypting('decryptCipherTextWithRandomIV') the same thing repeatedly in Android side, the following is the output >>
First attempt --> ello wolrd 2019
Second attempt --> o wolrd 2019
Third attempt --> Hello wolrd 2019 (which is the correct one)
Fourth attempt --> o wolrd 2019
It goes like that, as the real desired result may miss some letters, one or two!

I guess there is a problem with PHP encoding. Will do the investigation. Meanwhile can you try using Javascript library?
Attaching screenshot of the issue

Presently we cant use Javascipt lib as this was for an API purpose.
Can u suggest any changes in PHP side encryption, if it is the case of  problem with PHP encoding.
Looking forward for your positive reply.

Contribution to the PHP library was done by @ahsankhatri
I need to check in all the platform before confirming the issue.
@vinuz86 It will take atleast a week to fix this issue.

@skavinvarnan Ok thankyou, will wait for your reply.

Whether this issue sorted out..Or still have this issue while decrypting in android / ios

Any truncation issue exists while decrypting with android / ios

There is no issue on ios / android decryption and encryption

Thanks you for the reply...But it seems some letters are been truncated when decrypting using android....we are using the secret key and the IV is random.

The root cause of that is because of encrypting on PHP and decrypt in Android.
Between android and ios it works fine

We are encrypting the API in PHP and trying to decrypt the values using Android / ios..

That doesn't work reliable. I would recommend to use Javascript

But we have to encrypt our date using PHP only...Since we are using the API for fetching the data and pass them as json response

Do a basic regression test before you can depend so much on this library.

Let me have a look on PHP library.

We are creating the APIs using PHP and android / ios part is done by another team where we don't have the flexibility to check the decryption ...We have tested using Postman and worked perfect..So we relied on the library and gave to android team...Decryption issues identified when they have used it. Some parts of  the strings been truncated....

Any updates on the above issue please?

Any updates on the above issue please?

API field encrypted using Laravel is giving different results when decrypting using android / ios.  The field name is  "Emma" and in 5 calls while decrypting, receives "em", "emm", "ma", "Emma" and "ma". Kindly look in to the issue

The issue with was random IV generator, it was generating multi-byte character which caused problem while decrypting on other platform though it was working well with PHP. Please run composer update. I've just rollout v1.1.0.

Thanks You for looking in to the issue...


updated cubicsdr (0.2.0,rc4)

Changes to a cask
Editing an existing cask

[x] Commit message includes cask’s name (and new version, if applicable).
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.

Merged as 61c4d8918fa8d2c9410688550644c54434d8c27a.


v0.9.3 is incompatible with angular

I am receiving above error for angular 1.5.6.

I'm closing this in the interest of cleaning up the issue tracker. If you still have issues, please comment here


Cannot add .gltf or .glb at all "file type isn't allowed"

Hello,
I'm testing H5P AR Scavanger in Moodle 3.9 but when I try to upload f.ex. this gltf file;
https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/AnimatedCube/glTF/AnimatedCube.gltf
I get an error "file type isn't allowed" and .glb file isn't working either and gives the same error

Why not look at the readme or search the H5P forum for that issue?

Sorry about that, somehow i didn't consider readme to contain useful information :)


Allow for layers to be hidden with vanilla's skin customization settings

Title says it all.
Allow for skin layers to be hidden with the vanilla skin customization.
Ie: when a layer is tied to a specific skin overlay and said overlay is disabled in the vanilla skin customization this layer would also be hidden.
an option for this can be added in the "Effects" menu item with checkboxes for each layer
additional anhancement:
when selecting multiple overlay layers allow for selecting between "and", "or", "xor" for when to show the cube

Toggleable layers were added in 0.5.0a


Integrate plus projections and minus projections into current chart

Migrated the BaseChart to typescript so we can separate out chart code from the boilerplate.  Added projection plus and projection minus data to chart.  Moved existing styles into main.scss. Added js-compiled folder for compiled js asets.  Removed old files that accidentally made it into previous merges.  Removed compiled assets from the repo.

Stats.js isn't building on npm start but 616af32 fixes it. Evidently npm build is not the same as npm run build for me.

I think just drop that Bootstrap line and I'll merge the PR. I didn't look at your js changes super hard but I didn't get any errors besides the problems I mentioned above. Also I didn't know scss could import css like you did with Bootstrap. Neato!

Bootstrap line removed.

Sorry, your PR got lost in the Slack/GH flood of notifications. 🌊

No problem :) thanks


new shirt by JoeHammad1844

About the PR

Why / Balance

Technical details

Media

Requirements

[ ] I have read and I am following the Pull Request Guidelines. I understand that not doing so may get my pr closed at maintainer’s discretion
[ ] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

:cl: JoeHammad

add: Added a new shirt to the Syndidrobe and hacked Clothesmate.

Summary by CodeRabbit

New Features

Increased quantities for existing clothing items in the inventory, enhancing availability.
Introduced a new clothing item: Casual Syndicate Jumpsuit, expanding customization options.
Added metadata for the new jumpsuit, enabling detailed graphical representation and interaction.

Bug Fixes

Minor formatting adjustments made to inventory files for improved clarity.

#590

thats my dude :)))))))))))))))


Apply fixes from CodeFactor

This pull request applies style fixes from code review by CodeFactor.

For more information, click here.

OKAY


Question regarding bit masks

Hi,
I have seen Bit masks being used in connection with inline assembly. I've seen it done in the 0x protocol repo and also in this repo. I was not able to find the answer on the web why this is done.
I know what a bit mask is and that the and operation renders any byte outside of the corresponding range to zero. My question is why this is needed, i.e. in which case would an address written into a memory slot have the remaining 96 bytes not all being zero?
Appreciate your help as I am trying to implement something very similar to 0x protocol for my project (DIVA Protocol) and want to make sure I fully understand it.

Ok, I found an answer after receiving the hint to search for ”dirty upper bits“: https://docs.soliditylang.org/en/v0.8.17/security-considerations.html#minor-details


feat: support authentication in Remix

Provide environment information
System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 143.25 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
    pnpm: 9.4.0 - /opt/homebrew/bin/pnpm
    bun: 1.1.26 - ~/.bun/bin/bun
  Browsers:
    Chrome: 128.0.6613.121
    Firefox Nightly: 132.0a1
    Safari: 17.6
  npmPackages:
    @uploadthing/react: ^6.8.0 => 6.8.0
    typescript: ^5.5.4 => 5.5.4
    uploadthing: ^6.13.3 => 6.13.3

Describe the bug
When using clerk to authenticate the request in the middleware it shows the following error
TypeError: Response body object should not be disturbed or locked
On checking the request I can see that it has been locked
 →  args.req.body:  ReadableStream { locked: true, state: 'closed', supportsBYOB: false }
what my file router looks like
import { createClerkClient } from '@clerk/backend'
import { createRouteHandler, createUploadthing } from 'uploadthing/server'
import { FileRouter } from 'uploadthing/types'

export const uploadRouter = {
  imageAndPdf: f({
    image: { maxFileSize: '4MB' },
    pdf: { maxFileSize: '32MB' },
  })
    .middleware(async (args) => {
      const clerkClient = createClerkClient({
        secretKey: process.env.CLERK_SECRET_KEY,
        publishableKey: process.env.CLERK_PUBLISHABLE_KEY,
      })

      try {
        console.log('args.req.body: ', args.req.body)
        const { isSignedIn } = await clerkClient.authenticateRequest(args.req)
        console.log('isSignedIn: ', isSignedIn)
      } catch (error) {
        console.error('error: ', error)
        throw new Error('Unauthorized')
      }
      return { userId: '123', projectId: '456', organizationId: '789' }
    })
    .onUploadComplete(async ({ metadata, file }) => {
      console.log('Upload complete for userId:', metadata)
      console.log('file url', file.url)
    }),
} satisfies FileRouter

Link to reproduction
https://stackblitz.com/~/github.com/DevTGhosh/uploadthing-remix-sample
To reproduce
Add env variable for upload thing and clerk as shown in the .env.example file
Then try to upload a file you should see the error in the server.
Additional information
No response
👨👧👦 Contributing

[ ] 🙋♂ Yes, I'd be down to file a PR fixing this bug!

Code of Conduct

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

We consume the request body, so it isn't available here.
That seems like a very odd way to use Clerk in your middleware, is there a reason you are not just using auth() eg something like this?
import { auth } from "@clerk/nextjs";

// ...

export const uploadRouter = {
  videoAndImage: f({
    image: {
      maxFileSize: "4MB",
      maxFileCount: 4,
    },
    video: {
      maxFileSize: "16MB",
    },
  })
    .middleware(({ req }) => {
      const { userId } = auth();
      if (!userId)  throw new Error("Please sign in");

      // ...

      return { userId };
    })
    .onUploadComplete(({ file, metadata }) => {
      // ...
    }),
} satisfies FileRouter;

Ah I see. We might need some changes to actually support Remix properly. cc @juliusmarminge @t3dotgg

I'd be okay adding a remix adapter that forwards all arguments.

What's the timeline looking like for supporting remix?
Just let me know if it's over / under  a week.  I don't have too much time to finish the feature I am working on.

Should be tomorrow, all going well

Works:
https://github.com/user-attachments/assets/0c9e9dc1-9f6f-4e1c-9a5a-4ad3de9aac3c

Newest version of uploadthing has native remix support

https://github.com/pingdotgg/uploadthing/blob/main/examples/with-clerk-remix/app/routes/api.uploadthing.tsx#L16

It works with v7. Thanks!


[Question] Where is Vendetta's plugin folder ?

Thanks

plugins are loaded from URLs, find them in the vendetta discord server

So there can't be a simple solution like archiving a directory as I do with Aliucord and BetterDiscord ?
Regarding URLs, would it be possible to paste them all at once ?

I told you. You can use screwdriver to save all your plugins and their settings and then import them into the new app.

I just remembered now that the backup plugin is MigrationStation.
Screwdriver is for another reason.
Skill issue time


Can not open the google docs

Something is wrong with the google docs link. Can anyone open the link?

same question, can anyone provide me the google doc ?


FR: Output formatting to omit NA

Please follow the guide below
Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Description of your issue, suggested solution and other information
You allow formatting file name of output by templating.
And according to doc, quoting:

Each aforementioned sequence when referenced in an output template will be replaced by the actual value corresponding to the sequence name. Note that some of the sequences are not guaranteed to be present since they depend on the metadata obtained by a particular extractor. Such sequences will be replaced with NA.

If I use it like -o '%(playlist)s.%(playlist_index)s %(title)s.%(ext)s' in config and said download single video, not in playlist, I got file named similar to: NA.NA Viktor Gamov on In-Memory Data Grids.mkv
It is wired.
First simple workaround I found is configure also: --exec 'rename "NA.NA " "" NA.NA* || [ $? -eq 4 ] #{}' (and please note {} goes after comment mark because otherwise we got error on rename if we save multiple files for json and description).
It solve only partial of problem. Files named as expected, but when I start download multiple files - all will be re-downloaded from start, without continue!
My suggestion introduce option to embed python code as formatter something like:
-o '${arg['playlist'] + '.' + str(arg['playlist_index']) if arg['playlist'] != 'NA' else ''} %(title)s.%(ext)s'

It is desired and flexible solution, but will require invent wheel for parsing.
Otherwise possible solution just allow provide lambda function to fully create such string in python style of lambda. Idea borrowed from offlineimap configuration offered.
For example:
--output-lambda '(lambda arg: arg['playlist'] + '.' + str(arg['playlist_index']) + ' ' + arg['title'] + ' - ' + arg['title'] if arg['playlist'] != 'NA' else '') ${arg['playlist'] + '.' + str(arg['playlist_index']) if arg['playlist'] != 'NA' else arg['title'] + ' - ' + arg['title']}'

Obviously arg should be dict and contain keys as described in documentation.

Are you interesting in that future? Have it worth to implement it and provide pull request?

I use -o "Downloads/%(playlist_index)s%(title)s.%(ext)s" in my config for playlists, but every time I download a single file I get "NAfilename.mp4". It is annoying having to rename the file each time or edit my config just to download a playlist. I would like NA to not be printed in filenames.

I'd love this feature implemented too.


Error: Run WordPress Container Setup Script

Problem Description
Error downloading Wordpress during initial setup on step Run WordPress Container Setup Script
https://www.elegantthemes.com/documentation/developers/divi-development-environment/
Steps To Reproduce
1.Execute docker-compose exec -u 1000 wordpress divi-dev setup
Screenshot and/or gif

Looks like you have an outdated image. Run docker pull elegantthemes/divi-dev and then try again.

I'm having the same issue with the latest image. macOS 10.12.6 with docker version 18.09.2

Looks like you have an outdated image. Run docker pull elegantthemes/divi-dev and then try again.

Thanks @lots0logs - that didn't work for me.

I have the same issue.... cannot download wordpress

Could you provide the output of docker images?

Happy to find I'm not alone. I have the same issue, but I'm on Ubuntu 18.10.
docker images output:
REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE
elegantthemes/divi-dev   latest              0366353c4689        4 weeks ago         456MB
hello-world              latest              fce289e99eb9        3 months ago        1.84kB
mariadb                  10.2.14             2cbeee8bd9cf        10 months ago       399MB

You have an outdated copy of the image. Did you run docker pull elegantthemes/divi-dev?

I just did the image update and am trying again.
Sorry, but I still have the problem.

After running docker pull elegantthemes/divi-dev and then docker images:
elegantthemes/divi-dev   latest              0366353c4689        4 weeks ago         456MB

Okay looks like the tag didn't update properly on docker hub. I fixed it. Run docker pull again and then it should work.

It pulled the latest version, but I still get the error. docker images shows this:
elegantthemes/divi-dev   latest              216d801fb9a1        5 days ago          500MB elegantthemes/divi-dev   <none>              0366353c4689        4 weeks ago         456MB
Do I need to get rid of the old image somehow?

Make sure you start with a fresh directory. Remove any directories inside it that were created by the container in your previous attempts.

I'll try that

I might need your help with the directories. I'm new to docker. I've always used Vagrant. I currently have one directory under /home/douglas/wpdevel in which I have my docker-compose.yml. There are no dirs under that, so I don't know what to remove.

As long as the only thing in the directory is the compose file then you are good. What is the output when you try to start the container using the compose command in our docs?

I decided to nuke all my containers and images and start over.
Then I ran docker-compose exec -u 1000 wordpress divi-dev setup
And it works!

I used the instructions here to learn how to clear out unused/unwanted images and containers:
https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes


Failed to load resource: the server responded with a status of 404 (Not Found)

The build folder is not exist under www, And when I run ionic serve, see this in the terminal:
CengcengtekiMacBook-Air:www cengceng$ ionic serve
Running live reload server: undefined
Watching: 0=www//*, 1=!www/lib//*
√ Running dev server:  http://localhost:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit

CengcengtekiMacBook-Air:app cengceng$ ionic info
Your system information:
Cordova CLI: 4.3.0
Gulp version:  CLI version 3.9.0
Gulp local:
Ionic CLI Version: 2.0.0-beta.15
Ionic App Lib Version: 2.0.0-beta.8
ios-deploy version: 1.8.3
ios-sim version: 4.1.1
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 6.4 Build version 6E35b

Hi @chenzhizhuan
I managed to solve this issue running npm install from the project base folder.

@chenzhizhuan Can you see if running npm install fixes it for you, too?

CengcengtekiMacBook-Air:ionic-conference-app cengceng$ sudo npm install -g ionic@beta
Password:
/usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic

<EMAIL_ADDRESS>postinstall /usr/local/lib/node_modules/ionic
node lib/tasks/postinstall

<EMAIL_ADDRESS>postinstall /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cross-spawn/node_modules/spawn-sync
node postinstall

<EMAIL_ADDRESS>install /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-sass/node_modules/node-sass
node scripts/install.js

Binary downloaded and installed at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node

<EMAIL_ADDRESS>postinstall /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-sass/node_modules/node-sass
node scripts/build.js

/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node exists.
testing binary.
Binary is fine; exiting.

<EMAIL_ADDRESS>install /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-watch/node_modules/chokidar/node_modules/fsevents
node-pre-gyp install --fallback-to-build

[fsevents] Success: "/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-watch/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v14-darwin-x64/fse.node" is installed via remote

<EMAIL_ADDRESS>install /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
node-pre-gyp install --fallback-to-build

[fsevents] Success: "/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v14-darwin-x64/fse.node" is installed via remote
<EMAIL_ADDRESS>/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cross-spawn/node_modules/spawn-sync
<EMAIL_ADDRESS>/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-sass/node_modules/node-sass
<EMAIL_ADDRESS>/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/gulp-watch/node_modules/chokidar/node_modules/fsevents
<EMAIL_ADDRESS>/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
<EMAIL_ADDRESS>/usr/local/lib/node_modules/ionic
CengcengtekiMacBook-Air:ionic-conference-app cengceng$

Can you try running just npm install from within the project folder? These steps: https://github.com/driftyco/ionic-conference-app#getting-started

Greetings @chenzhizhuan!
I'm sorry, but my sensors indicate that this issue may no longer apply to recent versions of Ionic.
If you are still experiencing this issue, please feel free to reopen it by creating a new issue and provide the following information, so that I may assist you:

Can you provide a detailed description of this issue?
How would a robot go about replicating this issue?
On which platform does this occur? (iOS, Android, all, etc.)
On which platform versions does this occur? (Android 4.2, iOS 7, all, etc.)
Is this an issue with the Ionic Framework or Ionic CLI?

Additionally, providing a codepen that replicates the issue is extremely helpful.
If you wish to get help using Ionic, I recommended visiting the forum. There are many humans there who can offer sage advice.
Thank you for allowing me to assist you.

Same Error i am getting . and i am not able to build and deploy . please help this. Failed to load resource: the server responded with a status of 404 (Not Found) #117

@Vinothapplife What steps did you take after cloning the project? Please see my previous comment: https://github.com/driftyco/ionic-conference-app/issues/117#issuecomment-167940165

@brandyscarney  after installed Cordova CLI: 6.1.1. i am getting this error. early waiting to see ionic 2 in my mobile. still i am not able to see. i hope you will give good solution. if yo have any demo please share to me<EMAIL_ADDRESS>


Make it more obvious that the cache call does double duty

I wasted 20+ minutes because I didn't realize this and couldn't find the information in the documentation anywhere. Hopefully adding it to the Readme will help someone else avoid that pain in the future.

Same here, but I'd suggest a slight rewording of your note:

sets up a hook to restore the
should probably read sth like
sets up a hook to post (upload) the new version of the cache

I'm including "post" as it seems to be the terminology Github has chosen to use for this.
Thanks for opening a PR, though; I feel this is a simple but important improvement.

Our example at https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows should be good enough to make this obvious that the cache needs to be restored before the cached files are required.
Adding @lucascosti to take a look and if a change is required, we should probably add that to the above docs page.


warning: 'this' pointer is null in fields/clmul_common_impl.h

Building 4c1d32bfd484a6da1ba96e1aea5a0ff83251cfa7 with GCC 11 (gcc-11 (Ubuntu 11.1.0-1ubuntu1~21.04) 11.1.0):
In file included from src/fields/clmul_4bytes.cpp:11:
src/fields/clmul_common_impl.h: In instantiation of 'static constexpr I {anonymous}::GenField<I, B, MOD, MUL, F, SQR, SQR2, SQR4, SQR8, SQR16, QRT, T, LOAD, SAVE>::Sqr16(I) [with I = unsigned int; int B = 25; I MOD = 9; I (* MUL)(I, I) = {anonymous}::MulWithClMulReduce<unsigned int, 25, 9>; F = RecLinTrans<unsigned int, 5, 5, 5, 5, 5>; const F* SQR = (& {anonymous}::SQR_TABLE_25); const F* SQR2 = (& {anonymous}::SQR2_TABLE_25); const F* SQR4 = (& {anonymous}::SQR4_TABLE_25); const F* SQR8 = (& {anonymous}::SQR8_TABLE_25); const F* SQR16 = 0; const F* QRT = (& {anonymous}::QRT_TABLE_25); T = IdTrans; const T* LOAD = (& ID_TRANS); const T* SAVE = (& ID_TRANS)]':
src/fields/clmul_common_impl.h:140:46:   required from '{anonymous}::GenField<I, B, MOD, MUL, F, SQR, SQR2, SQR4, SQR8, SQR16, QRT, T, LOAD, SAVE>::Elem {anonymous}::GenField<I, B, MOD, MUL, F, SQR, SQR2, SQR4, SQR8, SQR16, QRT, T, LOAD, SAVE>::Inv({anonymous}::GenField<I, B, MOD, MUL, F, SQR, SQR2, SQR4, SQR8, SQR16, QRT, T, LOAD, SAVE>::Elem) const [with I = unsigned int; int B = 25; I MOD = 9; I (* MUL)(I, I) = {anonymous}::MulWithClMulReduce<unsigned int, 25, 9>; F = RecLinTrans<unsigned int, 5, 5, 5, 5, 5>; const F* SQR = (& {anonymous}::SQR_TABLE_25); const F* SQR2 = (& {anonymous}::SQR2_TABLE_25); const F* SQR4 = (& {anonymous}::SQR4_TABLE_25); const F* SQR8 = (& {anonymous}::SQR8_TABLE_25); const F* SQR16 = 0; const F* QRT = (& {anonymous}::QRT_TABLE_25); T = IdTrans; const T* LOAD = (& ID_TRANS); const T* SAVE = (& ID_TRANS); {anonymous}::GenField<I, B, MOD, MUL, F, SQR, SQR2, SQR4, SQR8, SQR16, QRT, T, LOAD, SAVE>::Elem = unsigned int]'
src/fields/../sketch_impl.h:302:34:   required from 'std::vector<typename F::Elem> BerlekampMassey(const std::vector<typename F::Elem>&, size_t, const F&) [with F = {anonymous}::GenField<unsigned int, 25, 9, {anonymous}::MulWithClMulReduce<unsigned int, 25, 9>, RecLinTrans<unsigned int, 5, 5, 5, 5, 5>, (& {anonymous}::SQR_TABLE_25), (& {anonymous}::SQR2_TABLE_25), (& {anonymous}::SQR4_TABLE_25), (& {anonymous}::SQR8_TABLE_25), 0, (& {anonymous}::QRT_TABLE_25), IdTrans, (& ID_TRANS), (& ID_TRANS)>; typename F::Elem = unsigned int; size_t = long unsigned int]'
src/fields/../sketch_impl.h:397:36:   required from 'int SketchImpl<F>::Decode(int, uint64_t*) const [with F = {anonymous}::GenField<unsigned int, 25, 9, {anonymous}::MulWithClMulReduce<unsigned int, 25, 9>, RecLinTrans<unsigned int, 5, 5, 5, 5, 5>, (& {anonymous}::SQR_TABLE_25), (& {anonymous}::SQR2_TABLE_25), (& {anonymous}::SQR4_TABLE_25), (& {anonymous}::SQR8_TABLE_25), 0, (& {anonymous}::QRT_TABLE_25), IdTrans, (& ID_TRANS), (& ID_TRANS)>; uint64_t = long unsigned int]'
src/fields/../sketch_impl.h:394:9:   required from here
src/fields/clmul_common_impl.h:114:73: warning: 'this' pointer is null [-Wnonnull]
  114 |     static inline constexpr I Sqr16(I a) { return SQR16->template Map<O>(a); }
      |                                                   ~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from src/fields/clmul_common_impl.h:14,
                 from src/fields/clmul_4bytes.cpp:11:
src/fields/../lintrans.h:134:24: note: in a call to non-static member function 'constexpr I RecLinTrans<I, N, X ...>::Map(I) const [with O = BitsInt<unsigned int, 25>; int P = 0; I = unsigned int; int N = 5; int ...X = {5, 5, 5, 5}]'
  134 |     inline I constexpr Map(I a) const { return trans.template Map<O, P>(a) ^ rec.template Map<O, P + N>(a); }

Full output.
I haven't looked into this, but noting it here as if this is going to be integrated into Cores build system, this will likely need to be fixed / suppressed etc.

Hmm, that's annoying. It's correct, but also not actually in issue as this code will never be invoked in situations where a nullptr was passed (it's all compile-time stuff). Let me try to work around it.

See #44.


Document how to support Serde as an optional library feature

This is mentioned under feature flags and in the source.
It would be nice to have an example or at least mention under Using derive.
As I understand it, doing so involves this:
serde = { version = "1.0", optional = true, features = ["derive"] }

and this:
#[cfg(feature="serde")]
#[macro_use]
extern crate serde;

and this:
#[cfg_attr(feature="serde", derive(Serialize, Deserialize))]
pub struct MyStruct { ...

Related to this is a question about dependency versions; e.g. if Serde 1.1 is ever released, should a library provide serde_1_0 and serde_1_1 optional features? Or must all libraries in the dependency chain upgrade their Serde versions at once?

Crates that want to support multiple Serde versions at once can use https://github.com/serde-rs/legacy.

In https://serde.rs/derive.html , it is still suggested to declare serde_derive as a dependency directly if you want to use #[derive(Deserialize, Serialize)]. Should an optional feature derive declaration of serde be prefered?

I typically still prefer depending on serde_derive. The re-export from serde is intended for crates that optionally depend on serde and need derive along with it, which is uncommon. Other than that, I don't have a compelling argument in either direction.

which is uncommon

and will remain that way without a clear guide.
Serde Legacy doesn't give much usage guide either. Is it possible to do something like #[derive(serde09::Deserialize)?
Can a library seamlessly migrate from using a single version of Serde to using Serde Legacy to support multiple versions without breaking dependant crates?
Is it likely that Serde 1 will be superseded in the future, or is there a promise never to release another breaking change?


Added ability to completely overwrite old git submodules when fetching fresh ones

Codecov Report

Merging #142 into master will decrease coverage by 0.14%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
- Coverage   40.59%   40.44%   -0.15%
==========================================
  Files          12       12
  Lines         271      272       +1
==========================================
  Hits          110      110
- Misses        161      162       +1

Impacted Files
Coverage Δ

lib/kite/module.rb
35.61% <0%> (-0.5%)
:arrow_down:

Continue to review full report at Codecov.

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


PR: Use QRegularExpression for find and replace (in Pyqt5).

Partially fixes #3408 (only PyQt5)
QRegExp didn't support lazy quantifiers, like *?, +?, etc. It's better to use QRegularExpression.
Although QRegularExpression is only avalaible since Qt5, so It'll continue using QRegExp for PyQT4

Nice, thanks for the quick fix @rlaverde!
Could you add a test for this?

Supporting this for PyQt5 we will have to eventually deprecate PyQt4 because it's not maintained anymore.

@rlaverde, are you working on test for this one?

LGTM, merging. Thanks @rlaverde :-)


Test msrv against test

I have a project where the MSRV for the tests is not the same as for the binary

Hi @Skallwar, you can include the tests by running cargo msrv with the following arguments: cargo msrv -- cargo check --tests --all, or if you also want to execute the test cases cargo msrv -- cargo test --all.
In fact, any program runnable through rustup run can be used.

I'm wondering if my CI should only run the test with a stable version and try to build with both stable and MSRV. I don't what is the best practice for this

I won't claim to know whether there is a consensus on a best practice 🙂. In the projects of others I usually see tests being evaluated on both stable and the MSRV. I think that this configuration is used for at least two reasons:

executing tests on MSRV as well (as stable) may have a small extra chance to catch out bugs caused by a toolchain (such as inadvertently introduced incompatibilities; such bugs are difficult to spot)
it's easy to configure testing for both since usually you can simply add another toolchain version by including it in your build matrix
if you have the build capacity, the stable and MSRV instances can run in parallel, not costing extra build time

There are also disadvantages to testing on additional platforms (e.g. MSRV) such as:

if you have limited resources (e.g. for non public projects), CI minutes can become quite expensive
if you have a smaller amount of parallel builds, or simply have a large test suite, the run time of the test suite may take a significant amount of time (which may also block other people from running their PR's on the CI workers)

For my own projects, I usually:

run the tests on at least the latest backwards compatible stable
run an MSRV instance with cargo check --all (i.e. building without linking) which has the aim of verifying consumers of a library can safely compile it as part of their project, within their own MSRV.

The test instances help me find defects within my code and configuration; the MSRV check tries to ensure  a crate is able to run on a specific language feature set.
For me, this is usually the right balance between practicality and stability on this matter.
I'm however always interested in learning new developments in this area :).

Thanks a lot for taking the time to explain everything


[documentation] Unable to install guardrail package from hub after latest release

Getting 401 unauthorized as error message.
Tried with github cli after setting the token. I wasn't successful. Can anyone share steps/document to follow to download guardrails from hub?

It worked. Thanks

It worked. Thanks


Removing Datadog for staging deployments

This was triggering intermittent deployment failures when using Capistrano.

We are going to have a conversation about this offline @bess @acozine.

Following a conversation with RDSS colleagues, I can propose to close this PR. I apologize for misunderstanding the restrictions regarding Datadog.


🐛 BUG: formatting .astro files throwing error in vscode

Describe the Bug
Invoking "Format Document" does nothing to the file and throws an error in the output for Astro Language Server
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/Users/runeb/src/monorepo/node_modules/prettier-plugin-astro' is not supported resolving ES modules imported from /Users/runeb/src/monorepo/node_modules/prettier/index.mjs
Did you mean to import /Users/runeb/src/monorepo/node_modules/prettier-plugin-astro/dist/index.js?
    at new NodeError (node:internal/errors:387:5)
    at finalizeResolution (node:internal/modules/esm/resolve:425:17)
    at moduleResolve (node:internal/modules/esm/resolve:1012:10)
    at defaultResolve (node:internal/modules/esm/resolve:1220:11)
    at nextResolve (node:internal/modules/esm/loader:165:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:844:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:18)
    at ESMLoader.import (node:internal/modules/esm/loader:528:22)
    at importModuleDynamically (node:internal/modules/esm/translators:110:35)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) {
  code: 'ERR_UNSUPPORTED_DIR_IMPORT',
  url: 'file:///Users/runeb/src/monorepo/node_modules/prettier-plugin-astro'
}

I have attempted to re-install the Astro extension and clear out node_modules reinstalling everything
Steps to Reproduce

Initialize an Astro project as an app in a turbo repo at apps/web
Use vim mode in vscode (no idea if its relevant)
Install the latest (v2.1.3) Astro vscode plugin and attempt to format an .astro file
See that nothing changes in the file and no error message displayed
Open the Output tab of vscode and see the error pasted above

Being careful to remove any local prettier-plugin-astro modules, the error is the same, but with different paths.
I also upgraded to<EMAIL_ADDRESS>Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/Users/runeb/.vscode/extensions/astro-build.astro-vscode-2.1.3-darwin-arm64/node_modules/prettier-plugin-astro' is not supported resolving ES modules imported from /Users/runeb/src/monorepo/node_modules/prettier/index.mjs
Did you mean to import /Users/runeb/.vscode/extensions/astro-build.astro-vscode-2.1.3-darwin-arm64/node_modules/prettier-plugin-astro/dist/index.js?
    at new NodeError (node:internal/errors:387:5)
    at finalizeResolution (node:internal/modules/esm/resolve:425:17)
    at moduleResolve (node:internal/modules/esm/resolve:1012:10)
    at defaultResolve (node:internal/modules/esm/resolve:1220:11)
    at nextResolve (node:internal/modules/esm/loader:165:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:844:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:18)
    at ESMLoader.import (node:internal/modules/esm/loader:528:22)
    at importModuleDynamically (node:internal/modules/esm/translators:110:35)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) {
  code: 'ERR_UNSUPPORTED_DIR_IMPORT',
  url: 'file:///Users/runeb/.vscode/extensions/astro-build.astro-vscode-2.1.3-darwin-arm64/node_modules/prettier-plugin-astro'
}

}

I'm facing exast same error on my side. :( The forrmatin doesn't work at all

@adamklepacz
Mee too. I tried both MacOs & Windows

Sorry to bother by reopening the thread but I am still having trouble with this.

My Astro-extension-vscode version is v2.1.4
MacOs

I tryed editing my Settings.json as per in structed in the astro-prettier-plugin (also tried removing that configuration with no luck)
error logged from prettier:
[...]
["INFO" - 15:15:56] PrettierInstance:
{
  "modulePath": "/Users/[...]/node_modules/prettier/index.cjs",
  "importResolver": {},
  "callMethodResolvers": {},
  "currentCallMethodId": 20,
  "version": "3.0.0"
}
[...]
["WARN" - 15:15:56] Parser not inferred, trying VS Code language.
["ERROR" - 15:15:56] Failed to resolve a parser, skipping file. If you registered a custom file extension, be sure to configure the parser.

Sorry to bother by reopening the thread but I am still having trouble with this.

My Astro-extension-vscode version is v2.1.4
MacOs

I tryed editing my Settings.json as explained in the astro-prettier-plugin docs (also tried removing that configuration with no luck)
error logged from prettier:
[...]
["INFO" - 15:15:56] PrettierInstance:
{
  "modulePath": "/Users/[...]/node_modules/prettier/index.cjs",
  "importResolver": {},
  "callMethodResolvers": {},
  "currentCallMethodId": 20,
  "version": "3.0.0"
}
[...]
["WARN" - 15:15:56] Parser not inferred, trying VS Code language.
["ERROR" - 15:15:56] Failed to resolve a parser, skipping file. If you registered a custom file extension, be sure to configure the parser.

This issue is about formatting with our extension, not Prettier's. Without seeing your config, I can't really help

@Princesseuh
What config would you need to see? should I create a separate issue?
I am using the latest version of prettier (Prettier - Code formatter v9.19.0)


Add basic URL validation to UrlField

LGTM.

@jschwartz79 can you retarget this to develop instead of master?

See https://github.com/six8/springfield/pull/4 for develop targeted pull request.


Update setup.py

Right now setup.py lists the incorrect license + python versions we support. This should be fixed.

Fixed with #812


Dragging window around is very buggy

https://github.com/bevyengine/bevy/assets/146845123/e35a4cd5-1415-41ca-86c2-ad66a1e3bd85

Is it possible that you have some sort of third party window management software that could be interfering with things? See https://github.com/bevyengine/bevy/issues/6075#issuecomment-1260026943 for a similar issue/resolution.
I definitely can't reproduce on my m1 macbook.

Ah yeah, that seems to be the problem! Hm, but other rust frameworks like GPUI and Iced doesn't have this problem for me?

Could you test with winit's examples to help narrow things down? (Bevy 0.13 is using version 0.29)

Ok I've been trying a lot not, I just can't figure out how to get one of the examples to compile...


refactor(DCOS-15919): Routing with reusable component page

This PR adds a component page that can be reused for each UI component in the design system.
Checklist

[x] Did you add a JIRA issue in a commit message or as part of the branch name?
[x] Did you add new unit tests?
[ ] Did you add new integration tests?
[ ] If this is a regression, did you write a test to catch this in the future?

run integration tests


Child User Story #13

As a user I want to use my credentials to log into the website so that I can use the dashboard.
Acceptance criteria pending.

@jriggall

Try visiting the dashboard route without logging in localhost:3000/dashboard
Try submitting an empty form
Try entering an invalid email format
Try a valid email and invalid password and vice-versa
Enter a valid email | password<EMAIL_ADDRESS>| 2020
Try visiting the dashboard route after login localhost:3000/dashboard
logout


Add entry for CVE-2020-3901 to README.md

Bug found with a slightly modified version of fuzzilli.

@googlebot I signed it!

Oh very cool, thanks for that!


WIP global: add open search support

Superseded by https://github.com/inveniosoftware/invenio-search/pull/216


Unable to get SkyDock (SkyDNS) running on Docker-For-Mac Beta Version 1.12.0-rc4-beta19 (build: 10258)

When following the instructions on readme.md  I get the following error when trying to run the SkyDNS container.
jimb$ docker run -d -p <IP_ADDRESS>:53:53/udp --name skydns crosbymichael/skydns -nameserver <IP_ADDRESS>:53 -domain docker
Unable to find image 'crosbymichael/skydns:latest' locally
latest: Pulling from crosbymichael/skydns
a3ed95caeb02: Pull complete
f7ae92886a80: Pull complete
bd8b4cbef957: Pull complete
1775fca35fb6: Pull complete
Digest: sha256:6e1d75797e21f3ceb155e0c7f4b07fc9f785c218f09ae4af997f25c9c2982687
Status: Downloaded newer image for crosbymichael/skydns:latest
a099276591122e09ced6defe3772453841ecd8430d7ad424a59c66bb20684056
docker: Error response from daemon: driver failed programming external connectivity on endpoint
 skydns (16e69d7fe89a491b0fbcf955b3897e0718e3b67be6abc5510a9078630e24556c): Error
 starting userland proxy: listen udp <IP_ADDRESS>:53: bind: cannot assign requested address.

I suspect this may be related to the following issue:
https://github.com/docker/docker/issues/22753
Could anyone confirm this?
This is the output of my docker info
jimb$ docker info
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 1
Server Version: 1.12.0-rc4
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 11
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: host null overlay bridge
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.15-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.954 GiB
Name: moby
ID: ESJG:H4TE:XXVH:PC77:547Q:OHZA:V6UO:LHHL:TTNF:6RK5:NM2X:GTCL
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 19
 Goroutines: 31
 System Time: 2016-07-15T13:30:01.311278928Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8

jimb$ docker ps -a
CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS               NAMES
a09927659112        crosbymichael/skydns   "skydns -http <IP_ADDRESS>"   8 minutes ago       Created                                 skydns
jimb$ docker start skydns
Error response from daemon: driver failed programming external connectivity on endpoint skydns (f463121a1201993e7ac67018f644c101f1c7f3407301ffea506cfa2fb0e87da9): Error starting userland proxy: listen udp <IP_ADDRESS>:53: bind: cannot assign requested address
Error: failed to start containers: skydns

@jimthree if you are doing docker for mac you have the new version of docker installed.  This version has a dns server built in so there is no need for skydock anymore.  You should give it a try, i think you will like it

cool! thanks for the headsup, will go play with it :)


[full-ci] chore: bump oC Web to v7.0.0-rc.30

bump oC Web to v7.0.0-rc.30

@kulmann This has the fix for "open In Web"?

E2E tests failed: https://drone.owncloud.com/owncloud/ocis/21392/88/1
:boom: To see the trace, please open the link in the console ...

npx playwright show-trace https://cache.owncloud.com/public/owncloud/ocis/21392/tracing/folder-alice-2023-4-17-01-00-49.zip
npx playwright show-trace https://cache.owncloud.com/public/owncloud/ocis/21392/tracing/folder-brian-2023-4-17-01-01-03.zip

@kulmann did you rebase? We fixed the ocis linting pipelines on friday.

I created the branch on top of a08ea5647cd5da1b8b542717c3ef2116176ff8a6 from today 07:12:25. So a rebase shouldn't be necessary o_O

E2E tests failed: https://drone.owncloud.com/owncloud/ocis/21392/88/1
💥 To see the trace, please open the link in the console ...

fix here https://github.com/owncloud/web/pull/8835
can we bring it to ocis if CI will be green?

E2E tests failed: https://drone.owncloud.com/owncloud/ocis/21392/88/1
💥 To see the trace, please open the link in the console ...

@ScharfViktor I re-ran the CI to check if this test is flaky. Unfortunately it looks like that 🙈 Could you check this please?
share.ocis.feature:9 failed in And "Brian" should not see the version of the file # tests/e2e/cucumber/steps/ui/resources.ts:347 with page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response"

@ScharfViktor I re-ran the CI to check if this test is flaky. Unfortunately it looks like that 🙈 Could you check this please? share.ocis.feature:9 failed in And "Brian" should not see the version of the file # tests/e2e/cucumber/steps/ui/resources.ts:347 with page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response"

Yes, I know. it's flaky. I fixed it here https://github.com/owncloud/web/pull/8835
see comment above


PF1: Add Attack to entry added to the Combat tab

Within each Item in the Combat tab it is possible to add an attack.

Working in V2.5


Update remove.js

Made a few better changes and where members can't remove staff from tickets

tbh this aint even a good thing. Removing things that could get people's privacy higher, nah.


Getting uncertainties on time gradient and intercept in timing_parameters

Hi, I'm triying to get the uncertainties of time gradient and intercept for using in RF for reconstruction.
I understand that in numpy.polynomial.polynomial.polyfit function  the parameter singular_values returns the singular values of the scaled Vandermonde matrix, with contains the uncertainties, in this case for intercept and slope (time gradient). But now I'm getting just a matrix of [1. 1.].  And this matrix Vandermonde must be of 2x2.
Which is the best way of doing it?
Thank you.

You could use numpy.polynomial.Polynomial.fit.
polyfit is deprecated anyways.

You could use https://en.wikipedia.org/wiki/Weighted_least_squares
Also: maybe the uncertainties on the parameters are interesting, but also the sum / max / min of the residuals could be very helpful

Fixed by merging #1101


Enhancement:  Bring the old charter back.

Please add a way to bring the old charter back the new one is absolutely broken.
It loads for extremely long and the note placement is crappy, I cannot save, I still hear voice files after disabling them in the editor.
I wish we can get the old one back.

it loads for extremely long

True, kade forgot to add grid removal feature so it would load faster

arrow placement is buggy

Press shift + left or right to change snap value. Less snap = less diversity from grid you can do

can't save the chart

What do you mean? The save button is right near song name in third section

I still hear voice track after disabling it

Voice track always should play tho? Only thing you can disable is instrumental track. Or do you mean after pressing space to pause? Never encountered that when charting

the chart can be saved but it frequently glitches when you select it on freeplay, presumably from diffuculty calculation. the song out right crashes if you save it and then open it through the chart menu

ChartingState_OLD1.txt
That is the charter from KE1.5.2, which I've slightly updated to work with KE1.6. Download the file and rename it ChartingState.hx and replace the one from 1.6. Remember to backup the 1.6 first just in case it's silly.

ChartingState_OLD1.txt
That is the charter from KE1.5.2, which I've slightly updated to work with KE1.6. Download the file and rename it ChartingState.hx and replace the one from 1.6. Remember to backup the 1.6 first just in case it's silly.

No Event Editor lol


Can't login even with correct credentials.

Describe the bug
Running flowise on AWS using docker. Used cloudfront for SSL . when flowise is accessed using the https:// it throws 401 even for correct credentials and successfully logins on the same server when done using http://
To Reproduce
Steps to reproduce the behavior:

Run Flowise on AWS using docker
Setup SSL using Cloudfront
Setup app level auth for flowise
try to login from https:// gateway of the server

Expected behavior
Should be able to login.
Setup

Installation [AWS using docker]
Flowise Version [e.g. 1.8.3]
OS: [Linux]

I'm having login issues eg {"code":400,"error_code":"bad_oauth_state","msg":"OAuth callback with invalid state"}
Or saying I'm not on the waitlist when I have already used Flowise. Then if I try to sign up again I get this error

eu estou com o mesmo erro. Alguém sabe como resolver este erro?
I have the same error. Does anyone know how to solve it?


Bundle decorator.py and fix decorators

As discussed in #77, this PR bundles (to avoid dependencies) the decorator.py module and uses it to fix the behavior of prometheus_client's decorators.
The efficacy can be verified by using example view from the README and then doing a:
>>> from inspect import getargspec
>>> getargspec(process_request)
ArgSpec(args=['t'], varargs=None, keywords=None, defaults=None)

Without this patch, you get:
ArgSpec(args=[], varargs='args', keywords='kwargs', defaults=None)

instead.
Let me now what you think.
Also pinging @micheles out of courtesy and to ensure he doesn’t feel we violate his copyright.

That looks good, could you add a quick unittest so we don't accidentally regress?

Yes, no problems on my part, the decorator module is a single file just to
help people that wants to include it and have less dependencies.
On Wed, Jul 20, 2016 at 3:17 PM, Hynek Schlawack<EMAIL_ADDRESS>wrote:

As discussed in #77
https://github.com/prometheus/client_python/issues/77, this PR bundles
(to avoid dependencies) the decorator.py module and uses it to fix the
behavior of prometheus_client's decorators.
The efficacy can be verified by using example view from the README and
then doing a:

from inspect import getargspec
getargspec(process_request)
ArgSpec(args=['t'], varargs=None, keywords=None, defaults=None)

Without this patch, you get:
ArgSpec(args=[], varargs='args', keywords='kwargs', defaults=None)
instead.
Let me now what you think.
Also pinging @micheles https://github.com/micheles out of courtesy and
to ensure he doesn’t feel we violate his copyright.
You can view, comment on, or merge this pull request online at:
https://github.com/prometheus/client_python/pull/91
Commit Summary

Bundle decorator.py and fix decorators

File Changes

M .coveragerc
https://github.com/prometheus/client_python/pull/91/files#diff-0 (4)
M NOTICE
https://github.com/prometheus/client_python/pull/91/files#diff-1 (3)
M prometheus_client/core.py
https://github.com/prometheus/client_python/pull/91/files#diff-2
(38)
A prometheus_client/decorator.py
https://github.com/prometheus/client_python/pull/91/files#diff-3
(417)

Patch Links:

https://github.com/prometheus/client_python/pull/91.patch
https://github.com/prometheus/client_python/pull/91.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/client_python/pull/91, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWYcHT25T7oA9sc3uu03o9FP98mtKYiks5qXh_rgaJpZM4JQw7E
.

I’ve added unit tests for hopefully all decorators and the tests still pass.

Thanks!


禁用SSLv2、SSLv3、TLSv1、TLSv1.1不安全协议

由于端口扫出了 启用 SSLv2、SSLv3、TLSv1、TLSv1.1这些不安全协议

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@Marhoosh 感谢您的pr 这个对openssl的版本要求是怎么样的？需要用宏保护下吗？


I'm getting this error and my images don't work

https://i.rehanplayz.gq/kvci9w4xi0a.jpg

Just ignore it, that happens when you don't enable logging in Discord.

How do I enable it and wdym ignore the images don't work lol (I don't even get the link copied to the clipboard)

Just ignore it, that happens when you don't enable logging in Discord.

How do I enable it and wdym ignore the images don't work lol (I don't even get the link copied to the clipboard)

Edit config.toml.

Just ignore it, that happens when you don't enable logging in Discord.

How do I enable it and wdym ignore the images don't work lol (I don't even get the link copied to the clipboard)

Edit config.toml.

What exactly should do and will my images will work then?

What exactly should do and will my images will work then?

[bot]
enabled = enable
prefix = '&'
token = 'your_bot_token'
admin = ['your_discord_id']
log_channel = 'your_channel_to_log'
default_uid = 1
hostname = 'your_domain'


feat: adds Java type generation.

fixes #72
What does this do
This PR adds a project that generates data model classes as Java POJOs, based on the JSON schema files.
The generated Java types are written to the build/generated-sources/di-data-model directory.
Usage
Here is an example using the IdentityCheckCredentialJWT class. Here, we make use of the chaining builders
(the with... methods), but the POJO setters and getters can also be used.
var credentials = new IdentityCheckCredentialJWT()
        .withSub("urn:fdc:gov.uk:2022:954bc117-731b-41cd-86cf-dfb4e7940fce")
        .withAud("https://passport.core.stubs.account.gov.uk")
        .withNbf(1690816091)
        .withIss("https://review-p.build.account.gov.uk");

var vc = new IdentityCheckCredentialClass().withType(List.of(
        VerifiableCredentialType.VERIFIABLE_CREDENTIAL,
        VerifiableCredentialType.IDENTITY_CHECK_CREDENTIAL
));
credentials.setVc(vc);

var evidence = new IdentityCheckClass()
        .withValidityScore(0)
        .withStrengthScore(4)
        .withCi(List.of("D02"))
        .withTxn("5f57a8f2-62b0-4958-9332-06d9f453e5b9")
        .withType("IdentityCheck");

vc.setEvidence(List.of(evidence));

Example
See the unit test uk.gov.di.model.ModelTest (under src/test/java) for an example of using the
model, then serialising it to JSON.
Build and run
Prerequisites

Generate the schema files from this project (see scripts/generate_json_schemas.sh)
Ensure you have Java 17+ installed

Steps
Generate the Java types and run the unit tests:
./gradlew build

The generated Java types are written to the build/generated-sources/di-data-model directory.
Implementation notes
The class generation is done using the widely-used https://github.com/joelittlejohn/jsonschema2pojo project (specifically its Gradle plugin).
The model classes are annotated using Jackson (though other options are possible).
Publishing
Like the TypeScript variant, the build pipeline produces and publishes an artifact consumable by dependency management tools.
The Maven artifact is published here: https://github.com/orgs/govuk-one-login/packages?repo_name=data-vocab
The Maven publishing configuration is documented here.

@pcornish I'm pretty interested in this, as we've been exploring doing the same thing in IPV Core (using the same library!).
We've only been prototyping so far, and broadly speaking it seems to work pretty well. Having it published here would be even better (and IMO is a better way of tracking schema compatibility than the current iteration of contract testing), so if that's coming soon, we'll avoid duplicating the implementation.
A few issues I encountered while prototyping this:

You get slightly different results depending on what you choose as the top level (the JWT or Credential class)

I guess we should just pick all the distinct JWT classes

There is duplication when building schemas that define the same internal types - e.g. I got a load of copies of VerifiableCredentialType, NamePart etc.
The inheritance structure isn't well reflected, and Java's lack of union types makes it hard to ad-hoc it

There are a bunch of things you can do in the json-schemas to customise this, but the simplest might be to add something like "javaInterfaces": ["uk.gov.di.model.VerifiableCredentialJWT"] to the JWT schemas.
You need to define that interface manually, and ideally it would expose all the shared fields, but just having a shared empty interface is still really useful for consuming code.
You can also reference a base class, e.g. with extendsJavaClass, but inheritance doesn't work great with pojos
Anything cleverer would probably need to be a custom ruleset for jsonschema2pojo

The type definitions are not all complete

Various missing fields and e.g. no RiskAssessmentCredential
This is really a positive as it's an opportunity to bring these definitions up to date
We'll need to take a lot of care to make sure nothing will break in prod :)

On @fewtrees-pa 's comment about serialisation - it feels somewhat necessary to have some annotations, since we're liable to have a few attributes with weird names. However the compatibility point is a sticky one - e.g. at the moment IPV Core can't upgrade to the latest version of jackson because it conflicts with lambda powertools.

This sounds like a really good idea.
Those of us in the data-architects group will need to rely on you @Joe-Edwards-GDS, @pcornish , and @fewtrees-pa to iron out the technical side. If you can get yourselves comfortable where you can approve it?
It does sound like there may be some modelling work or other aspects of the schema work to do, which data-architects can take on.

Updated following conversation with @fewtrees-pa
There are now two artifacts:

plain POJO artifact, with no annotations
annotated artifact, with Jackson annotations

To one of your points @Joe-Edwards-GDS, the range on the Jackson dependency is now specified as a range:
com.fasterxml.jackson.core:jackson-databind:[2.15.2,)

Version syntax docs

...so as to be permissive to the consuming project's version.


feat: update drawio-desktop

Updates to drawio-desktop 14.5.1.
All changes from 14.1.8 to 14.5.1, inclusive, are added in this build.

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


make a changelog

before it's too painful to contemplate...

aaand forgot to link the PR again, this is done so closing


PHP7 matter: Declaration of rbac\controllers\Role: should be compatible with AuthItemController::actionCreate($type)

What steps will reproduce the problem?
use PHP 7
What is the expected result?
access to /rbac/role/index form
What do you get instead?
http://prntscr.com/g4bsuw
Additional info

Q
A

Yii2 version
Yii v2.0.12

Yii2-rbac version
dev-master c7c7685 => 2.0

PHP version
PHP 7.0.21-1~ubuntu14.04.1+deb.sury.org+1

You need to remove $item from you RoleController class

solved, thanks!
and then used %$item in actionCreate


Scroll plugin not working on Vue 3 - Nuxt 3

Thank you for wanting to take the time to report a problem. In order to increase the chances of the issue being
resolved,
please take a moment to give as much relevant information as possible.
Context:

Browser: chrome
Browser-version:  126.0.6478.61
Schedule-X version:
"@schedule-x/current-time": "^1.47.1",
"@schedule-x/event-modal": "^1.47.0",
"@schedule-x/scroll-controller": "^1.47.1",
"@schedule-x/theme-default": "^1.47.0",
"@schedule-x/vue": "^1.44.0",

Describe the bug
Adding the scroll controller plugin to the componen is not scrolling to the initial time.
scrollTo method isn't working either.
To Reproduce
Steps to reproduce the behavior:

Create a new calendar

const createCalendarInstance = () => {
  const scrollController = createScrollControllerPlugin({ initialScroll: '08:00' });
  calendarApp.value = createCalendar({
    selectedDate: new Date().toISOString().split('T')[0],
    views: [viewDay, viewWeek, viewMonthGrid, viewMonthAgenda],
    defaultView: viewWeek.name,
    events: events.value,
    plugins: [
      createCurrentTimePlugin({ fullWeekWidth: true }),
      createEventModalPlugin(),
      scrollController
    ],
    locale: 'es-ES',
  });
 // scrollController.scrollTo('14:00')
};

Reload the page and see that the calendar did not scroll to 8, nor 14.
If scrollController.scrollTo('14:00') uncommented, then an error in shown in the console:

Uncaught (in promise) Error: [Schedule-X error]: Plugin not yet initialized. You cannot scroll before the calendar is rendered. For configuring the initial scroll, use the `initialScroll` parameter
    at ScrollControllerPlugin.scrollTo (@schedule-x_scroll-controller.js?v=234b3112:107:13)

Seems like the plugin is not initialized correctly?
Expected behavior
Calendar to scroll to the configured time.
Screenshots
If applicable, add screenshots to help explain your problem.

Thanks for opening this issue. However, I cannot reproduce the problem with initialScroll. Could you set up a reproduction environment on Stackblitz?
Regarding scrollTo: the plugin is not yet initialized. You just can't use it before the calendar has been painted in the browser.

I just added the scroll plugin to the Nuxt-example: https://github.com/schedule-x/nuxt-example
You could check that out, and compare to your implementation

I have the same issue with Vue 3 and TypeScript:
"@schedule-x/calendar-controls": "^1.45.0",
"@schedule-x/event-modal": "^1.45.0",
"@schedule-x/event-recurrence": "^1.45.0",
"@schedule-x/events-service": "^1.45.0",
"@schedule-x/scroll-controller": "^1.47.1",
"@schedule-x/theme-default": "^1.45.0",
"@schedule-x/vue": "^1.42.0",
"vue": "^3.4.21",
"typescript": "~5.4.0"

I tried using the example in my project, but it doesn't work for me.

I have the same issue with Vue 3 and TypeScript:
"@schedule-x/calendar-controls": "^1.45.0",
"@schedule-x/event-modal": "^1.45.0",
"@schedule-x/event-recurrence": "^1.45.0",
"@schedule-x/events-service": "^1.45.0",
"@schedule-x/scroll-controller": "^1.47.1",
"@schedule-x/theme-default": "^1.45.0",
"@schedule-x/vue": "^1.42.0",
"vue": "^3.4.21",
"typescript": "~5.4.0"

I tried using the example in my project, but it doesn't work for me.

Have you tried updating all dependencies to their latest versions also?
If you do, and it still doesn't work, could it be that you have some global styles in your project that override the overflow styles of Schedule-X?
Maybe check that nothing is overriding this overflow-y?

@tomosterlund @vivibru
Adding the style:

<style>
.sx-vue-calendar-wrapper {
  height: 700px;
  max-height: 90vh;
  width: 100%;
}
</style>

Makes it work. Seems like by default it uses the full height, so there is no overflow.
thanks!
@vivibru please lmk if it works, so I can close the issue


Performance hit creating scoped context instance

I had a problem with performance. One query to DB with simple select with where condition in ASP.NET 5 MVC6 with EF7 in Beta 7 take more then 500ms. After some research and found out that DbContext LifeTime in services is Scoped. And that is a problém, because in each request new DbContext is created and every request doing "First" query what obviosly spend lot of time. When I changed DbContext lifetime from Scoped to Singleton, first request takes 500+ms again, but after that every request take less than 100ms what is much better...
Can you consider change lifetime from scope to singleton? Or put there option to set this on adding context?

@jerry2007 generally it's up to you how to register services/components (singleton/scoped/transient) and lifetime management is not a dbcontext responsibility.
Note that is an anti pattern to use a shared context across multiple request. If you need further help, please share your configuration code.

@jerry2007 Using a shared dbcontext for the application does just not work. Don't do it.
You will run into various problems:

Cross-threading issues because DbContext is not Thread-Safe => If there are multiple queries(requests) at the same time, you will get weird cross-threading related exceptions.

Memory usage: DbContext tracks all entities which are loaded from the db. But these entities are not released if the context lives "forever". This can lead to high memory usage and finally to an OutOfMemoryException.

Stale data: This is also due to the fact that DbContext tracks all entities => It is likely that you will get stale data.

So for a web application, it is generally a good idea to use a scoped context.
Your performance problem (400ms), sounds weird though.I would recommend attaching a profiler to figure out what causes the this performance drop.

If you are measuring performance, make sure you have a Release build and running Non-Debug.
There are some caching of views and queries that may not run in debug, basically so they can be debugged.  This is from observation, not looking at the code.

Context per request is the correct pattern to use (for the reasons discussed in this thread).
@jerry2007 can you share your project so that we can investigate the performance issue?

Closing since we have not heard back, feel free to re-open if you can provide more details


SQL-Error and wrong version in initialize_mysql.sql since v10.0.0

Comma missing at the end of the line.
Table-creation fails.
https://github.com/jeremylong/DependencyCheck/blob/4d47fb91f53df538670f433b6017653efcca5fbc/core/src/main/resources/data/initialize_mysql.sql#L189
Version must be 5.5. Update-Script for 10.0.1 checks for schema-version and stops.
https://github.com/jeremylong/DependencyCheck/blob/4d47fb91f53df538670f433b6017653efcca5fbc/core/src/main/resources/data/initialize_mysql.sql#L382

already resolved. See the current version of the file.

Cool, thx.


Not able to install node-sass on ubuntu

Here is the error
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/ionic/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.16.0-30-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/ionic/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/local/lib/node_modules/ionic/node_modules/node-sass
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
Build failed
/usr/local/lib
└── (empty)
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ionic"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/mayank/npm-debug.log
npm ERR! code 1
npm-debug.log

Node 6 is only supported in v3.7.0.
On 12 May 2016 7:29 PM, "Mayank Goyal"<EMAIL_ADDRESS>wrote:

Here is the error
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit
(/usr/local/lib/node_modules/ionic/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:204:12)
gyp ERR! System Linux 3.16.0-30-generic
gyp ERR! command "/usr/local/bin/node"
"/usr/local/lib/node_modules/ionic/node_modules/node-gyp/bin/node-gyp.js"
"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
"--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/local/lib/node_modules/ionic/node_modules/node-sass
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
Build failed
/usr/local/lib
└── (empty)
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"
"ionic"
npm ERR! node v6.0.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node
scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm
installed.
npm ERR! If you do, this is most likely a problem with the node-sass
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project
with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/mayank/npm-debug.log
npm ERR! code 1
npm-debug.log
https://gist.github.com/thenaughtychild/8c9dc9084defe4d22067c4b6fb8f6529
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/sass/node-sass/issues/1547


unable to install ptan

Hi,
I have pytorch 1.3.1 installed on my pc. And I cant install PTAN as it cant satisfy tour check of pytorch 1.3.0
Any suggestions or way around for this problem

You can install virtual environment using python venv or (preferred) conda env and install required pytorch 1.3.0


defaultDatabase number specified in redis connection string not honoured

I am trying to use the redis cache using the connection string approach and the defaultDatabase that I have specified in the connection string is not getting picked up when caching the data in redis.
My configuration looks like this:
  <cacheManager xmlns="http://cachemanager.michaco.net/schemas/CacheManagerCfg.xsd">
    <managers>
      <cache name="distributed-data-cache" enableStatistics="true" backplaneName="redis.cache" backplaneType="CacheManager.Redis.RedisCacheBackplane, CacheManager.StackExchange.Redis" serializerType="CacheManager.Serialization.Json.JsonCacheSerializer, CacheManager.Serialization.Json">
        <handle name="default" ref="inmemoryHandle" />
        <handle name="redis.cache" ref="redisHandle" isBackplaneSource="true" />
      </cache>
      <cache name="inmemory-data-cache" enableStatistics="true" serializerType="CacheManager.Serialization.Json.JsonCacheSerializer, CacheManager.Serialization.Json">
        <handle name="default" ref="inmemoryHandle" />
      </cache>
    </managers>
    <cacheHandles>
      <handleDef id="inmemoryHandle" type="CacheManager.SystemRuntimeCaching.MemoryCacheHandle`1, CacheManager.SystemRuntimeCaching" defaultExpirationMode="Sliding" defaultTimeout="2m" />
      <handleDef id="redisHandle" type="CacheManager.Redis.RedisCacheHandle`1, CacheManager.StackExchange.Redis" defaultExpirationMode="Sliding" defaultTimeout="5m" />
    </cacheHandles>
  </cacheManager>

Connection string is specified like this:
  <connectionStrings>
    <add name="redis.cache" connectionString="<IP_ADDRESS>:6379,allowAdmin=False,connectTimeout=500,defaultDatabase=3,ssl=False,abortConnect=False,connectRetry=3" />
  </connectionStrings>

With this configuration - I expect the data to be written to database 3 in redis. However, it is getting written to database 0.

Hi @chai-deshpande
Thanks for reporting, yeah that's true, the defaultDatabase flag was recently added to the client library and  I never changed the configuration initialization to respect it. Most of the configuration options of CacheManager provide a way to define the database already, except using <connectionStrings> section...
Anyways, will be fixed in the next version. Until then, just use one of the other options, like CacheManager's redis configuration section...
Thanks,
Michael

Thanks @MichaCo
Looking forward to the next release.

Thank you Michael! I'm waiting for this feature too.

Is there an example of configuring this via code? I, too, need to specify a database other than db0.

fixed in release 1.1.2


Bottom toolbar prevents from clicking on the horizontal scrollbar

When the option Always show toolbar in settings is on, bottom toolbar overlaps horizontal scrollbar and when clicking on the scrollbar the buttons of the toolbar are clicked instead.
It happens when open in a popup and in a separate window.
Screenshots
At screenshot moment the cursor was on the scrollbar under the "Close focused tab" button.

Desktop (please complete the following information):

OS: Windows 7 PRO 64b
Browser: Firefox 69.0 (64b)
Version: Tab Manager v2   0.21.9

A workaround is disable Always Show Toolbar.
Currently, I don't have a good idea about how to solve this.


Rename spec-core to spector

No changes needing a change description found.

You can try these changes here

🛝 Playground
🌐 Website
📚 Next docs


Clarify unlisted Spring Projects

There are a number of Spring related projects in the wild that are not listed in the Spring Projects page of Spring IO.  Examples include Spring .net, Spring dynamic modules, Spring Python.
These absences can cause some confusion to those researching these technologies. (I know I'm confused!)  A curious researcher will be quickly puzzled to discover a spring framework.net domain that is not mentioned at all on spring.io.  It sends the subliminal message that there is something unsupported / uncoordinated about this project and that it should be avoided.
It might be nice to publish some clarity about this.  Suggest a 'other projects' page where we can list the current state of these other projects, who runs them, why they are not listed in the main page, etc.

We didn't get much demand for this and we've redesigned the website since.
I'm closing this issue as a result.


Setup for TCL tv not working

Setup for TCL tv not working.  The reregister option says it was successful. Unfortunately is not the case.

If I want to watch an endless arrow circling on my Roku TV, I just need to attempt to view my Google photos using Photo View


Fix sysctl ipv4 changes made in PR #1336

The changes made in the previous PR for sysctl failed on baremetal deployments.
This PR will correct those changes and put the ipv4 settings in the
correct spot for deployment.
Swift-common contained a tuning role which would override one of these
settings so it has been depreciated

Can one of the admins verify this patch?

"ok to test" to accept this pull request for testing
"test this please" for a one time test run
"add to whitelist" to add the author to the whitelist

ok to test

@epwn: This PR is changing swift tuning parameter: net.ipv4.tcp_syncookies  to 1. Rohan added this tuning parameter 3 weeks ago and it was set to 0.  Is there any particular reason to change this value?

@knandya ill slack you

Looks like Swift tuning was introduced based on settings suggested at: http://docs.openstack.org/developer/swift/deployment_guide.html

Even though above link suggests to disable syncookies, it doesn't talk about what advantages the setting gives.

changes work on baremetals

reverted tcp syncookies change in order to give swift more clock cycles

retest

retest


Feature/add new logo

I replaced the textual placeholders with our new logo
I changed the button styling to fit the styling of our main application
add title and favicon (see #13)

Note:
@theovier Feel free to merge this PR asa you approve it (I don't think, that we need a develop branch in this repo, do we?)

I'll look into this. However, I'll change the merge request to develop and merge develop into master. I think we should stick with that process even on this project.

Ok, cool :)
I changed the title, because it was set to "laravel" instead of some UC4ish title. Maybe that was a result of the branching problem.

The title is actually generated by the key/value in your .env file. We adjusted the .env on the sever so it would show UC4, but I assume you didn't touch yours so there is still the default "title=laravel" set. 😄


No report exists for key...

I am currently moving a Flask app to Gunicorn and am having an issue where I cannot ever retrieve a report even though it appears that the command will eventually be successfully run. I will send a post to an API endpoint and will receive a successful response that includes the key and result_url, but when I make a get request to that url, I only receive the "No report exists for key..." response. At first I thought it might be a delay, but even with repeated get requests I am not able to receive reports.
I have been looking through your documentation to get a better idea of how to access reports and understand how long before they expire/disappear. I had noticed previously that if I keep making a request for a specific key, it will eventually return No report exists for key even if one had previously existed. I am wondering if you have run into similar issues and if you could point me in the right direction to try to track down these reports or log them somewhere more permanent. I also tried playing with the Executor a bit, but am not entirely sure where to start with that.
Thank you for the help.

Inactive.

Use a callback function* to store the result in a shared database/cache that is accessible to all gunicorn workers

This is nice, but is obviously only called after a (long running) future completes; what about when trying to poll for a key/job whilst it's still running?  That too would need to go into Redis, but I can't figure a clean way to do this, when using another route to check Redis/the job.

multiprocessing.shared_memory might work too for central sharable storage.

This got me excited, and then I noticed it's >= Python 3.8, and the server I have to use isn't :(