text:
Option.mapEffect

What is the problem this feature would solve?
Given an Option<A> and a fn (a: A) => Effect<B, E, R> it would be useful to have a function that could apply that fn to the Some value and return an Effect<Option<B>, E, R> rather than an Option<Effect<B, E, R>> as Option.map would so that it can more easily be used in an effect pipeline.
This is a pattern I am coming across a few times when, for example, decoding from a database query where the potential for a missing row is represented as an Option
What is the feature you are proposing to solve the problem?
Option.mapEffect seems like a fairly obvious api for this I think, I have made my own function to do this:
import { Effect, Option } from 'effect';
import { dual } from 'effect/Function';

export const mapEffect: {
	<B, A, E, R>(
		f: (a: A) => Effect.Effect<B, E, R>,
	): (self: Option.Option<A>) => Effect.Effect<Option.Option<B>, E, R>;
	<B, A, E, R>(
		self: Option.Option<A>,
		f: (a: A) => Effect.Effect<B, E, R>,
	): Effect.Effect<Option.Option<B>, E, R>;
} = dual(2, <B, A, E, R>(self: Option.Option<A>, f: (a: A) => Effect.Effect<B, E, R>) =>
	Option.match(self, {
		onSome: (value) => Effect.map(f(value), Option.some),
		onNone: () => Effect.succeedNone,
	}),
);

What alternatives have you considered?

Using my own wrapper as posted
Using no wrapper and just writing out the relatively verbose Effect.andThen(Option.match( ... ))
A more generic 'transpose' function (as rust calls it) that would take Option<Effect<A, E, R>> and turn it into Effect<Option<A>, E, R>. Then you could use the existing option map in a pipeline like: (..., Effect.andThen(Option.map(fn)), Effect.andThen(Option.transpose). I think this would be super useful and am slightly surprised I couldn't find a similar function in effect.

@jamesbirtles - thank you for opening the issue and providing a very detailed description of the use case!
Given that Option is a subtype of Effect<A>, you can directly use Effect.map to map an Option<A> to get a Effect<B, NoSuchElementException>. Then you can just use Effect.optionFromOptional to convert back to an Effect<Option<B>>. See this playground: https://effect.website/play#149ce22bbd4f.
Going to close this issue as the requested functionality essentially already exists in the library and it is unlikely that we will add a mapEffect to Option.

+1 this seems obvious to me. The name optionFromOptional is unintuitive, and it should be on Option not Effect.

i must admit I am also not super satisfied with the optionFromOptional solution proposed by @IMax153.
I very often end up in a scenario like this:
// I have some effect of type `Effect.Effect<Option.Option<A>, E, R>`;
const effect = Effect.succeedSome(1);
// Oh now I want to simply map the `A`, guess I'm doing this rigmarole again
effect.pipe(
  // Flatten to `Effect.Effect<A, E | Cause.NoSuchElementException, R>`
  Effect.flatten,
  // Do the thing I actually wanted to do (imagining this was some operation that required it to be an effect)
  Effect.andThen((x) => Effect.succeed(x + 1)),
  // now back to what I actually want, I hope there's no other `Cause.NoSuchElementException` I'm accidentally capturing here
  Effect.optionFromOptional
);

given that Effect is clearly not adverse to having technically duplicate functionality but with nicer ergonomics based on the million and one functions it already has, I am somewhat surprised that there is a lack of desire to make this (imo very common) use case more ergonomic and discoverable

@jamesbirtles - in the past, we did have an Option.mapEffect, but adding these types of methods creates multiple issues (which is the reason they were removed several years ago).
Having Effect-based methods in Option also meant that a user had to import all of Effect to use Option (yes, tree-shaking should solve this in most cases, but accidentally using Option.mapEffect would substantially affect bundle size).
But IIRC, the main reason we removed these types of methods was that it was very difficult to draw the line for where to stop.
Having said the above, I do agree that we can probably do better on naming in this particular case.
I'll re-open the issue and summon @mikearnaldi, @gcanti, and @tim-smart to further discuss.

I would like to just add my 2 c. Imo, you have to think about target audience, general direction, and convenience. I don't think bundle size is that important to most Effect users. Second, Effect has the task of becoming popular, and that's not going to happen by worrying about pennies of bundle size, but by building libraries that are convenient and useful. But I'm just giving my 2 c, I'm a just a little guy here. I'm very thankful for everything you're building and built either way :)

I'm not sure if "mapEffect" is a good name since there are multiple mapEffect functions in Effect, all of which return the same data type (e.g., Stream.mapEffect, Fiber.mapEffect, Sink.mapEffect) while here we start with an Option and we end up with an Effect.
Swapping data types inside out is commonly named as follows:

traverse: (Option<A>, A => Effect<B>) => Effect<Option<B>>
sequence: (Option<Effect<A>>) => Effect<Option<A>>

p.s.
I would also suggest renaming (i.e., deprecate the old and add the new) optionFromOptional to something more intuitive, like catchNoSuchElementException

@gcanti that's sort of the direction that @jamesbirtles suggested:

A more generic 'transpose' function (as rust calls it) that would take Option<Effect<A, E, R>> and turn it into Effect<Option, E, R>. Then you could use the existing option map in a pipeline like: (..., Effect.andThen(Option.map(fn)), Effect.andThen(Option.transpose). I think this would be super useful and am slightly surprised I couldn't find a similar function in effect.

I'm +1 for Option.transpose. I know that traverse and sequence are used in cats effect, but I think transpose is much more intuitive because it literally is a transposition of two types.

This is my version of transpose if want to copy past in your projects:
export const transpose = <A, E, R>(
  param: Option.Option<Effect.Effect<A, E, R>>,
): Effect.Effect<Option.Option<A>, E, R> => {
  return param.pipe(
    Option.match({
      onNone: () => Effect.succeedNone,
      onSome: Effect.flatMap(Effect.succeedSome),
    }),
  );
};

authors: IMax153 decoursin gcanti jamesbirtles titouancreach

repo: Effect-TS/effect


text:
can't work on macos

whilte attempt to execute simdjson target on macos it occupy error

'string' file not found at /Users/jiangzh/CppPinvokeGenerator/samples/SimdJson/bin/Debug/netcoreapp3.0/../../../Output/simdjson.h(20, 10)

I get help at this issuse link:
https://github.com/xoofx/CppAst/issues/23#issuecomment-595051938

source: gharchive/issue

repo: EgorBo/CppPinvokeGenerator

license_type: permissive

license_source: github-api


text:
Add maps and zones

Ability to view maps and zones.
Originally suggested in https://github.com/Ekman/home-assistant-pure-i9/issues/4.

See: https://github.com/Ekman/home-assistant-pure-i9/pull/19

Hi @Ekman ! Thank you for your effort on this, much appreciated and it works great!
At least for me, the only thing missing seems to be the ability to send the robot to a specific zone to clean which I'm guessing this is eventually aiming to solve?
I might take a stab at this later myself, but I checked the request from the Wellbeing app for sending the robot to specific zone, it seems to do a PUT (/api/Appliances//Commands) with this body:
{     "CustomPlay": {         "PersistentMapId": "<MapGuid>",         "Zones": [             {                 "ZoneId": "<ZoneGuid>"             }         ]     } }
Of course I'm not posting this with the expectation to have it implemented, and you probably had that request figured out already but in case you didn't, wanted to make sure I provided that example in case it helps :-) (public API documentation would be really nice...)
If I manage to find out anything more when/if I get the time I'll make sure to post it here of course!
Again, thanks for your effort on this!

I haven't really had the time too look more closely at this.
The best way to contribute would be to cooperate with the Phype/purei9_unofficial repository. I'm just using the functions that's available in there. There's an effort to get this to work here: https://github.com/Phype/purei9_unofficial/issues/8

Very understandable, time for side projects is limited for most of us! :-)
If I get the time I'll try to contribute there, thanks for pointing me in the right direction!

I'm working on the map functionality in #43.
Blocked by this currently unfortunately https://github.com/Phype/purei9_unofficial/issues/18.

So, newer versions of the API have changed and it's not longer possible to get a map image "out-of-the-box". It requires some fiddling, see https://github.com/Phype/purei9_unofficial/issues/8.
Ah, the bane of not having an official Electrolux API. So annoying that they did not listen to the community. 😈

Hi @Ekman ! Thank you for your effort on this, much appreciated and it works great!
At least for me, the only thing missing seems to be the ability to send the robot to a specific zone to clean which I'm guessing this is eventually aiming to solve?
I might take a stab at this later myself, but I checked the request from the Wellbeing app for sending the robot to specific zone, it seems to do a PUT (/api/Appliances/-id-/Commands) with this body: { "CustomPlay": { "PersistentMapId": "<MapGuid>", "Zones": [ { "ZoneId": "<ZoneGuid>" } ] } }
Of course I'm not posting this with the expectation to have it implemented, and you probably had that request figured out already but in case you didn't, wanted to make sure I provided that example in case it helps :-) (public API documentation would be really nice...)
If I manage to find out anything more when/if I get the time I'll make sure to post it here of course!
Again, thanks for your effort on this!

Maybe this is already planned but I had also been missing this feature and noticed that purei9_unofficial already had both the getMaps and cleanZones methods needed for this. I implemented a small hack in my own HA today by overriding the so far unimplemented send_command service to accept a "cleanZones command", that essentially ends up sending the PUT suggested by @AWahlqvist above. I just added the following method to vacuum.py and enabled SUPPORT_SEND_COMMAND.
async def async_send_command(self, command, params=None, **kwargs):
    """Send a special command."""
    _LOGGER.debug("async_send_command %s (%s), %s", command, params, kwargs)
    if command == "cleanZones":
        _LOGGER.debug("Executing cleanZones command")
        try:
            maps = await self.hass.async_add_executor_job(self._robot.getMaps)
            m = next(m for m in maps if m.name == params['map'])
            mapId = m.id
            zoneIds = [z.id for z in m.zones if z.name in params['zones']]
            _LOGGER.debug("Got map ID %s and zone IDs %s", mapId, zoneIds)
            await self.hass.async_add_executor_job(self._robot.cleanZones, mapId, zoneIds)
        except KeyError:
            _LOGGER.debug("Missing keys in params for clearZones")
        except StopIteration:
            _LOGGER.debug("Unknown map in clearZones")

I now get the zone-cleaning feature using the following service call in HA.
service: vacuum.send_command
data:
  command: cleanZones
  params:
    map: Downstairs
    zones:
      - Kitchen
      - Dining area
target:
  entity_id: vacuum.bob_jr

I am not a developer by any means so the code can most likely be made more elegant, one should probably not pull the maps every time when using the service, and it would probably be better to write a new custom service rather than just using the send_command service. This said, it works.
Will see if I can think this through more deeply and possibly even manage to make a pull request, but for now, I am just happy that it is working without any updates to purei9_unofficial. Finally, I just wanted to say thanks for an awesome integration.

authors: AWahlqvist Ekman joakimjalden

license: MIT


text:
Streamlet: how can notarized chains be the same length.

Question
From §1.1:

Propose-Vote. In every epoch:
– The epoch’s designated leader proposes a new block extending from the longest notarized chain
it has seen (if there are multiple, break ties arbitrarily). The notion “notarized” is defined
below.
– Every player votes for the first proposal they see from the epoch’s leader, as long as the
proposed block extends from (one of) the longest notarized chain(s) that the voter has seen.
A vote is a signature on the proposed block.
– When a block gains votes from at least 2n/3 distinct players, it becomes notarized. A chain is
notarized if its constituent blocks are all notarized.

If:

2/3 of players are well-behaved, and
a player considers a block notarized only when they have evidence that 2/3 or players voted for it, and
a player does not vote for any proposed block which does not extend a longest-seen notarized chain…

-then how could any player see >1 sequences of notarized blocks of the same (longest) length?

Consider Figure 1:

IIUC, each box with a number here represents a block that was notarized in that epoch, because later on page 2 it says:

An example of applying the finalization rule is shown in Figure 1. In this example, imagine all blocks are notarized: we see that there is a notarized chain with 3 adjacent blocks having consecutive epoch numbers 5, 6, and 7.

So, we can ask an instance of the main question of this ticket: how could a node ever come to believe the notarization result of epoch 2?

Potential answer:
The numbers indicate the epoch during which a block is proposed but that is distinct from the epoch in which a block is notarized!
So for the instance above the sequence for an honest node might look like this:

Epoch 1: see proposed block extending genesis (which is longest known notarized chain base case).
Epoch 2: see proposed block extending genesis. At the time at which the node sees this proposal: the proposal from Epoch 1 has not yet been notarized.

Either after 1 and before 2, or after 2: the node votes for proposal 1, since it extends longest notarized chain (genesis).
After 2 but before the node sees 1 as notarized: vote for proposal 2, since it extends longest notarized chain (genesis).

Hrm, in §3.2 when defining streamlet, a block is defined to contain:

e is called the epoch number of the block, which records the epoch in which the block is proposed
and voted on;

This makes it sound as if proposal and voting occur within the same epoch (which is within or contains a period of synchrony, and where the epoch is larger than roundtrip message time). So this challenges my guess above.

In §3.5 it gives an instance of informal proof for Figure 1 analyzing two cases, one assuming X is notarized when X < 5 and two where X > 7.
I'm not yet clear why these bounds are chosen. Why not X < 4 or X > 5, …?
I'll try just writing the latter case:

Case 3 (not in paper): X > 5. Since block 5 is notarized, more than n/3 honest nodes (denoted the set S)
must have seen a notarized block 2 by the time they vote for block 5 (i.e., by the end of epoch
5). As a result, by epoch X > 5, the set S of nodes must have seen block 5 notarized and will
not vote for block X, since block X now fails to extend the longest notarized chain seen (which is
block 5 or longer). Therefore block X cannot gain 2n/3 votes, and it cannot be notarized, which
is a contradiction.

At first glance, this made up Case 3 holds given Figure 1 with all of the same assumptions and conclusions in the text. However, if we look at Figure 1 we would see that 3 is notarized at the same length as 5… which is still a mystery as to how an honest view can arrive at that state in the first place, which is the whole impetus for this ticket.
So I feel like I still have a "bootstrapping" problem to understand the argument in the paper in the first place, since it starts with a subset of Figure 1 that already seems impossible to me.
Maybe the general informal argument on the next page will clarify this (whereas the Figure 1 subset-specific instance glosses over the bootstrapping problem)?

After pairing on this with @daira we are fairly certain the answer to this question is that reception on votes may be delayed by an arbitrary number of epochs.
So, honest nodes can see two notarized chains of equal length by this process:

In Epoch $T+0$:

Alice, an honest node, sees a single longest notarized chain of height $H_0$.
Bob, the proposer (whether malicious or not) proposes a block, $B$ at height $H_1 = H_0 + 1$ which extends the longest notarized chain Alice sees.
Alice therefore votes to notarize the proposal as the protocol requires.
During this epoch, at least 2/3 of nodes (who are assumed honest) also vote.
However these votes propagate with arbitrary delays and Alice does not see a sufficient threshold for the proposed block in $T+0$.

In Epoch $T+1$:

During this epoch, Alice still does not see a sufficient threshold of votes for $B$ (for simplicity we ignore the case that she does see the votes in this epoch but only after other following events in the epoch).
Charlie, the proposer (whether malicious or not) proposes a block, $B'$ at height $H_1 = H_0 + 1$ which extends the same longest chain of height $H_0$ that Alice saw in $T+0$.
Because Alice has not yet seen a sufficient threshold for $B$ proposed in T+0, she still sees the same longest-notarized chain at $H_0$, and therefore, by following the protocol, she votes for this new block.

After Epoch $T+1$:

Alice sees enough votes for $B$ to pass the threshold, so she marks it as notarized.
Alice sees enough votes for $B'$ to pass the threshold, so she marks it as notarized.
Alice now sees two chains at height $H_1$ which are both notarized by ≥2/3 of the nodes.

If this matches @daira's understanding, we can close this question as resolved.

That matches my understanding.

authors: daira nathan-at-least

repo: Electric-Coin-Company/tfl-book


text:
🛑 ElectoTempo Backend is down

In 1cdea58, ElectoTempo Backend ($ET_BACKEND_HEALTH_ENDPOINT) was down:

HTTP code: 403
Response time: 186 ms

Resolved: ElectoTempo Backend is back up in 145817a after 31 minutes.

repo: ElectroTempo/electrotempo-status


text:
Disable all external links

Hi, firstly thank you for your great job.
How can i disable all external links in window?
For example, let's open a youtube video page, but clicking on other links on the page does not open a new window.

I use this snippet inside my windows
document.addEventListener('DOMContentLoaded', () => {
    document.addEventListener('click', (e) => {
      if (e.target.href && e.target.host != window.location.host) {
        e.preventDefault();
        e.stopPropagation();
        // do something else...
        return false;
      }
    }, true);
  });

@danatcofo Thanks for your answer, but I need to change my question.
I open a new window with youtube embed url.
There are different links of youtube on the video screen that opens.
Clicking on these links opens other windows.
I want to block these windows.

It's probably similar concept. Google it for a web page.  It would be the same method in electron.  Remember electron is just web pages with some raisins added.

I guess an interception is not allowed inside the iframe.

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

authors: GregorBiswanger danatcofo serdar-sahin


text:
[Feature Request] Test Tool e2e

Existing Component
No
Component Name
2.4.6
Description
I'm trying to use nightwatchjs to run the e2e tests on my system using the element. And I can not make the select work.
The problem is that the element uses input instead of the
And nightwatchjs uses the following command to select the option: .click('select[id="myselectbox"] option[value="somevalue"]')
Is there any other tool compatible with e2e test element?

Well, Issues is used to track bugs or feature requests.
If you have some questions that really need help, stackoverflow & gitter will be a better place :)

authors: jikkai renatosistemasvc

repo: ElemeFE/element


text:
[Feature Request] Autocomplete add event

Existing Component
是
Component Name
Autocomplete
Description
Autocomplete 组件是否添加录入的内容改变触发的事件

Sorry, we have no plan to support this.


text:
[Bug Report] Unlike native select, tabbing out of select menu does not select active option

Element UI version
2.11.1
OS/Browsers version
Windows 10/Chrome
Vue version
2.6.10
Reproduction Link
https://codepen.io/tylertrotter/pen/xxKVJpO?editors=1111
Steps to reproduce
Change selected option by pressing up or down arrow when the select component is focused. Now tab away. Note that the selection did not stick. Contrast this to the native select element.
What is Expected?
The last selected item will be the value of the component when blurred.
What is actually happening?
The value before expanding the menu is restored as the value of the component.

I'm working on a PR for this now.

pr welcome

@tylertrotter  @island205
Any news on getting tab to work?
Alternatively any suggestion on work around?

authors: SatanEnglish island205 tylertrotter


text:
[Bug Report] Broken scroll el-select

Element UI version
2.2.0
OS/Browsers version
all
Vue version
2.5.13
Reproduction Link
https://jsfiddle.net/w2za0mL9/1/
Steps to reproduce

make some scrollable containers, put el-select into it
click on select: dropdown is opened
sroll container

What is Expected?
Dropdown list is change position
What is actually happening?
Dropdown list is not change position

You can try popper-append-to-body: https://jsfiddle.net/leopoldthecuber/w2za0mL9/10/ , which is added in 2.2.0. Now there's an unnecessary horizontal scroll bar at the popper bottom, but is fixed in #9835.

With popper-append-to-body dropdown list in incorrect position:
https://jsfiddle.net/w2za0mL9/13/

scroll to bottom
click on select

Expected: dropdown list under the select
Actual: dropdown list out of frame

Up

Up

When I set popper-append-to-body to false. Now this problem occurs. The dropdown should expand above.

authors: Leopoldthecoder OrhanOzkercin zont


text:
可以运行的代码示例有没有

可以运行的代码示例有没有

examples 文件夹

好的

authors: Jocs expanding

repo: ElemeFE/page-skeleton-webpack-plugin


text:
Replace MPP with single-part sendpay

We replace the mpp mechanic with a simpler and more robust single payment via the desired channel as route.
@grubles Is this helpful for you?

@nepet this would be a good time to also add the startup checks that make wumbo mandatory? It could lead to unexpected for some people without wumbo so it's best to just eliminate that as a confounding factor.

@wtogami  Another idea handling wumbo until the patch is merged: Check if wumbo is enabled and if not: reject any swap with amt > 2^32 msat with a message: need to enable --large-channels for swaps > 4M sats. This way we would not force the node operateor to enable wumbo if they want to use peerswap.

A quick mainnet test works, where previously the BTC swap-out would coop fail due to a MPP timeout. Will continue testing.

Another idea handling wumbo until the patch is merged: Check if wumbo is enabled and if not: reject any swap with amt > 2^32 msat with a message: need to enable --large-channels for swaps > 4M sats. This way we would not force the node operateor to enable wumbo if they want to use peerswap.

Good idea.

We now reject a swap with an amount that exceeds 2^32 msat if the option --large-channels is not enabled. I added tests for the combinations swap-in/-out -> swap amount above/equals 2^32 msat -> --large-channels enabled/disabled
This should be good to go now

Tested more extensively using signet and a few times on mainnet. The sendpay patch appears to work.
The > 2^32 msat check also works with CLN as the swap-out initiator, but not as the swap-in initiator.
I can also swap-out > 2^32 msats with LND as the initiator, but not as the swap-in initiator.
This is with neither node having wumbo / large-channels enabled.

The detection being one sided and inconsistent doesn't help the underlying confusion that we aimed to eliminate. Should we ship this PR as is or remove the incomplete check?

IMO removing it for now sounds like a good idea since it doesn't completely reject >2^32 msat swaps if wumbo is not enabled.

Oh sorry for the confusion, I never figured that this was also meant to block lnd payments as they do not have the same legacy as cln. I can add the same constraint also for lnd, this would not be too much work!

Also, the check is always performed on the side that pays the Lightning invoice as it is an somewhat abstract „can spend x sat“ check. I can also check on init of all swaps if the channel partner can spend, but this would then also affect/block lnd payments that would be fine.

The cancel_message could be clarified to say something like "the CLN peer needs to enable --large-channels". If I'm an LND peer initiating a swap, it will error telling me to enable --large-channels which isn't an LND config option.
example from an LND node:
$ ./builds/peerswap/out/pscli swapin --sat_amt 5000000 --channel_id 137426858844160000 --asset lbtc
2023/01/09 22:11:16 rpc error: code = Unknown desc = swap amount is 5000000000: need to enable option '--large-channels' to swap amounts larger than 2^32 msat

Oh I see, I can definitely give it a better error message.

Merged despite the confusion error message. If both sides have wumbo enabled it isn't a problem. Newer CLN versions will change the behavior in the case where wumbo is not enabled?

Opened a new issue for the confusing error message: https://github.com/ElementsProject/peerswap/issues/166

source: gharchive/pull-request

authors: grubles nepet wtogami

repo: ElementsProject/peerswap


text:
Finalize 0 and 5-shot evals

Closes #16 and #38 .
Finally finishing the 0 and 5 shot evals on the Pythia suite. Ideally finishing and merging by tomorrow, TBD.
TODO before merging:

[x] Upload all evals
[x] Sanity check final PPL numbers on LAMBADA (TODO: 19m, 125m, 350m models)
[ ] Create a data.feather file (for use with Igor's lm-plot code) containing all evals
[ ] Write README section explaining how to use the plotting code + how files are laid out in repo (WIP)
[ ] Create some sample plots to confirm no evals look suspect/affected by the bug we had
[ ] Standardize whether we'd like to call e.g. step 71500 evals on 1.3B "step 143000" for the 4M bs models, and rename all JSONs with correct model names + step numbers

Will request your review @StellaAthena when todos are all complete

Leaving README todos and filename updates for a later PR, I'll write a guide to generate plots with @igor0 's code later.

repo: EleutherAI/pythia


text:
NPM package name

Unfortunately, vaul-vue, vue-vaul and vue-vaul-drawer are all taken with minimal (if any) implementation. Should we publish this as vaul-vue under an organisation scope? Zernonia from the Radix Vue team has expressed interest in having a scope for packages related to the tools and libraries they maintain, does it make sense for us to wait and use that scope?

Discussion was started in this issue here

I reached out to @baradghimire (current owner of the vaul-vue name on npm) and he has agreed to transfer over the name some time tomorrow!

Were we able to secure that name?

Yep, I've transferred ownership of the vaul-vue name on npm to @connerblanton :)

Huge thanks to @baradghimire!
@Elliot-Alexander let me know your npm username and I will add you as a maintainer

Thank you so much @baradghimire . Really appreciate you donating that name. My npm username is elliotalexander

Invite sent!

Accepted, will try to have the release automations set up by the end of the week :)

repo: Elliot-Alexander/vaul-vue


text:
timespan() uses wrong value for calculation

timespan() acually uses 31536000 for "seconds per year":
60 (seconds) * 60 (minutes) * 24 (hours) * 365 (days) = 31536000
but a real year has 365,25 days
so it would have 31557600 seconds
if I use this function for calculating an age of a person (let's say the birthday is on December the 20th 1983) and today is December the 19th 2011, it would say that the person is 28 years old, but the 28th birthday would be tomorrow

This is now fixed but I forgot to reference this issue in the commit - https://github.com/EllisLab/CodeIgniter/commit/dc3e4bedb39afe30d95635e5258aaecec4dfd74c

repo: EllisLab/CodeIgniter


text:
Netlify Deploy Error: failed Building production JavaScript and CSS bundles

Netlify deployment - script fails to build the production JS and CSS bundles (see below for error log details).
SUMMARY
The error appears to be caused by the lack of capitalization on the shared directory which has the styles-global.js file (path: 'src/components/shared' ).
In Netlify the directory is case-sensitive, but on Mac OS-X the directory is not case-sensitive, so the error does not appear on my local machine.
HOW TO FIX
1. Rename the "shared" folder to "tmp"
git mv shared tmp

Note: If you have automated publishing enabled in Netlify then this will trigger a new build, which will fail again.
So you may want to stop the build or disable automated builds in Netlify settings (before you do step 2).

2. Push the re-named "tmp" folder to github.
git commit -m 'pt 1 - renaming shared to Shared...caps issue'
git push -u origin master

Note: you should validate the folder name changed from "shared" to "tmp" in github before step 3.

3. Rename the "tmp" folder to "Shared"
git mv tmp Shared
4. Push the update to github
git commit -m 'pt2 - renaming shared to Shared...caps issue' git push -u origin master`

Note: If you have automated publishing enabled in Netlify then this will trigger a new build, which should now succeed.
If you previously disabled automated builds, then update the Netlify setting and redeploy.

ERROR LOG SNIPPET
Netlify Deploy Log Error
`
11:41:20 AM: info bootstrap finished - 7.509s
11:41:20 AM:
11:42:05 AM: failed Building production JavaScript and CSS bundles - 45.123s
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../../Shared/styles-global' in '/opt/build/repo/src/components/MdxComponents/Collapsable'
11:42:05 AM: Perhaps you need to install the package '../../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../../Shared/styles-global' in '/opt/build/repo/src/components/MdxComponents/TextBlock'
11:42:05 AM: Perhaps you need to install the package '../../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../../Shared/styles-global' in '/opt/build/repo/src/components/Posts/PostCard'
11:42:05 AM: Perhaps you need to install the package '../../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../../Shared/styles-global' in '/opt/build/repo/src/components/Posts/PostTemplate'
11:42:05 AM: Perhaps you need to install the package '../../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../../Shared/styles-global' in '/opt/build/repo/src/components/Profile/ProfileImg'
11:42:05 AM: Perhaps you need to install the package '../../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../../Shared/styles-global' in '/opt/build/repo/src/components/Tags/Tag'
11:42:05 AM: Perhaps you need to install the package '../../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../Shared/styles-global' in '/opt/build/repo/src/components/Layout'
11:42:05 AM: Perhaps you need to install the package '../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../Shared/styles-global' in '/opt/build/repo/src/components/Loader'
11:42:05 AM: Perhaps you need to install the package '../Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../components/Shared/styles-global' in '/opt/build/repo/src/hooks'
11:42:05 AM: Perhaps you need to install the package '../components/Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: Can't resolve '../components/Shared/styles-global' in '/opt/build/repo/src/util'
11:42:05 AM: Perhaps you need to install the package '../components/Shared/styles-global'?
11:42:05 AM: error Generating JavaScript bundles failed
11:42:05 AM: /opt/build/repo/node_modules/gatsby/dist/utils/babel-loader.js??ref--4-0!/opt/build/repo/src/components/Layout/index.js f913bb9dcb465262c2927ecd3e43a27d
11:42:05 AM: Assigning to rvalue (5:0)
11:42:05 AM: | function getInitialTheme(){var savedTheme=WEBPACK_MODULE_REFERENCE__23_64656661756c74.getItem("theme");return savedTheme?JSON.parse(savedTheme):defaultTheme;}// Store theme in local storage
11:42:05 AM: | WEBPACK_MODULE_REFERENCE__1_757365456666656374_call(function(){WEBPACK_MODULE_REFERENCE__23_64656661756c74.setItem("theme",JSON.stringify(theme));},[theme]);// Save to theme global variable
11:42:05 AM: | !(function webpackMissingModule() { var e = new Error("Cannot find module '../components/Shared/styles-global'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()).curTheme=theme.mode;return _objectSpread(_objectSpread({},theme),{},{setTheme:function setTheme(_ref){var _setTheme2=_ref.setTheme,theme=_objectWithoutPropertiesLoose(_ref,["setTheme"]);return _setTheme(theme);}});}/* harmony default export */ var WEBPACK_MODULE_DEFAULT_EXPORT = (UseTheme);
11:42:05 AM: not finished Generating image thumbnails - 47.323s
11:42:05 AM: not finished run queries - 45.387s
11:42:06 AM:
11:42:06 AM: ┌─────────────────────────────┐
11:42:06 AM: │   "build.command" failed    │
11:42:06 AM: └─────────────────────────────┘
11:42:06 AM:
11:42:06 AM:   Error message
11:42:06 AM:   Command failed with exit code 1: gatsby build`

@stephenponce
Oops. I missed out on this one when I capitalized all the folders a while ago. I fixed it and verified that it deploys to Netlify without build failure.
I really appreciate that you spent time to submit this issue!

Glad I could help. Thanks for updating so quickly!

authors: EllisMin stephenponce

repo: EllisMin/gatsby-blog-mdx


text:
MITD0004 军训

https://nkucs.icu/#/courses/grade-1/MITD0004
NKUCS，一个充满了「神仙」和「神仙」课程的专业，本网站旨在记录 NKUCS 的信息以及历届学生的评价

21级好像不是一开学就军训了。这个没啥可说的不过我还是发一下。
1.最最重要的一点：训练强度还是有的，如果是身体不好的同学，不要硬撑，及时与教官等沟通。
2.注意防晒，提前擦好防晒霜。尤其是脸、耳朵、脖子、手。每年都有几个耳朵晒得严重爆皮的同学。
3.请假事项：如果有生病就可以请假，但是应该是需要先去校医院看过以后才行。见习需要给出具体病因，比如说感冒、发烧、闹肚子、甲沟炎、过敏、高血压等等。
4.如果参加学工部的同学，可以不用军训，需要负责宣传工作。
5.分数：我当年全程请的病假，坐在操场旁边见习了14天，最后分数89。可见分数不会太低的。加入国护队、刺杀操等最后展示的队伍，都对分数有直接加成。


text:
Convert all icons to XPM

In order to remove reliance on the Qt framework I'm converting all the icons to .xpm format, that way the Qt resource file is unnecessary.

See commit 5c135a35ab1c0496b4e43bcaf0748b2eef793a9a

repo: Embroidermodder/Embroidermodder

license: Zlib


text:
Hello，could you describe how to run the project？

If you are convenient, please give a file folder named scripts which conclude some "data_name".sh files, thanks.

I updated the README about quickstart. I will test and release other scripts in the future.
I hope this helps you.


text:
🛑 WebSite is down

In 566390b, WebSite (https://www.instapintr.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: WebSite is back up in 1d5e0ce.

repo: EmrecanA/uptime


text:
Upgraded addressspaces are not shown phase active in Console

Describe the bug
I upgrade EnMasse from 0.26.6 to 0.28 with an existing (standard) addressspace by applying the new bundle.
To Reproduce
Steps to reproduce the behavior:

Install 0.26.6
Create a standard address space and one queue address
Upgrade to 0.28.

Expected behavior
After upgrade I expect the existing addressspace to be available in the Console.  The addresspace is showing the Console, but it is marked with a red X.
The issue is that the controller is not assigned the phase Active.

@k-wall some background here as welll ... 😅 I made the phase field optional at the time of introduction, because 0.27 would not allow unknown fields in the schema, and therefore rolling back from a failed upgrade (0.27->0.28->0.27 ) would break.
The trade off I chose was to set the phase field on new address spaces, leaving the existing ones untouched. Unfortunately I did not consider the implication of the console at the time.
My intention was to make the phase field always be there in 0.29 and onwards.

@k-wall some background here as welll ... 😅 I made the phase field optional at the time of introduction, because 0.27 would not allow unknown fields in the schema, and therefore rolling back from a failed upgrade (0.27->0.28->0.27 ) would break.
The trade off I chose was to set the phase field only on new address spaces, leaving the existing ones untouched. Unfortunately I did not consider the implication of the console at the time.
My intention was to make the phase field always be there in 0.29 and onwards.

@lulf thanks again for the reply.  I think if we truly what to support downgrade, then we need to be prepared to ship a script that undoes the actions of the upgrade.  I think trying to write everything so we can just fall back won't be tenable.  I think our goals should be ensuring if an upgrade fails it should strive to leave the system in a state where restarting will continue the upgrade process without manual intervention.

authors: k-wall lulf

repo: EnMasseProject/enmasse

license_source: bigquery


text:
error： Res Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zerohape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero

InvalidArgumentError (see above for traceback): Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero
[[node flatten/flatten/Reshape (defined at center_main+model.py:80) ]]
[[node acc/Mean (defined at center_main+model.py:101) ]]

I think there’s something wrong with the input tensor's shape. Please provide your core code so I can help.


text:
refac: message id repository to use ef

Description
In order to let our pipeline roll-back all db changes when handling a request aggregated measure data if any give an error, we should only use EF to store data.
Test to ensure we only stored one if 2 is init at once: https://github.com/Energinet-DataHub/opengeh-edi/blob/3b1e5cb23363c761a9fda37c2183b4813a2698d2/source/IntegrationTests/Application/IncomingMessages/RequestAggregatedMeasureData/InitializeAggregatedMeasureDataProcessesCommandTests.cs#L107
References
https://app.zenhub.com/workspaces/mosaic-60a6105157304f00119be86e/issues/gh/energinet-datahub/team-phoenix/75

Codecov Report

Merging #535 (32c97da) into main (21978a1) will decrease coverage by 39.78%.
Report is 208 commits behind head on main.
The diff coverage is 35.43%.

@@             Coverage Diff             @@
##             main     #535       +/-   ##
===========================================
- Coverage   83.07%   43.30%   -39.78%
===========================================
  Files         456      294      -162
  Lines       10418     5669     -4749
===========================================
- Hits         8655     2455     -6200
- Misses       1438     3131     +1693
+ Partials      325       83      -242

Files
Coverage Δ

source/Application/Actors/CreateActorHandler.cs
0.00% <ø> (-85.72%)
:arrow_down:

...tion/Configuration/Authentication/Authenticated.cs
0.00% <ø> (-100.00%)
:arrow_down:

...n/Configuration/Authentication/NotAuthenticated.cs
0.00% <ø> (-100.00%)
:arrow_down:

...n/Configuration/Commands/CommandSchedulerFacade.cs
0.00% <ø> (-100.00%)
:arrow_down:

...Configuration/Commands/Commands/InternalCommand.cs
0.00% <ø> (-100.00%)
:arrow_down:

...e/Application/Configuration/Queries/QueryResult.cs
0.00% <ø> (ø)

...lication/Configuration/TimeEvents/ADayHasPassed.cs
0.00% <ø> (-100.00%)
:arrow_down:

...Configuration/TimeEvents/TenSecondsHasHasPassed.cs
0.00% <ø> (-75.00%)
:arrow_down:

...tgoingMessages/Common/OutgoingMessageExtensions.cs
0.00% <ø> (ø)

...ion/OutgoingMessages/Common/Xml/DocumentDetails.cs
100.00% <ø> (ø)

... and 53 more

... and 425 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

authors: MadsDue codecov-commenter

repo: Energinet-DataHub/opengeh-edi


text:
Reproducing windows encoding error

Trying to reproduce encoding error on Windows reported in #129.

Cannot reproduce the issue with unicode characters in commit messages.

The issue can be reproduced with push event and above commit messages: https://github.com/EnricoMi/publish-unit-test-result-action/runs/2569476891?check_suite_focus=true#step:7:69

With the fix, the issue goes away: https://github.com/EnricoMi/publish-unit-test-result-action/runs/2569704026?check_suite_focus=true#step:7:58


text:
Proof of Concept - integrate Ensemble into a react native app

Please provide this integration demo as an open source git repo

https://github.com/EnsembleUI/ensemble-react-native

repo: EnsembleUI/ensemble


text:
Need Container widget

Now even for one child with background, padding, borderRadius background. I need to wrap my child with Column widget. It would be nice to have something like below for a single widget to have those common properties.
Container:
  styles:
    backgroundColor: 0xFF282A33
    padding: 12
    borderRadius: 40
  child:
    Icon:
      styles:
        color: white
      icon: local_mall

@vinothvino42 we discussed this issue before and decided to expose those properties on all widgets. E.g. you can pass backgroundColor, padding, and borderRadius to an Icon widget. Do you see a gap in the current approach?

Is this approach implemented now?

Yes, for majority of widgets. If there are gaps, please open tickets so we can address them.


text:
structogram: create concept for rendering

at some point, I have to decide how to handle height predictions

finally done after so many attempts

repo: Entkenntnis/robot-karol-online


text:
minor: control bar buttons are not clickable on small screens

-> overflow out of container div

but this area is a work in progress anyways

increasing height with min-h- instead of h-

repo: Entkenntnis/robot-karol-quest


text:
%matplotlib inline   not responding

Hi,
We are not able to display/output graphs inline ( as embedded objects, like in the earlier release) the popups are annoying and hang.
How to switch back to display the results inline as embedded objects in the latest release.
Iam using the latest version of Pyleecan
We tried below along with other options but no luck
%matplotlib notebook
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np

Hello,
We sometime have the same issue, running twice the first cell with plots seems to solve the issue.
Best regards,
Pierre

authors: BonneelP crowdnidhi-design

repo: Eomys/pyleecan


text:
在不同的分辨率显示器上，鼠标会发生偏移

UE Version:
E.g. UE 4.27
Description
A clear and concise description of what the bug is.
Expected behavior
像素流可以准确匹配鼠标坐标

Hi @leleshuo, this issue is being tracked here.
Feel free to add any information that can be useful to the original issue and thank you for you patience while we resolve it.

authors: DenisTensorWorks leleshuo

repo: EpicGames/PixelStreamingInfrastructure


text:
[Suggestion] Current Uniformity in Block Sounds

Unsure if this is an error or the lack of a certain design specification, but no matter what block is framed they all produce a wooden sound -- be they stone, glass, wood. This is nonsensical when you're walking up "glass" steps. and all you hear is wood.
Up to you whether you think frame blocks mimicing the sound of the material they're framed with would make sense. If I tiled a stair framework with slate tiles, they'd sound like stone when being walked on IRL.  I certainly believe that it would be a nice QoL improvement.

Thats a good point, I will change them to mimic the material they have been framed with (if that is at all possible)

authors: Corveauxx EpicSquid

repo: EpicSquid/Blockcraftery


text:
Add NOX Binning and GHG Tracking to Functions B and E, to IUMPR Tool

From j1939-84 created by ericthomasswenson: Equipment-and-Tool-Institute/j1939-84#1053

Update SAE J3162 IUMPR Tool to Java 11 using the same Java 11 version
Add NOX Binning and GHG Tracking to Functions B and E, by adapting J1939-84 queries and displays.

This issue is now captured in the IUMPR issues list
https://github.com/Equipment-and-Tool-Institute/iumpr/issues/84

Closed in favor of IUMPR issue

Closed in favor of IUMPR issue

authors: ericthomasswenson mmschaefer


text:
extract tile (output image cropped to destiny points)

I would like to extract a rectangular tile from a source image via a projective transformation based on mapping the corners of the tile to points in the source image, i.e., destiny points [[0, 0], [0, h], [w, 0], [w, h]].
The current implementation will return an output image that contains the entire input image with dimensions based on the input image dimensions. What I want is a output image of h rows by w pixels that matches the bounding box of the destiny points.
This behavior is already provided for piecewise affine transformations by the second case of _induceBestObjectiveWidthAndHeight() at https://github.com/Eric-Canas/Homography.js/blob/1200c41d713cc40007b3b71c8ab9b4214d837e84/Homography.js#L706C1-L710

I need this as well!

I made a fork and copied some lines to the behavior for projective and affine transformations. There is some repeated code, but this should make it so that the output is properly cropped. This doesn't affect the behavior of transformHTMLElement, though.
https://github.com/Xiione/Homography.js

authors: Xiione jcphill


text:
Where the external dictionary of language words was defined ?

Hello, In the paper it was mentioned that an external dictionary was manually constructed to collect motion-related
words and categorize them into four types: direction, body part, object and action
I can't find where it was defined in this project code ?

Hi, it is in another project. See https://github.com/EricGuo5513/text-to-motion/blob/8640570682a0d0278b028e9525f385ee61f25ba9/utils/word_vectorizer.py#L46.

Thank you for providing the direct link. I see that five categories were defined, it appears that there are two different datasets - HumanML3D (22 joints) and The generated KiT version (21 joints). I'm interested in knowing if this dictionary categorizes all of the vocabulary found within these datasets.

Yes, for both dataset we use the same dictionary.
On Wed, Jan 25, 2023 at 6:55 AM rd20karim @.***> wrote:

Thank you for providing the direct link. I see that five categories were
defined, it appears that there are two different datasets - HumanML3D (22
joints) and The generated KiT version (21 joints). I'm interested in
knowing if this dictionary categorizes all of the vocabulary found within
these datasets.
—
Reply to this email directly, view it on GitHub
https://github.com/EricGuo5513/HumanML3D/issues/30#issuecomment-1403662087,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRYNB54HQZ5UOEUSOJV6OTWUEWFDANCNFSM6AAAAAAUFSBXRI
.
You are receiving this because you commented.Message ID:
@.***>


text:
[plist2html] Print total number of reports in plist-to-html

Closes #2539

Running CodeChecker parse -e html reports -o html_reports will convert
the reports to html but the Total number of reports: 0 even if there
were reports. This commit will fix this and will print the number of reports
and summary header in the source code of the plist-to-html tool and not in
the CodeChecker parse command.

Please create a PR for the release v6.11.1 branch too, Thanks!

authors: csordasmarton gyorb

repo: Ericsson/codechecker


text:
I am getting the below error after connecting to wandb and using ./run.sh [path/to/config]

GPUs in usage: 0
Running Centralized experiment with 828 epochs
Setting up distributed...
Let's use 1 GPUs!
Done
Initializing wandb...
wandb: Currently logged in as: swapnikvarala. Use wandb login --relogin to force relogin
Problem at: /usr/local/lib/python3.11/site-packages/wandb/sdk/wandb_init.py 837 getcaller
Traceback (most recent call last):
File "/content/FedDrive/src/run.py", line 31, in
run_experiment()
File "/content/FedDrive/src/run.py", line 15, in run_experiment
main(args)
File "/content/FedDrive/src/centr_setting/main.py", line 17, in main
writer, device, rank, world_size, logger, label2color, denorm = setup_env(args)
^^^^^^^^^^^^^^^
File "/content/FedDrive/src/utils/utils.py", line 36, in setup_env
logger = CustomWandbLogger(name=get_job_name(args), project=get_project_name(args.framework, args.dataset),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/FedDrive/src/utils/logger.py", line 7, in init
super(CustomWandbLogger, self).init(name=name, project=project, group=group, entity=entity, offline=offline,
File "/usr/local/lib/python3.11/site-packages/pytorch_lightning/loggers/wandb.py", line 358, in init
_ = self.experiment
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/lightning_fabric/loggers/logger.py", line 114, in experiment
return fn(self)
^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytorch_lightning/loggers/wandb.py", line 406, in experiment
self._experiment = wandb.init(**self._wandb_init)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/wandb/sdk/wandb_init.py", line 1173, in init
raise e
File "/usr/local/lib/python3.11/site-packages/wandb/sdk/wandb_init.py", line 1154, in init
run = wi.init()
^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/wandb/sdk/wandb_init.py", line 770, in init
raise error
wandb.errors.CommError: Run initialization has timed out after 60.0 sec.
Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 24118) of binary: /usr/local/bin/python3
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/local/lib/python3.11/site-packages/torch/distributed/run.py", line 798, in
main()
File "/usr/local/lib/python3.11/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/torch/distributed/run.py", line 794, in main
run(args)
File "/usr/local/lib/python3.11/site-packages/torch/distributed/run.py", line 785, in run
elastic_launch(
File "/usr/local/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 134, in call
return launch_agent(self._config, self._entrypoint, list(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
run.py FAILED
Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time      : 2023-07-18_17:50:12
host      : f905eb7441a0
rank      : 0 (local_rank: 0)
exitcode  : 1 (pid: 24118)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html

I have same problem.
How to solve Wandb problem?

I disabled wandb mode as you suggested above, still I am facing issues
RuntimeError: CUDA error: invalid device function
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 581611) of binary: /home/cvblhcs22/anaconda3/envs/feddrive/bin/python3
Traceback (most recent call last):
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/site-packages/torch/distributed/launch.py", line 193, in
main()
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/site-packages/torch/distributed/launch.py", line 189, in main
launch(args)
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/site-packages/torch/distributed/launch.py", line 174, in launch
run(args)
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/site-packages/torch/distributed/run.py", line 710, in run
elastic_launch(
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/cvblhcs22/anaconda3/envs/feddrive/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 259, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
run.py FAILED
Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time      : 2023-11-23_19:21:01
host      : ubuntu-22-0-4
rank      : 0 (local_rank: 0)
exitcode  : 1 (pid: 581611)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html

I also have the same issue as @kagHarsh above despite WandB working. How do I fix the issue of the local rank? I did all the instructions given in the README.

authors: hwan-sig kagHarsh kumarrah2002 swapnik-iitkgp


text:
🛑 舞萌Net (maimai DX Net Server) is down

In 5b95bb2, 舞萌Net (maimai DX Net Server) (https://maimai.wahlap.com) was down:

HTTP code: 503
Response time: 698 ms

Resolved: 舞萌Net (maimai DX Net Server) is back up in 23dfc05 after 3 hours, 1 minute.


text:
Compress and Validation in Serialization

Currently the generic implementation of CanonicalSerialize  and CanonicalDeserialize ignore the compress and validate flags.
We should use them properly.
related commit: (1, 2 ).

Affecting: aead.rs, bls.rs, example.rs.

@mrain Just out of curiosity, do you already have in mind a design of how to go about this?

@tessico Discussed with @alxiong before. We thought that the only thing affected by this change is here. We only need to update the macros for derived implementation of serde's serialization to incorporate the 2 new flags.

authors: mrain tessico

repo: EspressoSystems/jellyfish


text:
Upgrading 10.9 to 10.9.1 fails to set default EnableArcMapRuntime true

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Module Version

3.3.0

Affected Resource(s)

ArcGIS_Server

Configuration Files

# Copy-paste your DSC JSON configurations here - for large configs,
# please use a service like Dropbox and share a link to the ZIP file.

Expected Behavior
On upgrades to 10.9.1 that do not have the EnableArcMapRuntime set to false, have it automatically enabled

Actual Behavior
On upgrade to 10.9.1, when EnableArcMapRuntime is not set it will not enable it. When you go through an InstallLicenseConfigure after the upgrade, it still will not install the ArcMap Runtime support when the parameters is not set (should be though due to the default value being true)
I ran this over in 3.3.2 on a 10.9.1 ArcGIS Server and it did not set it (did not have the EnableArcMapRuntime parameter set but it should set since default value is set to true)

Steps to Reproduce

Install 10.9 ArcGIS Server without parameter EnableArcMapRuntime on 3.3.0
Upgrade 10.9 to 10.9.1 without parameter EnableArcMapRuntime on 3.3.0
Run InstallLicenseConfigure without parameter EnableArcMapRuntime on 3.3.2
Notice how the ArcGIS Server Program does not have that setting enabled:

Important Factoids
I added another node to step 3 (it installed arcmap runtime on that new node, but failed to change the setting on the existing node
Received error:
Failed to Join Site after multiple attempts. Error on last attempt:- Failed to join the site 'https://existingmachine:6443/arcgis/admin'. Failed to join the site 'https://existingmachine:6443/arcgis/admin'. The state of the ArcMap Runtime Support feature configured on machine 'dotappq004vw.state.in.us' does not match site running at 'https://existingmachine:6443/arcgis/admin'. All machines in a site are required to have the same ArcMap Runtime Support configuration. Information on how to resolve this issue is available in the help topic 'About multiple-machine ArcGIS Server sites'.
I ended up removing the runtime on the new node then running through powershell again and it successfully joined the machine to the site

References
https://enterprise.arcgis.com/en/server/latest/administer/windows/disable-arcmap-runtime.htm

Hi @BrendanEsri,
I believe the reported issue here stems from two things. First, I believe step 2 was caused by a bug in v3.3.0, that was addressed in v3.3.1: https://github.com/Esri/arcgis-powershell-dsc/issues/359.
And the second item, opting in or out of ArcMapRuntime after the software has already been installed requires a modify install, which will need to be done manually through the Windows Add/Remove Program feature. The module supports opting out of ArcMapRuntime during a fresh installation of 10.9.1 or upgrade to 10.9.1. This is why you observed the original AGS node keeping ArcMap Runtime disabled, and the newly added node having it enabled.
Thanks,
Cameron K.

And the second item, opting in or out of ArcMapRuntime after the software has already been installed requires a modify install, which will need to be done manually through the Windows Add/Remove Program feature.

@cameronkroeker  Shouldn't/Couldn't this be implemented to make it more "desired state"?
and
"idempotent" in regards of reapplying configurations and changing configurations to change the system?

And the second item, opting in or out of ArcMapRuntime after the software has already been installed requires a modify install, which will need to be done manually through the Windows Add/Remove Program feature.

@cameronkroeker Shouldn't/Couldn't this be implemented to make it more "desired state"? and "idempotent" in regards of reapplying configurations and changing configurations to change the system?

I agree, adding support for modify install is a more desirable state. This feature request will be elevated for a future release.
Thanks,
Cameron K.

authors: BrendanEsri cameronkroeker spitzerr

repo: Esri/arcgis-powershell-dsc


text:
Add missing trailing quote marker in Surface placment metadata

Fixes problem with loading the samples in the developers website

@TADraeseke @tschie @eri9600 Not sure who to tag for this, but could one of you take a quick look and merge this?

^ FYI - did this for Noah since no one else was around.

authors: mikewilburn noahmulfinger

repo: Esri/arcgis-runtime-samples-android


text:
Kotlin sample: export tiles

hey @TADraeseke, another kotlin sample for you to take a look at when you can! The biggest changes I made from the Java Android sample, is that rather than the preview window showing a larger mapview area than the one exported, the preview window now shows exactly the map exported as defined by the preview window (it follows the Java SDK workflow in that way). I think this is a little clearer to the user, but please let me know what you think.
Also have the new progress indicator layout: some issues I have with it are I haven't figured out how to chance its indicator from orange to blue (to keep with our colour scheme) and that you can click away from it and the progress disappears (but the job still completes). Not sure if we need to add in an indicator somewhere there is still a download happening in the background.
One final thing, I'm getting a crash when rotating the device: I haven't figured out why, but it's to do with the geometry of the download area returning null (see code block for where crash occurs). I'm not sure why this should be when rotating the device (if it's just reloading the app, I don't see this crash on start up).

Thanks @TADraeseke ! Could you take another look please? Still having problems understanding why I'm getting a crash when rotating to landscape. When you have a moment could you take a look please and see if anything obvious jumps out at you as to why and let me know please? Thanks!

@sorenoid please could you do a second review for this sample? @TADraeseke and I are still working on a way to make the progress bar colours match the rest of the app: other than that work in progress (no code in here yet for that) everything else is ready for the second review. Thank you!

@TADraeseke I've implemented those changes we discussed: this should now be working on all devices! could you take another look through please? Really like your addition to the progress bar, thanks for that!

@TADraeseke thanks very much for that! Changes made: could you take a final look before I merge please?


text:
arrow-down, arrow-left: not the same

down-arrow is not an arrow. It is a triangle. There is no down-facing arrow. There is a left-facing triangle called left-triangle-arrow.
Perhaps these naming conventions could be tidied up?
I recommend first keeping them consistent among themselves, and then possibly just calling them the one thing they are. A triangle is a triangle. An arrow is an arrow.

Indeed. This something we need to work on with the icon team.
We can also consider aliases for backwards compatibility.

Doing some issue pruning... @julio8a thoughts on deprecating the icons in CW and enforcing use of https://github.com/ArcGIS/calcite-ui-icons ? There seems to be some overlap between the two sets and it'd be nice to consolidate and use one.

@macandcheese, All the icons from CW are in the calcite-ui-icons repository. I talked with @paulcpederson yesterday and we discussed adding a deprecation message for the icons in CW.
deprecation message we used in arcgis-apps-icons:
DEPRECATED
Please migrate to: calcite-ui-icons
The arcgis-apps-icons repository along with the reference page will be deleted on 9/14/2018.

We should open a separate issue for moving to calcite-ui-icons. This issue can be closed as we won't control naming anymore.

authors: asangma jonathantneal julio8a macandcheese paulcpederson

repo: Esri/calcite-web


text:
After getting directions using the popup and closing the popup, the popup persists in shared version

When you get directions from the popup’s directions tab, then close the popup, the popup persists in the shared version of the app.
Steps to repro:

Click on a feature to open its popup
On the directions tab, generate directions
Close the popup
Share the app
Note that in the shared app, the popup is open

Verified in v1.5.

repo: Esri/configurable-locator


text:
Updates for SSMC meeting

Don't merge this until we're done.

Thanks for the effort and feedback Joe.  Files were renamed in #179.

authors: abouffard joebayles

repo: Esri/joint-military-symbology-xml


text:
Kelp (point) symbol issue

This is an issue in:

[ ]  2525C
[ ]  2525B

It is not an issue in APP6-B, APP-6-D
It is fixed in 2525D (https://github.com/Esri/military-symbology/issues/270)

Fixed
SIDC
Name
Feature Type

- [ ]
46120506
Hydrography-Dangers/Hazards-Kelp/Seaweed (Point)
Oceanographic Point

Should be:

This issue was moved to ArcGIS/military-symbology-styles#77

authors: BobBooth lfunkhouser

repo: Esri/military-symbology


text:
TEM2015 Test 02: Layers do not draw in the web applcation

Only one layer currently draws in the application: 5b1b0859e54c47cc9a6dd8d3ab288575
I think this problem is because there is no time widget loaded in the map. Layers that are missing:
Wind Warnings
Wave Warnings
Beaufort Sea States
Underway Replenishment
Winds HIllshade

@topowright the issue seems to actually be that the is no service Military/WaveWatchIII. When the server is back up I will see if this item was released.
@jfrygeo

The title of the app is Maritime Weather Environment and Operational Effects

@topowright @conklinbd @jfrygeo service ags/admin/services/Military/WaveWatchIII.ImageServer does exist on test server so it was released.

@conklinbd @jfrygeo
This is the item I have created for that issue:
https://github.com/Esri/ops-server-config/issues/1345

This works now. I think this is strictly a performance issue.

@conklinbd I still do not see layers drawing in the application

Wait a few minutes and then try again.
@topowright

For the WebApp, "Maritime Weather Environment"  (f844541853f743f7a7c6f1b13aa680a8), there's a performance issue/widget issue with the version of Web AppBuilder deployed with this OpsServer.
In order to make the layers load quickly, press on the time widget, if the time widget is not turned on, it takes a few minutes for the layers to load. This issue has been fixed in new versions of the Web AppBuilder as you can choose to have controls open the widgets when the application is loaded. This was logged as:
[ENH-000088947 Enhancement Request: Allow the time slider widget for the web AppBuilder to be available as an on-panel widget which can be opened at the start.] on 7/9/15.

I am going to treat this as a known issue for 10.3.1. We can retest with 10.4

authors: conklinbd elinz jfrygeo topowright

repo: Esri/ops-server-config


text:
Add support to export map only in Public Notification

Customer request, borough of Kodiak Island,
My only complaint is the lack of option to Export the map alone,  The Public Notifcation -GIS Analyst one works great on my end for Churning out buffers and the actual notification data (our Parcel IDs) for our Community Development Dept.
But on the second Public Notification instant app I’ve been messing about with labeled AS-FieldWorkPrep, The assessing office (AS), only need the actual map portion for their field visits. As they print out the data sheets from their Internal Assessing Software.  Being able to only Export the Map itself would save a step on their end.
This As-FieldworkPrep is essentially what half of the people who use arc in the building are using it for. (Selecting Parcels and printing an 8.5/11 map of the selected parcels with our imagery for reference during field work)So being able to Export Map only would be the only change that’d make it a lot easier on my end.

@chris-fox we initially talked about this, I will follow up with IA teams

Sarah suggested that we add a parameter "Map only" instead at runtime. https://devtopia.esri.com/WebGIS/arcgis-portal-app-templates/issues/8960

reach out to the customer about our proposal

closed as completed

repo: Esri/solutions-components


text:
Update the javadoc

improvements needed

We are aware of that. We will add further improvements in the upcoming days.
If you mind telling us which classes are the most problematic for you, that would help us improve :)
Cheers!

repo: Estimote/Android-Indoor-SDK


text:
v0.3.7 Compatibility

PalEdit v0.9.3 takes several minutes to get past Loading GVAS file on a Palworld v0.3.7 server save file, and after it does it does not successfully load a list of Players or Pals in the world. I have tried various combinations of while the server is offline and online, and run as an administrator, and both the nexusmods and github downloads just to make sure it wasn't user error somehow.
I can get it to load an old single player save both before and after running it in v0.3.7, but I didn't catch any new pals or anything like that.

Around the 17th they updated the way saves are or something, some other tools have fixes for this but they aren't super reliable yet from what I've read

Yea ... having the same issue here, where PalEdit v0.9.3 unable to load the latest save file from PalWorld.

not sure if this is an easy switch or not but maybe switching to this dependency: https://github.com/deafdudecomputers/PalWorldSaveTools
instead as it seems to be regularly updated where the one this app is currently using doesn't appear to be updated?

repo: EternalWraith/PalEdit


text:
Fix links in glossary.md

The links don't seem to be working.
When I click on the letters, it doesn't send me to the right section on the page.
Please check the formatting of the links

For those looking for a hint check out this stack overflow post: https://stackoverflow.com/a/51226139

repo: EthBuilders/Curriculum


text:
Error compiling on ubuntu 20.04

I tried compiling Kompute on ubuntu 20.04.
At first cmake failed with:
CMake 3.17.0 or higher is required.  You are running version 3.16.3
I looked through CMakeLists.txt, but saw nothing which wouldn't work in cmake 3.16 (but I'm no cmake expert), so I just changed
'cmake_minimum_required(VERSION 3.17.0)'
to
'cmake_minimum_required(VERSION 3.16.0)'
Then cmake seemed to run ok.
However, when running make I get the following compiling error:
progs/vulkan/vulkan-kompute/src/Algorithm.cpp: In member function ‘void kp::Algorithm::createPipeline(std::vector<unsigned int>)’:
progs/vulkan/vulkan-kompute/src/Algorithm.cpp:268:43: error: conversion from ‘vk::ResultValueType<vk::Pipeline>::type’ {aka ‘vk::Pipeline’} to non-scalar type ‘vk::ResultValue<vk::Pipeline>’ requested
  268 |       this->mDevice->createComputePipeline(*this->mPipelineCache, pipelineInfo);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is using gcc 9.3.0.

Thank you for reporting this @wziard! Concidentally I'm currently working on integration with Android NDK I have actually ran into this issue as well. My understanding is that this may not be due to the lower version on CMAKE, but instead if may be due to using a lower version of the Vulkan API - the Android NDK is using Vulkan 1.1 instead of 1.2. This is not for certain, so I want to dive into this further. The reason why I want to find exactly what the issue is, mainly to make sure we can have a MACRO guard based on the respective config.
The reason why I suspect it may be the Vulkan version is because, interestingly enough disjoint to this, I had opened a question on the VulkanHPP repo to get further understanding of why this particular function actually has different API https://github.com/KhronosGroup/Vulkan-Hpp/issues/706
If you want to add a quick-fix for now, you can basically change this:

-    if (pipelineResult.result != vk::Result::eSuccess) {
-        throw std::runtime_error("Failed to create pipeline result: " +
-                                 vk::to_string(pipelineResult.result));
-    }

     this->mFreePipeline = true;
-    this->mPipeline = std::make_shared<vk::Pipeline>(pipelineResult.value);
 }

Into this:
+    //if (pipelineResult.result != vk::Result::eSuccess) {
+    //    throw std::runtime_error("Failed to create pipeline result: " +
+    //                             vk::to_string(pipelineResult.result));
+    //}

     this->mFreePipeline = true;
+    this->mPipeline = std::make_shared<vk::Pipeline>(pipelineResult);
 }

This was taken from my diff, hence why the + and - symbols.
If you try this, it would be great to get further insights on the points above, such as your version of Vulkan SDK, whether tests run successfully, etc. Thank you, looking forward to hear your thoughts.

Updated comment above as I forgot to add the assignment of the variable vk::Pipeline pipelineResult

Ik think it's vulkan 1.2 on ubuntu 20.04. The deb package version is is 1.2.131.2-1 , but I'm not really sure how to see which version of the spec it is by looking at the headers themselves.

@wziard that's great! Thank you for trying it and confirming it worked. The android branch now contains the fix as well, I'll be doing some testing and will be adding this with a macro guard to ensure it can be enabled/disabled with compiler flags.

Fixed via https://github.com/EthicalML/vulkan-kompute/commit/eae63a32a22ab96691f2773cb0e36165518d3e96 - now you can compile with the flag -DKOMPUTE_CREATE_PIPELINE_RESULT_VALUE to force the return of ResultValue instead of Result.

authors: axsaucedo wziard

repo: EthicalML/vulkan-kompute


text:
Fix Ctrl+f keyboard shortcut to invoke Search dialog

subj.

UPD: ctrl+f shortcut doesn't work unless you click app window somewhere, or hover item to invoke item stats popup.

The windows does have to have focus to be able to recognize keyboard shortcuts.

Tried to drill ctrl+f for latest release 3.3.1
Doesn't work until you hover (not click) any sack panel or item

Found that the Main Form was not processing keys and it was only the child controls.
The property KeyPreview needs to be set on the Main Form.

authors: EtienneLamoureux afjback ejfudd

repo: EtienneLamoureux/TQVaultAE

license: mit


text:
Suggestion For new version of TQVaultAE

hi i have 1 request 1 new patch f you work on it
this software is the best But it has a fundamental lack
Classification by level
maybe you think about this but it is so hard or impossible i don't know but for example
I save all of my hats (helmets) in 1 tab But it takes a lot of time to manually sort them by level
or for relics and weapon
is this possible for you to give us a new auto arrangement base on the level?
thank you so much

Hi!
Thanks for your input.
Indeed there is not item sorting by level, but you can highlight by level pretty easily.

I know. I just to know can you add this option, or it is impossibles
thank you anyway my dear brother


text:
🛑 Lisandro Bril is down

In 4bf2992, Lisandro Bril (https://www.lisandrobril.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lisandro Bril is back up in 84e5383.

repo: Etixen/upptime


text:
🛑 Lisandro Bril is down

In 0a2d76d, Lisandro Bril (https://www.lisandrobril.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lisandro Bril is back up in c65a23a.


text:
Awu/threejs example

create a new one.

repo: Euclideon/udSDKSamples


text:
Input simultaneously to all panes

I can see that there is support for splitting off extra panes horizontally/vertically, but a feature I am missing from iTerm on macOS is the ability to key in input to all panes in a tab at the same time. I typically use this when working on a number of redundant remote machines over SSH that require the same work done.

Note to myself: iTerm shortcut is Cmd-Shift-I

yes, please, great feature to have. one addition though: allow to exclude panes from that multi-input. e.g.: you have opened 6 ssh sessions to cluster nodes, but want to send commands just to 5 of them.

Definitely a good feature to have.

authors: Eugeny GanapathyRaman danielfinke honza-o

repo: Eugeny/terminus


text:
Add an ability to round to custom number of decimal points

Hi and thank you!
I think it would be a great addition to have be able to round to a specific number of decimal places:
now:
var smallDuration = 499;
var viewValue = humanizeDuration(smallDuration); // -> "0.499 seconds"
var viewValueRounded = humanizeDuration(smallDuration, {round: true}); // -> "0 seconds"

would be nice:
var smallDuration = 499;
var viewValueRounded = humanizeDuration(smallDuration, {round: 1}); // -> "0.5 seconds"

Could this just proxy to toFixed?
(0.499).toFixed(1)  // => "0.5"
(0.499).toFixed(2)  // => "0.50"
(0.499).toFixed(3)  // => "0.499"

If I proxy it to .toFixed() I would lose the time units.

If you'd like to submit a PR, feel free!

That would be awesome :)

Perhaps round param could take a function instead of boolean value. This would be far more flexible as I need for example to cut off seconds, not to round them.

@topr Agreed. One thing that makes this tricky is how rounding affects other numbers. For example, what happens if you do something like this?
humanizeDuration(123456, {
  round: function () {
    return 0
  }
})

Would it be an issue? Not sure but I guess result should then be the same
as if 0 would be passed in instead of 123456, shouldn't it?
I don't think the lib should care or prevent such a misuse. If someone
passes a custom impl then it's his responsibility to make it right.
I was mostly thinking about use cases like humanizeDuration(123456, { round: Math.floor })
On 2 Feb 2017 22:58, "Evan Hahn" notifications@github.com wrote:
@topr https://github.com/topr Agreed. One thing that makes this tricky is
how rounding affects other numbers. For example, what happens if you do
something like this?
humanizeDuration(123456, {
round: function () {
return 0
}
})
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/EvanHahn/HumanizeDuration.js/issues/73#issuecomment-277111919,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA1TIpAvF0-3Xsd6UjHiXpK98VDnSJv2ks5rYl-igaJpZM4FckB4
.

What if you're trying to humanize the largest 2 units and then you choose to round down? For example, your result might start like this before you round and do your cutoff:

2 weeks, 6 days, 23 hours, 59 minutes

Depending on how you round, the results can be different. If you round up, you could get "3 weeks". If you round down, you should get "2 weeks, 6 days". These rounding issues can cascade, which is why it's tricky (but not impossible).

+1. This would be nice.

Do it.

Lots of people seem to want this feature and things around it. I want to do it but I'm worried it gets really hairy with lost of corner cases. What do people think about my comment from February?

{
  units: ['d','m','s'],
  unitsConfig: {
    m: {
      measure: 30,  // unitMeasures
      round: value => 1
    }
  }
}

This library is in maintenance mode, so I won't be adding new features, sadly. I'm going to close this issue. See #120 for more.

Use pretty-ms instead.

authors: EvanHahn marcj mickeyvip stevenvachon topr vincentjames501

license: unlicense


text:
Adding timeout options to git config

On 12/8/2014, a change was merged to the Stripe ruby gem that allowed developers to configure the open and read timeout values when connecting to Stripe:
https://github.com/stripe/stripe-ruby/issues/46
https://github.com/stripe/stripe-ruby/pull/74
This PR passes along these config options from stripe-rails to the stripe ruby gem.

Hi @rgerard thanks for the PR. I'll be happy to merge this once you've added a passing spec for it. Thank you!

Hi @rgerard FYI I've moved this to https://github.com/Everapps/stripe-rails/pull/77 and have added the specs over there.

authors: rgerard tansengming

repo: Everapps/stripe-rails


text:
SetFontFamily pattern for every document created

Would you have to set a default FontFamily for every document, without having to add to each paragraph you create?
follows the example in the image.

It's not exposed now, but I would suggest doing this differently. Just work without setting font family and then once everything is done just loop thru all paragraphs
foreach (var paragraph in document.Paragraphs) {
    paragraph.SetFontFamily(...).SetFontSize(10)
}

You will fix this in 3 lines. I'll keep this open, as it should be possible to define default font.

Não está exposto agora, mas eu sugeriria fazer isso de forma diferente. Basta trabalhar sem definir a família font e, em seguida, uma vez que tudo é feito apenas loop th através de todos os parágrafos
foreach (var paragraph in document.Paragraphs) {
    paragraph.SetFontFamily(...).SetFontSize(10)
}

Você vai consertar isso em 3 linhas. Vou manter isso aberto, pois deve ser possível definir fonte padrão/style.

Thanks, I thought I had a generic method, but so too solves my problem.

I will add native way to do it in next release:

https://github.com/EvotecIT/OfficeIMO/pull/48

PR was merged
      public static void Example_BasicWordWithDefaultStyleChange(string folderPath, bool openWord) {
            Console.WriteLine("[*] Creating standard document with different default style");
            string filePath = System.IO.Path.Combine(folderPath, "BasicWordWithDefaultStyleChange.docx");
            using (WordDocument document = WordDocument.Create(filePath)) {
                document.Settings.FontSize = 30;
                document.Settings.FontFamily = "Calibri Light";
                document.Settings.Language = "pl-PL";

                var paragraph1 = document.AddParagraph("To jest po polsku");

                var paragraph2 = document.AddParagraph("Adding paragraph1 with some text and pressing ENTER");
                paragraph2.FontSize = 15;
                paragraph2.FontFamily = "Courier New";

                document.Save(openWord);
            }
        }

Should be available in next version

Sorry, but in Settings there is no FontSize.

authors: PrzemyslawKlys eliseudev

repo: EvotecIT/OfficeIMO


text:
Extending available FieldCodes and allow setting parameters

This PR closes #71
The main contribution is a fieldCodeParser, which interprets the field code strings into their components. There are a few open questions that have been added as comments in the code. Though this approach is not the final perfect one, it might be a good start for further extensions in that direction.
Also, I did almost no refactoring here to avoid blowing up this PR too much.
@PrzemyslawKlys WDYT?

I guess if it's a condition, it would not impact my setup, but maybe better to do separate PR to adjust it to multiple OS development scenarios like you mentioned in the issue.
As for the PR itself, can you add maybe 1-2 different examples (not tests) showing how to use fields there are non-standard (aka showing what you added). From the code that I do understand everything seems ok, for the other I probably lack some knowledge to be able to fully comprehend it - but as long as everything works I'm happy ;)

authors: PrzemyslawKlys byteSamurai


text:
Add-WordList ignores -Paragraph parameter

Thanks for this great module!
I'm trying to add a list after a certain paragraph in a document. This works great for Add-WordText, but Add-WordList always puts the list  at the end of the document.
Example Document:
This is a lot of intro text, ipsum etc.
Insert list after this.
This is a lot of secondary text.

Example Code:
$test = Get-WordDocument -FilePath "C:\temp\text.docx"
$array = @("Test1", "Test2", "Test3")
$paragraph = Get-WordParagraphs -WordDocument $test | Where-Object Text -eq "Insert list after this."

Add-WordList -WordDocument $test -Paragraph $paragraph -ListData $array -ListType Bulleted -ListLevels 0 -Supress $True
Add-WordText -WordDocument $test -Paragraph $paragraph -Text "List:" -FontSize 11 -HeadingType "Heading3" -Supress $True

Save-WordDocument -WordDocument $test -FilePath $outPath -OpenDocument

Saved Document:
This is a lot of intro text, ipsum etc.
Insert list after this.
List:
This is a lot of secondary text.

1.	Test1
2.	Test2
3.	Test3

It does this even if I'm not adding any text. New-WordList have the same behavior. There aren't any examples with Add-WordList and the paragraph parameter, so am I doing something wrong?

Ye, I can confirm this. Given that I am working on completely new module I am not sure if I will be fixing this.

Thanks for the suggestion, but I don't see how I can use that to input it into a specific place in the document.
I have two workarounds for other people that need to do something similar.
One where you get a list object from New-WordList and use the InsertListAfterSelf on the document itself.
You have to get a document or create a temporary one if you don't want to append it to the "main" one.
This is because the New-WordList function has Add-WordList in it and WordDocument parameter as a requirement. This should maybe not be there.
This solution outputs it to a numbered list, even if you supply it with "-Type Bulleted". I don't know why.
$paragraph = $document.Paragraphs | Where-Object Text -eq "Insert List here."
$temp = Get-WordDocument -FilePath $tempPath

$list = New-WordList -WordDocument $temp -Paragraph $paragraph -Supress $false {
    New-WordListItem -Level 0 -Text "Test 1"
    New-WordListItem -Level 0 -Text "Test 2"
}
$paragraph.InsertListAfterSelf($list)

The other one is where you loop through an array and adds them as text instead. Then sets that paragraph to style "Bulleted", I don't know if this is correct for English documents, because my document style is in my native language.
This adds an actual bulleted list, but I didn't find any solution for creating indentation, since IdentLevel is ReadOnly.
$paragraph = $document.Paragraphs | Where-Object Text -eq "Insert List here."
$listArray = @("Test 1", "Test2")

foreach ($listItem in $listArray) {
    $paragraph = Add-WordText -WordDocument $document -Paragraph $paragraph -Text $listItem #-Supress $True
    $paragraph.StyleName = "Bulleted"
    #$paragraph.IndentationBefore = 1 # Does nothing
    #$paragraph.IndentLevel = 1 # ReadOnly :(
}

You can actually try to fix that in the cmdlet itself - it shouldn't be very hard, but like I said - I wrote completely new .NET library https://github.com/EvotecIT/OfficeIMO
I talk about it a bit here: https://twitter.com/PrzemyslawKlys/status/1496576889250582533
It's far superior and works on Windows / Linux and Mac. The PS version if it will be released under https://github.com/EvotecIT/PSWriteOffice but there's a lot of open points yet to make it workable. I will get complete control over .NET and PowerShell library so it will allow me to configure stuff that was not possible before. It has support for sections, headers, footers, lists, tables and even cover pages. But it requires more work on my side.

authors: PrzemyslawKlys kakemonster

repo: EvotecIT/PSWriteWord


text:
Old versions (<2.0) of git don't have git remote get-url. This uses

an different way of getting the same information which is hopefully more widely supported.
Fixes #306.

Where did you find that old git version

@wilke?

Where did you find that old git version

Some place where testing failed :)

authors: hategan wilke

repo: ExaWorks/psij-python


text:
Add CustomQuoteCharacter for reading csv files

Hello all,
My name is Christopher, and we have been using your package in production for a couple of years now. I would like to thank you all for this excellent library—my colleagues and I really appreciate your work.
Initially, we thought the project wasn't being maintained anymore, which is why this pull request is coming so late.
We encountered an issue with one file import, where the file uses a custom quote character. We added support for this over a year ago, and it's been working well since then. 😀
I’ve noticed that this might resolve issue #580: "Cannot configure QuoteChar."
We would appreciate it if this could be included in a new version so that we no longer need to rely on a cloned repository.
If you need any changes or further assistance, please feel free to ask—I'd be happy to help!
Kind regards,
Christopher
(Edit)
After some checks, I remembered our specific problem: the CSV contained irregular fields with random quote characters, and additional quotes appeared randomly in subsequent rows and cells, which disrupted the CSV reading.

Looks good, thank you!

@appel1 when can we expect a release on nuget? :)

repo: ExcelDataReader/ExcelDataReader


text:
feat: add post box widget

Customize theme with our own color scheme and
add eslint react hook rule

@lily06

authors: ExiaSR haotianzhu

repo: ExiaSR/hyperion


text:
This education experience violates the original Skills course

Describe the issue
Why on earth have you decided to generate this repository from the template github-education-experiences/primer-copilot and fork a repository from this repository for every learner? This is a totally absurd idea. Your fellow Hubbers who have created the Skills course skills/copilot-codespaces-vscode have thoughtfully let learners generate a repository from the Skills template, so that learners can see a button that says Compare & pull request after pushing a commit to a branch and can avoid opening pull requests in the original repository. You had better respect them when you create an education experience using a Skills course.
To Reproduce
Follow this experience:
https://education.github.com/experiences/primer_copilot
Expected behavior
Learners are given a repository generated from the template github-education-experiences/primer-copilot, not forked from this repository.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The template repository is mistakenly updated to Step 1. I have opened a pull request (github-education-experiences/primer-copilot#1) that reverts the commit.

@morganersery1 Hey, why did you delete the experience?


text:
[Performance] LHNOptionsList renders unnecessarily when app starts

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!

What performance issue do we need to solve?
inefficient React component rendering
What is the impact of this on end-users?
I suspect possibly slower boot time since each render leads to the sidebar re-rendering. If you look at a react profiler session and check how many times the component renders and for how long it's quite a bit

List any benchmarks that show the severity of the issue

Add static whyDidYouRender = true to the LHNOptionsList
Boot the app
Check logs and see that we are re-rendering the LHNOptionsList because:

props.contentContainerStyles is passed as an array (could be memoized instead)
props.data is passing an object that has the same value (also could be memoized)
props.onSelectRow is passed as an anonymous function so it gets re-created on each render and react will render the child

Proposed solution (if any)

Only pass a new reference here when the styles change instead of passing an array directly:

https://github.com/Expensify/App/blob/8a6bc17ecd01375527541829f5b6f79151c0da64/src/pages/home/sidebar/SidebarLinks.js#L142-L145

If the value of optionListItems does not change then pass the same reference as before

https://github.com/Expensify/App/blob/8a6bc17ecd01375527541829f5b6f79151c0da64/src/pages/home/sidebar/SidebarLinks.js#L146

Move onSelectRow to a component method and pass this.onSelectRow instead

https://github.com/Expensify/App/blob/8a6bc17ecd01375527541829f5b6f79151c0da64/src/pages/home/sidebar/SidebarLinks.js#L150-L153
List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)
See above
Platform:
Where is this issue occurring?

[x] Web
[x] iOS
[x] Android
[x] Desktop App
[x] Mobile Web

Version Number: 1.2.22-3
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork

Not really a daily. I'm still investigating whether this will improve performance significantly or not.

Haven't been able to verify there is much improvement from fixing this so gonna close out.

repo: Expensify/App