Explain user vs service account credentials

I think for many users running code locally, they might not want to go through the hassle of making a service account, so let's explain how to use gcloud with their user creds.

fyi @ncclementi @j-bennet this explains how to authenticate without making a service account.

@ntabris Have you verified that this works?

@ntabris Have you verified that this works for read/write use case?

Yes

Just a heads up, I tried to do this with python 3.10 in the environment and it didn't work. had to use python 3.9 to be able to run  $ gcloud auth application-default login

we are on 3.10 and gcloud auth application-default login works for me 🤔

@j-bennet and I were looking into it. It looks like there is also a gcsfs issue. I was able to make the reading using application-default login without a service account, but can't make the writing work, there is some problem with passing the token.

Naty opened an issue in gcsfs: https://github.com/fsspec/gcsfs/issues/553


Add Library support

Add library feature so pipi records what books you've read (a common problem I have is remembering if i own a book or not) (use my airtable, and build an app that moves Kindle books to rhe Airtable)


Schema update on bittensor-subnet

Remove totalRewards from NeuronMetagraph model
Updaate axonIp type (number-> string)
Filtering metagraph by axon ip (when the search string is in IP address format)

Please remove decimeal points from final "TOTAL" column. Sorry asked a few times ..easiest to bundle into this PR


fix(index.d.ts): add index.d.ts file

:tada: This PR is included in version 1.8.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add function that executes after poweron

@jaruba - I have created the function now to support changing input source while tv is currently off. It uses an extra function that turns on tv and repeatedly checks if it was successfully turned on.
To cover those users with erratic on/off states I ensured:

The input source operation is executed first (only at the end if current TV state is off the extra function to turn on tv executes)
The loop to check if tv operation was successful only tries for 3 minutes and stops if unsuccessful within that period

The only downside I see is the input change request command get execute twice for those with wrong on/off state (but only if state changes from off to on within 3 minutes). For me that would be an acceptable edge case...
It has been working successfully now for a week on both my TVs.
Perhaps you can try it out/have a look before we merge to master?

@Screwdgeh This PR has been sitting here for too long, we can merge it if you want and figure out improvements later on. My initial thoughts are that we could set a global variable for the "execute_after_poweron" action, check if it is set in status() when the state is on, and clear it after executing the action. I think this might be better then polling.

@Screwdgeh This PR has been sitting here for too long, we can merge it if you want and figure out improvements later on. My initial thoughts are that we could set a global variable for the "execute_after_poweron" action, check if it is set in status() when the state is on, and clear it after executing the action. I think this might be better then polling.

Closing as we are moving on with merge of code by Ollo69


fix warning on windows C4267

since size_t and unsigned int are different on windows we have to cast to entity_type.

Coverage remained the same at 100.0% when pulling dffc229f295b4f44b973175df3f966dc4661c7c8 on Milerius:dev into 01559410a9d64179fe02ccef613d0ec6a428ca5f on skypjack:master.

Not exactly conforming to the rest of the codebase, but I'll merge the PR and adapt the changes. Not a great problem actually.
Thank you for pointing out issues on Windows. Help on this is appreciated, for it's not the platform I use to work with EnTT on a daily basis.


[rule34video] Extract tags for videos

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

Adds support for extracting tags from rule34video.com. The site provides tags for videos (e.g. see the video here (NSFW warning), this PR extracts those tags and adds them to the info dictionary.
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

Copilot Summary

🤖 Generated by Copilot at b1722a1
Summary
🚀🗣🔒

Add support for --write-link and --write-url options to write video or playlist URLs to a file. Refactor the code for writing metadata files to avoid duplication and improve readability.

is_valid checks
refactored and improved
autumn of bugs ends

Walkthrough

Use count: in tests
Use re.findall. That way you can even inline tags in the return
Remove unnecessary escapes from the regex
Do not use .* in the regex

Do not use .* in the regex

What would you suggest instead? I'm not a big regex buff.
Rest of the issues should be fixed.

[^>]* should work in both places.
FYI, the reason not to use .* is to avoid catastrophic backtracking.


Having both a class and a namespace with the same name results in CS0426.

Reproducable in version 1.0.0-beta07 taken from nuget.org.
Take for example the following scenario:
namespace Foo
{
    public class Foo {}

    [EnumExtensions]
    public enum TestEnum
    {
        Value1
    }
}

The generator would generate something like this:
namespace Foo
{
    public static partial class TestEnumExtensions
    {
        public static string ToStringFast(this Foo.TestEnum value)
            => value switch
            {
                 Foo.TestEnum.Value1 => nameof(Foo.TestEnum.Value1),
                 _ => value.ToString(),
            };
    }
}

In this case Foo is seen as a class name instead of the namespace, resulting in the following error: Error CS0426 : The type name 'TestEnum' does not exist in the type 'Foo'.
This should be fixable by adding global:: before Foo.TestEnum.

Thanks, this should be fixed in the next release!


[Addition]: Mixed PantherX/Heltec cluster of 15 HS

Hotspot b58 Addresses
11271PuU6q8a57pSiaxfmgGdNvsgEVvLz3NgpQx23AdzK8uVB57i
1127vXS9VP53pnjxioQUwPPcjWnYP6p6buqh4doSa27f1j89fFnd
112CcdMWNsJJu763gx1zhaTpEe94uu6FP7uNF6SXCGqC27VA9f1Z
112gLaF8j4257niDPpuig5nJ4r46wnzAKA9LjHztbHpXEPzeUVLg
112kkuZSKiinkWETWDiUhBwLkaYqj7AsdZHvyiiwA3Ng34ytMaXj
112KZv2QJbiTeQeEuCVmXhj8sFP9NB31mL9f2FCHziLLQByyMuak
112mvWe7Rqoqd6sANox8btikoGp926GokGRAjzEq4npzhBtx3eFU
112rA1WqFUoBdZBg9WPqUbGRpoRERdke9Jo4rzhUjYUviXpw6JT6
112rjyEL3bvbNCJV73Q7oXPVt6ZkzUgy6isEUpm25Qb2gsgL77HQ
112VnovmiS1iAmZtDz7982Mq3tMF9a7Kv7p9scBFBkpetz2aCyN2
112X68ZfWTupzrW4qXAVjtfMAYrjA6C7GbGGYT1tx9AnBTwEyEZB
118ShBMkFjTSgBMP1nYFCY4Miw5VSddr8vyq1DrGX2qN3uW56nV
11TPRthocaVepF212yYscrcEPffpyNpun5KGrnLDLEgsXCAFZk4
11xgZhsQMjto5rDvbSLz14RJT2nEv5ymHTsmRKumYjjiz59qDuX
11zEyJiTMXGEdpLTaNB5HRLc1JX5N5gn5DxVqBNwea7oxLt8GG8
Discord Handle
No response
Reason(s)
These Hotspots are only witnessing their own brand, have very often a unlikely (perfect) placement, same assertion date-range and usually there are enough real hotspots arround but these do not get witnessed at all.
Below some proof of the cluster(s):

@6CornerDefender @abhay
Is it prudent to put a user on a reject list based on just 3 images? The evidence put forward by the whistleblower is only because the hotspot has not fully witnessed the surrounding hotspots in a short period of time, but everyone knows that witnessing is affected by many factors. Is this project serious? Another question, just a hotspot of the same brand is considered cheating, so users are not allowed to buy hotspots of the same brand? If the hotspot owner owns 50 hotspots, they cannot be of the same brand. If they are of the same brand, they are considered cheating?

Hi, @richardgrb issues raised are further reviewed. Without bias.
Same brand witnessing where other brands nearby do indicate unusual activity in the area.
Although this is only a small piece of the analysis.
If you have a hotspot on the denylist and believe it is not gaming please request a removal using the removals process.

Hi, @richardgrb issues raised are further reviewed. Without bias. Same brand witnessing where other brands nearby do indicate unusual activity in the area. Although this is only a small piece of the analysis. If you have a hotspot on the denylist and believe it is not gaming please request a removal using the removals process.

As a serious project, shouldn't the arbiter make the presumption of innocence first? Instead of putting all the suspects in jail after questioning them like they are now? Same brand sightings are not serious evidence at all, and if someone owns the same brand and presumes him to be a crime, then I think the project itself is lax. It is not surprising to assert on the same day. Some users receive the machine and synchronize the hotspot in the same place. Having said so much, I would like to ask if the reporting system has made this project develop in a good direction? Or more messy? Project development is the most important thing, right?
Also, I made a request but no one replied a word to me.

Hi, @richardgrb issues raised are further reviewed. Without bias. Same brand witnessing where other brands nearby do indicate unusual activity in the area. Although this is only a small piece of the analysis. If you have a hotspot on the denylist and believe it is not gaming please request a removal using the removals process.

Hi,  @6CornerDefender  Thank you for your reply, as helium is a serious project, shouldn't the arbiter make a presumption of innocence first? Instead of putting all the suspects in jail after questioning them like they are now? Same brand sightings are not serious evidence at all, and if someone owns the same brand and presumes him to be a crime, then I think the project itself is lax. It is not surprising to assert on the same day. Some users receive the machine and synchronize the hotspot in the same place. Having said so much, I would like to ask if the reporting system has made this project develop in a good direction? Or more messy? Project development is the most important thing, right?
Also, I made a request but no one replied a word to me.


Fix destroying presenters in nested support fragment

Fix issue https://github.com/Arello-Mobile/Moxy/issues/24

GJ, thanks ;)


Super high CPU usage for 'Nylas Mail Helper'

Seeing very high CPU usage for 'Nylas Mail Helper' on OSX 10.11.2. See screenshot.

Consistently at 80%+, frequently bursting to <100% and bursting over at startup. Makes computer virtually unusable.
Think this is a renamed Electron Helper and to check, I have quit and restarted (the OS and apps) any other current running Electron apps (e.g Slack). It has no effect.
Are there any related issues?
https://github.com/nylas/N1/issues/2068
What operating system are you using?
OSX 10.11.2
What version of N1 are you using?
1.0.8
--
Bug?
Do you have any third-party plugins installed? If so, which ones?
No plugins, fresh install today.
Is the issue related to a specific email provider (Gmail, Exchange, etc.)?
I don't think so, but I have a gmail and a g apps account created.
Is the issue reproducible with a particular attachment, message, signature, etc?
Yes, reproducible on Macbook (2016) and MacBook Pro (2016) using same OSX version with fresh install.

@Joe8Bit One of those processes is the background local sync engine. That should run fairly hot during initial sync as we download, process, and save all of your messages. We're actively working on reducing processor consumption there.
The 2nd process is the main window. It should only have significant CPU utillization when you're actively using the app, or scrolling through, etc.

Thanks for the fast response @emorikawa, that makes sense. Couple of notes:

It seems like initial sync has finished (not sure how to confirm) and CPU usage remains high (even after system and app restart)
Both remain high regardless of active window, neither dropped below 65% in the last couple hours despite active/inactive windows

Is that expected behaviour?

How much mail do you have?

Currently have 25,000 messages (+/-) across two mailboxes. Unread count <20 across both.

Same experience as @Joe8Bit. Sync seems to have completed, but still hitting 90% CPU usage spikes. Already sold on Nylas though:)

Short update. App (version 1.0.8) open for 24 hours, as an inactive application. Average CPU load across both Nylas Mail Helper processes in that time 85-90% according to Activity Monitor.

I experience the same problem under the same conditions as @Joe8Bit. Left it open for around 20 hours at this point.
Additionally, it seems like Mail Synchronisation has stopped at November 2009. Gmail counts about 40,000 messages in my account, however, most of them came in between 2014 and today.

Same here. Excessive resources use (CPU and memory) making my Mac slow, as you can see and in attachments. Sync now runs at least 30 min, so I can't work easily on my Mac

I too am having the same results.

I'm experiencing the same thing, CPU usage nearing 200% for long periods of time - I have no idea how long this will take, there's no progress indicator. I have ~ 65,000 mail messages.

I had to remove Nylas since the app and Mac were not responding. I don't see the point of syncing all emails and not only the most recent ones as IMAP does. Syncing will take forever...

It took longer than I expected for everyting to sync. But after about two hours, CPU use is down to normal for me. Sent from Nylas Mail
        On Jan 18 2017, at 9:54 am, Demetris<EMAIL_ADDRESS>wrote:

          I had to remove Nylas since the app and Mac were not responding. I don't see the point of syncing all emails and not only the most recent ones as IMAP does. Syncing will take forever...

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

Like many others, once my mailbox finished syncing, the CPU spike ended.

Is anyone else seeing high CPU after their initial mailbox sync completes?

Also experiencing this issue. At this point it is between 99%-111% CPU at all times. Unusable.
Fresh install as of yesterday, updated today to 1.0.9. on OSX 10.11.6.

@mrgabefox But has your initial sync completed?

Try syncing via Mail.app on your Mac. It will also have ~100% CPU usage or more.

@grinich Thank you for the insanely quick response.
Totally get it. It appears that it is still syncing - everything is done except one mailbox's spam folder (409 total messages). It's been stuck on that folder for over 3 hours. Somehow knocked out the other ~9k emails from my inboxes in less than an hour.

@grinich - I've got similar problem with local-sync. But mine local-sync is failing hard for some reason after i added IMAP account, it's throwing errors during Syncing.
Therefore CPU goes instantly 100%, local-sync keeps retrying the same error and Nylas Mail becomes so unresponsive that i cannot even delete that Account anymore.

Try syncing via Mail.app on your Mac. It will also have ~100% CPU usage or more.

@grinich Mail.app Never froze my Mac even when I tried to sync 3 accounts at the same time, while Nylas made my work's Mac unusable even with 1 account trying to sync. Nylas is very promising, but this issue had me remove it because I couldn't work. I never had an app freeze my Mac that bad and for that time!
As I said before whats the need to sync all emails and not the most recent one?! It is a waste of resources
@midN When I killed helper, the sync was corrupted and I have to reset accounts to fix Nylas

Nylas Mail is designed to sync recent mails first and also prioritize you Inbox folder. After that, it will sync older messages.

@midN what kind of errors are you getting?

@mrgabefox can you open the activity window via cmd+alt+w? if so, can you open dev tools Console via cmd+alt+i? do you see any errors there?
if you restart Nylas Mail, does it get unstuck from that folder?

Hi all! We're releasing a fix today that will fix an error that caused the app to freeze and continue to use resources without syncing mail, and we think was causing a lot of the issues reported in this thread.
I will let you know as soon as we release 1.0.11. Thanks for your patience folks!

Hi all! we've just released v 1.0.11. Let us know if you continue having issues!

I'm still having the same exact issues as everyone else here. I'm on 1.0.11. It says my mailbox is still syncing despite having left it open for >24 hours. I've tried adding and removing the accounts to no avail. The original Nylas didn't have these issues!

Also still having the same issue even after updating to 1.0.11. Has been syncing for 6+ hours. Updated from N1 where all mail boxes had been successfully synced.

Hi folks-- just because your mailbox has been syncing for "X hours" does not mean it's finished with the initial sync.
You can see details by clicking on this area in the lower left:

Completed folder syncs show as green circles like this:

Whereas incomplete folder syncs are open circles and hovering over them will show how far they have synced:

Please comment if you are still having high CPU and all folders are finished aka filled in green circles.

Due to throttling from Gmail, it's not unusual for a full mailbox sync to take hours to several days. https://support.google.com/a/answer/1071518?hl=en

Ok, that makes sense and is good to know. I also realised that by hovering on a folder that is in progress you get a tooltip that shows how much information has been synced. It's always frustrating when you are not sure if the process is working or stuck, but the tooltip shows that progress is being made.

is anyone here seeing Nylas Mail freeze or not show mail, like n #3198? Just want to make sure that they aren't the same issue

I think this issue is solved. I don't see high CPU anymore.

@jstejada Yes I get the "Nylas Mail is offline" message

@jstejada @deyil I also get the offline message very frequently, as well as IMAP connection/authentication issues.

we've released 1.0.15 with a few CPU performance improvements. let me know if folks are still seeing cpu problems!

just a heads up that we will be releasing more cpu improvements this week courtesy of @mhahnenberg !

hi everyone, 1.0.18 is out with a lot of CPU perf improvements. Let us know what you think!

Closing this for now given the recent CPU improvements—please reopen if further issues encountered.

I am still having issues with nylas mail eating up my cpu and being stuck at 'syncing your mailbox'. It synced part of my mail box and now it is stuck at july of 2015. I left it running for at least 6 hours. The app looks great but unfortunately I can't use something that uses 40% of my cpu at idle.

hi @LasseJacobs , can you try version 2.0.16? it has some more cpu usage improvements

@jstejada No sorry the problem remains.Still high CPU usage and as far as I can see in the 20 minutes I let it run for it did not make any progress syncing. Is there I way I can cancel the sync? Because I don't need my emails from 2015 and apart from that the app works fine. I recieve new emails and I am able to send emails perfectly fine.

@LasseJacobs unfortunately there currently is no way to stop sync.

Hi there, I'm having this problem as well. The mail syncing with my gmail account has been running for 3 days now. I even created a filter in my gmail to delete messages more than a few years old but the syncing is still continuing and the Nylas Mail Helper is frequently showing up around 90% CPU in Activity Monitor. Any ideas on a way to fix please?
For reference, this is on an old (2009) Macbook Pro, 8G RAM and an SSD installed. I'm running OS X Mavericks.
Any helpful advice would be much appreciated. Thanks!

-- As a developer, I understand the need to index and the cost associated with it.  Good job guys
-- As a customer, I don't particularly like my laptop CPU to be at ~91C for hours on end.  ::mad face::
You should probably add a pause sync option.

I have the same issue here. I was wondering why my Mac was losing battery so fast... this is the culprit.

Still happening in 2.0.32 using OSX 10.13.2
Has been using 112% CPU for the last 20 minutes. This did not happen a month ago. It's a shame, I have been really enjoying using this mail client.

I just found out that Nylas is no longer maintained??
https://github.com/nylas/nylas-mail/issues/3564
I'm using mailspring as described in that post -- same author, same client, faster, no sponsored by nylas anymore.


Install on High Sierra

Hi, There is any chance to install it on High Sierra? (homebrew or anything)

You can certainly install on High Sierra via MacPorts: https://ports.macports.org/port/libjxl/details/


Develop a Vue Application for SAP BTP on Cloud Foundry

Tutorials: https://developers.sap.com/tutorials/appstudio-vue-getting-started.html
Hi Raz,
I'm testing this tutorial for the Devtoberfest which will feature this tutorial next week. While doing so, I found the following issue:
Step 3:
I cannot run npm run watch and neither can I run npm install. See here for the detailed logs:

PS: Can you please take care of this before MO as we expect many participants to complete the tutorial then.

Hi @IObert ,
Hi Marius, I've just tested the tutorial - run smoothly. No hiccups.
Make sure that you opened the workspace on this specific project.
When in BAS > Explorer, at the bottom of the pane there's a "NPM SCRIPTS" section. When you expand it do you see that a watch script is available?
Regards - Raz

Yes, I see it but it doesn't work there either :(

I'm running on Trial if that makes a difference and my workspace ID is ws-ckcmg.

I have the exactly same issue with my trial account.

Hi @IObert ,
Can you share a screenshot of the top of the Explorer pane where the workspace is displayed?
Also the logfile of the run that is mentioned at the bottom of the screenshot you shared?
Regards - Raz

Sure thing @raz-korn
Here are the other details:
https://hc-test-lnqhafdr.us10cf.trial.applicationstudio.cloud.sap/index.html#ws-ckcmg
 cat  /home/user/.npm/_logs/2021-11-08T08_21_43_273Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/opt/nodejs/node-v14.17.6-linux-x64/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'watch'
1 verbose cli ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>7 warn lifecycle The node binary used for scripts is /extbin/bin/node but npm is using /opt/nodejs/node-v14.17.6-linux-x64/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: /opt/nodejs/node-v14.17.6-linux-x64/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/user/projects/VueDemo/businesspartners/node_modules/.bin:/home/user/.node_modules_global/bin:/extbin/bin:/extbin/npm/docker/bin:/extbin/npm/globals/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/curl/bin
10 verbose lifecycle<EMAIL_ADDRESS>CWD: /home/user/projects/VueDemo/businesspartners
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'vue-cli-service build --watch' ]
12 info lifecycle<EMAIL_ADDRESS>Failed to exec watch script
13 verbose stack Error<EMAIL_ADDRESS>watch: `vue-cli-service build --watch`
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess.<anonymous> (/opt/nodejs/node-v14.17.6-linux-x64/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
13 verbose stack     at ChildProcess.emit (events.js:400:28)
13 verbose stack     at maybeClose (internal/child_process.js:1055:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /home/user/projects/VueDemo/businesspartners
16 verbose Linux 5.4.0-6-cloud-amd64
17 verbose argv "/opt/nodejs/node-v14.17.6-linux-x64/bin/node" "/usr/local/bin/npm" "run" "watch"
18 verbose node v14.17.6
19 verbose npm  v6.14.15
20 error code ELIFECYCLE
21 error syscall spawn
22 error file sh
23 error errno ENOENT
24 error<EMAIL_ADDRESS>watch: `vue-cli-service build --watch`
24 error spawn ENOENT
25 error Failed at the<EMAIL_ADDRESS>watch script.
25 error This is probably not a problem with npm. There is likely additional logging output above.
26 verbose exit [ 1, true ]

I experience the same in a new dev space.
I'm investigating.

Due to issues with new releases of coa package, there's a need to manually install the latest valid release (2.0.2):

Open a terminal
Go to vue module folder
Run "npm i<EMAIL_ADDRESS>Run "npm i"

Regards - Raz


Object spread can lead to unknown properties added [Regression v3.1.6]

TypeScript Version:  3.6.0-dev.20190719

Search Terms:
spread
type check
Code
// Error as expected, b2 is not a valid key
const foo: {a?: string; b?: string} = {
    //a: "",
    ...{b2: ""}
}
// I meant to overwrite b, but somehow this is accepted
const bar: {a?: string; b?: string} = {
    a: "",
    ...{b2: ""}
}

Expected behavior:
bar should not accept ...{b2: ""}
Actual behavior:
bar has type {a?: string; b?: string}, but at runtime actually has extra property b2
Playground Link:
No problem v3.0.1
Regression v3.1.6
Related Issues:
#30129

I've run into this problem as well. It's still present in 3.7.2
[Other example](Still present in TS 3.7.2)

I've created a PR that will fix this issue.
Could someone check for it please?
#37392

Not sure but seems to me that this issue should have quite big impact in angular apps that use ngrx, where spread operator is commonly used to copy state properties from one action to the next in the reducers... basically it allows you to put any data on the state without being aware of it.

Would love to see this fixed, since it can lead to very undesirable outcomes (inadvertently polluting strictly typed store state, values of forms, data for saving to db, request bodies).

Would love too ! This code should definitely not be correct: const v: { a: string } = { a: '', ...{ b: '' } };

We decided to track excess properties only for actual properties, not for spreads, back in 2017. See the design meeting notes on Spread object literal freshness at #14853.

Eh, this bug is "working as intended"? Well, I guess I question your "intentions" if you are allowing values to mismatch types in a statically typed language. But only sometimes, other times excess property check is working as users expect it to.

var c = {
a: 0,
d: 0
}
var o: { a: number } = { a: 0, ...c}
Seems arguable about whether there should be an error.

I don't see how it is arguable. In my statically typed point of view it definitely should be an error, or at the very least a user should be able to enable a compiler option for it being an error.
We probably will have to use properly typed lenses (and forbid object spreads) to overcome this "working as intended" blunder, which already caused a bunch of bugs in our code which could have been caught early if compiler would have done its job.

The meeting notes from #14853 were written 3 years ago. Isn't type inference better nowadays, which would allow TypeScript to really know which properties the spread object has?

I can't believe it. It would avoid so many bugs...

So I think it is quite important to know why they do not support this, according to the link above:
var c = { d: 0 };
var o: { a: number, b: string } = {
    a: 0,
    b: "",
    ...c,
    d: 100
};

When you spread in c, you don't know what properties it really has.
So TypeScript doesn't really know if you have excess properties in some cases."
Which makes sense, and I guess this problem is just surfacing from the fact that typescript type system is not sound, and this is just a manifestation of that limitation...
I started to look into hegeljs which has some interesting properties though: https://github.com/JSMonk/hegel

I question your "intentions" if you are allowing values to mismatch types in a statically typed language

Typescript, along with any language with subtyping (including Hegel), allows this:
class A { a }
class B extends A { b }
const a: A = new B()
const ab = { ...a } // contains b at runtime -- even though the static type of `a: A`.

I don't like subtyping, but it's unavoidably part of Javascript, and nothing to do with whether Typescript is sound or not. If you want to avoid this problem, use a language without subtyping.

I don't like subtyping, but it's unavoidably part of Javascript, and nothing to do with whether Typescript is sound or not. If you want to avoid this problem, use a language without subtyping.

Believe me, I would love to, but I am stuck at work with TypeScript.

Typescript, along with any language with subtyping (including Hegel), allows this:

But what if we don't use subtyping?
interface A { a: null }

const good: A = { a: null, invalid: true }; // correctly reports error

const bad: A = { a: null, ...{ invalid: true } }; // incorrectly doesn't report error

TypeScript here can statically verify it's an error. Why both cases aren't reported as errors or at least cannot be enabled in compiler to report them as errors? This looks to me like pretty bad inconsistency.

...{} is really rare, so checking spreads of object literals differently from other spreads would complicate the compiler with no real benefit.
I grepped for ...{ in all the .js/.ts files in our user and, besides tests in prettier and flow, found one use, which looks like it was introduced by a mechanical upgrade from Object.assign.

@sandersn I'd say spreading is quite common in JSX when a component like to pass on props to its children.
this could be very useful in React.
regarding this matter Flow does better https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+IFkolXpUCWewUEAwhCQgRDH8wEH4hMnwROHlsNnw4KHwwSLAAC3wANyo4LFxscWQuHgMNZmwsiRSAWglaY1cq-hIAa2wJXNpG4Vxcdvdu3v7B0RxKUYMhKDBSqmbWwIq3eagoOrKSKgH0wtMMPznY7d2SfcoBiEZ-aG5G3Ix085AF-ZhsRoRehqUEiNMgSQHlSruBZxJrMcJwMhzAC+-EgGiCLWMAAIALK0AAqayxAF4scAADpQLFYjDILHCEQzADclKRlMptnsWKO3DgbBJZMp1NpWIAjLwhVi0HSAEysllQSkAeiV9IgUWwWIkOUiWIABjzcHy9dySGqJDTrogoCVNWF9XjCcY9RzoFzpbiCUTScAaXTxVLZUiFcrVWhQliAO6aqgxtClLUQLWmMBdbkWyNwbVYpiefn3EyRCCUV12C0ix3eslYqy1w18rFImIgfImEhwaBBfIABisMtFAHYrN2QEigA

Hi @sandersn,
One pattern we use all the time is:
type MyType = {
  a: number;
  b?: number;
}

const obj: MyType = {
  a: state.a,
  ...(state.b !== undefined && { b: state.b }),
}

to avoid setting optional properties at all when their value would be undefined.
I believe this pattern is legitimate because
const obj1: MyType = {
  a: 1,
}

and
const obj2: MyType = {
  a: 1,
  b: undefined,
}

are not strictly equivalent. For instance, 'b' in obj will return false in the former case and true in the latter.
The fact that TypeScript does not check excess properties in spreads of object literals makes it easy to make mistakes such as:
type MyType2 = {
  myProp1: number;
  myProp2?: number;
}

// Notice there's a typo in { myPop2: state.myProp2 }, but this would compile just fine
const obj: MyType2 = {
  myProp1: state.myProp1,
  ...(state.myProp2 !== undefined && { myPop2: state.myProp2 }),
}


fix: Semantic Search: Use Operand Beta API

After a few hours of frustration, wasn't able to get our Typescript SDK working w/ Webpack 😢. Went ahead and implemented this as a simple fetch call, and added a note pleading for help from smart JS peeps. Search should be working now, provided API key / Index ID is set correctly.
One note: On my development environment, clicking a search result wasn't redirecting me to the right page. Not sure about this, might be something to quickly look into (I likely did something wrong here).

For anyone else new to the semantic similarity search algorithm, I recommend reading the wiki page https://en.wikipedia.org/wiki/Semantic_similarity, very intresting.
My question now is however, how is this present in quartz, when searching for terms using the search bar, it only seems to find pages with exact matching words.

We should really find a way to add some semantic goodies to quartz :) Seems really relevant for the types of content typically found on quartz pages! Always down to riff @jackyzha0 <3


TCP transport

Most of the stuff we use for stdio transport can be completely reused for the tcp transport, so I moved that to a separate module.
Regarding tests, I am aware that I didn’t add tests. I took a look at the stdio tests and they don’t actually test the transport but only test the encoding and decoding (which is shared between stdio and tcp). Ofc we could build hie, launch it as a separate process and then actually test the tcp transport and the stdio transport, but I wasn’t sure if it’s worth the trouble.

Sorry, been slow to look here. I have to admit I was wondering why it was not in master


Fix links to new course demos + remove dark mode links

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

FYI the build on hf.co gives 400 errors for some of the Chapter 9 demos:

I checked the new URL for the sketch recognition demo and it still doesn't seem to work: https://hf.space/gradioiframe/course-demos/draw2/+
Can you please check that these URLs are correct? Maybe the draw2 Space still needs to be migrated to course-demos?


Fails to Extract Concatenated Strings in defineMessages

When I use a concatenated string in defineMessages for defaultMessage, that message isn't picked up by the plugin.
eg
const messages = defineMessages({
    message: {
        id: "mesage.id",
        defaultMessage: "Message over"
            + " multiple lines",
    },
});

Had a look and the node is a BinaryExpression. I don't know much about TypeScript. How would you go about evaluation an Expression node to find if it's text?

Why don't you using a multiple line string instead of a concatenated string.
eg:
`Message over
 multiple lines
other`

Ok, that works.


"Developer - Beginner Windows containers" RUN dotnet restore .\samples\MusicStore fails with errors

Description
I decided to follow the Docker training course "Develper - Beginner Windows containers", followed all the instructions but encountered errors at the "Multi-containers applications" section.
Issue course.txt
Steps to reproduce the issue:

Acces the "Developer - Beginner Windows Course"
Follow the course until the "Multi-containers applications" section
Execute "docker-compose -f .\docker-compose.windows.yml build"

Describe the results you received:
Tons of errors in my elevated Powershell console at step 10/16 (RUN dotnet restore .\samples\MusicStore) of the build.
See "Issue course.txt" for the Powershell output.
Output of docker version:
Docker Community Edition
Version 17.03.0-ce-win1 (10381) (updated today, 29-03-2017)
Issue course.txt

*Moved to https://github.com/docker/for-win/issues/609


unicode unaccent doesn't support Arabic

Can you guide me how to make this support for Arabic ?

Please give an example (Arabic word in both lower and upper cases).

I see, thanks for the explanation!


Tests with external dependencies should be skipped if external programs are missing

Currently the only supported alignment program is lastz. In case of missing lastz the corresponding tests should be skipped instead of failing the test

I'm fine with failing these tests regardless. I agree that it does not indicate a wrong behavior of the software. But it quickly shows the user that an essential part of our tool is not working in the setup. @greatfireball if you agree you may close this issue for now.


Making it more mobile

A couple of fixes that should make the site better suited for mobile devices. These changes may make the site look worse, so please review before merging. Changes kick in on devices <600px wide.

Looks great in Firefox's responsive design mode, unchanged on desktop. Nice idea with the nicknames being inline, and the sidebar being in the top-right.


WIP [Sema] Allow for pruning arbitrary subexpressions from the constraint system

A bit of infrastructure so that the constraint generation walker and solution application walker can be told not to descend into arbitrary subexpressions.
Then for array literals, if the type is specified up front, and individually type checking an element matches that expected element type, then prune that element subexpression from the constraint system.
Resolves SR-8314.
Could use some clean up and needs tests, but makes a huge difference for large statically typed arrays. On my machine (w/ debug swift):
before:
./swiftc slow_swift_compilation.swift  364.33s user 4.24s system 99% cpu 6:09.02 total
after:
./swiftc slow_swift_compilation.swift  16.48s user 0.15s system 99% cpu 16.648 total
Does this seem like a reasonable approach? Are there issues with this direction that I'm not thinking of?

@gregomni @rudkx noted in the SR-8314 that adding as HuffmanDecodeEntry to each entry helps to reduce the time spent type-checking this, I guess it has to which logic I've added a while ago to attempt conversions faster, but it would be interesting to figure out exactly why and maybe change logic in visit{Array, Directionary}Expr to reflect that fact.

It looks like the vast majority of the time spent in this particular test case (without the subexpression pruning I suggested) is recording and simplifying TupleToTuple ConversionRestrictions for each entry. If you omit recording that type of restriction entirely in simplifyRestrictedConstraint() then the result is that CSApply coerceToType() does exactly the same thing as it would have anyway.
And the time then is:
./swiftc slow_swift_compilation.swift  90.45s user 0.40s system 99% cpu 1:31.17 total
Is there benefit that I'm not seeing to recording the TupleToTuple restrictions?
(I still think it is worthwhile to carve off subexpressions where types are known in advance, but this seems like an alternative path to helping speed things up, albeit in a narrower set of cases.)

@gregomni Very interesting! Sorry I got caught up with diagnostics and forgot to respond yesterday:
typealias X = (q: String, v: Int)
let _: [X] = [(q: "ultimate question", v: 0), (q: "answer", v: 42)]

Looks like constraint generator doesn't actually take full advantage of contextual information for examples like these. It seems to me that doing pre-checking of the tuple structure in ConstraintGenerator::visit{Array, Dictionary}Expr should solve the problem because we'd do that only once per element and then merge all of the type-variables in the same position in the tuple and convert them to the one in contextual type, e.g. (based on the example above):
element #0 - (q: $T0, a: $T1)
element #1 - (q: $T2, a: $T3)

Check if they both match (q:, a:) structurally, and merge $T0 with $T2, $T1 with $T3 and convert representatives to corresponding types in contextual tuple. I think that should give considerable speed-up...
WDYT?

Not going forward in this direction.


Remove PSv2CompletionCompleter

Contributes to #18323.
Best to review each commit separately.
Remove references to "PSv2" in: src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs

LastWordFinder is also legacy (used by InvokeLegacyTabExpansion) and could be removed:
https://github.com/PowerShell/PowerShell/blob/920bf3b80dd5236441ac3ab3bf2ca644baa4c625/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs#L670-L673

e86ca2a: This commit makes changes to public APIs:

CompleteInput(String, Int32, Hashtable, PowerShell)
CompleteInput(Ast, Token[], IScriptPosition, Hashtable, PowerShell)

However, it seems the legacy TabExpansion internal function (as opposed to TabExpansion2) is a PSv2 specific so maybe we can drop support.

Ready for review. I wasn't sure how to resolve failures in e86ca2a so partially reverted, this PR is already large enough.

I tried to remove this code in e86ca2ae0106f85462a8af2b8438fabe83589a0a, but I could not resolve the test failures.
https://github.com/PowerShell/PowerShell/blob/5996d49b58e6cfc0abd21ba5fc2d034aab8099ac/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs#L504-L515

PowerShell-CI-windows (Test for Windows Windows Test - ElevatedPesterTests - Others)  failure:

Set/New/Remove-Service cmdlet tests.Remove-Service can accept a ServiceController as pipeline input

restarting tests

Removed "Override TabExpansion with function" and "Override TabExpansion with alias" tests as they relate to the removed code.

restarting tests

@SteveL-MSFT Ready for review, feedback addressed and test failures resolved.


SQLSYSADMINACCOUNTS customization

Added and tested SQLSYSADMINACCOUNTS customization from the 2022 Hydration Kit

This Pull Request also contains a commit to change the Authorize DHCP step of the DC01 sequence.
Commit message: Backported and tested Authorize DHCP PowerShell script from 2022 Hydration Kit


decommission aggregate version

Depends on https://github.com/zitadel/zitadel/issues/5355
As a ZITADEL dev, I want decommission the aggregate version so that we can simplify events.
### Acceptance Criteria
- [ ] aggregate_version column is removed from the events table
- [ ] aggregate version is removed from the event interface
- [ ] `Version` is removed from the `BaseAggregate` struct
- [ ] aggregate version is removed from the command interface
- [ ] aggregate version is removed from the api

@adlerhurst is this still relevant?


401 error when already logged in when creating a container

Expected behavior
If my user is written in the user info area, I assume I'm logged in properly. Container should start downloading with no issues or error messages.
Actual behavior
I get: (HTTP code 401) unexpected - {"message":"Get https://registry-1.docker.io/v2/library/elasticsearch/manifests/latest: unauthorized: incorrect username or password"}
It stays in a "Downloading" state, but nothing happens any more even if I log back in
Information about the Issue
This happened when trying to create a "Official" ElasticSearch container
Steps to reproduce the behavior

Open Kitematic with a logged in session, from the day before.
Search for "Elasticsearch" container.
Click on "create".

Please try to login using your Docker ID (hub username) instead of your email. This should fix the issue.


Library name change request

Library repository URL
https://github.com/SolderedElectronics/Soldered-MQ-Gas-Sensor-Arduino-Library

Hi @koderchina. I am confirming your request.
Unlike submissions, this type of request is still handled manually. The Library Manager index maintainer occasionally comes through to clear all the outstanding requests. They will close this issue when it is done. You will get a notification from GitHub at that time.
After that, you can monitor the indexing of the library via its dedicated logs web page.
Information about that here:
https://github.com/arduino/library-registry/blob/main/FAQ.md#can-i-check-on-library-releases-being-added-to-library-manager

Done:
2024/10/02 15:54:59 Loaded 7340 libraries from DB
Removing Soldered MQ-X Gas Sensor Library
Success!


docs: Update changelog for 3.1 release

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/device-rfid-llrp-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[x] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[x] I am not introducing a new dependency (add notes below if you are)
[ ] I have added unit tests for the new feature or bug fix (if not, why?)
[ ] I have fully tested (add details below) this the new feature or bug fix (if not, why?)
[ ] I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

Codecov Report

Merging #271 (c6683c0) into main (fbcb6d3) will decrease coverage by 0.04%.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main     #271      +/-   ##
==========================================
- Coverage   41.27%   41.24%   -0.04%
==========================================
  Files          20       20
  Lines        8952     8952
==========================================
- Hits         3695     3692       -3
- Misses       4087     4088       +1
- Partials     1170     1172       +2

see 2 files with indirect coverage changes


Add Adoption by annotation logic, and test eks cluster

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/LGTM

This PR feels like it's addressing more than just cluster adoption. It's also fixing OIDC adoption via annotations

Thanks Mr. Amine
/unhold
/woof


Fix reentrancy bugs in subscribers

Fixes #208.

LGTM

  Generated by :no_entry_sign: Danger Swift against c59171ee33c467ae8cca05576acfab3edfc4e261


refactor: reimplement vertex in CMap2 as attributes

Description
Replace the current vertex storage (Vec<Vertex2) by the structure implemented in #34. The implementation is currently
hardcoded into CMap2 but the user should eventually be able to add its own attributes.
Scope

[x] Code: honeycomb-core

Type of change

[x] Refactor

Other
...
Necessary follow-up
...
Mentions
...

After doing some work on the structure, I realized it would be much easier to directly rewrite the CMap2 methods using the new attribute system AND the new index system. I'm closing this and keeping the branch as reference for the final implementation


Failed prop type: The prop resultsTotal is marked as required in ResultsPaging, but its value is undefined.

Warning: Failed prop type: The prop `resultsTotal` is marked as required in `ResultsPaging`, but its value is `undefined`.

result from query is: https://gist.github.com/philvarner/90721d77d7c41f598f3687e2345be962

@philvarner Do you have an open API endpoint I could do integration testing against for this issue?  For the short term I will include a fix for APIs that don't return search metadata.  Are you planning on implementing https://github.com/radiantearth/stac-spec/pull/482/files?  I will update the results parsing to use this once we bring the sat-api up to spec.

https://stac.astraea.earth/api/v2/stac/search


Individual ID extracted from wrong column

Hi,
When reading BGEN files, I think the sample id is currently extracted from the wrong column. According to this documentation, the column ID_2 corresponds to the individual ID. I think the origin might be this function.
Potential fix? replace [1] by [2]

Thanks for the report. Changed to read from column 2 if both ID_1 and ID_2 exist. It will still read from the first column otherwise.

Thank you for that!


Fix libgit2 ssh feature

Describe the pull request
I'm trying to use libgit2 with ssh feature but I wasn't able to get it to work, the reason is libssh2 from vcpkg doesn't have a libssh2.pc which is how libgit2 is trying to find it, so this package fixes it by introducing a patch file to fix it
I created a repo to reproduce the behavior https://github.com/JafarAbdi/test_libgit2, if you build without my fix it will print
GIT_FEATURE_THREADS: 1
GIT_FEATURE_HTTPS: 1
GIT_FEATURE_SSH: 0
GIT_FEATURE_NSEC: 1

After applying this fix I was able to get the ssh feature, and running the example prints
GIT_FEATURE_THREADS: 1
GIT_FEATURE_HTTPS: 1
GIT_FEATURE_SSH: 1
GIT_FEATURE_NSEC: 1

Which triplets are supported/not supported?
Yes

This PR has been inactive for a long time, please reopen it if there is any progress.


uselocale.com domain name is down

Service is down since a week now !!!!

@dgillier Sorry for any inconvenience caused.
We have already investigated the issue and restored service.
We will take measures so that it does not happen again. You can contact Locale via<EMAIL_ADDRESS>


Clear documentation around best practice for data migrations and using the ORM

I am planning a data migration strategy for an application and I'm not finding much in the way of documentation around best practices. The application supports multiple data providers so I would like to avoid generating raw SQL if possible.
When I say data migration I am referring to a migration that doesn't do any schema changes data in some way.
A contrived example would be taking a Person object:
public class Person
{
     string FirstName {get; set;}
     string LastName {get; set;}
}

And adding a DisplayName column that is FirstName + " " + LastName . Again this is a contrived example :-).
An approach I would like to take is making a schema change migration:
        // in DisplayNameSchemaMigration.cs
        protected override void Up(MigrationBuilder migrationBuilder)
        {
                migrationBuilder.AddColumn<string>(
                name: "DisplayName ",
                table: "Person",
                nullable: true);
        }

Then doing the data migration in application code. Note: I realize this is not a very efficient solution due to efcore not having a bulk update operation but it's for illustrative purposes:
        // in DisplayNameDataMigration.cs
        protected override void Up(MigrationBuilder migrationBuilder)
        {
                 var people = MyDbContext.People.Where(p => p.DisplayName == null).ToList();
                 people.ForEach(p => o.DisplayName = $"{p.FirstName} {p.LastName }");
                 MyDbContext.SaveChanges();

        }

The point of this being that I could use the ORM  and wouldn't have to use raw SQL. That way I could support multiple database providers without having to generate a separate migration for each one and having to retroactively create new migrations if I want to add support for another data provider in the future.
The application lifecycle is state machine driven and the nodes are orchestrated  in such a way that I wouldn't have to worry about concurrent data migrations stepping on other anthers toes during the migration application phase.
I'm looking at the documentation and Googling but I'm not seeing much in the way of guidance on this subject. I do see occasional comments on forums or SO saying it's not a good idea to use the orm for a data migration but I don't see anything from an authoritative source. I think the documentation could really benefit with some mention of these scenarios and, certainly if anyone with insight has any suggestions here specifically, I would be grateful as well.

@Jstall The issue tracking data migrations in EF Core is https://github.com/aspnet/EntityFrameworkCore/issues/5642. However, the intention is not to allow these to be written using the context/model types. The reason for this is that those types evolve as the application evolves, but migrations need to keep running even if the model types have changed. For example, if FirstName and LastName were removed and replaced with a single Name. And migrations referencing FirstName or LastName would then break.
So the options are:

Use SQL to your migrations, since this does not have any binding to the C# model types
Use specific data APIs in your migrations--see https://github.com/aspnet/EntityFrameworkCore/issues/5642
Limit migrations to only moving forward and update a method as each migration is applied that will do any data motion needed. This is pretty hard to manage and keep right, but I don't know of another way that you can safely use your model types.

those types evolve as the application evolves
Nevertheless the old migrations can still run, because EF Core, when creating migrations, replaces the property names with strings. The same could be done for data migrations. So if one defines a migration like

UpdateData(u => u.DisplayName, u => $"{u.FirstName} {u.LastName}")

The Add-Migration tool would create a proper set of hardcoded strings.
If later on FirstName gets deleted, the UpdateData operation can be changed or removed alltogether - this will not alter the generated migration.


[Question] how is the order of execution of multiple policies be enforced or if there is any order gurantee?

does  cloud custodian gurantee the order of execution of policies?

Custodian will execute the policies in the policy file sequentially
policies:
  - name: policy-1
  ...
  - name: policy-2
...

@thisisshi  Thanks
Does that include custodian run -p  ? Is the execution order as the same when policies passed into the tool?

long term the guarantee is that custodian will execute policies for a given resource type sequentially as defined in the file. if passing explicit policies to run on the cli the sequential guarantee based on order definition in the config file still holds.


Please, use another datepicker plugin

The datepicker plugin that you guys chose seems to be abandoned. There's many others that are being maintained actively and offer more options (localization for example). I suggest to change the datepicker plugin to https://github.com/eternicode/bootstrap-datepicker.

+1

Please consider adding support for bootstrap datetimepicker as well: https://eonasdan.github.io/bootstrap-datetimepicker/

I´m having a serius headache trying to configurate the language to spanish

Hello @azaruiz94,
Thank you for using our products, I will ask you to check the documentation of the datepicker, and have in mind the following link: https://github.com/Eonasdan/bootstrap-datetimepicker/issues/565
All the best,
Stefan


LMS/追加変更

https://github.com/tatsuno-system/lms/commit/44d4e357a0df2423dfc8967309d26c22fb2b3f42

I'm sorry. Wrong pull request.


convert onnx

great work for 3D task!
I wonder to know how can I convert  the model  to onnx.

Hi, @llpspark ! Thank you for your focus!
May you specify your question? If you simply hope to convert the model to onnx, I believe code like torch.onnx.export can easily do it.

Hi, @llpspark ! Thank you for your focus!
May you specify your question? If you simply hope to convert the model to onnx, I believe code like torch.onnx.export can easily do it.

I find it. thank you for your reply.


$route.hash includes '#'

The documentation, https://router.vuejs.org/en/api/route-object.html,  says that $route.hash is "The hash of the current route (without #)". As of 2.2.0 it does include the "#".  Does the documentation need to be updated or do we need to add the feature?

It has always included the hash, I'll check the docs and update it. Thanks! 🙂


Timeout error?

Hi,
Today when I try to send prompt to ChatGPT-4, I will always receive the following error:
Exception class ENetHTTPClientException with message 'Error receiving data: (12002) Operation timeout'

Why?

In the new version, the timeout has been increased to 2 minutes. There is also a setting for setting up a switchout at your discretion.

Why? Because the server does not respond for a long time.

Firstly, there are three timeout parameters. Because there are 3 stages of request.

Connection (ConnectionTimeout)
Sending data (SendTimeout)
Receiving data (ResponseTimeout)
You can set different timeouts for all three stages

Thank you so much.


Import tool

@yanpom to check the tool once it is ready for QA, let's define the list of test cases


Error about config.scpt when using

I'm getting the following error in the debug when attempting to search for a song using the playsong command... is there a setup step I missed? I simply downloaded the .alfredworkflow file and installed it.  I attempted to clearcache, but no improvement.
[ERROR: input.scriptfilter] Code 1: filters/playsong.applescript:48:120: execution error: Can’t make file "Macintosh HD:Users:matthew:Library:Caches:com.runningwithcrayons.Alfred-3:Workflow Data:com.calebevans.playsong:config.scpt" into type file. (-1700)

@mttjhn What version of macOS / OS X are you running? Also, what version of Alred are you using?

@caleb531 I'm on Mojave 10.14.4 and using Alfred v3.8.1

Also, getting the above error regardless of which command I run (e.g. playartist, playsong, etc)

@mttjhn Hmm okay, stupid question, but I have to ask: did you make sure to download Play Song (Alfred 3).alfredworkflow and not Play Song (Alfred 2).alfredworkflow?

Yes, I'm using the Alfred 3 version. I managed to get it working by manually executing the osacompile command that's in the compile-config.sh script to generate the config.scpt file and then copied that to the correct folder where it was missing.

@mttjhn Good to know. I'm surprised it didn't run automatically, because the code it set up to. Maybe it's a permission issue?
Well, if you have things working now, then I'll close this issue. Thanks for reaching out.

@mttjhn Good news! I was able to find the root cause of this error, and have pushed Play Song v5.0.2 with a fix. Please check out https://github.com/caleb531/play-song/releases/tag/v5.0.2 and let me know if things are still working for you.

Excellent! I just downloaded the new workflow and it works great without any extra steps. Thanks for the quick turnaround.


Responsive SVG's // use of viewBox

Hey,
nice job 👍
And I've got some improvements:

Instead of defaulting to a explicit size of the plot, I would find it nice to include a viewBox in the Svg and to remove the height and width Attributes.

viewPlot : MetaConfig -> List (Svg.Svg msg) -> Svg.Svg msg
viewPlot { size, style } children =
    let
        ( width, height ) =
            size
    in
        Svg.svg
            [ Svg.Attributes.viewBox
                ("0 0 "
                    ++ (toString width)
                    ++ " "
                    ++ (toString height)
                )
            , Svg.Attributes.style (toStyle style)
            ]
            children

The default behaviour would then be, that the svg is using the full size of the containing div. (when using the plot-fun. at least a container-div would be needed)

main =
     [  div [  style
                    [ ("display", "flex")
                    ,  ("height", "300px")
                    ]
              ]
          [  plot
--          ...
          ]
     ]

or

If the explicitness of a size would be needed, the SVG would get the provided measurements
-- state of now.
if no size would be set, default would be a viewBox-Attribute.

or

setting the viewBox always to e.g. "0 0 300 200" would be responisve (100%)
setting it to (toString width) ++ " " ++ (toString height) ++ "300 200" would be the provided measurements

What do you think?

I'll try out the different approaches out and get back to you! Overall sounds like a good idea though!

I've tested it in my current work project.. I need a graph which fills some 80% of the screen.
and especially when a scaling from ~600px to 1200px (or more on huge screens) it does not make any sense, because the texts are also scaled up/down. So multiple viewBoxes would be needed..
Another problem occurs when limiting the viewBox to a width of e.g. 1200px, this limits the scaling also to max. 1200px (scaling down works properly), so that I also would need to pass in a greater value than 1200. -- which would also eliminate the need for a scaling svg.
Maybe it would be still the easiest way to manually provide the measurements. (respectively in my usecase)

🙌


"FĂLTICENI" is listed in the drop-down menu

Description:
"FĂLTICENI" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "FĂLTICENI" in the search bar.

Expected results
The location is listed in the drop-down menu as "Municipiu FĂLTICENI, SUCEAVA".


Added initial support for decision trees.

Re my comment on #7. This seems to be able to fit trees correctly but is much slower than the sklearn implementation.
The main algorithm for fitting to a masked subset of the data is in TreeNode::fit. It iterates over the features in the dataset and creates a SplitIterator over the possible options to split values on (this means we only have to sort along each feature once at each level). It then computes the impurity criterion for each of the possible splits along that feature. After the split that reduces the impurity the most is found, masks are created for the nodes that belong to the left or right children.
Overall this should be O(k n log(n)) at each level which matches the complexity stated in the sklearn docs. My guess is a big speedup could come from someone with more experience with ndarray looking over some of the code since I'm not familiar with it.
There's an included benchmark using criterion. Just run cargo bench decision_tree in the linfa-trees folder.

Amazing :grin: I'll have a look over the weekend to see if something strikes me as a clear bottleneck :+1:

I've just made a change to how the masks on the sub-trees are represented. Previously I passed a Vec<usize> containing the indices of the elements of the sub-tree around, but this required a sort over each feature axis at each level. I've swapped to using a Vec<bool> as a binary mask inside a RowMask struct. This way, I precompute where each row lands when sorting along a particular feature in a SortedIndex struct and since this never changes, you only need sort along each feature once.
It now takes ~500ms to fit a decision tree on ~400k samples on a i5-7200U, although since I haven't used the python bindings before I haven't been able to do a fair comparison with sklearn.

here some questions, because I never learned algorithms for decision trees:

for a feature bagging decision tree (like random forest) it can be just re-used and called with a initialized mask for the root tree right?
how much effort would it be to generalize this to regression?
would it make sense to create a metrics module in the base crate for accuracy and all its relatives?

here some questions, because I never learned algorithms for decision trees:
* for a feature bagging decision tree (like random forest) it can be just re-used and called with a initialized mask for the root tree right?

Sort of yeah. For random forests we'd need to add a mask on which features of the dataset can be used (or pass in a dataset with a subset of the columns available).

* how much effort would it be to generalize this to regression?

Very little, you'd just need to change prediction_for_rows to take the average of the y values in the rows from the mask instead of the modal class.

* would it make sense to create a `metrics` module in the base crate for accuracy and all its relatives?

Yep I'm strongly in favour of this since it'll also encourage standardisation of the predictions too.

Still going through your feedback, just had a very busy week and not much time to look over this :(

sure take your time, I'm always trying to spend 1/2 - 1 hour each day, but sometimes it's difficult

Followed up the remaining feedback and merged in master

if you have interest in an extension for RandomForest, any PR is welcome


Lower-level access to the CSS parser

I'd like to examine the original value of the style attribute of an element as key-value pairs. However, element.Style doesn't allow exactly this. For example, if I parse this element

and check element.Style.ToDictionary(x => x.Name, x => x.Value), this dictionary will have 4 elements: text-decoration-line, text-decoration-style, text-decoration-color, color. That's nice for many scenarios, but I need to work with the original two entries: color and text-decoration. As far as I can see, AngleSharp doesn't provide any support for this, does it?

Unfortunately no - the values are directly parsed and expanded according to the specification. However, see #38, there will be another possibility in the future, which will also be accessible publicly.

I didn't realize that this was the case.
Rather than use the term "the specification", I'd suggest referring to the precise one.
CSS has many specifications.
The CSS OM specification - which is the one I think you're referring to - says this: The core features of the CSSOM are oriented towards providing basic capabilities to author-defined scripts to permit access to and manipulation of style related state information and processes." This is in their own description, a "basic" set of capabilities. I personally don't think this is a well thought-out specification.
The CSS 2.1 specification. This is the last "complete" CSS specification. CSS3.0 and higher use modular specifications - of which there are now dozens - to describe various aspects of CSS. This is why I still refer to this one a lot. This specification is, IMHO, the right one in terms of describing the source language (at the 2.1 level). Providing an API that exposes the CSS source in a direct way with source round-tripping is much more important, IMO, than providing an API that is just an implementation of the CSS OM.
Therefore I'd suggest:

Please mention which specification you are referring to at all times.
The CSS OM is not as important as you might think. A direct, complete representation of CSS is key. (These are not in conflict however, as #38 shows.)

For the CSSOM there is just one specification, hence there is no need for clarification (I will always refer to the latest / or one of the latest versions; otherwise take the recommendation as base). The URL is given on many occasions, but just to have it one more time: http://dev.w3.org/csswg/cssom/

The goal of AngleSharp was, is and will also be in the future, to bring the same API and same behavior as we can find in the most common browsers to C# - without requiring any native bridge. If the API would behave differently or if the API would be completely different, than people would be required to learn just another API.

I am sorry that AngleSharp does not fit your needs, but writing a CSS parser for your needs seems to be fairly easy and straight forward (as you already found out - the CSSOM complicates things a lot). Hence I suppose you can just do it yourself.

The suggestion was simply - do you mean the CSSOM specification or some other specification. It may be obvious to you that the CSSOM specification is meant, but many of us read the other CSS specifications frequently as well. Hence "the specification" is a bit unclear.

By straightforward, I mean conceptually. As we both know there's a lot in CSS, so writing a good parser for .net is a worthy challenge. AngleSharp has most of the code, but does not have it exposed the right way. Both thorn0 and I seem to have hit similar limitations, so that's feedback for you.


fix broken link in Problem Sets and Competitive Programming

What does this PR do?
This Pull Request addresses the broken link in Problem Sets and Competitive Programming (problem-sets-competitive-programming.md) from issues #6942 and #7306. The original link of A2 Online Judge is broken. However, there is an alternative website that contains its static pages/ladders.
https://a2oj.com/ -> https://a2oj.netlify.app/
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


Fix replace non working deleteByRetrievedFrom function with working delete function

Description

Replace all occurances of QueuedWorkflowRepository's deleteByRetrievedFrom delete method which performs a read operation(Bug)
with auto-generated deleteByTempRepresentation_RetrievedFrom method.
Also, the current delete method's name convention does not allow for auto-generation of the required delete method.
Motivation and Context

Since the deleteByRetrievedFrom method does not perform a delete operation. queued workflows are never deleted.

Fixes #320
Also a possible fix for Issue #212
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I am so happy to see this, thank you! Can you please add a test to confirm your fix?

Alright, I'll start working on that now.


fix ZiPhone + archive 4039

4039 servers are down so it makes sense to archive it, and ZiPhone works there anyway

I’m not sure how to make a PR to delete a file, so after, you may want to remove jailbreakFiles/legacy/4039.js

edit: apparently 4039 can still work self hosted, hence I've unarchived it, now this PR should just fix ZiPhone


Ability to pan across a zoomed image by a single finger swipe instead of two

Hello Pedro.
Thanks for sharing this awesome plugin, it was a lot helpful to us.
Just a small correction - if it can be done:
After zooming an image using pinch or double tap, if we use a single finger swipe then the slider image changes instead of panning the zoomed image.
For panning across the zoomed image, two finger swipe is required.
Can you/anyone provide a quick fix/workaround to PAN across a zoomed image using a single finger swipe?
Thanks.

I remember testing this and it worked as you want it to. Can you tell me which ionic version are you using ?

This problem exists in Ionic 1.2.4

Did anyone find a workaround for this issue in Ionic 1.2.4?


Add hooks to the default UART irq handler (IDFGH-5319)

Is your feature request related to a problem? Please describe.
My code needs to process incoming serial data, most notably an interrupt character like ^C, immediately, i.e. from interrupt.
The problem is that the default UART interrupt service routine is a large blob which cannot be partially overridden or hooked into, and I'd rather not re-write the whole UART handler.
Describe the solution you'd like
At minimum, the serial handler should have a couple of hooks (TX fifo low water mark reached, RX data available) which optionally call my code.
Describe alternatives you've considered
Copying the code of uart_rx_intr_handler_default to my own code and modifying it: is not possible because it refers to other static data items, most notably uart_context.
Using sync code and select: doesn't work for me because my code needs to process an interrupt character.

What is the required latency and what latency are you seeing with pattern character event and high priority task?

Thanks for raising this feature request.

I have the same issue too.  It seems the ability to define your own ISR has been dropped from v4 to v5?


Update version to 0.10.7

This PR updates the version to v0.10.7 in setup.py and in ogcore/__init__.py. This update incorporates PR #861.
cc: @jdebacker

Codecov Report

Merging #864 (e822fe6) into master (c8121de) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

@@           Coverage Diff           @@
##           master     #864   +/-   ##
=======================================
  Coverage   81.96%   81.96%
=======================================
  Files          18       18
  Lines        4037     4037
=======================================
  Hits         3309     3309
  Misses        728      728

Flag
Coverage Δ

unittests
81.96% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

ogcore/__init__.py
100.00% <100.00%> (ø)

Thanks for the version bump, @rickecon.  Merging.


Could not store password in keychain

          Original issue by @xareelee - Imported from fastlane/credentials_manager#5

I use cert and sigh in fastlane, and it works fine on my computer. But now I want to build the fastlane environment on my server (Mac Mini), it ask the password for the account every time when using cert and sigh.
I try to manually execute the cert and sigh action under Terminal, and it shows the message: security: SecKeychainAddInternetPassword <NULL>: The specified item already exists in the keychain.
Could not store password in keychain.
$ sigh
INFO [2015-04-21 15:06:07.62]: Login into iOS Developer Center
No username or password given. You can set environment variables:
DELIVER_USER, DELIVER_PASSWORD
-------------------------------------------------------------------------------------
The login information you enter will be stored in your Mac OS Keychain
More information about that on GitHub: https://github.com/KrauseFx/CredentialsManager
-------------------------------------------------------------------------------------
Password (for XXXX@XXXXXXX.com): ************
security: SecKeychainAddInternetPassword <NULL>: The specified item already exists in the keychain.
Could not store password in keychain
INFO [2015-04-21 15:06:26.49]: Login successful
INFO [2015-04-21 15:06:27.15]: Fetching all available provisioning profiles...
INFO [2015-04-21 15:06:27.90]: Checking if profile is available. (11 profiles found)
INFO [2015-04-21 15:06:31.62]: Downloading profile...
INFO [2015-04-21 15:06:32.41]: Successfully downloaded provisioning profile
....

BTW, the project was pulled from GitHub by Jenkins. The path of the project is /Users/{XXXX}/.jenkins/jobs/iOS develop branch/workspace.
I've tried log in Apple Developer Program and iTunes Connect in a browser and store the keyword in the Keychain. The cert and sigh still ask the password every time.
I can't figure out why this happened.

I was connecting my Mac slave to Jenkins server by manually executing the jnlp file downloaded from the server. Yesterday I decided to setup Jenkins slave as a launchd entry then this "stty: stdin isn't a terminal" fastlane error happens to me. Not sure why there is a difference between running Jenkins slave from GUI and from launchd.
In the end, I run "security unlock-keychain" before every fastlane call and it works. You also need to run "security set-keychain-settings" to extend keychain timeout. Or it will lock itself up 5 min after unlock and when the Mac goes to sleep mode.

Thanks for updating the thread @FrankNine! This seems like a viable workaround for your system setup. However, I'll be sure we note this in the future. Is there anywhere in our docs that you think it'd be useful for us to surface this information?
Thanks!

I am not really familiar with fastlane development and documentation. I guess since it is credentials related, I should be documented at CredentialsManager. I am still trying to get to the bottom of it. Placing keychain password on Jenkins server is not ideal. Hope we can address it in the right way.

@FrankNine Thanks for following up. Right now we use the keychain to store credentials. I'm going to convert this to a feature request and close it. The team will have a look soon :+1:


Don't allow building when there are some errors found

Closes #78
Part of #1
Regarding checking if the SDK extension is compatible with runtime, I think it is too cumbersome to check that.

Regarding checking if the SDK extension is compatible with runtime, I think it is too cumbersome to check that.

It is a complicated thing to do but we definitely need to do that at some point otherwise the check for the sdk extensions is not going to work at all and we might block the build for "wrong" reasons

Do you mind updating the changelog for your recent changes in a separate commit? I will do a new release after that, the stop/run buttons are very nice additions that at least I know a couple of people would use

Sure


🤔 [ISSUE] - eazychart-[ react ]- Missing Time Series Line Chart

Description
Line chart uses linear data while there is a need to visualize time based data
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Logs
No response
Browsers
No response
OS
No response

@Emnaghz:  Could you please add more details to this issue?
I do not understand the problem we are trying to solve here.


!int_mode_:Error:Assert failed:in file weightmatrix.cpp, line 244

hi！ i meet  the question！how can i solve？ my tesseract version is 4.0.  i want to train the chi_sim.traineddata
i tried to train the eng and number, it's all this kind of mistake!
msute@ubuntu:~/Desktop/jTessBoxEditor/tesseract-ocr$ lstmtraining --debug_interval -1 --max_iterations 800 --continue_from='/home/msute/Desktop/jTessBoxEditor/tesseract-ocr/chi_sim.lstm' --model_output='/home/msute/Desktop/jTessBoxEditor/tesseract-ocr/trainingoutput' --train_listfile='/home/msute/Desktop/jTessBoxEditor/tesseract-ocr/chi_sim.training_files.txt' --traineddata='/home/msute/Desktop/jTessBoxEditor/tesseract-ocr/chi_sim.traineddata'
Loaded file /home/msute/Desktop/jTessBoxEditor/tesseract-ocr/chi_sim.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Continuing from /home/msute/Desktop/jTessBoxEditor/tesseract-ocr/chi_sim.lstm
Loaded 1/1 pages (1-1) of document /home/msute/Desktop/jTessBoxEditor/tesseract-ocr/name.test.exp0.lstmf
Iteration 0: ALIGNED TRUTH : 惠娟潘墩镇镐源志学韩瑞峰男女壹贰叁肆伍陆柒捌玖拾源村
Iteration 0: BEST OCR TEXT : 惠娟潘墩镇镐源志学韩瑞峰男女壹武叁肆伍陆柴捌玖拾源村
File /home/msute/Desktop/jTessBoxEditor/tesseract-ocr/name.test.exp0.lstmf page 0 :
!int_mode_:Error:Assert failed:in file weightmatrix.cpp, line 244
Segmentation fault (core dumped)

Duplicate of #1573.

＃1573的副本。

what‘s your mean?

Someone already reported about this issue before.
See issue 1573
Use the a traineddata file from the tessdata_best repo for training.

Someone already reported about this issue before.
See issue 1573
Use a traineddata file from the tessdata_best repo for training.
yes，my file source from this website. but it still made this mistake. i just want to combine my traineddata and this source.  train more font.

Someone already reported about this issue before.
See issue 1573
Use a traineddata file from the tessdata_best repo for training.

yes，my file from this website. but it still made this mistake. i just want to combine my traineddata with this  source. train more font.

yes，my file from this website

This error message indicates that you are training with integer model(tessdata_fast) instead of float model (from tessdata_best).
What the size of your chi_sim.traineddata file?

yes，my file from this website

This error message indicates that you are training with integer model(tessdata_fast) instead of float model (from tessdata_best).

What size?  how can i kown my traineddata size?  If i use the method from this photo, can i solve this error message?  Thank you for your patience


Fix discord search command

You used to be able to select an entry that appeared in ^search by adding a reaction, but this stopped working long ago

This was fixed with v3 #187


when i use mergeMovies, i found out the disk space keeps increasing no matter how i clean up files in temp folder

I am not quite sure why it happens, but i suspect that AVURLAsset created in the function will be saved into space. Is there any way to delete AVURLAsset after the merge? or how can it be fixed?
Thanks a lot!!!

My Bad, found the issue


usability: don't mask predicate error in binary search

Closes #1955

#1956  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Shoeboxam and the rest of your teammates on  Graphite


storage-limits

direct link to storage-limits page: https://moon-ci-docs.huggingface.co/docs/hub/pr_1515/en/storage-limits


Support for JAVA 17

JDK 1.8 is outdated.
Here I have a PR for it https://github.com/terrakok/Compose-Multiplatform-Wizard/pull/31

ready


Make it possible to sub-divide text for defeasibility purposes.

Legislative text will often contain defaults and exceptions, and other parts and sub-parts that it is useful for testing purposes to be able to identify separately, inside an undivided paragraph of text.
We need a way of being able to divide that text into named pieces, and adding those named pieces to the interface in a way consistent with how the divisions of legislation are used. This means either making changes in the code editor to allow people to create sub-names associated with outside blocks, or some way of enhancing the CLEAN tool to allow for arbitrarily deeply nested named hierarchical elements inside paragraphs. The former complicates the interface. The latter might be difficult to do in a way that is LegalDocML compliant.

It seems like the logical place to do this is in the rule editor, not the code editor, and to re-use the analogies we already have in the interface. The challenge there is representing it inside AkomaNtoso in a standards-compliant way. Because in Akoma Ntoso we need to be able to sub-divide paragraphs, it seems like the compliant way to do that is with nested  elements, which AN allows to carry eId attributes.
So we would need to modify CLEAN to be able to allow you to specify spans inside a block of text, with a name, recursively.
Then we would need to modify Blawx to use spans in addition to hierarchical elements when generating the navigation tree. the selectors would need to be placed inline with the text, because the  elements will be mixed-mode.
Then we would need to update the known sections drawer to use spans.

Required changes have been made in Clean v0.0.2. Started the add_spans branch to implement.

Known sections drawer should work fine, as long as the lawspan class is applied to the span elements. The only required changes are to the parse_an.py file.

There was a problem with spans at the start of a line that was solved in clean 0.0.3. The tree is now being generated based on all the relevant spans.

selecting a span in a section with sub-sections currently triggers the toggle on the subsections.
The Known Sections drawer is not loading properly.
The naming of spans is inconsistent with the rest of how Clean does it. It should be prefix + __name_span
The CSS needs to be fixed for input elements that appear inline the text.
Intro text is appearing on a new line instead of inline with the section number and heading, as content appears.
Need to test it
Need to add a demonstration that uses it

I have the known sections drawer loading properly. Next is the selecting spans part.

Problem with the dropdowns is solved by making only the arrows clickable. Next is the span naming.

Span naming is fixed by using clean 0.0.4 in add_spans.

CSS is fixed. Going to leave demos until after the integration with legal text is working.


Update install README.md

a note about translations

Would you accept these old PR?

I'm sorry but I think this is more a suggestion than documentation. Like the kind of info someone would publish in a medium article about how to translate laravel subby :stuck_out_tongue:

Yes, that's true, but sometimes people ponder how to do it and here is a possible solution. Maybe not necessarily in Readme, but in general I like to see some use cases / ways of implementation in the docs.


Move default formatting rules into it's own section, so that it can be collapsed by default

Create a new section "Default formatting rules" to contain the formatting rules section. The formatting section as a whole is collapsible, however rules can grow without bound allowing the section to get very long and annoying to scroll past. It should be separately collapsible as it's own item. This will allow easier access to info at bottom of settings panel. Icon suggestions welcome, maybe vsLayers (because rules are layered on top of default idk)?
I also considered moving version info to the top, but I think that is wrong, as it would only be more useful for internal users, but likely not for actual users.

Good question. Same level, not nested.
Thinking about the wording of the titles a bit more, it is slightly weird having two sections with formatting in the label. I would be open to naming suggestions.

"Formatting & Time zone" and "Default Formatting Rules"
"Default Formatting & Time zone" and "Named Formatting Rules"
"Default Formatting & Time zone" and "Column Specific Formatting Rules" (I like this better, it is more words though).

Maybe option 3 is better for a section label?

Good question. Same level, not nested.
Thinking about the wording of the titles a bit more, it is slightly weird having two sections with formatting in the label. I would be open to naming suggestions.

"Formatting & Time zone" and "Default Formatting Rules"
"Default Formatting & Time zone" and "Named Formatting Rules"
"Default Formatting & Time zone" and "Column Specific Formatting Rules" (I like this better, it is more words though).

Maybe option 3 is better for a section label?

I like Option 3 the best since it is the most descriptive. If it is too long, then perhaps Option 2.

Okay, try it out and if it fits without wrapping then go with option 3, if not we will re-visit.


Issues with postgres

I am having issues running pip install sqlmesh[postgres] on an Ubuntu 22.04 machine. The errors are related to the install of psycopg. I installed psycopg2-binary manually and tried again. Got the error below:
nv/include -I/usr/include/python3.10 -I. -I/usr/include/postgresql -I/usr/include/postgresql/14/server -I/usr/include/libxml2 -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-3.10/psycopg/adapter_asis.o -Wdeclaration-after-statement
      In file included from psycopg/adapter_asis.c:28:
      ./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory
         35 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.

      It appears you are missing some prerequisite to build the package from source.

      You may install a binary package by installing 'psycopg2-binary' from PyPI.
      If you want to install psycopg2 from source, please install the packages
      required for the build and try again.

      For further information please check the 'doc/src/install.rst' file (also at
      <https://www.psycopg.org/docs/install.html>).

      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> psycopg2

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@georgesittas , should this issue be reopened?
pip install sqlmesh[postgres] or uv add sqlmesh[postgres] result in the same error that @vacquah reported, both on Windows 11 and Ubuntu. Installing libpq-dev using apt resolved this on Ubuntu. Python=3.12.8
I can see that psycopg2-binary is listed as a dev dependency. Could/Should the same be done for the optional dependency as well?
jovyan@61737ab111f6:~/test$ uv add sqlmesh[postgres]
Resolved 167 packages in 1.70s
  × Failed to build `psycopg2==2.9.10`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stdout]
      running egg_info
      writing psycopg2.egg-info/PKG-INFO
      writing dependency_links to psycopg2.egg-info/dependency_links.txt
      writing top-level names to psycopg2.egg-info/top_level.txt

      [stderr]

      Error: pg_config executable not found.

      pg_config is required to build psycopg2 from source.  Please add the directory
      containing pg_config to the $PATH or specify the full executable path with the
      option:

          python setup.py build_ext --pg-config /path/to/pg_config build ...

      or with the pg_config option in 'setup.cfg'.

      If you prefer to avoid building psycopg2 from source, please install the PyPI
      'psycopg2-binary' package instead.

      For further information please check the 'doc/src/install.rst' file (also at
      <https://www.psycopg.org/docs/install.html>).

      hint: This usually indicates a problem with the package or the build environment.


No spawns with CustomMobSpawner

The dimension gets created but there are no mobs (neither vanilla nor dinosaurs) in it.
CustomMobSpawner is a dependency of MoCreatures (see https://www.mocreatures.org/downloads ).

Are you sure you are on the right version? This has been fixed in version 0.6.

Yes:
~/forge-server-1.12.2$ ls mods/ | grep Prehistoric
Prehistoric+Eclipsev0.6-BETA.jar
libre@libre-computer:~/forge-server-1.12.2$ ls mods/ | grep CustomMob
CustomMobSpawner-3.11.4.jar

I'll look into it, thanks for reporting the bug.

 No spawns in the dimension when CustomMobSpawner is installed


worker-loader

I would be obliged if one help me to find the right config for loading the following loader in create-react-app
https://webpack.js.org/loaders/worker-loader/

Hi @YumcoderCom! Once #140 is merged and released, you'll be able to add worker-loader like this:
const {override, addWebpackModuleRule} = require('customize-cra')

module.exports = override(
  addWebpackModuleRule(
    {
      test: /\.worker\.js$/,
      use: { loader: 'worker-loader' }
    }
  )
)

I would be grateful if you could consider the merge as soon as possible ;)

This is now included in v0.5.0 :)

by the above-mentioned config the following error has thrown:
https://github.com/webpack/webpack/issues/6642

No problem! I'm not super-familiar with how webpack workers operate.
If the solution from that thread is correct, you should be able to do something like the following:
const {override, addWebpackModuleRule} = require('customize-cra')

module.exports = override(
  config => ({
    ...config,
    output: {
      ...config.output,
      globalObject: 'this'
    },
  }),
  addWebpackModuleRule(
    {
      test: /\.worker\.js$/,
      use: { loader: 'worker-loader' }
    }
  )
)

If that doesn't work, you'll want to ask for help from the webpack community!

No problem!
If the solution from that thread is correct, you should be able to do something like the following:
const {override, addWebpackModuleRule} = require('customize-cra')

module.exports = override(
  config => ({
    ...config,
    output: {
      ...config.output,
      globalObject: 'this'
    },
  }),
  addWebpackModuleRule(
    {
      test: /\.worker\.js$/,
      use: { loader: 'worker-loader' }
    }
  )
)

If that doesn't work, you'll want to ask for help from the webpack community because I am not familiar with how workers operate.

it's doesn't work 😢


docker-compose yamls not running on Windows 7

kletkeman@tp-letkemank  /c/blockchain/src/github.com/IBM-Blockchain/fabric-images/docker-compose (master)
$ docker-compose -f single-peer-ca.yaml up
Traceback (most recent call last):
File "", line 3, in
File "compose\cli\main.py", line 65, in main
File "compose\cli\main.py", line 117, in perform_command
File "compose\cli\main.py", line 849, in up
File "compose\project.py", line 372, in up
File "compose\project.py", line 539, in warn_for_swarm_mode
File "site-packages\docker\api\daemon.py", line 33, in info
File "site-packages\docker\utils\decorators.py", line 47, in inner
File "site-packages\docker\client.py", line 139, in _get
File "site-packages\requests\sessions.py", line 488, in get
File "site-packages\requests\sessions.py", line 475, in request
File "site-packages\requests\sessions.py", line 596, in send
File "site-packages\requests\adapters.py", line 423, in send
File "site-packages\requests\packages\urllib3\connectionpool.py", line 595, in urlopen
File "site-packages\requests\packages\urllib3\connectionpool.py", line 363, in _make_request
File "httplib.py", line 1057, in request
File "httplib.py", line 1097, in _send_request
File "httplib.py", line 1053, in endheaders
File "httplib.py", line 897, in _send_output
File "httplib.py", line 859, in send
File "site-packages\docker\transport\npipeconn.py", line 31, in connect
File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped
File "site-packages\docker\transport\npipesocket.py", line 49, in connect
pywintypes.error: (2, 'WaitNamedPipe', 'The system cannot find the file specified.')
docker-compose returned -1

BTW -- runs fine on MacOS

I am able to run these docker-compose files on my Windows 7 system.  My recommendation would be to uninstall Docker Toolbox, remove any trace of Docker, Python, and Oracle VirtualBox from your machine, and then reinstall Docker Toolbox.  I suspect something is wrong with the Python installation on your machine.  It's a shot in the dark, but nothing in this error message is a strong indicator to me that our compose files are causing the issues.

Ok, Thanks. I'll try that when I get a chance. I am currently working on the Mac, where it is going well.

I have the same issue.  Docker Tools on Windows 7

i am getting the same issue on win 10

@jdstuart  @nmors  Looks like you are not even getting things up and running with docker-compose on Windows?  (as an aside I recommend Docker for Windows whne using Win10).
One thing you need to make sure that you do is run all commands from the "Docker Quickstart Terminal"

getting the folowing error while running yaml file from within Docker Toolbox on Win 7-
Radhna@ADMINIB-0AQ5PNL MINGW64 ~/blockchain/fabric-images/docker-compose (master)
$ docker-compose -f single-peer-ca.yaml up -d
Pulling membersrvc (ibmblockchain/fabric-membersrvc:x86_64-0.6.1-preview)...
←[31mERROR←[0m: Get https://registry-1.docker.io/v2/ibmblockchain/fabric-membersrvc/manifests/x86_64-0.6.1-preview: unauthorized: incorrect username or password
Can anyone help ?

@mastersingh24 thanks. I was using git bash before, I figured that it now works fine when using the Docker Quickstart Terminal. I switched from Docker for windows using Hyper-V to Docker toolbox with VirtualBox.. Works fine now with toolbox, realising that this was the problem..

@mastersingh24 Thanks a lot, I was using normal CMD and was surprised I it wouldn't work.


Show route

You need to visualize the route traveled by a vehicle in a given time, using the map of Gmap3.
Data were obtained from a database, which will be loaded from a webservice with access to the database.

moved to https://github.com/incodehq/incode-platform/issues/36