text:
Error handling - [Errno 111] Connect call failed ('10.10.10.2', 22)

How do we handle errors when a device cannot be connected to? currently I et
File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 480, in _sock_connect_cb
raise OSError(err, 'Connect call failed %s' % (address,))
ConnectionRefusedError: [Errno 111] Connect call failed ('10.10.10.2', 22)
I would just like to print an exception i.e. couldn't connect to X. at the moment it aborts my script
I can see in base.py the timeout is set to 15 seconds, I tried to set the timeout in my params but got an error. how do we set timeout value?
Thanks
EDIT, resolve issue by upgrading net dev and having the following:
async def task(param):
    try:
        async with netdev.create(**param, timeout=5) as ios:
            # Testing sending simple command
            out = await ios.send_command("show ver")
            print(out)
    except:
        print('unable to connect to device')

Yes, it's right solution about using exception handling! One note about it - you may want to use asyncio.gather instead of asyncio.wait for awaiting coroutines due to wait doesn't catch the exception by default - you can read about it here

source: gharchive/issue

authors: ajwillo selfuryon

repo: selfuryon/netdev

license_type: permissive

license_source: github-api


text:
InvalidTemplateLibrary raised,  trying to load 'django_user_agents.templatetags.user_agents' (Django 3.0.7)

Hello,
Seems that Django 3.0.7 with python3.9 breaks things
Here is the error
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'django_user_agents.templatetags.user_agents': cannot import name 'get_and_set_user_agent' from partially initialized module 'django_user_agents.utils' (most likely due to a circular import) (/blablablablablabla/python3.9/site-packages/django_user_agents/utils.py)
The problem appears randomly by restarting runserver (run and debugger with pycharm)

Hey,
I have been facing the same issue. with Python3.9.0 and Django3.2.10 (recently updated from 3.2.8). Was getting the error:

File "/.../.venv/lib/python3.9/site-packages/django_user_agents/templatetags/user_agents.py", line 3, in
from ..utils import get_and_set_user_agent
ImportError: cannot import name 'get_and_set_user_agent' from partially initialized module 'django_user_agents.utils' (most likely due to a circular import) (/.../.venv/lib/python3.9/site-packages/django_user_agents/utils.py)

I brought down the Django Version back to 3.2.8 that solves the problem for me.

authors: GeekyShacklebolt gregorysemah

license: mit

license_source: bigquery


text:
Timing attacks in identity package

Describe the bug
The javascript BigInt implementation does not run in constant time. The semaphore identity derivation system is vulnerable to timing attacks.
To Reproduce
n/a
Expected behavior
Identity derivation happens in constant time.
Additional context
I'm not sure the best approach to solve this. One idea that may help is hashing random values when doing identity secret/commitment calculation.
e.g. when I calculate my identity secret my machine hashes my private keys, along with N other random values (discarding the random outputs).
This wouldn't work, the differences would still be the same over time.

Hey @vimwitch, can you give an example of that attack? The identities are generated client-side, so should an attacker access your local device to measure the right time?

Right i was imagining a malicious website could query the identity commitment many times, or something like that. But the attack only works when signing different data, so they would have to time the zk proof generation. Either way i think it's out of scope of this package.

authors: cedoor vimwitch

repo: semaphore-protocol/semaphore

license: MIT


text:
Text/String Vectorizers lead to different results because of iteration over map

Problem
When we collect all the string/text properties in an object we iterate over a map[string]interface{}. This means there is no order guarantee.
For the text2vec-contextionary module this has no impact since vectorization is just a mean calculation.
However, transformers modules are context-aware so the same sentences in differnent orders will leave to different vectors.
Possible Solution
The simplest solution might be to sort the keys alphabetically, so that two subsequent vectorization runs of the same data will lead to the same results.
Misc
The iteration happens here (Line 67):
https://github.com/semi-technologies/weaviate/blob/50cd6f5458cdd46c55dacb9ba47005742b7b7a30/modules/text2vec-transformers/vectorizer/objects.go#L66-L83
It seems that we have even accepted this randomness in the test where we don't compare exact strings (which would be flaky), but split the results and only compare that the elements match (ignoring order). Once this is fixed and there is a fixed order, this test can be adapted to match exact strings:
https://github.com/semi-technologies/weaviate/blob/50cd6f5458cdd46c55dacb9ba47005742b7b7a30/modules/text2vec-transformers/vectorizer/objects_test.go#L167-L169

closed in #1585

repo: semi-technologies/weaviate


text:
TemplateRegistry raises exception that template is not resolved when there is a parsing error

Depending on interpretation, it could be seen to be ok, but it is misleading and the error message could be clearer.

behaviour being tested - a parsing error will propagate out, as the template was found.

aimed at v1.8

repo: sempare/sempare-delphi-template-engine


text:
Recording - Group Channel/ iOS - Retrieve a list of banned or muted users

Click ‘Create’ to create new group channel
Under ‘Choose member’, add users & select ‘OK’
Click on ‘Channel Name’ box to input channel name
Name channel ‘Roommates’
Click ‘Create’
Click ‘Roommates’ to enter conversation
Click ‘Setting’, click ‘Muted Users’ to show list of muted users
Click ‘Setting’, click ‘Banned Users’ to show list of muted users

Nadia: Can everyone send me the money for utilities this month?
Amelia: I moved out halfway through the month so I don’t think I should pay
Emily: Nobody liked you anyway

On the Dashboard, on left hand sidebar click ‘Group channels’ & click on ‘Roommates’
In the chat window, on the right hand sidebar click ‘Members’ and click on Amelia
Click ‘Ban’ & input ‘Reason for muting’ as ‘No longer a roommate’
Click on Emily, click ‘Mute’ & input ‘Reason for muting’ as ‘Inappropriate behavior’
Click  ‘<-’ back arrow to go back to settings sidebar
Click on ‘Banned’ to view banned now shows Amelia
Click  ‘<-’ back arrow to go back to settings sidebar
Click on ‘Muted’ to view banned now shows Emily

@justinbaldwin
same issue as #147

@justinbaldwin
https://drive.google.com/file/d/1NCfqTXtXpAbqIBY95vCNfQ7vr2Smt6et/view?usp=sharing

@petru-gherghel start video at around the 0:10 second mark.

@justinbaldwin
https://drive.google.com/file/d/1KoZJbnjoYjLHgS3h75TlkSoWq41rGVu-/view?usp=sharing

@michellewong27 @chrischabot
Ready for review: https://drive.google.com/file/d/1KoZJbnjoYjLHgS3h75TlkSoWq41rGVu-/view?usp=sharing

@justinbaldwin reviewed, good for publishing

repo: sendbird/sendbird-chat-sample-ios


text:
TypeScript Definition Error: Client lacks call or construct signature

Issue Summary
The TypeScript definitions for the project don't allow instantiating a new Client according to tsc. This is fine however, in vanilla Node.
Steps to Reproduce
For demonstration purposes I'll be using the node and ts-node REPLs
Successful in Node:
→ node
Welcome to Node.js v12.15.0.
Type ".help" for more information.
> const client  = require('@sendgrid/client')
undefined
> client
Client {
  apiKey: '',
  defaultHeaders: { Accept: 'application/json', 'User-agent': 'sendgrid/6.4.0;nodejs' },
  defaultRequest: {
    json: true,
    baseUrl: 'https://api.sendgrid.com/',
    url: '',
    method: 'GET',
    headers: {}
  },
  Client: [Function: Client]
}
> new client.Client()
Client {
  apiKey: '',
  defaultHeaders: { Accept: 'application/json', 'User-agent': 'sendgrid/6.4.0;nodejs' },
  defaultRequest: {
    json: true,
    baseUrl: 'https://api.sendgrid.com/',
    url: '',
    method: 'GET',
    headers: {}
  }
}

But fails within TypeScript:
→ ts-node
> import client from '@sendgrid/client'
{}
> client
Client {
  apiKey: '',
  defaultHeaders: { Accept: 'application/json', 'User-agent': 'sendgrid/6.4.0;nodejs' },
  defaultRequest: {
    json: true,
    baseUrl: 'https://api.sendgrid.com/',
    url: '',
    method: 'GET',
    headers: {}
  },
  Client: [Function: Client]
}
> client.Client
[Function: Client]
> new client.Client
[eval].ts:4:1 - error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.

4 new client.Client
  ~~~~~~~~~~~~~~~~~

undefined
>

Note: This example requires that you have a local tsconfig that has esModuleInterop: true or are using the ts-node flag of the same name. Otherwise, you have to use import * as client from...
Code Snippet
see above
Exception/Log
see above
Technical details:

sendgrid-nodejs version: @sendgrid/client v6.4.0
node version: v12.15.0

Fixed by https://github.com/sendgrid/sendgrid-nodejs/pull/1040 released in 6.5.3

Sorry about that, I could have swore we had the latest installed.

authors: childish-sambino shellscape

repo: sendgrid/sendgrid-nodejs


text:
hideWarnings: is it a cure for a symptom and not a fix of the source?

Issue Summary
When sending dynamical template data such as a block of HTML code which includes ', " or &. You will have warnings if you don't use hideWarnings. But it feels like hideWarnings is a cure for a symptom and not a fix of the source. Instead of solving the problem from this PR -> https://github.com/sendgrid/sendgrid-nodejs/pull/793. hideWarnings basically hides this whole check, in this PR -> https://github.com/sendgrid/sendgrid-nodejs/pull/932
Code Snippet
    if (!this.hideWarnings) {
      Object.values(dynamicTemplateData).forEach(value => {
        if (/['"&]/.test(value)) {
          console.warn(DYNAMIC_TEMPLATE_CHAR_WARNING);
        }
      });
    }

Exception/Log
Content with characters ', " or & may need to be escaped with three brackets
{{{ content }}}
See https://sendgrid.com/docs/for-developers/sending-email/using-handlebars/ for more information.

There isn't really a great solution without knowing what's in the template, which would require an additional network call. Given that, the warning is purely informative to users who would otherwise be unaware that triple brackets are needed in such situations. Once they have be made aware, then hiding the warning will keep the logs clean.

authors: childish-sambino sarahmhale


text:
Allow export of old and new formats

To Test:

npm i && npm start
Try importing the full course schedule, the math schedule, etc.
There should now be two export buttons, try them both:

EXPORT CSV should give two CSVs in the new formats described by VanderLinden in our most recent meeting (it doesn't have the extra headers, but I figure the CSV should be good enough and allow department chairs to just copy the contents over)
EXPORT FULL CSV should do what EXPORT CSV used to do

Worth noting that the non-teaching CSV given is composed of classes without Prefix and Number, unsure if this is what we want to do going forward. (Currently it is impossible to add such a "course", so eventually we will want an add non-teaching load option, but it might still be good to store this as a course/section without prefix and number).
Let me know if the wording is confusing, if we should just remove full export or not, and if we should wait to merge this until we know more about the new formats.
Additionally, this branch changes the test CSV files to be loaded from their current version rather than current develop (I should have done it that way in the first place)
Closes #80

Boom. Looks good. If you want to update the wording for the Export Button you can, or we can take a look at it later after user feedback. Thanks!

What do you guys think about "Export Draft CSV" for the full version and "Export Final CSV" for the registrar version? That way, the user would save as much data as possible when simply drafting, but would export in the correct registrar format when ready to submit.

Oops, I forgot to change the wording, I'll do that later today, thanks!

source: gharchive/pull-request

repo: senior-knights/course-schedulizer


text:
Cocoapod: ‘objc_geohash/GeoHash.h’ file not found

Hi there, after installing v2.5.x with Cocoapods and disabling 'use_frameworks!' in the Podfile, Xcode gives me the above error.
The reason for this, is that the symlink-folder for the geohash framework in the /Pods/Headers/Public/ folder is named 'objc-geohash' and not 'objc_geohash' (the underscore;-) as named in the e.g. SBLocation.m where it's referenced.
After renaming by hand everything is fine.

This is a known issue; please update to v2.5.5 and use_frameworks! in the pod file.
In a future version we will phase out objc-geohash and the issue will be fixed.
Thanks for the report, @brainray

authors: brainray tagyro

repo: sensorberg-dev/ios-sdk


text:
Fix for when version query returns malformed version

Pull Request Checklist

Description

Fix version comparison logic to be a bit more resilient so that if the version returned is not expected the code does not raise exceptions.
Some of the unit test changes were to address the unit tests essentially testing nothing and not being really valid tests.
Related Issue

Fixes #1278

Released in v5.2.1

authors: ghoneycutt treydock

repo: sensu/sensu-puppet


text:
laydate 与 angular 组合使用，如何重新渲染laydate的type

使用 laydate.render() 不生效，
需求是 下拉框选择 年，年月，时间 等选项时日期控件相应的改变type

用的是angular的什么版本

加一个setTimeout
setTimeout(()=>laydate.render(), 0)

使用 laydate.render() 不生效，
需求是 下拉框选择 年，年月，时间 等选项时日期控件相应的改变type

加一个setTimeout
setTimeout(()=>laydate.render(), 0)

authors: XElengo dyywork icey-tea

repo: sentsin/layui


text:
Tables cannot be exported when reclassify values are missing

Tables cannot be exported when reclassify values are missing
File [~/1_modules/sepal_mgci/component/scripts/sub_a.py:98](http://localhost:8889/lab/tree/component/scripts/sub_a.py#line=97), in get_mgci.<locals>.<lambda>(row)
     94 df = fill_parsed_df(parsed_df.copy())
     96 # Adds is_green column to the dataframe based on lc_class.
     97 df["is_green"] = df.apply(
---> 98     lambda row: LC_MAP_MATRIX.loc[LC_MAP_MATRIX.to_code == row["lc_class"]][
     99         "green"
    100     ].iloc[0],
    101     axis=1,
    102 )
    104 # Get the green and non green total area for each belt
    105 tmp_df = df.groupby(["belt_class", "is_green"], as_index=False).sum()

File [~/module-venv/sepal_mgci/lib/python3.10/site-packages/pandas/core/indexing.py:1191](http://localhost:8889/home/dguerrero/module-venv/sepal_mgci/lib/python3.10/site-packages/pandas/core/indexing.py#line=1190), in _LocationIndexer.__getitem__(self, key)
   1189 maybe_callable = com.apply_if_callable(key, self.obj)
   1190 maybe_callable = self._check_deprecated_callable_usage(key, maybe_callable)
-> 1191 return self._getitem_axis(maybe_callable, axis=axis)

File [~/module-venv/sepal_mgci/lib/python3.10/site-packages/pandas/core/indexing.py:1752](http://localhost:8889/home/dguerrero/module-venv/sepal_mgci/lib/python3.10/site-packages/pandas/core/indexing.py#line=1751), in _iLocIndexer._getitem_axis(self, key, axis)
   1749     raise TypeError("Cannot index by location index with a non-integer key")
   1751 # validate the location
-> 1752 self._validate_integer(key, axis)
   1754 return self.obj._ixs(key, axis=axis)

File [~/module-venv/sepal_mgci/lib/python3.10/site-packages/pandas/core/indexing.py:1685](http://localhost:8889/home/dguerrero/module-venv/sepal_mgci/lib/python3.10/site-packages/pandas/core/indexing.py#line=1684), in _iLocIndexer._validate_integer(self, key, axis)
   1683 len_axis = len(self.obj._get_axis(axis))
   1684 if key >= len_axis or key < -len_axis:
-> 1685     raise IndexError("single positional indexer is out-of-bounds")

IndexError: single positional indexer is out-of-bounds

it happens because the non existing classes from the reclassification table are remapped to 0, and 0 is not selfMasked in the resulting image, causing an extra class that was not in the LC_MAP_MATRIX.


text:
Tooltip with dialog.

Hi  team. I am a newbie android. I have a project use popup and dialog. On dialog have button click open popup. I have tried to do it, but i can't. I know android-target-tooltip from SO. I have tested it on my project but not working.
How can i do it with your library.
https://stackoverflow.com/questions/45138323/how-to-show-popup-window-over-dialog-android
Many thanks!
P/s: Sorry for my english not good!

Duplicate of https://github.com/sephiroth74/android-target-tooltip/issues/70 and https://github.com/sephiroth74/android-target-tooltip/issues/26


text:
Model.create() Values autocomplete is missing?

Am i missing something or is there no autocomplete on new Model({...}) ,Mode.create({...}) or Model.build({...})...
I added the columns to my Models as shown in the documentation, but when i go to create a Model and i start typing the Class members, they do not auto complete..
Shouldn't it work like this?

This guy did the sequelize tyescript integration manually and it seems like a lot of dirty work to make it work. If this is not something integrated with this package, would it be hard to implement so that we get auto complete?

It's a bit awkward, since a while ago sequelize-typescript offered said completions (0.6 I think), then they removed when Sequelize@5 added official Typescript support (but without completions) and now Sequelize@6 has full completions (using a hidden property called _attributes).
So currently, the maintainer of this library seems to be inactive, and you get better support of types sticking to the official (ironically).

I had the same issue, and I solved it by creating a type for my model maybe you need two one for TModelAttributes and another for TCreationAttributes, and then do like this (I forgot how it calls in typescript 😅). then the completion works fine.
type User = {
  id: number;
  username: string;
 //...
}
type CUser = Omit<User, 'id'>

class User extends Model<User, CUser> {
 @Column
 //..
}

@AbderrazzakB That's pretty much how sequelize@6 recommends it, and it properly fills the _attributes underlying property that feeds the autocompletion.
The only issue you'll run is when attempting to do relations, where the, for example, @BelongsToMany(() => Class) does not forward the _attributes information, and causes Typescript to throw a compilation error.
For now, I think the only solution is that, and cast to any to cover it up. For Example:
interface UserAttributes {
    id: string
    name: string
}

type UserCreationAttributes = Omit<UserAttributes, 'id'> // id is auto-generated.

@Table({ ... })
class User extends Model<UserAttributes, UserCreationAttributes> { // <-- we add the type info for Sequelize@6.
    @Column({ type: DataTypes.UUIDV4 })
    id!: string

    @Column({ type: DataTypes.TEXT, allowNull: true })
    name!: string | null

    // Here we cast to any so seq-typescript doesnt cry
    @BelongsToMany(() => Post as any, () => UserPost as any)
    readonly posts?: Array<Post>
}

You can check the types work in VSCode by doing
User['_attributes']['<autocomplete here>']

@AbderrazzakB That's pretty much how sequelize@6 recommends it, and it properly fills the _attributes underlying property that feeds the autocompletion.
The only issue you'll run is when attempting to do relations, where the, for example, @BelongsToMany(() => Class) does not forward the _attributes information, and causes Typescript to throw a compilation error.
For now, I think the only solution is that, and cast to any to cover it up. For Example:
interface UserAttributes {
    id: string
    name: string
}

type UserCreationAttributes = Omit<UserAttributes, 'id'> // id is auto-generated.

@Table({ ... })
class User extends Model<UserAttributes, UserCreationAttributes> { // <-- we add the type info for Sequelize@6.
    @Column({ type: DataTypes.UUIDV4 })
    id!: string

    @Column({ type: DataTypes.TEXT, allowNull: true })
    name!: string | null

    // Here we cast to any so seq-typescript doesnt cry
    @BelongsToMany(() => Post as any, () => UserPost as any)
    readonly posts?: Array<Post>
}

You can check the types work in VSCode by doing
User['_attributes']['<autocomplete here>']

No way that the lib that calls itself *-typescript does not provide proper types for most basic Model methods.
That's sad!

authors: AbderrazzakB CanTheAlmighty nandox5 nichita-pasecinic

repo: sequelize/sequelize-typescript


text:
CLOUD-48384 new sshj version fixes ecdsa fingerprint issue

@schfeca75
sshj 0.15.0-rc.1 is manually built and uploaded to maven.sequenceiq.com. It will be used until the 0.15.0 sshj release is out.

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1834/

authors: jenkins-sequenceiq martonsereg

repo: sequenceiq/cloudbreak


text:
add useStandardSql option

Added:

useLegacySql config parameter
wrapper method for use-standard-sql query

It works well on my machine.
I did not add example spec, because existing UsageExampleSpec can not run on my environment. Readme describes Click on APIS & AUTH on the left, then select Credentials. Click on "Create new Client ID.", but I can not find on https://console.developers.google.com/iam-admin/iam/project?project=<MY_PROJECT> ...
On my machine, I wrote spec with the builder fromServiceAccount and it runs well.

Thanks, looks good to me. Regarding the unit test, I will check later. Also, I will release a new version today.

As per the unit test issue, Google's admin pages have been changed a lot. I've updated the README.
I just released version 0.8 including your change. Thank you for your contribution 🎉

authors: katzchang seratch


text:
Missing Github release entry for v1.0.80

The v1.0.80 release does not yet have an entry in https://github.com/serde-rs/json/releases, just a tag in https://github.com/serde-rs/json/tags.
This causes Dependabot PRs to be missing the release notes for v1.0.80, as they source release notes from Github releases:

Fixed!

authors: dtolnay gthb

repo: serde-rs/json


text:
Issue: Overlapping Comments Not Functioning Properly

The issue I am facing is as follows:
When I select a portion of text and add a comment to it, such as hello, the comment is added successfully. However, when I try to add a comment to another portion of text that includes the previously added comment, like another hello content, the comment associated with the "hello" text is removed. It appears that the span tag enclosing the "hello" text is being removed when adding the comment to the newly selected text.
Steps to reproduce:

Let's say we have the paragraph below:
Bali is predominantly a Hindu country. Bali is known for its elaborate, traditional dancing. The dancing is inspired by Hindi beliefs. Most of the dancing portrays tales of good versus evil. Watching the dancing is a breathtaking experience. Lombok has some impressive points of interest – the majestic Gunung Rinjani is an active volcano. It is the second-highest peak in Indonesia. Art is a Balinese passion. Batik paintings and carved statues make popular souvenirs.
No I select the text traditional and add a comment, this comment will be visible.
Now I select the text   it's elaborate, traditional dancing and add a comment to it, this comment will be added too but commented added over the text traditional will be removed.

Possible solution:
Need to figure out how to persist the span on already commented text when the given commented text is inside another text where the comment needs to be added.
renderHTML({ HTMLAttributes }) {
    return [
      'span',
      mergeAttributes(this.options.HTMLAttributes, HTMLAttributes),
      0,
    ]
  }

You're looking for https://prosemirror.net/docs/ref/#model.MarkSpec.excludes


text:
Help with searching sql with Euclidean distance

I was going over your article on face detection and db here: https://sefiks.com/2021/02/06/deep-face-recognition-with-sql/
It's a great article but I'm having trouble getting the same results. I have a group photo of Angelina Jolie and I've created the face embeds using RetinaFace and stored them into the sqlite db like the article states:

with conn:
  cur = conn.cursor()

  instances = []
  img_name = "jolie_group.jpg"

  # Build the embeddings
  faces = DeepFace.represent(img_path=img_name, model_name="Facenet", detector_backend="retinaface")
  for index,face in enumerate(faces):

      embeddings = face["embedding"]
      print(f"length = {len(embeddings)}")
      print(embeddings)

      insert_statement = "INSERT INTO face_meta (ID, IMG_NAME, EMBEDDING) VALUES (?, ?, ?)"
      insert_args = (index, img_name, np.array(embeddings).tobytes())
      cur.execute(insert_statement, insert_args)

      for i, embedding in enumerate(embeddings):
         insert_statement = "INSERT INTO face_embeddings (FACE_ID, DIMENSION, VALUE) VALUES (?, ?, ?)"
         insert_args = (index, i, str(embedding))
         cur.execute(insert_statement, insert_args)

      conn.commit()

The result will be 9 rows into the face_meta table, and 1152 rows for the face_embeddings table (each face embed has 128 dimensions). So this is great! The only face it didn't detect was the one looking sideways, but that's fine.
I have a single picture of Jolie that I want to match against the DB, and I would like to get the image name and the related face embedding in the group photo.

Using The Server-Side Solution:
with conn:
  cur = conn.cursor()

  # compare
  target_img = "angie_single.jpg"
  target_represent = DeepFace.represent(img_path=target_img, model_name="Facenet", detector_backend="retinaface")[0]
  target_embedding = target_represent["embedding"]
  target_facial_area = target_represent["facial_area"]

  target_statement = ""
  for i, value in enumerate(target_embedding):
      target_statement += 'select %d as dimension, %s as value' % (i, str(value)) #sqlite

      if i < len(target_embedding) - 1:
          target_statement += ' union all '

  select_statement = f'''
    select *
    from (
        select img_name, sum(subtract_dims) as distance_squared
        from (
            select img_name, (source - target) * (source - target) as subtract_dims
            from (
                select meta.img_name, emb.value as source, target.value as target
                from face_meta meta left join face_embeddings emb
                on meta.id = emb.face_id
                left join (
                    {target_statement}
                ) target
                on emb.dimension = target.dimension
            )
        )
        group by img_name
    )
    where distance_squared < 100
    order by distance_squared asc
'''

  results = cur.execute(select_statement)
  instances = []

  for result in results:
      print(result)
      img_name = result[0]
      distance_squared = result[1]

      instance = []
      instance.append(img_name)
      instance.append(math.sqrt(distance_squared))
      instances.append(instance)

  result_df = pd.DataFrame(instances, columns = ['img_name', 'distance'])

  print(result_df)

However this returns nothing:
Empty DataFrame
Columns: [img_name, distance]
Index: []

I've tried this with other single photos of Angelina Jolie but it's unable to find any matches. I think I understand the theory going on, using Euclidean distance calculation to find nearest matches and having a cutoff threshold, but looking at the code I'm unsure where it went wrong.
Could you help me with what I'm missing?

Would you please call deepface's verify function and send single photo of angelina as img1_path and group photo as img2_path? This will compare the most similar one in the group photo with angelina's single photo. Even if the verified key is false, you can use distance value to use a tuned threshold.
Finally, none of ml models is perfect. Misclassification for an instance is not a problem with respect to the model.

Hi Serengil,
I was able to verify the face:
{'verified': True, 'distance': 0.22807926891881514, 'threshold': 0.4, 'model': 'Facenet', 'detector_backend': 'retinaface', 'similarity_metric': 'cosine', 'facial_areas': {'img1': {'x': 241, 'y': 76, 'w': 195, 'h': 283, 'left_eye': (386, 192), 'right_eye': (294, 193)}, 'img2': {'x': 558, 'y': 34, 'w': 63, 'h': 83, 'left_eye': (604, 67), 'right_eye': (575, 71)}}, 'time': 10.1}

It looks like it does recognize Angelina Jolie here ^^
I also tried the Client Side Solution, and curiously enough that returned a match:
          img_name                                          embedding                                             target  distance
0  angie_group.jpg  [0.10850527882575989, 0.5568691492080688, 0.81...  [-0.6434235572814941, 0.5883399248123169, 0.29...  8.263514

Do you know if the Server Side Solution needs an update to the code? I think maybe the sql there isn't working since these other solutions are working fine.

authors: newbiemate serengil

repo: serengil/deepface


text:
Error on Calculate total row count

After a query execution I press the button Calculate total row count and receive an error
"Error executing row count"
(Yes, the query is big and complex :)
log.txt

Hi @offstate,
I tested it here and had not problem on it. I think may your complex query is breaking some kind of parser of dbeaver.
Could you post this query ?

WITH
            rival as (
                SELECT o.product_id as id,p.rgroup_id, pr.id prov_id, prc.price, prc.ts::date
                from rival.price prc
                join rival.offer o on prc.offer_id=o.id
                join rival.provider pr on pr.id=prc.provider_id
                left join product.product_summary p on p.id=o.product_id
                where prc.provider_id in (1,4) --and p.rgroup_id in (2620)
            ),
            our as (
                select gp.id,p.rgroup_id, 0 prov_id, pr.price, null::date as ts
                from goods.product gp
                join rival.price_mx pr on gp.id=pr.id
                left join product.product_summary p on p.id=gp.id
                --where  p.rgroup_id in (2620)
            ),
            prods as (
                select * from rival
                union all
                select * from our
            ),
            oems AS (
                select distinct pr.id, p.rgroup_id, case when genuine is null then null
                        else (array_remove(r.rel, pr.id))[1] end rel_id, b.id as brand_id_gen,prov_id, price, pr.ts, null as note
                FROM prods pr
                left join product.product_rel r on r.rel @> array[pr.id]  and r.rate>=3 --(in_rate is null or r.rate>=in_rate)
                  left JOIN product.product_summary p ON p.id != pr.id and  p.id=any(r.rel) and p.rgroup_id=pr.rgroup_id
                  left JOIN product.brand b ON b.id = p.brand_id AND genuine = TRUE
            ),
            orv as (
                select  o1.id,array_agg(o1.rel_id) rel_ids, max(o1.rgroup_id) rgroup_id,max(o1.brand_id_gen) brand_id_gen
                from (select id,rel_id, rgroup_id,brand_id_gen from oems where prov_id>0 and rel_id is not null) o1
                left join (select  id,rel_id, rgroup_id from oems where prov_id=0) o2 on o1.rel_id=o2.rel_id
                where o2.id is null
                group by o1.id
            ),
            oems2 as (
                select distinct our.id, our.rgroup_id, unnest(orv.rel_ids),orv.brand_id_gen, our.prov_id, our.price, our.ts, 'generated'::text
                from orv
                join product.product_rel r on r.rel @>array[orv.id] and rate>=3
                join our on our.id=any(r.rel) and our.id != orv.id and our.rgroup_id=orv.rgroup_id
            ),
            oems3 as (
                    select * from oems where rel_id is not null
                    union
                    select * from oems2
            ),
            uq_oems as (
                select rel_id
                from (select distinct prov_id, rel_id from oems3) t
                group by rel_id
                having count(rel_id)=1
            ),
            totals as (
                select rgroup_id,brand_id_gen, count(distinct o.id) as co_cross,
                       count(distinct o.rel_id) as co_gen
                from oems3 o
                group by rgroup_id,brand_id_gen
            )
select  1 some_columns
from oems3 o
    JOIN product.product_summary ps on ps.id=o.rel_id
    JOIN product.product_summary psc on psc.id=o.id
    left join uq_oems uq on o.rel_id=uq.rel_id
    join totals tot on tot.rgroup_id=o.rgroup_id and tot.brand_id_gen=o.brand_id_gen
group by ps.rgroup_name, ps.brand_name,ps.brand_id, ps.rgroup_id, prov_id,tot.co_gen,tot.co_cross
order by ps.rgroup_id, ps.brand_id

Wow.
DBeaver uses JSQLParser for queries modification. This library doesn't support some database-specific features.
I'm afraid I can't fix this issue right now.

You can
select count(*) from ( <origin_query>) t
without any parsing

Yep @offstate,
I forgot to post this snippet to make a simple count over any sql. I'm not sure about of all others databases supported, but this one will work as expected.

Agreed. We'll use nested select query if direct query transformation will fail (not that some databases do not support or limit functionality of nested selects - so we can't use this approach as default one).

I got strange result on a simple query. After I fetched all rows, row count field show 3117 rows, but after I pressed the refresh button it show 65!

I got an error for the following query
select *
from dlvr2.route
where info ?| array['quick','optimal','cheap']

log.txt

@offstate Was this resolved in 4.2.5? In any case you can see actual COUNT query in query manager view. Is it correct?
In regards to query wrapping (which is now used by default by DBeaver).
It doesn't work in SQL Server/Sybase if original query has unnamed columns (constants and expressions without explicit column name). For instance SELECT 123.

I can see the count query and it is correct, but DBeaver cannot execute it.

First I execute the original query next I pressed the "Calculate ..." button an got the error and then I copied the COUNT query from the log and it done successfully.

This is because of question mark in the query. DBeaver thinks it is  a parameter binding.
You can disable anonymous parameters at all or redefine the mark in SQL Editor preferences:

The option "Anonymois SQL parameters" is not checked and when I execute the query, parameter request window doesn't appear.
Moreover, the error occurs regardless of which character I set there.

Interesting.
I can't reproduce this.
What is your database and client driver?

Postgres 9.5, debian
client xubuntu

authors: carlosspohr offstate serge-rider

repo: serge-rider/dbeaver


text:
Add option to show views in ER-diagram

Like already mentioned in #934 it is not possible to see views in ER-diagram because they don't have any relationships and so they won't make much sense in a ER-diagram. I just have a need for this now because I'm using ER-diagram also to get a overview of DB (not only for relations) and it would make it easier to get a overview over information_schema. Furthermore I'm in need to show a complete visual model of my database to someone. This is why I need also my views included.

Already implemented. Will be in 3.8

authors: GiantCrocodile serge-rider


text:
Pythran does not recognise fft2

%%pythran
#pythran export normalized_correlation(float64[:,:],float64[:,:],float64)
#pythran export normalized_correlation(float32[:,:],float32[:,:],float32)
import numpy as np
def normalized_correlation(im1,im2):
    im1_fft = np.fft.fft2(im1)
    im2_fft = np.fft.fft2(im2)
    im_mult = np.multiply(im1_fft,np.conj(im2_fft))
    return np.fft.ifft2(im_mult)
Gives the error

PythranSyntaxError: Attribute 'fft2' unknown

Indeed, np.fft.ifft2 has not been implemented at this point... rfft and irfft are though...

@jeanlaroche thanks. Can I use general complex fft for 1d arrays?

So far, pythran only has np.fft.rfft and np.fft.irfft, i.e. 1D ffts with real inputs.

@jeanlaroche I'll happily review your patch for complex number support and/or 2D support :-)  You did a great job with irfft and rfft

@jeanlaroche I'll happily review your patch for complex number support and/or 2D support :-) You did a great job with irfft and rfft

ah ah ah ah! Flattery will get you nowhere! :D

Numpy RFFT is actually good enough for now :)
I am attaching two working code snippets for working with 1D FFT in Pythran, which I have been using in my own project in the past two-three days
#pythran export pythran_fft1D(float32[])
#pythran export pythran_fft1D(float64[])
#pythran export pythran_fft1D(complex64[])
#pythran export pythran_fft1D(complex128[])
import numpy as np
def pythran_fft1D(input_array):
    number_points = np.int64(len(input_array))
    number_rfft_even = np.int64((0.5*number_points) + 1)
    number_rfft_odd = np.int64((number_points + 1)/2)
    if (number_points % 2 == 0):
        number_rfft = number_rfft_even
    else:
        number_rfft = number_rfft_odd
    real_part = np.real(input_array)
    imag_part = np.imag(input_array)
    real_rfft = np.fft.rfft(real_part)
    imag_rfft = np.fft.rfft(imag_part)
    output_fft_real = np.zeros(number_points)
    output_fft_imag = np.zeros(number_points)
    output_fft_real[0:number_rfft] = real_rfft
    output_fft_imag[0:number_rfft] = imag_rfft
    conj_real_rfft = np.conjugate(real_rfft)
    conj_imag_rfft = np.conjugate(imag_rfft)
    for ii in range(number_rfft,number_points):
        output_fft_real[ii] = conj_real_rfft[(number_points - (ii))]
        output_fft_imag[ii] = conj_imag_rfft[(number_points - (ii))]
    output_fft = output_fft_real + ((1j)*output_fft_imag)
    return output_fft

and
#pythran export pythran_ifft1D(float32[])
#pythran export pythran_ifft1D(float64[])
#pythran export pythran_ifft1D(complex64[])
#pythran export pythran_ifft1D(complex128[])
import numpy as np
def pythran_ifft1D(input_array):
    number_points = np.int64(len(input_array))
    conj_array = np.conjugate(input_array)
    number_rfft_even = np.int64((0.5*number_points) + 1)
    number_rfft_odd = np.int64((number_points + 1)/2)
    if (number_points % 2 == 0):
        number_rfft = number_rfft_even
    else:
        number_rfft = number_rfft_odd
    real_part = np.real(conj_array)
    imag_part = np.imag(conj_array)
    real_rfft = np.fft.rfft(real_part)
    imag_rfft = np.fft.rfft(imag_part)
    output_fft_real = np.zeros(number_points)
    output_fft_imag = np.zeros(number_points)
    output_fft_real[0:number_rfft] = real_rfft
    output_fft_imag[0:number_rfft] = imag_rfft
    conj_real_rfft = np.conjugate(real_rfft)
    conj_imag_rfft = np.conjugate(imag_rfft)
    for ii in range(number_rfft,number_points):
        output_fft_real[ii] = conj_real_rfft[(number_points - (ii))]
        output_fft_imag[ii] = conj_imag_rfft[(number_points - (ii))]
    first_fft = output_fft_real + ((1j)*output_fft_imag)
    second_conj = np.conjugate(first_fft)
    output_ifft = second_conj/number_points
    return output_ifft

Both work for real and complex inputs with identical results and times to numpy.fft.fft. If you think it's a good idea I can add the 2D support too and submit it.

Both work for real and complex inputs with identical results and times to
numpy.fft.fft. If you think it's a good idea I can add the 2D support too and
submit it.

This is a good idea! Please submit, even in Python form as a followup
of this issue

This should be fixed with #1134, at least it now compiles o/

for fft2, normally performing two FFT works well, but it is efficient on big data, that's why there are a lot of hacks in FFTW in order to deal differently with the different sizes of matrix or vectors.
FFT_image=: fft(fft(Image).T).T

authors: dxm447 jeanlaroche jeffwitz serge-sans-paille

repo: serge-sans-paille/pythran


text:
Migrate Tregex

http://www-nlp.stanford.edu/software/tregex.shtml

good idea for c# sample

authors: Davtomas sergey-tihon


text:
Cannot add item to PublishQueue

FakeDb doesn't implement working with PublishQueue.
Calling PublishManager.AddToPublishQueue do just nothing (FakeDb provides just empty implementation). The same is for PublishManager.GetPublishQueue.
Can you implement working with PublishQueue?
I was trying to implement my own DataProvider which inherited from FakeDataProvider but I was unable to hook it to sitecore (datProviders sections in App.config is ignored and FakeDataProvider is always used).
Found in version 1.2.2.
Thanks
Petr

I think you will hit a larger wall with testing your own Data Provider with FakeDb until we migrate to command-less approach to faking. Some of it is explained in #138 (at the bottom of the thread). FakeDb right now intercepts at the database command level so not many things will reach the data provider chain as you would normally expect in a the real Sitecore instance. @sergeyshushlyapin has been working on a Data Provider based implementation that will likely play nicely with the chaining that you would expect out of the box but you will have to be careful not to chain yourself in front of FakeDB's one.
That said, can you please provide more details about your publishing queue scenario? What exactly are you trying to test with FakeDb that requires the queue working?

We have a quite large sitecore deployment and have one let's say master sitecore instance and several regional sitecore instances. On master instance we regularly read changed items from PublishQueue and we push these items to regional instances. If push fails then item is updated in PublishQueue to re-try it in the next round.
We call just PublishManager.AddToPublishQueue and PublishManager.GetPublishQueue.
I was able to make it work with following hack:
_db = new Db();
_sourceDb = _db.Database;

var dataProvidersField = _sourceDb.GetType().GetField("_dataProviders", BindingFlags.Instance | BindingFlags.NonPublic);
var dataProvidersCollection = (DataProviderCollection)dataProvidersField.GetValue(_sourceDb);
dataProvidersCollection[0] = new OriFakeDataProvider(((FakeDataProvider)dataProvidersCollection[0]).DataStorage);

public class OriFakeDataProvider : FakeDataProvider
{
	readonly HashSet<ID> _publishingQueue = new HashSet<ID>();

	public OriFakeDataProvider() { }

	public OriFakeDataProvider(DataStorage dataStorage) : base(dataStorage) { }

	public override bool AddToPublishQueue(ID itemID, string action, DateTime date, string language, CallContext context)
	{
		_publishingQueue.Add(itemID);
		return true;
	}

	public override IDList GetPublishQueue(DateTime from, DateTime to, CallContext context)
	{
		return IDList.Build(_publishingQueue.ToArray());
	}
}

Oh, I see now. So you really just need the queue methods to allow to add and get. That's easy :) I am sure it will soon be on the NuGet feed. Stay tuned!

Great!
If it would also respect date from and to it would be great.

Is HashSet suitable for that purpose? Shouldn't it be possible to add the same itemId multiple times?

HashSet is not good for implementation. Sitecore can store same itemId to PublishingQueue

Now available as v1.3.0.

Thanks for an update. I tried v1.3.0 today and there is one small bug in GetPublishQueue method. When the PublishQueue is empty (AddToPublishQueue was not called yet) it throws
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Where[TSource](IEnumerable1 source, Func2 predicate)
at Sitecore.FakeDb.Data.DataProviders.FakeDataProvider.GetPublishQueue(DateTime from, DateTime to, CallContext context)
this.publishQueue.Value is not initialized yet.
Please fix it.
Thanks

Thanks @petrformanek. Fixed in v1.3.1.

authors: petrformanek pveller sergeyshushlyapin


text:
Add Hyper to terminal section

Project URL
https://github.com/zeit/hyper
Category
Terminal
Description
Add hyper to terminal section
Why it should be included to Awesome macOS open source applications  (optional)
Because its awesome and fits right in
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Appropriate language icon(s) added if applicable
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

@christophwolff Thanks for your contribution! :heart:

authors: christophwolff serhii-londar

repo: serhii-londar/open-source-mac-os-apps


text:
Sinks.MSSqlServer bug with SQL Server port on connection string

Bug Report
When Serilog try to write into the DB, SQL Server get me the "login failed" error although login data are the same used by the application.
I have "solved" the problem deleting the port number (1433) from the connectionstring.
I don't have SQL Server instances that not using default port so I can't check if this problem occours using other port numbers.
Names and versions of all Serilog packages used in the project:

Serilog: 3.0.1
Serilog.Sinks.MSSqlServer: 6.3.0

Serilog.Enrichers.EnrichedProperties: 1.0.63
Serilog.Enrichers.Environment: 2.2.0
Serilog.Enrichers.Process: 2.0.2
Serilog.Enrichers.Thread: 3.1.0
Serilog.Exceptions: 8.4.0
Serilog.Extensions.Logging: 7.0.0
Serilog.Settings.Configuration: 7.0.0
Serilog.Sinks.Console: 4.1.0
Serilog.Sinks.EventLog: 3.1.0
Serilog.Sinks.File: 5.0.0

Target framework and operating system: .NET CORE 6
appsettings.json
{   "ConnectionStrings": {     "SqlServer": "Server=127.0.0.1,1433;Database=MyDb;User ID=MyUser;Password=MyPass;MultipleActiveResultSets=true;Max Pool Size=500;Persist Security Info=True;Encrypt=False;TrustServerCertificate=False;"   },   "AppSettings": {   },   "Logging": {     "LogLevel": {       "Default": "Debug",       "Microsoft": "Warning",       "Microsoft.Hosting.Lifetime": "Information"     }   },   "Serilog": {     "MinimumLevel": "Debug",     "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId", "WithExceptionDetails" ],     "WriteTo": [       {         "Name": "MSSqlServer",         "Args": {           "connectionString": "Server=127.0.0.1,1433;Database=MyDb;User ID=MyUser;Password=MyPass;MultipleActiveResultSets=true;Max Pool Size=500;Persist Security Info=True;Encrypt=False;TrustServerCertificate=False;"           "restrictedToMinimumLevel": "Information",           "sinkOptionsSection": {             "tableName": "Serilog",             "schemaName": "dbo",             "autoCreateSqlTable": false,             "batchPostingLimit": 100           },           "columnOptionsSection": {             "removeStandardColumns": [ "MessageTemplate" ],             "additionalColumns": [               {                 "ColumnName": "ApplicationName",                 "DataType": "nvarchar",                 "DataLength": 200,                 "AllowNull": true               }             ]           }         }       }     ],     "Properties": {       "ApplicationName": "SampleName"     }   },   "AllowedHosts": "*" }
Program.cs [Main]

Configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddEnvironmentVariables()
.Build();
Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(Configuration)
.Enrich.WithProperty("ApplicationName", AssemblyName)
.CreateLogger();

Hello @Valerio81!
I tested with the SQL Server on my local machine using the program in samples/WorkerServiceDemo and had a similar issue.
By default the program uses the connection string (appsettings.json).
Server=localhost;Database=LogTest;Integrated Security=SSPI;Encrypt=False;
This works fine.
I checked on which port my SQL Server was listening and found out it is 1434.

With the changed connection string
Server=localhost,1434;Database=LogTest;Integrated Security=SSPI;Encrypt=False;
an error occurred. The following exception was thrown.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
Then I changed the connection string to the following but still received the same error.
Server=127.0.0.1;Database=LogTest;Integrated Security=SSPI;Encrypt=False;
Then I tried the same with the SQLCMD commandline utility with the same result.

As you can see, SQLCMD also can connect when I specify only localhost but not if I specify localhost,1434.
Therefore I tink this effect is related to the configuration of my local SQL Server instance and not to the code of the MSSQL sink.
Here is a SQL Sever connection troubleshooting guide from Microsoft which mentions this error.
https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection#step-2-verify-that-the-sql-server-browser-service-is-running
I'm closing this issue since it is most definitly not a bug in out code.

repo: serilog-mssql/serilog-sinks-mssqlserver


text:
exclude deleted elemets from sorting

eg. for this course: https://en.serlo.org/43357/welcome
there are several deleted course pages on the sorting page: https://en.serlo.org/entity/link/order/43238/link
imo they don't have to be there

General information:

You get to the specified page by using the settings icon in any course and going to Whole Course > Order children where you can change the order of the children (i.e. course pages in this case)

To approach this:

The template for the sorting page is defined in https://github.com/serlo-org/athene2/blob/master/src/module/Ui/templates/entity/link/order.twig (i.e. in src/module/Ui/templates and then mostly following the stuff in the url ;))
Currently, we are iterating over all children, https://github.com/serlo-org/athene2/blob/master/src/module/Ui/templates/entity/link/order.twig#L20
We can either filter the children in the templates directly, or (imho better) in its controller: https://github.com/serlo-org/athene2/blob/master/src/module/Entity/src/Entity/Controller/LinkController.php#L83.

Closed by #752

authors: SimonKoehl inyono


text:
Draft: Add cache worker as cronjob

After adding the cache worker service at the API server,
resolves #3

Depends on https://github.com/serlo/api.serlo.org/issues/188

repo: serlo/infrastructure-modules-api


text:
Unable to detect back camera

Tested on Samsung A3(2016), it is now unable to detect back camera. It was working just fine 2 weeks ago but, kapoot now. Only managed to detect front facing camera. Downloaded and tested with the updated files and still the same results.
Send help. SOS.

Unfortunately, I don't have a Samsung A3 at hand. Could you please try to connect your phone to the Chrome Developer Tools, open the console and execute the following code through the console on your phone:
navigator.mediaDevices.enumerateDevices()
.then(devices => devices.map(device => device.kind))
.then(kind => console.log(kind))
.catch(err => console.error(err))

Make sure you are on a https site (e.g.: https://www.google.com)
My output looks like this:
["audioinput", "videoinput", "videoinput", "audiooutput"]

Which version of Chrome do you have installed?

Thank you for responding.
I have no idea what sorcery is this because it is working again. I did not do anything so maybe it is unstable? I am using Chrome 57.
On another note, it is not able to default to using the back camera despite the facingmode being set to environment.

Following the advice here fixed the issue for me. Basically you need to add the WebRTC adapter either using bower or
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>

authors: annaisabelleang bchr02 serratus

repo: serratus/quaggaJS


text:
🛑 [KaKi87] Chat (Matrix) is down

In efa5adf, [KaKi87] Chat (Matrix) (https://federationtester.matrix.org/api/report?server_name=chat.kaki87.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: [KaKi87] Chat (Matrix) is back up in b6d61b0 after 31 minutes.

repo: server-KaTys/status


text:
LiveLambda: Large WebSocket response throw IllegalLocationConstraintException in new regions

S3 is used to process large WebSocket responses (e.g. in ws.ts), but the region option is not explicitly set const s3 = new S3();.
Therefore IllegalLocationConstraintException was thrown, as that is required for those new regions.
Please add an option to allow setting the region option, or pass the region of the stack to the handler.

Hi @TerenzChan, I'm taking a look at this.

const s3 = new S3();
Are you referencing the stub function here https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/assets/stub/index.js#L17?

Btw which region did you try with?

Hi @TerenzChan, I'm taking a look at this.

const s3 = new S3();
Are you referencing the stub function here https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/assets/stub/index.js#L17?

Seems like that will exist in those files that used S3.
I found it in the stub function you posted and
https://github.com/serverless-stack/serverless-stack/blob/master/packages/core/src/runtime/ws.ts#L7

Btw which region did you try with?

I used ap-east-1.
It looks like the global endpoint of S3 will be used if the region option is not set. And the request will not be redirected to the correct region automatically for those buckets in opt-in regions, which were launched after March 20, 2019.

Hi @TerenzChan, this is fixed in v0.66.1. Give it a try and let me know if it works for you.

Hi @fwang, It works now. Thanks!

authors: TerenzChan fwang

repo: serverless-stack/serverless-stack


text:
feat: postgis extension

Fix: https://github.com/serverpod/serverpod/issues/2439

[ ] Base query set to accommodate common scenarios (method name in implementation might be different):

[ ] Points ordered by distance to input. (This, together with limit should give us k-nearest points)
[ ] Points strictly within a certain distance.
[ ] Points that intersect geometry.

[ ] Index creation —To ensure fast querying, a smart indexing strategy, possibly involving spatial indexes, might be required.
[ ] Migration support to add and remove columns.
[ ] Serialization/Deserialization of data types to support database integration and communication with the client.
[ ] Compatability with unsafe queries to support all unsupported scenarios.
[ ] Complete documentation of the feature.
[ ] Tests for all additions associated with the feature.

Pre-launch Checklist

[x] I read the Contribute page and followed the process outlined there for submitting PRs.
[x] This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
[x] I read and followed the Dart Style Guide and formatted the code with dart format.
[x] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
[ ] I added new tests to check the change I am making.
[ ] All existing and new tests are passing.
[ ] Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

@SandPod I just add all the code for the column, I'm a bit stuck on the YAML support integration.
When you said "implement the validation" inside this file:
https://github.com/serverpod/serverpod/blob/main/tools/serverpod_cli/lib/src/analyzer/models/yaml_definitions/class_yaml_definition.dart
What do I need to add? Because I saw the "value" of the field is handled here:
https://github.com/serverpod/serverpod/blob/9f9f04fad5c628b148f4d02ad289ed079f3fc886/tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart#L1156
But then:
https://github.com/serverpod/serverpod/blob/9f9f04fad5c628b148f4d02ad289ed079f3fc886/tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart#L1178
is null. So I got an error message.
The parsedModels contain GeographyPoint not geographyPoint so I suppose I need to add somewhere the geographyPoint to pass the restriction? (I'm stuck here).
Should I need to create a new:
ValidateNode(
   Keyword.geographyPoint,
),

Inside the nested keyword fields?

@Kiruel Maybe it helps if I expand a bit on how our analyzer works.
Basically, three methods are used in the model_analyzer.dart file. First we run a best effort parsing of the file by calling the extractModelDefinition(...) method, this tries to create a SerializableModelDefinition out of the passed in yaml file.
After that we try and resolve any dependencies that might exist between models. For example, you have two models, one of which contains a field and the other a model. This is done in the resolveModelDependencies(...) method.
After that, we run our validation, which is done by calling the validateYamlDefinition(...) method.
These method needs to be run in this specific order and that is orchestrated in the stateful_analyzer.dart file. An example of this can be seen by inspecting the validateAll(...) method in that file.
So, in order for the type validation to work, you first need to make sure that the model parser can parse the new field and that the type is recognized and differentiated from any possible user-defined class.
The place that you liked for _isValidType uses a whitelist for the dart types that we support that is defined here: https://github.com/serverpod/serverpod/blob/9f9f04fad5c628b148f4d02ad289ed079f3fc886/tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart#L1135
I'm guessing you are getting stuck on the validation because the new type is not part of the whitelist.
Also, we have fantastic unit test coverage for this part of the code. If you check the tests we have created it should be possible TDD your way through the validation code.

Some progress, I have passed the validation problem, thanks to the white list, and then I successfully created the GeographyPoint in the protocol.dart but now I'm a bit blocked on the dartType of GeographyPoint. Like you can see the dart file generated:
_i2.ColumnDefinition(
          name: 'point',
          columnType: _i2.ColumnType.json,
          isNullable: false,
          dartType: 'protocol:GeographyPoint',
        ),

But should be _i2.ColumnType.geographyPoint ? Right? I don't see where I need to make the change in the code. If you can tell me where I can find the tests concern this part it would help.
More context:
The code generated:
factory Channel({
    int? id,
    required String name,
    required String channel,
    required _i2.GeographyPoint point,
  }) = _ChannelImpl;

  factory Channel.fromJson(Map<String, dynamic> jsonSerialization) {
    return Channel(
      id: jsonSerialization['id'] as int?,
      name: jsonSerialization['name'] as String,
      channel: jsonSerialization['channel'] as String,
      point: _i2.GeographyPoint.fromJson(
          (jsonSerialization['point'] as Map<String, dynamic>)),
    );
  }

The errors:
 │     Undefined class 'GeographyPoint'. dart (undefined_class) [29, 14]
 │      Try changing the name to the name of an existing class, or creating a class with the name 'GeographyPoint'.

 │     The name 'GeographyPoint' is being referenced through the prefix '_i2', but it isn't defined in any of the libraries imported using that prefix. dart (undefined_prefixed_name) [37, 18]
 │      Try correcting the prefix or importing the library that defines 'GeographyPoint'.

Happy to hear the progress!
There are three issues here that are connected to GeographyPoint being defined as a Serverpod model. Having it as a Serverpod model might have some benefits (especially when it comes to serialization) but there is unfortunately no way to get around all the problems.
I would recommend defining the GeographyPoint as a concrete class that can be imported directly to both the Server and the Client by default. Such as the Uuid or bytedata that are exported from the Serverpod serialization package: packages/serverpod_serialization/lib/serverpod_serialization.dart.
But for the sake of sharing knowledge, I will explain how to get around 2 of the three issues.
An unrelated issue I noticed is that that if you look closely on the ColumnDefinition you can see that the columnType is a json while it should be your newly defined geographyPoint. This is something you that will have to be fixed.
Getting around 2 out of 3 issues
First, you need to change the definition in the channel.spy.yaml so that we reference the GeographyPoint defined in the Serverpod package:
### Represents a chat channel.
class: Channel
table: channel
fields:
  ### The name of the channel.
  name: String

  ### The id of the channel.
  channel: String

  point: serverpod:GeographyPoint

Next we need to export this model in the server package, we are very restrictive with what we export here, but you will need to add export 'package:serverpod/src/generated/database/geography_point.dart'; to the packages/serverpod/lib/serverpod.dart file.
This solves it on the Server side. But now we run into a real problem.
The generated client for the Serverpod package is actually the Serverpod service client package. And these are not connected with the import that is generated.
If you only allow the point as a server side field all should be green now, but you won't be able to send the points to the client.

authors: Kiruel SandPod

repo: serverpod/serverpod


text:
🛑 geray.serverssh.net is down

In 6c9cbd9, geray.serverssh.net (http://geray.serverssh.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: geray.serverssh.net is back up in be1f58e.

repo: serversshnet/server-status


text:
🛑 ge1-7.ipservers.xyz is down

In 339fd9e, ge1-7.ipservers.xyz (ge1-7.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ge1-7.ipservers.xyz is back up in 26d9229.

repo: serversshnet/uptime


text:
🛑 id1-7.ipservers.xyz is down

In 95143b5, id1-7.ipservers.xyz (id1-7.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id1-7.ipservers.xyz is back up in 3722520 after 16 hours, 29 minutes.


text:
No warning if incorrect yaml is applied for Traffic Split

Describe the proposal

For traffic split, if weights are distributed in an improper way like all weights don't sum up to 100 or all weights sum > 100. We don't get an error message that yaml is incorrect.
Scope

[ ] New specification
[ ] Traffic Access Control
[ ] Traffic Specs
[ ] Traffic Metrics
[X] Traffic Split

Possible use cases

apply the yaml with irregular weights like 1000, -200 etc. the yaml will be applied successfully without error. This should throw an error message.

Hi, @mudit-01. This was discussed on the SMI community call today and the consensus was that this proposal is outside the scope of this spec. Validation beyond that enforced by the OpenAPI schema in the TrafficSplit CRD is left to those implmenting this spec.

if weights are distributed in an improper way like all weights don't sum up to 100 or all weights sum > 100

The weights are not percentages, so there should be no issue if the weights do not add up to 100.

repo: servicemeshinterface/smi-spec


text:
[1.12.2] The return of Feathergeddon - Baby Chickens spewing feathers!

Issue Description:
Hatching a baby chicken causes them to spew feathers at an insane rate leading to feathers everywhere.  This bug has happened before and gone away on it's own leading me to suspect a mod interaction gone wrong.
Steps to reproduce (important):

Hatch baby chicken
Watch Feathers spawn like mad.
Scratch head and setup void pipes...
...

There have been many reports of this and it would be helpful if someone knew where the old issue where, to see if there is a correlation.  Would love to know if others have seen this.  This issue was not there in previous versions of our mod collections (not a public pack) but just started recently.  Big things that for some reason my gut tells me might be involved:  We added Buildcraft, which is what we had in 1.10 when we last saw this issue.  This is just my gut theory, so, no real evidence.  I will do some testing and report back.

Affected Versions (Do not use "latest"):

Chickens: 6.0.3
More Chickens: 3.1.0
Hatchery: 2.1.2
Roost: 1.2.0
Minecraft: 1.12.2
Forge: 2611

Initial testing of removing buildcraft:  Newly hatched baby chickens did not spew feathers when Buildcraft was not present.  Putting Buildcraft back into the mix caused then newly hatched baby chickens to spew feathers.

More Testing:  Using the color eggs and throwing them to get a baby chicken produces a baby chicken that does not spew feathers.
Using the Hatchery nest to hatch a chicken produces a baby chicken that does not spew feathers.
Both of the above chickens are Lapis Blue Chickens with the 1,1,1 stats.  Bread chickens with stats or other chickens seem to hatch spewing feathers however.

how fast do they spew feathers.. at what rate?

Very fast... They are pouring out. We have an advanced item collector setup and a trash can but if we have multie babies it will overload the system

#89
Is botania installed?

Or quark

	public ItemStack createDropStack() {
		Item item = rand.nextInt(3) > 0 ? Items.EGG : Items.FEATHER;
		return new ItemStack(item, 1);``` https://github.com/timrwood/roost/blob/5db487ae5c0cc54e78ef7246c45ac570f0bb6901/src/main/java/com/timwoodcreates/roost/data/DataChickenVanilla.java

Both botania and quark have that option turned off.   Always have.

Actually botania removed that from the 1.12.2 version a long time ago.

This might be preliminary, but Terraqueous has an option for feather drops from chickens that we turned off.  Feathers seem to have stopped spewing.  I'm reporting this to them to see if they have something in their code that is causing issues.

Hope maybe we can narrow it down with this. @MokahTGS Thanks for doing some heavy testing with this.

We have been running all night with no feather spewing.   This might be it.   It would be nice if someone else could confirm this with another setup.

authors: GenDeathrow MokahTGS tyler489

repo: setycz/ChickensMod


text:
Portable version of MPM

Could you make a portable version of MPM that is pure C/C++ without linking to an FFT library?  Maybe using KissFFT (https://sourceforge.net/projects/kissfft/files/kissfft/v1_3_0), or using time-domain based autocorrelation instead of FFT (not sure which approach would execute the autocorrelation faster)?

https://github.com/sevagh/pitch-detection/blob/master/src/mpm.cpp#L55
Time-domain autocorrelation is slower than using KissFFT but it's the easiest solution for now. I don't have the desire to play with Yet Another FFT Library.

authors: doffen sevagh

repo: sevagh/pitch-detection


text:
Error: connect EHOSTUNREACH

Hello,
thanks for that plugin, it is working fine with my KD65-AF8 in the living room.
But with the older KD in the bedroom I am getting that log entries every few seconds when it is powered off, although I have configured it as "old" device correctly (I think). When it's powered on, everything is fine.
Is there any way how I may fix that?
Both are connected via WiFi.
[6/25/2023, 10:25:30 AM] [BraviaTVOS] Error: Error: connect EHOSTUNREACH 192.168.1.30:80
    at ServiceProtocol.describe (/usr/lib/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/service.js:68:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at /usr/lib/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/bravia.js:257:22
    at async Promise.all (index 0)
    at Bravia.describe (/usr/lib/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/bravia.js:255:27)
    at Bravia.exec (/usr/lib/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/bravia.js:289:28)
    at Handler.getTelevisionState (/usr/lib/node_modules/homebridge-bravia-tvos/src/accessories/accessory.handler.js:18:24)
    at Handler.poll (/usr/lib/node_modules/homebridge-bravia-tvos/src/accessories/accessory.handler.js:559:7)

            "name": "BraviaTVOS",
            "platform": "BraviaOSPlatform",
            "debug": true,
            "warn": true,
            "error": true,
            "extendedError": true,
            "tvs": [
                {
                    "active": true,
                    "name": "Wohnzimmer TV",
                    "ip": "192.168.1.21",
                    "port": 80,
                    "psk": "03145154",
                    "manufacturer": "Sony",
                    "model": "Bravia",
                    "serialNumber": "00000000",
                    "refreshInputs": false,
                    "wol": false,
                    "oldModel": false,
                    "polling": 10,
                    "sheduledRefresh": 12,
                    "inputs": [
                        {
                            "name": "Apple TV",
                            "identifier": "Wohnzimmer App",
                            "source": "cec"
                        },
                        {
                            "name": "PlayStation 5",
                            "identifier": "PlayStation 5",
                            "source": "cec"
                        }
                    ],
                    "displayOrder": [
                        "inputs",
                        "apps",
                        "channels",
                        "commands",
                        "macros"
                    ],
                    "speaker": {
                        "active": false,
                        "output": "speaker",
                        "increaseBy": 1,
                        "reduceBy": 1,
                        "accType": "lightbulb"
                    },
                    "commands": [],
                    "macros": [],
                    "remote": []
                },
                {
                    "active": true,
                    "name": "Schlafzimmer TV",
                    "ip": "192.168.1.30",
                    "mac": "14:2d:27:0b:de:33",
                    "port": 80,
                    "psk": "03145154",
                    "manufacturer": "Sony",
                    "model": "Bravia",
                    "serialNumber": "00000000",
                    "refreshInputs": false,
                    "wol": true,
                    "oldModel": true,
                    "polling": 10,
                    "sheduledRefresh": 12,
                    "displayOrder": [
                        "inputs",
                        "apps",
                        "channels",
                        "commands",
                        "macros"
                    ],
                    "speaker": {
                        "active": false,
                        "output": "speaker",
                        "increaseBy": 1,
                        "reduceBy": 1,
                        "accType": "lightbulb"
                    },
                    "channels": [],
                    "commands": [],
                    "macros": [],
                    "remote": []
                }

Plugin not maintained anymore???

repo: seydx/homebridge-bravia-tvos


text:
[Multiple BUGs] - Not all speed options available [Model Phillips AC4236/10]

Overview - The slider problem
The device AC4236/10 has the following speed options (don't ask me why):
Speed options day mode:

Automatic mode
Speed option 1 (~ at 15% of full speed)
Speed option 2 (~ at 40% of full speed)
Speed option 3 | turbo mode (full speed)

Speed options night mode:

Silent mode
Allergic sleep mode

The "problem(s)"

[ ] In the Homekit accessory just two speed options (out of 3, respectively 4 without night mode) are available via the fan speed slider. Speed option 1 & 2 can be controlled via the slider. However, at 100% fan speed (Homekit) the air purifier only works at speed option 2.
[ ] Secondly, automatic mode cannot be started via the manual/automatic switch either. By using this switch nothing happens to the settings of the air purifier.
[ ] As mentioned in previous bug reports Pre filter's & Active carbon filter's "Filter Life Level" exceeds the maximum level of 100, I don't personally care about this, but now that I'm here...
[ ] I don't know if it's intended that only pm2.5 is shown in the Homekit air quality badged, maybe this is something to look into later. Again it's not an important feature I guess, but data is data 💯

Expected behavior
Since Philips air purifiers have different speed options in older and newer models this may be the cause.
At 80% or at least over 51% the air purifier should work at maximum speed.
The automatic mode should be working via manual/automatic switch.
The solution
Activating debbuger mode shows the following API output of my device with Homekit device slider at 100%:

[DEBUG] Philips: {"name": "XXXX", "type": "AC4236", "modelid": "AC4236/14", "swversion": "Ms4406", "language": "EN", "DeviceVersion": "4.0.6", "range": "MarteHE", "Runtime": 7517029, "WifiVersion": "AWS_Philips_AIR@64.3", "ProductId": "XXXXX", "DeviceId": "XXXXX", "StatusType": "control", "ConnectType": "Online", "om": "2", "pwr": "1", "cl": false, "aqil": 100, "uil": "1", "uaset": "P", "mode": "M", "pm25": 1, "iaql": 1, "aqit": 7, "tvoc": 1, "ddp": "1", "rddp": "1", "err": 0, "fltt1": "A3", "fltt2": "none", "fltsts0": 662, "fltsts1": 4800, "fltsts2": 65535, "filna": "AC3036", "filid": "XXXXX", "flttotal0": 720, "flttotal1": 4800, "flttotal2": 65535}

At least for my device these are the correct strings:
Turbo mode (day):
{"name": "XXXX", ...., "om": "t", "pwr": "1", "cl": false, "aqil": 100, "uil": "1", "uaset": "P", "mode": "T", ...}
"om": "t",
"mode": "T"

Automatic mode (day):
{"name": "XXXX", ...., "om": "s", "pwr": "1", "cl": false, "aqil": 100, "uil": "1", "uaset": "P", "mode": "AG", ....}
"om": "s",
"mode": "AG"

Silent mode (night)
{"name": "XXXX", ...., "om": "s", "pwr": "1", "cl": false, "aqil": 0, "uil": "0", "uaset": "P", "mode": "S", ....}
"om": "s",
"mode": "S"

Allergic sleep mode (night)
{"name": "XXXX", ...., "om": "as", "pwr": "1", "cl": false, "aqil": 0, "uil": "0", "uaset": "P", "mode": "AS", ....}
"om": "as",
"mode": "AS"

Air quality
A further air quality value is "tvoc" (device has no temperature or humidity sensors).
Filter Life Level
As with everyone else, the problem with fltsts[0-2]life divisor arises for me. The solution has already been presented with flttotal[0-2]... My device does not have any second filter. So the assumption of @ideabucket could be correct.
Environment

Node.js Version: v12.14.1
iOS Version: v15.2.1

Conclusion
Please don't get me wrong, your plugin is great and super responsive. Thanks for all your kick-ass work in this project. 👍 🥇
Maybe you can implement these small improvements in your plugin e.g. by getting "type" or "modelid".
Thanks a lot!

I've been trying to figure out how to model all the possible config states of recent purifier models using HomeKit's rather limited set of characteristics off and on for a while now, so I thought I'd chime in and braindump what I have so far.
As best I can break it down there are four different characteristics that need to be modeled:

Mode: Day or Night
Auto speed: On or Off (only meaningful when Mode == Day)
Fan speed: 1, 2, Turbo (only meaningful when Mode == Day)
Allergy Sleep mode: On or Off (only meaningful when Mode == Night).

One option would be to model all five of the speed options as percentages on the RotationSpeed characteristic:

20%: Sleep
40%: Allergy Sleep
60%: Day 1
80%: Day 2
100%: Day Turbo

Then you just need a TargetAirPurifierState characteristic to differentiate between Auto and Manual.
However I think this is a bad idea; first, it's brittle (what happens if there's a new model with more than three Day speeds?), and second, there's no way of communicating the speed scale in the Home app UI since there's no way I'm aware of to give RotationSpeed levels names.
IMO a better approach would be something similar to what's done in lukasroegner/homebridge-dyson-pure-cool, and expose extra switch accessories to control night mode, so you'd have:

Auto or Manual (TargetAirPurifierState characteristic)
Night mode (Switch service)
Allergy Sleep in Night Mode (Switch service)
Fan speed (RotationSpeed characteristic with three steps: 33%, 66%, and 100%)

This is what I plan to try to put together as a PR if I get the chance, but I'd welcome somebody else stealing the idea and doing all the work instead…

My om is set to a and this plugin always says This plugin generated a warning from the characteristic 'Rotation Speed': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.

authors: andycylam ideabucket rank111

repo: seydx/homebridge-philipsair-platform


text:
Implement fold* methods from Iterator?

Hello,
Just curious, would it be possible to implement these? I can give it a go if you prefer.

or maybe try_fold

repo: sfackler/fallible-streaming-iterator


text:
Add BigInteger and BigDecimal types

There types aren't natively supported by Serde, but we can use the same approach used by crates like serde_cbor or toml and define "magic" types that can be serialized to and from the native Smile types.

BigInteger is implemented in e71ae9cffdba150c4465485cfcbbffd71dc39cbc.

repo: sfackler/serde-smile


text:
table list page css class name conflict

I have a model called ad, and have 1 record exist on database.
But it do not show on list page:

Notice the count.
If I change the tr tag class name ad_row to whatever_row, it appeared

Some kind of an ad-blocker or user agent stylesheet might be affecting this.
Try turning them off and see if it works.

@mshibuya thanks

authors: TangMonk mshibuya


text:
[WIP] Add Qwen-VL

Add Qwen-VL model to SGLang.
Rough roadmap:

[ ] Write out classes and test model loading
[ ] Test out CLIPVisionModel forward and Cross attention forward
[ ] Test entire LVM output

@BabyChouSr Any progress on this? Is the model ready?

@BabyChouSr Hi may you update the latest status? When is this PR expected to be ready?

Due to the lack of response, I'm closing this work-in-progress PR for now. It can be reopened later if needed. Thank you!

authors: BabyChouSr merrymercy zhyncs

repo: sgl-project/sglang


text:
Update scala-compiler, scala-library, ... to 2.13.13

About this PR
📦 Updates

org.scala-lang:scala-compiler
org.scala-lang:scala-library
org.scala-lang:scala-reflect

from 2.13.10 to 2.13.13
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-lang" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #710.

repo: shadaj/slinky


text:
Error: Invalid Tailwind CSS classnames order  tailwindcss/classnames-order

Failed to compile.
01:38:16.130 |
01:38:16.130 | ./components/card.tsx
01:38:16.130 | 27:14  Error: Invalid Tailwind CSS classnames order  tailwindcss/classnames-order
01:38:16.130 |
01:38:16.130 | ./components/ui/command.tsx
01:38:16.131 | 32:18  Error: Invalid Tailwind CSS classnames order  tailwindcss/classnames-order
01:38:16.131 |
01:38:16.131 | info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
01:38:16.248 | error Command failed with exit code 1.
01:38:16.249 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
01:38:16.279 | Error: Command "yarn run build" exited with 1
01:38:16.553 | BUILD_UTILS_SPAWN_1: Command "yarn run build" exited with 1

You can use the eslint-plugin-tailwindcss to automatically fix that classnames order error. @shadcn already has the plugin installed
Just modify the lint script in package.json like this:
"scripts": {
  "lint": "next lint --fix",
},

And then run pnpm run lint. That should fix the classname ordering

Any solution to this? The problem is indeed as @Manubi commented

You can also add the following line to your package.json
"lint:fix": "next lint --fix"
and then execute
npm run lint:fix

/close

authors: brrock imaprototype jonathanquaade leonardomjq muke5hy

repo: shadcn-ui/taxonomy


text:
fix: format:write script

Whilst running the format:write script I noticed the following error:
 ERROR  run failed: error preparing engine: Could not find the following tasks in project: format
Turbo error: error preparing engine: Could not find the following tasks in project: format
 ELIFECYCLE  Command failed with exit code 1.

The turborepo task name wasn't matching, (format !== format:write).

Already resolved in latest version

repo: shadcn-ui/ui


text:
SLANG_COMPILE_FLAG_NO_MANGLING doesn't work as expected

When SLANG_COMPILE_FLAG_NO_MANGLING is used, the variable names are expected to have no mangling.
But they appear to be mangled.

For now, when the option is set, let's leave local variables mangled and only keep the original name for:

global variables
struct fields
synthesized cbuffer struct types.

authors: csyonghe jkwak-work

repo: shader-slang/slang


text:
error when trying run playbook with private key

The defect is a double quotes are added to  private-key value.
a quote is added when using the function - AbstractAnsibleCommand.addPathParam
return this.addParamValue(commandParams,** '"' + this.config[param] + '"'**, flag);
and another quote is added when  using spawn function for executing the command.
so the fix might be Eliminate the addition of quotes in addPathParam function.
when trying of execute a playbook with private key  (with verbose - 'vvvv') i get the following log:
EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o  'IdentityFile=""privateKey.pem""' .....
Thanks,
Shubert Yuval.

What OS are you using?

Ubuntu.

Ok. On Mac OS it doesn't reproduce. I'll try to run it on Ubuntu.
On Tue, Feb 9, 2016 at 10:17 AM ShubertYuval notifications@github.com
wrote:

Ubuntu.
—
Reply to this email directly or view it on GitHub
https://github.com/shaharke/node-ansible/issues/28#issuecomment-181755010
.

Thanks, how ever node version is - v5.5.0

Huh... interesting. Are you using nvm?
On Tue, Feb 9, 2016 at 11:18 AM ShubertYuval notifications@github.com
wrote:

Thanks, how ever node version is - v5.5.0
—
Reply to this email directly or view it on GitHub
https://github.com/shaharke/node-ansible/issues/28#issuecomment-181774116
.

nope.

Same problem encountered and fixed as per the comment by @yuval-shubert
OS Details -
Distributor ID: CentOS
Description:    CentOS release 6.7 (Final)
Release:        6.7
Codename:       Final

Same here, arch linux.

I'm using it in Mac and have the same issue. Also saw the PR raised for it but not merged. Is it on hold for some other reason?

@lovubuntu I am using node-ansible in production with the patch (I think) you are referring to.
I suspect that none is maintaing the project, because that patch works perfectly for me, but I am not skilled enough on this specific project, so there may be other reasons.

@yuval-shubert @sw360cab @biswars @flamedmg @lovubuntu I am a new maintainer on this project. I do realize it's been a while since there has been activity on this thread, but is this bug still happening for you?

@sw360cab if the fix proposed by @yuval-shubert can be considered as the solution or can become a PM, this issue should be considered definitely solved.

hi there, thanks for getting back to me. I will test the branch with the patch and update you in the pull-request.

authors: ShubertYuval biswars flamedmg lovubuntu minademian shaharke sw360cab yuval-shubert

repo: shaharke/node-ansible


text:
[DASH] PERIOD_FLATTENING_FAILED on specific Manifest

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.2.1
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from master?
Yes
Are you using the demo app or your own custom app?
Own custom app
If custom app, can you reproduce the issue using our demo app?
No, because the stream is DRM-protected and the license request/response has to be wrapped.
What browser and OS are you using?

Chrome Beta 97.0.4692.20
Chromecast (AndroidTV version, CAST SDK CAF Version: 3.0.0102, CAST SDK MPL Version: 1.0.0.112, Shaka Player 3.0.13)

For embedded devices (smart TVs, etc.), what model and firmware version are you using?
See above
What are the manifest and license server URIs?
It is sensitive data, I will send you the Manifest URL by email.
What configuration are you using?  What is the output of player.getConfiguration()?
It is sensitive data, I will send you the Manifest URL by email.
What did you do?
I just launch my custom app with the given DASH Manifest.
What did you expect to happen?
I expect the player to play the stream fine.
What actually happened?

Error code 4037 is thrown, see screenshot.

After some research in Shaka Player code, it seem the lib/util/period.js:combine_() function does not play fine with audio tracks in the Manifest.
		<AdaptationSet id="1014" group="2" segmentAlignment="true" startWithSAP="1" contentType="audio" lang="fra">
			<Role schemeIdUri="urn:mpeg:dash:role:2011" value="description"/>
			<Representation id="1014" bandwidth="64000" codecs="mp4a.40.2" mimeType="audio/mp4">
				<SegmentTemplate timescale="90000" initialization="https://media.stream.xxxxx.net/media/0_1_1014_init" media="https://media.stream.xxxxx.net/media/0_1_1014_$Time$">
					<SegmentTimeline>
						<S t="147606703778160" d="288000" r="4502"/>
					</SegmentTimeline>
				</SegmentTemplate>
			</Representation>
		</AdaptationSet>
		<AdaptationSet id="1015" group="2" segmentAlignment="true" startWithSAP="1" contentType="audio" lang="und">
			<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
			<Representation id="1015" bandwidth="64000" codecs="mp4a.40.2" mimeType="audio/mp4">
				<SegmentTemplate timescale="90000" initialization="https://media.stream.xxxxx.net/media/0_1_1015_init" media="https://media.stream.xxxxx.net/media/0_1_1015_$Time$">
					<SegmentTimeline>
						<S t="147606703778160" d="288000" r="4502"/>
					</SegmentTimeline>
				</SegmentTemplate>
			</Representation>
		</AdaptationSet>
		<AdaptationSet id="1016" group="2" segmentAlignment="true" startWithSAP="1" contentType="audio" lang="fra">
			<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
			<Representation id="1016" bandwidth="64000" codecs="mp4a.40.2" mimeType="audio/mp4">
				<SegmentTemplate timescale="90000" initialization="https://media.stream.xxxxx.net/media/0_1_1016_init" media="https://media.stream.xxxxx.net/media/0_1_1016_$Time$">
					<SegmentTimeline>
						<S t="147606703778160" d="288000" r="4502"/>
					</SegmentTimeline>
				</SegmentTemplate>
			</Representation>
		</AdaptationSet>

But the same player plays fine with these audio tracks from another stream:
    <AdaptationSet id="365" group="2" segmentAlignment="true" startWithSAP="1" contentType="audio" lang="fra">
			<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
			<Representation id="365" bandwidth="64000" codecs="mp4a.40.2" mimeType="audio/mp4">
				<SegmentTemplate timescale="90000" initialization="https://media.stream.xxxx.net/media/0_1_365_init" media="https://media.stream.xxxx.net/media/0_1_365_$Time$">
					<SegmentTimeline>
						<S t="147606699171360" d="288000" r="4502"/>
					</SegmentTimeline>
				</SegmentTemplate>
			</Representation>
		</AdaptationSet>
		<AdaptationSet id="366" group="2" segmentAlignment="true" startWithSAP="1" contentType="audio" lang="und">
			<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
			<Representation id="366" bandwidth="64000" codecs="mp4a.40.2" mimeType="audio/mp4">
				<SegmentTemplate timescale="90000" initialization="https://media.stream.xxxx.net/media/0_1_366_init" media="https://media.stream.xxxx.net/media/0_1_366_$Time$">
					<SegmentTimeline>
						<S t="147606699169678" d="288000" r="4502"/>
					</SegmentTimeline>
				</SegmentTemplate>
			</Representation>
		</AdaptationSet>

		<AdaptationSet id="465" group="2" segmentAlignment="true" startWithSAP="1" contentType="audio" lang="fra">
			<Role schemeIdUri="urn:mpeg:dash:role:2011" value="description"/>
			<Representation id="465" bandwidth="64000" codecs="mp4a.40.2" mimeType="audio/mp4">
				<SegmentTemplate timescale="90000" initialization="https://media.stream.xxxx.net/media/0_1_465_init" media="https://media.stream.xxxx.net/media/0_1_465_$Time$">
					<SegmentTimeline>
						<S t="147606699171360" d="288000" r="4502"/>
					</SegmentTimeline>
				</SegmentTemplate>
			</Representation>
		</AdaptationSet>

Can you test with v4.3.4? Thanks!

authors: avelad cdongieux

repo: shaka-project/shaka-player


text:
HLS with fLaC and Opus fail

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
4.3.8
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from main?
Yes
Are you using the demo app or your own custom app?
Demo
What browser and OS are you using?
macOS: Firefox, Chrome, Safari
What are the manifest and license server URIs?

Can't find a public stream
What configuration are you using?  What is the output of player.getConfiguration()?

Not important, just the default demo settings:
{
    "drm": {
        "retryParameters": {
            "maxAttempts": 2,
            "baseDelay": 1000,
            "backoffFactor": 2,
            "fuzzFactor": 0.5,
            "timeout": 30000,
            "stallTimeout": 5000,
            "connectionTimeout": 10000
        },
        "servers": {},
        "clearKeys": {},
        "advanced": {},
        "delayLicenseRequestUntilPlayed": false,
        "persistentSessionOnlinePlayback": false,
        "persistentSessionsMetadata": [],
        "logLicenseExchange": false,
        "updateExpirationTime": 1,
        "preferredKeySystems": [],
        "keySystemsMapping": {},
        "parseInbandPsshEnabled": false,
        "minHdcpVersion": ""
    },
    "manifest": {
        "retryParameters": {
            "maxAttempts": 2,
            "baseDelay": 1000,
            "backoffFactor": 2,
            "fuzzFactor": 0.5,
            "timeout": 30000,
            "stallTimeout": 5000,
            "connectionTimeout": 10000
        },
        "availabilityWindowOverride": null,
        "disableAudio": false,
        "disableVideo": false,
        "disableText": false,
        "disableThumbnails": false,
        "defaultPresentationDelay": 0,
        "segmentRelativeVttTiming": false,
        "raiseFatalErrorOnManifestUpdateRequestFailure": false,
        "dash": {
            "clockSyncUri": "",
            "ignoreDrmInfo": false,
            "disableXlinkProcessing": false,
            "xlinkFailGracefully": false,
            "ignoreMinBufferTime": false,
            "autoCorrectDrift": true,
            "initialSegmentLimit": 1000,
            "ignoreSuggestedPresentationDelay": false,
            "ignoreEmptyAdaptationSet": false,
            "ignoreMaxSegmentDuration": false,
            "keySystemsByURI": {
                "urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b": "org.w3.clearkey",
                "urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e": "org.w3.clearkey",
                "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed": "com.widevine.alpha",
                "urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95": "com.microsoft.playready",
                "urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95": "com.microsoft.playready",
                "urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb": "com.adobe.primetime"
            },
            "sequenceMode": false
        },
        "hls": {
            "ignoreTextStreamFailures": false,
            "ignoreImageStreamFailures": false,
            "defaultAudioCodec": "mp4a.40.2",
            "defaultVideoCodec": "avc1.42E01E",
            "ignoreManifestProgramDateTime": false,
            "mediaPlaylistFullMimeType": "video/mp2t; codecs=\"avc1.42E01E,mp4a.40.2\"",
            "useSafariBehaviorForLive": true,
            "liveSegmentsDelay": 3,
            "sequenceMode": true,
            "ignoreManifestTimestampsInSegmentsMode": false
        },
        "mss": {
            "sequenceMode": false,
            "keySystemsBySystemId": {
                "9a04f079-9840-4286-ab92-e65be0885f95": "com.microsoft.playready",
                "79f0049a-4098-8642-ab92-e65be0885f95": "com.microsoft.playready"
            }
        }
    },
    "streaming": {
        "retryParameters": {
            "maxAttempts": 2,
            "baseDelay": 1000,
            "backoffFactor": 2,
            "fuzzFactor": 0.5,
            "timeout": 30000,
            "stallTimeout": 5000,
            "connectionTimeout": 10000
        },
        "rebufferingGoal": 2,
        "bufferingGoal": 10,
        "bufferBehind": 30,
        "ignoreTextStreamFailures": false,
        "alwaysStreamText": false,
        "startAtSegmentBoundary": false,
        "gapDetectionThreshold": 0.5,
        "durationBackoff": 1,
        "safeSeekOffset": 5,
        "stallEnabled": true,
        "stallThreshold": 1,
        "stallSkip": 0.1,
        "useNativeHlsOnSafari": true,
        "inaccurateManifestTolerance": 2,
        "lowLatencyMode": false,
        "autoLowLatencyMode": false,
        "forceHTTPS": false,
        "preferNativeHls": false,
        "updateIntervalSeconds": 1,
        "dispatchAllEmsgBoxes": false,
        "observeQualityChanges": false,
        "maxDisabledTime": 30,
        "parsePrftBox": false,
        "segmentPrefetchLimit": 0,
        "liveSync": false,
        "liveSyncMaxLatency": 1,
        "liveSyncPlaybackRate": 1.1
    },
    "mediaSource": {
        "sourceBufferExtraFeatures": "",
        "forceTransmux": false
    },
    "offline": {
        "usePersistentLicense": true,
        "numberOfParallelDownloads": 5
    },
    "abr": {
        "enabled": true,
        "useNetworkInformation": true,
        "defaultBandwidthEstimate": 1000000,
        "switchInterval": 8,
        "bandwidthUpgradeTarget": 0.85,
        "bandwidthDowngradeTarget": 0.95,
        "restrictions": {
            "minWidth": 0,
            "maxWidth": null,
            "minHeight": 0,
            "maxHeight": null,
            "minPixels": 0,
            "maxPixels": null,
            "minFrameRate": 0,
            "maxFrameRate": null,
            "minBandwidth": 0,
            "maxBandwidth": null
        },
        "advanced": {
            "minTotalBytes": 128000,
            "minBytes": 16000,
            "fastHalfLife": 2,
            "slowHalfLife": 5
        },
        "restrictToElementSize": false,
        "restrictToScreenSize": false,
        "ignoreDevicePixelRatio": false
    },
    "autoShowText": 3,
    "preferredAudioLanguage": "de",
    "preferredAudioLabel": "",
    "preferredTextLanguage": "de",
    "preferredVariantRole": "",
    "preferredTextRole": "",
    "preferredAudioChannelCount": 2,
    "preferredVideoHdrLevel": "AUTO",
    "preferredVideoCodecs": [],
    "preferredAudioCodecs": [],
    "preferForcedSubs": false,
    "preferredDecodingAttributes": [],
    "restrictions": {
        "minWidth": 0,
        "maxWidth": null,
        "minHeight": 0,
        "maxHeight": null,
        "minPixels": 0,
        "maxPixels": null,
        "minFrameRate": 0,
        "maxFrameRate": null,
        "minBandwidth": 0,
        "maxBandwidth": null
    },
    "playRangeStart": 0,
    "playRangeEnd": null,
    "cmcd": {
        "enabled": false,
        "sessionId": "",
        "contentId": "",
        "useHeaders": false
    },
    "lcevc": {
        "enabled": false,
        "dynamicPerformanceScaling": true,
        "logLevel": 0,
        "drawLogo": false
    },
    "ads": {}
}

What did you do?

I tried to play a HLS stream with the following master playlist:
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=1096908,CODECS="fLaC"
main.m3u8?...

If I change fLaC to flac, it plays fine. The same issue exists for Opus vs. opus.
What did you expect to happen?
The stream should play, as the codec string conforms to the specification:

https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.4.2
https://datatracker.ietf.org/doc/html/rfc6381#section-3.3
https://mp4ra.org/#/codecs

What actually happened?
The player throws the error:
{
  "severity": 2,
  "category": 4,
  "code": 4032,
  "data": [],
  "handled": false,
  "message": "Shaka Error MANIFEST.CONTENT_UNSUPPORTED_BY_BROWSER ()",
  "stack": "@https://shaka-player-demo.appspot.com/lib/util/error.js:94:17\ncheckPlayableVariants_@https://shaka-player-demo.appspot.com/lib/player.js:6495:13\nfilterManifestWithStreamUtils_@https://shaka-player-demo.appspot.com/lib/player.js:5432:10\n"
}

I will fix the issue in an upcoming PR


text:
SegmentTemplate@media not updated after change in DASH manifest

Have you read the FAQ and checked for duplicate open issues?
yes
If the problem is related to FairPlay, have you read the tutorial?
not related
What version of Shaka Player are you using?
v4.5.0 (uncompiled)
Can you reproduce the issue with our latest release version?
yes
Can you reproduce the issue with the latest code from main?
did not try
Are you using the demo app or your own custom app?
demo app
What browser and OS are you using?
Google Chrome 119 @ Fedora Linux 38
What are the manifest and license server URIs?
sent via e-mail to shaka-player-maintainers@googlegroups.com
What configuration are you using?  What is the output of player.getConfiguration()?
default demo app configuration
What did you do?
played the DASH stream
What did you expect to happen?
I expect the player to amend segments URI after SegmentTeplate@media has been changed in DASH manifest during playback.
What actually happened?
The player still requests segments with the URI computed during the initial DASH manifest load. Any changes in SegmentTeplate@media during playback are dropped.

Shaka Player v3.2.1, which is used in my production environment, updated the URI of the segment after the SegmentTeplate@media was changed during playback.

I just checked and the problem still exists in version v4.6.0.