text:
Add EOF symbol to match end of input

Can be signified with $
Must be optional (grammars don't have to contain it to be correct)
Need to make sure it works for both LALR and Earley, and with indentation.

Hey can I work on this issue?

Any update?

I have a version that should be working for LALR, in branch end_symbol
If anyone wants to test it and let me know how it goes, that would be great!
@isidentical @jruales @coreyt

+1 for $ to represent end of string. I just ran into a need for this.

Just pushed this into master. You can now use $ for LALR parsers. (No Earley support yet)
Here's an example from the tests that shows what it does:
        def test_end_symbol2(self):
            grammar = """
                start: (a|b)+
                a: "a" ("x"|$)
                b: "b"
            """
            parser = _Lark(grammar)

            self.assertEqual(parser.parse('axa'), Tree('start', [Tree('a', []),Tree('a', [])]))
            self.assertRaises(UnexpectedInput, parser.parse, 'ab')

I've just checked master and I can't find test_end_symbol2 and the example grammar listed above doesn't import.
E           lark.exceptions.GrammarError: Unexpected input at line 2 column 13 in calculator/grammar.lark:
E
E           a: "a" ("x"|$)
E                       ^

lark/lark/load_grammar.py:890: GrammarError

I don't claim to be even remotely be an expert on parsing but not being able to match $ seems to make even the simplest of grammars unparseable.
For instance (simplified):
start: expr+

expr: expr OPER expr
      | SIGNED_NUMBER

OPER: "+" | "-" | "*" | "/"

parse("1+1") # Tree('start', [Tree('statement', [1.0]), Tree('statement', [1.0])])

whereas start: (expr ("\n"|$))+ would actually pick expr oper expr

Looks like you reverted in 3bee21051e8440e506ea13f45b224e2f6d668662 but you don't say why.

If I remember correctly, there were some problems with unexpected side effects.

I don't claim to be even remotely be an expert on parsing but not being able to match $ seems to make even the simplest of grammars unparseable.

Maybe, but your example is wrong:
start: expr ("\n" expr?)*

works.

So it does... again, not an expert, but that's very non intuitive.
Thanks for the help!

@kneufeld I reverted it because it was buggy.
I agree it would be a nice feature, but I don't think it's a necessity.

Is there any update? I kind of need this. Or is there a workaround?

I'll see what I can do

@ThatXliner See PR #880

authors: BTaskaya MegaIng SarthakDandriyal ThatXliner erezsh jnwatson kneufeld

repo: lark-parser/lark


text:
Unexpected results within XML Report

I don't really know where to leave this and not sure if its a bug, or I am doing something wrong, so any advice would help.
Description
When I run test suites, I get a spec output that looks correct, but when I look at the xml report, and then Jenkins imports it, the results don't seem correct.
I have some tests with nested describe statements, then I have others that do not. If the first spec run, does not have nested describe blocks or there are it statements in the top most parent, I get a test suite called focused.spec and the first it statements fall outside of their parent describe.
Issue
The issue I am having is when Jenkins displays the xml report, all the it blocks within the first test show up in a 'root' directory. All top level suites are within a focused.spec directory. All children describe blocks show up at the top level with root and focused spec.
Spec Reporter Results
/usr/local/bin/node /Users/blah/node_modules/protractor/lib/cli.js /Users/blah/workspace/ui/src/config/config.js
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
Spec started

  1 Test 1
    ✓ it 1 (0.007 secs)
    ✓ it 2 (0.003 secs)
    ✓ it 3 (0.01 secs)
    ✓ it 4 (0.002 secs)
    ✓ it 5 (0.002 secs)
    ✓ it 6 (0.005 secs)
    ✓ it 7 (0.005 secs)
    ✓ it 8 (0.003 secs)
    ✓ it 9 (0.002 secs)
    ✓ it 10 (0.003 secs)
    ✓ it 11 (0.002 secs)
    ✓ it 12 (0.003 secs)

  2 Test 2

    2.1 describe 1
      ✓ it 1 (0.003 secs)
      ✓ it 2 (0.002 secs)

    2.2 describe 2
      ✓ it 3 (0.003 secs)

      2.2.1 describe3
        ✓ it 4 (0.002 secs)
        ✓ it 5 (0.003 secs)
        ✓ it 6 (0.017 secs)
        ✓ it 7 (0.005 secs)

    2.3 describe 4
      ✓ it 8 (0.004 secs)

      2.3.1 describe 5
        ✓ it 9 (0.004 secs)
        ✓ it 10 (0.007 secs)
        ✓ it 11 (0.006 secs)
        ✓ it 12 (0.004 secs)

Executed 24 of 24 specs SUCCESS in 8 secs.
[launcher] 0 instance(s) of WebDriver still running
[launcher] chrome #1 passed

Process finished with exit code 0

XML Output*
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
    <testsuite name="focused specs" timestamp="2015-06-10T09:51:15" hostname="localhost" time="4.66" errors="0" tests="12" skipped="0" disabled="0" failures="0">
        <testcase classname="focused specs" name="it 1" time="0.007">
        </testcase>
        <testcase classname="focused specs" name="it 2" time="0.003">
        </testcase>
        <testcase classname="focused specs" name="it 3" time="0.01">
        </testcase>
        <testcase classname="focused specs" name="it 4" time="0.003">
        </testcase>
        <testcase classname="focused specs" name="it 5" time="0.002">
        </testcase>
        <testcase classname="focused specs" name="it 6" time="0.005">
        </testcase>
        <testcase classname="focused specs" name="it 7" time="0.005">
        </testcase>
        <testcase classname="focused specs" name="it 8" time="0.003">
        </testcase>
        <testcase classname="focused specs" name="it 9" time="0.002">
        </testcase>
        <testcase classname="focused specs" name="it 10" time="0.003">
        </testcase>
        <testcase classname="focused specs" name="it 11" time="0.002">
        </testcase>
        <testcase classname="focused specs" name="it 12" time="0.003">
        </testcase>
    </testsuite>
    <testsuite name="focused specs.Test 1" timestamp="2015-06-10T09:51:15" hostname="localhost" time="0" errors="0" tests="0" skipped="0" disabled="0" failures="0">
    </testsuite>
    <testsuite name="focused specs.Test 2" timestamp="2015-06-10T09:51:15" hostname="localhost" time="4.22" errors="0" tests="0" skipped="0" disabled="0" failures="0">
    </testsuite>
    <testsuite name="focused specs.Test 2.describe 1" timestamp="2015-06-10T09:51:19" hostname="localhost" time="0.005" errors="0" tests="2" skipped="0" disabled="0" failures="0">
        <testcase classname="focused specs.Test 2.describe 1" name="it 1" time="0.003">
        </testcase>
        <testcase classname="focused specs.Test 2.describe 1" name="it 2" time="0.002">
        </testcase>
    </testsuite>
    <testsuite name="focused specs.Test 2.describe 2" timestamp="2015-06-10T09:51:19" hostname="localhost" time="0.03" errors="0" tests="1" skipped="0" disabled="0" failures="0">
        <testcase classname="focused specs.Test 2.describe 2" name="it 3" time="0.002">
        </testcase>
    </testsuite>
    <testsuite name="focused specs.Test 2.describe 2.describe3" timestamp="2015-06-10T09:51:19" hostname="localhost" time="0.027" errors="0" tests="4" skipped="0" disabled="0" failures="0">
        <testcase classname="focused specs.Test 2.describe 2.describe3" name="it 4" time="0.002">
        </testcase>
        <testcase classname="focused specs.Test 2.describe 2.describe3" name="it 5" time="0.003">
        </testcase>
        <testcase classname="focused specs.Test 2.describe 2.describe3" name="it 6" time="0.017">
        </testcase>
        <testcase classname="focused specs.Test 2.describe 2.describe3" name="it 7" time="0.005">
        </testcase>
    </testsuite>
    <testsuite name="focused specs.Test 2.describe 4" timestamp="2015-06-10T09:51:19" hostname="localhost" time="0.025" errors="0" tests="1" skipped="0" disabled="0" failures="0">
        <testcase classname="focused specs.Test 2.describe 4" name="it 8" time="0.004">
        </testcase>
    </testsuite>
    <testsuite name="focused specs.Test 2.describe 4.describe 5" timestamp="2015-06-10T09:51:19" hostname="localhost" time="0.021" errors="0" tests="4" skipped="0" disabled="0" failures="0">
        <testcase classname="focused specs.Test 2.describe 4.describe 5" name="it 9" time="0.004">
        </testcase>
        <testcase classname="focused specs.Test 2.describe 4.describe 5" name="it 10" time="0.007">
        </testcase>
        <testcase classname="focused specs.Test 2.describe 4.describe 5" name="it 11" time="0.006">
        </testcase>
        <testcase classname="focused specs.Test 2.describe 4.describe 5" name="it 12" time="0.004">
        </testcase>
    </testsuite>
</testsuites>

Are you using fit or fdescribe anywhere? When focusing specs / suites, Jasmine does not send the suiteStarted and suiteDone events, which is how jasmine-reporters deciphers the test hierarchy. To make things still kind of work correctly, jasmine-reporters lumps things into a fake focused specs suite, which looks like what you are seeing. The only time jasmine-reporters inserts focused specs is if it doesn't receive the suiteStarted event.
Another time this might happen is if you don't get the reporter set up before jasmine starts executing. With Protractor, one common way this can happen is if you are using getProcessedConfig inside your onPrepare handler but not returning that promise -- it inside your onPrepare function should be something like return browser.getProcessedConfig().then( ... ) (see the README for a complete example).

Thank you for your response. I was laid off, so can't really get this working, but I appreciate your time. Thanks again.

source: gharchive/issue

authors: bloveridge koerbcm

repo: larrymyers/jasmine-reporters

license: mit

license_type: permissive

license_source: bigquery


text:
[python] Created get_parameters API

[python] Created get_parameters API
Disclaimer: I know this is 400+ lines changed, but ~300 of those are just adding/refactoring automated tests!!!
We already had get_prompt_parameters, but this isn't good enough if parameters aren't defined locally and we want to bubble up to the aiconfig defaults. See comment in https://github.com/lastmile-ai/aiconfig/pull/661#discussion_r1437941729.
This is important so that we can ensure we have valid params if not defined in the correct section of our AIConfig schema. This is similar in theme to https://github.com/lastmile-ai/aiconfig/pull/600
The only callsite we have today for this is in python in the params.py function, so I updated that callsite too. I don't know why it doesn't exist in Typescript (cc @rholinshead) but I also added this functionality in typescript in https://github.com/lastmile-ai/aiconfig/pull/669 (I'm not as familiar with automated testing there so will ask Ryan for a code pointer to help get me started)
Test plan
Added a bunch of automated tests which you can run by doing going to the aiconfig/python dir and running pytest

Stack created with Sapling. Best reviewed with ReviewStack.

#613
-> #668

We already had get_prompt_parameters, but this isn't good enough if parameters aren't defined locally and we want to bubble up to the aiconfig defaults. See comment in https://github.com/lastmile-ai/aiconfig/pull/661#discussion_r1437941729.

More generally, is this change actually needed? The bubbling up already happens when running the prompt, right? So the editor implementation doesn't need to explicitly get the local + global params because it will be run with the params set

More generally, is this change actually needed? The bubbling up already happens when running the prompt, right? So the editor implementation doesn't need to explicitly get the local + global params because it will be run with the params set

You don't need to pass in params anymore from the client, this abstracts it away. You still can pass it in explicitly into the run() command as a method arg if you want, but this simplifies it a lot

ac to unblock

source: gharchive/pull-request

repo: lastmile-ai/aiconfig

license: MIT

license_source: github-api


text:
Type override breaks every update and insert

Using a type override seems to break every update or insert.
sqlx::query!("INSERT INTO users (role) VALUES ($1)", Role::User as Role)
  .execute(&db)
  .await?;

Error: no rows returned by a query that expected to return at least one row

The table looks like this:
CREATE TYPE user_role AS ENUM ('user', 'admin');
CREATE TABLE users (
    role user_role NOT NULL
);

Using fetch_optional doesn't help either. Pretty dealbreaking for me.

My bad - I forgot to use #[sqlx(rename="..")].
Confusing error, though

repo: launchbadge/sqlx


text:
🛑 Services - API is down

In 7370e18, Services - API (https://services.launchforge.co/api/v1/health) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Services - API is back up in 8430c7a after 17 minutes.

repo: launchforge/upptime


text:
反馈：App Skeleton 介绍

改动Skeleton.vue代码后需要重启开发环境进程才生效

这个问题后续我们进行优化，先把这个 ISSUE 开着，大家一起监督

把HtmlWebpackPlugin的cache参数设置为false可以解决这个问题，代码如下：
        // build/webpack.dev.conf.js
        // https://github.com/ampedandwired/html-webpack-plugin
        new HtmlWebpackPlugin({
            filename: 'index.html',
            template: 'index.html',
            cache: false,
            inject: true,
            favicon: utils.assetsPath('img/icons/favicon.ico')
        }),

能发个 PR 吗？

Anyone?

authors: PengXing huanghuiquan

repo: lavas-project/lavas-tutorial


text:
Stable decode/encode with empty maps and arrays

The library does not seem to support propagating original type when decoding/encoding empty maps and arrays.
As a result:

decoding an empty map leads to an empty Lua table (expected)
decoding an empty array leads to an empty Lua table (expected as well since Lua makes no difference between maps and arrays)
encoding an empty table leads to "null": this is unexpected and breaks stability of encode/decode process.

In order to illustrate the issue, I have created a test-case (see associated PR #7)

I'm not sure what can be done here. Without any entries in the table, we can't know whether the item is intended to be an object or an array.

I agree the use-case for empty arrays from Lua is tricky since the language implements this using a table.
Anyway, there should be a simple way to fix the empty table getting JSON encoded as null (instead of the expected {}).
Now in order to provide stability between encode and decode, maybe user-types could be used (though I don't know if the library has complete support for that).
I'll update #7 tomorrow to fix the "empty table gets marshalled as null" issue and leave the array case for now since there's no easy way out of this.

I've encoded that the encoding rules mimic that of json.lua:
//  Lua      | JSON
//  ---------+-----
//  nil      | null
//  number   | number
//  string   | string
//  table    | object: when table is non-empty and has only string keys
//           | array:  when table is empty, or has only sequential numeric keys
//           |         starting from 1

authors: bontibon j-vizcaino

repo: layeh/gopher-json

license: unlicense


text:
fix: Fixed broken link of Layer5 Community Welcome Guide

Description
Fixed broken link of Layer5 Community Welcome Guide in README.md
This PR fixes #30
Closes: #30
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@Viveksati5143 can u fixed the link in Readme file as well?

 @Viveksati5143 can u fixed the link in Readme file as well?

Done @abhijeetgauravm

Sorry My bad...actually I made that commit from phone I don't know why would I write Updated youtube link instead of  Fixed broken link of Layer5 Community Welcome Guide in readme

LGTM @Viveksati5143 Thanks for the fix!

@Chadha93

Thank you gents.

Another issue to work on broken image @Viveksati5143


text:
DB Design

Schemas:
users {
  id,
  name,
  username,
  email,
  description,
  avatar
}

organizations {
  id,
  name,
  username, (kinda like a slug. Cannot have spaces.)
  email,
  description,
  avatar,
  ownedBy: (references: users)
}

roles {
  id,
  name,
  description
}

permissions {
  id,
  permissionKey,
  route
}

rolePermissions {
  id,
  permissionId (references: permissions),
  roleId (references: roles)
}

organizationMembers {
  id,
  userId (references: users),
  organizationId (references: organizations),
  roleId (references: roles)
}

teams {
  id,
  name,
  description,
  organizationId (references: organizations)
}

teamMembers {
  id,
  teamId (references: teams),
  userId (references: users),
  roleId (references: roles)
}

labels {
  id,
  name,
  description,
  color,
  labelableType (enum: 'user', 'team'),
  labelableId
}

projects {
  id,
  name,
  description,
  projectableType: (enum: 'user', 'team')
  projectableId,
  createdBy (references: users),
  isActive
}

statusTemplate {
  id,
  name,
  color,
  description,
  order
}

statuses {
  id,
  name,
  color,
  description,
  order,
  context (enum: 'user', 'project'),
  contextId
}

tasks {
  id,
  name,
  description,
  taskableType (enum: 'user', 'project'),
  taskableId,
  createdBy (references: users),
  statusId (nullable),
  deadline
}

taskLabels {
  id,
  taskId (references: tasks),
  labelId (references: labels)
}

taskAssignees {
  id,
  taskId,
  userId
}

taskComments {
  id,
  comment,
  taskId,
  createdBy
}

temp1

temp1

tmp2


text:
Add UI for selecting a wallet server

UI must display status information about all known wallet servers (esp. description and fee). highlight the fee and explain when/how it will be paid.
UI should allow setting a custom wallet server domain or ip
consider distinguishing lbry official servers from others servers
consider having a preference order for wallet servers instead of a simple selection. i.e. user has an ordered list of wallet servers they want to use. app tries to connect to servers higher up the list as they become available. if no servers from the list are available, connect to any server.
consider making "connect to any available server" an option. maybe ppl will prefer not to do that (e.g. if you're running your own wallet server and only want to use that one)

Also, or potentially as a separate issue, it needs to be possible to select your wallet server even when the wallet server set in your settings is down or offline.

Per discussion with @lyoshenka, this should be prioritized on Monday.

Please make this a textarea so that input can look like this:
server1.com, server2.com
server3.com
server4.com, server5.com, server6.com

The SDK only takes a single array, so for now just collapse what was in input into a single array.

@shyba can you create SDK side issue for this if it does not exist and link it here? The idea is that each row is a tier, and the SDK should only switch between wallet servers of the same tier. If all servers in a tier fail, use the next tier.

Desktop side-UI should be radio toggle

[ ] Use lbry.tv wallet servers
[ ] Use custom wallet servers

Selecting the second folds out the text area

SDK issue to support changes without restart: https://github.com/lbryio/lbry-sdk/issues/2341

authors: kauffj lyoshenka tzarebczan

repo: lbryio/lbry-desktop


text:
unauthenticated views and routing and query parameters

lbry.tv routing related:
In an incognito window:
This URL does not load https://open.lbry.com/$/channels?utm_medium=email&utm_source=20200312_creator_update
This URL does  https://open.lbry.com/$/channels

Closing for https://github.com/lbryio/lbry-desktop/issues/3955


text:
Open in desktop

PR Checklist

Please check all that apply to this PR using "x":

[x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
[ ] I added a line describing my change to CHANGELOG.md
[ ] I have checked that this PR does not introduce a breaking change
[ ] This PR introduces breaking changes and I have provided a detailed explanation below

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting)
[ ] Refactoring (no functional changes)
[ ] Documentation changes
[ ] Other - Please describe:

Fixes
Issue Number: #6659
This is based on the spotify web implentation of "Open in desktop app" feature.
I added a simple landing / loading page. Feel free to change it.

Todo

[ ] Better message ?

I'm concerned about this causing a lot of confusion among Odysee users that don't know about LBRY desktop. But I think you can use /user/me to know if the user has ever installed the desktop app -- I'd be fine with showing this to those people.

I'm concerned about this causing a lot of confusion among Odysee users that don't know about LBRY desktop.
I added a landing page for this. The message is just a simple example. It could be better:

authors: btzr-io kauffj


text:
LBRYtv should supply X-Forwarded-For to internal API calls

@tzarebczan reported that user IPs logged in the Internal APIs database do not reflect actual addresses of users accessing the service. Internal API client should accept and forward X-Forwarded-For header coming with the user request.

This is now happening more often with our recent changes of allowing passthrough on all unauthenticated calls. We should be able to pass the IP just like we do with the authenticated ones. It makes it harder to track proper accesses for rewards/abuse monitoring purposes.
Not a huge priority, but if it's a quick one, let's try to knock it out.

This is more annoying now that we have more ips

Ok, tv API sends the correct X-Forwarded-For for remote client now. Example:
POST /user/has_verified_email HTTP/1.1
Host: localhost:9091
User-Agent: Go-http-client/1.1
Content-Length: 14
Accept: application/json
Content-Type: application/x-www-form-urlencoded
X-Forwarded-For: 127.0.0.1
Accept-Encoding: gzip
auth_token=abc%

@nikooo777 can you verify please?

@nikooo777 I'm closing this as fixed, please re-open if there is an issue.

authors: andybeletsky kauffj tzarebczan

repo: lbryio/lbrytv


text:
Crashes unless LANG=en_US.UTF-8

[display] init ...
[display] init ok, driver name: x11
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  18 (X_ChangeProperty)
Value in failed request:  0x0
Serial number of failed request:  25
Current serial number in output stream:  34

$ locale
LANG=en_US.UTF-8
...
LCUI version: downloaded from here (19.01.2017).
OS and version: [Linux Mint 4.4.0-53-generic]
Build tools: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4).
Thanks!

Currently LCUI on x11 support is not complete, most of the support code is simply call x11 interface, there are many problems are not resolved.

...but the project is very good!

If you are proficient in x11 or wayland interface programming, you are welcome to help improve LCUI linux support.

@mrwert
I spent some time improved the support for linux in recent days, you can download develop branch code and try again.

On my test system (Linux Mint) still this error...
I will try to test on the new system (Linux Mint and Ubuntu).

Installed a new OS (Ubuntu).
apt-get install libx11-dev autoconf libtool libxml2-dev libfreetype6-dev libjpeg-dev libpng-dev

Build with lcui-builder support .... : yes
Build with libpng support .......... : yes
Build with libjpeg support ......... : yes
Build with font-engine support ..... : freetype2
Build with thread support .......... : pthread
Build with video support ........... : x11

make
cd test/
make
./helloworld

LCUI (LC's UI) version 1.0.0
Build at Apr 13 2017 - 23:11:08
Copyright (C) 2012-2017 Liu Chao root@lc-soft.io.
This is free software, licensed under GPLv2.
See source distribution for detailed copyright notices.
To learn more, visit http://www.lcui.org.
[font] current font engine is: FreeType
[font] load file: /usr/share/fonts//truetype/ubuntu-font-family/Ubuntu-R.ttf
[font] add family: Ubuntu, style name: Regular, id: 2
[font] load file: /usr/share/fonts//opentype/noto/NotoSansCJK-Regular.ttc
[font] add family: Noto Sans CJK JP, style name: Regular, id: 3
[font] add family: Noto Sans CJK KR, style name: Regular, id: 4
[font] add family: Noto Sans CJK SC, style name: Regular, id: 5
[font] add family: Noto Sans CJK TC, style name: Regular, id: 6
[font] add family: Noto Sans Mono CJK JP, style name: Regular, id: 7
[font] add family: Noto Sans Mono CJK KR, style name: Regular, id: 8
[font] add family: Noto Sans Mono CJK SC, style name: Regular, id: 9
[font] add family: Noto Sans Mono CJK TC, style name: Regular, id: 10
[font] load file: /usr/share/fonts//opentype/noto/NotoSansCJK.ttc
[font] failed to load file: /usr/share/fonts//opentype/noto/NotoSansCJK.ttc
[font] load file: /usr/share/fonts//truetype/wqy/wqy-microhei.ttc
[font] failed to load file: /usr/share/fonts//truetype/wqy/wqy-microhei.ttc
[font] select: Noto Sans CJK SC
[timer] init ...
[timer] timer thread is working
[display] init ...
[display] init ok, driver name: x11
[font] load file: C:/Windows/Fonts/comic.ttf
[font] failed to load file: C:/Windows/Fonts/comic.ttf
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  18 (X_ChangeProperty)
Value in failed request:  0x0
Serial number of failed request:  15
Current serial number in output stream:  31
I haven't ideas...

You can try to use gdb or valgrind, I want to see the call stack when it exits
ce test
valgrind .libs/lt-helloworld

Another way, you can try to delete case TASK_SET_CAPTION: {...} code block in src/platform/linux/linux_x11display.c:206

It works without case TASK_SET_CAPTION: {...}
...but only supports input "1234567890".
valgrind .libs/helloworld
==20017== Memcheck, a memory error detector
==20017== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==20017== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==20017== Command: .libs/helloworld
==20017==
LCUI (LC's UI) version 1.0.0
Build at Apr 14 2017 - 08:32:40
Copyright (C) 2012-2017 Liu Chao root@lc-soft.io.
This is free software, licensed under GPLv2.
See source distribution for detailed copyright notices.
To learn more, visit http://www.lcui.org.
[font] current font engine is: FreeType
[font] load file: /usr/share/fonts//truetype/ubuntu-font-family/Ubuntu-R.ttf
[font] add family: Ubuntu, style name: Regular, id: 2
[font] load file: /usr/share/fonts//opentype/noto/NotoSansCJK-Regular.ttc
[font] add family: Noto Sans CJK JP, style name: Regular, id: 3
[font] add family: Noto Sans CJK KR, style name: Regular, id: 4
[font] add family: Noto Sans CJK SC, style name: Regular, id: 5
[font] add family: Noto Sans CJK TC, style name: Regular, id: 6
[font] add family: Noto Sans Mono CJK JP, style name: Regular, id: 7
[font] add family: Noto Sans Mono CJK KR, style name: Regular, id: 8
[font] add family: Noto Sans Mono CJK SC, style name: Regular, id: 9
[font] add family: Noto Sans Mono CJK TC, style name: Regular, id: 10
[font] load file: /usr/share/fonts//opentype/noto/NotoSansCJK.ttc
[font] failed to load file: /usr/share/fonts//opentype/noto/NotoSansCJK.ttc
[font] load file: /usr/share/fonts//truetype/wqy/wqy-microhei.ttc
[font] failed to load file: /usr/share/fonts//truetype/wqy/wqy-microhei.ttc
[font] select: Noto Sans CJK SC
[timer] init ...
[timer] timer thread is working
[display] init ...
[display] init ok, driver name: x11
[font] load file: C:/Windows/Fonts/comic.ttf
[font] failed to load file: C:/Windows/Fonts/comic.ttf
==20017== Conditional jump or move depends on uninitialised value(s)
==20017==    at 0x4C3580A: wcslen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20017==    by 0x4E6A080: TextView_SetTextW (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E6A4B6: TextView_SetText (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68CFD: ParseWidget (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F74: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F93: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F93: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E69339: LCUIBuilder_LoadFile (in /usr/lib/libLCUI.so.3)
==20017==    by 0x10897E: main (in /home/mrwert/Desktop/LCUI-develop/test/.libs/helloworld)
==20017==
==20017== Conditional jump or move depends on uninitialised value(s)
==20017==    at 0x4C3587A: wcscpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20017==    by 0x4E6A0A7: TextView_SetTextW (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E6A4B6: TextView_SetText (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68CFD: ParseWidget (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F74: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F93: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F93: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E69339: LCUIBuilder_LoadFile (in /usr/lib/libLCUI.so.3)
==20017==    by 0x10897E: main (in /home/mrwert/Desktop/LCUI-develop/test/.libs/helloworld)
==20017==
==20017== Conditional jump or move depends on uninitialised value(s)
==20017==    at 0x4C3580A: wcslen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20017==    by 0x4E6A936: TextEdit_AddTextToBuffer (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E6BD8D: TextEdit_SetText (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68CFD: ParseWidget (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F74: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F93: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E68F93: ParseNode (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E69339: LCUIBuilder_LoadFile (in /usr/lib/libLCUI.so.3)
==20017==    by 0x10897E: main (in /home/mrwert/Desktop/LCUI-develop/test/.libs/helloworld)
==20017==
==20017== Conditional jump or move depends on uninitialised value(s)
==20017==    at 0x4E61449: Widget_TriggerEvent (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62EA3: Widget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62E40: Widget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62F0A: LCUIWidget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4F37D: LCUIDisplay_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4DE49: LCUIMainLoop_Run (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4E2C0: LCUI_Main (in /usr/lib/libLCUI.so.3)
==20017==    by 0x55DE3F0: (below main) (libc-start.c:291)
==20017==
==20017== Conditional jump or move depends on uninitialised value(s)
==20017==    at 0x4E61449: Widget_TriggerEvent (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E6BCC3: TextEdit_OnTask (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62ECE: Widget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62E40: Widget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62F0A: LCUIWidget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4F37D: LCUIDisplay_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4DE49: LCUIMainLoop_Run (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4E2C0: LCUI_Main (in /usr/lib/libLCUI.so.3)
==20017==    by 0x55DE3F0: (below main) (libc-start.c:291)
==20017==
==20017== Conditional jump or move depends on uninitialised value(s)
==20017==    at 0x4E61449: Widget_TriggerEvent (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62EA3: Widget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62E40: Widget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62E40: Widget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E62F0A: LCUIWidget_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4F37D: LCUIDisplay_Update (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4DE49: LCUIMainLoop_Run (in /usr/lib/libLCUI.so.3)
==20017==    by 0x4E4E2C0: LCUI_Main (in /usr/lib/libLCUI.so.3)
==20017==    by 0x55DE3F0: (below main) (libc-start.c:291)
==20017==
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  18 (X_ChangeProperty)
Value in failed request:  0x0
Serial number of failed request:  15
Current serial number in output stream:  31
==20017==
==20017== HEAP SUMMARY:
==20017==     in use at exit: 10,250,201 bytes in 4,221 blocks
==20017==   total heap usage: 6,270 allocs, 2,049 frees, 11,231,788 bytes allocated
==20017==
==20017== LEAK SUMMARY:
==20017==    definitely lost: 301 bytes in 65 blocks
==20017==    indirectly lost: 0 bytes in 0 blocks
==20017==      possibly lost: 288 bytes in 1 blocks
==20017==    still reachable: 10,249,612 bytes in 4,155 blocks
==20017==         suppressed: 0 bytes in 0 blocks
==20017== Rerun with --leak-check=full to see details of leaked memory
==20017==
==20017== For counts of detected and suppressed errors, rerun with: -v
==20017== Use --track-origins=yes to see where uninitialised values come from
==20017== ERROR SUMMARY: 10 errors from 6 contexts (suppressed: 0 from 0)
(gdb) run
Starting program: /home/mrwert/Desktop/LCUI-develop/test/.libs/helloworld
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
LCUI (LC's UI) version 1.0.0
Build at Apr 14 2017 - 08:32:40
Copyright (C) 2012-2017 Liu Chao root@lc-soft.io.
This is free software, licensed under GPLv2.
See source distribution for detailed copyright notices.
To learn more, visit http://www.lcui.org.
[font] current font engine is: FreeType
[font] load file: /usr/share/fonts//truetype/ubuntu-font-family/Ubuntu-R.ttf
[font] add family: Ubuntu, style name: Regular, id: 2
[font] load file: /usr/share/fonts//opentype/noto/NotoSansCJK-Regular.ttc
[font] add family: Noto Sans CJK JP, style name: Regular, id: 3
[font] add family: Noto Sans CJK KR, style name: Regular, id: 4
[font] add family: Noto Sans CJK SC, style name: Regular, id: 5
[font] add family: Noto Sans CJK TC, style name: Regular, id: 6
[font] add family: Noto Sans Mono CJK JP, style name: Regular, id: 7
[font] add family: Noto Sans Mono CJK KR, style name: Regular, id: 8
[font] add family: Noto Sans Mono CJK SC, style name: Regular, id: 9
[font] add family: Noto Sans Mono CJK TC, style name: Regular, id: 10
[font] load file: /usr/share/fonts//opentype/noto/NotoSansCJK.ttc
[font] failed to load file: /usr/share/fonts//opentype/noto/NotoSansCJK.ttc
[font] load file: /usr/share/fonts//truetype/wqy/wqy-microhei.ttc
[font] failed to load file: /usr/share/fonts//truetype/wqy/wqy-microhei.ttc
[font] select: Noto Sans CJK SC
[timer] init ...
[New Thread 0x7fffea1db700 (LWP 20053)]
[timer] timer thread is working
[display] init ...
[display] init ok, driver name: x11
[font] load file: C:/Windows/Fonts/comic.ttf
[font] failed to load file: C:/Windows/Fonts/comic.ttf
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  18 (X_ChangeProperty)
Value in failed request:  0x0
Serial number of failed request:  15
Current serial number in output stream:  31
[Thread 0x7fffea1db700 (LWP 20053) exited]
[Inferior 1 (process 20049) exited with code 01]

you need use this command to rebuild LCUI.
./configure --enable-debug=yes

In gdb, you need use backtrace command after the program exits, this command can print call stack information.

For valgrind reported error messages, I will solve in the future.

Temporary solution:
src/platform/linux/linux_x11display.c
case TASK_SET_CAPTION: {
  XTextProperty name;
  char *str = "My program title";
  name.value    = (unsigned char*)task->caption;
  name.encoding = XA_STRING;
  name.format   = 8 * sizeof(char);
  name.nitems   = task->caption_len;
  XStringListToTextProperty( &str, 1, &name );
  XSetWMName( dpy, win, &name );
  break;
}

XStringListToTextProperty( &str, 1, &name );
But my app have not any text.
Temporary solution:

TextView_SetText( txt, "[size=18px]Hello, World![/size]" );

TextView_SetTextW( txt, L"[size=18px]Hello, World![/size]" );

TextView_SetText( txt, "[size=18px]Hello, World![/size]" );

This looks like a character encoding conversion problem, and I have not tested it before.

Please try rebuild in Linux again.

It works with the following errors:

Doesn't support, for example, Arabic or Cyrillic. Support only Latin.
This panel doesn't work (even for Latin)...

Thanks!

Hm..
[font] add family ....
May need font support for each layout?

Linux keyboard input problem will be resolved in the future, but I do not intend to deal with it now.

authors: lc-soft mrwert

repo: lc-soft/LCUI


text:
Added use of

Added the ability of using optgroup.
Changes mainly in _populate method
Minor changes in the click handler and the _select method.
Note: This changes are not largely tested and are created in a haste. Use with care!

Added in v1.9.0! Thank you. :+1:

authors: lcdsantos vasilgeorgiev

repo: lcdsantos/jQuery-Selectric


text:
Searching an attribute's exact value with '(' character now needs an extra '' character to be included before it. Worked fine in previous versions

illegal unescaped char: (
at escapeValue (c:\api\node_modules\ldap-filter\lib\index.js:49:13)
at parseExpr (c:\api\node_modules\ldap-filter\lib\index.js:167:16)
at parseFilter (c:\api\node_modules\ldap-filter\lib\index.js:228:14)
at Object.parse (c:\api\node_modules\ldap-filter\lib\index.js:252:18)
at Object.parseString (c:\api\node_modules\ldapjs\lib\filters\index.js:181:27)
at Client.search (c:\api\node_modules\ldapjs\lib\client\client.js:559:30)
at client.bind (c:\api\dist\ldap-manager\ldap-manager.js:185:28)
at sendResult (c:\api\node_modules\ldapjs\lib\client\client.js:1168:12)
at messageCallback (c:\api\node_modules\ldapjs\lib\client\client.js:1191:16)
at Parser.onMessage (c:\api\node_modules\ldapjs\lib\client\client.js:869:14)

There is not nearly enough information in this issue to even begin answering it.
What is some example code that triggers the problem? What version do you claim "worked fine"? What version are you claiming does not work?

This is a breaking change from ldap-filter

While the old parser would tolerate unescaped characters in the ()* set, the new parser requires them to be escaped via the \XX hex notation

ldapjs@2.0.0 changes escaped characters to their hex notation automatically in #521 but they must be escaped with \.
https://github.com/ldapjs/node-ldapjs/blob/a113953e0d91211eb945d2a3952c84b7af6de41c/lib/filters/index.js#L167-L177

In case of v1.0.2, i was searching list of all users having display name equal to a given string using below filter:
const displayName: string = "Khandelwal, H. (Himanshu)";
const opts: ldapjs.SearchOptions = {
attributes: ['displayName'],
filter: (displayName=${displayName}),
scope: 'sub',
};
But after updating it to latest version v2.0.0-pre.2, i have to use escape character to search the same name
const displayName: string = "Khandelwal, H. \(Himanshu\)";
const opts: ldapjs.SearchOptions = {
attributes: ['displayName'],
filter: (displayName=${displayName}),
scope: 'sub',
};

@UziTech Thanks for clearing it, will update code accordingly :)

This is still an issue with ldap-filter

@shilpa0208 yes you must escape  the characters (, ), * with a backslash (\)

⚠ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example
when opening a new issue.

repo: ldapjs/node-ldapjs


text:
[Raw comments] Concerning data distribution and AP workload

Comments from @rickatultipa
After reviewing the slides of last data schema discussion meeting, there are some meaningful comments from @rickatultipa
Hi Shipeng:
I look at the draft and have a few comments:
Slide#9 on Preliminary Data Profiling Result:  there are lots of isolated vertices, 21B out of 21.6B,  97% are isolated vertices, which also means only 0.656B vertices are meaningful (connected) and worthy to be ingested for graph analysis. When banks are processing graph data, they tend to purge those isolated data points and the logic is simple: isolated data carry little value in graph-powered network/behavior analysis. I understand you may have used sample data from your group, but I'm wondering if the data can be representative of the average financial industry.
Also, on Slide#9: Hub-vertex degree: Clearly, there are hotspot supernodes with degrees exceeding 100M. This reveals that the underpinning data modeling is questionable, because this will bog down any graph system who tries to traverse such supernode efficiently. On the other hand, consider alternative data modeling/schema that effectively lower the max degree. Over 100M is a bit too extreme -- if the max degrees are in the range of 1-2M, that's probably more practical. (As far as I know, most graph systems today can NOT even traverse hotspot nodes with 10,000+ degrees with a tight latency bound, say, 100ms.)
Slide#14: Regarding TP vs. AP workload, it makes sense to formally introduce some graph algorithms as typical AP workload, from relatively straightforward ones to really sophisticated/time-consuming ones, like PageRank, LPA, Louvain, Node2Vec, etc. And all we need to define are input parameters and expected output formats.
Let me know what you think, thanks.
Best

Reply from @hjk41
My cent on the supernode problem: we should design our database for real-world workload, instead of considering the world "unreasonable".
Most real-world graphs are power-law graphs, which do have supernodes. For example, in twitter graph, there are accounts with more than 10M followers. Should we just consider these accounts "abnormal" and delete them? Even if we can, what about accounts that have 5M followers, how about 1M?
As benchmark designers, we have the responsibility to expose limitations that current databases have, so they can evolve in the right direction.
As database designers, it is our duty to improve our databases so they better suit customer needs. The supernode problem is not an artificial problem, it is an important problem that every graph database need to solve. The way customers are handling this problem (mostly by eliminating supernodes that exceed some ad-hoc threshold) is just an expedient, because of our inability to provide them with a better solution. I personally feel sorry about the situation and am also excited that we have such a challenging problems to work on.

Following reply from me
Hi Ricky,
Thanks for the great comments. They are helpful for others to understand. I think you mainly concern about the data profiling result which may influence the data distribution generated by DataGen. Another thing is about the AP workload.

About the data distribution
1.1 The data profiling result we showed in the slides is a rather preliminary one which we did not distinguish the edge types. We plan to do more profiling with more samples distinguishing edge types in the following development of FinBench DataGen to make it more realistic. However, the point we would like to underscore is that we should determine the data distribution in some ways and then apply it to the generation of FinBench data. The preliminary result is just the beginning of a conversation about the distribution. And I think it would be more representative and realistic if there are more input, which I mean the data distribution metrics, from other members.
1.2 The reason why there is more isolated vertices is that the sample is one-week long data. The isolated vertices means inactive accounts within one week. Anyway, I agree with you that the isolated vertices have nothing to do the benchmark. And that’s the reason we calculated the average degree excluding the isolated vertices.
1.3 Regarding the design of “supernodes/hub-vertex”, I agree with Chuntao that we benchmark designer need to make the benchmark realistic and make it expose the problems databases are facing. Based on facts, we can do more profiling to get more metrics and then determine the distribution.
About the AP workload
Simply introducing graph algorithms may not be a good choice because there is already LDBC Graphalytics Benchmark. Recently, Gabor has a lecture recently to introduce the differences between SNB Interactive and SNB BI. You can see in slide 3 via https://ldbcouncil.org/event/fifteenth-tuc-meeting/attachments/gabor-szarnyas-the-ldbc-social-network-benchmark-business-intelligence-workload.pdf. And just as we have discussed in the kickoff meeting, we can consider the differences between AP workload and Graphalytics, design the AP workload in the following versions concerning that we can not spare more time now.
Best,
Shipeng
white_check_mark
eyes
raised_hands

According to the last meeting, members has no more comments on this issue.


text:
ワークフローが動作しない

https://github.com/instant-markdown/instant-markdown.github.io
これが参考になるかもしれません

参考になりました


text:
LCChatKitExample swift项目使用问题

安装了所需要的
pod 'CYLTabBarController'
pod 'TWMessageBarManager'
pod 'MLPAutoCompleteTextField'
pod 'FTPopOverMenu'
之后 还是无法使用 使用

你邮箱给我下，我给你个Swift入门Demo。

dx7d9x@gmail.com  麻烦了~ O(∩_∩)O谢谢

😃0.0
2016-09-27 15:17 GMT+08:00 微博@iOS程序犭袁 notifications@github.com:

你邮箱给我下，我给你个Swift入门Demo。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/leancloud/ChatKit-OC/issues/109#issuecomment-249785406,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQcCWXlL2tlw99WCoguUqwmx889WuvtMks5quMMVgaJpZM4KHVG8
.

请问Demo能否解决你的问题？

重发了一遍，你再看下

@ChenYilong 可以发给我一个Swift的demo吗，我pod ‘ChatKit’ 后没办法使用，pod install 后没有.framework出来。我看ChatKit_OC全部是.a文件的库，我不知道该怎么办。麻烦你了，我的邮箱是cdxcqu2014@163.com.谢谢

已发

收到了，谢谢，但是我升级了Xcode 8，需要自己重新选择Convert 到swift2.3吗.我运行了半个小时的podfile，卡在Charts那里。。。

同求swift demo，我用swift 3实现用户体系的时候, 根本就没有 LCCKUser这个类是怎么回事？
我邮箱 liyukuang at gmail dot com, 话说swift demo为什么不放出来，而是函授的形式了😁
LCChatKit.sharedInstance().fetchProfilesBlock = {
userIds, completionHandler in
if userIds?.count == 0 {
print("User ids is nil")
let code = 0
let errorReasonText = "User ids is nil"
let errorInfo = [code : errorReasonText]
let error = NSError(domain: "TextIM", code: code, userInfo: errorInfo)
if completionHandler != nil {
completionHandler!(nil, error)
}
return
}
        print("Hi I am called")
        let users = [LCCKUser]()

        if completionHandler != nil {
            completionHandler!(users, nil)
        }
    }

可以给我也发一份swift demo 吗 . 1414225@qq.com

可以发一份swift 的demo吗？ 812662025@qq.com 能推到github上最好，还是有人需要的

eliyar917@foxmail.com ~ 希望发到 github

153908639@qq.com ~ 麻烦可以的话，给我发一分swift demo，谢谢

@ChenYilong hi，麻烦也发我一份，谢谢~ 865425695@qq.com

@ChenYilong develop_zhaotw@fellowplus.com 麻烦发我一份哇 。谢谢。

@DPzhaotianwei 官方说已经弃用SwiftDemo，请自行转换~

@ChenYilong 不好意思，可以的话，麻烦给我发一分swift的demo，谢谢！pong.joshua@gmail.com

@ChenYilong 1414225@qq.com 能否发一份Swift 3.0 的 Demo。

@ChenYilong 你好，能否麻烦也给我发一份swift3.0的demo，512079720@qq.com  由于是新手没有学过oc，真的很需要，谢谢啦。

@ChenYilong 你好，能否麻烦也给我发一份swift3.0的demo，z.simonhui@gmail.com ，谢谢啦。

可以发我一份swift demo 吗 卡在了实现LCCKUserDelegate 协议上，邮箱909275705@qq.com 万分感谢

authors: BaLaLaLs BrikerMan Chen-Dixi ChenYilong DPzhaotianwei Dx-zuo SandwichSauce chinabrant dowhilenet hzliuxuanlin joshuapong23 liyukuang mokai simon-hkm

repo: leancloud/ChatKit-OC


text:
Add more swiping methods

For devs convenience, now almost all swipes can be done by using scrollTo() but it looks hacky.
This could be eg. swipe once in a defined direction, starting from defined point.

+1 on this

repo: leancodepl/patrol


text:
feat: add Equiv.prodSubtypeEquivSubtypeProd

See Zulip

Thanks!
bors delegate+

bors r+

authors: mattrobball xroblot


text:
feat: integrals and integrability with .re

Lemmas for swapping order of .re and integration/integrability.

These changes are a pre-req for formalizing the beta distribution. See #16773 discussion

There is still an unresolved conversation.


text:
chore: generalise div_le_div to groups with zero

... and lemmas around

[x] depends on: #18958

Thanks! :tada:
bors merge

authors: YaelDillies urkud


text:
fix(maintainer merge action): remove run_id

bors merge

authors: adomani fpvandoorn


text:
feat: port Data.Real.ENatENNReal

bors merge

bors merge

bors merge


text:
feat: port CategoryTheory.Monoidal.End

TODOs:

[ ] Fix obj_μ_inv_app
[ ] handle simpNF linters
[ ] remove lines with  ambiguous notation warning

What is the reason that you add nolint simpNF? Please document this for each case in a porting note.

nolint simpNF

What is the reason that you add nolint simpNF? Please document this for each case in a porting note.

I added porting note in all 4 cases. It seems that it thinks that it can use the lemme itself somehow in simp, or a _assoc version of that lemma. Perhaps this is a bug in the linter?!


text:
chore: Generalise instances

Match https://github.com/leanprover-community/mathlib/pull/15171

topology.algebra.group.basic@c10e724be91096453ee3db13862b9fb9a992fef2..3b1890e71632be9e3b2086ab512c3259a7e9a3ef
topology.algebra.infinite_sum.basic@32253a1a1071173b33dc7d6a218cf722c6feb514..3b1890e71632be9e3b2086ab512c3259a7e9a3ef

bors merge

authors: YaelDillies semorrison


text:
feat: port Topology.ContinuousFunction.LocallyConstant

bors merge


text:
chore: deal with a few convert porting notes

LGTM. Thanks!

bors merge

authors: kbuzzard kmill semorrison


text:
feat: port Geometry.Manifold.VectorBundle.Tangent

[x] depends on: #5444

This PR/issue depends on:

leanprover-community/mathlib4#5444
By Dependent Issues (🤖). Happy coding!

This PR/issue depends on:

leanprover-community/mathlib4#5444
By Dependent Issues (🤖). Happy coding!

Thanks :tada:
bors merge

authors: jcommelin semorrison urkud


text:
invalid projection from Meta.reduce

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Check that your issue is not already filed.
Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to mathlib4 or std4.

Description
The following code snippet (thanks @kmill) unexpectedly produces the error invalid projection s.1:
import Lean
open Lean Meta Elab Term

elab "#reduce'" t:term : command => Elab.Command.runTermElabM fun _ => do
  let e ← withSynthesize <| elabTerm t none
  let e ← Meta.reduce e
  logInfo m!"{← inferType e}"

structure S where
  x : Nat

def S' := S
def S'.x (s : S') : Nat := S.x s

attribute [irreducible] S'

variable (s : S')
#reduce' s.x -- invalid projection s.1

Context
This issue has been discussed on Zulip. The problem originally arose in the following code snippet:
import Mathlib.AlgebraicTopology.DoldKan.SplitSimplicialObject
import Lean
open Lean Meta

elab "#fails" : term => do
  let info ← getConstInfo ``SimplicialObject.Splitting.πSummand_comp_ιSummand_comp_PInfty_eq_PInfty
  forallTelescopeReducing info.type fun _ body => do
    match body.eq? with
    | none => return mkNatLit 0
    | some (_, lhs, _) =>
      let _ ← Meta.reduceAll lhs
      return mkNatLit 0

#eval #fails -- invalid projection g.1

The intent was to get the type of SimplicialObject.Splitting.πSummand_comp_ιSummand_comp_PInfty_eq_PInfty, extract its underlying equality, and reduce the type of each side of the equality. This produces an error that is hard to understand as it references a term g whose origin isn't immediately clear.
Steps to Reproduce
Run the code snippet shown in the description using Lean version 4.3.0-rc2.
Expected behavior: The command #reduce' s.x prints the type Nat.
Actual behavior: The command #reduce' s.x fails with the error invalid projection s.1.
Versions
#eval Lean.versionString -- "4.3.0-rc2"

$ sw_vers
ProductName:		macOS
ProductVersion:		14.0
BuildVersion:		23A344

Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

The failure occurs at inferProjType. Meta.reduce reduces S'.x s to s.1, but then inferProjType fails because S' is [irreducible].

I just ran into something similar. It’s not quite the same, but while debugging I think we can fix this issue by setting the transparency to .all not only while reducing, but also in the subsequent
        withTransparency .all <|  logInfoAt tk e

authors: leodemoura marcusrossel nomeata


text:
API Reference

Does it make sense to include an API Reference on the website? Maybe, if the package climsim_utils is now installable.

Meaning an API reference for climsim_utils Python package? If so then, yes, I believe that would be useful. And if it's easy to add now, let's go for it.

authors: NoraLoose cisaacstern

repo: leap-stc/ClimSim


text:
My Personal Experience With Leapdroid

Hello,
Here's my personal experience with leapdroid:

First of all, thanks leapdroid team for the amazing emulator so far its compatible with everything i need

however i've noticed some issues:

My main problem is antialiasing, i've used nox app player as my default emulator but what i noticed is the antialiasing on leapdroid is not as good as nox
take this screenshot of asphalt 8
Nox: Settings | Result
Leapdroid: Settings:Display/Graphics | Result

Unnecessary pre-installed "Install [Game-name]" apps. this is really unnecessary, i would rather get google play games pre-installed instead of 8-10 honestly useless apps

Keyboard is not detected. this may sound weird but some games already have keyboard support however my keyboard is not connected to leapdroid (as a usb keyboard on normal android phone) Example: Asphalt 8 on bluestacks/MEmu

Lack of settings in general (outside of virtualbox)

No keyboard mapping for tilting device

Admittedly i dont know that much about leapdroid, if anyone knows how to solve any of the issues above (except 2 because i uninstalled all of them :stuck_out_tongue: ) i would be grateful

Thanks for reporting. This help us prioritize our future releases.

authors: Zaid-ED leapdroid

repo: leapdroid-team/leapdroid


text:
Implementing /embed endpoint (not /embedding )

Hey.
I noticed the documentation for the Ollama API has an endpoint that accepts as input a single string or a list of string.
Do you think it would be possible to implement it? As it works for both generating an embedding for a query and to store a list of documents?
I've actually gave a try, but I'm having trouble testing it.
Thank you,

I think that's a new feature as of yesterday! I haven't got round to it yet but will do over the weekend.
If you're satisfied your implementation works, just without tests, then do a PR and I'll add a test myself (the mock server testing code is a bit of a mess).

@lebrunel I open a draft PR  with the functionality but not tests. Let me know if this is ok.

Version 0.7.1 is out supporting the /embed endpoint.

authors: lebrunel nyo16 tubedude

repo: lebrunel/ollama-ex


text:
OutOfMemoryError

java.lang.OutOfMemoryError: Failed to allocate a 6246732 byte allocation with 1105280 free bytes and 1079KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:888)
at android.graphics.Bitmap.createBitmap(Bitmap.java:865)
at android.graphics.Bitmap.createBitmap(Bitmap.java:832)
at com.gxtag.teamwork.components.hellocharts.renderer.LineChartRenderer.onChartSizeChanged(LineChartRenderer.java:74)
at com.gxtag.teamwork.components.hellocharts.view.AbstractChartView.onSizeChanged(AbstractChartView.java:78)
at android.view.View.sizeChange(View.java:17864)
at android.view.View.setFrame(View.java:17826)
at android.view.View.layout(View.java:17734)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
at android.view.View.layout(View.java:17737)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1626)
at android.view.View.layout(View.java:17737)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
at android.view.View.layout(View.java:17737)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:17737)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:17737)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:892)
at android.view.View.layout(View.java:17737)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2620)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2339)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1505)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6985)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:883)
at android.view.Choreographer.doCallbacks(Choreographer.java:689)
at android.view.Choreographer.doFrame(Choreographer.java:624)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:869)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:159)
at android.app.ActivityThread.main(ActivityThread.java:6364)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1096)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883)

do you have a test case to reproduce this issue?

authors: drakkan qinglok

repo: lecho/hellocharts-android


text:
Fix footer sidebar (v1.5)

До сих пор актуально?

немного по другому я себе представлял как зафиксировать футер :)

вот эту часть я думал оставить, а скролить только меню

так то все нормально, это мои личные придирки, можно зарыть

Ну если что после релиза сделаешь pr и изменим

authors: DissNik lee-to

repo: lee-to/moonshine


text:
testing

test

test

authors: jwwallacespeedway winson-tang

repo: leerob/on-demand-isr


text:
can not open the same file in two threads at the same time.

because it use 'fopen_s' to open the local file,the file can't be read shared.
I think should use _fsopen or _wfsopen to open the file in share read mode.
As MSDN says:"Files that are opened by fopen_s and _wfopen_s are not sharable. If you require that a file be sharable, use _fsopen, _wfsopen with the appropriate sharing mode constant—for example, _SH_DENYNO for read/write sharing."

That's true - I never really considered the use case, although it certainly doesn't hurt to fix it. Please submit a pull request, and I'll mark this as a bug.

I must had some mistake in my program,I don't know what I have changed,now the problem works well.I have a test on linux and windows,both 'fopen' and 'fopen_s' can open the same file to read in diffrent thread or in diffrent process concurrency.So,there's no problem to use 'fopen_s' or 'fopen'.

This issue has been marked as a bug,I wondering that is there an actual question?

okay, closing for now

authors: leethomason mymodian

license: Zlib


text:
Update Readme.md

Explicit szimek/signature_pad deps. Without his library, your module doesn't work. You got "SignaturePad is not defined".
You have closed whitout any comment an issue that fall in this problem. I fall in this problem too.

no response from OP. PR is not really important.

authors: gine jasny

repo: legalthings/angular-signature


text:
Input a valid master token but it said it doesn't follow the AAS_ET format.

Describe the bug

I have generated an app password and successfully created the master token using this Docker. However, when setting it up for the first time, it says Master token invalid. Make sure that the full token has been specified (including 'aas_et/'). I am certain that the master token is in the correct format, like aas_et/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= without any spaces.
Version of the integration
If you are unsure about the version check the github release here.

1.11.1

Logs

2024-07-11 16:59:00.688 ERROR (MainThread) [glocaltokens.client] master_token doesn't follow the AAS_ET format
2024-07-11 16:59:00.790 ERROR (SyncWorker_8) [glocaltokens.client] [!] Could not get access token.
2024-07-11 16:59:00.796 ERROR (MainThread) [custom_components.google_home]

seems to be the same issue as reported in: https://github.com/leikoilja/ha-google-home/issues/812
@e1018e1018, i ll close this issue in favour of the other one. @e1018e1018 would you be interested in contributing to help fix it by relaxing the check for the master token a bit as described in the other ticket?

I found that it says Token must be exactly 223 characters long in #812 , which is not the same as my token.
Finally, I discovered that the token I copied had an EOL (end-of-line) character. After removing it, I successfully logged in.
Thanks for your help 😄

repo: leikoilja/ha-google-home


text:
adguard 환경에서 이미지 다운로드 안되는 문제 수정

#80
adguard 환경에서는 url로 바로 연결하지 않고
local.adguard.org으로 한번 거쳐서 연결합니다.

그래서 해당 옵션으로 인해

반환이 안된다고 생각하여
Fetch를 사용했더니
작동하기 시작했읍니다.
또
node v17 환경에서는 webpack 작동 오류가 있어
모든 패키지 업데이트를 하였으나
webpack과 react는 오류가 있어 1단계 낮춰 다운그레이드했읍니다

답변이 늦어서 죄송합니다. 그리고 애드가드 관련 수정사항 감사드립니다.
일단, 패키지 업데이트 후 간단하게 작업환경을 테스트 해봤을 때 문제가 없는 듯합니다.
다만, 머지 전에 몇가지 코멘트를 남길까합니다.
커밋 메세지를 '1,2'로 작성하지 말아주십시오.
제가 Squash and merge 옵션을 사용해서 병합하고 풀 리퀘스트 이슈로 변경내역을 작성해주셨지만
보통 그렇게 작성하시면 git내에서 변경사항을 한 눈에 알기가 어렵습니다.
패키지 업데이트는 다운로드 해결과는 별개의 문제이므로 커밋을 따로 해주십시오.
지금처럼 하나의 커밋으로 넘겨주실 경우 만일 문제가 발생해 롤백해야한다면
다운로드 코드 부분까지 한 번에 롤백되기 때문에 2차적인 문제를 발생시킵니다.
이걸 지키는게 쉽지 않다는건 이해하고 있습니다.
언제 작성할진 모르겠지만 프로젝트 코드 빌드하는 법을 정리를 하면서 사용 버전을 적어놓을 예정입니다.
지금은 node 12.18.3 을 사용하고 있습니다.

네 확인했습니다, 앞으로는 주의하겠습니다.

repo: lekakid/ArcaRefresher


text:
Support for CTA text

FB's STM button now allows setting custom CTA text.
Is this possible?
Details: https://developers.facebook.com/docs/messenger-platform/discovery/send-to-messenger-plugin/#approved-CTA

That's most likely very possible, but I don't have much time to work on this library currently. PRs are welcome though and I take time to cut new releases when PR are merged. :)

Ok. I'll do that. What about this one? https://github.com/lemieux/react-messenger-plugin/issues/14

authors: gijo-varghese lemieux

repo: lemieux/react-messenger-plugin


text:
Update to dioxus 0.6

Thanks for maintaining this crate!
This PR bumps the release to dioxus 0.6.
We use it for dioxuslabs.com :)

Can you confirm this works? Have you tested the example?

Good call, the example needs to reference the asset via asset!() now that we've improved asset handling in Dioxus. All should work now.

Thanks for contributing! I will merge and push a new version to crates.io later.

authors: jkelleyrtp lennartkloock

repo: lennartkloock/dioxus-material-icons


text:
🛑 Chot.Sale is down

In 716dc0f, Chot.Sale (https://chot.sale) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Chot.Sale is back up in 5242547.


text:
Add PHP 8.1 Support (Addresses implicit type errors)

What great timing... I just started looking for a Laravel package to do just this! Thanks for creating.
Hope you don't mind a PR to try and address the "implicit conversion from float" errors that appear on PHP 8.1 by adding explicit typecasting in some places.
See: https://stackoverflow.com/questions/71534654/implicit-conversion-from-float-number-to-int-loses-precision
Feedback welcome!

Sorry this needs more work...

Hello my brother, I will be working on it, a hug!

authors: leomarriel trampish

repo: leomarriel/laravel-face-detector


text:
Issue 5

closes #5

Current coverage is 100.00%

Merging #11 into master will not affect coverage as of 7e590b6

@@            master     #11   diff @@
======================================
  Files            2       2
  Stmts          142     156    +14
  Branches         0       0
  Methods          0       0
======================================
+ Hit            142     156    +14
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 7e590b6

Powered by Codecov. Updated on successful CI builds.

awesome! thanks for your help.
Thanks for the feature and fixing some typos! I haven't had a change to ask any one do do a code review yet. Merging now.

authors: Guria codecov-io leonardoanalista

repo: leonardoanalista/cz-customizable


text:
feat: Expose Large and Small SwipeablePanel hights props in percents

Makes it possible to customise panel height using props:

panelLargeHeightPercentage
panelSmallHeightPercentage

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: kkortchinska leonardoanalista


text:
Make BibTeX reader aware of new namespace convention

Hi @leouieda,
this PR makes the BibTeX reader aware of the new namespace convention discussed in #34, which was previously working for yaml and json data only.
Cheers
Florian

I can't make sense out of the error messages from the checks here. make check runs fine locally.

I guess it was just a matter of updating things 🙂
Thanks for the fix!

authors: florian-wagner leouieda

repo: leouieda/nene


text:
Font Awesome 5 support

Hi!
I would really love if you could make a small change to support Font Awesome version 5. The difference from version 4 is that now they generate a svg-tag instead of using the font-family.
Example
Version 4:

& with the css looking something like this:
.fa-caret-down:before {     font-family: FontAwesome;     content: "\f107"; }
Version 5:
<svg aria-hidden="true" class="svg-inline--fa fa-caret-down fa-w-10" data-prefix="fa" data-icon="caret-down" role="img">     <path fill="currentColor" d="M31.3 192h257.3c17........"></path> </svg>

So they´re commenting away the  tag when generating the svg, which leads to that the carets in your treeview is not working.
Thanks for your quick support.

To solve this issue quick, here comes a solution:
In the file treeview.component.js:
Down in the template where <i *ngIf=\"item.children\" starts and follows with classes of fa-caret-right and fa-caret-down, edited this tag so it supports both FontAwesome v4 and v5:

(Explanation: Since v5 replaces the  with a <svg> tag, it doesn't work with , therefore all the -tags around the -tags...)

@ida-e Thanks. I have a question: could we use a single template supporting both fa v4 and v5? If yes, you can help me to make a pull request. Thanks.

Yes, the template-change I wrote above works for both v4 and v5.
Sorry, I'm not so experienced on this page so I don't know how to make a pull request... But this is such a tiny change, please just copy my -tag above and replace the old -tag...

Sorry, after reading the document to upgrade from 4 to 5, my syntax for icon font-awesome is correct
https://fontawesome.com/how-to-use/upgrading-from-4

NO!
Sorry to bother you. Your icon-syntax is correct - yes, but it doesn't work with *ngIf and (click) on the icon-element.
This is why: The new system replaces the -tag with an <svg> which leads to that the *ngIf and (click) gets replaced - and does NOT work!!
So the result is that the arrow isn't clickable and does not change from caret-right to caret-down.
Do you understand?

Ah, I understood. Thanks. I will update my component right now

Thanks! :)

Hi @ida-e , I need your help
Please see this code:

If Fontawesome replace  with , I worry that angular tag like [class.fa-caret-right] will not work.

Yes, you're right, that won't work. You need to do like this:

@ida-e Could you tell me how you apply Font Awesome 5?

@ida-e I see there is an Angular package for FontAwesome: https://github.com/FortAwesome/angular-fontawesome
To use FontAwesome 5 in my component, we should use custom template, the feature it supported. So, your solution is not good in this case.

Of course it's more clean to use an Angular package for FontAwesome.
Anyhow, my solution supports both FA4 and FA5, which makes it better atm because there's still many people out there using FA4.

Hi,
I see that this issue is closed, is there a plan to support FontAwesome 5 in the future?
If there are outstanding issues then I would be willing to investigate, with some assistance.

@nheath99 I hope there is a plan. I have big issues with this, the arrows doesn't work when using FontAwesome 5, which makes the treeview unusable...
I have edited treeview.component.js in node_modules so that the arrows works for me, but I have to make theese changes everytime node_modules is cleaned...

@ida-e can you share the code or create a PR?

@nheath99 You can read all my code above.
Instead of this code:

We have to remove the [class.]=""-attributes 'cuz they don't work with FA5, and instead surround the icons with span-tags that have if-attributes instead:

Thanks. It is very simple; I have created a pull request: #151
I have also changed lines 32-33 with the same principles.
Please add any comments.

Hi, I am author of this component. I think it can't support both font-awesome 4 & 5.
I suggest the solution to use Font Awesome 5 with my component:

Use custom item template
With https://github.com/FortAwesome/angular-fontawesome

@leovo2708 I agree with @ida-e, this is fully compatible with FontAwesome 4.


text:
Color Codes - What kind?

I'm trying to set custom colors for the embed, however I have no clue what kind of color code that is. Could you please provide the name of the type of color code that should be used.

@gxrneyme I just realized that there is a color picker button on the bottom, It would be nice to be able to use custom color codes, however not everything nice to you in programming...

I worked it out... put your hex code into the "enter hex number" field at https://www.rapidtables.com/convert/number/hex-to-decimal.html, and the result in the "decimal number" field is the colour code.

@gxrneyme Thanks mate!

authors: ethamitc gxrneyme

repo: leovoel/embed-visualizer


text:
Cannot read properties of null (reading 'props')

I was working with laravel 10 dev, but now that it was released, updated and now when compiling with npm run dev with vite, it shows me this message  Cannot read properties of null (reading 'props')

vite v4.1.1
laravel v10.0.0 plugin v0.7.4

I also encountered this earlier today, but narrowed it down to the @inertiajs/vue3 1.0.1 release: https://github.com/inertiajs/inertia/releases/tag/v1.0.1
Locking @inertiajs/vue3 to 1.0.0 in package.json was the temporary solution, for now.

This should work well now with v0.2.1.
npm install momentum-modal@latest
Let me know if the issue persists.

I am also getting the following exception. Tried with new version as well

I updated the dependency and it worked correctly, thank you very much, great job

authors: EfrenColin JasperTey boring-dragon lepikhinb

repo: lepikhinb/momentum-modal


text:
🛑 Mini (A literal Mac Mini) is down

In b94886d, Mini (A literal Mac Mini) ($MINISERVER_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mini (A literal Mac Mini) is back up in 91cf06b after 14 minutes.

repo: lerndmina/uptime


text:
chore(glyphs): change chat-ballon icon

Current coverage is 100% (diff: 100%)

Merging #150 into master will not change coverage

@@           master   #150   diff @@
====================================
  Files          19     19
  Lines         317    317
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
  Hits          317    317
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update 7db2218...cb7639c

Não rola passar num svgo da vida?

authors: codecov-io leandrogrillo vitortalaia

repo: leroy-merlin-br/garden


text:
Kill job from GUI

Write monitoring code to check output file for the phrase:
'Kill job'
This should be found in the note.txt file on the local machine.

Feature added

repo: leschzinerlab/AWS


text:
start with dependencies to enjoy caching

The quick-boot trick used in example-vite makes sense here too.
Two comments:

This uses npm ci instead of npm install, which seems like better practice. If that makes sense I'll make a PR patching that backwards into example-vite
To me it makes sense to generally use node:lts instead of node:latest as the base image, but I don't have strong enough feelings about it to start off with that change

perfect, thank you very much!

and just updated example-vite to use npm ci as well!

authors: gregsadetsky robsimmons

repo: letsdiscodev/example-node-site


text:
Make ListSubscriber public

I would like to reuse io.lettuce.core.output.ListSubcriber in a project that extends Lettuce (RediSearch module).

Thanks for report. That's a valid request as the remaining API is public.

Thanks. That's merged and polished now.

repo: lettuce-io/lettuce-core


text:
Allow Stashing of Individual Hunks

Is your feature request related to a problem? Please describe.
There is no way to stash individual hunks from within Neovim
Describe the solution you'd like
I would like to be able to stash hunks in a similar fashion to how they can be staged/unstaged
Describe alternatives you've considered
In a pinch, I can accomplish something similar using git stash -p
Additional context
N/A

Stash hunks is easy enough but how would/can we handle unstashing.
Also what exactly happens when a hunk is stashed. Do we create a new stash for each stashed hunk or do we append to an existing stash?

An alternative which might be preferable is to stage hunks as normal and then run:
:!git stash push --staged --message "hunks stashed from gitsigns"

Closing until response.


text:
add the concept list

Can we have the concept list please also be added to conceepticon? It is quite nice to see that this is a dataset with cognates and full BIPA !

It is only missing the linking to Concepticon, Natalia and I did this a long time ago. I can the see the concept list is already there: https://github.com/concepticon/concepticon-data/blob/master/concepticondata/conceptlists/Walker-2011-100.tsv

Should already be in: https://github.com/concepticon/concepticon-data/blob/master/concepticondata/conceptlists/Walker-2011-100.tsv-metadata.json

we should remove ./etc/concepts.tsv and update the code too.

excellent, I was checking the datasets for lexicore...

this may not be a great candidate as the data looks problematic (Fernando O. de Carvalho has a paper he's writing on how dodgy it is).

Done https://github.com/lexibank/walkerarawakan/commit/c42edf0fe5a2b495e40f7137b3ad41a0eae34560.

Done https://github.com/lexibank/walkerarawakan/commit/c42edf0fe5a2b495e40f7137b3ad41a0eae34560.

authors: LinguList SimonGreenhill chrzyki tresoldi

repo: lexibank/walkerarawakan


text:
[WIP] parse multipart MIME to create cloud-init ISO

There seems to be some VM images which require a directory structure of their control in the CDROM cloud-init image, even though per the cloud-init specification they should handle the MIME multipart messages themselves.
I do not think we should do this by default, but instead be controlled by the settings introduced by #1951
The code tries hard to make sure the filename parameter can not be used to escape outside of the target directory, but haven't verified that this is bullet-proof yet.

I kind of like this @eriknordmark -- but yes -- lets wait for the knob to appear

I realized today that the additional field in the API will not be useful until we have end-to-end (UI and controller) support so I'll do a temporary configItem to be able to control this so the testing can proceed.

I realized today that the additional field in the API will not be useful until we have end-to-end (UI and controller) support so I'll do a temporary configItem to be able to control this so the testing can proceed.

Any knob at this point will work @eriknordmark -- but are we embarking on the end-to-end journey?

authors: eriknordmark rvs

repo: lf-edge/eve


text:
Multi-substitution fails on Android

Strings with multiple substitutions, i.e. "Hello %s, how is your %s?", fail on Android with the following error:

Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?

Android expects the substitutions to be numbered. Adding formatted="false" before the name attribute on the  tag here seems to resolve the issue, but I'm not sure if it has other consequences.

Thank you, I've patched the plugin, it should work. You may need to delete the platforms directory to ensure a fresh build.

authors: agisboye lfabreges

repo: lfabreges/nativescript-localize


text:
🛑 Acceso Clientes is down

In fd61ff0, Acceso Clientes (https://intranet.samsa.com.ar/apex/f?p=1000) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Acceso Clientes is back up in 952d09b.

repo: lgimenezdev/samsanet


text:
lgtm discontinued?

What's the deal?  I see 'ARCHIVE' in the project description and every other project in the org says 'DEPRECATED'.  lgtm.co says the service is discontinued.
Did I miss an announcement somewhere that LGTM is dead?  Lots of people use LGTM.  It would be nice to have some type of announcement explaining what's going on.
Thanks

It was sold. There are however forks being actively maintained. cc @tboerger

Currently we are maintaining a version, but I don't know how long we will continue that.

Do any of the forks provide the github integration like lgtm.co did? If not, is there something that people can contribute to make it possible?

Thank you for the update.

Are the installation docs and such still hosted anywhere? The pointers in the README just lead to the "discontinued" page.

@strawd currently we got a fork of the docs within our go-gitea github org, but that will be dropped sooner or later

authors: albertsj1 bradrydzewski strawd tboerger waldyrious

repo: lgtmco/lgtm


text:
MbedTLS support for est-client

This library currently supports OpenSSL library; however, it is a good thing to have mbedTLS support. My team at Schneider Electric have added support of mbedTLS into this EST library which we are using EST client with openXPKI CA Server. We want to contribute back into this repo. We will prepare the Pull request after we finalize the coding standard.

Hi, will be great to have the compatibility with mbedTLS (currently I haven't the time to implements the missing PKCS7 functionality).
I'll waiting for the pull request to integrate it!

authors: PorchhayBE lgtti


text:
Can't open daily note

Before Submitting: Double-check that you are running the latest version of the plugin. The bug might have already been fixed 😄

Describe the bug
Cannot open existing daily note. Create a daily note file by clicking on a day of the calender view without an existing file, then clicking on the same day won't open the file either. And it prompts "Unable to create  new file"
Steps to reproduce

Go to '...'
Click on '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environment (please specify)
Windows
[Windows/macOS/Linux]
Obsidian Version v0.11.9
Theme (if applicable):
If the bug is visual, please provide the name of the Community Theme you're using.

Hi @zhxrrb, sorry to hear your running into trouble with the plugin. To figure out what went wrong could you send me two things?

A screenshot of your daily note settings
A screenshot of the Devtools > Console after you try to create a note

The devtools should show a more complete error message with what went wrong and why it's not finding your notes correctly.

How to open the developer tools
On MacOS
Press Command Shift I
On Windows
Press Control Shift I

Here is the daily note setting.

And I made a screen recording to show the problem. I create today's daily note using calender, then close it. Clicking today's number on calender cannot direct me to the existing file  when it already exists.
https://user-images.githubusercontent.com/41381435/113797552-13e23080-9784-11eb-8cf4-672d18d88a61.mp4

Oh I see the issue. I am using a date parsing library that might not be able to interpret the DDDo in your date format when searching for notes matching a particular date. I'll try to fix this this afternoon. Thanks for the screenshots!

Thanks. Actually I changed my filename format and set the DDDo in the yaml part of my daily note, which satisfies my needs too. By the way, calender plugin is an awesome plugin. Appreciate your work.

Hello @liamcain I too have the same issue. I click on the date but it does not open a new note. I have attached the screen shot to the daily notes setting below.

Hi @justresearch547, Obsidian forbids using colons in filenames : since it's an illegal character in many filesystems. I recommend using a different symbol such as a dash in your date format (e.g. YYYY-MM-DD) to avoid issues.

Thank you so so much @liamcain !! This has solved the issue!!
P.S: Your plug in extremely helpful! Thank you so much for creating it! :)

authors: justresearch547 liamcain zhxrrb

repo: liamcain/obsidian-calendar-plugin


text:
引入FBRetainCycleDetector后查看不了强引链

可能是 FBRetainCycleDetector 未检测到，FBRetainCycleDetector 主要是辅助排查，如无法排查建议人工排查。

收到~~

authors: Detachments liangdahong

repo: liangdahong/AMLeaksFinder


text:
请问怎么修改字体

请问怎么修改字体

你仔细看下项目README

authors: liangjingkanji ltfred

repo: liangjingkanji/DrakeTyporaTheme


text:
频繁的下拉刷新不起作用

您好，我有个疑问，如果我第一次下拉刷新成功后，再快速的下拉刷新发现不起作用了？？
因为onUIReset（）方法还没走，能实现频繁的下拉刷新也可以吗？？？如果可以，请告诉我一个idea，谢谢了。

see #72

repo: liaohuqiu/android-Ultra-Pull-To-Refresh


text:
能否提供和swift有关的面试题？

我看了都是和objc有关的面试题，能否提供和swift有关的面试题？谢谢

只能一点一点加了，目前我都没有在实际工作中使用过 S
wift，估计要等到 Swift 5 之后有了稳定的 API,到时候我会仔细研究一下

authors: CocoaDebug liberalisman


text:
Fixed a bug because % doesn't behave like mod with negative numbers.

It cause reach orientation to choose the long rotation over the short rotation under some circumstances.

Thanks, you're right. :+1:
Just added the method wrapAngleAroundZero to the ArithmeticUtils class that fixes this issue without using the double modulo which is somewhat expensive. Apart from rounding errors, it should yield the same results.

No problem. I'm using extensively this library and it's really great. Unfortunately, I extend your library using Scala so I'm not able to contribute a lot :/

authors: atollF davebaol

repo: libgdx/gdx-ai


text:
Header only: box API design

This MR proposes API for getting metadata boxes in the decoder.
It is integrated with the event based system the decoder uses,
using the JXL_DEC_BOX event to indicate a new box.
Boxes are output to a byte buffer owned by the user, similar to the
recompressed JPEG output.
Boxes can be gotten in an uncompressed mode or in a raw mode. For
non-brob boxes, these modes are the same. For brob boxes, the standard
mode automaticlaly decompresses them, the raw mode returns them as-is.

It might be useful to add a (currently hypothetical) example application that uses this new API. For example an application that takes a jxl and dumps the XMP metadata to a file. Or an application that takes a jxl and produces a new jxl where all the compressed boxes are uncompressed (say so they can be processed by 'dumb' metadata tools).
I think the API as it is described here is OK, but it would be instructive to have an example application to see if we're not missing something.
Also (not for this pull request, obviously), I think (as we have discussed before) we should add a simpler high-level API that doesn't do things in the streaming+events way but that you just give a filename or memory pointer and gives you an image buffer + uncompressed metadata blobs without you having to worry about memory allocation and all that. For simple applications, it would be good to have a convenient high-level one-shot API that you can use very easily, something like
char *filename;
uint8_t *display_profile; // points to an ICC profile describing the display space, or nullptr for sRGB
uint8_t *rgba; // will contain 8-bit interleaved RGBA data, possibly multiple frames
JxlBlobs *blobs;  // struct that contains a list of tuples of (blobtype, data, data_size)
size_t w, h;
JxlAnimInfo *animinfo; // struct that contains nb of frames and frame duration

JxlRetCode = JxlSimpleDecodeRGBA8(filename, display_profile, rgba, blobs, &w, &h, animinfo);
if (JxlRetCode != JxlOK) { ... } // oops, something went wrong
if (animinfo->nb_frames > 1) { ... } // render as an animation
// yay we have an image we can put on the screen
JxlBlob exif = JxlGetBlob(blobs, "Exif");
if (exif.size > 0) {
  MyViewerAppShowExifMetadata(exif.data, exif.size);
}

It might be useful to add a (currently hypothetical) example application that uses this new API. For example an application that takes a jxl and dumps the XMP metadata to a file. Or an application that takes a jxl and produces a new jxl where all the compressed boxes are uncompressed (say so they can be processed by 'dumb' metadata tools).
I think the API as it is described here is OK, but it would be instructive to have an example application to see if we're not missing something.
Also (not for this pull request, obviously), I think (as we have discussed before) we should add a simpler high-level API that doesn't do things in the streaming+events way but that you just give a filename or memory pointer and gives you an image buffer + uncompressed metadata blobs without you having to worry about memory allocation and all that. For simple applications, it would be good to have a convenient high-level one-shot API that you can use very easily, something like
char *filename;
uint8_t *display_profile; // points to an ICC profile describing the display space, or nullptr for sRGB
uint8_t *rgba; // will contain 8-bit interleaved RGBA data, possibly multiple frames
JxlBlobs *blobs;  // struct that contains a list of tuples of (blobtype, data, data_size)
size_t w, h;
JxlAnimInfo *animinfo; // struct that contains nb of frames and frame duration

JxlRetCode = JxlSimpleDecodeRGBA8(filename, display_profile, rgba, blobs, &w, &h, animinfo);
if (JxlRetCode != JxlOK) { ... } // oops, something went wrong
if (animinfo->nb_frames > 1) { ... } // render as an animation
// yay we have an image we can put on the screen
JxlBlob exif = JxlGetBlob(blobs, "Exif");
if (exif.size > 0) {
  MyViewerAppShowExifMetadata(exif.data, exif.size);
}

Adding an example is a good idea, done!
I have not yet integrated the example in the build script because it of course can't yet link

authors: jonsneyers lvandeve

repo: libjxl/libjxl


text:
trace the scope as a JSON object

This is a different implementation of #45, that leaves the name of a scope a string. Instead, when tracing, we parse the name and determine the scope.
Closes #45.

We might want to cache the parsed scope class in the scope itself, not sure if it has any perf implications.

That would almost be #45 then...


text:
[Roadmap][Move] Documentation

This issue tracks a set of documents that we would like to develop related to the Move compiler, VM, and related components before launch.

[x] Specification of Libra/Move adapter, including VM runtime implementation
[x] Events
[x] VM runtime implementation
[x] Other documentation updates

Note that this issue does not include documentation for the Move source language, which is a larger effort that we will track separately.

I'm removing the list item here for documenting multicurrency and compliance features. We're planning to do that along with adding specifications in the Move modules, so we don't need to track it separately here.

We are going to consolidate the specification document with the VM runtime implementation document.

We're still working a spec for the Libra/Move adapter and documentation for events, but we've finished writing docs on gas, accounts, and transaction types. I am marking the "Other documentation" task as complete.

We have a draft document describing Events out for review (not yet published). Marking that item as complete.

The Move Adapter (and VM) specification will continue to be developed over time, but we've got something in place for v1 now, so I'm going to close out this task.

repo: libra/libra


text:
Add dirty flag in resolution

Solves https://github.com/libratbag/libratbag/issues/436
I was only able to check in my Steelsereis Rival 310. Please test in other mice.

Thanks for the input. I guided myself mostly from the other dirty flag checks. I will make the necessary changes when I get home.

I only left the check on the steelseries driver.

Can you squash the patches and force push a new patch?
The sum of the two patches create a white space change in gskill.
The change in ratbag_old_write_profile should also be reverted.

@phomes done.

Hum, weird. Can someone restart the CI test?

repo: libratbag/libratbag


text:
no sound output (most of the time)

Hi, I built librespot with the hope of having a spotify connect client on my linux arcade cab. It seems to work fine since it connects, authenticates and shows other clients (like my desktop computer and mobile phone). Whenever I try to play a track, however, it loads and the remote client shows it as it's playing, but I get no sound most of the time. The few times it works I only get sound for a few seconds (tipically 2-3, sometimes for a fraction of a second), but most of the time no sound at all. Also when this happens I am unable to quit librespot (ctrl+c) and I have to kill the process instead.
I am attaching the output from a session on which I got no sound at all. Note at the end how it gets the ^C and the last message is Shutting down player thread ..., however it stays there indefinitely without ever returning control.
librespot.log

I've had similar problems, have you tried muting and unmuting your alsa outputs?

I think I've had this as well I thought it was some thing I had done elsewhere. Ill look tonight and see if I can reproduce it again.

From the ALSA I think you have a configuration issue on your Linux system. Those errors are not from Librespot but from portaudio calling into ALSA.
A fix was merged today to better respond to Ctrl-C. But your problem could be that Librespot hangs on ALSA not working properly.

Ok, please look at your pulse audio config too, or try using the ALSA backend instead of pulseaudio

I don't use pulse audio at all, just plain old alsa

Sorry, I meant portaudio which is mentioned in your log. If you only use ALSA, you can change backend in Config.toml

Gotcha. But isn't portaudio actually required by librespot as a cross-platform, higher level audio interface?

It is not required afaics. Idk

ok, so a few updates. I just pulled the latest version and rebuilt. ctrl+c now works as expected, and switching to the ALSA backend (as opposed to PortAudio) solved the audio issue. However there is a noticeable delay between what the Spotify client says and what's playing: when playing a song it can take about 15 seconds for it to actually play, but the client time mark starts moving ahead as soon as I hit 'play'. Also, play/pause commands have a delay of about 2-3 seconds. FWIW I'm testing with the iPhone Spotify App as client, connected to my home Wi-Fi network. The machine where the librespot client is running is directly hooked up to the same LAN segment via Ethernet. I don't have any other noticeable delays on regular network operations from the same computer.

authors: ComlOnline idevsoftware lrbalt machsFuel

repo: librespot-org/librespot


text:
Problem Compiling a device to work with SmartIR

working with a bk72xx board cbu
I have a problem when i try to compile a device to work with smartir
i need to add a service api:
api:
  services:
    - service: send_raw_command
      variables:
        command: int[]
      then:
        - remote_transmitter.transmit_raw:
            code: !lambda 'return command;'

but when i do i get this error:
|-- Image 1: raw_firmware.elf
/data/cache/platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: .pioenvs/ir-gel/src/main.cpp.o: in function `esphome::api::UserServiceBase<std::vector<long, std::allocator<long> > >::encode_list_service_response()':
/data/build/ir-gel/src/esphome/components/api/user_services.h:35: undefined reference to `esphome::api::enums::ServiceArgType esphome::api::to_service_arg_type<std::vector<long, std::allocator<long> > >()'
collect2: error: ld returned 1 exit status
|-- Generated file not found: .pioenvs/ir-gel/raw_firmware.elf
*** [.pioenvs/ir-gel/raw_firmware.elf] Error 1
========================= [FAILED] Took 102.21 seconds =========================

tried same code with a esp8266 and everything compiles perfect, also if i take that part away also compiles, just not working with that api

I'm getting this too with my CBU based IR Blaster.

authors: Shadowtrance jbrandek

repo: libretiny-eu/libretiny


text:
Assessment of the difficulty in porting CPU architecture for SDL-mixer

Hello everyone! I am working on implementing a tool to assess the complexity of CPU architecture porting. It primarily focuses on RISC-V architecture porting. In fact, the tool may have an average estimate of various architecture porting efforts.My focus is on the overall workload and difficulty of transplantation in the past and future,even if a project has already been ported.As part of my dataset, I have collected the SDL-mixer project. I would like to gather community opinions to support my assessment. I appreciate your help and response! Based on scanning tools, the porting complexity is determined to be  simple, with a small amount of code related to the CPU architecture in the project.  Is this assessment accurate?Do you have any opinions on personnel allocation and consumption time？ I look forward to your help and response.

Correct, SDL_mixer is written in very portable C: it runs on many architectures unmodified.
@wangyuliu
Can you please stop sending these automated messages? They are very similar to spam. The issue tracker is for issues. For questions and/or discussions, use the discourse server instead.

authors: madebr wangyuliu


text:
希望能实现一些需求

是否可以实现
1、搜索项目名称，目前只能搜索文档内关键词，不能搜索项目名称，当项目数量较多时，有时找起来不怎么方便；
2、如果上述第一点能够实现，搜索出来的项目点击进入，是否可以在右上角多一个【设置】按钮（当然设置入口外观可以是其他方式），以便直接进行项目设置（是设置而非编辑）。因为项目一旦多了，只能去我的项目里面翻页一页一页的翻，找到了项目才可以设置，不怎么方便。

目前用户反馈这个问题的比较少。等有时间或需求用户较多的时候再实现。


text:
如何在编辑中添加本地图片时，生成图片地址报错，无响应

请按照一下格式提交issue，谢谢！

你当前使用的是哪个版本的 MinDoc(godoc_linux_amd64 version)?
v2.0

你当前使用的是什么操作系统?
chrome

你是如何操作的？
进入页面+编辑+添加图片+添加本地图片

你期望得到什么结果?
点击添加图片链接，生成图片地址，大佬的doc.iminho.me是可以的。cdn图片地址

当前遇到的是什么结果?
点击无响应

Refused to display 'https://doc.jinxm.club/api/upload?identify=qianduanlean&guid=1561013604276' in a frame because it set 'X-Frame-Options' to 'deny'.

是不是因为我把静态资源放CDN了导致了这个问题，如何解决这个或者配置这个

上传文件是通过iframe实现的，你的服务器输出了X-Frame-Options头，标识不准在iframe中上传文件。


text:
Serde minor refactor

Initially I thought about providing a mirroring API for ReplicationBuffer, something like read_array_len, read_entity_data_len, read_change, but it started to look even worse. So I decided to keep everything as is for now.
But I'm keeping some minor changes that improve the readability of the current solution: renaming, documentation, and completely hiding write_entity (shouldn't and isn't used externally).

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (94be336) 0.00% compared to head (622172b) 95.53%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #82       +/-   ##
===========================================
+ Coverage        0   95.53%   +95.53%
===========================================
  Files           0       13       +13
  Lines           0      874      +874
===========================================
+ Hits            0      835      +835
- Misses          0       39       +39

Files
Coverage Δ

src/client.rs
88.27% <100.00%> (ø)

src/server/replication_buffer.rs
99.12% <100.00%> (ø)

... and 11 files with indirect coverage changes

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

authors: Shatur codecov-commenter


text:
itest: add missing build tag

Avoid building itests when building for a release.

I don't think we should add build tags to each file, as that makes it a bit harder to use (for example, the itest files aren't compiled anymore when running the unit tests, which is sometimes handy to detect compilation errors early).
Because the release binary shouldn't have any reference to the itest package at all, it will not be built by default.
So something is wrong and the offender seems to be proof/aperture.go. That needs to be moved to the itest package, then we resolve the original issue.

Replaced by https://github.com/lightninglabs/taproot-assets/pull/378.

authors: guggero jharveyb

repo: lightninglabs/taproot-assets


text:
Add database versioning

Currently, there isn't an upgrade mechanism in place within the database which makes the current schema rigid and upgradeable. To remedy this, a new bucket should be added to the database (metaBucket) which stores key that house meta-data related to the current/version state of the database.
The createChannelDB method should be modified to create this new bucket+key during initializing. In a similar vein, when opening the database, the dbVersionKey should be read from the metaBucket and compared against some compile-time constant which stores the latest known database version. If the two versions differ (after some future database update/migration), logic should be inserted to convert the old format to the newly defined format. Additionally, it may be advisable to fist make a complete copy of the current database using bolt db's WriteToMethod as a fail-safe in case of bugs or failures during the database migration.

I will grab this one

Closed by #64.

authors: AndrewSamokhvalov Roasbeef

repo: lightningnetwork/lnd