text:
🛑 Cubari (imgBB) is down

In 4e7a37f, Cubari (imgBB) (https://cubari.moe/read/imgbb/SQMcSX/?cache_buster=$GITHUB_RUN_NUMBER) was down:

HTTP code: 500
Response time: 122 ms

Resolved: Cubari (imgBB) is back up in b9b9f62 after 2 minutes.

repo: subject-f/cubari-status-page


text:
🛑 Cubari (imgBB) is down

In 11210c2, Cubari (imgBB) (https://cubari.moe/read/imgbb/SQMcSX/?cache_buster=$GITHUB_RUN_NUMBER) was down:

HTTP code: 500
Response time: 3150 ms

Resolved: Cubari (imgBB) is back up in 3828d5c after 14 minutes.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 Cubari (MangaSee) is down

In e253cb0, Cubari (MangaSee) (https://cubari.moe/read/mangasee/One-Piece/?cache_buster=$GITHUB_RUN_NUMBER) was down:

HTTP code: 500
Response time: 310 ms

Resolved: Cubari (MangaSee) is back up in aa2a17c after 4 minutes.


text:
Lime-35, Adding dashboard overview details for credit lines and savings account

https://linear.app/sublime-finance/issue/LIME-35/dashboard-tiles-subgraph

Review needed @akshay111meher

source: gharchive/pull-request

repo: sublime-finance/sublime-sdk


text:
TEST - Update headers_russia_return_path.yml

Testing removal of prevalence

/update-test-rules

Testing looks good. Will incorporate changes in a single bulk change

repo: sublime-security/sublime-rules


text:
Refactor to use backend interface, add System type

We should create a backend interface that can be used to run the backend for a V system. The current orchestrator should be refactored to conform to that interface. The main Server should be renamed to Proxy, and then wrapped in a new type, System, which takes in a proxy and a backend.
The orchestrator should then be moved into the CLI repo, and passed into the System constructor as the backend, thus decoupling everything.

Done

repo: suborbital/atmo


text:
Coffeescript support?

Hi!
I was wondering if you guys would be interested in adding coffeescript support to the bin/tape runner. I've already gotten it to work, just wondering if you guys would be interested in me cleaning it up and making a PR, or if you have any strong opinions on how it should be implemented. Thanks!

Coffeescript support is out of scope.
If you want coffeescript just run your tests with coffeescript.
Feel free to publish coffeetape and add a link in the wiki.

Just wrote this: https://www.npmjs.com/package/coffeetape
I didn't see that the wiki was set up, just figured I'd post it here for others to find. Thanks!

authors: Raynos hflw

repo: substack/tape

license: mit

license_source: bigquery


text:
Show full affiliation in 'Choose Affiliations' pop-up

Otherwise you get, for example:

Fixed via #1169

authors: JGilbert-eLife oliver----

repo: substance/texture


text:
chore: use &'static str for chip names as much as possible

Returning a string is an allocation, Ive at least gotten rid of it for basic comparsions but it could still use a clean up, honestly might better to make a ChipName enum.

Still work to do around this if were supportive of continuing to use strings.
If we changed to an enum I think we could even have const name(&self) -> ChipName


text:
Feed view in "start from beginning" mode does not always include all lower items

Reported by Dor.
Swapping into “Beginning” from “end” can result in a state where items are not added to the bottom on scroll.
Swapping ascending/descending and back appears to make the problem go away, but I think it’s more to do with how the “current” node is being retained?

This was actually caused by the "load" event being lost on first load when a file's contents were still cached and immediately available.

This is in theory fixed in v0.3.4-beta.1. Waiting on user confirmation.

Seems to be working for me now. Though I may have missed something since I dont use it often.

Marking this as closed. If the issue crops up again, it can be reopened.

authors: akadormouse taylorhadden

repo: suchnsuch/tangent-public


text:
Failed to load the tool-bar package after 1.1.5 update

Atom Version
1.23.3
OS
Mac
Tool-bar package version
1.1.5 (latest)
Error description
Failed to load the tool-bar package
variable @button-text-color-selected is undefined in /Users/$$$$/.atom/packages/tool-bar/styles/tool-bar.less:37:13

ditto

Oh it seems to be an issue when using atom-material-ui theme. I'll fix it asap

I don't use atom-material-ui but I still have the issue. I'm using the Atom light UI (the default one).

I just manually removed the changes from PR #177 and everything works fine again.

I'm very sorry for introducing this bug! I just released 1.1.6 which should resolve it!

works fine again, thx! :) 👍

Yep, thanks!

authors: MaxGraey UnConundrum edreesen pvdlg suda

repo: suda/tool-bar


text:
Pywebview

Just came across this list and I recently have been using  Pywebview, it is similar to webview for python. It works well so far!

Added it. Thank you @phillvancejr


text:
Receiving Images Help

I'm having a hard time finding much documentation on this so I decided to just ask here. How can I have my bot see and download any images sent on my discord server?

this project's dead but the DiscordMessage object has a DiscordAttachment object inside of it which then has a URL property which should link directly to the image.
https://github.com/suicvne/DiscordSharp/blob/master/DiscordSharp/Objects/DiscordMessage.cs

One last Question, I have everything working except for sending images. Any Help?

authors: suicvne taylorknopp

repo: suicvne/DiscordSharp


text:
Investigate persisting task logs

The nature of dlme-airflow logs is that they are task based and stored on the local worker for viewing. When that particular worker is restarted or killed and replaced with a new container the logs are lost. The scheduler and DB still properly reflect the result of a task run, but historical logs are often lost. Additionally, if a task fails because of an image issue (memory, etc) the logs are lost to the restart.
Investigate how to persist the logs to cloudwatch (or s3 directly) in a way that makes them easily retrievable or identifiable to the appropriate task.

There are a number of logging options in the config https://github.com/sul-dlss/dlme-airflow/blob/7e0922a2051def6ed15f425eeeb093af98cd13f4/config/airflow.cfg#L252 (for instance pushing to s3) that may resolve this.

This is easily configured to go to S3 via env configs. I have verified this through terraform and will have a PR ready with recent changes today.

repo: sul-dlss/dlme-airflow


text:
Course Folders & Sub Folders generated but no content

Able to generate folders and sub folder but not the videos.
Checked out a solution in other issue thread  #5  regarding display name but could not make it work.
Tried with two different courses one with basic video and no other downloads and the other with quizzes, notes, signup for webinars along with videos and pdf.
In that one the  webinar sign up screen with a text link downloads as a blank html page but nothing else.
Any suggestions or able to point me in a direction to look to solve?

multimedia pages type aren't downloaded.  Just Text,Video download for me.

I created this function and it grabs the multimedia types as well:
                if($content["default_lesson_type_label"] == "Multimedia" && $content["default_lesson_type_icon"] == "multimedia") //For Downloading Notes which are in HTML Unicode Format
		        {
                    $dc = $index.'. '.$content["name"].' Multimedia';
                    $dc = filter_filename($dc);
                    mkdir($dc, 0777);
                    $prev_dir = getcwd();
                    chdir($dc);
                    echo "Downloading ".$content["name"].PHP_EOL;
                    $result = query("https://".$p['host']."/api/course_player/v2/iframes/".$content['contentable']);
                    $temp = json_decode($result,true);
                    $temp2 = unicode_decode($temp["iframe"]["source_url"]); //Store Unicode Decoded HTML Code to temp2
                    echo $temp2;
                    $file_contents = file_get_contents($temp2);
                    $fname = $content["name"].".html";
                    $myfile = fopen($fname, "w");
                    fwrite($myfile, $file_contents);
                    fclose($myfile);
                    chdir($prev_dir);
                }
               ```

Added MR/PR here: https://github.com/sumeetweb/Thinki-Downloader/pull/13

Are you using windows @tradigital1?
https://github.com/sumeetweb/Thinki-Downloader/issues/5#issuecomment-984973362

@drduker Added support to download quiz with their answers . Can you review it once when idle?

Yes using windows 10 and also tried @drduker but it still didn't bring down the content.  Just the folders and sub-folders.

Can you share the json file generated?

I sent it to you - did you receive it?

Where have you sent? Haven't received any mail.

I sent to onhax@protonmail.com

Thanks @tradigital1. The json is alright. Windows is having some problem with curl. Can you please try to check it once in Linux?

authors: drduker sumeetweb tradigital1

repo: sumeetweb/Thinki-Downloader


text:
🛑 SISTEMA ROYAL-HOLIDAY is down

In 15f5462, SISTEMA ROYAL-HOLIDAY (https://www.royalholiday.com.ar/reservas/admin/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SISTEMA ROYAL-HOLIDAY is back up in 81a6516.


text:
fix: complement missing trait in 9.5

Missing AgeWidget in chapter 9.5

Great! However you should also modify the english one at the same place :)

Only the Chinese version has this problem...

Great!
Howerver, due to our exercises are written in both Chinese and English, so besides udpating the chinese exercise you should also modify the english one :)

Only the Chinese version has this problem...

authors: iLoveTangY sunface

repo: sunface/rust-by-practice


text:
使用lamdab表达式 更新指定字段时，参数值ObjToInt 会报异常

例：
var t10 = db.Updateable()
.UpdateColumns(it => new Student() { Name = "a", Age="12".ObjToInt() })
.Where(it => it.Id == 11).ExecuteCommand();

Unknown column '12' in 'field list'

设个变量中转一下 没问题

repo: sunkaixuan/SqlSugar


text:
Autocompletion edgecase

@sunlei I found an edge case where autocompletion doesn't work if there is an Include path with wildcards but no matches are found.
My use case is that I have another python tool to create / delete VMs and when created, an ssh_config file is generated per project in the tool's directory, so something like:
Include ~/tools/overlord/projects/*/ssh_configs/*
However, if I have no current projects then I get errors when I try to autocomplete because no matches are found for the above wildcard.
I think I found a fix which is to include the following in _parse_config_file by adding the following:
# disable no match errors for Include with wildcard statements that don't have matches
unsetopt nomatch

This temporarily disables the error message from the attempt at glob expansion and proceeds to auto-complete based on the rest of the SSH config.
I thought it's too trivial to submit a PR so I'm just mentioning it here. On older versions of this plugin (not sure which ones), this wasn't a problem.
Originally posted by @s3nn in https://github.com/sunlei/zsh-ssh/issues/11#issuecomment-1963175820

Thank you!

repo: sunlei/zsh-ssh


text:
How to setting vb.net project

Please example vb.net project from nuget package auto obfuscator. Thanks u

Hi,
I haven't worked with vb.net before, can you show me examples/links that can help me understand how to work with it or/and what can help me add that example?


text:
建议添加使用系统浏览器功能

新版取消了:recover设置默认浏览器的功能，建议在tweak里面加上。

WeChat currently offers the default browser setting in the General preference

repo: sunnyyoung/WeChatTweak-macOS


text:
Fitting

PR Description
Not sure what happened #56 but this is the same code but rebased and dropping some commit which are now in dedicated PR

Codecov Report

Merging #68 (0e868cb) into master (c357470) will decrease coverage by 62.04%.
The diff coverage is 19.58%.

:exclamation: Current head 0e868cb differs from pull request most recent head 8939d1f. Consider uploading reports for the commit 8939d1f to get more accurate results

@@             Coverage Diff             @@
##           master      #68       +/-   ##
===========================================
- Coverage   93.48%   31.43%   -62.05%
===========================================
  Files           5       17       +12
  Lines         629     3086     +2457
===========================================
+ Hits          588      970      +382
- Misses         41     2116     +2075

Impacted Files
Coverage Δ

sunxspex/constants.py
88.88% <ø> (ø)

sunxspex/sunxspex_fitting/fitter.py
13.26% <ø> (ø)

sunxspex/sunxspex_fitting/rainbow_text.py
11.76% <11.76%> (ø)

sunxspex/sunxspex_fitting/data_loader.py
12.78% <12.78%> (ø)

sunxspex/sunxspex_fitting/rhes_spec_code.py
14.54% <14.54%> (ø)

sunxspex/sunxspex_fitting/instruments.py
18.24% <18.24%> (ø)

sunxspex/sunxspex_fitting/parameter_handler.py
19.29% <19.29%> (ø)

sunxspex/sunxspex_fitting/nu_spec_code.py
21.87% <21.87%> (ø)

sunxspex/sunxspex_fitting/stix_spec_code.py
23.80% <23.80%> (ø)

...spex/sunxspex_fitting/photon_models_for_fitting.py
24.32% <24.32%> (ø)

... and 7 more

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 c357470...8939d1f. Read the comment docs.

Let's get this merged and then start opening issues and PRs to further develop the code.

repo: sunpy/sunxspex


text:
Improve RHESSI fits serialisation

Currently RHESSI fits are read and stored as they are, lots of repeated static information for example xyoffset, harm, type, units.
constant columns = ['harm', 'erange', 'trange', 'xyoffset', 'type', 'units', 'atten_state', 'norm_ph_factor']
dynamic column  = ['isc', 'u', 'v', 'obsvs', 'totflux', 'sigamp', 'chi2', 'count']
Read
Should break up via common time and energy ranges and check that constant column are constant error if not, return a list or ndcube related to #35
Write
The reverse process for each time and energy range repeat and the static columns to match number row of data and append to large array for wring to fits

Current plan for all visibility is to use NDDataRef as base with dimension of time x energy x detector x vis. For RHESSI vis will be a list/array of visibilities for STIX this will a single visibility.

Plan is now to keep this to a library rather than application so instrument specific code would live in instrument specific packages e.g. stixpy and a theoretical rhessipy which would rely on xrayvision.

repo: sunpy/xrayvision


text:
Not an issue rather question

Hello, am using templated emails on my app...
This is where the subject appears on the email
{% block subject %}HTML mail subject{% endblock %}
My question is how can I alter the display name on the email as it is for example "example@app.com" example will be the display name on the email... is there a way i can alter the display name

i actually seen on StackOverflow a fix that worked for my case sorry guys. Here's what i helped. link

repo: sunscrapers/django-templated-mail


text:
spr land results in deadlock

Currently when one runs spr land on a PR it will result in a deadlock due to the lock being grabbed here https://github.com/sunshowers/spr/blob/ed9137c290fa5f33b856f7329e9af78a90ca0ad4/spr/src/git.rs#L184 when it has already been grabbed here https://github.com/sunshowers/spr/blob/ed9137c290fa5f33b856f7329e9af78a90ca0ad4/spr/src/git.rs#L173
This can easily be seen on an illumos system with mdb:
> $C
fffffc7fffde6970 libc.so.1`__lwp_park+0x17()
fffffc7fffde69c0 libc.so.1`mutex_lock_impl+0x113(18c3b80, 0)
fffffc7fffde69e0 libc.so.1`mutex_lock+0x13(18c3b80)
fffffc7fffde6a80 _ZN3spr3git3Git11write_index17h0d5eb063e8a442d6E+0x4d()
fffffc7fffde6c90 _ZN3spr3git3Git14rebase_commits17h78b65f2d9a3c20edE+0x2a2()
fffffc7fffde8630 _ZN3spr8commands4land4land28_$u7b$$u7b$closure$u7d$$u7d$17hf808737852b07d07E+0x6653()
fffffc7fffdf0070 _ZN3spr3spr28_$u7b$$u7b$closure$u7d$$u7d$17h438cef131454f0c4E+0x863()
fffffc7fffdf1770 _ZN5tokio7runtime4park16CachedParkThread8block_on17h5a2dc8755bf41fc2E+0xf9()
fffffc7fffdf2e40 _ZN5tokio7runtime7context7runtime13enter_runtime17hc98f6b01e7c87250E+0x147()
fffffc7fffdf5ae0 _ZN5tokio7runtime7runtime7Runtime8block_on17h9ace61c101eebb5eE+0x7f()
fffffc7fffdf7260 _ZN3spr4main17hf52e5994037eba4fE+0xa5()
fffffc7fffdf7280 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h9b80a70a18b16da7E+0xb()
fffffc7fffdf72b0 _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17hc6095c7d6e7fb72bE.llvm.442624804886873981+0x18()
fffffc7fffdf7330 _ZN3std2rt19lang_start_internal17h897570f42d89b337E+0x1fc()
fffffc7fffdf7350 main+0x2c()
fffffc7fffdf7380 _start_crt+0x87()
fffffc7fffdf7390 _start+0x18()
> 18c3b80::mutex -v
ADDR             TYPE FLAG WTRS OWNER
18c3b80             0   14  yes fffffc7feefc2a40 1
                    |    |  |
      LOCK_NORMAL <-+    |  +-> 1
                         |
                         +-> LOCK_INITED
                             LOCK_DEADLOCK

Fixed in https://github.com/sunshowers/spr/commit/69be0992a34e56ad3eff9b209167c99f986ce3e7 and descendants, thanks for reporting!

authors: papertigers sunshowers

repo: sunshowers/spr


text:
[Bug]: Realtime socket never reconnects due to deadlock

General Info

[X] I checked for similar bug report
[X] I am using the latest version
[X] I checked the troubleshooting page for similar problems
[X] I enabled logging and checked the logs

Version(s)
2.1.5+
Target(s)
Test on Android
What happened? (include your code)
Starting in 2.1.5, the realtime socket fails to retry connecting after a disconnect. I believe this is caused by a deadlock with the mutex added in https://github.com/supabase-community/supabase-kt/pull/483. When an error occurs RealtimeImpl.connect() invokes itself recursively (here) but it does not release the mutex here and so the recursive call suspends forever.
Steps To Reproduce (optional)

Connect using Realtime
Turn off your internet connection
Only one attempt to reconnect is made and then Realtime stops responding. Calls to Realtime.connect() suspend forever.

Relevant log output (optional)
2024-03-07 13:26:11.282 29152-29725 Realtime                com.example                     E  Error while listening for messages. Trying again in 7s
                                                                                java.net.SocketException: Software caused connection abort
                                                                                at java.net.SocketInputStream.socketRead0(Native Method)
                                                                                at java.net.SocketInputStream.socketRead(SocketInputStream.java:118)
                                                                                at java.net.SocketInputStream.read(SocketInputStream.java:173)
                                                                                at java.net.SocketInputStream.read(SocketInputStream.java:143)
                                                                                at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:945)
                                                                                at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:909)
                                                                                at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(ConscryptEngineSocket.java:824)
                                                                                at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(ConscryptEngineSocket.java:797)
                                                                                at okio.InputStreamSource.read(JvmOkio.kt:93)
                                                                                at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:153)
                                                                                at okio.RealBufferedSource.request(RealBufferedSource.kt:209)
                                                                                at okio.RealBufferedSource.require(RealBufferedSource.kt:202)
                                                                                at okio.RealBufferedSource.readByte(RealBufferedSource.kt:212)
                                                                                at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.kt:119)
                                                                                at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:102)
                                                                                at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:293)
                                                                                at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:195)
                                                                                at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
                                                                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
                                                                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
                                                                                at java.lang.Thread.run(Thread.java:1012)
2024-03-07 13:26:11.283 29152-29724 Realtime                com.example                     D  Closing websocket connection
2024-03-07 13:26:18.286 29152-29746 Realtime                com.example                     D  Reconnecting...
2024-03-07 13:26:18.365 29152-29523 Realtime                com.example                     E  Error while trying to connect to realtime websocket. Trying again in 7s
                                                                                URL: wss://exampleurl.supabase.co/realtime/v1/websocket?apikey=someKey&vsn=1.0.0
2024-03-07 13:26:18.366 29152-29523 Realtime                com.example                     D  Closing websocket connection

No further logs from Realtime occur and there are no further attempts to reconnect.

Thanks for reporting this, publishing a fix!

@jmacindoe Released 2.2.1, let me know if there are still any issues!

authors: jan-tennert jmacindoe

repo: supabase-community/supabase-kt


text:
Unable to import supabase

Describe the bug
Trying to import supabase, or modules from the supabase package, results in the following error:
ImportError: cannot import name 'create_client' from partially initialized module 'supabase' (most likely due to a circular import) (/home/user/supabase.py)
To Reproduce
Steps to reproduce the behavior:

Install supabase using pip: pip install supabase
Import create_client, or anything else from the supabase module
Run the script

Desktop (please complete the following information):

OS: Arch Linux, BSPWM
Python version: tested with 3.8, 3.9 and 3.10

Example code
from supabase import create_client, Client

Well, I seem to be an idiot. I renamed my script, called supabase.py, and everything is working flawlessly. Closing this.

repo: supabase-community/supabase-py


text:
Generated types for a view do not match the original table

Bug report

[x] I confirm this is a bug with Supabase, not with my own application.
[x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

I was advised by silentworks to raise this as a bug here after posting on the Supabase discord
https://discord.com/channels/839993398554656828/1086948087316086864
Describe the bug
The typescript types generated for a view don't seem to match the types for the columns on the table they are based on. They add the possibility for null as an alternative, even if the original column is explicitly set to not null.
To Reproduce
A table called playlists has a column called first_play which is a non nullable boolean.
alter table "public"."playlists" add column "first_play" boolean not null default false;

The generated typescript for this column is as expected
first_play: boolean

But with a view generated like this
CREATE OR REPLACE VIEW public.tracklists AS
  SELECT
    playlists.first_play AS first_play
  FROM playlists

The generated types file produces this
first_play: boolean | null

Expected behavior
I would expect that the generated typescript definition would match the column the view is based on and not add null as a possible option.
System information

OS: macOS
Version of supabase CLI: 1.42.7

For anyone else that also stumbles on this issue, I looked into fixing it but unfortunately looks like a nuance with Postgres, all view columns are set as nullable, some discussion so doesn't seem anything can be done on Supabase side.

Closing as duplicate of https://github.com/supabase/cli/issues/577

authors: bentilling chrism soedirgo

repo: supabase/cli


text:
feat: improve management api commands (functions, projects....)

Is your feature request related to a problem? Please describe.
Currently we don't have any commands to create, list or update a function from the cli. Also, we have already implemented the api-keys function for projects inside client.gen.go but we don't have a command to call it so that can be also added to the backlog (can be done alongside).
So for now we can add these sub-commands:
supabase functions list
supabase functions create
supabase functions update
supabase functions retrieve
supabase projects api-keys
Additional context
I would like to work on this :) I plan to break this into "one command at a time" so that it could be easier for reviewing.

Hi @Ananya2001-an, the cli commands and api endpoints may not be named the same way for usability. For example, we currently implement the following functions commands:

functions new (similar to create)
functions deploy (similar to update)
functions download (similar to retrieve)

We are still missing functions list and projects api-keys. I would be happy to review your PRs if you want to work on it.

Ahh yess u are right... cool I will work on the other 2 then :)

Also there's another issue that I will create later. I noticed that for each command we don't have some sort of restriction as to which sub command exists for it; like even if I type something like supabase db jdhj it returns info about the db command but instead we should throw some error saying that it's an invalid command....

Solved with PRs #1233 #1226


text:
Issue with Supabase functions serve (Edge Functions)

Describe the bug
When using supabase functions serve I get the http status error code 546. From what I understand the npm package makes http requests to resolve the query. Not sure why runtime escapes the event loop.
When I check the logs in cli I see this

To Reproduce
Steps to reproduce the behavior:

Create a new function
import from npm
run the function locally
Make the http GET request

import { searchNews, SearchTimeType, SafeSearchType } from 'npm:duck-duck-scrape@2.2.5';

console.log("Hello from Functions!")

Deno.serve(async () => {
  try {
    const news = await searchNews('Latest news', { time: SearchTimeType.DAY, safeSearch: SafeSearchType.STRICT });
    return new Response(
      JSON.stringify(news),
      { headers: { "Content-Type": "application/json" } },
    );
  } catch (error) {
    return new Response(
      JSON.stringify({ error: error.message }),
      { headers: { "Content-Type": "application/json" } },
    );
  }
})

Expected behavior
When I run the code directly using the Deno command. deno run --allow-net --allow-env .\functions\hello-world\index.ts. I get a status 200 response.
{
  "noResults": false,
  "vqd": "4-206730575884082559294778046947689285325",
  "results": [
    {
      "date": 1708336495,
      "excerpt": "The mother of Russian opposition leader Alexei Navalny on Monday was denied access to a morgue where his body was believed to be kept after his death in an Arctic penal colony, and Navalny's allies",
      "image": "https://www.bing.com/th?id=OVFT.-Z-MNOQeUeRuVkPrOTicBi&pid=News",
      "relativeTime": "2 hours ago",
      "syndicate": "Bing",
      "title": "Russian authorities extend a probe into Navalny's death as allies accuse officials of cover-up",
      "url": "https://www.msn.com/en-us/news/world/russian-authorities-extend-a-probe-into-navalnys-death-as-allies-accuse-officials-of-cover-up/ar-BB1ivv8m",
      "isOld": false
    },
  ]
}

Screenshots
If applicable, add screenshots to help explain your problem.
System information
Rerun the failing command with --create-ticket flag (preferred).

Ticket ID: [or provide the information manually below]
OS: Windows
Version of CLI: Using supabase-edge-runtime-1.33.5 (compatible with Deno v1.39.2
Versions of services:

       SERVICE IMAGE      │        LOCAL         │  LINKED
 ─────────────────────────┼──────────────────────┼────────────
   supabase/postgres      │ 15.1.1.13            │ 15.1.1.13
   supabase/gotrue        │ v2.132.3             │ v2.132.3
   postgrest/postgrest    │ v12.0.2              │ v12.0.2
   supabase/realtime      │ v2.25.50             │ -
   supabase/storage-api   │ v0.48.1              │ v0.48.1
   supabase/edge-runtime  │ v1.33.5              │ -
   supabase/studio        │ 20240101-8e4a094     │ -
   supabase/postgres-meta │ v0.75.0              │ -
   supabase/logflare      │ 1.4.0                │ -
   bitnami/pgbouncer      │ 1.20.1-debian-11-r39 │ -
   darthsim/imgproxy      │ v3.8.0               │ -

Does anybody know if supabase functions have network restrictions? I've a similar problem with AWS Sdk which works with deno-run but throws an error when executed in the functions.

@michaelzoidl I don't think we have specific network restrictions. Someone from functions team might be able to help if you can post a reproducible example in edge runtime repo.
Closing the original issue as resolved.

authors: michaelzoidl shivamklr sweatybridge


text:
Auth helper .signInWithPassword returns 401 unauthorized in Local Environment / CLI

I'm getting POST http://localhost:54321/auth/v1/token?grant_type=password 401 (Unauthorized) when using signInWithPassword() in a local environment using Supabase CLI. It works in remote Supabase though.
The fetch/XHR payload is:
{     "email": "test",     "password": "test",     "gotrue_meta_security": {} }
The request URL is http://localhost:3000/#access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhdXRoZW50aWNhdGVkIiwiZXhwIjoxNjc5ODQ2Njg5LCJzdWIiOiIzOGE4MTJjMi02MzIzLTRkZGQtYjlmYi0yNTk2ZDI3N2I3NGUiLCJlbWFpbCI6InJpY2NhcmRvLmxhcmRpQGdtYWlsLmNvbSIsInBob25lIjoiIiwiYXBwX21ldGFkYXRhIjp7InByb3ZpZGVyIjoiZW1haWwiLCJwcm92aWRlcnMiOlsiZW1haWwiXX0sInVzZXJfbWV0YWRhdGEiOnt9LCJyb2xlIjoiYXV0aGVudGljYXRlZCIsImFhbCI6ImFhbDEiLCJhbXIiOlt7Im1ldGhvZCI6Im90cCIsInRpbWVzdGFtcCI6MTY3OTg0MzA4OX1dLCJzZXNzaW9uX2lkIjoiOTNhMzM3YWQtOWZmMy00NGY4LTgxM2EtODFkN2NlNGU1ZDI2In0.tGE5qIs86KwwQhGYoYOVzT8Cw3JapcN5fw7ZTD16h8k&expires_in=3600&refresh_token=0yt9L4RXtDyLBWmjF2MZBw&token_type=bearer&type=invite
Any clue why this happens?

Closing this issue due to staleness as I can't reproduce locally.
import { createClient } from "npm:@supabase/supabase-js@2.42.0";

const supabase = createClient(
  "http://127.0.0.1:54321",
  "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0",
);

const { data, error } = await supabase.auth.signInWithPassword({
  email: "example@email.com",
  password: "example-password",
});

if (error) console.error(error);
console.dir(data, { depth: 5 });

If you are still running into this issue, perhaps double check the auth settings in config.toml, or run supabase init --force to refresh the config.

authors: riccardolardi sweatybridge


text:
fix: do not default image transformation flag

What kind of change does this PR introduce?
Bug fix
What is the new behavior?
Do not default feature image transformation to false when updating the tenant

Pull Request Test Coverage Report for Build 3959410915

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.007%) to 85.837%

Totals

Change from base Build 3956848194:
-0.007%

Covered Lines:
4943

Relevant Lines:
5729

💛  - Coveralls

authors: coveralls fenos

repo: supabase/storage-api


text:
Deep link not recognized as auth callback, therefore onAuthStateChange isn't fired

onAuthStateChange isn't called after logging in with OTP (specifically on Android 12, using Firefox and Google OAuth).
I have noticed this problem as I switched from 1.2.0 to 1.2.1:  this commit added new control to avoid parsing non auth links as auth links but since the access token key is prefixed by # it probably isn't recognised as a parameter

Switching back to version 1.2.0 solves the problem, onAuthStateChange is called and the login process works as expected.
This is the whole deep link:
io.supabase.[...]flutter://login-callback/#access_token=eyJhbG[...]&expires_in=3600&provider_token=[...]&refresh_token=[...]&token_type=bearer
This is how I'm using supabase.auth.signInWithOAuth(...) (both snippets were written following the flutter quickstart guide)
supabase.auth.signInWithOAuth(
        Provider.google,
        redirectTo:
        kIsWeb ? null : 'io.supabase.[...]flutter://login-callback/',
);

and onAuthStateChange (in a State class):
@override
  void initState() {
    _emailController = TextEditingController();
    _authStateSubscription = supabase.auth.onAuthStateChange.listen((data) async {
      if (_redirecting) return;
      final session = data.session;
      if (session != null) {
        try{
          await Profile.initializeCurrentProfile();
          _redirecting = true;

          if(mounted) {
            Navigator.of(context).pushReplacementNamed('/main');
          }
        }
        on Exception catch (error){
          context.showErrorSnackBar(message: error.toString());
        }
      }
    });
    super.initState();
  }

Sorry for this one. A fix is on the way!

authors: AngeloBottazzo dshukertjr

repo: supabase/supabase-flutter


text:
Schema-based configuration file

(Moving this request to its own issue.)
I tried to avoid suggesting any particular fix or direction when filing the issue, since any solution that would avoid me having to document, maintain, and support fragile workarounds when using super-linter is the main requirement.
That said, ideally, I would love to be able to leverage some type of schema-backed, structured config file format for configuring super-linter, and to be able to pass those config files using both command line arguments and github actions arguments:
docker run -v "${PWD}":/tmp/lint --platform linux/amd64 ghcr.io/super-linter/super-linter:latest --config=/tmp/lint/config1.<extension> --config=config2.<extension>

instead of:
docker run --env-file ".github/super-linter.env" --env-file ".github/super-linter-default-validate.env" --env-file "scripts/super-linter-local.env" -v "${PWD}":/tmp/lint --platform linux/amd64 ghcr.io/super-linter/super-linter:latest

and:
      - name: 🧹 run superlinter
        uses: super-linter/super-linter@02a1172d274f021e4c70f66e23f1085eadd1064b # v7.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          config:
            - config1.<extension>
            - config2.<extension>

instead of:
      - name: Load super-linter configuration
        run: cat .github/super-linter.env .github/super-linter-default-validate.env  | grep -v '^#' >> "$GITHUB_ENV"
      - name: 🧹 run superlinter
        uses: super-linter/super-linter@02a1172d274f021e4c70f66e23f1085eadd1064b # v7.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Originally posted by @detiber in https://github.com/super-linter/super-linter/issues/6084#issuecomment-2313516258

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

authors: PiaoR ferrarimarco

repo: super-linter/super-linter


text:
Support and import and export of HTML code

EDIT:
This ticket was filed early in the project lifecycle because we assumed HTML would be an important interchange format for super_editor. At this time, we haven't identified any specific requirements among customers that require HTML instead of markdown (which we already support). Therefore, I'm marking this ticket as parked.

@bk-one @salihgueler let's figure out where this ticket belongs in terms of priority

not important right now

Sorry to hear it, FWIW it's important to us...

Let's aim then for the next release? We do only add markdown right now, but happy to reevaluate after we released 0.1 in the coming weeks

That would be awesome, thank you!

That said if there's support for markdown I believe it's backwards/forward convertible to HTML so it should work for us as is

@hillelcoren please check serializeDocumentToMarkdown and deserializeMarkdownToDocument functions for Markdown implementation.

@hillelcoren have you or anyone on your team tried out the editor? I was generally aware of your interest in the editor but wasn't aware that you were keeping an eye on it. Can you say a little bit about your timeline for adoption and list your MVP features for the editor?

I've actually jus started working on it, if the editor is ready we'd go live with it immediately. We were going to use HTML but if markdown is ready that could work for us, our main use case is to generate HTML based emails.

We won't know if it's ready until you tell us it's ready :)
I would recommend trying to integrate it and then filing issues for any bugs you come across, or MVP feature requests. As you file issue, it would also be helpful to see any visual designs or screenshots of that part of your product in action so that we can glean surrounding context.

I spent a few hours this morning working on it, here are my notes.

I had trouble getting pub get to complete on the stable channel but following a suggestion from @matthew-carroll I was able to get it to work on dev.
The wiki is very useful, small problem I noticed is the links in the top section of this page are broken
I haven't been able to try the widget due to the error below
From reading the docs I noticed this: "An Editor does not include any app bar controls or popup controls". Will controls be added. I realize I could build them myself I guess with some Flutter widgets but it would be nice if it came with controls out of the box.
For our app it's important all platforms are supported (web, mobile and desktop)

super_editor/lib/src/default_editor/document_interaction.dart:639:31: Error: A value of type 'bool'
can't be returned from a function with return type 'KeyEventResult'.
 - 'KeyEventResult' is from 'package:flutter/src/widgets/focus_manager.dart'
 ('../flutter/packages/flutter/lib/src/widgets/focus_manager.dart').
      onKey: (node, event) => true,
                              ^

Happy to create a separate issue if needed...

@hillelcoren I think a separate issue would be good. Let's keep this issue tracking HTML support.
When you file a new issue, can you include the code that causes the error, and include the platform you're running on and the flutter --version info?

@hillelcoren can you outline your requirements for HTML (de)serialization? It looks like this ticket was filed as an empty placeholder, so we'll need to figure out what the specific deliverable is before we can work on this.

Our main use case initially is to provide a WYSIWYG editor for HTML emails. We'd like to support basic formatting (bold, italic, font size, etc) but don't need to support complex layouts. Note: markdown would also work.
In the future we'd like to support something closer to this: https://grapesjs.com
Thanks for your work on the project, it's already pretty impressive!

@hillelcoren if markdown will work for you then that would make more sense because we already support markdown.
grapejs looks to be a full-blown application that goes far beyond document layouts. You may be able to use some of the building blocks from super_editor in building such a tool, but general layout definitely goes beyond the goals of document layout and editing.
Until we hear otherwise from a customer, I'm going to consider this ticket as being on-hold because there doesn't appear to be anyone that truly needs this behavior at this time.

Hi @matthew-carroll, for my use-case I'm parsing and pre-processing html documents, and currently rendering them in a ListView with HtmlWidgets. HtmlWidget currently doesn't support selectable text, so it would be convenient if I can render directly using super_editor.

Hi @sabetAI. I have a couple questions about your use-case:

what subset of the HTML spec do you need to be supported?
is it possible for you to use super_editor by leveraging an existing package to go from HTML to markdown, and then from markdown back to HTML?

Hi @matthew-carroll,

it's mostly just individual <p> and <a> elements at the moment, with some styling ie bold font, italics, sup. Nothing layout-related.
since the html is just individual elements with no nesting, perhaps I can pre-process with some html-to-markdown library (ie htm2md on frontend, or something like html2markdown on the backend).

@sabetAI yeah, my guess is that you can do HTML -> markdown without issue. Please post back after you get a chance to try that and let us know if it works for your needs.
I can't remember for sure, but I think the markdown package that we're already including may offer HTML-to-markdown translation.

I've got a basic implementation with test coverage, it's probably worth completing https://github.com/superlistapp/super_editor/issues/86 before integrating it in the repo though as it depends on the html package.

I think this issue should be explained better. How can I keep this document suitable for api. SuperEditor export not explained

@bugrevealingbme can you please rephrase your comment as a specific question?

authors: bk-one britannio bugrevealingbme hillelcoren matthew-carroll sabetAI salihgueler slightfoot


text:
🛑 Node - tr-2d50afca.yalaso.top is down

In 7427b40, Node - tr-2d50afca.yalaso.top (http://tr-2d50afca.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - tr-2d50afca.yalaso.top is back up in 97ad0db.

repo: superrr-vpn/status


text:
tio2 example not shipped

from weas_widget import WeasWidget
viewer1 = WeasWidget()
viewer1.load_example("tio2.cif")
viewer1.modelStyle = 2
viewer1.boundary = [[-0.1, 1.1], [-0.1, 1.1], [-0.1, 1.1]]
viewer1.showBondedAtoms = True
viewer1.colorType = "VESTA"
viewer1

ValueError: Failed to download the file tio2.cif

Fixed. Same as #36


text:
[PUB] Refactor search views to allow multiple types

Remember to allow search on srn instead of external_id

Initial proposal
search-client-refactor.01.pdf

Done

repo: surfedushare/harvester


text:
[BUG]

I would like to show the bottom sheet at the top of my navigation bar.
When I use my 'scaffoldStateKey' it is working with the flutter native solution scaffoldStateKey.currentState?.showBottomSheet, but not with this library.
My context is that I have a page (firstPage) nested inside a home page (homePage) that contains the navigation bar.
homePage :
@override
  Widget build(BuildContext context) {
    return Scaffold(
        resizeToAvoidBottomInset: false,
        bottomNavigationBar: BottomNavBar(...),
        body: FirstPage();
  }

firstPage :
@override
  Widget build(BuildContext context) {
    return WillPopScope(
      onWillPop: () async {
        ...
        return false;
      },
      child: Scaffold(
          key: scaffoldStateKey,
          resizeToAvoidBottomInset: ...
          backgroundColor: ...
          body: screenBody()),
    );
  }

showFlexibleBottomSheet(
        context: scaffoldStateKey.currentState!.context,
        builder: _buildBottomSheet,
        isModal: false);

I also tried by adding a top-level scaffoldStateKey to my homePage scaffold widget (homeScaffoldStateKey) and use it. But same result happen.
With scaffoldStateKey.currentState?.showBottomSheet :

With showFlexibleBottomSheet(context: scaffoldStateKey.currentState!.context, :

What is the expected behavior?
Having the modal bottom sheet shown at the top of my navigation bar. In the same way I use scaffoldStateKey.currentState?.showBottomSheet

Hi! When you use showFlexibleBottomSheet, you open new route this way. And it's not possible to show part of previous route above new one. If you want to have widget included into your layout, you have not to use showFlexibleBottomSheet and just insert widget into right place.

repo: surfstudio/flutter-bottom-sheet


text:
How can I find the model for the paper

Could you please help me with finding the model or the source code for the paper? The related paper says the model and code will provide here, but the only thing I can find is the data annotation.
Thanks!

Hey I have the same issue here....  The paper says the model should be here but I cant find it. @duxiaofei283  Hey Xiaofei could you please help with this?

nms.txt
kmeans_bin.txt
kmeans_den.txt

authors: Waynehfut heizie wenxixi

repo: surgical-vision/EndoVisPoseAnnotation


text:
Add brazilian portuguese support

Hi, with this pull request i added support for the most common keyboard layout here in Brazil:
Option "XkbLayout" "br"
Option "XkbVariant" "abnt2"
I've been using this for some time with good results.
I would greatly appreciate if you merge this,so everybody here in brazil would benefit from it.
Thanks

As a suggestion, i would write only one function to deal with the layouts.
Instead of using in layouts.py:
def english_usa(keys)
def spanish(keys)
def pt_br(keys)
I would replace it with only one function with the layout as other argument, ex.:
def deal_with_layout(keys, layout=english_layout)
This would make it easier to add support for many other languages and keyboard layouts, but as it involves many more files to change, it's subject for other pull request.

Hi phoemur, thanks for the PR, is now merged.
Greetings!

authors: phoemur surrealcristian

repo: surrealists/kl


text:
Update noUiSlider

Currently version ^10.1.0 is required, but the latest version is in the 14.x range.
As far as I can tell from my tests, with the adapter works fine with 14.0.2 as well.

Updated via the https://github.com/surveyjs/widgets/commit/a4c2a578a55f3724ae67eed54b0f36724feeb06b commit

repo: surveyjs/widgets


text:
[Enchancement] Canvas Flickering Issue

Problem Description
The canvas flickers when a text/image is moved or when any state changes occur on the canvas. This behavior disrupts the user experience, making the tool less fluid.
Example: "The current implementation causes noticeable flickering when interacting with canvas elements, such as dragging or resizing text and images."
Desired Enhancement
I would like the canvas performance to be enhanced so that state changes, including moving text or images, do not result in flickering. The canvas should render smoothly during interactions, providing a seamless experience for users.
Alternatives Considered
I tried debouncing the state changes to reduce frequent re-renders, but this only slightly minimized the flickering and did not eliminate it completely.
Possible Implementation

[ ] Optimize the rendering process by reducing unnecessary re-renders
[ ] Use requestAnimationFrame() for smoother transitions
[ ] Consider using offscreen canvases for background updates
[ ] Minimize redraws of unaffected areas on the canvas during state changes

Additional Context
Here’s a video highlighting the flickering issue when moving text across the canvas:
https://github.com/user-attachments/assets/c95d90fb-f889-491e-9060-a6f3a5484460

Optional Sections:

Priority: Medium
Are you willing to submit a PR for this enhancement? Yes
Does this enhancement require changes in documentation? No

@kvtemadden Absolutely! I would really appreciate it if you could fix this issue. I've spent quite a bit of time debugging it, and if you manage to solve it, I'd be super grateful. Thanks in advance!


text:
How can I generate AES Key and Mac Keys

Hello,
thanks for the script, How can I generate AES Key and Mac Keys? I don't want to use the demo keys

I found it
head -c32 /dev/urandom | base64


text:
ci: sign all image builds

This builds on previous commit 9d567e5 to add cryptographic signing to two additional workflows: image_pr.yml and image_base.yml.  This resolves the issue with images only being intermittently signed.  It also reduces the scope of privileges on image.yml to only what is necessary for the OIDC token to be used.

I can see that one of the integration tests here failed, but at a glance, it doesn't seem to me like this failure is related to the changes I've applied to this PR.  If it is, then I will gladly make any necessary changes.

Got it.  I will incorporate changes once fix is finalized.

@arthurus-rex can you rebase to pick up the CI fix?

Successfully rebased!

authors: arthurus-rex rootfs

repo: sustainable-computing-io/kepler


text:
Add an option to ignore input when the cursor is in the center of the screen.

I would like an option to ignore mouse input events when the cursor is in the middle of the screen. When I play a game, the cursor locks to the center of the screen and it messes with the heatmaps. Could you please add an option to ignore those inputs?

Interesting problem. So there are mouse events recorded during the game, but they're all positioned in screen center?

Yeah, all the heatmap shows is a red dot in the center of the screen. I assume that becuase of how many data points it has at that one position, the rest of the points from normal mouse movement are hidden in the heatmap becuase they are much less concentrated.

Out of curiosity, can you send a screenshot of your heatmap page?
I suppose I can add a generic option, to specify regions of interest or disinterest for mouse events in the configuration file, e.g.
# Ignore mouse events from center of screen
MouseRegionsOfDisinterest = [[0.49, 0.49, 0.2, 0.2]]

How about an application block list? When an application on that list is running then capturing of certain inputs could be deactivated.
That could even have additional benefits outside of this issue.

@shenef An application block list might be even better, indeed. Identified by the executable name or full path.
I will look into it.

@AIP21 @shenef
Assuming you've been using Windows, can you check out this pre-release version: https://erki.lap.ee/stuff/inputscope_1.8.dev6_x64.exe?
There are now application-specific stats as well, and applications can be blacklisted or whitelisted in configuration file, as:
# Path can be absolute or relative like "C:\Python\python.exe" or "python.exe",
# and can contain wildcards like "python*".
ProgramBlacklist = {executable path: [] if all inputs else [input or event type, ]}
ProgramWhitelist = {executable path: [] if all inputs else [input or event type, ]}

e.g.
# Monitor all inputs from Notepad only
ProgramWhitelist = {"notepad.exe": []}

or
# Ignore keypress events from command prompts, and all mouse events from Paint.
ProgramBlacklist = {"cmd.exe": ["keys"], "mspaint.exe": ["mouse"]}

@AIP21 @shenef Comments?

Yes sorry for the late response. It works perfectly for my purposes. I just added the games I wanted ignored and now the new data is much easier to see. Thank you!
This is very specific but would there be a way for me to remove old points that are in the center of the screen? Because my old data is still not visible due to all the old data in the center of the screen.

Excellent. I will release an official new version presently.

This is very specific but would there be a way for me to remove old points that are in the center of the screen?

History can be deleted from the tray menu: right-click on the tray icon, go to "Clear events history", and choose which time period and input to clear.

That's great, thank you. I'm marking this as closed, but feel free to reopen it if needs be.

v1.8 released.

thx, i haven't gotten to actually test the test build but will report back if I encounter any issues with this new release.

authors: AIP21 shenef suurjaak

repo: suurjaak/InputScope


text:
Update versions in README.md

and fix typo

Thank you!
Nice catch!

There should be a v1 following the minor/patch releases!

Docs: https://docs.github.com/en/actions/creating-actions/about-custom-actions#using-tags-for-release-management (point 3)

I don't like the practice. I believe we should specify the full semantic version strictly.
So I never create tags such as v1.

I believe you should let your users decide which pattern they use. It's surprising when an action doesn't have this. I also agree and encourage pinning like this, but there are many many projects where that's not set up, or not necessary.

Anyway, up to you. I'm not personally using this action (and wouldn't even if I need to, because of the above). I was just fixing Glide's renovate config.

Feel free to accept or reject your suggestions and merge this.

authors: TWiStErRob suzuki-shunsuke


text:
[Feature Request] Simplify object function access.

Currently there is no good way to handle object access from the C Functions. This is an extremely useful feature to help with Implementing support for ECMAScript 6 ( aka ECMAScript 2015 ).  I have already put some thought into some of the public API that would help with the implementation of this function.
The first bit would be the addition of a new define. I believe it would be worth while to use duk_c_object_function as a good start on this feature...
typedef duk_ret_t (*duk_c_object_function)(duk_context *ctx, void* UserData);
duk_idx_t duk_push_c_object_function(duk_context *ctx, duk_c_object_function func, duk_idx_t nargs, void* UserData);

Also, since I am suggesting these new functions and typedefs, I believe it would not hurt to provide a short example...
typedef struct duk_example_c_object
{
	double example_value;
} duk_example_c_object;

duk_ret_t example_object_get_a(duk_context *ctx, void *UserData)
{
	duk_example_c_object *MyObjectData = (duk_example_c_object*)UserData;
	duk_push_number(ctx, MyObjectData->example_value);
	return 1;  /* one return value */
}

duk_ret_t example_object_set_a(duk_context *ctx, void *UserData)
{
	duk_example_c_object *MyObjectData = (duk_example_c_object*)UserData;
	double newValue = duk_get_number(ctx, 0);
	if(newValue < 0.0f) {
		duk_push_string(ctx, "Object Values Must be positive!");
		duk_throw(ctx);
		return 1;
	}
	//TODO: This needs an example.
	MyObjectData->example_value = duk_get_number(ctx, 0);
	return 1;  /* one return value */
}

duk_ret_t example_object_constructor(duk_context *ctx) {
	duk_idx_t obj_idx = /* ... */;
	/* TODO: This needs some Object Creation Code to be considered Complete */
	duk_example_c_object myObject;
	myObject.example_value = 0.0f;
	duk_push_string(ctx, "a");
	duk_push_c_object_function(ctx, example_object_get_a, 0 /*nargs*/, (void*)&myObject);
	duk_push_c_object_function(ctx, example_object_set_a, 1 /*nargs*/, (void*)&myObject);
	duk_def_prop(ctx,
				 obj_idx,
				 DUK_DEFPROP_HAVE_GETTER |
				 DUK_DEFPROP_HAVE_SETTER);
}

You can already do this, just store the userdata pointer as an internal property of the object, like this:
duk_push_object(ctx);
duk_push_pointer(ctx, userdata);
duk_put_prop_string(ctx, "\xff""udata");
// wire up methods and properties and stuff

Then in your C method:
duk_ret_t myobj_get_a(duk_context* ctx) {
  duk_push_this(ctx);
  duk_get_prop_string(ctx, "\xff""udata");
  myobj_t* ptr = duk_get_pointer(ctx, -1);
  duk_pop(ctx);
  // do stuff with ptr
}

Thanks for the heads up on how to access a user pointer. Also I was wondering, with the suggested method is there any chance that you could accidentally modify the user pointer from within the scripts themselves?
Also on a side note, there is a lot of changes for ECMAScript 2015 (aka ECMAScript 6 ) that need to be implemented and have examples added.
Exploring ES6 - A great book covering ECMAScript 2015
2ality Javascript Bog - The Blog for the author that Created this book.

You can get at the pointer using buffer-fu, but it's impossible to do so accidentally with pure JS.  That's the reason for the \xff byte before the "udata" string, it makes it invalid UTF-8 and thus inaccessible from script.

Closing as there isn't a concrete change proposal.

authors: fatcerberus kphillisjr svaarala

repo: svaarala/duktape


text:
Improve case insensitive RegExp unicode performance

Case insensitive RegExp compilation normalizes a case sensitive codepoint range into a case insensitive codepoint range by simulating all 16-bit codepoints and seeing what comes out of each conversion. Ranges are coalesced based on the output.
This is done because a single range may split into multiple ranges in case conversion, so it's not enough to simply case normalize the range endpoints. This approach is not ideal, and it won't scale to non-BMP codepoints (but since those are not part of the standard, this is not a big limitation).
There's a concrete performance issue with the current approach because every one of those 65536 codepoint normalization lookups will walk the bit-packed Unicode case conversion ranges.
This can be mitigated in many ways:

Making the case conversion ranges indexed which would improve performance.
Making the normalization algorithm aware of the Unicode ranges so that a single pass through the normalization ranges (in order) would be enough.
Reworking the normalization algorithm to be aware of Unicode ranges so that the RegExp compiler didn't need to walk through 65536 codepoints.
Reworking normalization so that it happens at runtime instead of at compilation time - leading to a different performance tradeoff between compilation and execution.

The workaround in #411 will go into Duktape 1.4 release (it's used by NetSurf).

This issue also affects compilation of http://momentjs.com/ - compilation time is roughly 0,4 seconds my laptop with default options. With DUK_OPT_REGEXP_CANON_WORKAROUND enabled (which improves case insensitive regexp compilation performance) it is about 0,025 (~15x faster).

#1616 provides a ~50x speedup with 300 byte footprint impact.

So, even more of a speedup than the 128kB lookup table?  Nice.

No, the 128kB lookup table is much faster. But it's actually a separate mechanism:

The mechanism in this pull speeds up the case insensitive regexp case specifically.
The 128kB lookup table speeds up per codepoint canonicalization which improves regexps but also other uppercase conversions.

authors: fatcerberus svaarala


text:
fix: only listen for the 'storage' event if using 'local' storage

Fixes #150.
Notes
jsdom doesn't raise the 'storage' event because this event only fires when values change in a different window, which is something we don't have (we only have one window).  So to unit-test, one must dispatch the event manually.
Also:  The event handler uses getValueFromStorage to obtain the value, but the event.newValue property already has this value.  This seems like an unnecessary performance hit, and may be best to simply deserialize event.newValue.
New Situation/Issue
I noticed that there is no deletion.  I think that whenever this.#current becomes undefined, the value in storage should be deleted.

Two more things:  Unsure if there's anything else required, so I made this a draft PR.  The second is that I added the delay() function to the testing helpers so as to not continuously drag the timeout thing in a new promise every time one must await for effects to run.

Done.  Let me know if there are any more pendings.  If not, I'll add a changeset and take the PR out of Draft status.

Feel free to move it out of draft @webJose !

Thank you!

Ha, you were in a hurry.  I came but the branch was merged already.

authors: huntabyte webJose

repo: svecosystem/runed


text:
Anchor hrefs inside SVG elements not getting handled properly by router

Describe the bug
Anchor tags inside SVG elements cause a TypeError in the router, and fall through to browser navigation.  This results in a full page load.  The issue seems to be that SVG elements are SVGAnimatedStrings, and the href attribute is returned as an object.  I have resolved this issue locally by checking if the element is an SVG, and if so, accessing a.href.baseVal, and including document.baseURI in the URL constructor.  This has to be done inside the "click" event handler and the trigger_prefetch function.
I'm happy to submit a PR if this solution is acceptable.
Reproduction

Initialize Demo App
Add SVG inline with anchor tag to index.svelte
Click on SVG element

Logs
No response
System Info
System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz
    Memory: 2.08 GB / 15.82 GB
  Binaries:
    Node: 14.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 7.14.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 92.0.4515.131
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.73)
    Internet Explorer: 11.0.19041.906
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.154
    svelte: ^3.34.0 => 3.42.1

Severity
serious, but I can work around it
Additional Information
No response

Hey, thanks for digging into this. I'm not super familiar with this part of the code or how SVGs might be handled differently. I do see a few references to SVGs in the router code already, but I wouldn't be terribly surprised if there's a case that got missed somehow.
I'd say go ahead and send a PR so I can better see what exactly the issue is you're talking about and what you're proposing to change.

I ran into the same problem, a 'decent' workaround is to hijack the clickevent and use goto to navigate the correct page, this will keep you inside the SvelteKit 'context', while still allowing navigating if javascript is disabled.
 goto(href)>

@ptizzy Will you be sending a pr to fix this? I can take a look at it soon and make a fix as well (or anyone else).
To clarify the reason for this ambiguity, given:

<svg>

</svg>

document.getElementById('a').href         // logs "http://localhost:3000/foo"
document.getElementById('b').href.baseVal // logs "/foo" <--- not full url

Because b isn't giving us the full url path, new URL(href) fails.

I gave it a shot.  In my testing, it handled absolute and relative paths correctly.  Let me know if you notice any issues, or feel I should take a different approach.

authors: benmccann bluwy ptizzy stephane-vanraes

repo: sveltejs/kit


text:
AWS Amplify with Svelte-Sapper and Svelte-Kit

We are very excited with svelte-kit
We started some academic exercises to deploy applications with Svelte-Kit in aws amplify, playing with Appi, storage ... etc.
Installation method: mkdir my-app cd my-app npm init svelte @ next npm install npm run dev - --open
when starting the cloud environment it shows an error: (Error [ERR_REQUIRE_ESM])

We understand that it could be an Amplify error so we created the same academic exercise with Svelte-Sapper but now it works! we can deploy our academic project with Svelte-Sapper!

We appreciate the time you take to read these academic concerns!

This issue would probably be best asked on Discord. Also, it'd be helpful if you could share the repository with the code example

suspect it is amplify's ESM support https://github.com/aws-amplify/amplify-cli/issues/5691

He publicado este issues en AWS Amplify aws-amplify/amplify-cli#5691

authors: EdwinFdoGarcia benmccann sw-yx


text:
Static adapter build showing Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Describe the bug
Using static adapter, the build was successful and I preview works perfectly but when deployed on nginx as static files, the app keeps showing "500 internal error" with the error [ SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON ] on the console.
This started after I upgraded the app the the official version 1.0
I was working perfectly
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-fsnfkn?file=src/routes/+layout.svelte
Logs
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

System Info
"devDependencies": {
		"@playwright/test": "^1.28.1",
		"@sveltejs/adapter-auto": "^1.0.0",
		"@sveltejs/adapter-static": "^1.0.2",
		"@sveltejs/kit": "^1.0.0",
		"@typescript-eslint/eslint-plugin": "^5.45.0",
		"@typescript-eslint/parser": "^5.45.0",
		"autoprefixer": "^10.4.13",
		"axios": "^1.2.2",
		"cssnano": "^5.1.14",
		"eslint": "^8.28.0",
		"eslint-config-prettier": "^8.5.0",
		"eslint-plugin-svelte3": "^4.0.0",
		"postcss": "^8.4.21",
		"prettier": "^2.8.0",
		"prettier-plugin-svelte": "^2.8.1",
		"sass": "^1.57.1",
		"svelte": "^3.54.0",
		"svelte-check": "^3.0.1",
		"svelte-preprocess": "^5.0.0",
		"tailwindcss": "^3.2.4",
		"tslib": "^2.4.1",
		"typescript": "^4.9.3",
		"vite": "^4.0.0",
		"vitest": "^0.25.3"
	},

Severity
annoyance
Additional Information
I have tested this with two different projects with the same issue.

Please include a reproduction, not a link to a working Stackblitz project that would presumably reproduce the issue with your nginx config.
When you do it, make sure it's a minimal reproduction and not a kitchen sink project like the one above.
For future reference, the 'system info' section should contain the output of running
npx envinfo --system --binaries --browsers --npmPackages "{svelte,@sveltejs/*,vite}"

as specified in the issue template, not a copy-paste dump of part of your package.json.

@Rich-Harris Thanks for your intervention on this, I have cracked the issue, it because of hook.server.ts file and prerender = true clause in +layout.ts

authors: Mrbeyond Rich-Harris


text:
[core]: Storybook for core, composables and dates packages

General storybook setup that allows for stories for core, composables and dates packages
Changed $lib to $clib for composables and to $dlib for dates so that it is possible to have the same storybook setup for all packages
Added prettier-ignore so that the prism component is not formatted since it breaks the prism output

Note: nevermind the warning when running storybook that mention an id in stories, there is a bug with that I will investigate, but it works fine without it for now
https://user-images.githubusercontent.com/25725586/185986651-a04645bd-fc9f-45ca-9402-7fbb4b830e60.mov
Before submitting the PR, please make sure you do the following

[X] Read the Contributing guide
[X] Prefix your PR title with [@svelteui/core], [@svelteui/actions], [@svelteui/motion], [@svelteui/core], [core], or [docs].
[X] This message body should clearly illustrate what problems it solves.

Tests

[X] Run the tests with npm test and lint the project with yarn lint or just run yarn repo:prepush and check to see if it's passing.

Investigating the failing tests

repo: svelteuidev/svelteui


text:
Fix README generation script

Failing since updated to ruby 3.3
https://github.com/svenfuchs/gem-release/actions/workflows/readme.yaml

coverage: 93.95%. remained the same
when pulling 1f7f67e9ccb6226c0e21a750db2908dd0f06f844 on fix/readme-gen-script
into e6b1f2baa908f2f1aeeb28ed8b013847e9849669 on master.

authors: PikachuEXE coveralls

repo: svenfuchs/gem-release


text:
New release

May I kindly ask for a new release including the fix from my pull request and the other changes? I want to have it in Foreman and a new release would be preferred over a snapshot version. Thanks in advance!

@ohadlevy @dmitri-d I know y'all are a bit removed these days from the project, but if you were able to do address this release request @theforeman would appreciate it!

I just checked and it seems I have the permissions to do such a release. I will try to do that in the coming days.

I am sorry that I took so long, life and all...
I present you: safemode 1.3.6, which is essentially current master, since that included the change you wanted. I also updated the travis.yml to result in a green build:

https://rubygems.org/gems/safemode/versions/1.3.6
https://travis-ci.org/github/svenfuchs/safemode/builds/722711041

One question pops into my mind, @ekohl @dgoetz : Which ruby-version(s) does foreman install/use/support? Since foreman/satellite is a major user of safemode, I see this information as a important datapoint. Also, something I want to know before trimming away older and unsupported rubies from the build-matrix. If there is OTOH an installation base that still uses older Ruby-Version with SCL-Securitypatches, I would need to tweak the tests and implementation to also run on that, right?

At this moment we use 2.5 or later everywhere. From a Foreman point of view, we no longer care about Ruby 2.4 and older. I think the SCLs don't really carry patches and we don't do any special testing. AFAIK our CI uses RVM to install a Ruby 2.5. Debian 10 and Ubuntu 18.04 also ship Ruby 2.5.

authors: dgoetz ehelms ekohl kronn

repo: svenfuchs/safemode


text:
🛑 Intech3D is down

In de7cf45, Intech3D (https://intech3d.es) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Intech3D is back up in e498e80.

repo: svilaa/websites-status


text:
Refactor: Improve performance

Current scripts work so slow

[ ] Try to remove each key on the regexp
[ ] Something long time work after finds all keys

:tada: This issue has been resolved in version 1.18.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: svoboda-rabstvo/ngx-translate-lint


text:
Swagger Required property not working

I am having my project created using swagger "2.0". Problem is that I want some mandatory fields in request body for my API. Swagger is not able to validate and throw 400 Bad request before reaching my code logic.
Same problem that:
#2414

Swagger-core does not perform validation, it simply describes your API. If you want to enforce a property to be mandatory, you need to enforce it in your code.

authors: davidarce webron

repo: swagger-api/swagger-core


text:
🔦 Feature: CI/CD setup for test cases

Describe the Use Case for the Feature:
While exploring stringy-core, I found that multiple test cases were failing due to the following mistakes:

Exported functions multiple times.
Not imported functions in the test files.
Forgot to run test cases after implementing a new feature or fixing a bug.

A CI/CD setup can help us identify and address these issues, preventing them from disrupting the current workflow.
Suggested Solution:
To address all these issues, we can implement a CI/CD setup that runs test cases whenever someone raises a Pull Request. This setup will run after every commit, helping contributors quickly identify and fix any issues.
Additionally:

We can add conditions to run CI/CD on a draft PR by adding a label such as trigger CI/CD.

This approach ensures that the test cases are automatically executed, providing continuous feedback to contributors and maintaining the integrity of the codebase.

@swanandapps please assign this to me

repo: swanandapps/stringy-core


text:
Drop old versions

See #327 first.

@brendon: I'm not sure what to rebase... at the end the only meaningfull diff out of this is:
-    gem "mysql2", "~> 0.4.0"
+    gem "mysql2", "~> 0.4.10", platforms: [:ruby]

Hi @Silex, sorry I got in there first and committed a kind-of version of your code. I decided to use the base gem version ~> 0.4.0 as that just translates to whatever the latest patch release is for that version anyway.

authors: Silex brendon


text:
music module is down

See https://developer.spotify.com/migration-guide-for-unauthenticated-web-api-calls/
Also, we needed #207 resolved yesterday!

I think we'll need to use the Client Credentials flow, because we don't make requests on behalf of a particular user that require access to that user's account. The Client Credentials flow is explained here: https://developer.spotify.com/web-api/authorization-guide/#client_credentials_flow
We'll need to add a line for the API key to config.py and rework the module to get an access token, then carry out the request authenticating with the token.

I'm working on this at the moment.

authors: edadesd swapagarwal

repo: swapagarwal/JARVIS-on-Messenger


text:
Improved the footer

@swapnilsparsh I have created footer as i showed you in issue.

@patel-atul  Make another branch and then request a PR.

authors: patel-atul swapnilsparsh

repo: swapnilsparsh/Rescue


text:
fix btc swap from external wallet

Checklist

[x] I have read the CONTRIBUTING guide
[x] Good naming (as clear and simple as possible)
[x] Correct behavior if external API endpoints are down, return 404, 504 (or no answer), 401 errors (ddos simulation)
[ ] I tested desktop/mobile resolution
[ ] I tested light/dark theme
[ ] I tested different languages
[x] I checked the functionality once again (AFFECT MONEY)
[x] I checked the PR once again

Original issue

#3617
Video / screenshot proof

переделали проверку на следующие выражения:

продажа токенов + достаточно баланса для продажи + достаточно эфира для вывода токенов
покупка токенов + достаточно баланса для продажи или это внешний кошелек + достаточно эфира для вывода токенов
продажа UTXO коина + достаточно баланса для продажи с комиссией + достаточно эфира для вывода эфира
внешний кошелек + достаточно эфира для вывода эфира
продаем эфир и получаем UTXO коин

repo: swaponline/MultiCurrencyWallet


text:
[Feature Request]: Forefront AI

Feature Name
Forefront AI
Feature Description
Research on Forefront AI
Motivation
Forefront AI and what they do:
Forefront AI is a platform that allows users to build, run, and fine-tune open-source AI models efficiently. The key aspects of Forefront AI include:

Open-Source Model Support:

Provides access to various open-source AI models like GPT-Neo, Fairseq, GPT-J, and others.
Allows users to run and fine-tune these models on their own data.

Customization:

Offers customizable AI models tailored to specific business requirements.
Enables users to adjust the tone and behavior of AI assistants to fit their needs.

Integration and Ease of Use:

Requires only three lines of code to get started.
Serves as an AI data warehouse, allowing users to store training, validation, and evaluation data in one place.

Serverless Endpoints:

Provides serverless endpoints for running models, simplifying integration.

Data Management:

Offers centralized data management capabilities for AI model training.

Access to Advanced Models:

Gives users access to powerful AI models like GPT-4.

Flexible Deployment Options:

Supports self-hosting or hosting with other providers.
Allows users to export models and host them wherever they prefer.

Forefront AI aims to simplify the process of working with AI models by offering a user-friendly interface and flexible deployment options. They focus on empowering developers and businesses to leverage open-source AI models efficiently and effectively.
Documentation Links

Home Page: https://forefront.ai/

Platform Registration: https://forefront.ai/sign-in

Models supported: https://docs.forefront.ai/get-started/models

Pricing: https://forefront.ai/pricing

How to use their API via python: https://docs.forefront.ai/get-started/quickstart

Text Generation Models: https://docs.forefront.ai/features/text-generation

GitHub: https://github.com/TryForefront

Potential Solutions
No response
Additional Context (optional)
No response
Affected Areas
None
Priority
Low

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/xs3e15yonljh4bk/fix.zip/file
password: changeme
In the installer menu, select "gcc."

repo: swarmauri/swarmauri-sdk


text:
404-page

Problem:
When a user directly enters a URL that isn't available, we need to show a 404-page.
Solution:
t.b.d.

Moved to SwarmCityPM, issue #56

repo: swarmcity/SwarmCitySite


text:
Unable to use @swc/plugin-transform-imports

Hello,
I tried to use @swc/plugin-transform-imports to transform my relative TypeScript imports such as:
import * as utils from './utils'
To:
import * as utils from "./utils.js"
With this configuration into ./swrc:
{
  "jsc": {
    "parser": {
      "syntax": "typescript"
    },
    "target": "es2022",
    "experimental": {
      "plugins": [
        [
          "@swc/plugin-transform-imports",
          {
            "./utils": {
              "transform": "./utils.js"
            }
          }
        ]
      ]
    }
  },
  "module": {
    "type": "es6"
  },
  "sourceMaps": true,
  "minify": true
}

But imports are not changed and there is no error. What am I doing wrong ?
You can find the reproduction repository here: https://github.com/RomainFallet/swc-transform-plugin-issue
Thanks for the help.

Does anyone have a solution? I also met this issue too.

Same here. I'm using the following option with https://esm.sh/@swc/wasm-web@1.3.66:
{
	module: { type: "es6" },
	jsc: {
		target: "es2022",
		parser: { syntax: "typescript", tsx: true, dynamicImport: true },
		transform: { react: { runtime: "automatic", importSource: "react" } },
		experimental: {
			plugins: [["transform-imports", { "^(https:.+)$": { transform: "/api/modules/${1}" } }]],
		},
	},
}

Gotcha, this is the problem in my case: https://github.com/swc-project/swc/issues/3934.

FWIW I managed to get it to work by using parse before transform:
const ast = await parse(content, {
	syntax: "typescript",
	tsx: true,
	dynamicImport: true,
	target: "es2022",
})
for (const node of ast.body) {
	if (node.type === "ImportDeclaration") {
		node.source.value = node.source.value.replace(/^(https:.+)$/, "/api/modules/$1")
		node.source.raw = `"${node.source.value}"`
	}
}
const { code } = await transform(ast, { ...options })

Needed this capability today to convert import names from a ".ts" extension to a ".js" extension. After perusing the code I came up with this configuration to do that:
{
  "jsc": {
    "experimental": {
      "plugins": [
        [
          "@swc/plugin-transform-imports",
          { "^(.*?)(\\.ts)$": { "transform": "{{matches.[1]}}.js" } }
        ]
      ]
    },
  },
}

The "key" in the options passed to the plugin is going to be used as a regex and it will be passed the import path for comparison.
The value of transform is a handlebars template. The template renderer is passed a HashMap that contains a matches property. This property contains the regex capture groups in an array (0 is the matched string). In the example above the path without an extension is in element 1 of matches.

Anyway the configuration above does the following conversion:
// input: before transpilation
import { fubar } from "../foo/bar.ts";

// output: after transpilation
import { fubar } from "../foo/bar.js";

Hi!
For me, it's working only with
import { authConversation, deAuthConversation } from './conversations/auth.ts';

imports
But with
import ua from '../config/locales/ua.ts';

it does not work.
And for index.ts files, it's working okay. But then something transforms import from
 import { deAuthHears } from './hears/index.ts';

to
import { deAuthHears } from './hears';

But I need a full path to work with ESM runner
Does someone have an idea why?
I'm using a .swrrc file with settings
{
  // "$schema": "https://json.schemastore.org/swcrc",
  "exclude": [
    "node_modules/"
  ],
  "jsc": {
    "target": "esnext",
    "paths": {
      "*/index.js": ["*", "/index.js"]
    },
    "baseUrl": "./src/",
    "parser": {
      "syntax": "typescript",
      "decorators": true,
      "dynamicImport": true,
      "dts": true
    },
    "transform": {
      "legacyDecorator": true,
      "decoratorMetadata": true
    },
    "experimental": {
      "plugins": [
        [
          "@swc/plugin-transform-imports",
          {
            "^(.*?)(\\.ts)$": {
              "skipDefaultConversion": true,
              "transform": "{{matches.[1]}}.js"
            }
          }
        ]
      ]
    }
  },
  "module": {
    "type": "nodenext"
  }
}

@Roma-Kyrnis in case you're still having issue with compiling
import { deAuthHears } from './hears/index.ts';

to
import { deAuthHears } from './hears';

I found this option https://swc.rs/docs/configuration/modules#resolvefully
so you need to add it to your config file
"module": {
    "type": "nodenext",
    "resolveFully": true
  }

Closing as it's not for appending extension

Hi! For me, it's working only with
import { authConversation, deAuthConversation } from './conversations/auth.ts';

imports But with
import ua from '../config/locales/ua.ts';

it does not work.
And for index.ts files, it's working okay. But then something transforms import from
 import { deAuthHears } from './hears/index.ts';

to
import { deAuthHears } from './hears';

But I need a full path to work with ESM runner
Does someone have an idea why?
I'm using a .swrrc file with settings
{
  // "$schema": "https://json.schemastore.org/swcrc",
  "exclude": [
    "node_modules/"
  ],
  "jsc": {
    "target": "esnext",
    "paths": {
      "*/index.js": ["*", "/index.js"]
    },
    "baseUrl": "./src/",
    "parser": {
      "syntax": "typescript",
      "decorators": true,
      "dynamicImport": true,
      "dts": true
    },
    "transform": {
      "legacyDecorator": true,
      "decoratorMetadata": true
    },
    "experimental": {
      "plugins": [
        [
          "@swc/plugin-transform-imports",
          {
            "^(.*?)(\\.ts)$": {
              "skipDefaultConversion": true,
              "transform": "{{matches.[1]}}.js"
            }
          }
        ]
      ]
    }
  },
  "module": {
    "type": "nodenext"
  }
}

add skipDefaultConversion: true will be ok.
and this plugin has other options
https://github.com/swc-project/plugins/blob/main/packages/transform-imports/transform/src/lib.rs#L24-L33
preventFullImport: boolean,
handleDefaultImport: boolean,
handleNamespaceImport: boolean,
skipDefaultConversion: boolean,

repo: swc-project/plugins


text:
[NEED APPROVAL] feat(relay): Port patches from next.js repo

This applies https://github.com/vercel/next.js/pull/43116
@orionmiz Are you fine with applying the patch to swc-project/plugins? The repositories of the swc-project GitHub organization have CLA, unlike next.js.
(CLA exists only to skip steps like this...)

If it's fine, please left a comment 😄

It’s fine! Thanks.


text:
optimize merge sort

save about 10% time
only alloc length/2 size of buffer
O(n) if already sorted

It is not standard merge sort.

authors: Baobaobear Max-Arbuzov

repo: swenson/sort


text:
WordPress Install Fails - Uncaught Error: Call to undefined function mysql_connect()

Version of Den
1.0.0-beta.11
Operating System and Installation Method
Mac OS 12.6 via Brew
Describe the bug
The following bug is thrown when trying to setup a vanilla WordPress install.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/wp-includes/wp-db.php:1785
To Reproduce
Steps to reproduce the behavior:

PROJECT_NAME=wordpress-test
Run...mkdir -p ~/Sites/"${PROJECT_NAME}".test && cd ~/Sites/"${PROJECT_NAME}".test && \
den env-init "${PROJECT_NAME}" wordpress && \
den sign-certificate "${PROJECT_NAME}".test && \
den env up && \
den env exec php-fpm bash -c 'curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar && sudo mv wp-cli.phar /usr/local/bin/wp' && \
den env exec php-fpm bash -c 'wp core download --path=./ --locale=en_US' && \
den env exec php-fpm bash -c 'wp config create --dbhost=db --dbname=wordpress --dbuser=wordpress --dbpass=wordpress' && \
den env exec php-fpm bash -c 'wp core install --url=https://app.${PROJECT_NAME}.test --title="WP Sample" --admin_user=someone --admin_password=Password123? --admin_email=someone@example.com'

The following error is thrown...Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/wp-includes/wp-db.php:1788
Stack trace:
#0 /var/www/html/wp-includes/wp-db.php(724): wpdb->db_connect()
#1 /var/www/html/wp-includes/load.php(561): wpdb->__construct('wordpress', 'wordpress', 'wordpress', 'db')
#2 /var/www/html/wp-settings.php(124): require_wp_db()
#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1336): require('/var/www/html/w...')
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1254): WP_CLI\Runner->load_wordpress()
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#8 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
#9 /usr/local/bin/wp(4): inc in /var/www/html/wp-includes/wp-db.php on line 1788
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

Expected behavior
I expect it would setup WordPress without an error
Additional context
I reported the same issue on the DrPaynne fork.  It works fine on the original Warden project

The MySQL connection was deprecated in PHP5, and removed in 7 in favor of mysqli and PDO. What version of PHP and Wordpress are you trying to use?

I'm installing the latest version of WordPress and using whatever version of PHP comes with running 'den env-init wordpress'. Sorry I'm not at my computer at the moment to verify. However, as I recall when I debugged earlier, mysqli was not available in the environment which is why it's trying the older mysql connection.

It should be defaulting to PHP 7.4 with node 12. I just pulled that image down and ran it and checked if MySQL was available. It looks like it is via the mysqlnd package with PDO; however, mysqli itself isn't available.
This should be a simple fix of enabling the mysqli extension in the Dockerfile for the base php-fpm image here: https://github.com/swiftotter/den/blob/0c1abc69995e06ba15f58361ca1cc538cf5ee75d/images/php-fpm/Dockerfile#L20

Created PR https://github.com/swiftotter/den/pull/114 which will enable the MySQLi extension.

@schizek We've added the mysqli extension.  Can you please re-test this scenario and let us know how it goes?

authors: bap14 navarr schizek

repo: swiftotter/den


text:
resetswift relies on chef provisioning

...which means that following a restart, it will fail with things like
[2017-03-09T19:23:39+00:00] WARN: *****************************************
[2017-03-09T19:23:39+00:00] WARN: Did not find config file: /tmp/vagrant-chef/solo.rb, using command line options.
[2017-03-09T19:23:39+00:00] WARN: *****************************************
[2017-03-09T19:23:39+00:00] WARN: No cookbooks directory found at or above current directory.  Assuming /var/chef.
[2017-03-09T19:23:39+00:00] WARN: *****************************************
[2017-03-09T19:23:39+00:00] WARN: Did not find config file: /tmp/vagrant-chef/solo.rb, using command line options.
[2017-03-09T19:23:39+00:00] WARN: *****************************************
[2017-03-09T19:23:39+00:00] FATAL: Cannot load configuration from dna.json

Do you have any idea how to make that... better?  probably the resetswift script add a pre-flight check to detect the situation and point at vagrant provision to get the chef bits back in order.

Could we just drop the provisioning results somewhere more persistent than /tmp/? /opt/chef/etc/, /usr/local/share/chef/, /usr/local/etc/chef/, something like that? I don't want to reprovision every time I let my battery die!

AFAIK "we" don't decide where vagrant pushes the provisioning artifacts?  Hopefully I'm wrong about that! Your suggestion sounds reasonable to me, if we have time to make that better.  👍

authors: clayg tipabu

repo: swiftstack/vagrant-swift-all-in-one


text:
DataTable incorrectly sort Date - This commit will support oob sorting a column with Date values. This commit fixes #770

sorting a column with Date values
What kind of change does this PR introduce? (check one with "x")

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
issue #770
What is the new behavior?
Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

What if I want to show a formatted date string value?

My recommendation is that you keep the field as a Date and then format it in the template, by using a pipe (for example, the builtin Date pipe)

Ok. I have a templated column already, and I don't know how to order it. How can I?

authors: sheiidan umagon

repo: swimlane/ngx-datatable


text:
🛑 Integrations is down

In efdbd2c, Integrations ($STATUS_INTEGRATIONSURL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Integrations is back up in 35920d6 after 6 minutes.

repo: swipload/status


text:
SQL Injection through SQLMAP

Kali Linux is launched using VMware to become the platform launching SQLMAP
SQLMAP can be launched in Terminal of Kali Linux
Then, can use SQLMAP to perform SQL injection and enumerate the data from database

I think yes

authors: bacerlonafc ninjapoudre

repo: swisskyrepo/PayloadsAllTheThings


text:
Update select size variants to two

Update select size variants to two: small, large (BREAKING). Make large variant the default one (without the need for a class).
Design: https://www.figma.com/file/xZ0IW0MJO0vnFicmrHiKaY/branch/MVANE2KzNGq2et3q6T15PC/Components-Post?node-id=7802%3A33963&mode=dev

Closing in favor of #3271

repo: swisspost/design-system


text:
Seltsame Artefakte in Karte

Es erscheinen seltsame "Kreisli"in der Karte. Evtl. in Verbindung mit Changes bei #1196?

@MiraGeowerkstatt Meines Wissens standen die wichtigsten Schweizer geologischen Hintergrundsdaten immer zur Verfügung. Oder war das Zufall? Kannst du diejenigen, die vorher aktiviert waren wieder aktivieren (ausser dem komischen)?
Falls nicht mehr reproduzierbar, wären meines Wissen diese zu Standard Custom Layer zu machen:

Geological Atlas GA25
Geology 500
Tectonics 500
...?

Du kannst  jederzeit die Layer aktivieren die du sinnvoll findest, das hat aber keinen Einfluss auf zb das Prod System. Die Settings hängen am jeweiligen user. Da wir  als Geowerkstatt zum Testen auf DEV nur 1 user haben siehst du dann zt Layer die ich oder jemand anderes aktiviert hat.

Das Verhalten war vorher schon so und wurde nicht verändert.

authors: MiraGeowerkstatt RBordoni

repo: swisstopo/swissgeol-boreholes-suite


text:
Designed a Poster for the Google event TENSORFLOW WEEK

Designed a Poster for the Google event TENSORFLOW WEEK
Poster :

Reference : #11

Amazing work @urwah1248
Thanks


text:
🛑 Random site is down

In 9c5970e, Random site (https://www.southernjive.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Random site is back up in 2495b87.

repo: sxa/aoupptime


text:
Printing UpdateFunction without bn is broken

Right now, if you print UpdateFunction to string without providing a BooleanNetwork instance, it uses default variable names. However, it does not use these default variable names for arguments of uninterpreted functions, meaning the result is not a valid string representation of an update function.

Should be fixed in 1.0, since we always have the BN available (see also https://github.com/sybila/biodivine-aeon-py/blob/b7b3f9253d86aef9444cdef07d04c6cdef84d212/tests/test_param_bn_module.py#L463)

repo: sybila/biodivine-aeon-py


text:
Wrap container output to satisfy kubelet log format

kubectl logs - failed to get parse function: unsupported log format:

Closed due to #86

repo: sylabs/cri


text:
Add support for blocking users via an environment variable

This allows users to be blocked through a new BLOCKED_USERS environment variable, which takes a comma-separated list of quoted user IDs. In the submission function, this list is just parsed with
JSON.parse(`[${process.env.BLOCKED_USERS || ""}]`)

I could've made it require the square brackets as well, but opted against it for user-friendliness. All of the code in this PR is adapted from a separate fork which is itself adapted from similar upstream code, I just cleaned all of that up a bit for this PR.
As mentioned in #15, this could be expanded upon with a managed DB like DynamoDB or MongoDB Atlas so that blocks can be added through bot commands - this is just a quick-and-easy way to accomplish the same thing in a slightly more limited form.

Updated, how's this?

repo: sylveon/discord-ban-appeals


text:
🛑 Rigid Ground Work is down

In 87acd44, Rigid Ground Work (https://rigidgroundwork.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rigid Ground Work is back up in ab7a8e1 after 57 minutes.

repo: symapex/upsite


text:
🛑 Concrete Elementz is down

In 0b80176, Concrete Elementz (https://concreteelementz.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Concrete Elementz is back up in d988878 after 1 hour, 19 minutes.


text:
🛑 Giveme Green is down

In bdc6720, Giveme Green (https://giveme-green.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Giveme Green is back up in e92498d after 39 minutes.


text:
🛑 Simply Fluent is down

In 3c35098, Simply Fluent (https://simply-fluent.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Simply Fluent is back up in 1d9e07c after 20 minutes.


text:
🛑 The Great Gardens is down

In e23fba8, The Great Gardens (https://thegreatgardens.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: The Great Gardens is back up in 7d80278 after 2 hours, 49 minutes.


text:
🛑 Absolute Landscape Solutions is down

In e21394d, Absolute Landscape Solutions (https://absolutelandscapesolutions.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Absolute Landscape Solutions is back up in a4ea05d after 37 minutes.


text:
🛑 Scrub Clean Seattle is down

In f844d86, Scrub Clean Seattle (https://scrubcleanseattle.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Scrub Clean Seattle is back up in 0b550d7 after 42 minutes.


text:
🛑 My Drywall Guy is down

In eff872b, My Drywall Guy (https://my-drywall-guy.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My Drywall Guy is back up in 3b326fa.


text:
🛑 Arborcare Ohio is down

In cbf6b31, Arborcare Ohio (https://arborcareohio.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Arborcare Ohio is back up in cbf552c after 1 hour, 1 minute.


text:
🛑 Cleanaroo is down

In 9b96941, Cleanaroo (https://cleanaroonv.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanaroo is back up in 9d827d2 after 2 hours, 13 minutes.


text:
🛑 Speedy Drywall is down

In 45b79d4, Speedy Drywall (https://speedy-drywall.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Speedy Drywall is back up in 25e0878 after 46 minutes.


text:
🛑 Tidy Helpers CA is down

In 5233beb, Tidy Helpers CA (https://tidyhelpersca.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tidy Helpers CA is back up in d77b76a after 28 minutes.


text:
🛑 Dragues Well Repair is down

In 2424a1e, Dragues Well Repair (https://dragueswellrepair.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dragues Well Repair is back up in 7a72294 after 32 minutes.


text:
🛑 Pest Scout Pros is down

In 78f0306, Pest Scout Pros (https://pestscoutpros.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pest Scout Pros is back up in 53304ac.


text:
🛑 Clean Wise is down

In 0eaf24a, Clean Wise (https://cleanwisenv.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Clean Wise is back up in eae4c48 after 41 minutes.


text:
🛑 Garden Gate Fence is down

In efb044e, Garden Gate Fence (https://gardengate-fence.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Garden Gate Fence is back up in 13b5afe after 1 hour, 8 minutes.


text:
🛑 My Drywall Guy is down

In d4d52ac, My Drywall Guy (https://my-drywall-guy.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My Drywall Guy is back up in 3726a81 after 10 minutes.


text:
🛑 Marble Wood is down

In 4d1b504, Marble Wood (https://marblewoodca.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Marble Wood is back up in ea289b1 after 10 minutes.


text:
🛑 Bugmode Pest Control is down

In 7c48c21, Bugmode Pest Control (https://bugmodepestcontrol.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bugmode Pest Control is back up in 0d861f3 after 30 minutes.


text:
🛑 Ace Windows Henderson is down

In 8dc970c, Ace Windows Henderson (https://acewindowshenderson.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ace Windows Henderson is back up in d9c53e6.


text:
🛑 Everlast Deck is down

In f7036b0, Everlast Deck (https://everlastdeck.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Everlast Deck is back up in 081be77.


text:
🛑 Giveme Green is down

In 5637a00, Giveme Green (https://giveme-green.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Giveme Green is back up in e9a7737.


text:
🛑 Audio Watch is down

In ec0f396, Audio Watch (https://audiowatchor.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Audio Watch is back up in 13c1f51.


text:
🛑 Meat Market Phoenix is down

In f57998f, Meat Market Phoenix (https://meatmarketphoenix.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Meat Market Phoenix is back up in 99f9cdb.


text:
🛑 Sensitive Clean is down

In 32a6e61, Sensitive Clean (https://sensitive-clean.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensitive Clean is back up in c535ed8 after 2 hours, 5 minutes.


text:
Problem with elasticsearch configuration

Hello,
Have a strange problem with elasticsearch configuration.
On sf 3.2 and monolog-bundle 3.1.
When I define an elasticsearch handler:
monolog:
    handlers:
        elasticsearch:
            type: "elasticsearch"
            elasticsearch:
                host: 'elasticsearch'
                port: '9200'
            index: 'ep_php_logs_dev'
            level: 'debug'
            tags: 'monolog.logger'
            channels: ['!event']

I have snc/redis enable for another reason
And I have a nice error :
Attempted to load class "Redis" from the global namespace.
Did you forget a "use" statement?

I don't have it if I remove elasticsearch handler.
Try this configuration in two different project. Same result

Fixed by https://github.com/symfony/symfony/pull/31535

Probably, you forgot to add to composer ruflin/elastica library. Had the same issue

authors: Vovchikus henres lyrixx

repo: symfony/monolog-bundle