Hide/Show button inside FabMenu

Hi,
what is the best way to hide and show button programmatically inside Menu?
With android:visibility not work
thanks

I have the same question. I tried fab.showButtonInMenu() but then it appears right away, even if the menu is closed.

For anyone still using this lib or one of its forks, this worked for me:
fun FloatingActionMenu.show() {
    if (visibility != View.VISIBLE) {
        val pivotX = menuIconView.pivotX + menuIconView.x
        val pivotY = menuIconView.pivotY + menuIconView.y

        val anim = ScaleAnimation(
            0f, 1f, 0f, 1f, Animation.ABSOLUTE, pivotX,
            Animation.ABSOLUTE, pivotY
        )
        anim.duration = 200
        anim.interpolator = LinearInterpolator()
        startAnimation(anim)
    }
    visibility = View.VISIBLE
}

fun FloatingActionMenu.hide() {
    if (visibility == View.VISIBLE) {
        val pivotX = menuIconView.pivotX + menuIconView.x
        val pivotY = menuIconView.pivotY + menuIconView.y

        val anim = ScaleAnimation(
            1f, 0f, 1f, 0f, Animation.ABSOLUTE, pivotX,
            Animation.ABSOLUTE, pivotY
        )
        anim.duration = 200
        anim.interpolator = LinearInterpolator()
        startAnimation(anim)
    }
    visibility = View.INVISIBLE
}


feat: use alert styles when possible

resolves #19

@phoqe does this look better? still not amazing contrast, but it is using the styles from infima now

Hmm, @elviswolcott I don't see the info container anywhere? Or is that the alias for important? In Docusaurus 2, that box is a bit darker, as you can see here.

Yes, info and important are aliased. I updated the styles and classes in dev tools to match what this PR would produce and it looks like this

As I said, not great contrast but it's using Infima fully now.

Alright, that works. Thank you @elviswolcott for the update!


feature for #2537

Please make sure you have read and understood the contributing guidelines;
https://github.com/fluid-cloudnative/fluid/blob/master/CONTRIBUTING.md-->
Ⅰ. Describe what this PR does
fix issue #2537
Ⅱ. Does this pull request fix one issue?

fixes #XXXX
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

@hahchenchen could you please fix ut? thanks.

/lgtm
/approve


SQLite multithreading

Reverse image search is not possible to be multi threading due to SQLite not allowing objects from different threads to be executed currently. We can see if changing the compiling settings of SQLite makes this possible or if there are other ways. Also making an interface for calls to store things might be better then SQLite everywhere.
2024-03-05 15:08:59,163  [C:\Users\20212219\Documents\GitHub\CSRP-zdp\zpd-server\utils\reverse_image_search.py:172]  ERROR: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 5500 and this is thread id 3236.
Traceback (most recent call last):
File "C:\Users\20212219\Documents\GitHub\CSRP-zdp\zpd-server\utils\reverse_image_search.py", line 163, in _search_image_all
await self._rev_image_search(poi, search_engine, sha_hash)
File "C:\Users\20212219\Documents\GitHub\CSRP-zdp\zpd-server\utils\reverse_image_search.py", line 296, in _rev_image_search
await asyncio.gather(*awaits)
File "C:\Users\20212219\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 349, in __wakeup
future.result()
File "C:\Users\20212219\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20212219\Documents\GitHub\CSRP-zdp\zpd-server\utils\reverse_image_search.py", line 294, in
awaits.append(loop.run_in_executor(pool, lambda: self.region_image_search(search_engine, sha_hash, region_data, topx)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20212219\Documents\GitHub\CSRP-zdp\zpd-server\utils\reverse_image_search.py", line 322, in region_image_search
self.conn_storage.execute(
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 5500 and this is thread id 3236.
[]

only part of sql usage remaining is in sessions.py, in which the session storage could be reworked to store in-memory instead. or at least we should look into what is normal for cache like this to have.
or we keep it on sqlite for now, and use https://stackoverflow.com/a/2894830 and mutex to prevent concurrency issues ourselves


diet attribute names can't contain $

This causes the diet compiler to throw an exception:
a(href$="/list/[[list]]")
    button test

This is annoying when using libraries like polymer where some reserved dynamic attributes are marked with a $ at the end. Right now I need to use this workaround:
| <a href$="/list/[[list]]">
    button test
| </a>

I think it should work with diet-ng, which I would recommend to use nowadays (use the latest vibe.d alpha + add a dependency to diet-ng in the main project).

gonna try when im back at work

I don't think its much better there. Now I get a lot of problems about my inline javascript code and the error messages have just gotten much worse to read. This is the error log now:
Compiling Diet HTML template register.dt...
Compiling Diet HTML template register-done.dt...
Compiling Diet HTML template register.dt...
Compiling Diet HTML template login.dt...
Compiling Diet HTML template login.dt...
Compiling Diet HTML template firstauth.dt...
Compiling Diet HTML template firstauth.dt...
Compiling Diet HTML template firstauth.dt...
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(558,9): Error: need 'this' for '_input' of type 'InputFile[]'
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(570,20): Error: need 'this' for '_input' of type 'InputFile[]'
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(576,9): Error: need 'this' for '_input' of type 'InputFile[]'
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(581,20): Error: need 'this' for '_input' of type 'InputFile[]'
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(593,24): Error: need 'this' for '_input' of type 'InputFile[]'
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(618,37): Error: need 'this' for '_input' of type 'InputFile[]'
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(642,33): Error: need 'this' for '_input' of type 'InputFile[]'
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(480,16): Error: template instance app.RTPService.postFirstauth.render!("firstauth.dt", error).render!("app", "app.RTPService.postFirstauth").render.parseDie
t!(translate).parseDiet.MapResult!(__lambda2, InputFile[]) error instantiating
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\parser.d(65,33):        instantiated from here: map!(InputFile[])
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\html.d(61,84):        instantiated from here: parseDiet!(translate)
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\http\server.d(213,3):        instantiated from here: compileHTMLDietFile!("firstauth.dt", req, error)
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\web\web.d(325,53):        instantiated from here: render!("firstauth.dt", req, error)
source\app.d(222,11):        instantiated from here: render!("app", "app.RTPService.postFirstauth")
Compiling Diet HTML template polymer.dt...
Compiling Diet HTML template dashboard.dt...
dashboard.dt(27,20): Error: function app.TemplateFiles.getTemplate_dashboard.render!("dashboard.dt", _user).render!("app", "app.TemplateFiles.getTemplate_dashboard").render.filter!(req, _user).filter (const(char[]) input, string filter
, void delegate(const(char[])) nothrow @safe output) is not callable using argument types (string, string, void)
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\html.d(84,7): Error: template instance app.TemplateFiles.getTemplate_dashboard.render!("dashboard.dt", _user).render!("app", "app.TemplateFiles.getTemplate_das
hboard").render.compileHTMLDietFile!("dashboard.dt", req, _user).exec!(StreamOutputRange) error instantiating
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\http\server.d(213,47):        instantiated from here: compileHTMLDietFile!(StreamOutputRange)
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\web\web.d(325,53):        instantiated from here: render!("dashboard.dt", req, _user)
source\app.d-mixin-927(927,84):        instantiated from here: render!("app", "app.TemplateFiles.getTemplate_dashboard")
Compiling Diet HTML template list.dt...
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\defs.d(34,3): Error: "list.dt(39): Expected node text separated by a space character or end of line, but got '<'."
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\parser.d(935,12):        called from here: enforcep(strip(remainder).length == 0u, delegate string() => "Expected node text separated by a space character or e
nd of line, but got '" ~ remainder ~ "'.", loc)
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\parser.d(862,38):        called from here: parseTagLine(input, loc, has_nested)
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\parser.d(65,76):        called from here: parseDietRaw(f)
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\iteration.d(581,19):        called from here: __lambda2(front(this._input))
C:\Program Files\D\dmd2\windows\bin\..\..\src\phobos\std\array.d(105,9):        called from here: __r7356.front()
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\parser.d(65,81):        called from here: array(map(files))
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\html.d(61,84):        called from here: parseDiet([InputFile("list.dt", "MY DIET TEMPLATE")]))
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\html.d(62,46):        called from here: _diet_nodes()
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\html.d(62,34):        called from here: getHTMLMixin(_diet_nodes(), "_diet_output")
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\http\server.d(213,3): Error: template instance app.TemplateFiles.getTemplate_list.render!("list.dt", _user).render!("app", "app.TemplateFiles.getTemplate_list")
.render.compileHTMLDietFile!("list.dt", req, _user) error instantiating
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\web\web.d(325,53):        instantiated from here: render!("list.dt", req, _user)
source\app.d-mixin-928(928,74):        instantiated from here: render!("app", "app.TemplateFiles.getTemplate_list")
Compiling Diet HTML template color-selector.dt...
color-selector.dt(15,20): Error: function app.TemplateFiles.getTemplate_colorSelector.render!("color-selector.dt", _user).render!("app", "app.TemplateFiles.getTemplate_colorSelector").render.filter!(req, _user).filter (const(char[]) in
put, string filter, void delegate(const(char[])) nothrow @safe output) is not callable using argument types (string, string, void)
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\html.d(84,7): Error: template instance app.TemplateFiles.getTemplate_colorSelector.render!("color-selector.dt", _user).render!("app", "app.TemplateFiles.getTem
plate_colorSelector").render.compileHTMLDietFile!("color-selector.dt", req, _user).exec!(StreamOutputRange) error instantiating
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\http\server.d(213,47):        instantiated from here: compileHTMLDietFile!(StreamOutputRange)
..\..\AppData\Roaming\dub\packages\vibe-d-0.7.30-beta.1\vibe-d\source\vibe\web\web.d(325,53):        instantiated from here: render!("color-selector.dt", req, _user)
source\app.d-mixin-929(929,93):        instantiated from here: render!("app", "app.TemplateFiles.getTemplate_colorSelector")
Compiling Diet HTML template time-picker.dt...
time-picker.dt(11,20): Error: function app.TemplateFiles.getTemplate_timePicker.render!("time-picker.dt", _user).render!("app", "app.TemplateFiles.getTemplate_timePicker").render.filter!(req, _user).filter (const(char[]) input, string
filter, void delegate(const(char[])) nothrow @safe output) is not callable using argument types (string, string, void)
..\..\AppData\Roaming\dub\packages\diet-ng-1.0.0-beta.1\diet-ng\source\diet\html.d(84,7): Error: template instance app.TemplateFiles.getTemplate_timePicker.render!("time-picker.dt", _user).render!("app", "app.TemplateFiles.getTemplate_
timePicker").render.compileHTMLDietFile!("time-picker.dt", req, _user).exec!(StreamOutputRange) error instantiating

These scripts are breaking it:
:javascript
	Polymer({
		is: "module-name"
	});

but because there are so many of them and they are most of the time just 3-5 lines I don't want to put them into separate files. Also it seems that there is some internal error in diet-ng which is right at the top of the error log.
I don't think its fixed though because there is also an issue in this line:
a(href$="/list/[[listid]]/settings")><
	paper-fab-menu-item(label="List Settings", icon="settings")

Okay, I'll have a look at those issues ASAP.

the a()>< works now (only a()<> was accepted before. Default filters ("javascript", "css", "htmlencode", "markdown") are now also available for diet-ng. What still remains are those algorithm.iteration.map errors. I couldn't reproduce those up to now in a unit test.

Im going to try to create a reproducible case for that last error. Also >< makes more sense imo because then you can visualize it like these braces being the parts of tags generating ...element1><element2...

Yeah fixed in diet-ng now


Stylus CSS support missing

Issue Type: Bug
When using a Stylus CSS file with the extension of '.styl', the following are missing:

Auto-suggestion, auto completion for CSS properties and values.
Colour box does not show to change colour values.

VS Code version: Code - Insiders 1.21.0-insider (ce13bb0dabd06981913c46b5a94456647864c2e0, 2018-02-23T06:08:53.779Z)
OS version: Darwin x64 17.4.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)

Load (avg)
2, 2, 2

Memory (System)
16.00GB (0.46GB free)

Process Argv
/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron . .

Screen Reader
no

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

markdown-toc
Ala
1.5.6

ng-template
Ang
0.1.9

vscode-markdownlint
Dav
0.13.0

EditorConfig
Edi
0.12.1

npm-intellisense
chr
1.3.0

tslint
eg2
1.0.28

angular2-inline
nat
0.0.17

vim
vsc
0.10.13

markdown-pdf
yza
0.1.7

Reproduces only with extensions

VSCode doesn't ship with support for '.styl' files, please install an extension such as https://marketplace.visualstudio.com/items?itemName=sysoev.language-stylus for this support.


WithTranslation exported from package seems to behave differently than one from react-i18next

Describe the bug
When I try to use the WithTranslation type directly from the package on my typescript project, it says that the property 't' does not exist on type. If I import it directly from the react-i18next package (and am using it only for this type) then it works.
Occurs in next-i18next version
Version 1.1.0
Steps to reproduce
Just import the WithTranslation from the package, use it in a class interface, and try to access the props.t property
Maybe I am doing something wrong on my side, but not sure what

@Averethel Can you please explain your recent work?

@githubdoramon I fixed it in https://github.com/isaachinman/next-i18next/pull/459
@isaachinman it seems to me that there was no version release since merging that PR, that would explain the bug report.

@Averethel Released in v1.1.1.

Many thx


Breakpoint not hit when debugging in WSL

OS: Windows
Simple node app
console.log('Hello World');

set break point on line 1
debug in WSL
Observe: breakpoint not hit.

This still doesn't work and there's nothing about a possible fix?

We just announced remote development with VS Code, check out the blog post for details https://code.visualstudio.com/blogs/2019/05/02/remote-development


generateFileManifest() starting from project root instead of app.

Library Affected:
sw-build*
Issue or Feature Request Description:
My code looks right, according to Matt. It is constructing a manifest.js from my project root instead of from my app directory. To run the faulty code, clone from this branch and run gulp build (which will run the faulty code).
The output from this looks normal:
[09:09:52] Using gulpfile ~/Documents/projects/redder2/gulpfile.js
[09:09:52] Starting 'build'...
[09:09:52] Starting 'clean'...
Build file has been created.

Needed to test demo correctly:
npm install --save del jsdom

Testing the input parameters, it ends up being:
{
  rootDirectory: './app/',
  dest: './app//js/manifest.js',
  globPatterns: [ '**/*.{html,js,css}' ]
}

Weird that the double '/' gets worked out.
The final output includes paths such as:
{
    "url": "/../builder.js",
    "revision": "1c1e1f15b85abbd6b1afbabfa2b3f098"
  },
  {
    "url": "/../gulpfile.js",
    "revision": "5f4b0b37d5d2cfee83eb2fa16331066e"
  },

The reason for './app/' is that I tried all the variations I could think of on what my rootDirectory should be and that happens to be the last one I tried. I get the same result with './app'.

yeah I'm just stating what I found - the last bit if a bug - fixed it - just adding tests.


ARA: Fix resource definition

It is not currently possible to set resources in the ARA chart because of the wrong indentation level. I tested this with helm template ara ./ara -f values.yml  and this values file:
resources:
  requests:
    cpu: 1
    memory: 1Gi
  limits:
    cpu: 3
    memory: 1Gi

Before:
      containers:
      - image: docker.io/recordsansible/ara-api:latest
        imagePullPolicy: IfNotPresent
        name: ara
        resources:
        limits:
          cpu: 3
          memory: 1Gi
        requests:
          cpu: 1
          memory: 1Gi

After:
      containers:
      - image: docker.io/recordsansible/ara-api:latest
        imagePullPolicy: IfNotPresent
        name: ara
        resources:
          limits:
            cpu: 3
            memory: 1Gi
          requests:
            cpu: 1
            memory: 1Gi

This is a quick fix, could you please take a look @Nold360 @triluch or @fad3t ?
Thanks (and happy holidays) !

LGTM, however I'm not a maintainer of this repository :P

Thanks for this!


[ctp] New version v6.6.1_P1_20210406_se

Updates:

new order types
ClientLoginRemark
compression during data transmission

Compatible with server version 6.5.0 or newer (new feature needs server version 6.6.1)
Data collection module is not included and not changed from 6.3.19_P1.
Original Update in Chinese:
简介：看穿式监管Linux/Windows版本。本次更新内容如下：支持中金所顶单功能、支持交易所结算风险隔离功能，登录接口中新加ClientLoginRemark，API与前置传输过程中的数据压缩。适用于6.5.0及以上柜台，新功能需要连接6.6.1以上柜台才能使用。仅tradeapi，采集模块(WinDataCollect.dll/ LinuxDataCollect.so)请从期货期权看穿式监管评测6.3.19P1版本中下载。

@xgao1023, thanks for the PR!
Could you fix the indent issue in portfile.cmake?

@xgao1023, thanks for the PR!
Could you fix the indent issue in portfile.cmake?

Fixed and re-pushed.

Thanks for the update!


Destructured parameter list not validating when ? found

Sample Code
    export class SampleClass{
        constructor({paramOne: string, paramTwo? : number = null}){
        }
    }

Both of these scenarios cause an issue when validating even though they should pass validation as this is valid ES6 syntax.
    export class SampleClass{
        constructor({paramOne: string, paramTwo? : number}){
        }
    }

Not sure what causes this but it's completely stopping me using flow.
The exact error is
 ^ Unexpected token ?

You're mixing up ES6 deconstrutor syntax and flow type annotations. Here's an example using the correct syntax
export class SampleClass{
  constructor({ paramOne, paramTwo }: { paramOne: string, paramTwo: ?number}) {
  }
}

Note that this doesn't typecheck, probably due a bug tracked here: https://github.com/facebook/flow/issues/183
export class SampleClass{
  constructor({ paramOne, paramTwo = null }: { paramOne: string, paramTwo: ?number}) {
  }
}

This is a reasonable workaround that typechecks:
export class SampleClass{
  constructor(params: { paramOne: string, paramTwo: ?number }) {
    const { paramOne, paramTwo = null } = params;
  }
}

Final note, there's a difference between { paramTwo?: number } and { paramTwo: ?number }. The former has type number | void, the latter number | void | null.
You can learn about the difference here: https://flowtype.org/docs/builtins.html#null-and-void

This is horribly documented then. I would actually have never guessed that is how I was meant to do that. Thanks for the help though much appreciated.
Closing.

@TheOpenDevProject I agree the documentation is not stellar. It's quickly mentioned here https://flowtype.org/docs/syntax.html#destructured-bindings but since it's very confusing, this should be more explicit

See also the discussion here: https://github.com/facebook/flow/issues/235


upload_to_play_store documentation is misleading

New Issue Checklist

[ X ] Updated fastlane to the latest version
[ X ] I read the Contribution Guidelines
[ X ] I read docs.fastlane.tools
[ X ] I searched for existing GitHub issues

Issue Description
The tool is working as intended, but I'd like to suggest that the documentation on this particular page should be reviewed and some clarity added:
https://docs.fastlane.tools/getting-started/android/release-deployment/
Specifically, running the command upload_to_play_store with no extra arguments with immediately roll the build out to all production users. That's a surprising default. I wouldn't argue that the default behavior be changed, not at this state - but maybe that particular page could have some language added to make the "running this will roll out a build to all users" really clear.  Just a suggestion:
lane :playstore do
  gradle(
    task: 'assemble',
    build_type: 'Release'
  )
  upload_to_play_store # Uploads the APK built in the gradle step above and rolls the release out to all production users
end

Hm, adding it to the comment seems a bit easy to miss. Why not a new sentence under the code sample? A bit below it shows how to use rollout: '0.5'.

Honestly I think mentioning it twice on the page would be wise. It's a big detail and (I can only speak for myself), not immediately obvious. So yes - if it was mentioned in the comment AND below in prose, I think that would be excellent.
There's a bullet point list preceeded by "This will also upload" - perhaps that could be reworked as:
This will also do the following:
- Upload app metadata ...
- Upload expansion files ...
- Upload screenshots ...
- Create a new production build
- Release the production build to all users

Too much?

No, that is actually the perfect solution!


parse model specification to pdf (or LaTeX)

The Latexify package can be used to turn Julia expressions into latex, for example:
using Latexify
latexify(:(x + y))  |> print

Since the tracers are written as expressions already, this should be fairly straightforward. A potential issue is that we are using functions within the expressions so the output will just be the function name, which might not be what you're thinking of. Try for example:
latexify(:(phytoplankton_metabolic_loss(P, lᵖⁿ) ))


New stable release

Hello
I like your work. Factory_girl is module that is much needed in nodeJS community.
Unfortunately, I didn't managed to connect new factory_girl version with sequelize adapter factory_girl.
When do you think new stable version will be out?

Hi @lblazecki, thanks for raising the issue. I suppose there are two problems to fix here: #64 and that we haven't put the new version for factory-girl-sequelize yet. Sorry for the confusion that you had to face, but we'll need another 1-2 weeks to sort everything out.

@chetanism thank you for your response :)
I am looking forward to it!

Hi @lblazecki, we just managed to fix #64 as well as add a Sequelize adapter to factory girl itself.
You should be able to:
import factory, { SequelizeAdapter } from 'factory-girl'
Let us know in case you face any issues.

Hi @chetanism
I faced an issue:
.../node_modules/factory-girl/index.js:66
      throw new Error('Invalid Model constructor passed to the factory');
      ^
Error: Invalid Model constructor passed to the factory

This is the line in code:
if (!Model || typeof Model !== 'function') {
  throw new Error('Invalid Model constructor passed to the factory');
}

When typeof Model !== 'function' is removed it's working normally, but I am not sure what are the consequences of removing it.

@lblazecki, if I am right, the issue is probably because of Sequelize Model. FactoryGirl expects Model to be a constructor function that can be used to create new instances. In case of Sequelize I guess Model.Instance is the constructor function.
Thanks for pointing out the issue. Here is what you can do to keep things working at your end, till we get this fixed:

update your package.json to point factory-girl to https://github.com/chetanism/factory-girl.git#v4-sequelize-fix
Import factory-girl from `factory-girl/dist'
To avoid putting factory-girl/dist at all places, create a wrapper script in your app and import the wrapper script wherever required, once the issue is fixed, you can easily change it back to importing from factory-girl

I have just pushed the updated build to the above mentioned branch. This should keep you going while we fix the issue.

@chetanism
Thank you :)
It's working now 👍

It seems both #63 & #64 are resolved now. Can we haz stable version? :innocent: TY!!

I can't seem to get v4 working with Sequelize. I think npm installed 4.0.0-beta.7.
Here's my setup:
var factory = require('factory-girl');
const adapter = new factory.SequelizeAdapter();
factory = factory.factory;

const Models = require('../../models');

factory.define('products', Models.products, {
  parent_name: 'MS Foo',
  priority_scale: 50,
});

At this point I get TypeError: Model is not a constructor. I can't seem to find the magic incantation to get a sequelize model object that factory-girl finds kosher.
I'm using sequelize's import method to place one model per file: http://docs.sequelizejs.com/en/latest/api/sequelize/#importpath-model
You can see an example of what that looks like here: https://github.com/sequelize/express-example/blob/master/models/task.js
Any ideas?

I think factory-girl v4 is going about this wrong. According to the docs for Sequelize Model:

This class should not be instantiated directly, it is created using sequelize.define, and already created models can be loaded using sequelize.import

http://docs.sequelizejs.com/en/v3/api/model/

Solved.
Looking at the source of the failure message, here: https://github.com/aexmachina/factory-girl/blob/7e4335330a4e85d4c6c2ecf9a881df8ff9b77965/src/adapters/DefaultAdapter.js#L4
It looked like I just wasn't initializing the SequelizeAdapter properly, so I was hitting the DefaultAdapter. I would have noticed that earlier, but I'm running my tests in mocha and it took me forever to figure out how to get a trace from Node's UnhandledPromiseRejectionWarning via the unhandledRejection event. In case anyone else is curious, just added this to the mocha test file:
process.on('unhandledRejection', (reason, p) => {
  console.log('Unhandled Rejection at: Promise', p);
  console.log('reason:', reason);
});

Anyway, I just needed to call setAdapter. Here's the working code:
var factory = require('factory-girl');
const adapter = new factory.SequelizeAdapter();
factory = factory.factory;
factory.setAdapter(adapter);

const Models = require('../../models');

factory.define('products', Models.products, {
  name: 'Some Foo',
  priority: 50,
});

Hi @createthis, glad that your problem is solved. I did saw the mail for this issue, but couldn't find time to look into it. Thanks for posting the comment, it would help if someone else faces the issue.
I just have one request, if you face any issues, please open a new issue for it. Not just it would keep the discussion separate, it would also help others to find it easily if they face similar problem.

@gunar, it should happen soon!

@chetanism what about now? :innocent:

I've published v4 :tada: Thanks everyone who's contributed to this release, and sorry it took us so long to get it released!

@createthis THANK YOU SO MUCH FOR POSTING YOUR SOLUTION!!!!


[BUG] Removing GitHub logo from practice page to maintain consistency.

Describe the bug
The extra GitHub logo should not be present in the practice page.
To Reproduce
Steps to reproduce the behavior:

Go to 'practice page'
See error

Expected behavior
Github logo should not be pesent in order to maintain consistency.
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Please assign it to me


Qupath ROI

Hi,
I would like to create ROI from slide with Quath, but I did find the  qupath_roi.groovy script. Could you help me please ?
Best
Nazim

Hi Nazim! The script you're looking for is in the main folder of this repository:
https://github.com/jamesdolezal/slideflow/blob/master/qupath_roi.groovy


MQTT over WS is broken

BUG REPORT

What were you trying to achieve?
I'm trying to send an MQTT message using Websockets.

What are the expected results?
I expect it to succeed.

What are the received results?
I'm unable to connect using WS and I don't see any logs on the MQTT adapter.

What are the steps to reproduce the issue?

Run the Magistrala composition. Provision Thing and Channel, connect them and try to send MQTT message over WS.

In what environment did you encounter the issue?
I use the latest Magistrala, in the latest Docker env, but the bug seems to be related to mProxy.

Additional information you deem important:
N/A

From my testing, the issue is not with mproxy but with magistrala. From test MQTT over WS works with client and mosquitto broker. The issue is with target URL formatting in Magistrala which does not have ws:// and /mqtt


Java: The Legend Past, Present, and Future

As all the free oreilly books here i had just referred  that one also not works (no email with download link email me ever from oreily)

found it here
http://pepa.holla.cz/wp-content/uploads/2016/10/java-the-legend.pdf

take a look at CONTRIBUTING.md

That link works, but it's likely an illegal mirror.

should remove link


Example Prisma API

Might be helpful to have an example GraphQL Playground linked from the Prisma homepage, to show what a generated Prisma endpoint looks like, with filtering, sorting, pagination. More hands on than reading through https://www.prismagraphql.com/docs/reference/prisma-api/queries-ahwee4zaey
When deciding whether I'm going to use something, I want to see/interact with the API. Eg with Firebase, I had to go through all the possible queries to realize that it wasn't powerful enough to do the queries my app required, so I had to build my own indexes with it.

That's a great point @lorensr. We'll add something to the current website shortly and will more deeply embed it in the next website iteration! @nikolasburk will be looking into it. :)

It is very difficult for me with a working project because of this


docs: restructure and add more content

@fgerschwiler I think the concepts/policies and concepts/managers sections would be better located under guides

@fgerschwiler I think the concepts/policies and concepts/managers sections would be better located under guides

I think it makes sense to have them here. In understand the logic, as these are all ZITADEL specifc or general concepts required to understand the system or guides.
The form is not there yet, but I would keep them separated from the guides.

@fgerschwiler it would be good to update the introduction to concepts and explain that section.
Also there is a typo ("twoo") and the "active work and subject to change" should be removed, we are beyond that now.

The form is not there yet, but I would keep them separated from the guides.

ok I can live with that, but at first it felt a little counterintuitive 😁

I believe it's also due to a lack of content atm.

@fgerschwiler @livio-a maybe we should stick to 'active voice' and directly addressed to the reader.
Example: "These projects should be created in ..." >> "Create these projects in ..."
or: "To give a customer permissions to a project, a project grant to the customer is need." >> "You need to grant a project to a customer to give the customer permission to use your project"

@fgerschwiler is this ready to merge or does this still need work?

@fgerschwiler is this ready to merge or does this still need work?

I changed my feedback, but I am waiting for @livio-a to have a look at the his parts. Also we are not sure if we should change the feedback of panne about the tabs.

I changed my feedback, but I am waiting for @livio-a to have a look at the his parts. Also we are not sure if we should change the feedback of panne about the tabs.

I think we should change the table for now to see how it works out. We might switch it back if people don't understand 😁


Node SQL build

Summary
This is a fairly large change that revamps how we generate node SQL.
The primary rationale behind this is that our existing SQL building does repeated traversals of the dimensions graph, along with multiple calls to compile(...) at different points in the call tree, all of which are expensive and unnecessary. It is also difficult to untangle most of this, including figuring out which dimensions/filters can be pushed down, which dimensions/filters require joins, and so on. This rewrite tries to minimize the graph traversal and clean up the SQL generation strategy.
For some complex queries, the query build time is significantly reduced, from 5+ seconds to <1sec.
New Endpoint
This PR adds a different API endpoint for retrieving measures SQL that uses the new build method: GET /sql/measures/v2.
This is to allow for a slower migration process from the existing SQL endpoints to this one. This measures SQL endpoint has also been modified to return separate measures queries for each of the upstream nodes, rather than a single joined query, which would not have made sense if the requested metrics had two upstream nodes each at different grains.
SQL Building Strategy
Below is an outline of the new SQL building strategy:
Building Node SQL (handled in build_ast)

Recursively turn node references into query ASTs. These are replaced with materialized tables where possible (i.e., source nodes will always be replaced with a materialized table), but otherwise we generate the SQL of each upstream node reference.
Apply any filters that can be pushed down to each referenced node's AST.
Initialize the final query with the node's query AST added to it as a CTE.

Dimension Node Joins (handled in build_node)

For any dimensions or filters requested for the node, we parse each and determine if a join is needed to bring in the dimension or filter. We keep track of all the necessary dimension joins in a dict that maps dimension nodes to join paths. This removes the need for unnecessary dimensions graph traversal.
For each of the necessary dimension joins, build the dimension node's query in the same manner as above, recursively replacing any node references and pushing down requested filters where possible.
Add the dimension node's query AST to the final query as a CTE.

Final Query (handled in build_node)

Build the final query using the various CTEs. This does all the joins between the node query AST and the dimension nodes' ASTs using the join logic from the dimension links.
Add all requested dimensions to the final select.
At this point, we should not need to add any additional filters because all of the filters will have been done on either the original node AST or one of the joined in dimensions’ ASTs.

Test Plan

[ ] PR has an associated issue: #
[ ] make check passes
[ ] make test shows 100% unit test coverage

Deployment Plan

@agorajek @samredai @anhqle this is ready for review. The good news is that this doesn't break or change any of the endpoints that already exist, so we can merge this in without any issues and test completely separately from the existing flows.

if the user explicitly says so (a.k.a SQL hints)

@agorajek fwiw, I think the dimension links are somewhat this already, as in, we will only push down the filter if there's a linked dimension for it -- we won't try to parse the node SQL to figure out if we can push down filters to specific columns. That I agree is super error-prone. The dimension linking is essentially a user-provided SQL hint. Or do you think we should allow users to control the pushdown at SQL build time?

if the user explicitly says so (a.k.a SQL hints)

@agorajek fwiw, I think the dimension links are somewhat this already, as in, we will only push down the filter if there's a linked dimension for it -- we won't try to parse the node SQL to figure out if we can push down filters to specific columns. That I agree is super error-prone. The dimension linking is essentially a user-provided SQL hint. Or do you think we should allow users to control the pushdown at SQL build time?

Yes... I understand that the dimension linking is a great proxy for passing the filters, but what if we have multiple nodes with the same dimension linked. I think there may be some situations where this filter push-down may be undesired... but until we see a good case it will be a theoretical concern of mine. I think the least we could do now is to add a flag to turn the filter push-down off completely. This would give us some leeway when we run into a bad use case. The next step later on (if necessary) could be to add explicit hints to build time where one could specify filters with the desired node name to apply on.

@agorajek yeah that makes sense. I'll add a flag to control whether or not the filter pushdown should happen (might be a separate PR though). This may be difficult for users to control for any automated integrations though, like I'm not sure how users who are accessing things thru a dashboard would actually control this.


Decouple JobHelper as a standalone project

Idea is to decouple JobHelper to a separate project so it could be reused by more instances of Jenkins without inheriting JenkinsAsCodeReference
In this way JobHelper will be built as an artifact, deployed to maven central and could be picked as a binary dependency using grab

Already move to the https://github.com/Praqma/jobdsl-helpers
What is left is to setup deployments to the maven central


Doc added and project updated

Codecov Report

Merging #39 (6095162) into master (cff5504) will increase coverage by 1.39%.
The diff coverage is 93.71%.

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
+ Coverage   90.53%   91.93%   +1.39%
==========================================
  Files          10       11       +1
  Lines         560      595      +35
==========================================
+ Hits          507      547      +40
+ Misses         53       48       -5

Flag
Coverage Δ

unittests
91.93% <93.71%> (+1.39%)
:arrow_up:

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

Impacted Files
Coverage Δ

src/KnuthBendix.jl
100.00% <ø> (ø)

src/rewriting.jl
89.79% <81.25%> (+3.12%)
:arrow_up:

src/orderings.jl
87.17% <87.50%> (+5.36%)
:arrow_up:

src/automata_kbs2.jl
94.44% <94.44%> (ø)

src/abstract_words.jl
92.85% <100.00%> (-0.48%)
:arrow_down:

src/alphabets.jl
74.13% <100.00%> (-2.06%)
:arrow_down:

src/automata.jl
88.65% <100.00%> (+5.55%)
:arrow_up:

src/bufferwords.jl
98.76% <100.00%> (-0.20%)
:arrow_down:

... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d50f33...6095162. Read the comment docs.

Codecov Report

Merging #39 (6095162) into master (cff5504) will increase coverage by 1.39%.
The diff coverage is 93.71%.

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
+ Coverage   90.53%   91.93%   +1.39%
==========================================
  Files          10       11       +1
  Lines         560      595      +35
==========================================
+ Hits          507      547      +40
+ Misses         53       48       -5

Flag
Coverage Δ

unittests
91.93% <93.71%> (+1.39%)
:arrow_up:

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

Impacted Files
Coverage Δ

src/KnuthBendix.jl
100.00% <ø> (ø)

src/rewriting.jl
89.79% <81.25%> (+3.12%)
:arrow_up:

src/orderings.jl
87.17% <87.50%> (+5.36%)
:arrow_up:

src/automata_kbs2.jl
94.44% <94.44%> (ø)

src/abstract_words.jl
92.85% <100.00%> (-0.48%)
:arrow_down:

src/alphabets.jl
74.13% <100.00%> (-2.06%)
:arrow_down:

src/automata.jl
88.65% <100.00%> (+5.55%)
:arrow_up:

src/bufferwords.jl
98.76% <100.00%> (-0.20%)
:arrow_down:

... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d50f33...6095162. Read the comment docs.

ok, I've added some input of mine; Let's focus on finishing #38 for now :)

ok, I've added some input of mine; Let's focus on finishing #38 for now :)

Btw, I tried to obey the following styling:

1 sentence per line;
lines between 80 and 120 characters;
breaking of long lines as close to semantic "breaks" as possible.


Hello world is broken on Mac

Hi, team, it seems hello world is broken on my Mac (M1) due to prelude issue.
I got
(base) ➜  hello_world git:(master) ✗ buck2 targets //...
Error parsing root//
From `load` at implicit location

Caused by:
    0: From `load` at prelude/prelude.bzl:8:6-29
    1: From `load` at prelude/native.bzl:15:6-52
    2: From `load` at prelude/apple/apple_bundle_macro_layer.bzl:8:6-32
    3: Error evaluating module: `prelude//apple/apple_bundle_config.bzl`
    4: error: Variable `typing` not found
         --> prelude/apple/apple_bundle_config.bzl:14:40
          |
       14 | def apple_bundle_config() -> dict[str, typing.Any]:
          |                                        ^^^^^^
          |

This is the first bad version, but it is broken for another error message
Caused by:
    0: From `load` at prelude/prelude.bzl:8:6-29
    1: From `load` at prelude/native.bzl:16:6-45
    2: From `load` at prelude/apple/apple_macro_layer.bzl:10:5-36
    3: From `load` at prelude/apple/apple_rules_impl_utility.bzl:8:6-46
    4: From `load` at prelude/apple/apple_bundle_types.bzl:8:6-18
    5: Error evaluating module: `prelude//apple/debug.bzl`
    6: error: Variable `AnalysisContext` not found
         --> prelude/apple/debug.bzl:42:36
          |
       42 | def get_aggregated_debug_info(ctx: AnalysisContext, debug_infos: list[AppleDebuggableInfo.type]) -> AggregatedAppleDebugInfo.type:
          |                                    ^^^^^^^^^^^^^^^
          |

You need to install latest buck2 (or rebuild from source at trunk) to fix this issue.

To help smooth this out, for the moment I suggest you pick a binary pre-release, for example, 2023-08-01 — aside from binaries, that tag includes an artifact called prelude-hash that tells you the proper git commit for the buck2-prelude repo.
As of tag 2023-08-01, that commit is acf49faaa61fd6ad9facd9e1418eed514bbb2ec8, so downloading that copy of the prelude should work OK.
Really, this should be part of the release engineering process, since (I suspect) buck2 init gave you a wrong version of the prelude to tag as a submodule.

This issue has been resolved by updating buck2 binary

If you have cargo/rust installed, you can run cargo install buckle to automate much of the above.  You use buckle instead of invoking buck2 directly, and it pulls a buck2 binary based on a .buckversion file. It prints a warning when your prelude is out of sync.

@cormacrelf - we should definitely add that on the website. I wonder if we should encourage that more heavily though? CC @themarwhal

I am leaning towards using direnv for any bootstrapping needs, rather than buckle. This is thanks to buck2-nix, which showed the way. Nix can't be used on windows beyond WSL, but direnv is portable and really a very good way to address the problem of bootstrapping. I think a short python script could do what buckle does quite easily, and it could handle more cases. Buckle only supports mainline prelude and binary releases, but at the moment it's a bit out of reach to do everything you need to do without patching prelude at all. Once you patch your prelude, buckle is no longer very useful.

I have also been using the entire buck2 repo in a git subtree, rather than the prelude.
# add this repo as a subtree
git subtree add --prefix buck2 https://github.com/facebook/buck2.git main --squash
cd buck2 && cargo install --path app/buck2

# edit your .buckconfig
[repositories]
prelude = buck2/prelude

# later on, pull in latest changes and rebuild
git subtree pull --prefix buck2 https://github.com/facebook/buck2.git main --squash
cd buck2 && cargo install --path app/buck2

The --squash is important if you don't want 8000 commits in your repo
Any contributions back to buck2 prelude should be going to this repository anyway, so you can simply git remote add buck2-fork https://... and git subtree push --prefix buck2 buck2-fork mybranch to it.

This is not something I have done for use with a team yet, and for more than one developer you would also have to re-implement what buckle does. I think I will do that with direnv.

If you do that, and perhaps have some way of buck2 reporting a custom version commit hash, then comparing it to `git log -- buck2 ':!buck2/prelude' will tell you if the direnv script needs to rebuild buck2. Could work, who knows.


blog  : promo block content overflows box

@diomed You fixed this in b535c0d right?

sadly, no, I didn't.
I've looked at this yesterday: https://github.com/jgthms/bulma/pull/1641
maybe it'll help. I tried adding it as a property but with no success,


ARO: Fix typo and move GPU instance types out of control plane support

@jboutaud FYI

@bennerv, in order for this PR to be reviewed and merged, it needs to be moved out of "draft" mode. Select the "Ready for review" button in the PR. Thanks.

Docs Build status updates of commit 5cd4749:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/openshift/howto-gpu-workloads.md
:white_check_mark:Succeeded

articles/openshift/support-policies-v4.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


vcpkg bootstrap fails with transient error

This was on macOS and Kokoro, but I think it applies to anything using the bootstrap script:
2022-02-06T18:02:57Z (+146s): Downloading vcpkg into /Users/kbuilder/vcpkg-quickstart...
Downloading cmake...
Downloading cmake... done.
Extracting cmake...
Extracting cmake... done.
Downloading ninja...
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to objects.githubusercontent.com:443

https://source.cloud.google.com/results/invocations/13e63c8f-47f3-4863-84b5-898cf2fad2fe

http://sponge2.corp.google.com/4037fd06-72f0-40ad-be26-78cd9dc5be29

https://source.cloud.google.com/results/invocations/74b91982-ccc8-40ba-8de5-1b0e16d210bf


Trailing slash added to base URL in transpile load function specifier

In the transpile function (possibly in the bundle function too but not tested), the load function's specifier parameter inconsistently includes a trailing slash when the URL does not contain a path (base URL).
Bug reproduction:
import { transpile } from "https://deno.land/x/emit/mod.ts";
import { assertEquals } from "std/testing/asserts.ts";

const testURL = "https://test.com";

const load = function (specifier) {
	assertEquals(specifier, testURL);
};

try {
	await transpile(testURL, { load });
} catch (error) {
	console.error(error);
}

Error: load rejected or errored: JsValue(AssertionError: Values are not equal.

    [Diff] Actual / Expected

-   https://test.com/
+   https://test.com

AssertionError: Values are not equal.

Expected behavior
The specifier parameter should consistently exclude the trailing slash for base URLs and not mutate the actual specifier passed to the transpile function, or the behavior should be clearly documented so developers can adjust their code accordingly.
Actual behavior
A trailing slash is added to the specifier when the URL does not include a path (base URL).

According to the HTTP specification, a root URL with a trailing slash is a equivalent to a root URL without a trailing slash.
In RFC 2616:

3.2.2 http URL
The "http" scheme is used to locate network resources via the HTTP
protocol. This section defines the scheme-specific syntax and
semantics for http URLs.
http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query ]]
If the port is empty or not given, port 80 is assumed. The semantics
are that the identified resource is located at the server listening
for TCP connections on that port of that host, and the Request-URI
for the resource is abs_path (section 5.1.2). The use of IP addresses
in URLs SHOULD be avoided whenever possible (see RFC 1900 [24]). If
the abs_path is not present in the URL, it MUST be given as "/" when
used as a Request-URI for a resource (section 5.1.2). If a proxy
receives a host name which is not a fully qualified domain name, it
MAY add its domain to the host name it received. If a proxy receives
a fully qualified domain name, the proxy MUST NOT change the host
name.

The transformation is thus necessary in order to have a canonical form. Otherwise, root URLs with and without a trailing slash would be treated as different specifier, even though they point to the same resource.
The URL object part of the Web API enforces this. Try the following:
const url = new URL("https://test.com");
console.log(url.toString());
// ^ Will output "https://test.com/"

(Also, the specifier is not mutated. Strings don't mutate in JS, so this behavior does not affect user-level code.)

The fact that two URLs are equivalent in the specification you mentioned, does not mean that the user code should always enforce the transformation of one into another, by automatically adding a trailing slash to the base URL.
As a matter of fact, if one navigates to https://github.com, the browser will not enforce a trailing slash in the address bar. If one now navigates to https://github.com/, the server will enforce https://github.com and actually remove the trailing slash. You can try it right now in your browser:
// Navigation to https://github.com/:
[Diff] Actual (red) / Expected according to [RFC 2616] 3.2.2 http URL  (green)
-   https://github.com/
+  https://github.com

AssertionError: Values are not equal.

In our code, we purposefully did not use the new URL constructor and passed the value as a javascript string, in order to not have the constrained behavior from RFC 2616 that you presented.
Conclusion: It is up to users to define how are handled the trailing slashes in the servers they develop, and the trailing slash should not automatically be enforced at the level of the specifier by modifying the value of the URL string passed as an argument to the transpile function and passed as an argument to the load function.

The specifier has not changed. The one that is provided as argument to the load function is just what it resolves to in Deno's internals.
One cannot expect Deno to treat these specifiers differently. By spec, the two URLs points to the same resource. If Deno starts to differentiate between root URLs with or without trailing slashes, then it cannot efficiently cash. It might be the behavior you want, but that will break things for other users.
The fact that the browser removes the trailing slash has no relationship with Deno's desired behavior. It's a UI thing. If you look at the network tab, you will see that the HTTP request that is sent by the browser is the same regardless of whether there is a trailing slash; and in all cases, the trailing slash is present in the request.
Can you please explain your use case so that we can understand how the current behavior can cause issues? Thank you.

Thank you. This caused an issue when mapping the specifier to a key in an object or a map with the base url without trailing slash. Now that the way the URL is defined internally is clarified, we’ll make sure that the base url always has a trailing slash in our implementation.


1.18.2?

When will this mod be updated to 1.18.2?

Hi,
sorry for not noticing your comment, I've had to deal with a longer break. and might have missed the email from Github.
Anyway, I returned and there's a 1.19 version now.
Do you still think you need it for 1.18.2?

No, 1.18.2 is not needed anymore. Thank you! In the meantime I used a VanillaTweaks resourcepack which lowered the shield a bit.


Tree-shaking unused superclass method fails with factory constructor

In the following code:
class Super {
  Super();

  factory Super.sub() = Sub;

  void foo() {
    throw "super foo";
  }

  void bar() {
    foo();
    // Throw to avoid inlining this method.
    throw "";
  }
}

class Sub extends Super {
  void foo() {
    throw "sub foo";
  }
}

main() async {
  new Super.sub().bar();
}

Super.foo() is unreachable, but dart2js (as of 0c005a39d22aec953726c39eb0fcc7d2dbe66a4e) fails to tree-shake it:
$ dart2js test.dart
$ grep -n "super error" out.js
4936:        throw H.wrapException("super foo");

This seems to only happen if Sub is constructed via a factory constructor on Super (redirecting or otherwise), and foo() is called from another method in Super (in this case, bar()).
This came up in practice when trying to reduce the code size of the http package and its dependencies.

Interesting.
There might be a bug where a redirecting constructor is considered to instantiate its class.
At the call in bar() the inferred type of this is subclass-of-Super.
So we believe Super.foo and Sub.foo are possible targets.
We must also believe that Super is instantiated.
How much junk code is this pulling in?

How much junk code is this pulling in?

Kind of a lot... it leads to transitive dependencies on several unnecessary packages.


Bump CI Xcode to 12.5.1 and macOS to 11

Re-requesting review due to swift version bump changes since last review @kyleve @kylebshr


Fixed memory leak when attach\deattach touch[start,move,end] listeners

Hi, as far as i know, .bind(this) !== .bind(this), so your handlers will never be de-attached. That cause memory leak in my application.
This PR eliminate this issue.
BR

Thank you! Merged!


File not found

I followed the steps to test this SDK.
when I ran the example, this messages is shown in console
{ [Error: Cannot find module '../customervault/ACHbankAccounts'] code: 'MODULE_NOT_FOUND' }
However the class exists.
Can you help me?

There were couple of import errors and package.json version error and we have fixed it.


how can I get primary key when I executed insert sql ?

how can I get primary key when I executed insert sql ?

That depends on the underlying database and db api. In PyGreSQL classic, the insert() method puts them into the dictionary, and the query() method returns the oid. In PostgreSQL you can also add a RETURNING clause to the insert statement and then fetch the row as usual.


Exclude config-deployer/tmp from read only file system

Purpose

$subject
GET apis/generate-k8s-resources requires write permissions to the /home/wso2apk/config-deployer/tmp directory

Codecov Report
Patch coverage has no change and project coverage change: -1.08% :warning:

Comparison is base (8971346) 27.53% compared to head (1b31b03) 26.45%.
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1608      +/-   ##
==========================================
- Coverage   27.53%   26.45%   -1.08%
==========================================
  Files         250      132     -118
  Lines       29432    15228   -14204
  Branches     5110     2555    -2555
==========================================
- Hits         8103     4028    -4075
+ Misses      21056    11065    -9991
+ Partials      273      135     -138

Flag
Coverage Δ

adapter
27.09% <ø> (-0.48%)
:arrow_down:

common-controller
1.12% <ø> (ø)

config-deployer-service
26.67% <ø> (ø)

idp-domain-service
80.10% <ø> (ø)

router
∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 119 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Adding Link to Challenge #2 for Linda

We checked out your repository. We're thrilled to say your solution is now listed in our Hall of Fame
Thank you for your contributions!
This PR is now closed! 🎉


chore: user onboarding flow

Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your default branch!
[ ] Make sure you are making a pull request against the default branch (left side). Also you should start your branch off default branch.
[ ] Check the commit's or even all commits' message styles matches our requested structure.
[ ] Check your code additions will fail neither code linting checks nor unit test.
[ ] I have added necessary documentation (if appropriate)

Linked Issues
Fixes
Description
Please describe your pull request.
❤Thank you!
Post merge checklist

[ ] Follow steps from the guidelines for contributing to this repository.
[ ] If you are a new contributor, ping in the thread and one of the maintainers will add you to all-contributors list.

@120EE0692 add a sort of loading interstitial in the onboarding flow. It will be shown after the google sign up animation has completed till our media upload and mutations have completed.


Adds TS def & remove .js extension on main for module resolution

Thanks for the contribution @bradmartin -- however, we don't use TypeScript at Mapbox, and can't commit to maintaining definitions. However, I'd encourage you to submit a pull request to https://github.com/DefinitelyTyped/DefinitelyTyped.

No worries. Unless the public API were to change the def wouldn't need to be modified necessarily. Again, no worries though :)


Node14 EOL

Node14 has reached EOL and AWS lambda will stop supporting this runtime on Feb 8, 2024
See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy
After this date, lambda functions using NodeJS 14 cannot be created, and shortly after that, functions cannot be updated.  We need to bump the version used in this package to NodeJS 18

Hello there, I've just released v2.2.0 which uses Node.js v20 runtime.
The release is available on:

npm package (@latest dist-tag)
GitHub release

(btw package release pipeline which uses semantic-release, had some issues - v2.1.0 was published as incomplete state. Please use v2.2.0 instead of v2.1.0)
Thanks for your patience and Happy new year!


improve docker instructions

what exactly should be changed sir?

Hey, Im currently working on getting these instructions more OS friendly, and easier to read and understand for people who may not understand what it is they are doing with Docker, so that working with it down the line is easier

Okay, sir, I can help if you need me.

I appreciate the offer, but I think I have this one covered!

Okay sir


HTTP streaming reliability

Note: This approach falls within the scope of a patent application filed by Fanout. However, if implemented, the Pushpin license (AGPL) ensures that the necessary rights would be granted to users.
Publish-subscribe services are unreliable by design. Since Pushpin can be used to provide historical and streaming content over a single connection, there is an opportunity for the two data sources to be unified in a way that creates a reliable stream.
When creating a stream hold, any channel to be subscribed should include a prev-id value. A next link should also be provided:
HTTP/1.1 200 OK
Content-Type: text/plain
Grip-Hold: stream
Grip-Channel: fruit; prev-id=3
Grip-Link: </fruit/?after=3>; rel=next

{... initial response ...}

The prev-id here would have a similar effect as it does with response holds, in that if the ID doesn't match the last known ID published to the channel, then Pushpin will make a request again to the proxy. The difference is that with a stream hold, the subscription will be activated immediately and initial response data sent. Then the next link will be retrieved, and any content received will be dumped into the already-open response. If another next link is received then Pushpin will follow it until the end is hit (hold instruction, or no link/hold which would cause the response to close).
When Pushpin retrieves a next link as a result of a publish conflict, it will also include a Grip-Last header indicating the last known ID received on a given channel. This should take precedence over whatever checkpoint information may have been encoded in the link.
GET /fruit/?after=3 HTTP/1.1
Grip-Last: fruit; last-id=7

For example, if the origin server received the above request, then the last-id of 7 would be used as the basis for determining the response content rather than the after query param.
Note: this approach could be applied to WebSockets as well, to be expored in a separate issue.

Implemented in the develop branch.


--softmax-temperature doesn't seem to work in sockeye.translate

It seems that setting --softmax-temperature causes the following error:
[ERROR:__main__] Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/edwardhu/.local/lib/python3.5/site-packages/sockeye/translate.py", line 244, in <module>
    main()
  File "/home/edwardhu/.local/lib/python3.5/site-packages/sockeye/translate.py", line 42, in main
    run_translate(args)
  File "/home/edwardhu/.local/lib/python3.5/site-packages/sockeye/translate.py", line 86, in run_translate
    override_dtype=args.override_dtype)
  File "/home/edwardhu/.local/lib/python3.5/site-packages/sockeye/inference.py", line 448, in load_models
    inference_model.initialize(max_input_len, get_max_output_length)
  File "/home/edwardhu/.local/lib/python3.5/site-packages/sockeye/inference.py", line 128, in initialize
    self.decoder_module, self.decoder_default_bucket_key = self._get_decoder_module()
  File "/home/edwardhu/.local/lib/python3.5/site-packages/sockeye/inference.py", line 249, in _get_decoder_module
    context=self.context)
  File "/home/edwardhu/.local/lib/python3.5/site-packages/mxnet/module/bucketing_module.py", line 75, in __init__
    symbol, data_names, label_names = self._call_sym_gen(default_bucket_key)
  File "/home/edwardhu/.local/lib/python3.5/site-packages/mxnet/module/bucketing_module.py", line 108, in _call_sym_gen
    return self._sym_gen(*args, **kwargs)
  File "/home/edwardhu/.local/lib/python3.5/site-packages/sockeye/inference.py", line 238, in sym_gen
    logits /= self.softmax_temperature
  File "/home/edwardhu/.local/lib/python3.5/site-packages/mxnet/symbol/symbol.py", line 233, in __itruediv__
    raise NotImplementedForSymbol(self.__itruediv__, '/=', other)
mxnet.base.NotImplementedForSymbol: Function __itruediv__ (namely operator "/=") with arguments (<class 'float'>) is not implemented for Symbol and only available in NDArray.

thanks for reporting! I can reproduce the issue. I'll let you know when we have a fix.


Error when i used cookies

Hi , sorry for my english , i have this problem when i used cookies.
note: this error did not appear to me, just last week it appeared
C:\WINDOWS\system32>cd ytarchive
C:\Windows\System32\ytarchive>ytarchive.py -c C:\Users\user\Desktop\cookies.txt
Enter a youtube livestream URL: https://www.youtube.com/watch?v=PEpFQPKfOUA
Traceback (most recent call last):
File "C:\Windows\System32\ytarchive\ytarchive.py", line 2257, in
main()
File "C:\Windows\System32\ytarchive\ytarchive.py", line 1987, in main
if not info.gvideo_ddl and not get_video_info(info):
File "C:\Windows\System32\ytarchive\ytarchive.py", line 880, in get_video_info
vals = get_playable_player_response(info)
File "C:\Windows\System32\ytarchive\ytarchive.py", line 648, in get_playable_player_response
player_response = get_player_response(info)
File "C:\Windows\System32\ytarchive\ytarchive.py", line 526, in get_player_response
player_response = json.loads(watch_parser.player_response_text)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 52930 (char 52929)
Thank you for your attention!!!

The Python script has been deprecated since October and is no longer supported. Please grab the newest pre-release from the releases page


I made a copy of parts of the server before it shutdown

I will upload the files to a repo and link them.
The following channels were fully backed up (including media): announcements, info, launcher and updates.

This is actually really awesome I wish someone coulda got general but that would have been massive

This is actually really awesome I wish someone coulda got general but that would have been massive

Actually in order to avoid future problems you should really consider selfhosting Revolt (which is a Discord clone)

Actually in order to avoid future problems you should really consider selfhosting Revolt (which is a Discord clone)

Yes and no, revolt is better in discord in some ways as the bar is set so low by discord in the first place but revolt is plagued with issues and its owner having some sketchy views. Revolt isnt even fully open source.
Unfortunately in this modern day and age we cant take anything for granted and will have to just archive stuff from whatever platform so we have a guaranteed way to reivew it later.
Im not aware of any other discord alts apart from revolt and guilded.

Actually in order to avoid future problems you should really consider selfhosting Revolt (which is a Discord clone)

Yes and no, revolt is better in discord in some ways as the bar is set so low by discord in the first place but revolt is plagued with issues and its owner having some sketchy views. Revolt isnt even fully open source.
Unfortunately in this modern day and age we cant take anything for granted and will have to just archive stuff from whatever platform so we have a guaranteed way to reivew it later.
Im not aware of any other discord alts apart from revolt and guilded.

What about Spacebar or Matrix?
Spacebar seems very similar to Discord/Revolt, FOSS and promising. For something more stable maybe Matrix?
Anyway I don't wanna disturb anymore, keep up with the good work :)


Support concat_func arg in apply_concat_apply

The apply_concat_apply function constructs a DataFrameTreeReductions layer with a wrapped version of _concat for the concat_func argument. Although this is usually fine, the "chunk" and "combine" functions are not required to return DataFrame-like objects, and so some custom aggregations may benefit from a "custom" concatenation function.
Example use case: NVTabular (optionally) reduces peak GPU-memory usage by converting cudf DataFrames into pyarrow Tables between tree-reduction nodes. In this case, the "custom" concat_func will concatenate a list of pyarrow Tables and then convert the result to a single cudf DataFrame.

Seems reasonable to me


Experiment with sleep functionality

The best way to resolve this issue is to allow users to set the time they sleep-the time they wake. Also during this time they select, a nice addition would to have the pet say the pet is sleeping.
-EthanTTM


Including sass file from js throws error

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
I have the following project structure:
src
| - index
  | - app.jsx
  | - index.html
  | - style.scss
| - index.js
(node modules, configs, package.json, etc...)
package.json

I'm using the default react template, just moved stuff around.
When I try to import the style.scss in my jsx file:
import React from 'react';
import './style.scss';

export default class App extends React.Component {
  render() {
    return (

Welcome to React!

);
  }
}

It throws the following error in the console:
Uncaught SyntaxError: Unexpected token {
    at Object.exports.runInThisContext (vm.js:78:16)
    at Module._compile (module.js:543:28)
    at Object.require.extensions.(anonymous function) [as .scss] (C:\Users\stavl\Dropbox\Electron Dev\warehousenir\node_modules\electron-compile\lib\require-hook.js:77:14)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\stavl\Dropbox\Electron Dev\warehousenir\src\index\app.jsx:13:1)
    at Object.<anonymous> (C:\Users\stavl\Dropbox\Electron Dev\warehousenir\src\index\app.jsx:66:3)

(my style.scss file is simply h2 { color: blue;})
But when I include it from HTML (<link ...>) it works just fine.
Any idea why?
What command line arguments are you passing?
None really, just
electron-forge start

What does your config.forge data in package.json look like?
"config": {
        "forge": {
            "make_targets": {
                "win32": [
                    "squirrel"
                ],
                "darwin": [
                    "zip"
                ],
                "linux": [
                    "deb",
                    "rpm"
                ]
            },
            "electronPackagerConfig": {},
            "electronWinstallerConfig": {
                "name": "myproj"
            },
            "electronInstallerDebian": {},
            "electronInstallerRedhat": {},
            "github_repository": {
                "owner": "",
                "name": ""
            },
            "windowsStoreConfig": {
                "packageName": "",
                "name": "myproj"
            }
        }
    }

Because importing scss doesn't make muchsense in a JSworld 😆 It's a webpack concept that simply doesn't translate over well to the way electron can work.
The correct way to use scss is as you mentioned with a link tag

@MarshallOfSound Silly me 😅 thank you for your tolerance lol, I wasn't paying attention. Thanks!

electron-compile (which electron-forge uses) is more like Just HTML than Webpack is, you can just directly link to it in HTML:
<link type="text/scss" rel="stylesheet" href="./myfile.scss" />


examples should not use internal packages

as title says examples should not use internal packages.
or should we use vendoring at go.mod ?

It's just using the internal package for logging and for getting a certificate. I don't see a problem here.

as I pointed out at issue #2014, debug logging is important.
This just points it out.

See my example.

https://github.com/jinleileiking/quic-go-example

@apmattil

great, now we just need to get it to quic-go as example..it is the first place first timer will look at.
This example shows one of my problem, how do you know was the network problem with a stream or whole session !
should we have external counter how many active streams and when all of them get 'no network activity' we know whole session is broken ?
(old version had 'peer going away' error)
please add deadline to sever read and then you see you need to parse error cause.

As described in #2014, you never need to parse error codes. They only exist for logging purposes.


Add pylint action on external pull request

Currently it's only triggered on "push".

This has made it's way to develop, will see if it works when we get an external PR 🤞

I had a trivial change but did it as a PR to see if this worked, and seems it does. (#40)


[MNO-325] Sign out not always works

I don't know why the current_user method of mnoe is relying on the user being authenticated only for update and  :update_password methods

@ouranos Could we merge this ?


How to stop transfering of your good pokemon ? Can somebody show me his code ?

Optimizer fix #6006


Sentence Transformers Candidate Models

Models

[ ] https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2
[ ]  https://huggingface.co/sentence-transformers/multi-qa-MiniLM-L6-cos-v1
[ ] https://huggingface.co/sentence-transformers/bert-base-nli-mean-tokens
[ ] https://huggingface.co/sentence-transformers/paraphrase-MiniLM-L6-v2
[ ] https://huggingface.co/sentence-transformers/all-mpnet-base-v2
[ ] https://huggingface.co/sentence-transformers/multi-qa-mpnet-base-dot-v1

Please add in comments if you would like a model from this list to be added!

@NirantK  Hey, I think fastembed is dependent on the huggingface's tokenizer, right?  Why does it not support any of the models mentioned in the issue description by default?

We export the models to ONNX and quantize them to improve compute times, while preserving as much performance as we can — that means each model needs a bit of work and testing.
I am not sure how the tokenizer is relevant though. We don't use transformers or torch libs.

I have used this  https://huggingface.co/sentence-transformers/paraphrase-MiniLM-L6-v2 in every chat-bot that i have built. And this really works well even with the large sized llms.


Trivy-operator and ImmagePullSecret discovery : Wilcard never match

Using private registry, ex xxx.jfrog.io
The secret used to pull images from this repos is formated as below
.dockerconfigjson: '{"auths": {"*.jfrog.io": {"username":"mylogin","password":"xxx","email":"foo@bar"}}}'
When starboard launch the Job to scan the pod, there is not secret created, and the scan fail with this error
{"level":"error","ts":1654176088.1880994,"logger":"reconciler.vulnerabilityreport","msg":"Scan job container","job":"xxx-system/scan-vulnerabilityreport-f954d8cf","container":"xxx","status.reason":"Error","status.message":"2022-06-02T13:21:27.538Z\t\u001b[31mFATAL\u001b[0m\tscan error: unable to initialize a scanner: unable to initialize the docker scanner: 3 errors occurred:\n\t* unable to inspect the image (demo-api.jfrog.io/apidemo:v0.1): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\n\t* unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory\n\t* GET https://demo-api.jfrog.io/v2/apidemo/manifests/v0.1: UNAUTHORIZED: The client does not have permission for manifest; map[manifest...
If a change the wildcard by the complete registry hostname ex : demo-api.jfrog.io, all works fine.
What did you expect to happen:
As docker, starboard should find the most similar host inside the imagePullSecret to try to pull image. and therefore work with wildcards expression.
Maybe to change exacte comparaison to regexp match there :
https://github.com/aquasecurity/trivy-operator/blob/75269725b7b841ca216f1a79e10575f9f9935eb9/pkg/kube/secrets.go#L52
The the mapping from a container name to the Docker authentication credentials for the specified kube.ContainerImages and image pull Secrets can use wildcard or other regexp.
I'm not a Go developer, it's just a guess :D
Environment:

version :0.0.7
Kubernetes version : 1.21
OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): N/A

@cdesaintleger thanks you for reporting this issue , we will review it


How do I insert HTML tags into content?

When I set the content var it only gets the text
content: '<i>Sample text</i>'
returns "Sample text" without the HTML markup

I tried it with this html fragment and it worked, maybe you need to put your tags into a  HTML form
function exampleHTMLContent() {
var HTMLContent = '' +
'Sample text' +
'';
$.confirm({
title: titulo,
content: contenidoHTML
});
}

For some unknown reason I didn't manage to do it. Thanks!


fix(ui): use object-contains for logos

Set the object-fit CSS property to contain, to make sure logos with different aspect ratios will not be stretched and shown properly. This stretching happens when a new logo is added to the technologies array with a different aspect ratio like 4:1. Now it's fixed.

@amirhossein-shakeri Can you please provide us with a screenshot of before & after?

Yeah, sure!
Before

After

As you see, since the logo aspect ratio is 15:7(It's a little bit wide) and we've set width and height on the image parent(h-16 w-32), logos that are so wide like this, would be stretched as you can see in the pictures. The object-contain class name, makes sure the image is not stretched by setting object-fit: contain(CSS property).

thanks!

Thank you to update other stacks too!


Access to the Archive

@MagentaSuperNova you appear to be the only person with the ability to upload to the scratch-projects item on Archive.org.  Is there a way that this could be more community accessible so that more project uploads don't have to go through you?

Hmm... interesting.  Okay, shouldn't be an issue.  I'm building a frontend for the Archives that we can manually add to.  https://scratcharchive.vercel.app/

Also, do you plan on archiving any more projects?  Or just the 70,000?

No problem - I'm very busy as well.  I've just started downloading the 70001-80000 range of projects, so if you decide to do any more then go ahead and start with 80001.

And if it's all right with you, I can just send you the zipped files when I'm done and you can add them to your Archive.org item for consistency.


Fedora/EPEL packages

Kalamine has official DEB packages (Debian and Ubuntu); RPM packages would be nice to see as well.
The first step would be to make a Fedora package:
https://docs.fedoraproject.org/en-US/package-maintainers/Package_Review_Process/
Then an EPEL package, to make it available to RHEL-like plstforms:
https://docs.fedoraproject.org/en-US/epel/epel-package-request/
@carlwgeorge, your help will be appreciated here! :-)

I've got an initial RPM spec file for this, but I've got a few questions based on the results of the rpmlint tool.
kalamine.noarch: E: zero-length /usr/lib/python3.13/site-packages/kalamine/generators/__init.py__

That error message is a bit obtuse, but it goes away if I rename the file to __init__.py.  My guess is that rpmlint knows that a __init__.py file can be empty, but doesn't expect other files to be so it throws the error because of the non-standard name.
kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/__init__.py 644 /usr/bin/env python3
kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/cli.py 644 /usr/bin/env python3
kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/cli_msklc.py 644 /usr/bin/env python3
kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/cli_xkb.py 644 /usr/bin/env python3

From what I can tell the entrypoints to the program are the scripts created in /usr/bin, so it's unnecessary to use shebang lines in these files.  Like the other error, I can resolve the error by adjusting the files during the RPM build.
Would these adjustments make sense to make here in this git repo?  It's not strictly required because I can just keep the adjustments in the RPM spec file, but to me they seem practical enough for everyone.

For anyone interested in trying out the RPM package early on Fedora 40/41/Rawhide, you can get it from my copr for package reviews.
dnf copr enable carlwgeorge/reviews
dnf install kalamine

The review is taking place in rhbz#2314587 for inclusion in the official Fedora repos.


test: Implement scrape tests

Adding tests for dsl's scrape functionalities.

Related to ticket: PPS-86 Implement scrape tests


Allow concurrent, re-creatable usage

Hi, I am using this package to generate uuids for a test generator. I have a use case where multiple instances of the generator run asynchronously to create tests.
I need to be able to recreate failed tests, the current implementation holds only one seed, so there is no way to ensure recreation when processes are running asynchronously.
I have forked the repository and added a UuidSource, similar to a source in math/rand, which holds the rander, this solves my use case.
I suggest to do a PR from my fork.

Sure, send me what you have.

Any chance of a making a release with these changes?

Oh, sorry!  I will make release 1.2 now.

Released as 1.1.2 (changes are too minor to be a 1.2 release).  Thank you for pointing this out.


+((Get 20+)) Free Amazon Gift Card Codes 2024 Free) Amazon Gift Card Codes for 2024

Amazon gift cards are a convenient way to shop on Amazon.com or gift someone the flexibility to choose what they want from the vast selection of products. Here's a comprehensive guide on how to obtain, redeem, and use Amazon gift cards effectively.
►🔴👉👉CLICK HERE TO FREE GENERATOR
►🔴👉👉CLICK HERE TO FREE GENERATOR

What Are Amazon Gift Cards?
Purpose: Used to add funds to your Amazon account for purchases on Amazon.
Formats: Available as physical cards or digital codes.

How to Obtain Amazon Gift Cards
2.1. Physical Retail Stores
Purchase Locations: Available at electronics stores, supermarkets, and other retail outlets.
Examples: Walmart, Target, Best Buy, CVS, Walgreens.
2.2. Online Retailers
Digital Codes: Buy digital Amazon gift card codes from reputable online stores.
Examples: Amazon, Best Buy, Target, Walmart.
2.3. Amazon Official Store
Amazon Gift Cards: Purchase gift cards directly from Amazon in various designs and amounts.
2.4. Special Promotions and Bundles
Event Offers: Some products or services may offer Amazon gift cards as part of promotional bundles or special offers.
2.5. Reward Programs
Credit Card Rewards: Earn Amazon gift cards through credit card reward points.
Examples: Chase, Discover, American Express.
2.6. Survey and Offer Websites
Rewards Websites: Earn Amazon gift cards by completing surveys or participating in offers.
Examples: Swagbucks, InboxDollars, MyPoints.
2.7. Crypto and Cashback Sites
Crypto Rewards: Earn Amazon gift cards through cryptocurrency cashback sites like Bitrefill.
Cashback Programs: Use sites like Rakuten to earn cashback that can be redeemed for Amazon gift cards.
2.8. Giveaways and Contests
Amazon Community: Join Amazon-related groups, forums, or follow Amazon on social media for giveaway opportunities.

How to Redeem Amazon Gift Cards
3.1. Redeeming on the Amazon Website
Visit the Amazon Redeem Page.
Log In: Sign in to your Amazon account.
Enter Code: Input the code from your gift card and click "Apply to Your Balance."
Confirmation: The funds will be added to your Amazon account balance.

3.2. Redeeming on the Amazon Mobile App
Open Amazon App: Available on iOS and Android.
Menu: Tap the menu icon (three horizontal lines) and select "Account".
Gift Cards: Tap "Gift Cards".
Redeem: Select "Redeem Another Gift Card" and enter the gift card code.
3.3. Redeeming During Checkout
Add Items to Cart: Select items and add them to your cart.
Proceed to Checkout: Go to the checkout page.
Apply Gift Card: During payment, enter the gift card code in the "Gift cards & promotional codes" box and click "Apply."
Complete Purchase: The gift card balance will be applied to your order.
4. How to Use Amazon Gift Card Funds
4.1. Purchasing Products
Browse Amazon: Navigate to Amazon.com and browse products.
Select Items: Choose the items you want to buy.
Checkout: Add to cart and proceed to checkout.
Payment Method: Use the gift card balance as your payment method.
Confirm Order: Complete the purchase using the gift card balance.
4.2. Buying Digital Content
Digital Store: Visit the digital content section for Kindle books, apps, or music.
Select Content: Choose the digital content you want.
Use Balance: Pay using your Amazon gift card balance.
4.3. Purchasing Subscriptions
Amazon Services: Use gift card funds for subscriptions like Amazon Prime, Audible, or Amazon Music.
Manage Subscriptions: Go to the subscription management section and apply gift card funds.
4.4. Reloading Amazon Balance
Add Funds: Add the gift card funds to your Amazon account balance for future purchases.
4.5. Gifting
Gift Items: Use gift card funds to purchase items to be sent as gifts to others.
5. Tips for Maximizing Amazon Gift Cards
5.1. Wait for Sales and Promotions
Prime Day: Shop during Amazon Prime Day for the best deals.
Holiday Sales: Use gift card funds during Black Friday, Cyber Monday, and other holiday sales.
5.2. Use for Necessities
Everyday Items: Use gift card funds for household essentials or groceries available on Amazon.
5.3. Combine Balances
Gift Card Stack: Combine multiple gift cards to accumulate a larger balance for bigger purchases.
5.4. Check for Discounts
Amazon Coupons: Look for available coupons and discounts to maximize the value of your gift card funds.
5.5. Plan Ahead
Wishlists: Add items to your Amazon wishlist and monitor prices to buy when discounts are available.
6. Safety and Security Tips
6.1. Avoid Scam Websites
Authorized Channels: Only purchase gift cards from official or authorized retailers to avoid scams.
6.2. Protect Codes
Keep Codes Secure: Store physical cards securely and keep digital codes private until you’re ready to redeem them.
6.3. Account Security
Strong Password: Use a strong password for your Amazon account.
Two-Factor Authentication: Enable two-factor authentication for added security.
6.4. Report Issues
Contact Support: If you experience issues with a gift card, contact Amazon Support for assistance.
7. Frequently Asked Questions (FAQs)
7.1. Can I transfer Amazon gift card funds between accounts?
No: Amazon gift card funds are non-transferable and can only be used on the account they are credited to.
7.2. Do Amazon gift cards expire?
No Expiry: Amazon gift cards generally do not expire, but check specific terms for any exceptions.
7.3. What if my gift card code doesn’t work?
Check Code: Ensure you entered the code correctly. If the problem persists, contact Amazon Support.
7.4. Can I get a refund for unused gift cards?
Non-Refundable: Amazon gift cards are typically non-refundable once purchased.
7.5. How can I check my Amazon gift card balance?
In-Game: Go to the Amazon Gift Card Balance page to check your balance.
7.6. Are there limits to how much I can add to my Amazon account balance?
Balance Limits: Amazon may have limits on how much you can add to your account balance. Check Amazon’s official policies.
By following this guide, you can effectively redeem and utilize Amazon gift cards to purchase a wide range of products and services on Amazon. Enjoy your shopping experience with your newly acquired Amazon gift card funds!


Thunderbird 52 64 bit is not working

Dear all,
I have downloaded your plug in and tried to add my company exchange server mail on it but every time it gave me error message, what can I do?
the detailed error is below:
Failed to add account
If you feel like you should not experience this issuse please open
the error console (CTRL + SHIFT + J), filter mexint and report the
error to Issues on 'www.github.com/guderkar/mexint' or send it to
<EMAIL_ADDRESS>Thank you.
weather it's basic or NTLM security
can you help?

Hi, did you try to enter credentials in domain\username or domain\email format? Some Exchange servers require that.

I'm having the same issue. Linux 64 with tb 52.
Tried these options:
domain\username
domain\email
username
email

I updated Node.js binaries as they were pretty old. I don't know if its gonna solve the problem. Can you provide information from error console?

Still not working, this is what I see in the errors console:
mexint - node

stdout:
ERROR

stderr:
  AddAccountWindow.js:95
	addAccount chrome://mexint/content/AddAccountWindow.js:95:3
	oncommand chrome://mexint/content/AddAccountWindow.xul:1:1
	oncommand chrome://messenger/content/AccountManager.xul:1:1
	MsgAccountManager chrome://messenger/content/accountUtils.js:255:9
	oncommand chrome://messenger/content/messenger.xul:1:1

Its authentication issue. Can you also provide ews url so i can try to inspect http headers?

sorry, is internal from the company and I cannot share it :( thanks a lot anyway!

That's bad, you might ask some IT guy from your company which authentication methods are allowed for EWS. You might be using OAuth which is not supported by this plugin. Also next thing that comes to my mind is that sometimes you have 2 SMTP adresses like<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and only one of them works for authentication.


Persistence does not really work for certificates

Marshalled json always have "Certs": null, and it seems that state.Certs is not populated at all, apart from Unmarshal().

Proposed fix in #4, but unsure whether that's an appropriate wiring of internals.


Prioritize controllers with an intents array for the same state

This PR tackles the problem described on #238. Please give it a read and let me know what you think.
The order of how we structure our code still matters in this change, but a controller with an intent filter has more priority over one that don't for the same state no matter the order of the controllers.
So if I have:
voxaApp.onState("myExampleState", { ... });
voxaApp.onState("myExampleState", { ... }, "YesIntent");

And the user triggers a YesIntent, the controller with the YesIntent filter is the one being executed.

I'm realizing that I made this PR to merge to master instead of dev. Closing this PR and I will be doing the same PR for dev. Sorry.


Blue theme design - easter egg

@espoem found an interesting theme behavior
Right click on Feed and open the link in new tab to get the old dark blue theme.
Works on https://staging.busy.org/
https://streamable.com/5yfwn

Seems like an issue with Service Worker cache. It only refreshes every 24 hours.

Got this on new browser profile.


Authenticate TLS client channel

What version of gRPC and what language are you using?
1.29.1
What operating system (Linux, Windows,...) and version?
Windows
What runtime / compiler are you using (e.g. python version or version of gcc)
MSVC
What did you do?
I am trying to validate the client TLS certificate during the channel connection not on every request.  This can be done in the rpc itself using the auth_context or by using an AuthMetadataProcessor.  Both of these options require that the client certificate is validated on each request.
By using the grpc_impl::experimental::TlsCredentialsOptions and specifying the server_authorization_check_config the client can easily validate the server.  How does the server perform similar operation to validate the client only during channel connection not on every request.
What did you see instead?
When setting the server_authorization_check_config on the TlsCredentialsOptions the callback is not called but instead grpc validates that this is not set when creating the ServerCredentials.

This looks like a duplicate of the same issue you filed in #23498.

I am not a Programmer. I’m a Disabled Veteran. Stop!
Jeffrey H. Conz

On Sep 9, 2020, at 11:57, Mark D. Roth<EMAIL_ADDRESS>wrote:

Closed #23811.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Adding a Blazor UserSpecifiedDisplay within a other file than _Host.cshtml does not work

Describe the bug
When adding a Blazor UserSpecifiedDisplay to _Host.cshtml everything works as expected. When adding the UserSpecifiedDisplay into a Blazor component and adding that component into the App.razor file, the resulting HTML is added to the DOM but the element classes are no longer being added when the connection state changes.
(Adding the Blazor component to _Host.cshtml does not render the component)
DisconnectedDialog Component:

            Connection lost -- please wait, attempting to reconnect

            Unable to reconnect

                Reconnect

App.razor:
<CascadingAuthenticationState>
    <DisconnectedDialog></DisconnectedDialog>
    <Router AppAssembly="typeof(Startup).Assembly">
        <NotFoundContent>

Sorry, there's nothing at this address.

        </NotFoundContent>
    </Router>
</CascadingAuthenticationState>

Using the browser console to add or remove the required classes does work
document.getElementById('components-reconnect-modal').classList.add('components-reconnect-show')
document.getElementById('components-reconnect-modal').classList.remove('components-reconnect-show')

With the default ReconnectionDisplay the following works
window['Blazor'].circuitHandlers[0].reconnectDisplay.failed()

When using a UserSpecifiedDisplay the following does not work
window['Blazor'].circuitHandlers[0].reconnectDisplay.failed()

To Reproduce
Steps to reproduce the behavior:

Using Server-side Blazor create a Blazor Component DisconnectedDialog.razor
Add the default html and css styles as given on the Blazor docs
Add the DisconnectedDialog component to App.razor
Interupt the server connection

Expected behavior
Updating the element with id components-reconnect-modal should work anywhere in the DOM
Additional information
When using the Firefox 'DOM' viewer, Blazor.circuitHandlers[0].reconnectDisplay.dialog is being updated with the correct classes however the 'Inspector' does not show the same classes.
Additional context
Microsoft.NETCore.App 3.0.0-preview6-27804-01
Tested on Chrome and Firefox

Thanks for contacting us, @erwindevreugd.
The reconnection UI is applicable on the top page only, and not on component level. What you're trying to do is not a supported scenario.


doc variable is not qualified

The doc variable that you use to capture the remote body, is not qualified as a const (or any other type)

Fixed and published on 1.0.5


invalidate http cache on entity removal

1. Why is this change necessary?
Page is still available in HTTP cache when entity got removed.
2. What does this change do, exactly?
Change removes affected pages from HTTP cache when an entity got deleted.
3. Describe each step to reproduce the issue or behaviour.

Activate HTTP cache
Open product page (copy link or leave tab open)
Enter backend in another tab
Delete corresponding produkt via backend
Refresh product page (maybe flush browser cache before)
Product page is still active and alive but assumend to be dead 💀

4. Please link to the relevant issues (if any).
5. Which documentation changes (if any) need to be made because of this PR?
6. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

This affects currently only new installations. You will need here also a migration.

@shyim Ups. Sure thing. Didn't notice, that this is a legacy plugin.
Is there any naming convention for the migrations? Guess the merger have to change the file name, anyway.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-23948
Please use this issue to track the state of your pull request.

Thanks for your Contribution! :blue_heart:


HDC Import issue - 6e - some default characteristics set to zero

Foundry Virtual Tabletop:   Version 11 Stable
Build:   313
Hero System 6e (Unofficial) v2:   3.0.48
Active Modules:   2 (Drag Ruler 1.13.8, socketlib 1.0.13)
The calculated characteristics in 5e are treated as a base of zero in 6e. For example, importing a blank character will set SPD to zero,
The following characteristics are set to incorrect values:
SPD, PD, ED, REC, END, STUN = 0
RUNNING = 6
SWIMMING, LEAPING = 2
If I set the characteristic to a different value in HERO Designer (e.g. SPD 3), the resulting characteristic is raised or lowered from the incorrect default values (e.g. SPD 1 in this case).
It's as if the value for those characteristics are expected to be calculated rather than a set characteristic but defaults to zero when a 6e sheet is being used. (e.g. SPD was calculated in 5e and set to a base of 2 in 6e)
To recreate:

In Hero Designer, create a new 6e superheroic character.
Add a  Character Name.
Save the character.
Create a new blank character and import into Foundry.
The old calculated 5e characteristics are all off in non-calculated 6e.

It was tested with a 5e Superheroic character. It imports without issue.

Created quench test. Confirmed there are issues.


System crash while loading Dolphin-2.1-70B-4bit-128g-GPTQ in webui

I'm using Exllamav2 to load 70b with GPTQ group size and when the load completes in WebUI, the system crashes. if add --auto-devices will crashes immediately when load.

There is no problem with exl2 files and ordinary 4bit GPTQ
This model (Dolphin-2.1-70B-4bit-128g-GPTQ) can be loaded using exllamav1
It appears to be a relevant system record
python.exe
3.11.5150.1013
64ff15d0
c10.dll
<IP_ADDRESS>
650da48f
c0000005
0000000000055474
4348
01da0889fcb4f4f1
F:\text-generation-webui-1026\text-generation-webui-main\installer_files\env\python.exe
F:\text-generation-webui-1026\text-generation-webui-main\installer_files\env\Lib\site-packages\torch\lib\c10.dll
46ba660a-8bd0-4fbb-85cc-4b99bc87c08b

This seems to have slipped under the radar. Please open again if the issue manifests with more recent versions.


init should generate test-main.js for RequireJS projects

This was fixed in https://github.com/karma-runner/karma/pull/897 (referenced above). Can a maintainer close this issue?