text:
Extracting/inserting data into an IRISSpectrograph object

Is there a succinct way to extract the raw data from the IRISSpectrograph object as a 4D ndarray?
I have implemented despiking routines that are designed to operate on simple ndarrays, so I need to be able to extract the data from the IRISSpectrograph object, execute the despiking routine, and then insert the data back into the IRISSpectrograph object.
Currently, I am extracting the data from the IRISSpectrograph objects something like
obs = read_iris_spectrograph_level2_fits(path, self.iris_channel)

data_list = []
for dt in obs.data[self.iris_channel].data:
     data_list.append(dt.data)

data = np.stack(data_list)

but I feel as if there has to be a clearer way of doing this.

You mean you want to merge all the wavelength windows into one dimension? This is not how the data are written in level 2 FITS files (each wavelength window is a FITS extension), so the data are never really a 4D array.

Hi @byrdie and @tiagopereira.  From my reading of your question @byrdie, you want to combine data from one spectral window, but over multiple raster scans into a single 4D array?  In this case path represents multiple FITS files?  Is this correct?  Assuming it is, then following on from what @tiagopereira said, not only is the data from each window in a different FITS extension, but the data from each raster scan is in a different FITS file.  Therefore each raster scan array corresponds to a different set of coordinate transformations and so the IRISSpectrogramSequence (the obs.data[self.iris_channel] in your example) does not combine the data into a single array, but keeps them separate from raster scan to raster scan.
So the the short answer is the way you are doing it in your example is actually the best way.

@DanRyanIrish you are correct, path represents multiple FITS files, so I am indeed trying to combine multiple raster scans into a single 4D array.
@tiagopereira and @DanRyanIrish, you both bring up good points of course, the 4D data should not be represented in a contiguous ndarray since it is both not presented that way (in the FITS files) and each raster position requires a different coordinate transformation.
However, it was pretty counter-intuitive for me to grasp that I needed to loop through the IRISSpectrogramSequence to simply extract all the raw data from the observation.
I suspect that many users including myself may not want to be constrained to the IRISpy box, and will need just the raw data for many image-processing sorts of tasks.
@DanRyanIrish and @tiagopereira, how would you guys feel about adding a function to the NDCubeSequence class to perform the 4D stacking operation in my example above?
I would be happy to take a crack at this modification if there are no objections, although it probably deserves some discussion as to how this should be implemented from a user-interface perspective.

Hi @byrdie.  Actually having looked at it again, although conceptually there is no better way of combining the data from a sequence, there is a technically cleaner way that is a little faster if your sequence is very long.  That is, using list comprehension which turns your code into a one-liner.
# Rename spectral window data for brevity.
sequence = obs.data[self.iris_channel]

# Make a single 4D array of data in sequence.
data = np.stack([cube.data for cube in sequence.data])

Likewise if you want to combine the data into a 3D array, say if you were thinking of the x axis of each cube as time, rather than longitude, you can use numpy.vstack:
# Make a 3D array
data = np.vstack([cube.data for cube in sequence.data])

And if you want to combine data from a single raster position over multiple raster scans, you can simply do:
# Make a 3D array of data from 4th (zero-based) slit position
data = np.stack([cube[4] for cube in sequence.data])

It's great you're interested in contributing to IRISpy!  Since extracting the data from a Sequence object is in fact one line of code, I think adding a method to do that isn't the most valuable way to contribute.  I think the most useful contribution would be to focus on your valuable comment about how non-intuitive it initially was for you to access the data arrays in this way.  I think what is needed is a pull request adding a paragraph or section to the ndcube docs using this use case as a demonstration of how to explicitly access, extract and combine the data arrays.  And then add them back in afterwards.  This could be added to the NDCubeSequence section of the docs: https://github.com/sunpy/ndcube/blob/master/docs/ndcubesequence.rst

@byrdie note that the IRIS mission already supports this type of 4D data structures, in the form of level 3 files. But this implies converting the level 2 files to level 3 (about 2x larger because they are not scaled), and in your case I'm not sure if will lead to speed improvements. Plus IRISPy does not currently have a function to convert from level 2 to level 3.
However, stacking all the rasters into one array can lead to memory problems. There are some datasets that will not fit in the memory of a typical workstation.

@DanRyanIrish thanks for the great examples, using list comprehension really cleans up my original code.
I'm not sure I understand your last example, I assume you meant
data = np.stack([cube[4].data for cube in sequence.data])

instead of
data = np.stack([cube[4] for cube in sequence.data])

but wouldn't that make a 3D array from the 4th timestep at each raster position, instead of a 3D array of the 4th raster position over multiple scans?
I agree that since this can be easily expressed in one line that it would be unnecessary to add another method. Thanks for the suggestion to contribute to the documentation, I will take an action to update the file you linked with examples from our discussions here.

IRIS level 2 FITS files are 16 bit integers. To get the correct units, these are multiplied by a factor and added a constant to become 32 bit floats (ie, scaled). The level 3 files are already saved as 32 bit floats, so they take twice the space.

@byrdie, yes that's exactly what I meant.  Thanks for correcting me.  And yes, is would create a 3D array of the 4th raster positions since by selecting only one raster position, you are effectively getting rid of the x dimension.  But if you want to maintain the 4D-dimensionality, you can add in a dummy (length 1) dimension using np.newaxis:
>>> data.shape
(3, 4, 5)
>>> data = data[:, np.newaxis, :, :] # Equivalent to data[:, np.newaxis]
>>> data.shape
(3, 1, 4, 5)

authors: DanRyanIrish byrdie tiagopereira

repo: sunpy/irispy


text:
如何部署呢

如何部署呢

更新了readme，也可以参考视频：https://v.douyin.com/iUGwtg95/

source: gharchive/issue

authors: sunzsh zzzzzzzs

repo: sunzsh/internal-chat

license: MIT

license_type: permissive

license_source: github-api


text:
fix: update linkedin issuer url

What kind of change does this PR introduce?

Linkedin introduced a breaking change by changing the issuer url in their
discover document from https://linkedin.com to https://linkedin.com/oauth

Fixes #1533, #1534, #22711, #22708

What is the current behavior?
Please link any relevant issues here.
What is the new behavior?
Feel free to include screenshots if it includes visual changes.
Additional context
Add any other context or screenshots.

Pull Request Test Coverage Report for Build 8688184240
Details

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.005%) to 65.184%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/api/provider/linkedin_oidc.go
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

internal/api/provider/linkedin_oidc.go
1
0.0%

Totals

Change from base Build 8687982717:
0.005%

Covered Lines:
8060

Relevant Lines:
12365

💛  - Coveralls

@kangmingtay @J0 how did you guys validate which one works?
From the error I receive when using signInWithOAuth it looks like you actually need to remove the /oauth:
oidc: id token issued by a different provider, expected \"https://www.linkedin.com\" got \"https://www.linkedin.com/oauth\"

@omerhochman you can query the /authorize?provider=linkedin_oidc
We rolled out the fix recently - do you mind trying again?

I have the latest version but still getting this error. "@supabase/ssr": "^0.3.0",
"@supabase/supabase-js": "^2.42.7",

@jonathanjm, same here.

Still seeing issues with this:
   "@supabase/ssr": "latest",
   "@supabase/supabase-js": "latest",

source: gharchive/pull-request

authors: J0 coveralls jonathanjm kangmingtay maxontech omerhochman sambowenhughes

repo: supabase/auth


text:
Fixed return message to avoid information leaking

What kind of change does this PR introduce?
I fixed https://github.com/supabase/gotrue/issues/119 issue. Just changed the response message.
What is the current behavior?
Returns a response message that may cause to attack by hackers.
What is the new behavior?
Hides the information of person that who is signed up for the service.
Additional context
Reference: https://security.stackexchange.com/questions/234740/on-my-websites-account-creation-form-how-to-avoid-leaking-the-information-that/234757#234757

Hi @kangmingtay. Can you review my code?

Hey @gozeloglu, looks good, thanks for contributing! :)

authors: gozeloglu kangmingtay

repo: supabase/gotrue


text:
The channel_name limitations are missing

Describe the problem
The documentation provides no hint about the necessity to supply a valid channel_name (the Pg NOTIFY command requires no dashes and it didn't work with big caps channels --> so even using the cookie did not work)
Describe the improvement

Either sanitize the channe_name (whether it comes from the config or from the cookie)
Update the doc. to indicate the limitations (only small caps, no dashes etc...) I'm not aware of all constraints here and could only share what did NOT work for me

Bit by this as well. It appears that this line silently fails with no log? https://github.com/supabase/libcluster_postgres/blob/3d6511d8247471a2fb307df23f942ed09a5fce7c/lib/strategy.ex#L80C5-L80C20

@jfayad Thanks for sharing.

Not sure what the best way to recommend an improvement for this (outside of submitting a pr myself), but I too ran into this.

authors: acrolink blakedietz jfayad tfwright


text:
Cannot use in Google Colab

Currently postgrest-py requires python >=3.7.0 while Google Colab has 3.6.9 (so close :D)
If there are no dependencies on some particular 3.7 feature, would it make sense to lower the requirement a bit?

Ok let me look into this.

Unfortunately, httpx AsyncClient requires contextvars module, which was newly added to Python 3.7.
I'll try to find some workaround, but I can't promise anything.

That's unfortunate :( Don't worry, I think I'll better try to reach Colab team.

authors: lqmanh m-kus

repo: supabase/postgrest-py


text:
Default X-Client-Info header

we're rolling out a header similar to Stripe's App-Data in all of the client libs so issues can be debugged more easily between the client and the backend
the javascript libs are done already: https://github.com/supabase/supabase-js/pull/238
the format is: X-Client-Info: supabase-js/1.11.0
for client libs that wrap others (like how supabase-js wraps gotrue-js) we allow the wrapper lib to overwrite the wrapped lib's header (given that we can infer the gotrue-js version based on which supabase-js was used to make the call)
any help with rolling this out here would be incredible

With the latest commit, Postgrest-py now allows setting custom headers in PostgrestClient's constructor. The rest should be handled by Supabase-py. I'll open a PR in a few days if I have free time.

authors: awalias lqmanh


text:
Replace references to PGX with references to PGRX

Improve documentation
Link
https://github.com/supabase/wrappers
Describe the problem
The documentation refers to PGX, but evidently PGX is now PGRX.  Perhaps its name changed, but in any case, this changes the installation instructions and leads to confusion.
Describe the improvement
Change all references to PGX, to PGRX.  For instance:

Built on top of pgx, providing higher level interfaces, without hiding lower-level C APIs. -> Built on top of pgrx, providing higher level interfaces, without hiding lower-level C APIs.
Wrappers is a pgx extension, you can follow the pgx installation steps to install Wrappers. -> Wrappers is a pgrx extension, you can follow the pgrx installation steps to install Wrappers.
cargo pgx install --pg-config [path_to_pg_config] --features stripe_fdw -> cargo pgrx install --pg-config [path_to_pg_config] --features stripe_fdw
Run it using pgx with feature -> Run it using pgrx with feature
cargo pgrx run pg14 --features helloworld_fdw
cargo pgx test --features all_fdws,pg15 -> cargo pgrx test --features all_fdws,pg15
Windows is not supported, that limitation inherits from pgrx -> Windows is not supported, that limitation inherits from pgrx

Nevermind.  Maybe it's just enough to point out that pgx became pgrx between 0.7.4 and 0.8.0, that it introduced breaking changes when it did so, and that therefore for Supabase wrappers you should not follow the exact instructions on the pg(r)x site and instead install pgx.  I.e.,
Instead of
cargo install --locked cargo-pgrx

do
cargo install --locked cargo-pgx

Addendum. Evidently, wrappers requires pgx 0.6.1, not 0.7.4:
cargo install --locked --version=0.6.1 cargo-pgx

Thanks @dventimihasura , you're right, the wrappers can only support pgx 0.6.1, and we're in the progress to catch up with pgx's latest changes.

authors: burmecia dventimihasura

repo: supabase/wrappers


text:
[BUG:] error

[21:46:49] [Server thread/CRITICAL]: Error: "Object of class DateTime could not be converted to string" (EXCEPTION) in "plugins/BetterBan.phar/src/supercrafter333/BetterBan/EventListener" at line 94
[21:46:49] [Server thread/CRITICAL]: #0 plugins/BetterBan.phar/src/supercrafter333/BetterBan/EventListener(94): str_replace(array[4], array[4], string[94] ..cYou are banned on this server!{line}..7Reason: ..e{reason}{line}..7Expires at)
[21:46:49] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): supercrafter333\BetterBan\EventListener->onPreLogin(object pocketmine\event\player\PlayerPreLoginEvent)
[21:46:49] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object supercrafter333\BetterBan\EventListener, object pocketmine\event\player\PlayerPreLoginEvent)
[21:46:49] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerPreLoginEvent)
[21:46:49] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(2007): pocketmine\event\Event->call()
[21:46:49] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(117): pocketmine\Player->handleLogin(object pocketmine\network\mcpe\protocol\LoginPacket)
[21:46:49] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/LoginPacket(145): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleLogin(object pocketmine\network\mcpe\protocol\LoginPacket)
[21:46:49] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\LoginPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[21:46:49] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\LoginPacket)
[21:46:49] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[21:46:49] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/Player(3323): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[21:46:49] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[21:46:49] [Server thread/CRITICAL]: #12 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[21] 173.182.167.167 64771, object raklib\protocol\EncapsulatedPacket, integer 0)
[21:46:49] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[21:46:49] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[21:46:49] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[21:46:49] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[21:46:49] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1635630409.8095)
[21:46:49] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[21:46:49] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[21:46:49] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[21:46:49] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server()
[21:46:49] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

You're not using the right time-prefix (for example usw: /ban name reason 3d)


text:
The vault view is broken when new vault is in sync status, also Tx from others vaults are visible in newly created vaults

Describe the bug
The vault view is broken when new vault is in sync status, also Tx from others vaults are visible in newly created vaults:
To Reproduce
Steps to reproduce the behavior:

Create new vault
Click on See vault
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOS
Browser FF
Version 122

Additional context
Add any other context about the problem here.
https://github.com/superhero-com/superhero-wallet/assets/69896204/01a2a6b2-a49b-480c-a569-8cce339be296

Not reproducible for me on the latest dev branch.

Not reproducible for me on the release branch.

repo: superhero-com/superhero-wallet

license: ISC


text:
fix: get correct dryAeSdk after changing network

closes #2479

Both the issue you are trying to fix and #2541 is based on fact that networkName is not being restored yet. I don't think that this exact place needed to be fixed. And await is not an async action if the networkId was already asked.

In general it's working.
But sometimes I was not able to create vault especially in FF extension because of bad data fetching - I saw balances from mainnet in the testnet which is not correct.

https://github.com/superhero-com/superhero-wallet/assets/69896204/ac5eb48a-411d-4f49-bcb2-63140a00d0c7

Turns out the problem was not fixed in #2561. Reopening this PR since it fixes the issue.
Steps to reproduce the issue:

Reset wallet
Change to testnet
Try to create  multisig wallet

This currently doesn't work on develop but should be fixed with this PR

Fixed, LGTM


text:
Swift style code, enum update, podspec

Hi, I did an update on your code just fixing swift style code and other small things.
The podspec file is updated to 0.0.2 too.
Please merge and upload to cocoapods.
Bests.

@gali8 thank you for the update


text:
Smooths ATZFillableButton's text color change

This is a minor improvement on the buttons drawing. Instead of changing the text color mid-progress, it is animated to follow the background color:
Before:

After:

Nice @guillaume-algis, that looks better indeed!

Cool!

authors: guillaume-algis jurre kattrali

repo: supermarin/Alcatraz

license: mit

license_source: bigquery


text:
Support new BeatSaver API

It's probably too early to ask for this, but would be great if this awesome tool supports new BeatSaver rewrite https://beatsaver.com/
Changes include new map format and IDs (alphanumeric).
Repository: https://github.com/lolPants/beatsaver-reloaded

Thanks for filing! Does the new BeatSaver still support the old formats? Or just completely breaking?

Unfortunately it does not. All maps have been converted to the new format on BeatSaver and it also happens with local maps when you start the latest game version (1.1.0) with latest mods.
There are also manual converters:
https://raftario.github.io/songe-converter-web/
https://github.com/lolPants/songe-converter
Since new BeatSaver isn't finished yet, you can look at new API format e.g. here: https://beatsaver.com/beatmap/52d3 (it'll be documented later)

Thanks, I will try to migrate.

Blocked on https://beatsaver.com/api/download/key/52f5

https://github.com/lolPants/beatsaver-reloaded/issues/8

Done!

repo: supermedium/beatsaver-viewer


text:
Experiment

pull

Master update

repo: supersnus/site


text:
[arduino][doc] 研究下ARDUINO接口的设计语言

NANO:
20PIN
1PIN  => LED 小灯
2PIN =>  3.3vcc
3PIN => AREF   ADC参考电压
4PIN => 模拟A0
5PIN => 模拟A1
6PIN => 模拟A2
7PIN => 模拟A3
8PIN => 模拟A4    =>IIC SDA
9PIN => 模拟A5    =>IIC SDL
12 PIN => 5V
13 PIN => RESET
14 PIN => GND
15 PIN => VIN    ????
//===================
16PIN => UART TX   数字D0
17PIN => UART RX   数字D1
18PIN => RESET
19PIN => GND
20PIN => 数字D2
21PIN => 数字D3
22PIN => 数字D4
23PIN => 数字D5
24PIN => 数字D6
25PIN => 数字D7
26PIN => 数字D8
27PIN => 数字D9
28PIN => 数字D10
29PIN => 数字D11   SPI MOSI
30PIN => 数字D12   SPI MISO
核心板：
1个LED小灯
1个SWD接口
向下兼容拓展

https://wenku.baidu.com/view/3d2e12fb83d049649b6658bb.html

https://store.arduino.cc/usa/arduino-nano

https://store.arduino.cc/usa/arduino-micro

https://store.arduino.cc/usa/nano-33-ble

左边都是模拟的ADC信号引脚A0-A5
上面是IOREF  RESET 3.3V 5.5V (输出）  GND  GND VIN (输入）

右边：IIC 两根SCL SDA
AREF 参考电压
GND
D13-D0
D1 TX
D0 RX

LED 灯一般会有3个LED BLINK, LED TX LED RX

STM32 L496 NUCLEO
这个和arduino是相兼容的

mkiro bus

https://pico.pinout.xyz

fritzing 画图工具
https://fritzing.org/download/

https://www.cnblogs.com/Bruce_H21/p/11555605.html


text:
新版本prevButton和nextButton都无法使用

<swiper :options="swiperOption" ref="mySwiper">

      <swiper-slide></swiper-slide>
      <swiper-slide></swiper-slide>
      <swiper-slide></swiper-slide>
      <swiper-slide></swiper-slide>
      <swiper-slide>I'm Slide 5</swiper-slide>
      <swiper-slide>I'm Slide 6</swiper-slide>
      <swiper-slide>I'm Slide 7</swiper-slide>

</swiper>

export default {
		name:'index',
		data() {
			return{
  				swiperOption: {
            pagination: {
              el: '.swiper-pagination',
            },
            autoplay: 3000,
            loop:true,
            prevButton:'.swiper-button-prev',
            nextButton:'.swiper-button-next',
          },

        }
			},
    computed: {
      swiper() {
        return this.$refs.mySwiper.swiper
      }
    },
     mounted() {
      // current swiper instance
      // 然后你就可以使用当前上下文内的swiper对象去做你想做的事了
      console.log('this is current swiper instance object', this.swiper)
      // this.swiper.slideTo(3, 1000, false)
    },

可以拖动切换但是按箭头没反应（components和import都引入了）

已通过查看例子解决，不过文档是不是该更新下了..

repo: surmon-china/vue-awesome-swiper


text:
single profile display

Hi, iMofya, I tested this and it worked perfectly (!!)
I have two questions:

I want to only display one profile and ask a follow-up yes/no question instead of "which profile do you prefer"
I'm curious as to why the unique-id element is needed? It says it's for the reshape in Stata, but the data will already have a uID generated in the cleaning process using respondents' phone numbers. Can I bypass this element?

Hi @Freddielah,
Thanks for engaging with us. Here are my responses:

I want to only display one profile and ask a follow-up yes/no question instead of "which profile do you prefer"

Unfortunately this is not possible. For now the the field plug-in displays two profiles all the time. If you prefer to display only one profile, you can do this without the field plug-in using HTML tables and randomization. You can always submit a support request and we can guide you further.

I'm curious as to why the unique-id element is needed? It says it's for the reshape in Stata, but the data will already have a uID generated in the cleaning process using respondents' phone numbers. Can I bypass this element?

You can definitely skip that if is not needed. The sample is meant to provide guidance on how the field plug-in can be used, so you can feel free to add/remove parts depending on your workflow.

Awesome, thanks again, Mofya
On Mon, Jul 31, 2023, 12:29 PM mofya1 @.***> wrote:

Hi @Freddielah https://github.com/Freddielah,
Thanks for engaging with us. Here are my responses:
I want to only display one profile and ask a follow-up yes/no question
instead of "which profile do you prefer"
Unfortunately this is not possible. For now the the field plug-in displays
two profiles all the time. If you prefer to display only one profile, you
can do this without the field plug-in using HTML tables
https://www.w3schools.com/html/html_tables.asp and randomization
https://docs.surveycto.com/02-designing-forms/03-advanced-topics/01.randomizing.html.
You can always submit a support request
https://support.surveycto.com/hc/en-us/requests/new and we can guide
you further.
I'm curious as to why the unique-id element is needed? It says it's for
the reshape in Stata, but the data will already have a uID generated in the
cleaning process using respondents' phone numbers. Can I bypass this
element?
You can definitely skip that if is not needed. The sample is meant to
provide guidance on how the field plug-in can be used, so you can feel free
to add/remove parts depending on your workflow.
—
Reply to this email directly, view it on GitHub
https://github.com/surveycto/conjoint/issues/4#issuecomment-1658099337,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBSYW5XJ6IY6Z6UPTGZVPX3XS6CJJANCNFSM6AAAAAA24IK6A4
.
You are receiving this because you were mentioned.Message ID:
@.***>

repo: surveycto/conjoint


text:
[Triage] Uploading Image in web is not working for cloud services such as OneDrive, Google Drive.

Describe the bug
While I am using the mockly website in my mobile I am able to add images and edit them. But when using in website I wasn't able to upload or drop the image in the box.
To Reproduce
Steps to reproduce the behavior:

Go to Landing Page
Click on Try Now
Try to upload a image
Can't able to upload the image.

Expected behavior
  The image needs to get uploaded so that It can be edited.

Screenshots

Environment (please complete the following information):

OS: Windows
Browser: Microsoft Edge
Other relevant environment details : Hosted website.

Optional Sections (if relevant):

Priority (Low / Medium / High)  High
Is this issue blocking your progress?  No
Can you submit a PR to fix this? Yes

I am a contributor from HacktoberFest, I am willing to work on this issue and solve the bug. I will be raising a pr after resolving this issue.

Hey @Cibiyanna26
Do you mind making a screen recording for this issue?
As of now, I am not able to reproduce this issue as of now.
https://github.com/user-attachments/assets/d99b2820-93ed-40d6-a0b1-ff337dc47a3d

Hey @suryanshsingh2001 here is the screen recording of the issues, I have no issues in my mobile but I am facing this issue in web.
https://github.com/user-attachments/assets/081b2847-ddeb-44af-ae42-b3da6ef51826

Hey @suryanshsingh2001 here is the screen recording of the issues, I have no issues in my mobile but I am facing this issue in web.
Recording.2024-10-02.012422.mp4

Hi, please try this.

[ ] Try uploading a file present in your local storage.

Sure will try and let you know.

@suryanshsingh2001 I have tested with a local image its working fine.

I have found a issue, while doing this. When drag the image, there is a sudden zigzag from top to bottom. If you ok with it, I am willing to work on this issue.
https://github.com/user-attachments/assets/b768c9fd-482a-4d16-8407-e25ccf7d4c74

I have found a issue, while doing this. When drag the image, there is a sudden zigzag from top to bottom. If you ok with it, I am willing to work on this issue.
https://github.com/user-attachments/assets/b768c9fd-482a-4d16-8407-e25ccf7d4c74

Hey do you mind creating another issue for this?
I'll be triaging this issue for a later time.

yeah sure! I will create another issue.

Note for self:
I think I know why it didnt work with cloud images, since Mockly only works on the client and all image uploading is done on the browser, image is expected to be a data url which only works

Sure @suryanshsingh2001, how about we let the user to enter his cloud hosted images using a input field ?

Sure @suryanshsingh2001, how about we let the user to enter his cloud hosted images using a input field ?

Will look into this.

This issue can be fixed in #39 now


text:
Elemental quickstart note wrong

https://suse-edge.github.io/docs/quickstart/elemental-utm-aarch64#preparing-the-installation-image says The easiest way to run a K3s HA cluster is by installing a first node using the --cluster-init flag and then, start adding nodes. but you cannot put flags in the Cluster CRD.

This was already fixed in #56


text:
Have to reopen program every time I want to scan. (Can only use once before every control c restart)

Lets say I press the s key. It quickly reads the screen and then shows the answer. But the next time I do it it is stuck on reading screen. I have to reopen the program every time in order for it to work. Is this intentional? Is HQ secretly making you do this to make the bot obsolete?

I've been dealing with the same problem!


text:
support more kubernetes/openshift cluster types

[ ] #313

microshift？

PR for CI with OpenShift: https://github.com/openshift/release/pull/32639

@rootfs please assign me to this card @sallyom thank you

how to track microshift and make it available on the CI

I believe we can utilize the openshift/release MicroShift CI, then add Kepler deployment to that - (and also add documentation to Kepler repo wrt how a user can deploy MicroShift on their own)

I've been putting together the recipe for running kepler/prom/grafana in MicroShift, with KVM, will open a PR to document this

Does the MicroShift need to be run in KVM? It would be better to run it directly in Bare-Metal.
In the case you will run in KVM, it could also be possible to enable RAPL and Hardware Counter metrics.
This is related to the issue #367.

authors: SamYuan1990 marceloamaral rootfs sallyom

repo: sustainable-computing-io/kepler


text:
Added University of Cambridge

I added a new university file and details about the University of Cambridge.

https://www.dns.cam.ac.uk/about/floss.html is also interesting.

authors: RichardLitt Victorybrown

repo: sustainers/academic-map


text:
[BUG] Onshout looping

Before posting a bug, be sure that someone else has not posted it already and it is an actual bug with noblox.js and not other frameworks like discord.js
Describe the bug
The onshout function is looping
To Reproduce
Steps to reproduce the behavior:

Make an onshout function
Start the server
Shout something
See the loop

Expected behavior
To not loop.
Screenshots
https://cdn.iharrblx.xyz/Discord_PoEiQcN1RR.png
Additional context
Add any other context about the problem here.

By the way, this happened when just doing this as a console.log, with no discord

I tried this myself and it worked as expected, are you on the latest version? If so, can you please send code that will reproduce the issue?

Well I am getting the error Unhandled rejection RequestError: Error: socket hang up for the OnShout Event

That’s the issue I’m getting, is this just me

Its not looping but I get that error

is it possible to see your code? to find the prob?

When I get home

Can you show your code? This is definitely working as expected; I don't see any looping on my code sample.

Well the event doesn't work as intended because when I run my discord bot, and after like 3 min or less I get a error called Unhandled rejection RequestError: Error: socket hang up. And yes sometimes it does loop for me too

Where are you running this Discord bot? Do you have a reproducible code sample?

I do not as of now because I was trying to make a work around. But ultimately I get that error every time I use the event.

@Ashp116
The socket hang up error traces back to request.js, a deprecated package. This may be the result of the package or noblox code lacking an appropriate catch for these errors (stack trace only mentions request).  As far as I'm aware, as long as these events are being used, there is no workaround from the errors. These errors do not cause a program crash and the program should proceed as usual.

well I made an event that uses setInterval() for checking data. I am not sure if I could use that over noblox's OnShout()

authors: Ashp116 ItsMrReals chexburger efewqefwfd suufi


text:
Rework thr->callstack into a linked list of duk_activations

Remove thr->callstack array of duk_activations and replace it with a linked list, with thr->callstack_curr holding the currently active entry and act->parent chaining upwards in the call chain.
The upside of the change is that there is one fewer large monolithic allocations which are problematic for low memory targets. Instead, there are a lot of smaller allocations maintained as a linked list. Another upside is that 'act' pointers are now stable, so a lot of side effect questions are eliminated.
One downside is that random access is no longer possible (though it can be accelerated later if necessary); however, very few call sites actually need the random access capability. Another downside is that there are a lot of small allocations when calling and returning; this can be mitigated by duk_activation pooling (to be implemented separately).
Tasks:

[ ] Initial draft of changes
[ ] Clean up FIXMEs, compile warnings, etc
[ ] Callstack limit check, to be kept
[ ] Testcase fixes
[ ] Internal documentation changes
[ ] Perf test
[ ] Torture tests
[x] Releases entry

Work in progress

At present this change reduces Octane performance by around 10 points. This is caused by the current pull not doing any pooling of duk_activations, so each call involves an alloc for sizeof(duk_activation). A follow-up pull will add that pooling, and before merging this pull, I'll do a small experiment to confirm this will fix the issue. On the upside this also means adding pooling for a few common allocations (like empty objects, objects with small property tables) will probably improve performance a bit and will reduce the allocator call load.

Adding a very simple duk_activation free list (as a hack test) shows that call handling will improve with the linked list duk_activation + free list / pooling:
duktape@keppihevonen:~/duktape$ time ./duk.O2.210 tests/perf/test-call-basic-1.js

real	0m7.921s
user	0m7.920s
sys	0m0.000s
duktape@keppihevonen:~/duktape$ time ./duk.O2 tests/perf/test-call-basic-1.js

real	0m7.451s
user	0m7.448s
sys	0m0.000s

I won't implement the freelist here, but I'll implement a duk_catcher and duk_activation freelist as a separate pull. The follow-up for that will then be a shared pool allocation helper which can be used for empty objects, arrays, etc.

I imagine the object pooling alone will be a pretty big improvement for object literal-heavy code.

I did a very quick prototype of that and there was some improvement but not huge. Ultimately it depends on the allocation provider, some of them are very fast and others not so fast.

Tested Octane score with the simple freelist hack and it would increase from ~250 to ~255 with the other changes in this pull, so looks good. The freelist won't be included in this pull though, this was just a test to ensure that the sequence of changes is actually an improvement.

It's been my experience that malloc on Windows is pretty expensive.  In the past I discovered a few hot paths in miniSphere where I malloc'd and free'd some scratch memory in a tight loop and it turned out that moving the allocation outside of the loop improved performance a lot.
Linux malloc seems a lot cheaper, which may explain Cell's TypeScript module being noticeably faster in that environment.

If the allocator is slow it might be worth it for Duktape to do some caching of small allocations (say up to 128 bytes in 4-byte increments) with the idea that frees would go to the cache and be reused, with mark-and-sweep keeping the cache in check. This would make on platforms with a slow allocator and which don't have extremely tight memory bounds.

@fatcerberus I'm reworking the callstack_max bump for error augmentation a bit here too to fix an outstanding bug. Instead of bumping callstack_max in error throwing and unbumping it later, the limit is no longer touched directly. Instead, heap->augmenting_error is set for the duration of error augmentation and it affects the limit check in call handling dynamically without other state changes.
The small bug in the current code is that the callstack_max store and restore may happen in different Duktape threads when coroutines are involved, so the code ends up bumping callstack_max in thread A and restoring it in thread B -- leaving A's callstack_max bumped and thread B's callstack_max unchanged.

authors: fatcerberus svaarala

repo: svaarala/duktape


text:
Add hint to guide about using hidden Symbols to store state

It isn't immediately obvious of how to attach C specific state to an Ecmascript object (took me a little too long to put it together). Added an extra hint to the docs discussing storing C exclusive state. I chose to add another header since adding an Ecmascript accessible property is a different use case than the norm of passing a user context void* to function.
Screenshot:

This already seems to be covered in the Guide:
http://duktape.org/guide.html#symbols

Yeah, that is linked in the
The Symbol relation to storing state was a bit difficult to discover since the section discussing state does not mention it.

Any other suggestions on how to relate the idea of using hidden Symbols as storing C user context data?

@jmhmccr Looks good to me. A short introduction to the topic in the Programming model section seems like the right place to me too, as it already covers how one can store state for a function instance which is a similar common use case. I'll have a look at the text in more detail later.

Requested changes pushed via rebase.
New screenshot:

Other than the whitespace nitpick, looks good :+1:

Uh oh, one more small detail, the AUTHORS.rst entry needs an escape to avoid a formatting glitch. A similar case exists for:
* \D. Bohdan (https://github.com/dbohdan)

Without the escape, Github seems to interpret the "D." as a nested list (see the formatted AUTHORS.rst in the pull).

I'm off to sleep, but I'll merge once the AUTHORS.rst formatting is fixed. Thanks! :+1:

authors: fatcerberus jmhmccr svaarala


text:
Fix division by zero if charging or discharging with no energy_rate

When using battery-cli and unplugging the charger a division by zero happens because the battery is now in State::Discharging, but energy_rate is still 0.

Unfortunately, I was not able to reproduce this case with my battery driver, guess that's why that bug appeared.
Do you mind to add a comment with short description and link to this issue? It seems to be a good idea to collect some knowledge base about possible edge cases.

Added a comment in code. More info about reproduction:
$ uname -a
Linux <redacted> 4.19.23-1-MANJARO #1 SMP PREEMPT Fri Feb 15 21:27:33 UTC 2019 x86_64 GNU/Linux
$ lshw | grep -A6 battery
  *-battery:0
       product: 45N1743
       vendor: SONY
       physical id: 1
       slot: Front
       capacity: 44460mWh
       configuration: voltage=11.4V
  *-battery:1
       product: 45N1127
       vendor: LGC
       physical id: 2
       slot: Rear
       capacity: 23480mWh
       configuration: voltage=11.4V
$ lshw | grep -A4 Motherboard
       description: Motherboard
       product: 20FH001TUS
       vendor: LENOVO
       physical id: 0
       version: SDK0J40705 WIN
$ lshw | grep -A4 Notebook
    description: Notebook
    product: 20FH001TUS (LENOVO_MT_20FH_BU_Think_FM_ThinkPad T560)
    vendor: LENOVO
    version: ThinkPad T560
    serial: R90N6YPA

The battery that starts discharging (and triggers the divsion by zero) is battery:1 fron LGC

Amazing, thank you!
I'll upload fix to the crates.io soon, depending if any other changes would appear today

authors: kerhong svartalf

repo: svartalf/rust-battery


text:
Add passkey authentication project to the templates

🎯 Changes
New SvelteKit template (Lucia, Passkeys, Social Sign In etc)
✅ Checklist

[x] I have given my PR a descriptive title
[x] I have run pnpm run lint locally on my changes

Hello @thobson ,
Can you rebase your branch with main ?
Previously, main had an issue with linting, which also flagged your PR as invalid.
By rebasing you branch with the new main, the lint stage should pass

authors: MacFJA thobson


text:
Vite define constants not applied to library build

Describe the bug
For regular applications, define replaces constants as expected, but for component libraries this is not the case.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-3zfndg
Logs
No response
System Info
System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 10.57 GB / 31.69 GB
  Binaries:
    Node: 18.16.0 - ~\AppData\Local\Programs\NodeJS\node.EXE
    Yarn: 1.22.19 - ~\AppData\Local\Programs\NodeJS\yarn.CMD
    npm: 9.5.1 - ~\AppData\Local\Programs\NodeJS\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (114.0.1823.58)
    Internet Explorer: 11.0.22000.120

Severity
annoyance
Additional Information
No response

svelte-package does not use Vite in any way. It does a per-file preprocessing of Svelte files if needed, resolves aliases defined through kit.alias but that's it. Adding Vite into the build chain could have unintended side effects and would change the way everything's build dramatically. It would also make svelte-package depend on Vite probably, which today is not the case (theoretically you can use it in webpack/rollup setup).

authors: brunnerh dummdidumm

repo: sveltejs/kit


text:
Prerendering cause headers set in server hooks to disappear in production build

Describe the bug
when I set export const prerender = true; in the root layout.ts causes headers set in server hooks to disappear in production (both vercel and local preview) as discussed in #12691
Reproduction
I made a fresh sveltekit project in this repo with:
headers set in hooks.server.ts
// /src/hooks.server.ts
import { sequence } from "@sveltejs/kit/hooks";
import type { Handle } from "@sveltejs/kit";

const handleSecurityHeaders: Handle = async ({ event, resolve }) => {
  const response = await resolve(event);

  response.headers.set("Access-Control-Allow-Origin", "*");
  response.headers.set("X-Frame-Options", "SAMEORIGIN");
  response.headers.set("X-Content-Type-Options", "nosniff");
  response.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
  response.headers.set("Permissions-Policy", "camera=(), microphone=(), geolocation=()");
  response.headers.set(
    "Content-Security-Policy",
    "base-uri 'self'; child-src 'self'; connect-src 'self' ws://localhost:* https://vercel.live; img-src https: 'self' data:; font-src 'self' data:; form-action 'self'; frame-ancestors 'self'; frame-src 'self' https://www.youtube-nocookie.com https://vercel.live; manifest-src 'self'; media-src 'self' https: data:; object-src 'none'; style-src 'self' 'unsafe-inline'; default-src 'self'; script-src https://vercel.live 'unsafe-eval' 'self' 'unsafe-inline'; worker-src 'self';"
  );

  return response;
};

export const handle = sequence(handleSecurityHeaders);

and root layout:
// /src/routes/+layout.ts
export const config = {
	runtime: 'edge'
};

export const prerender = true; //when true, headers will not be added
export const ssr = true;

then deployed in 2 way:

prerender set to True in this deployment with securityheaders.com report

prerender set to False in this deployment with securityheaders.com report

Logs
n/a

System Info
System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
    Memory: 5.54 GB / 15.77 GB
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\.bun\bin\yarn.EXE
    npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.3.0 - ~\.bun\bin\pnpm.EXE
    bun: 1.1.28 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (125.0.2535.79)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @sveltejs/adapter-vercel: ^5.4.4 => 5.4.4
    @sveltejs/kit: ^2.0.0 => 2.5.28
    @sveltejs/vite-plugin-svelte: ^3.0.0 => 3.1.2
    svelte: ^4.2.7 => 4.2.19
    vite: ^5.0.3 => 5.4.7

Severity
serious, but I can work around it
Additional Information
the workaround is to disable prerendering or add headers to vercel.json

Essentially a duplicate of #9408.

authors: Conduitry IslamZaoui


text:
prerendering documentation

I had a hard time prerendering. It turns out I needed to set prerender = true in my $layout.svelte or else nothing would prerender. This wasn't clear to me. At the very least we should make sure to document this

Probably makes more sense to disregard prerender for layout components, the same as we do for maxage. No real reason to have to mark the entire component chain

authors: Rich-Harris benmccann


text:
Dynamic add route

Describe the problem
It would be nice having an alternative way to add routes. Not keen on file system routing, at least not in the fashion it's currently done in, main reason is that each route needs a +page.svelte, so if I have multiple pages open in my IDE, it's kind of confusing and hard to tell which page is which, in some cases I had 3 of those, with some +page.ts and +page.server.ts's, and it becomes quite easy to get lost.
Describe the proposed solution
We could have /src/dynamicRoutes/[meaningfulFileName].ts that exports a function getting app as an argument, and dynamically add routes from there. We could for example create /src/dynamicRoutes/Auth.ts and add all auth related routes from that one file, and have one file for each "set" of routes. Then instead of having 3 non-unique and non-descriptive files open in the IDE, we could be looking at "Auth.ts" which is far more descriptive. I propose Svelte should load all files from /src/dynamicRoutes automatically once the server is started.
app.addRequestHandler(Array, matchPattern: string, { page: import('../somePage.svelte'), actions?: {...}, load?: Load|ServerLoad })
Example:
/src/dynamicRoutes/Auth.ts
`export default function(app: App) {
app.addRequestHandler(['GET'], matchPattern: '/auth/register', {
page: import('../components/RegisterForm.svelte'),
actions?: {
default: async function() {... handle registration form submission...}
},
load: async function() {...do something at load...}
})
app.addRequestHandler(['GET'], matchPattern: '/auth/login', {
page: import('../components/LoginForm.svelte'),
actions?: {
default: async function() {... handle login form submission...}
},
load: async function() {...do something at load...}
})
}
This doesn't need to replace the file system routing, but it could work in addition to it, allowing us to use either or the combination of those.
Alternatives considered
An alternative solution to this problem would be making the Svelte VSC extension somehow highlight/colorize the open file tabs, but I feel it would be better to solve it at it's core.
Importance
would make my life easier
Additional Information
No response

Doesn't the tab in VSC also show the directory name?
About routing, here's a party you might have missed.

It shows the directory name once you open multiple files with the same name. Also, the directory name is in small font and kind of hard to see, and +page.svelte is just taking up the space. I don't see a good reason for not allowing us to bind handlers for routes in a way similar to what I proposed, there are definitely arguments why it makes sense, but I can't think of a solid one against. One could be, what happens if someone binds multiple handlers to same request method/URL, or if someone binds a handler while at the same time that route is defined using the file system method, but both of those could be solved by just using the last one and giving preference to file system routes, while providing a warning that "there are multiple request handlers for [RequestMethod] [URL], only one will be used".
I started using Svelte the other day, so I did miss that discussion.

authors: julijan mustofa-id


text:
docs(rest): adding url search params example

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

Changes
Hi, thanks for the amazing job on this project. I have been using SvelteKit for a while, but wasn't able to find a proper example on how to access params sent using URL params: /foo?a=1&b=2.
This PR adds an example regarding the use of URL search params using endpoints.

@ignatiusmb looking at the Docs/Main branch, I wasn't able to find this change, Maybe something related to a merge or something that ended dropping this? 👀

Weird, I don't remember looking at this PR. There's 0 commits and 0 files changed here though, perhaps something to do with the 'pull' bot force-pushing your fork?

Yes! I'm think the same, btw I will send another PR in order to fix this. 😅


text:
Update supported vite cli flags

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Fixes #8926 - I made an educated guess about what flags should be included or not, let me know what ones I missed/shouldn't have added :pray:

thank you!

authors: Rich-Harris ghostdevv


text:
Add windows conda package build script

As fastfilters already compiles fine on windows, the only thing missing was a bld.bat.

btw, the package is currently in my channel (conda install fastfilters -c chaubold), but will move to ilastik-forge later this week.


text:
How to enable internal geocoder in Builder and for other users

How to enable the internal geocoder API for other accounts as it works for the user 'geocoder'

How to enable the internal geocoder in builder for bother user 'geocoder' and other users.
I did try this - bundle exec rake cartodb:db:configure_geocoder_extension_for_non_org_users[geocoder,true]
I get an error at the end Sequel::Postgres::Database (0.9ms)  SELECT * FROM "users" WHERE ("username" = 'geocoder') LIMIT 1
ERROR geocoder

As indicated the internal geocoder works via the API for the user geocoder
If I run the following: http://cartodb.local/user/geocoder/api/v2/sql?q=SELECT (geocode_postalcode_points(Array['10013','G9H','03782'], Array['USA', 'Canada', 'US'])).*
I do get a response:
{"rows":[{"q":"10013","c":"USA","iso3":"USA","geom":"0101000020E610000090679AEE4D8052C0C4C6BC8E385C4440","success":true},{"q":"G9H","c":"Canada","iso3":"CAN","geom":"0101000020E610000096B20C71AC1B52C0423EE8D9AC2A4740","success":true},{"q":"03782","c":"US","iso3":"USA","geom":"0101000020E6100000AE47E17A140652C0E10B93A982B14540","success":true}],"time":0.038,"fields":{"q":{"type":"string"},"c":{"type":"string"},"iso3":{"type":"string"},"geom":{"type":"geometry"},"success":{"type":"boolean"}},"total_rows":3}

Having the same exact question.

authors: mapninja sindile

repo: sverhoeven/docker-cartodb


text:
v2 plugins not working as intended

with config
const { extendDefaultPlugins } = require('svgo');
module.exports = {
  plugins: extendDefaultPlugins([
    { name: 'removeXMLNS' },
    { name: 'sortAttrs' },
    { name: 'removeDimensions' },
    { name: 'removeXMLNS' },
    { name: 'removeViewBox', active: false },
    { name: 'removeAttrs', params: { attrs: 'fill' },
    { name: 'removeUselessStrokeAndFill' },
    { name: 'addAttributesToSVGElement', params: { attributes: { fill: 'currentColor' }}}
  ])
}

fills are not removed, dimensions are not removed.

it did work in 1.x, i have merely changed the config to adapt to v2

Hi. Could you please provide svg you working with?

Also please check 2.0.2

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.934 21.0214C13.5403 20.9016 13.1123 21.1241 13.0096 21.5349C12.8727 21.98 12.5474 22.3053 12.1023 22.4422C11.76 22.5449 11.4005 22.5107 11.0923 22.3395C10.7842 22.1683 10.5446 21.8944 10.459 21.5521C10.3391 21.1583 9.92829 20.9358 9.53457 21.0385C9.14084 21.1583 8.9183 21.5692 9.02101 21.9629C9.22643 22.6819 9.72287 23.281 10.3734 23.6576C10.8013 23.8802 11.2635 24 11.7257 24C11.9996 24 12.2564 23.9658 12.5303 23.8802C13.4547 23.6063 14.1737 22.8873 14.4475 21.9629C14.5674 21.5521 14.3277 21.1412 13.934 21.0214Z" fill="#2F2F2E"/>
<path d="M21.1922 18.1626C21.0553 17.9914 19.9597 16.4337 19.9597 10.4936C19.9597 6.19686 16.6558 2.67047 12.4618 2.29387V0.75321C12.4618 0.342368 12.1194 0 11.7086 0C11.2978 0 10.9554 0.342368 10.9554 0.75321V2.29387C6.7785 2.68759 3.49177 6.21398 3.49177 10.4936C3.49177 16.3652 2.15653 18.2653 2.15653 18.2653C1.98535 18.4879 1.95111 18.796 2.07094 19.0528C2.19077 19.3096 2.46466 19.4807 2.73856 19.4807H20.7129C21.0553 19.4807 21.3805 19.2924 21.4661 18.9672C21.5517 18.6591 21.4661 18.3509 21.1922 18.1626ZM3.93685 17.9914C4.41616 16.7589 4.98107 14.4479 4.98107 10.4936C4.98107 6.77889 8.01103 3.74893 11.7257 3.74893C15.4404 3.74893 18.4704 6.77889 18.4704 10.4936C18.4704 14.5335 18.9668 16.776 19.429 17.9914H3.93685Z" fill="#2F2F2E"/>
</svg>

I will try out 2.0.2

ok, this works, had to change my config to this:
const { extendDefaultPlugins } = require('svgo');
module.exports = {
  plugins: extendDefaultPlugins([
    { name: 'removeXMLNS' },
    { name: 'sortAttrs' },
    { name: 'removeDimensions' },
    { name: 'removeXMLNS' },
    { name: 'removeViewBox', active: false },
    { name: 'removeAttrs', params: { attrs: '(fill|fill-rule|clip-rule)' } },
    { name: 'removeUselessStrokeAndFill' },
    { name: 'addAttributesToSVGElement', params: { attributes: [{ fill: 'currentColor' }] } }, <<< change here
  ]),
};

I know the other options where "Active: false" are not set is not needed, but this is for posterity.

Good! I guess we need to validate plugins options as well. Thanks for reporting.

authors: TrySound vincentbriglia

repo: svg/svgo


text:
Any workaround for Custom application class setup for Swagger with a Jersey ResourceConfig

I am following the upgrade guide for 1.3.12 to 1.5.6 along with the Jersey 2.X Project Setup guide. I'm running into a problem with the 'Custom Application' subclass, which provides the sample code below:
public class SampleApplication extends Application {
    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> resources = new HashSet();

        //resources.add(FirstResource.class);
        //resources.add(SecondResource.class);
        //...

        resources.add(io.swagger.jaxrs.listing.ApiListingResource.class);
        resources.add(io.swagger.jaxrs.listing.SwaggerSerializers.class);

        return resources;
    }
}

Our project deviates from the example you provide because it extends a Jersey ResourceConfig class, rather than Application class directly. The problem is that the ResourceConfig class itself overrides the getClasses() method and declares it final.
Are you aware of any way to work around this restriction, either by adding the necessary resources to some other part of the jersey application or through some other means of coaxing swagger? Adding them via the ResourceConfig.register() helper method does make the swagger.json file available at the usual path, but does not populate it with the documentation for the endpoint classes that have been annotated with @Api and are also registered() (and used to work before upgrading). I don't want to go down the route of the web.xml servlet or filter.
The generated swagger.json just contains the extra stuff I defined in the new BeanConfig,  like this:
// http://localhost:8080/v1.0/swagger.json

{
  "swagger": "2.0",
  "info": {
    "description": "Description of my App.",
    "version": "1.0",
    "title": "MyApp"
  },
  "basePath": "/v1.0"
}

Thanks for your help.

As long as you add the resources, it's fine. Using ResourceConfig.register() is a fine solution. You're not seeing it being populated, because you haven't completed the final step in guide - https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5#3-configure-and-initialize-swagger.

The final step you're referring to, is that the getClasses() that I mention? Or the BeanConfig bits? For the BeanConfig I have the following:
    @PostConstruct
    /**
     * Initializes Swagger Configuration
     */
    public void initializeSwaggerConfiguration() {
        final ReflectiveJaxrsScanner scanner = new ReflectiveJaxrsScanner();
        scanner.setResourcePackage("com.rmn.citadel.api");
        ScannerFactory.setScanner(scanner);
        BeanConfig config = new BeanConfig();
        config.setTitle("MyApp");
        config.setDescription("Description of my App");
        config.setVersion("1.0");
        config.setBasePath("/v1.0");
        config.setScan(true);
    }

The only thing I was missing from the example was the setResourcePackage – I'll try that tomorrow. The host and schema bits are option right? I remember reading that somewhere...

host and schema are optional, yeah.
Without setResroucePackage, you'll get an empty output yeah, just as you can see ;)

authors: pmacklin webron

repo: swagger-api/swagger-core


text:
Swagger does not generate documentation when implementing an  interface mehtod with a List as parameter.

hi!
swagger does not generate any endpoint documentation when the method implemented has a list a parameter.
Given the interface
@Path("resources") @Tag(name = "resource") public interface Ticket3253AnnotatedInterface<T extends Number> {   @POST   Response postResource(List<T> payload); }
and the implementation
public class Ticket3253ConcreteImplementation implements Ticket3253AnnotatedInterface<Long> {   @Override   public Response postResource(List<Long> payload) {     return null;   } }
it does not generate any path for this method.
Reader reader = new Reader(new OpenAPI()); OpenAPI openAPI = reader.read(Ticket3253ConcreteImplementation.class);  System.out.println(openAPI);

class OpenAPI {
openapi: 3.0.1
info: null
externalDocs: null
servers: null
security: null
tags: null
paths: null
components: null
}

I should expect to get the post method listed.

Added a PR with a failing test in order to show the bug.
https://github.com/swagger-api/swagger-core/pull/3254

Bug fix uploaded.


text:
Could io.swagger.parser.v3:swagger-parser-v2-converter:2.0.27-SNAPSHOT drop off redundant dependencies to loose weight?

Hi, I am a user of project io.swagger.parser.v3:swagger-parser-v2-converter:2.0.27-SNAPSHOT. I found that its pom file introduced 53 dependencies. However, among them, 7 libraries (13%) have not been used by your project (the redundant dependencies are listed below). Reduce these useless dependencies can help prevent conflicts between library versions. MeanWhile, it can minimize the total added size to projects. It can also help enable advanced scenarios for this project.
This PR helps io.swagger.parser.v3:swagger-parser-v2-converter:2.0.27-SNAPSHOT lose weight :) I have tested the revised configuration in my local environment. It is safe to remove the unused libraries.
Best regards

Thanks!

authors: Celebrate-future frantuma

repo: swagger-api/swagger-parser


text:
Does not support go v1.20 when using --parseDependency

Describe the bug
parseDependency does not work with golang v1.20 and 1.19.
It's ok when I remvoe --parseDependency, and it's ok using golang v1.18.
To Reproduce
swag init -g cmd/cmd.go  --o docs/ --ot json,yaml --parseDependency

Expected behavior
Screenshots

undeclared name
Your swag version
1.8.10
Your go version
1.20

I think there's something else going on, I have a similar environment without any issues.
swag  -v
swag version v1.8.10
go version
go version go1.20 darwin/amd64

swag init --parseDependency  -o ./api --ot json,yaml  -g main.go
2023/03/16 22:51:59 Generate swagger docs....
2023/03/16 22:51:59 Generate general API Info, search dir:./
2023/03/16 22:52:00 warning: failed to evaluate const locb at /Users/samir/go/1.20.0/pkg/mod/github.com/pelletier/go-toml/v2@v2.0.7/internal/characters/utf8.go:183:2, strconv.ParseUint: parsing "b10000000": invalid syntax
2023/03/16 22:52:00 warning: failed to evaluate const hicb at /Users/samir/go/1.20.0/pkg/mod/github.com/pelletier/go-toml/v2@v2.0.7/internal/characters/utf8.go:184:2, strconv.ParseUint: parsing "b10111111": invalid syntax
2023/03/16 22:52:00 Generating models.RequestResponse
2023/03/16 22:52:00 Generating models.CaptureSessionRequest
2023/03/16 22:52:00 Generating models.CaptureMetaData
2023/03/16 22:52:00 Generating models.CaptureRange
2023/03/16 22:52:00 Generating models.UpdateCaptureSessionRequest
2023/03/16 22:52:00 create swagger.json at api/swagger.json
2023/03/16 22:52:00 create swagger.yaml at api/swagger.yaml

i use golang1.19,swag 1.18.10 --parseDependency error

authors: safaci2000 seanlook tuoeg

repo: swaggo/swag


text:
show username instead of address

not sure yet if this happens consistently or only if some data doesnt come through...

@vojtechsimetka we discussed this, thinking it was an occasional error, but it feels to me that this happens at all times when a provider is selected, the address is shown instead of the username, can you check?

repo: swarmcity/boardwalk-ts


text:
Upgrade ext-amqp on CI

The php: nightly jobs were failing to compile ext-amqp. This is an attempt at fixing it (it should at least allow having a working PHP 7.3 job when we add it, if not nightly)

OK, php: nightly still fails to compile, because nightly is 8.0.0-dev. But this PR allowed me to add testing on PHP 7.3

We can even remove php nightly support for now, it doesn't make sense to have it WDYT?

yeah, makes sense

@odolbeau removed

:+1:

authors: odolbeau stof

repo: swarrot/swarrot


text:
SIGSEGV in wlr_subsurface_create

I use sway. Launched mpv and had sway crash with the stack trace like this:
#0  0x00007fc40345f1c3 in wl_list_insert () at /usr/lib/libwayland-server.so.0
#1  0x00007fc4034167f9 in wlr_signal_emit_safe (signal=signal@entry=0x5645d6cfc5c0, data=data@entry=0x5645d6d6b620) at ../util/signal.c:19
#2  0x00007fc403412909 in wlr_subsurface_create (surface=0x5645d6d80ff0, parent=0x5645d6cfc310, version=1, id=178, resource_list=0x5645d68df018) at ../types/wlr_surface.c:980
#3  0x00007fc4027e86d0 in ffi_call_unix64 () at /usr/lib/libffi.so.6
#4  0x00007fc4027e80a0 in ffi_call () at /usr/lib/libffi.so.6
#5  0x00007fc40345e82f in  () at /usr/lib/libwayland-server.so.0
#6  0x00007fc40345b193 in  () at /usr/lib/libwayland-server.so.0
#7  0x00007fc40345c7f2 in wl_event_loop_dispatch () at /usr/lib/libwayland-server.so.0
#8  0x00007fc40345b39c in wl_display_run () at /usr/lib/libwayland-server.so.0
#9  0x00005645d6363612 in main (argc=1, argv=0x7ffd0465fa78) at ../sway/sway/main.c:402

This failed on the 2nd wl_list_insert call within wlr_signal_emit_safe:
Dump of assembler code for function wlr_signal_emit_safe:
   0x00007fc4034167c0 <+0>:	push   %r14
   0x00007fc4034167c2 <+2>:	lea    -0x19(%rip),%r14        # 0x7fc4034167b0 <handle_noop>
   0x00007fc4034167c9 <+9>:	push   %r13
   0x00007fc4034167cb <+11>:	mov    %rsi,%r13
   0x00007fc4034167ce <+14>:	push   %r12
   0x00007fc4034167d0 <+16>:	push   %rbp
   0x00007fc4034167d1 <+17>:	push   %rbx
   0x00007fc4034167d2 <+18>:	mov    %rdi,%rbx
   0x00007fc4034167d5 <+21>:	sub    $0x40,%rsp
   0x00007fc4034167d9 <+25>:	mov    %rsp,%rbp
   0x00007fc4034167dc <+28>:	lea    0x20(%rsp),%r12
   0x00007fc4034167e1 <+33>:	mov    %rbp,%rsi
   0x00007fc4034167e4 <+36>:	callq  0x7fc4033c5f50 <wl_list_insert@plt>
   0x00007fc4034167e9 <+41>:	mov    (%rbx),%rdi
   0x00007fc4034167ec <+44>:	mov    %r12,%rsi
   0x00007fc4034167ef <+47>:	mov    %r14,0x10(%rsp)
   0x00007fc4034167f4 <+52>:	callq  0x7fc4033c5f50 <wl_list_insert@plt>
=> 0x00007fc4034167f9 <+57>:	mov    0x8(%rsp),%rbx
   0x00007fc4034167fe <+62>:	mov    %r14,0x30(%rsp)
   0x00007fc403416803 <+67>:	cmp    %r12,%rbx
...

with locals like these:
cursor = {link = {prev = 0x5645d6cfc5c0, next = 0x5645d6d8ff10}, notify = 0x7fc4034167b0 <handle_noop>}
end = {link = {prev = 0x5645d6d8ff10, next = 0x101000000000002}, notify = 0x5645d6909740}

The fault address is the end.link.next = 0x101000000000002.
Reporting here instead of against sway as there appear to be no sway-related frames in the faulting stacktrace.
wlroots built from git on october 10th.

Can you recompile Sway with Address Sanitizer and check the backtrace it gives? Sometimes memory corruption can give such backtraces which don't point to the real problem.

This is a super rare issue; I doubt I’ll be able to reproduce it again.

repo: swaywm/wlroots


text:
Make rls work.

rust-analysis chokes with Option<Box<Expr>> style fields.
Rls only shows a warning on the crate with that fields, but ICEs on
dependent crates.
This can be workarounded by using Option<(Box<Expr>)>.
Also, using multiple glob imports is bad for rls.
So this commit deglobs them.

bors r+

repo: swc-project/swc


text:
Dry argparse helper

prevent writing the same 10 lines of code for every script...
Usage:

@ninpnin You already approved, but can you look at edits to the utils.py file. OK?

repo: swerik-project/pyriksdagen


text:
Memory Usage Improvements

Long story short, I am developing a WPF app using this library as a use-and-throw-away spectrogram generator. After noticing an unreasonably high memory usage,
1. Wrong sampleCount expression in ReadWAV (readme.md)
int sampleCount = (int) (afr.Length / afr.WaveFormat.BitsPerSample / 8);

I guess this sampleCount is an estimation of the final size of the List<double> audio. However, 253296 is 64 times smaller than 16210944. So the most reasonable explanation is /8 is a typo of *8.

This "typo" causes the birth of garbage twice as large as the audio itself.
2. An unnecessary type requirement in signature of sg.Add()

List<double>.AddRange accepts an IEnumerable<double> as the parameter. However, sg.Add() asks for an explicit double[], which means that I can't directly use the List<double> but have to do a .ToArray() first, which obvious will waste the memory as large as the audio itself.
3. The loss of possibility to DIRECTLY use the reference of an external List<double>
The way you design this generator is for continuous or even real-time spectro drawing. In this case, make List<double> newAudio read-only, init as an empty one and .AddRange() later is the best solution. However, in my case, I need to use SG to generate the spectro for only once. Which means that as the Bitmap is generated, both the audio in ReadWAV and the newAudio in SG will immediately become garbage.
The Solution I come up with is this: An addition Optional Argument to init newAudio. It keeps the forward compatibility, but also enable me to prevent meaningless object creation (and later Grow into the same size as audio, which is the real problem).

Hopefully this PR be merged and a new version of Nuget package be released. May you have a wonderful day!
P.S. I tried to add a breakpoint directly in the "Definition", but this is shown.

Could you tell me the right way to do this?

I tried but don't know where to add explanation for the additional optional argument in readme.md (supposed to be something like shortcuts?

@swharden 😅

@swharden pls merge this...

@swharden pls merge this...

I've been focusing the last few days on https://github.com/ScottPlot/ScottPlot/issues and https://github.com/ScottPlot/ScottPlot/pulls but I'll try to get to this by the end of the day 👍

Hi @shirok1, thank you for your PR! I reviewed its content and will begin working on it now.
The original comment/PR conflated at least 3 distinct issues. I opened 3 issues to track progress toward each and edited your original comment to link to those issues. I hope you find this acceptable 👍
I'll refactor this PR to address just the IEnumerable suggestion (#35) and merge it in, then work on the other two issues separately.

Regarding topic 1, I added new tests to verify that ReadWAV is functioning as expected. I used Python's scipy.io.wavfile and GoldWave to confirm the lengths of WAV files in the data folder.
https://github.com/swharden/Spectrogram/blob/448282f716083072ecb3b5b6a1fdc853716774a8/src/Spectrogram.Tests/AudioFileTests.cs#L13-L25

This "typo" causes the birth of garbage twice as large as the audio itself

I think the misunderstanding is that if the data is two channels, it will return an array with data from both channels in the array. Perhaps it's simply twice as large as you expected because of this?

Thank you for your work on manually splitting it into 3 issues! Therefor my commits will be much clarified.

This "typo" causes the birth of garbage twice as large as the audio itself

I think the misunderstanding is that if the data is two channels, it will return an array with data from both channels in the array. Perhaps it's simply twice as large as you expected because of this?

The garbage is generated when the array is Growing to a larger capacity, a new internal array will be created and the old one become garbage. The default action of List is to double its capacity. So, 1/64 + 1/32 + ... +1/4 + 1/2 + 1 ≈ 2... May be the final internal List is also counted as 'allocated by Grow'. Anyway, thanks a lot again.

repo: swharden/Spectrogram


text:
Increase swift-crypto versions range

Is your feature request related to a problem? Please describe.
swift-crypto released 3.0 in September, and now I can't updated to latest, because of dependency on APNSwift
Describe the solution you'd like
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0"..<"4.0.0"),

Good call, will do so soon.

authors: NikolayJuly kylebrowning

repo: swift-server-community/APNSwift


text:
toolchain: adjust the path for XCTest

XCTest parallel installs the XCTest runtime, and we should dynamically
select the last path component.  The following mapping applies:
i686: bin32
x86_64: bin64
armv7: bin32a
aarch64: bin64a

Is this a layout change for swift 5.7? Is the plan to recognise what platform we are running on and use the correct xctest.dll?

Yes, this is part of the 5.7 release.  The missing piece is exactly what you inferred: recognizing the architecture and mapping the path.  This is currently broken without this change, but it is also technically broken with this change if you want a different architecture.  So, maybe this should be okay to merge, but I dislike it because it's not checking the architecture.

We should support old toolchains as well, so I think the better way is to judge arch-specific path first, and if nothing found, fallback to bin.

@stevapple agreed, I just don't know how to do the check - I guess we could use the path APIs to check if the path exists.  That needs to be done before this is ready.

You can get current arch with process.arch: https://nodejs.org/api/process.html#processarch
In most cases this would be the arch to use. In the future, we will have target triple exposed from Toolchain.

I think that we want to use the target triple, not process.arch: I could be building a 32-bit binary with a 64-bit VSCode, which would not work.

I would argue to disable debugging and testing support for cross-compilation to another target by default. Most OSes don’t support running an executable of different arch or platform, and even on Windows this is limited (eg. we can run x64 with arm64 but not the revert).
Doing this on Windows also means we should provide separated runtimes for the host (used by the toolchain) and the target (used by the product). This adds up to complexity to some extent and we shouldn’t rush to support it.

I disagree entirely with you on this.  Windows and macOS are closer to each other than to Linux.
We can run x64, x86, and ARM64 on ARM64, but not the inverse, which also holds true for macOS AIUI.  XCTest is part of the SDK for precisely this reason.  There is no major complexity being added here other than the need to access the target triple.

Some points:

XCTest is part of the SDK for precisely this reason.

On macOS, XCTest is a part of the toolchain instead of the SDK.

There is no major complexity being added here other than the need to access the target triple.

We’ll be caching the target triple, this is a minimal work to access it. I think we should also hard-code the target arch in launch.json.
The major difficulty on Windows should be supporting different runtimes for the toolchain and the target. This needs a new configuration and should requires most effort in supporting cross debugging.

We’ll be caching the target triple, this is a minimal work to access it

This is already cached, WorkspaceContext.toolchain.defaultTarget we just need to make it public, which I'll do now

We’ll be caching the target triple, this is a minimal work to access it

This is already cached, WorkspaceContext.toolchain.defaultTarget we just need to make it public, which I'll do now

Actually this is unnecessary. The point that xctest path is calculated is during the construction of the toolchain, so the triple can just be passed into getXCTestPath

authors: adam-fowler compnerd stevapple

repo: swift-server/vscode-swift


text:
[6.0.2] Add a thread-safe implementation of Process.currentDirectoryURL

posix_spawn_file_actions_addchdir_np is the official way to set the working directory of a spawned process and is supported on both macOS and glibc (Linux, etc.). This makes Process.currentDirectoryURL thread-safe, as the current approach will result in the working directory being nondeterministically assigned when spawning processes across multiple threads, using different working directories.

This already landed in main via #4981 (and amendment in #5090) and it's pretty disruptive for us so I'd like to get it into 6.0.2 if possible.

@swift-ci please test linux

@swift-ci please test windows

Also opened #5096 for release/6.0 to ensure this makes it into 6.0.3+

repo: swiftlang/swift-corelibs-foundation


text:
Skip ExtractAppIntentsMetadata when building with Xcode

There's no need to run this phase, skip it.

@swift-ci please test

@swift-ci please smoke test linux

@swift-ci please smoke test macos

authors: bnbarham dmbryson

repo: swiftlang/swift-llbuild


text:
Consolidate get(Opaque|Opened)TypeArchetypeProperties into archetypeProperties()

When I introduced archetypeProperties, I missed the other two functions that do similar things. Consolidate them all under a new ArchetypeType::archetypeProperties().

@swift-ci please smoke test

@swift-ci please smoke test Linux

repo: swiftlang/swift


text:
Add GeometryReader implementation

This is just an empty API at the moment. I hope it can be implemented purely in the deferredBody of GeometryReader with the ResizeObserver API without requiring any tweaks in the Renderer protocol or the reconciler.
Seems like I need the domRef modifier that writes JSObjectRef to a given binding working first, as discussed in #231.

I can work on implementing the features outlined in that issue

I started some preliminary work on that, or do you have some code already?

No, I hadn’t started yet.

No worries, I'll try to get some draft of that today.

This is working for me now in isolated example code, but layout bugs exposed by our demo code prevent this from being added to the demo. @carson-katri @j-f1 lmk if you think it would be fine merging this as is and adding a GeometryReader demo in a separate PR (smaller PRs is what I prefer personally).

IMO if it's a small bug or something that prevents building it shouldn't be merged in general. But if it's more complex or harder-to-solve bug, it's ok to merge then follow up with an issue or PR.

What's the layout bug preventing a demo?

If you launch the demo in this branch in browsers and navigate to the GeometryReader item you'll see that the size doesn't change if you change the size of the viewport (I resized the browser window). It does change in the native demo though.
As far as I understand, the destination view of NavigationView doesn't fill all available space currently, maybe it's fixed with the _FlexFrameLayout changes made in #241?

I got that to work after I added this CSS to GeometryReader:
display: flex;
align-items: center;
justify-content: center;

…weirdly, the text isn’t exactly centered.

These styles worked only in Safari for me and only for height, width always stays 300. I've pushed these changes for the lack of a better option, will have a look later if #241 could resolve it.

authors: MaxDesiatov carson-katri j-f1

repo: swiftwasm/Tokamak


text:
enable optional copying of js & ts files?

Firstly great job tackling this very specific and annoying shortcoming of typescript's build script 🙌🏾 .
Would it be possible to optionally remove this line as it fits a usecase* I have? https://github.com/swimauger/tsc-hooks/blob/cee978772d8fd5d30f51ca94a7b6b1c042b888aa/hooks/copy-files.js#L13
(There are some nested ts projects that I would like to copy without compiling as part of my parent level build).
I tried forking this project to just comment it out but installing from a github repo seems to break the post-install injection step because the module is cached in a different folder from where the tsc binary is installed.
Any tips/suggestion for the easiest/quickest way around this hurdle are much appreciated!

Thanks @jonnyparris,
Interesting use case you have there.
If it were just JavaScript files to copy over, you can normally just use allowJS in compiler options; however, in your case it sounds like TypeScript, so I agree this can definitely be a feature.
I will add an allowTS option like so:
{
  "compilerOptions": {
    "outDir": "dist",
    "allowJS": true, /* <-- ALREADY EXISTS */
    "allowTS": true /* <-- NEW OPTION */
  },
  "include": [ "src/**/*" ],
  "exclude": [ "src/**/*.txt" ],
  "hooks": [ "copy-files" ]
}

Wow - thanks for the rapid turnaround!
However, I'm getting errors about allowTS as an invalid compiler option when trying to use it.
Perhaps we could nest the flag under a different key instead - e.g. "hookOptions": { "allowTS": true }?

authors: jonnyparris swimauger

repo: swimauger/tsc-hooks


text:
scroll to page

ENAHNCEMENT: I use virtual scroll, is there any solution to scroll to certain page ? goToPage(p) or go to  a certain offset of scroll ?

The pager should do this, but a new api for it would be nice :)

@amcdnl yes but Can I do it programatically ? how can I go to 5 page from class?

Look at this line: https://github.com/swimlane/ngx-datatable/blob/master/src/components/datatable.component.ts#L815

This can be done currently by grabbing ahold of the DatatableComponent and manually setting the offset.
Take a look at an example here
See discussion on the topic here

authors: amcdnl deeg istiti

repo: swimlane/ngx-datatable


text:
Namespace ''@swimlane/dragula'' has no exported member 'DragulaOptions'

Getting this issue - using the latest Angular version (6.0.2)
ERROR in node_modules/@swimlane/ngx-dnd/release/services/drake-store.service.d.ts(21,35): error TS2694: Namespace ''@swimlane/dragula'' has no exported member 'DragulaOptions'

Did you mean to open this in ngx-dnd? ngx-ui does not have ngx-dnd as a dependency.

authors: bostondevin marjan-georgiev

repo: swimlane/ngx-ui


text:
Defaults for Clariden

Default config that allows for easy downloading on clariden with the slurm distributor and with the desired video format

Right now, the slurm distributor allocates n_nodes entire nodes (see code), so I set the number of cores to 128 in order not to leave any idle. Allocating entire nodes might be wasteful though, we should check if there's a better option

Great, thanks! Would you also be able to add the python script (maybe in dataset_examples?) you use to kick off the slurm job so we have that consistent too? Perhaps with some argparsing for the name/location of the dataset file, if it's not too much work and you can commit it today :)

Yeah that works perfect, thanks!

Updated the default Clariden config. The cut detection lead to significant slowdowns (>2x at 360p, >10x at 720p). Also increased the number of threads per process to 16 instead of 4 which performed marginally better.
Now it's downloading the first 1k HD-vila videos in 720p (80GB) in 2 mins. So all of HD-VILA would take ~100h to download (and ~240TB).
If we need the cut detection we can run it afterwards on the unified dataset and look into speeding up, potentially via GPU


text:
Add svcGetSystemInfo and update json to match libnx 3.1.0 svc.h

As in title. Only what I don't know is how to rewrite EntryType_SyscallAvailableHint in main.c to hint svcGetSystemInfo
Whatever I'm trying, it never matches json of hbloader.

EntryType_SyscallAvailableHint ... {0xffffffffffffffff, 0x9fc9fff0007ffff

repo: switchbrew/nx-hbloader


text:
Implement GPU monitor diagnostic node

This is a simple diagnostic node that checks the output of nvidia-smi (which obviously assumes an NVidia graphics card) and reports memory and power usage for the GPU(s) on the system to the diagnostics system.
It has no configuration, and it always reports every GPU in the system.

The contents of this package will be moved to a more-appropriate internal package for now, so I'm withdrawing the merge request.


text:
this.$store.state.content is undefined

Hello,
Your plugin look great and I wanted to give it a try.
I tried the given exemple but when I load the panel page I'm getting this error :
this.$store.state.content is undefined
And annotator is not working.
Do you know how to fix it ?
Thanks !

Update to latest Kirby version solved the problem.
Sorry for the inconvenience and thank you for this great plugin.

repo: sylvainjule/kirby-annotator


text:
🛑 Bricktically is down

In cc43b08, Bricktically (https://bricktically.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bricktically is back up in a0caa33 after 2 hours, 32 minutes.

repo: symapex/upsite


text:
🛑 Blooming Pots Landscaping is down

In 8080469, Blooming Pots Landscaping (https://bloomingpotslandscaping.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blooming Pots Landscaping is back up in 3c0604d after 10 minutes.


text:
🛑 Blooming Pots Landscaping is down

In 2bd52e8, Blooming Pots Landscaping (https://bloomingpotslandscaping.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blooming Pots Landscaping is back up in c932293 after 25 minutes.


text:
🛑 Jacobs Floors is down

In 97cc049, Jacobs Floors (https://jacobsfloorstx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jacobs Floors is back up in e61f18b after 44 minutes.


text:
🛑 Prism Carpet Cleaning is down

In 610ff5e, Prism Carpet Cleaning (https://prismcarpetcleaningtx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Prism Carpet Cleaning is back up in cb19b37 after 43 minutes.


text:
🛑 GMB Power is down

In e8183e7, GMB Power (https://gmbpower.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GMB Power is back up in 01e9b20 after 1 hour, 15 minutes.


text:
🛑 My Drywall Guy is down

In 300c7e6, 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 9238795 after 2 hours, 24 minutes.


text:
🛑 Jacobs Floors is down

In 5e05420, Jacobs Floors (https://jacobsfloorstx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jacobs Floors is back up in e74617c after 20 minutes.


text:
🛑 Cedar Built Floors is down

In 772498e, Cedar Built Floors (https://cedarbuiltfloors.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cedar Built Floors is back up in 920b010 after 37 minutes.


text:
🛑 Prism Carpet Cleaning is down

In 98c9720, Prism Carpet Cleaning (https://prismcarpetcleaningtx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Prism Carpet Cleaning is back up in ae15bf9 after 20 minutes.


text:
🛑 Marble Wood is down

In 8d7a7a1, Marble Wood (https://marblewoodca.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Marble Wood is back up in c539c53 after 30 minutes.


text:
🛑 Fortres Doors Oakland is down

In 047ab06, Fortres Doors Oakland (https://fortressdoorsoakland.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fortres Doors Oakland is back up in 74770a8.


text:
🛑 Fresh Auto is down

In 9c44758, Fresh Auto (https://fresh-auto.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fresh Auto is back up in dc8a8f9 after 16 minutes.


text:
🛑 Clean Kind is down

In 7735774, Clean Kind (https://cleankindphx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Clean Kind is back up in 7b68969 after 10 minutes.


text:
🛑 Lawn Workx is down

In 7c6acae, Lawn Workx (https://lawnworkx.com/) was down:

HTTP code: 500
Response time: 309 ms

Resolved: Lawn Workx is back up in 3cd1328.


text:
🛑 Giveme Green is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Giveme Green is back up in 91adc33 after 1 hour, 55 minutes.


text:
🛑 Concrete Connected is down

In 22e0225, Concrete Connected (https://concrete-connected.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Concrete Connected is back up in 4795429 after 19 minutes.


text:
🛑 Giveme Green is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Giveme Green is back up in 800b613 after 48 minutes.


text:
🛑 Earth Works Lawn Cares is down

In d8b9f49, Earth Works Lawn Cares (https://earthworkslawncares.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Earth Works Lawn Cares is back up in 051eff7 after 36 minutes.


text:
Refer to mainnet as default

Docs only talked about testnet for a long time. Docs written after launch started talking about mainnet too, and now we have a mix.
All pages should be reviewed to make sure mainnet is referred too by default, and notes about testnet added when required (different URLs, or mechanisms, for example).
Things to pay attention to:

NGL node URLs
Symbol Explorer URL
References to faucet (which is unavailable in mainnet)

How about the opposite (refer to testnet by default)?
One of the primary audiences for these docs is devs willing to integrate Symbol. In software development, devs usually test their solution locally and/or in pre before releasing it in prod (in this case, mainet).
Unlike with other systems, mistakes in blockchain can be costly, and it's hardly ever possible to go back to a previous state.  For instance, imagine a newcomer buying XYM, playing with code examples, and announcing an unfortunate transaction with one more 0.

Hmmm... definitely something to think about. I think I agree with you.

repo: symbol/symbol-docs


text:
Support warnings from plugins

See symdiff/symdiff-jade#5

Fixed with 0.0.6

repo: symdiff/grunt-symdiff


text:
Added feature to overwrite JS/CSS of Bundles in app/Resources (like Twig-Templates overwrite mechanism)

added feature to allow the overwrite of  bundle's JS/CSS-Files directly (by Filename) or for whole directories (/css/*)
added feature (addLoadPath) for configuring SASS' loadPath to look for files (partials) which are included by @import: you can tell /usr/bin/sass where to look for these partials by config.
wrote unit-tests for that
did something with the mode of most directories and files. Hopefullly I fixed it correctly. If not: Please tell me, the correct mode. I will reset it then.

Updated pull request and changed files as suggested.

This is a big patch. Do I understand correctly that you want to be able to replace partials called from inside a third party SASS file?

Hi Kris,
yes. That is right. We have exactly that use case in our environment.
The use case is:
A central design department creates partials and sass-css-files for a
white-label-page and in several local design-departments the
"designers" should be enabled to just modify these partials on the
first layer if needed.
The patch to the filter is placed in the bundle because I didn't want
to have a dependency from the bundle to ascetic for now, because we
are currently using my fork in production and would like to switch if
it is in the release.
Christophe already suggested to bring it to assetic which would be really easy.
If you tell me were I can document the feature, I won't hesitate to
start documentation.
Regards.
Mike
2011/11/22 Kris Wallsmith
reply@reply.github.com:

This is a big patch. Do I understand correctly that you want to be able to replace partials called from inside a third party SASS file?

Reply to this email directly or view it on GitHub:
https://github.com/symfony/AsseticBundle/pull/40#issuecomment-2835275

Something new about this feature ? :-)
Thanks.

authors: anthonyherve kriswallsmith mikelohmann

repo: symfony/AsseticBundle


text:
Added polyfill-php71 in the replace section

As 4.0 depends on PHP 7.1, I propose to add polyfill-php71 in the composer.json replace section.
/cc @nicolas-grekas

Not sure it's needed, as we don't require the polyfill in SF.
But it could be if other packages require it.

In fact, for this reason, what about removing entirely these "replace" on 4.0?

I let you decide :)

authors: fabpot nicolas-grekas

repo: symfony/skeleton


text:
Search Doesn't Work on Web App

Web App
v4.1.14
System Details

Operating System: Windows 10
Web Browser name and version: Brave Version 1.16.76 Chromium: 86.0.4240.198 (Official Build) (64-bit)

Issue information
To Reproduce
Steps to reproduce the behavior:

Type in search
Click item in drop down
Nothing happens

Describe your bug/issue
Clicking on items in the search menu closes the menu, it should navigate to that item.

Thanks for reporting the issue. I can confirm that I am able to replicate the issue as well. Looking into the cause.

Looks like the issue was introducted with Vuetify v2.3.17, most likely due to https://github.com/vuetifyjs/vuetify/pull/12566

Looks like there is an issue tracking this in vuetify: https://github.com/vuetifyjs/vuetify/issues/12586
Going to downgrade and block vuetify upgrades until that is fixed

authors: Cimplex ttshivers

repo: synclounge/synclounge


text:
fix: 🐛 Open side-nav in fixed mode shows white strip on the right side

Checklist (for the issue creator)

[x] I have verified the bug exists in the latest version of @synergy-design-system/components (e.g. via pnpm install @synergy-design-system/components).
[x] I can provide a simple, reproducible example of the issue (e.g. via code-sandbox or sample code, ...).
[x] I would be willing to provide a PR for this issue.

Version
The bug occurred with the following version of the component library: 2.4.2
Component
The issue arises when using the following component(s): syn-side-nav, syn-dialog, syn-drawer
Environment
The issue occurred with the following operating system(s): macos
The issue occurred in the following browser(s): all except safari!
Description
When using the syn-side-nav not as rail and open it, a white strip is shown on the right side.
See this picture:

The same happens if using the syn-drawer with another placement than "end":

and with the syn-dialog:

As a user I would assume, that there is no white strip on the right side.
This is a problem, which also Shoelace has and which appears in all browsers except Safari.
The problem is the syn-scroll-lock class which uses the scrollbar-gutter: stable css property, which leads to a spacing on the right. This spacing is always shown, if the drawer, side-nav or dialog is open..
The problem could be fixed by instead of using the scrollbar-gutter css property, the "Safari Fix" is used everywhere.
Acceptance criteria

[ ] All DoD items successfully completed

An issue at the shoelace repo was done: https://github.com/shoelace-style/shoelace/issues/2119

this issue will be fixed if updating shoelace to the newest version 2.15.1


text:
[Bug]: Electrum lost connection and reconnection toast messages can display when network slows or on app resume

Describe the bug
When the network slows or dips out, or even on re-opening the minimised app with stable network, the "Reconnecting to Electrum" toast message is displayed shortly followed by a reconnection toast message. It is of no use to the user if there is a temporary disconnect from Electrum, only if the issue persists. This toast message should be reserved for when the connection is truely broken, i.e. after x attempts and/or over some time period.
If I minimise the app and leave it a while (10+ mins), often on re-opening the app (on resume) I see the "Reconnecting to Electrum" toast message. Sometimes it will immediately follow with the the reconnection toast message and other times it does not immediately automatically reconnect. Regardless of the temporary connection status during the app restore process, the user does not need to know unless it is a persistent problem. We should avoid displaying toast messages unless the user has performed an action that requires immediate feedback.
Reproduce
This can be reproduced in an Andriod emulator environment by throttling the network down to a slow (e.g. hscsd/hsdpa) with poor signal. Toggling between slower and faster to simulate poor cell network, or even a public wifi network that is sharing resources between many devices, can quickly cause this toast to occur.
This is near impossible to reliably reproduce on app re-open. I suspect it is timing related (e.g. the app is minimised paused for some period and reopened at a time when some ping/status request is made to Electrum but the connection is temporarily not active)

Have Bitkit running connected to network and Electrum server
Minimise the app
Wait for some time. I've usually seen it when app have been minimised for 10+ minutes
Reopen the app (resume from minimised state)
Observe Electrum toast message(s)
If not, repeat. from step 2.

Screenshots / Recording
No response
Operating system
Android 13 TKQ1.220829.002
Bitkit version
v1.0.0-beta.113
Log output
No response

fixed in #1706

repo: synonymdev/bitkit


text:
fix: remove blinking in SwipeToConfirm

Description
Prevent icon to be shown in SwipeToConfirm until loading is complete
Now everything is smooth
Linked Issues/Tasks
closing #2162
Type of change
Bug fix
Tests
No test
Screenshot / Video
https://github.com/user-attachments/assets/134296b3-f1dc-44d3-8516-c45597a0bbbf
QA Notes

Verified in v1.0.4 https://github.com/synonymdev/bitkit/commit/6404b079a1dd23f079515b3d7a14865baf959914
Boost swipe is working just fine.


text:
<content:encoded> does not included full HTML of show notes (whereas <description> does)

(Firstly, love the show :)
I develop a podcast player and noticed that <content:encoded> contains the show notes with some HTML tags stripped. 8 Tricks When Using the Fetch() API is a good example of this: <content:encoded> strips the
 blocks, whereas the <description> includes them.
Just wondered if this was intentional?
(Also, it looks like the
 content does not include line breaks.)

You are referring to the RSS Feed here?

@wesbos yes (apologies, I wasn’t sure where to raise this)

Thanks, I think this is because were putting html tags in the show notes. I'd expect libsyn to escape them for us.
were moving to another host soon so this will be part of the migration - making sure we can put HTML tags into the show notes

were moving to another host soon so this will be part of the migration - making sure we can put HTML tags into the show notes

👍

authors: domchristie wesbos

repo: syntaxfm/website


text:
Mehrere Probleme in tomcat9

Hallo,
ist die UV von den aktuellen Sicherheitslücken in Tomcat betroffen?
https://www.pro-linux.de/sicherheit/2/54655/sicherheit-mehrere-probleme-in-tomcat9.html

Hallo @BurtGummer,
aktuell verwenden wir die von Spring Boot gemanagte Tomcat Version 9.0.31 die von den CVEs nicht betroffen ist:
https://github.com/synyx/urlaubsverwaltung/blob/master/pom.xml#L20
Siehe dazu auch (Dependency: tomcat-embed-jasper): https://docs.spring.io/spring-boot/docs/2.1.13.RELEASE/reference/html/appendix-dependency-versions.html
Wir sind seit der Urlaubsverwaltung 3.1.1 bereits auf dieser Spring Boot Version. Ältere Urlaubsverwaltungen können von den CVEs betroffen sein, da dort noch der Tomcat in Version 9.0.30 in Verwendung ist.

authors: BurtGummer honnel

repo: synyx/urlaubsverwaltung


text:
remove dependencies on precomputeStyle and logError

This is close to getting this working again.  Is this project still alive? :)
There is one bug I can't figure out.  In the LoadingBarIndicator.js file, the line
var NativeMethodsMixin = require('NativeMethodsMixin')
throws an error, saying it can't find the NativeMethodsMixin module.  Not sure why?!?  I can load it with the same line of code directly in my project.  Any ideas?

No idea why NativeMethodsMixin seems to be not found. However your PR looks good overall. Going to merge.

authors: sosaucily syrusakbary

repo: syrusakbary/react-native-refresher