text:
auto create tables mysql

this is a duplicate of the closed issue [#74]
This is how to auto create the tables using https://flywaydb.org/. I figured it out using https://www.callicoder.com/spring-boot-flyway-database-migration-example/.
Basically
Add this dependency to the pom.xml
 <dependency>
            <groupId>org.flywaydb</groupId>
            <artifactId>flyway-core</artifactId>
            <version>5.0.7</version>
 </dependency>

mkdir -p src/main/resources/db/migration
touch src/main/resources/db/migration/V1__init.sql
place this text in there
-- initialize tables
DROP TABLE IF EXISTS `user_authority`;
DROP TABLE IF EXISTS `user`;
DROP TABLE IF EXISTS `authority`;

CREATE TABLE user
(
id integer NOT NULL,
username VARCHAR(50) NOT NULL,
password VARCHAR(100) NOT NULL,
firstname VARCHAR(50) NOT NULL,
lastname VARCHAR(50) NOT NULL,
email VARCHAR(50) NOT NULL,
enabled boolean,
lastpasswordresetdate timestamp NOT NULL,
CONSTRAINT user_pkey PRIMARY KEY (id)
);

DROP TABLE IF EXISTS `authority`;

CREATE TABLE authority
(
id integer NOT NULL,
name VARCHAR(50) NOT NULL,
CONSTRAINT authority_pkey PRIMARY KEY (id)
);

CREATE TABLE user_authority
(
user_id integer NOT NULL,
authority_id integer NOT NULL,
CONSTRAINT fk_authority_id_user_authority FOREIGN KEY (authority_id)
REFERENCES authority (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT fk_USER_user_authority FOREIGN KEY (user_id)
REFERENCES user (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
);

-- insert data
INSERT INTO user (ID, USERNAME, PASSWORD, FIRSTNAME, LASTNAME, EMAIL, ENABLED, LASTPASSWORDRESETDATE) VALUES (1, 'admin', '$2a$08$lDnHPz7eUkSi6ao14Twuau08mzhWrL4kyZGGU5xfiGALO/Vxd5DOi', 'admin', 'admin', 'admin@admin.com', 1, STR_TO_DATE('01/01/2016', '%c/%e/%Y %r'));
INSERT INTO user (ID, USERNAME, PASSWORD, FIRSTNAME, LASTNAME, EMAIL, ENABLED, LASTPASSWORDRESETDATE) VALUES (2, 'user', '$2a$08$UkVvwpULis18S19S5pZFn.YHPZt3oaqHZnDwqbCW9pft6uFtkXKDC', 'user', 'user', 'enabled@user.com', 1, STR_TO_DATE('01/01/2016','%c/%e/%Y %r'));
INSERT INTO user (ID, USERNAME, PASSWORD, FIRSTNAME, LASTNAME, EMAIL, ENABLED, LASTPASSWORDRESETDATE) VALUES (3, 'disabled', '$2a$08$UkVvwpULis18S19S5pZFn.YHPZt3oaqHZnDwqbCW9pft6uFtkXKDC', 'user', 'user', 'disabled@user.com', 0, STR_TO_DATE('01/01/2016','%c/%e/%Y %r'));

INSERT INTO authority (ID, NAME) VALUES (1, 'ROLE_USER');
INSERT INTO authority (ID, NAME) VALUES (2, 'ROLE_ADMIN');

INSERT INTO user_authority (USER_ID, AUTHORITY_ID) VALUES (1, 1);
INSERT INTO user_authority (USER_ID, AUTHORITY_ID) VALUES (1, 2);
INSERT INTO user_authority (USER_ID, AUTHORITY_ID) VALUES (2, 1);
INSERT INTO user_authority (USER_ID, AUTHORITY_ID) VALUES (3, 1);

Don't forget to update application.properties with the mysql credentials
spring.jackson.serialization.INDENT_OUTPUT=true
spring.h2.console.enabled=true
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test_db
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

jwt.header=Authorization
jwt.secret=mySecret
jwt.expiration=604800
jwt.route.authentication.path=/auth
jwt.route.authentication.refresh=/refresh

Then run
mvn spring-boot:run
I suppose we could create a separate branch for mysql support to not conflict w/ the h2 memory database.

@lastlink thanks for sharing your code!

Linked this in README.

thanks

Description:
Field userRepository in org.zerhusen.security.service.JwtUserDetailsService required a bean named 'entityManagerFactory' that could not be found.
Action:
Consider defining a bean named 'entityManagerFactory' in your configuration.

Can you help me out   ,i am unable to run demo

no comments replys

I did everything like you told. But ı was got an error.
Why am ı getting this error?
java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@6f94fa3e]

repo: szerhusenBC/jwt-spring-security-demo


text:
Default values?

This is looking pretty cool, but I noticed that things like the margin and enabled layouts don't seem to have default values, so the OOTB experience is a traceback and a failure to start. Might be a good idea to have some defaults there.
Also, do you think this would be worth converting into a Spoon?

Yeah, default values are a good idea, I'll add this to my todo.
As for spoon, I'm depending on two modules that aren't Spoons, so not sure how could that work? Honestly I never looked closely at Spoons so not sure about the limitations / best practices :)

Spoons intentionally have no way to declare dependencies, so that wouldn’t really change from installing the wm right now, and those two modules are really out-of-tree core modules rather than other Lua modules, so I don’t think it would be better or worse on that front.
Also FWIW we’d like to get axuielement into core at some point (asm’s Spaces module has a less clear future though - maybe that could be made optional?)

Yeah without spaces module this wouldn't work at all - I'm keeping list of windows per space id, etc. So making it optional is not really possible.
I'll look into converting this into a spoon, but it's a bit of low priority for me :)

👍

source: gharchive/issue

authors: cmsj szymonkaliski

repo: szymonkaliski/hhtwm

license: MIT

license_type: permissive

license_source: github-api


text:
feat: integrate attesters with SFX protocol & rewards: prevent collusion with repatriation & slash

Summary of changes
Extend the work on requesting repatriations to pallet-rewards (#PR993) and integrate pallet-attesters to request for reiterations to honest SFX executors after attestations haven't been provided within the RepatrationPeriod.

connect pallet-attesters with Circuit via ReadSFX API
connect pallet-attesters with Rewards via RewardsWrite API

If it fixes a bug or creates a feature, link the issue.
Acceptance Checklist
What types of changes does your code introduce?
Put an x in the boxes that apply
Dependencies

[ ] Any dependent changes have been merged and published in downstream modules
[ ] Any teams which manage the dependencies have been notified of the breaking changes

Bug (non-breaking change which fixes an issue):

[ ] Have you written tests to protect against future occurrences of the bug?

Feature (non-breaking change which adds functionality)

[ ] Have you seen it working in a development environment?
[ ] Have you written tests for happy and unhappy paths?
[ ] Have you implemented this feature as per the issue acceptance criteria?

Substrate
If this change involves substrate, have you remembered:

[ ] Storage Migration?
[ ] RPC methods?
[ ] Chainspec, both JSON specs & the module?
[ ] Runtime versioning?
[ ] Benchmarks?

Breaking change (a feature that would cause existing functionality not to work as expected)

[ ] Is the breaking change documented?
[ ] Are your commits fully representative of the change?
[ ] Has any previous functionality been deprecated and versioned?

CI/CD

[ ] If introducing new actions, have you looked at the action code for anything spurious?
[ ] Have you written custom scripts for things that could be actions already on the marketplace?
[ ] If introducing new actions, have you pegged a static version?

Documentation Update

[ ] Have you checked other documentation, such as the docs repository?
[ ] If updating script documentation, have you tested it on both environments?

Further comments
Feel free to explain in further detail your choices if this is a significant change.
Screenshots (Please demonstrate this working in PolkadotJS)

Summary by OpenAI
New Feature: A new Substrate module, pallet-attesters, has been added to manage attesters in a blockchain network. It provides APIs for registering attesters, nominating them, and handling slash risks. The changes also add a new function to the pallet module that retrieves the codec of a given chain ID, as well as new types and traits to integrate with external APIs.

"Attesters and rewards, now in sync,
With Circuit and ReadSFX, no need to think.
New functionality, carefully reviewed,
Bugs and vulnerabilities, all subdued."

continued in https://github.com/t3rn/t3rn/pull/1015

source: gharchive/pull-request


text:
Spacebar interaction doesn't work on Nurikabe in demo page

https://tabascq.github.io/PuzzleJS/puzzle-js-demo.html
Nurikabe demo indicates that spacebar is a valid way to toggle tiles.  Not working on Edge Version 113.0.1774.50.
In general: ideal would be that any "toggle with mouse" functionality also works with spacebar, for accessibility purposes.

Resolved in #5

authors: NateD-MSFT tabascq

repo: tabascq/PuzzleJS


text:
Bug in AlternatingSequence exception

class AlternatingSequence(DiagramMultiContainer):
	def __new__(cls, *items):
		if len(items) == 2:
			return super(AlternatingSequence, cls).__new__(cls)
		else:
			raise Exception("AlternatingSequence takes exactly two arguments got " + len(items))

raises:
TypeError: can only concatenate str (not "int") to str

Last line should use "str(len(items))" (or do proper format call:
raise Exception("AlternatingSequence takes exactly two arguments got {0}".format(len(items)))

You're right, thanks for the report!

authors: ptmcg tabatkins

repo: tabatkins/railroad-diagrams


text:
Is it possible to read rotated table correctly

Hi
Could you help me with reading the rotated table like below ? and how can I check whether a table is rotated ? thank you!

Hi @bruce-genhot,
Currently it is not possible to rotate a PDF page within Tabula. However, you can do so with a PDF viewer application such as Preview (in Mac OS) and re-upload to Tabula.

authors: bruce-genhot jazzido

repo: tabulapdf/tabula-java

license: mit

license_source: bigquery


text:
Use variable media queries breakpoints

In the tachyons you define custom breakpoints "--breakpoint-medium", why not use those breakpoints in this component as well?

We do use the same ones here as well. If you look at the top of this file we define the media queries in the same way as in the main tachyons repo https://github.com/tachyons-css/tachyons-flexbox/blob/master/src/tachyons-flexbox.css
Let me know if I am not understanding your question correctly.

repo: tachyons-css/tachyons-flexbox

license: ISC


text:
Move the snapshot test example to a different spec file

We should start with a simpler example, snapshot tests over tracked events are for advanced users

I've just clone the project, and all expect(track.collect()).toMatchInlineSnapshot( items fails :(
Is it related to this issue? I've just removed them.

authors: alexnivanov talkol

repo: tact-lang/tact-template


text:
LANDING Page need to display tips

As new user I need to see some tips before starting on 100eyes
Therefore the landing page should offer me some tips
(Tipp des Tages Box für @drjakob )

https://docs.google.com/document/d/1laiKLf_ud-zG-jDa1hi_YUtZMYoQ4QW3s4muTu7YbOQ/edit?usp=sharing

The tipps should be randomly selected out of three (ten).

authors: FrauCsu drjakob


text:
Plugin Failure - Unexpected token is not valid JSON

Trying to load the plugin on macOS Sequoia I see:
app.js:1 Plugin failure: various-complements SyntaxError: Unexpected token '<', "<<<<<<< Up"... is not valid JSON
    at JSON.parse (<anonymous>)
    at AppHelper.loadJson (plugin:various-complements:2452:17)
    at async _AutoCompleteSuggest.refreshIntelligentSuggestionPrioritization (plugin:various-complements:4365:9)
    at async _AutoCompleteSuggest.new (plugin:various-complements:3954:5)
    at async VariousComponents.onload (plugin:various-complements:7803:22)

I am on Obsidian Version 1.7.4.

@Borillion
Based on the error message, I suspect that the file specified in the "history file path" setting for "Intelligent suggestion prioritization" might be corrupted. Could it be that the file is managed by Git and has conflicts?

heh! I had not considered that could be the issue. I removed and added the plugin back in today and was able to fix the issue that way.

I’m glad to hear that!

authors: Borillion tadashi-aikawa


text:
Refactoring for testing

Wonder if it would be worth the while to refactor the main part of the script to a module so that every function can be tested independently, as Chromatic says here in Perl Monks http://www.perlmonks.org/?node_id=858958. Another option would be to use Test::Script::Run, also mentioned there.

Maybe it's the moment to pick this up again?

Rakudobrew is now split into different modules. I'm not that proficient in module structure in perl5 so the way it's done might not be the cleverest.

authors: JJ patzim

repo: tadzik/rakudobrew


text:
support git cloning over https as well

As some people require git: and some https: a command line parameter would be the best solution with maybe a config file or env var to not have to type it every time if you differ from the default.

Hmm, what if it tried the default and if that fails tried using the other? Like "cloning via git:// failed, trying https://...."?

Either of those solutions would be acceptable. I had to modify rakudobrew manually to use https instead of git due to firewall restrictions.

For the record, I also patched rakudbrew to use http because of firewall issues.
Since rakudobrew does not really handles command line options, but already has a environment variable for GIT_BINARY, maybe a GITHUB_PROTO environment variable (possible values: git, http, https, ssh) would be sufficient.

Does no checking on the protocol variable, but it at least handles git and https. For further improvements, patches welcome :)

authors: abraxxa book ravenhall tadzik


text:
fix(kit): CalendarRange not update selectedActivePeriod, when value updates

Closes #8527
After update value:
As Is:
https://github.com/user-attachments/assets/c6f5205d-3394-4894-9c24-ba53cb2d435f
To Be:
https://github.com/user-attachments/assets/8aeaab56-f254-4618-82e7-b97092da5ace

Closing in favor of https://github.com/taiga-family/taiga-ui/pull/8595

authors: mdlufy waterplea

repo: taiga-family/taiga-ui


text:
chore(demo): Card fix "Paddings and radii" demo

Close #8916

@waterplea label title styles is a different PR: #8931


text:
perf: replacing HashMap with TailcallHashMap

Summary:
Briefly describe the changes made in this PR.
Issue Reference(s):
Fixes #... (Replace "..." with the issue number)
Build & Testing:

[ ] I ran cargo test successfully.
[ ] I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

[ ] I have added relevant unit & integration tests.
[ ] I have updated the documentation accordingly.
[ ] I have performed a self-review of my code.
[ ] PR follows the naming convention of <type>(<optional scope>): <title>

No improvement

repo: tailcallhq/tailcall


text:
How to add a font-family from Google Fonts

I looked in the Tailwind docs: https://tailwindcss.com/docs/fonts#font-families and it seems like it should be as easy as adding a name to the fonts list. I didn't recognize some of the font-families (Oxygen, Cantarell, Segoe UI) but they all seem to be Google fonts. I'd like to add 'Nunito' to the sans list but whenever I add to to the beginning on the list and re-run npm run dev none of the sans-serif fonts change. Am I'm mistaken in how to do this? I'm not sure if the Tailwind package automatically downloads the files from Google fonts or how the existing families are packaged.

Tailwind doesn't do anything special to auto-import fonts or anything, so you need to import them the same way you would in a regular project, either by adding the Google stylesheet reference to the top of your HTML like this:
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
...or by importing your fonts with @font-face declarations at the beginning of your CSS file:
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

Hope that helps!

Would it make sense to put that import in @components then?

yes you can, but first you must provide the appropriate font.

authors: adamwathan mandaputtra wishinghand

repo: tailwindcss/discuss


text:
Change the config.js to tailwind.js tht is recommended in step 3.

In step 2 of installation you say:

We recommend creating a tailwind.js file in your project's root.

Then in Step 4:
./node_modules/.bin/tailwind build styles.css [-c ./config.js] [-o ./output.css]

Why config.js and not tailwind.js that you recommended earlier? This PR I just tried to unify the docs. 😄

Hey there Eric! So, the reason it's different here is because when you use tailwind build it will name the config file tailwind.js by default. The -c option allows you to change this to something else. This is why we had something different here, to illustrate that you can use a non-default value. But maybe that's confusing and it still makes sense to show the default value?

Actually without the -c option it uses no config file, so it probably makes sense to be consistent with the name. The reason for using config there though was to make it clear that the argument is your config file, but maybe that’s still clear even without the word config there?

Right! I'm getting confused with init. I think originally we actually had your-tailwind-config.js here, but I shortened it to make it fit in the docs without scrolling:

I'd still like to keep it from scrolling, but also agree that using tailwind.js is better. I'll merge this in.

authors: adamwathan ericbarnes reinink

repo: tailwindcss/tailwindcss


text:
Laravel Mix: Not all variants are enabled out of the box

What version of @tailwindcss/jit are you using?
0.1.3
What version of Node.js are you using?
v14.3.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://github.com/marcorieser/laravel-tw-jit

I install a standard Laravel application and configure Tailwind JIT via Laravel Mix.
In tailwind.config.js I add the purge paths, but otherwise leave it as is.
In the home view I insert the class text-teal-500 and expect it to be generated in css, although I have not enabled the color variant in the configuration.
The same applies, for example, to the class hover:focus:bg-blue-200.
Unfortunately, the non-standard variants have not been generated.
Variants enabled by default work as expected, as far as I can tell.

I don't think this a bug to be honest. A color isn't a variant. So for colours you have to explicitly enable them in your config. It's variants that should automagically work. So if you enable the teal colours in your config you don't have to define the hover and focus variants for backgrounds. That should be automatically picked up, which I noticed it does at the moment :-).

So if we do
const colors = require('tailwindcss/colors')

module.exports = {
  theme: {
    extend: {
      colors: colors
    }
  }
}

Then we can use all default colors at will. Would it be meaningful to make that the default? It means that the configuration won't be working well for non-jit setups, though.

I guess you're right Vlad. That should work probably. Personally I'm not sure about defaulting though as the current way forces you to think about your design system.

I wouldn't recommend making that the default, there's no reason to have 5 different sets of grays, 2 similar blues, 2 similar purples, etc. in the same app. Generally I recommend folks actually customize their config to use less colors than we ship by default, as most real-world projects don't need as much 👍🏻
We also recommend aliasing colors right, like this:
// tailwind.config.js
const colors = require('tailwindcss/colors')

module.exports = {
  theme: {
    colors: {
      // ...
      gray: colors.trueGray,
      purple: violet,
      red: colors.rose,
      yellow: colors.amber,
    }
  }
}

So that if you are using trueGray as your gray you don't have to write bg-true-gray-500 everywhere vs. just bg-gray-500.

authors: adamwathan marcorieser robdekort vladdu

repo: tailwindlabs/tailwindcss-jit


text:
Meal Plan - list viewer can edit and share

"A list Viewer can: View, Remove check Ingredients by pressing the stacked dots to open the list options dialog"
Accessed meal plan via the eye icon
Clicked stacked dots
Able to edit, share etc like an editor - but should only have view access

(Screenshot from the meal plan screen showing correct options)

(Screenshot after going into the meal plan from the eye icon)

@taitdigital - issue still exists.

authors: jody-tait taitdigital

repo: taitdigital/aisle-nine-beta

license: Unlicense


text:
APIがデプロイできない

状態
Next.jsの静的アプリはデプロイできるが、FunctionsのAPIをでぷろいしようとするとエラーがでる。
期待する動作
静的アプリはNext.js、サーバレスAPIはAzure Functionを使用したアプリをStatic Web Appsで動かしたい。
エラー
https://github.com/takatoshiinaoka/swa-aadb2c-auth-sample/actions/runs/6071830763/job/16470646795
'api_location' value should be an empty string ("") for Next.js applications which are not statically exported. Consider implementing serverless functions using Next.js API Routes.

NextからReactに変更したのでこのイシューはクローズします。
Nextを使う場合は、API Routesを使う必要がありそう。もしくは、憶測だがNextプロジェクトの設定を静的コンテンツに明示的にする必要がありそう。

repo: takatoshiinaoka/swa-app-sample


text:
Build an index

Thanks for this nice tool!
Any idea how we could build a word index the same way makeidx does?

I'm not familiar with makeidx, sorry.

authors: boileaum takluyver

repo: takluyver/bookbook


text:
TOML Object-based requirement syntax in pyproject.toml

Something like:
[tool.flit.metadata.requires]
requests = ">=2.6"
configparser = {version = "*", python_version = "=='2.7'"}

This does not need to replace the current string-based format, only as syntactic sugar for users to opt-in. I imagine this more structured format would allow Flit to perform better compile-time (in a sense) checks for the user’s input.
The object representation came from Pipfile, but Flit does not need to support everything, only those make sense as package dependencies (e.g. version, extras, PEP 508 markers).

Thanks for the suggestion. For now, I think I'd rather stick to "one way to do it". Flit already does fairly careful checking of the requirement syntax (this code). Having two different ways to specify requirements could confuse people over whether they're equivalent.

authors: takluyver uranusjr

repo: takluyver/flit


text:
Update vars.go

many callbacks require text/plain

是否赞同在 goctl api 中支持纯文本响应
像这样：
var txt string
get xxx () returns (txt)

是否赞同在 goctl api 中支持纯文本响应
像这样：
var txt string
get xxx () returns (txt)

不建议支持，这样也不方便扩展

是否赞同在 goctl api 中支持纯文本响应
像这样：
var txt string
get xxx () returns (txt)

不建议支持，这样也不方便扩展

authors: kingxt pengshuaifei

repo: tal-tech/go-zero


text:
RangeError on empty list provided to steps

Giving that I track which steps were shown using SharedPreferences.
And reduce this list I provide to Onboarding(steps:  for each already shown OnboardingStep:
This very fast results to an empty list being provided as steps.
Now in turn when the following code is called, this leads to the following error message.
Code:
    WidgetsBinding.instance?.addPostFrameCallback((Duration timeStamp) {
      final onboarding = Onboarding.of(context);
      onboarding?.show();
    });

Error:
RangeError (index): Invalid value: Valid value range is empty: 0

uhm empty steps doesn't sound right. Why don't you try calling the other show methods
instead of calling show, try showWithSteps.
Other than that what do you expect to happen? just not start and not throwing error?
Do you update the steps passed to the Onboarding dynamically on change?

Because the other method (showWithSteps) throws the same error :smile:.
I personally would expect it to just not start.
I do exactly that:
onChanged: (i) =>              context.read<SharedPreferencesService>().setOnboardingDone(i),

ok, it seems I haven't added any safe check for empty steps. I didn't expect someone to change that dynamically.
Here is what I do. Similarly to you I store which steps were completed, then I check if there are completed steps, it's a number actually. Then If I have completed all steps I just don't start the onboarding. Else I generate a list with indexes using that number and the total number of steps and start the onboarding with showWithSteps. Obviously those safe-checks are outside of the onboarding in my app.
for example I have 8 steps , you completed step 5 (index 4). The user closed it, or you closed it.
next time the user navigates to a page or opens the app or some other activity, I see the user have completed step 5. this means I need to call the showWithSteps(5, [5,6,7]) instead of just show();
I'll add some safety measure to not be able to start the onaboarding with 0 steps, bet that honestly is your responsibility :)
Will be back to you when I publish pre.11.

I might use your package other than intended, which might be the reason for our different approach.
So I'd like to argue why allowing empty steps would be good.
I use create a different Onboarding for each section of my app (this results in about +10 onboarding widget with different steps all together. To manage that I use a seperate logic which tracks the indexes that were already viewed.
The Onboardings encapsulate my own OnboardingFocus so whenever the user first encounters the page, the onboardings are started. Now that I know that I should check if onboarding has steps provided before calling any method, that can be easy implemented by me, but future users might not be so lucky to encounter this early on, so the possibility to provide an empty list to Onboarding might still be a great idea anyway.
OnboardingFocus
```dart
class OnboardingFocus extends StatefulWidget {
  OnboardingFocus({Key? key, required this.child}) : super(key: key);
final Widget child;
@override
_OnboardingFocusState createState() => _OnboardingFocusState();
}
class _OnboardingFocusState extends State {
@override
void initState() {
super.initState();
WidgetsBinding.instance?.addPostFrameCallback((Duration timeStamp) {
final onboarding = Onboarding.of(context);
onboarding?.showWithSteps(0, []);
});
}
@override
Widget build(BuildContext context) {
return widget.child;
}
}
</details>

Right. Yes, no worries.
I do use it differently. I use only one giant onboarding with 15 steps, and show portions of 5 steps on different pages.
Just different approach like you said. Working on fix.

https://pub.dev/packages/onboarding_overlay/versions/3.0.0-pre.11

Works like a charm thanks as always.
(Just to make you aware, that you have a competitor since recently)

Actually, pal is not just widgets. I think it is a SaaS. You can control the onboarding steps remotely. It's a different thing. I'm well aware about it's existence, but thanks for sharing https://pub.dev/packages/pal

right. You are welcome.
another addition: I noted, that you print the debug messages ('overlay hit true') ('label hit') by default. You might want to change this, as it overloads the debug console quite fast.

authors: jlnrrg talamaska


text:
Problem with mocked file name (alanning:roles)

I'm having errors with the deployment script. I was having difficulties integrating with Github (nevermind that I'm not the Github admin at work so I have to bug my boss everytime to configure it), so I used local Git option.
This seems to work fine, except I get the error:
remote: Updating branch 'master'.
remote: Deployment failed
remote: Error - Changes committed to remote repository but deployment to website failed.
To https://WEBAPP_ADDRESS.scm.azurewebsites.net:443/WEBAPP_NAME.git
   1dc5c74..d71b1fd  master -> master

Also, in Azure, I get this:

simple statement
I assume this is because Azure doesn't recognize "something:something" as a valid folder name? However, it's hard to fix this, since I need a mock of the alanning:roles package for my Jest tests to work.
Really curious if you have any suggestions. Thanks!
Before opening an issue, please check if a similar one already exists or has been closed before.
If you are reporting a bug, please be sure to include the following:

Script version is Version: 1.0.8

UPDATE:
So I was able to avoid the filename error by using the moduleNameMapper config option for Jest.
Here's a piece of my package.json:
"jest": {
    "moduleNameMapper": {
      "^meteor/meteor": "<rootDir>/.tests/meteor/meteor.js",
      "^meteor/alanning:roles": "<rootDir>/.tests/meteor/roles.js"
    },
    "modulePathIgnorePatterns": [
      "meteor-dev-bundles"
    ]
  },

I'm not sure if I'm able to get this running smoothly all the way, but it looks like this error is solved.

Great that you were able to work around this.
Since Azure doesn't expose the push mechanism (build fails before the script is even executed) - any solution we did provide would realistically have to run locally anyways.
Going to hold off any further debugging for now, please let me know if you run into anything else.

authors: ramijarrar tgoldenberg

repo: talos-code/meteor-azure


text:
triplet_loss_dataloader.py

Hello, I'm daniel,
While running your project, one question arose.
In dataloader/triplet_loss_dataloader,
It is a system that generates (pos, neg) class randomly as the number of triplets allocated for each processor, and randomly selects images,
but, When using the function of np.random.choice, I confirmed that the same random value is outputted for each processor.
So I used np.random.RandomState(), and I was able to use a different random value for each processor.
Please let me know if I understand this processor well or not.
Thank you.
Daniel

Hi Daniel,
Thank you very much for catching this one. The intention was only to speed up the triplet generation process and not to re-replicate the generated triplets across the spawned processes, hehe. I have edited the dataloader as you described and the RandomState() object would be initialized with seed=None so every time the seed would be a random number and would then randomly choose the required elements for triplet creation.
To be clear, the current pre-trained model was trained on 10 million generated triplets that was not generated with the multi-processing method.
The reason why I am using the "triplet generation" method is to have some kind of naive reproducibility when changing some parameters, the intention is to conduct future experiments with a set number of human identities per triplet batch whereby the dataloader would generate and yield a set number of triplet per training iteration instead of a pre-generated list of triplets like with the current version.
However, there are two current issues I am dealing with that you should be aware of before using this project:
1- After some training "epochs", the BatchNorm2D operation would require more VRAM allocation and would cause a CudaOutofMemory Exception. I was training one epoch per day since one epoch was taking around 11 hours on my PC and I would turn off the process when it is done so I would use my PC for other things, so I managed to somehow get the 256 batch size training to work but would cause an OOM if left for several epochs. So I would recommend you use a lower batch size value that would initially allocate around 40-60% of your GPU VRAM.
2- I tried switching to CPU for the iterations that caused the OOM in order to continue training. Unfortunately, switching to CPU has a negative impact on model performance metrics, I still don't know why that is the case so far.
Again, thank you very much for catching the issue.

Hello.
Thank you for answering my question.
In my PC gpu, had TITAN 4ea (12GB), so I used multi-gpu (data-parallel), In fact, a network has 256/4=64 batches.
currently, I finished 1-epoch (10,000,000 triplet num data) approximately 3-hours.
There is no problem at present, and the slightly different point is that the performance is low, but most of them use torch.cuda.empty_cache () to avoid OOM.
Now, Training without any problems.

We may work on this as well. I noticed that the triplet generation is not a very fast process. Probably data-frames are not that fast for this kind of usage. It is interesting whether we could do sth. to generate harder than the random triplets.
Hard mean looking close to each-other while being different persons so the network to try harder learning the difference. I have ideas in this regard if interested.

We may work on this as well. I noticed that the triplet generation is not a very fast process. Probably data-frames are not that fast for this kind of usage. It is interesting whether we could do sth. to generate harder than the random triplets.
Hard mean looking close to each-other while being different persons so the network to try harder learning the difference. I have ideas in this regard if interested.

authors: AGenchev YoonSeongGyeol tamerthamoqa


text:
Staline with nvim-tree shows the same thing

When I started using Staline and nvim-tree, the buffers doesn't show separated lines, but the same line in both. When my cursor is on nvim-tree, the staline show the nvim-tree status, but when I'm writing code, the nvim-tree buffer doesn't show nvim-tree or anything related, just the current bufferline info.

Heyyo @orangethewell ,
This is a known limitation of staline as this feature was more tailored towards floating windows. example: Telescope

This is because staline uses a single function for active and inactive buffers.
Also, most people nowadays are using a global statusline with vim.opt.laststatus=3 instead of 2.
Maybe you could try that out. 😅

Closing due to inactivity, feel free to open if the problem persists 👍🏻

authors: orangethewell tamton-aquib


text:
SEND FAILED on android

Hi
please some one help me with ip and port setting in traccar client

If you are using Traccar server, port for Traccar Client is always 5055. IP address is your server IP address.

This link might be helpful:
https://www.traccar.org/troubleshooting/

repo: tananaev/traccar-client-android


text:
build problem

Hi,
i'm trying to build the traccar project but I have an error.
I cloned the repo with Netbeans 8.0.2 and when i build i have the error below on the testo of tramigo protocol. I have the same error also build with mvn.
Thanks.
Max
-------------------------------------------------------------------------------
Test set: org.traccar.protocol.TramigoProtocolDecoderTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
testDecode(org.traccar.protocol.TramigoProtocolDecoderTest)  Time elapsed: 0 sec  <<< ERROR!
java.text.ParseException: Unparseable date: "19:48 Jan 4 2015"
	at java.text.DateFormat.parse(DateFormat.java:357)
	at org.traccar.protocol.TramigoProtocolDecoder.decode(TramigoProtocolDecoder.java:146)
	at org.traccar.protocol.TramigoProtocolDecoderTest.testDecode(TramigoProtocolDecoderTest.java:20)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

Please try again now.

Resolved. Thanks

repo: tananaev/traccar


text:
Установка карт на SYNOLOGY

День добрый, хочу установить карты гугла на сервак установленный на synology ds415play, но в отличии от той же виндовозной версии нет всплывающего окна куда можно занести код.
По умолчанию есть только опенстрит мэпс и бинг, также есть указатель пользовательская карта, но она ведёт на сервер опенлэер3.
куда в коде приложения или в настройках нужно добавить код карт гугла, для их дальнейшего выбора?
заранее спасибо.

Думаю что Synology пакет не обновлялся и там старая версия Traccar в которой нет возможности выбрать пользовательскую карту. Спросите автора обновить пакет.

authors: defaultlister tananaev


text:
TL300 protocol integration into Traccar (request)

Hi all,
I tried to connect the TL300 -Mini Vehicle GPS Tracker in Traccar with no success.
As I don't know if it is already possible, I uploaded the files for the protocol. We have about 1000 pieces of those trackers and we already embbeded traccar on our server( It works great) and many thanks to the team behind.
Uploading NEWLY ADDED  GPRS COMMANDS.pdf…
Uploading Protocol_addendum  new protocol.pdf…
Uploading TL300 -Mini Vehicle GPS Tracker- User Manual V1.pdf…

it 's ok now, its port 5013 and protocol h02.
It's working Great.
Spécial thanks to the team behind...


text:
How to filter / delete incorrect datasets ?

Hello, I really enjoy the new version 3.10. Works fine with me, but I have a problem with one of my trackers (TK5000) which sometimes send wrong data

sending positions with date in the future
sending positions which are totally of track due to bad GPS fix.

I have not yet found any opportunity to use the filter function to get red of such entries.

is very annoying as I need to delete the entries with PHPmyAdmin to assure that the Webinterface works correct again.
is vey annoying because, the its takes a lot of effort to correct tracks manually.

Any chance to use the filter functions (now) or maybe in the future ?

You can enable filtering on the server side.

Thanks for the feedback, however I do not completely understand which filter would help.
I need filter.enabled = yes together with which other filter settings to get rid of my issues ?
filter.enable	config	Boolean flag to enable or disable position filtering.
filter.limit	config	Time limit for the filtering in seconds. If the time difference between last position and a new one is more than this limit, the new position will not be filtered out.
filter.invalid	config	Filter invalid (valid field is set to false) positions.
filter.zero	config	Filter zero coordinates. Zero latitude and longitude are theoretically valid values, but it practice it usually indicates invalid GPS data.
filter.duplicate	config	Filter duplicate records (duplicates are detected by time value).
filter.distance	config	Filter records by distance. The values is specified in meters.

Currently I have set the following filters, but still get faulty record entries with date 2018.
<entry key='filter.enable'>true</entry>
<entry key='filter.invalid'>true</entry>
<entry key='filter.zero'>true</entry>

You can use filter.future. The value is in seconds.

Thanks a lot for the info. I think its not yet in the documentation. I will put into my config.
Another flag for filter.UnrealisticSpeed to filter all incorrect GPS positions which are caught in areas with bad GPS signal and jump from mid Europe to Africa and back within a few seconds :-).
If could be configured, would be great I would use a much lower max speed for my ebike tracker then for my car. That would allow to eliminate about 99% of the false entries I currently find wrt to weak GPS fix.

I think there are already enough options for filtering.

Agreed we have a lot of useful filters, but I do not know, how I could use the existing filters to eliminate the positions which are completely off track due to a bad GPS fix.
filter.distance defines the minimum distance between two positions, but I would need a max distance or max speed.

If you get invalid location, it means that there is something wrong with your GPS device.

Thanks for the info ... I try to get the wrong locations out of my logs and have found a strange issue with my tracker Incutex TK5000 (port 5032)
I found a tracker-server.log entry like:
2017-04-18 13:31:27  WARN: Geocoding failed - Empty address - GeocoderExcep$
$8 13:31:26, lat: 842.15070, lon: 942.94276, speed: 6.5, course: 242.0
but even the entry indicates the the location is incorrect, its tracked in traccar and recorded as valid dataset.
traccar.xml config has defined:
true
true

Where does it indicate that it's incorrect?

lat: 842.15070, lon: 942.94276 are invalid values I would suppose.

Traccar does not validate the data. It uses validity flag reported by the GPS device.

authors: Phantomatz tananaev


text:
IOS-2884 Fiat rates swapping

Перенес Fiat rates на слой приложения
Добавил шимеры для подгрузки этих данных

Давайте может зальем ?

repo: tangem/tangem-app-ios


text:
IOS-3712 balance component with buttons

Чет из-за фейковых данных и прям разнообразных превьюшек МРы становятся довольно крупными...

Версию с большими паддингами добавил чтобы видно было как кукожится баланс

Немного невыровнено кажется

у символов есть по сторонам отступ, если ты напишешь HB они же у тебя не слипнутся. у $ отступ больше просто. alignment: leading не имеет эффекта, потому что сама вьюха растягивается по размеру контента и центрируется по переднему краю.


text:
Updated alfons submodule

includes icu namespacing
fixes tests build on osx (links AppKit framework to alfons, used for
NSFont)

Hold on to this!

Good to go!

repo: tangrams/tangram-es


text:
add default Dockerfile

在默认配置文件中添加 Dockerfile
在 init 后会添加的文件加下，以后可以使用 Docker 部署
使用方法如下：
docker build . -t wiki
docker run --name wiki-simple -p 6868:8000 wiki

打开浏览器
http://localhost:6868

Nginx 代理配置
server{
        listen 80;
        server_name your_domain;

        location / {
            proxy_pass  http://localhost:6868;

        }
}

Coverage increased (+0.1%) to 74.904% when pulling ffbe1ad0afb192ac31d84143a58a7b3131cfcfaa on zhengxiaowai:docker into 7ab2b79dc4a7df0925ed63789b584cee63f4e124 on tankywoo:dev.

Coverage increased (+0.1%) to 74.904% when pulling ffbe1ad0afb192ac31d84143a58a7b3131cfcfaa on zhengxiaowai:docker into 7ab2b79dc4a7df0925ed63789b584cee63f4e124 on tankywoo:dev.

感谢你的提交。
我想问一下：如提交的Dockerfile这种方式，和目前常规部署的方式有什么区别？

Coverage increased (+0.1%) to 74.904% when pulling ebedfb7eb0442e484918ab48bf26eb0335149428 on zhengxiaowai:docker into 7ab2b79dc4a7df0925ed63789b584cee63f4e124 on tankywoo:dev.

@tankywoo
目前除了比较复杂的手动部署以外，方便的ftp、rsync、scp需要在配置文件中留下敏感信息、配置文件就不能提交了，假如我在另一个环境下就需要重新配置了，这个比较麻烦。假如秘钥也局限在一个机器上，导致了不能再任何地方编辑
通过 Docker 来部署的话，就不用再配置文件中写入敏感信息，能把所有文件提交到 git，在任何地方都能编写，不局限于某台机器
同时还能通过现在第三方 Docker 服务，自动 build 镜像和自动部署，所以在配置好的情况下，我只需要 Push 到 git 上就能自动部署了

同时还能通过现在第三方 Docker 服务，自动 build 镜像和自动部署，所以在配置好的情况下，我只需要 Push 到 git 上就能自动部署了

关于这块，能否提供一个完整的例子呢？如果是为了自动部署，核心就在这块的处理上。
之前我有写过一个类似通过Travis CI做持续集成自动部署的方案：https://blog.tankywoo.com/2016/02/19/simiki-with-travis-ci.html

simiki init -p test-new

新建 wiki 后会有在目录下有一个Dockerfile

新建一个代码库存 wiki

push 带代码库
git init
git remote add origin git@github.com:zhengxiaowai/test-simiki.git
git add .
git commit -m 'firsr commit'
git push origin master

这里使用 daocloud 托管 Docker 镜像和自动部署。注册完成后登入进入控制台，选择代码构建

选择创建项目，进入后需要绑定一下你的 github，就可以从 github 中构建代码了

填写名字和选择代码，然后点击开始创建

选择触发规则—>提交代码到分支—>master

这样配置完成后每次 push 代码到 masrer 分支就能自动构建了，第一次先手动构建一次

然后稍等几分钟，等待构建完成

第一次构建需要花费长一点的时候，以后有缓存以后速度快很多
回到控制台选择应用管理

创建应用

进入创建应用以后，可以见刚刚构建的镜像，点击部署

点击部署最新版本

写一个你开心的端口

然后立即部署，等待启动的同时，选择自动发布

现在可以访问你主机地址了

到这里就配置完成了，以后写完 wiki 直接 push 到代码库，就能自动发布了，再也不需要写任何配置文件了
simiki n -t test-simiki -c Test
echo "#Test-Wiki" >> content/Test/test-simiki.md
git add .
git commit -am 'add test wiki'
git push origin master

自己构建中，稍等片刻，就能看见你的 wiki 更新了

@zhengxiaowai 抱歉现在才回复，截图很详细 👍 ，非常感谢！
晚上我本地尝试了下，挺不错的。
这个我先合并了，后续我考虑改为可选的方式，需要的用户可以选择自行安装Dockerfile。

authors: coveralls tankywoo zhengxiaowai

repo: tankywoo/simiki


text:
fix(types): remove non-void constraint from queryFn result

discussed in #3541
trying to enforce not-void + not-undefined on the queryFn return type is creating pockets of complexity / unexpected typing behaviour, as TS is trying to both enforce and infer too many things at the same time.
removing for now, and adding some additional tests to check for the pieces that were clashing with the non-void constraint

able to use fetch() in queryFn with Promise<any> return type
able to use wrapped queries with custom fetcher functions typed to return TQueryFnData

:tada: This PR is included in version 4.0.0-beta.20 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: artysidorenko tannerlinsley

repo: tannerlinsley/react-query


text:
feat(queryCache): add queryCache.getLatestQueryData method

Provide a way to get the latest query by a partial query key match. Get the latest data when you don't know the full query key due to a large parameter object, i.e. complicated filters.

hiya @tannerlinsley 👋 our team is currently using this functionality in order to get the latest query by the simple string part of the cache key. We have a lot of filters influencing a single API call for a search app and thought this might be helpful. Let me know what you think, happy to also add to the README if you don't think this belongs in the API itself 👍

Have you tried using the getQuery method with a predicate? Seems like this is the perfect use case for it?

@tannerlinsley can you explain using the predicate? not sure I follow

You can pass a function that behaves like an Array.prototype.filter call. You can inspect each query and return true if you want to return it in the array.

Here is a better example:
import { queryCache, deepIncludes } from 'react-query'

const queries = queryCache.getQueries(query => {
  return deepIncludes(query.queryKey, 'data')
})

const [latest] = queries.sort((a, b) => a.state.updatedAt > b.state.updatedAt ? 1 : -1)
``

Ended up going with this based on your example:
  const [latest] = queryCache.getQueries('data').sort((a, b) => {
    return b.state.updatedAt - a.state.updatedAt;
  });
  return latest?.state.data;

A few questions/thoughts:

Does the getQueries function handle the deep includes due to this line?
https://github.com/tannerlinsley/react-query/blob/master/src/queryCache.js#L61
I think the tests set up with prefetchQuery make timestamps the same in jest. I ended up using a delay in our test suite.
Would you be open to me changing this PR to use this code as an example of how to use the getQueries method?

Yeah I think that’s a better direction :)

As this is a doc change, let's close this PR and open a new one when we get to it. :)

authors: antgonzales tannerlinsley


text:
Patch/api request retries

use tenacity to retry any failed api requests

current version on main for

perfect. also just created a release on main to mark the version used for workshop paper evals.

repo: target-benchmark/target


text:
FileNotFoundError in process_code.py with jinja

I wanted to try testmon out of curiosity, and tried running it on https://github.com/hackebrot/qutebrowser
To reproduce, patch tox.ini like this, then run tox -e unittests:
diff --git a/tox.ini b/tox.ini
index 101d2b0..30af07d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,6 +22,7 @@ deps =
     pytest-capturelog==0.7
     pytest-qt==1.3.0
     pytest-mock==0.4.3
+    testmon
 # We don't use {[testenv:mkvenv]commands} here because that seems to be broken
 # on Ubuntu Trusty.
 commands =

Without testmon, the tests run correctly, with testmon, I get:
____________________________________________________________________ test_simple_template ____________________________________________________________________

self = <testmon.pytest_testmon.TestmonDeselect object at 0x7f89b624bba8>
__multicall__ = <MultiCall 0 results, 0 meths, kwargs={'__multicall__': <MultiCall 0 results, 0 meths, kwargs={...}>, 'item': <Function 'test_simple_template'>}>
item = <Function 'test_simple_template'>

    def pytest_runtest_call(self, __multicall__, item):
>       result = self.testmon.track_execute(__multicall__.execute, item.nodeid)

.tox/unittests/lib/python3.4/site-packages/testmon/pytest_testmon.py:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/unittests/lib/python3.4/site-packages/testmon/testmon_core.py:106: in track_execute
    self.set_dependencies(nodeid, self.cov.data)
.tox/unittests/lib/python3.4/site-packages/testmon/testmon_core.py:92: in set_dependencies
    result[filename] = checksum_coverage(self.parse_cache(filename), value.keys())
.tox/unittests/lib/python3.4/site-packages/testmon/testmon_core.py:46: in parse_cache
    self.modules_cache[module] = Module(file_name=module).blocks
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <testmon.process_code.Module object at 0x7f89ae4f9978>, source_code = None, file_name = '/home/florian/proj/qutebrowser/hackebrot-git/html/test.html'

    def __init__(self, source_code=None, file_name='<unknown>'):
        self.blocks = []
        if source_code is None:
>           with open(file_name) as f:
                source_code = f.read()
E               FileNotFoundError: [Errno 2] No such file or directory: '/home/florian/proj/qutebrowser/hackebrot-git/html/test.html'

.tox/unittests/lib/python3.4/site-packages/testmon/process_code.py:45: FileNotFoundError
_________________________________________________________________________ test_utf8 __________________________________________________________________________

self = <testmon.pytest_testmon.TestmonDeselect object at 0x7f89b624bba8>
__multicall__ = <MultiCall 0 results, 0 meths, kwargs={'__multicall__': <MultiCall 0 results, 0 meths, kwargs={...}>, 'item': <Function 'test_utf8'>}>
item = <Function 'test_utf8'>

    def pytest_runtest_call(self, __multicall__, item):
>       result = self.testmon.track_execute(__multicall__.execute, item.nodeid)

.tox/unittests/lib/python3.4/site-packages/testmon/pytest_testmon.py:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/unittests/lib/python3.4/site-packages/testmon/testmon_core.py:106: in track_execute
    self.set_dependencies(nodeid, self.cov.data)
.tox/unittests/lib/python3.4/site-packages/testmon/testmon_core.py:92: in set_dependencies
    result[filename] = checksum_coverage(self.parse_cache(filename), value.keys())
.tox/unittests/lib/python3.4/site-packages/testmon/testmon_core.py:46: in parse_cache
    self.modules_cache[module] = Module(file_name=module).blocks
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <testmon.process_code.Module object at 0x7f895acb6390>, source_code = None, file_name = '/home/florian/proj/qutebrowser/hackebrot-git/html/test.html'

    def __init__(self, source_code=None, file_name='<unknown>'):
        self.blocks = []
        if source_code is None:
>           with open(file_name) as f:
                source_code = f.read()
E               FileNotFoundError: [Errno 2] No such file or directory: '/home/florian/proj/qutebrowser/hackebrot-git/html/test.html'

.tox/unittests/lib/python3.4/site-packages/testmon/process_code.py:45: FileNotFoundError

It seems testmon is trying to read html/test.html which is a file which doesn't actually exist - in the test it's used via jinja and a patched jinja.utils.read_file. Full test source of the failing tests:
import os.path

import pytest

from qutebrowser.utils import jinja

@pytest.fixture(autouse=True)
def patch_read_file(monkeypatch):
    """pytest fixture to patch utils.read_file."""
    def _read_file(path):
        """A read_file which returns a simple template if the path is right."""
        if path == os.path.join('html', 'test.html'):
            return """Hello {{var}}"""
        else:
            raise ValueError("Invalid path {}!".format(path))

    monkeypatch.setattr('qutebrowser.utils.jinja.utils.read_file', _read_file)

def test_simple_template():
    """Test with a simple template."""
    template = jinja.env.get_template('test.html')
    # https://bitbucket.org/logilab/pylint/issue/490/
    data = template.render(var='World')  # pylint: disable=no-member
    assert data == "Hello World"

def test_utf8():
    """Test rendering with an UTF8 template.

    This was an attempt to get a failing test case for #127 but it seems
    the issue is elsewhere.

    https://github.com/The-Compiler/qutebrowser/issues/127
    """
    template = jinja.env.get_template('test.html')
    # https://bitbucket.org/logilab/pylint/issue/490/
    data = template.render(var='\u2603')  # pylint: disable=no-member
    assert data == "Hello \u2603"

Thanks very much for trying and a bug report! I didn't try with qutebrowser because I don't feel like installing qt (9 GB), but I could reproduce with a test and it's passing now.

authors: The-Compiler tarpas

repo: tarpas/testmon


text:
Support status background colors

PR includes

[x] Feature

Related issues

Resolve #200
QA Instructions, Screenshots, Recordings

/canary

repo: taskany-inc/colors


text:
Part of index data lost while importing data

I export an index from cluster A to a file. I use wc -l to caculate the lines exported, which is the same with docs stored in cluster A. After that, I import data from file to another cluster B and found that about 100 docs are missing.
How to trace the problem and have it fixed?

Some thoughts:
Do you have duplicate events?  Do you have un-serializable (binary) data?  Is the text-encoding of all systems involved the same?  Were there any errors?

1、They are logs stored in ES, which may have duplicated entries, i.e, same error occurred in the same time. but I don't think it's the problem, because the dump file stored data in JSON.
2、We have binary data in some field, but they are imported into cluster B properly.
3、They are all properly encoded.
4、I don't see any errors occur.

The only thing I can think of would be the duplicates.  If you have "fully" duplicated data (same _id), when its re-inserted, it would be an update, not a new document

I dump the data to a file from origin cluster, there couldn't be duplicated data with same _id.

Then I have no idea, sorry.
We'll leave this issue open if someone else has any thoughts.

This looks to be related to https://github.com/taskrabbit/elasticsearch-dump/pull/194

repo: taskrabbit/elasticsearch-dump


text:
Update discovery_zy-m100.yaml

Added illuminance

Illuminance is supported by TuyaMCU
TuyaMCU 75,104

authors: blakadder pedronsg

repo: tasmota/blueprints


text:
Loading same tweets over and over

I left the scraper running for the night, came back to 1.5GB of tweet data. I believe at least 99% of those tweets are duplicates.
This is my command line query:

twitterscraper 'Salesforce' --begindate 2017-10-24 --enddate 2017-11-24 --lang en --poolsize 1 --output tweets-CRM.json

This is me logging out the URLs:

INFO: queries: ['Salesforce since:2017-10-24 until:2017-11-24']
INFO: Querying Salesforce since:2017-10-24 until:2017-11-24
INFO: URL... https://twitter.com/search?f=tweets&vertical=default&q=Salesforce since%3A2017-10-24 until%3A2017-11-24&l=en
INFO: URL... https://twitter.com/i/search/timeline?f=tweets&vertical=default&include_available_features=1&include_entities=1&reset_error_state=false&src=typd&max_position=TWEET-933840103071469573-933845625455734784&q=Salesforce since%3A2017-10-24 until%3A2017-11-24&l=en
INFO: URL... https://twitter.com/i/search/timeline?f=tweets&vertical=default&include_available_features=1&include_entities=1&reset_error_state=false&src=typd&max_position=cm+55m-JXXIEJXDaFEbEvIFvX-JXXIvsFEsvssbXvbIv&q=Salesforce since%3A2017-10-24 until%3A2017-11-24&l=en
INFO: URL... https://twitter.com/i/search/timeline?f=tweets&vertical=default&include_available_features=1&include_entities=1&reset_error_state=false&src=typd&max_position=cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv&q=Salesforce since%3A2017-10-24 until%3A2017-11-24&l=en
INFO: URL... https://twitter.com/i/search/timeline?f=tweets&vertical=default&include_available_features=1&include_entities=1&reset_error_state=false&src=typd&max_position=cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv&q=Salesforce since%3A2017-10-24 until%3A2017-11-24&l=en
INFO: URL... https://twitter.com/i/search/timeline?f=tweets&vertical=default&include_available_features=1&include_entities=1&reset_error_state=false&src=typd&max_position=cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv&q=Salesforce since%3A2017-10-24 until%3A2017-11-24&l=en
INFO: URL... https://twitter.com/i/search/timeline?f=tweets&vertical=default&include_available_features=1&include_entities=1&reset_error_state=false&src=typd&max_position=cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv&q=Salesforce since%3A2017-10-24 until%3A2017-11-24&l=en

You can see it starts off okay, first request is fine, but then at some point the max_position remains the same for every subsequent request. I'm seeing this on GetOldTweets too (another twitter scraper).
Has Twitter caught on and made automation more complicated perhaps?

The same issue I am facing, 3.9 GB data equivalent to some kbs getting repeated.

continue same problem  I searched several times and I could not find anything

I believe this issue has been fixed in version 0.9.3 with samirchar's fix https://github.com/taspinar/twitterscraper/pull/151
To test this, I have printed 'pos' argument (used to retrieve new tweets) to screen with both version 0.9.0 and 0.9.3:
(base) C:\Users\ataspinar\Documents>twitterscraper 'Salesforce' --begindate 2017-10-24 --enddate 2017-11-24 --lang en --poolsize 1 --output tweets-CRM.json
INFO: queries: ["'Salesforce' since:2017-10-24 until:2017-11-24"]
INFO: Querying 'Salesforce' since:2017-10-24 until:2017-11-24
TWEET-933840103071469573-933845625455734784
cm+55m-JXXIEJXDaFEbEvIFvX-JXXIvsFEsvssbXvbIv
cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv
cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv
cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv
cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv
cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv
cm+55m-JXXIvDaDXDbavFJsbX-JXXIvsFEsvssbXvbIv
INFO: Program interrupted by user. Returning tweets gathered so far...
INFO: Got 160 tweets for 'Salesforce'%20since%3A2017-10-24%20until%3A2017-11-24.
INFO: Program interrupted by user. Returning all tweets gathered so far.

and with version 0.9.3:
(base) C:\Users\ataspinar\Documents>twitterscraper 'Salesforce' --begindate 2017-10-24 --enddate 2017-11-24 --lang en --poolsize 1 --output tweets-CRM.json
INFO: queries: ["'Salesforce' since:2017-10-24 until:2017-11-24"]
INFO: Querying 'Salesforce' since:2017-10-24 until:2017-11-24
TWEET-933840103071469573-933845625455734784
cm%2B55m-JXXIEJXDaFEbEvIFvX-JXXIvsFEsvssbXvbIv
cm%2B55m-JXXIEXvsFJbXFDFJaI-JXXIvsFEsvssbXvbIv
cm%2B55m-JXXIabIDIEIFXXJDbX-JXXIvsFEsvssbXvbIv
cm%2B55m-JXXIaXaIbIDbsXaDaa-JXXIvsFEsvssbXvbIv
cm%2B55m-JXXIDJbsFbsXvIsIEv-JXXIvsFEsvssbXvbIv
cm%2B55m-JXXIDsIbIEXIFbJDvX-JXXIvsFEsvssbXvbIv

authors: Camilo-Lesmes cdsimmons haripadbharti1 taspinar

repo: taspinar/twitterscraper


text:
Improvements of the English translation

Another run into the English string to improves them.

long side is not width. It is the greater side of width or height.

I've change string related width to 'Resize to %1$d pixels'

That's a way better translation :+1:

authors: Belphemur tateisu

repo: tateisu/SubwayTooter


text:
🛑 Lavalink is down

In b4fb33c, Lavalink (https://lava.chirailava.tk/metrics) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lavalink is back up in ade07a1.

repo: tathaha/bruhuptime


text:
Marketplace listings failing

Creating listings seems to be randomly failing since the past few days
https://polygonscan.com/address/0x66592ad3fbd87b8631e40143b2f6671a9dd73283
Any ideas what could be causing this issue?
I can see the "value" column randomly switched from 0 MATIC to 1 MATIC for some unknown reason.

💻 Environment
Production - Tatum marketplace APIs

📝 Details

Creating listings seems to be failing https://polygonscan.com/address/0x66592ad3fbd87b8631e40143b2f6671a9dd73283
Any ideas what could be causing this issue?
I can see the "value" column randomly switched from 0 MATIC to 1 MATIC for some unknown reason.

In order to solve the above issue, I created a new marketplace and transactions started going through, but with a warning that execution failed somewhere -
https://polygonscan.com/address/0x1a33b3e3a6a90d86c62516197fc6784aa30f1b0d
Over here, Creating a listing and sending the NFT to the marketplace works fine, but when i hit the cancel listing API, the NFT is not returned to the original wallet again

🔢 Code to reproduce bug

Create Listing -
curl --request POST \
  --url https://api-eu1.tatum.io/v3/blockchain/marketplace/listing/sell \
  --header 'content-type: application/json' \
  --header 'x-api-key: REPLACE_KEY_VALUE' \
  --data '{"chain":"MATIC","contractAddress":"0x66592ad3fbd87b8631e40143b2f6671a9dd73283","nftAddress":"0x8c0d8685afeaf558f271fd78e75e647f6357869b","seller":"0xb179603336B7580F0f845b1366D0c20A00995779","listingId":"listing3694648298","amount":"1","tokenId":"21668006","price":"1","isErc721":true,"fromPrivateKey":"###","fee":{"gasLimit":"350000","gasPrice":"50"}}'

Send NFT to marketplace -
curl --request POST \
  --url https://api-eu1.tatum.io/v3/nft/transaction \
  --header 'content-type: application/json' \
  --header 'x-api-key: ###' \
  --data '{"chain":"MATIC","to":"0x66592ad3fbd87b8631e40143b2f6671a9dd73283","tokenId":"21668006","contractAddress":"0x8c0d8685afeaf558f271fd78e75e647f6357869b","tokenPrice":"1","fromPrivateKey":"###","fee":{"gasLimit":"40000","gasPrice":"40"}}'

Cancel NFT listing -
curl --request POST \
  --url https://api-eu1.tatum.io/v3/blockchain/marketplace/listing/cancel \
  --header 'content-type: application/json' \
  --header 'x-api-key: ###' \
  --data '{"chain":"MATIC","contractAddress":"0x66592ad3fbd87b8631e40143b2f6671a9dd73283","listingId":"listing3694648298","fromPrivateKey":"###"}'

Let me know if you'd like me to provide any other details!
After i switched over to a new marketplace contract, creating a listing and sending it to the marketplace worked fine (even though all transactions show a warning). If I can just get the cancel API to return the user's NFT when it's called, that should resolve all my issues.

I believe the issue i'm facing here is due to the changes that were recently made to the Tatum contracts for marketplace -

https://github.com/tatumio/smart-contracts/commit/b49fcbe33063ed06342694264b5fe921b1510205
https://github.com/tatumio/smart-contracts/commit/8a8ed56cd5425b64710d14cdc32ca762c456bbb6
The timing when i started facing the error and the commit was made add up, considering I didn't make any changes on my end related the API calls & everything worked fine till then.

This issue is causing users to lose their NFTs in production environment since they can't cancel listings anymore. Is there a way i can use the older version of the contracts, or would there be any manual way i can return people their NFTs from the contract after they call the cancel API? I'm open to any temporary solutions too until this issue can be properly resolved.

repo: tatumio/smart-contracts


text:
Fix/readme banners

Updates the banners on the readme's to absolute paths so that downstream docs CI has nice banners

I feel like I prefer the relative path, which makes it resilient against branch name changing, merge conflicts, parent directory renaming ...etc. I feel like this is a problem that should be addressed downstream where the script that generates the docs for the README, should rewrite the relative URL to a permanent URL that reference the commit it was generated from.

How do other downstreams like docs.rs and npm handle this? I can look into what it would take to match whatever they're doing. I'd just copied what's done here: https://github.com/tauri-apps/tauri/blob/4db363a03c182349f8491f46ced258d84723b11f/core/tauri/README.md?plain=1#L3 (and in other packages there)

tbh I don't think any of the reasons listed really matter, at least in the short term, so imo we should focus on getting the docs running first and add this improvement to the Todo list for later :)

How do other downstreams like docs.rs and npm handle this? I can look into what it would take to match whatever they're doing.

Crates.io seem to transform the relative link into an absolute URL, so ./splash.png will become https://raw.githubusercontent.com/tauri-apps/plugins-workspace/e47562f71284457ff77e4c8b6bf02fdbe19ab880/plugins/window-state/splash.png

I'd just copied what's done here: tauri-apps/tauri@4db363a/core/tauri/README.md?plain=1#L3 (and in other packages there)

Yeah, we probably gonna need to fix those as well.

tbh I don't think any of the reasons listed really matter, at least in the short term, so imo we should focus on getting the docs running first and add this improvement to the Todo list for later :)

I agree, I am not saying it is a blocker, just something to think about for the future.

authors: FabianLars amrbashir lorenzolewis

repo: tauri-apps/plugins-workspace


text:
Could not find a declaration file for module '@tauri-apps/api/x'

About 5 days ago (8th December) my tauri actions started to fail with the Message:
"Could not find a declaration file for module '@tauri-apps/api/x'"
.. for all tauri api components. Interestingly, this didn't seem to start with a certain change I made, but at a certain time. So even if I now rerun the actions for a commit that previously successfully built the app, the action fails with this message. Which sounds like something with the action itself changed? Did I miss some breaking change?
I copied the actions .yml from this repo's README.md.
Any help is appreciated!
Error message screenshot:

Edit: I'm using Angular as Frontend. Also, in my local IDE (vscode) those modules are present and can be found by autocomplete/static analysis. And the app works perfectly fine in local development.

Ok I found the problem: I missed changing the 'yarn install' to an 'npm install' (since I use npm) in the .yml file (here: https://github.com/tauri-apps/tauri-action/blob/dev/examples/publish-to-auto-release.yml#L39)
It's still a mystery to me why it worked for a while and then suddenly stopped working.. But I can live with that as long as it works.

repo: tauri-apps/tauri-action


text:
[bug] document.visibilityState broken

Describe the bug
I cannot seem to get the browser visibilitychange event to fire by any means, and whether maximized or minimized, document.visibilityState always has the value "visible". This is on Windows 10.
There is some prior history for this issue. #6864 describes the lack of visibilitychange event when hiding the window behind another window, but describes the event as firing when the window is minimized and maximized. The more recent #9524 again confirms that it fires when minimized or maximized. (The author of that issue believed it should also fire when a window gains or loses focus, but that just seems to originate in confusion about what page visibility represents.) #9246 appears to change webview visibility on minimize/maximize, and then #9465 reverts it.
This seems to trace back to this WebView2 issue. As described in this comment, the issue—at least at the time—was because "Minimizing a window in WPF does not inherently change the Visibility property of its child controls." If this is the case, though, then I'm not sure how the first two issues above ever recorded visibilitychange events on minimize and maximize.
It seems that window occlusion has never caused the document visibility state to change in Tauri, but there has been a regression causing it to no longer update upon minimize/maximize either. document.visibilityState simply never appears to change anymore, and always reports itself visible.
Reproduction
Nothing in particular is needed to reproduce this; just cargo create-tauri-app to create a template program and run it. You can examine the document visibility state in the web inspector.
Expected behavior
The visibilitychange event should fire when document.visibilityState changes. This should occur whenever the document is either revealed or hidden to the user: when switching between minimized and maximized, when showing or hiding the parent tab, or when the edges of the screen and foreground windows occlude or un-occlude the document.
Full tauri info output
[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 127.0.2651.98
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.80.0 (051478957 2024-07-21)
    ✔ cargo: 1.80.0 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 18.12.1
    - npm: 8.19.2

[-] Packages
    - tauri [RUST]: 2.0.0-rc.2
    - tauri-build [RUST]: 2.0.0-rc.2
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-rc.3
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-rc.3

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../src

Stack trace
No response
Additional context
No response

I don't know if it ever worked before, but currently, I can't think of a good way of doing it, the last attempt I made in #9246 caused flickering on restore/show (and also doesn't include reacting to window occlusions)
I was thinking about maybe emitting those events ourselves instead of using the webview2's SetIsVisible, but that wouldn't enable the browser to optimize for not visible, e.g. making the animations stop
It's really a shame that this is part of the web API but not easily doable with webview2 >.<

authors: ConnorKrammer Legend-Master

repo: tauri-apps/tauri


text:
[bug]  V2 window.transparent not work

Describe the bug
The behaviors of v1 and v2 are inconsistent. With the same settings, in tauri v1, the window is transparent on Windows, but it is not in v2.
Reproduction
The key setting is:
transparent: true,
decorations: false

Render an empty element and no css.
render(() => <></>, document.getElementById('root') as HTMLElement);

    "windows": [
      {
        "fullscreen": false,
        "title": "tauri-v2-demo",
        "width": 800,
        "height": 600,
        "closable": false,
        "resizable": false,
        "minimizable": false,
        "decorations": false,
        "maximizable": false,
        "transparent": true,
        "skipTaskbar": false,
        "alwaysOnTop": false
      }
    ]

Expected behavior
No response
Platform and versions
[✔] Environment
    - OS: Windows 10.0.22635 X64
    ✔ WebView2: 119.0.2151.72
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.76.0-nightly (1e9dda77b 2023-11-22)
    ✔ cargo: 1.76.0-nightly (71cd3a926 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: nightly-x86_64-pc-windows-msvc (default)
    - node: 20.9.0
    - pnpm: 8.10.3
    - yarn: 1.22.19
    - npm: 10.1.0

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.17
    - tauri-build [RUST]: 2.0.0-alpha.11
    - wry [RUST]: 0.34.2
    - tao [RUST]: 0.23.0
    - @tauri-apps/api [NPM]: 2.0.0-alpha.11
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.17

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace
No response
Additional context
No response

Can you try to also disable shadows? Shadows are now enabled by default but will cause the same transparency issue decorations: true causes: https://github.com/tauri-apps/tao/issues/72

shadows

Nice, it works.
"decorations": false,
"transparent": true,
"shadow": false

authors: FabianLars ahaoboy


text:
feat(ci): simplify cache

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Docs
[ ] New Binding issue #___
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[x] Other, please describe: CI

Does this PR introduce a breaking change?

[ ] Yes, and the changes were approved in issue #___
[ ] No

Checklist

[ ] When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
[ ] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[ ] I have added a convincing reason for adding this feature, if necessary

Other information

Honestly i feel like https://github.com/Swatinem/rust-cache would be a good idea for most of the caches here, especially since it does some extra stuff to make the caches more efficient.
Also we may want to consider adding this: https://github.com/tauri-apps/tauri-docs/blob/dev/.github/workflows/update-docs.yml#L26-L27 to some of the workflows.

I'd prefer being consistent, and I see rust-cache would be better if we were only caching one target folder per job, but sometimes we're caching multiple.

This PR also simplifies a migration, so hopefully someone better on GH actions can give it a try later.

authors: FabianLars lucasfernog


text:
Don't fail with NullPointerException when native-image is not found

Instead give a reasonable error message.
Thanks for a nice project!

I just realized this too after I setup a new machine. Thanks!

authors: ivarref taylorwood


text:
Mat_VarReadNextInfo requires a large chunk on a 32KB file

Here is the program
#include <cstring>
#include <cstdlib>
#include <cstdio>

#include "matio.h"

int main (int argc, char **argv) {
    mat_t *ptr = Mat_Open(argv[1], 0);
    auto *var = Mat_VarReadNextInfo(ptr);
    Mat_VarFree(var);
    Mat_Close(ptr);
}

And here is the file (zipped),
testfile.zip , which is a 32-KB file
Mat_VarReadNextInfo allocates 4278583297 bytes (about 4GB).
Maybe there can be a better implementation?

With logging enabled I get
Unexpected end-of-file: Read 32599 bytes, expected 4278583296 bytes

Could it be that you missed to write the MAT file completely.

With logging enabled I get
Unexpected end-of-file: Read 32599 bytes, expected 4278583296 bytes

Could it be that you missed to write the MAT file completely.

Ah, I also got this message.
However, the message is printed AFTER the chunk has been allocated. I think the too-large chunk should not be even allocated.
Actually, I compile the program with AddressSanitizer and run it with ASAN_OPTIONS=max_allocation_size_mb=3000 , then ASAN reports the error...

Addressed by https://github.com/tbeu/matio/commit/0adfda6e129c2cedcae89a95918792e62fcd9bbd.

authors: frokaikan tbeu

repo: tbeu/matio


text:
Max runtime

Hi @tblanke
I think it is a good idea to put a max runtime on the thread calculation. If, for example, a certain scenario keeps calculating due to a bug somewhere, that this does not keep intervening with the GUI. We can add this as a FloatBox in the settings perhaps?
What do you think?
Best,
@wouterpeere

Hi @wouterpeere ,
I have implemented an approach to limit the runtime.
with best regards
@tblanke

Hi @tblanke
Seems perfect to me. I just changed the default value to 600. Waiting an hour for having a run-time error is pretty long ;)
Best,
@wouterpeere

authors: tblanke wouterpeere

repo: tblanke/ScenarioGUI


text:
/src/tbox/platform/arch/x86/context.asm 存在越界吧？

lea eax, [eax - 20]

; 16-align of the stack top address
and eax, -16

; reserve space for context-data on context-stack
lea eax, [eax - 40]

如果lea eax, [eax - 20]后eax正好是16 align的，那eax就只偏移了60
这样在后面是不是会写越界，将stack guard给覆盖了？
; context.seh.handler = sehitem.handler
mov ecx, [ecx + 4]
mov [eax + 60], ecx

是有问题，我刚修了下，你再试试，如果还有问题，你可以直接提个 pr 过来。

authors: nanshusu waruqi

repo: tboox/tbox


text:
Review JSON Schema

https://github.com/tc39/dataset/blob/master/schema/individual.json CC @codehag
Planning:

[ ] Freeze individual proposal schema
[ ] Provide an GitHub Action on tc39/template-for-proposals (see https://github.com/tc39/dataset/issues/3)
Validate /metadata.json (filename TBD)

Pre-discussion: https://github.com/JSCIG/dataset/issues/6

It seems a bit heavy handed, hard to scale, and impractical to install on archived proposal repos to have a mandated json file in each repo (the template isn’t even mandated). Why wouldn’t this info go in the main proposals repo? We could offer an action in the template to help proposal repos pull info from the main list rather than making the proposal repos the source of truth?

I think the direction of pulling from the tc39/proposals repo is a good one. We cannot guarantee that individual proposals repositories will be always up to date, but, as mentioned elsewhere, the tc39/proposals repo generally is. So, +1 to what ljharb suggested here. The hierarchy should be proposals -> individual proposal for information like stage, last notes, tests. Proposals themselves should be seen as slower moving but more comprehensive, so if for example, the stage differs for a given proposal betweeen the tc39/proposals repo, and the proposal itself -- then in most cases the tc39/proposals repo is the correct one. Information that is too detailed for the tc39/proposals repo is the responsibility of the individual proposal. This way we have clear responsibilities, with a bit of duplication which needs to be kept up to date.
This also gives us more flexibility for archived proposals. They may, or may not, have the same format as more modern proposals, and this is ok. They may or may not be automated, but if there is an inconsistency we generally know where to look for which type of info, and it is easier to correct. The ultimate fall back is talking to individual champions responsible but usually this isn't a huge deal. Consistency may be a side effect, the real goal here is making things machine readable, with the benefit of consistency (and hopefully, less labor).
I am a bit hesitant on freezing the schema right now. We should first ensure that this works for what it is intended before freezing it and maintaining it. This is a detail. Once we have a few consumers and are happy with how everything works, we can look into freezing the data structure and maintaining it.

I think the direction of pulling from the tc39/proposals repo is a good one. We cannot guarantee that individual proposals repositories will be always up to date, but, as mentioned elsewhere, the tc39/proposals repo generally is. So, +1 to what ljharb suggested here. The hierarchy should be proposals -> individual proposal for information like stage, last notes, tests. Proposals themselves should be seen as slower moving but more comprehensive, so if for example, the stage differs for a given proposal betweeen the tc39/proposals repo, and the proposal itself -- then in most cases the tc39/proposals repo is the correct one. Information that is too detailed for the tc39/proposals repo is the responsibility of the individual proposal. This way we have clear responsibilities, with a bit of duplication which needs to be kept up to date.
This also gives us more flexibility for archived proposals. They may, or may not, have the same format as more modern proposals, and this is ok. They may or may not be automated, but if there is an inconsistency we generally know where to look for which type of info, and it is easier to correct. The ultimate fall back is talking to individual champions responsible but usually this isn't a huge deal. Consistency may be a side effect, the real goal here is making things machine readable, with the benefit of consistency (and hopefully, less labor).
I am a bit hesitant on freezing the schema right now. We should first ensure that this works for what it is intended before freezing it and maintaining it. This is a detail. Once we have a few consumers and are happy with how everything works, we can look into freezing the data structure and maintaining it.

I reviewed the schema you wrote, looks really good. Very happy with it so far! Thank you for doing the work.
Here are a few comments:
https://github.com/tc39/dataset/blob/master/schema/individual.json#L121
    "implementations": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Babel",
          "ChakraCore",
          "Chrome",
          "Edge",
          "Engine262",
          "Firefox",
          "GraalJS",
          "Hermes",
          "JavaScriptCore",
          "Nashorn",
          "Node",
          "QuickJS",
          "Safari",
          "SpiderMonkey",
          "TypeScript",
          "v8"
        ]
      },

we might want to have specific version numbers for this, but that may also overlap with caniuse. Mozilla maintains a list of this as well, we might be able to share data with them: https://github.com/mdn/browser-compat-data -- this may be more efficient and effective in the long run.
https://github.com/tc39/dataset/blob/master/schema/individual.json#L153
    "edition": {
      "type": "number",
      "minimum": 2015,
      "maximum": 2999,
      "description": "available edition of ECMAScript (stage 4 only)"
    }

this will only be valid for recent proposals, unless we retcon how we think of things like es5. I am not against the idea, but it sticks out. Is there another way to specify this?
https://github.com/tc39/dataset/blob/f6ad2bb19b6e75214377eae636c477d02837b13c/schema/individual.json#L161
  "required": ["tags", "name", "stage", "authors", "champions"]

Ah, this looks quite good (in the linter issue I was expecting to see more). The one that might  be missing here, is champions for stage 0.
https://github.com/tc39/dataset/blob/master/schema/individual.json#L46
      "description": "List of Authour"

Nit: Authour should be Authors
https://github.com/tc39/dataset/blob/f6ad2bb19b6e75214377eae636c477d02837b13c/schema/individual.json#L110
      "description": "Provide example code of tc39.es show code"

Nit: of should be for here.

I reviewed the schema you wrote, looks really good. Very happy with it so far! Thank you for doing the work.
Here are a few comments:
https://github.com/tc39/dataset/blob/master/schema/individual.json#L121
    "implementations": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Babel",
          "ChakraCore",
          "Chrome",
          "Edge",
          "Engine262",
          "Firefox",
          "GraalJS",
          "Hermes",
          "JavaScriptCore",
          "Nashorn",
          "Node",
          "QuickJS",
          "Safari",
          "SpiderMonkey",
          "TypeScript",
          "v8"
        ]
      },

we might want to have specific version numbers for this, but that may also overlap with caniuse. Mozilla maintains a list of this as well, we might be able to share data with them: https://github.com/mdn/browser-compat-data -- this may be more efficient and effective in the long run.
https://github.com/tc39/dataset/blob/master/schema/individual.json#L153
    "edition": {
      "type": "number",
      "minimum": 2015,
      "maximum": 2999,
      "description": "available edition of ECMAScript (stage 4 only)"
    }

this will only be valid for recent proposals, unless we retcon how we think of things like es5. I am not against the idea, but it sticks out. Is there another way to specify this?
https://github.com/tc39/dataset/blob/f6ad2bb19b6e75214377eae636c477d02837b13c/schema/individual.json#L161
  "required": ["tags", "name", "stage", "authors", "champions"]

Ah, this looks quite good (in the linter issue I was expecting to see more). The one that might  be missing here, is champions for stage 0.
https://github.com/tc39/dataset/blob/master/schema/individual.json#L46
      "description": "List of Authour"

Nit: Authour should be Authors
https://github.com/tc39/dataset/blob/f6ad2bb19b6e75214377eae636c477d02837b13c/schema/individual.json#L110
      "description": "Provide example code of tc39.es show code"

Nit: of should be for here.

authors: codehag ljharb septs