text:
Have a look at Boost.Function and Boost.bind to address event system implementation

http://www.boost.org/doc/libs/1_45_0/doc/html/function.html
http://www.boost.org/doc/libs/1_45_0/libs/bind/bind.html

After going through Chapter 9 of Modern C++ Design book, I've decided to keep the smart pointers strategy to be able to keep the polymorphic behaviour of the objects being casted down from event listeners.

repo: drgomesp/Fibula


text:
Attribute check instead of logout string

People may use this project as their starter and they may rename "Logout" to something in their own language.

Thanks for the PR!

source: gharchive/pull-request

authors: Aristona brandyscarney

repo: driftyco/ionic-conference-app

license_type: permissive

license_source: bigquery


text:
Button example in List code shows an old button style

This is real obscure, but on this page, http://ionicframework.com/docs/api/directive/ionList/, the example code for swipe to show buttons has this:

Edit

And is shown as red in the demo. button-info is no longer valid as a button class. It should be button-assertive.

This can be closed now

source: gharchive/issue

authors: cfjedimaster perrygovier

repo: driftyco/ionic-site


text:
Bug: Error in History code.

Hi, this happens sometimes, but is there in our app repeatable.
TypeError: Cannot set property 'forwardViewId' of undefined
    at Object.IonicModule.factory.register (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:42502:45)
    at IonicModule.controller.self.register (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:47175:38)
    at updateView (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:50834:23)
    at IonicModule.directive.compile (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:50818:9)
    at invokeLinkFn (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:16019:9)
    at nodeLinkFn (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:15531:11)
    at compositeLinkFn (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:14887:13)
    at nodeLinkFn (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:15526:24)
    at compositeLinkFn (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:14887:13)
    at nodeLinkFn (http://localhost:1337/bower_components/ionic/js/ionic.bundle.js:15526:24) <ion-nav-view animation="slide-left-right" class="view-container" nav-view-transition="android">

The issue is in this line of code.
     if (viewHistory.backView && historyId == viewHistory.backView.historyId && currentStateId == viewHistory.backView.stateId && url == viewHistory.backView.url) {
        for (x = 0; x < hist.stack.length; x++) {
          if (hist.stack[x].viewId == viewId) {
            action = 'dupNav';
            direction = DIRECTION_NONE;
            hist.stack[x - 1].forwardViewId = viewHistory.forwardView = null;
            viewHistory.currentView.index = viewHistory.backView.index;
            viewHistory.currentView.backViewId = viewHistory.backView.backViewId;
            viewHistory.backView = getBackView(viewHistory.backView);
            hist.stack.splice(x, 1);
            break;
          }
        }
      }

the  hist.stack[x - 1] is null.
i actually did not debug it to find out why. but it seems to happen only when traversing back and foreward on the history.
Result is, that the page stays empty.

Greetings @piffie!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

This is fixed now in the nightly builds.

@adamdbradley - what commit was this fixed? We have this issue but we are running Beta-14.  I'm hoping that I can cherry pick this fix since RC has some breaking changes for us.

I found the commits:
https://github.com/driftyco/ionic/commit/bcc4eebfcaca1858a0c2b75c1da24ddce5dd9f50
and
https://github.com/driftyco/ionic/commit/2885258d1299f9c648650548e08f58f049c57447

authors: DEllingsworth Ionitron adamdbradley piffie

repo: driftyco/ionic

license: mit


text:
Any way to make Slides speed (Duration of transition between slides) depend on drag speed?

When I drag Slide very fast and release, the Slide is still moving with 300ms duration. It look not natural like native app. Anyway to work around with this?
And maybe should add an options for disable the bounce at the start and end slide.
Best regards,

Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum. Thanks for using Ionic!


text:
Instagram sharing

Hi
I'm using $cordovaInstagram for sharing images captured from camera or chosen from library.
And I found a strange behavior (may be bug):
I use input:file to choose image, it goes to web-server (script makes watermark on image), than it returns as base64 string and I send it to Instagram. It works fine when I choose image from library to upload, but when I capture image $cordodaInstagram opens Instagram and Instagram fails.
Does anyone has any suggestions to resolve it?

Greetings @SergeyKuzmich!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.

Hi
Issue is not fixed, I guess, but I know that it is issue of Instagram Plugin. By docs it requires base64 encoded image and there is no note that image must have PNG type. The problem appears when I tried to give plugin encoded JPG image.
Thank you.

authors: Ionitron SergeyKuzmich

repo: driftyco/ng-cordova

license: MIT

license_source: github-api


text:
[BUG]: MySQL introspect generation/non idempotent generation

What version of drizzle-orm are you using?
0.28.6
What version of drizzle-kit are you using?
0.19.13
Describe the Bug
Running drizzle-kit introspect:mysql gives scheme output that is not valid, and forces manual edits in the Typescript schema:

Incorrectly generated index names (none, instead of real names)
Incorrect value on non-null values
If you run the drizzle-kit generate:mysql again - you'll get a migration

sample table creation:
create table test_table
(
    id         int auto_increment
        primary key,
    some_key   int                                   not null,
    some_value int                                   null,
    timestamp  timestamp default current_timestamp() not null
);

create index test_table_some_key_index
    on test_table (some_key);

create index test_table_some_value_index
    on test_table (some_value);

running drizzle-kit introspect:mysql
export const testTable = mysqlTable("test_table", {
	id: int("id").autoincrement().notNull(),
	someKey: int("some_key").notNull(),
	someValue: int("some_value").default('NULL'),
	timestamp: timestamp("timestamp", { mode: 'string' }).default('current_timestamp()').notNull(),
},
(table) => {
	return {
		someKeyIdx: index().on(table.someKey),
		someValueIdx: index().on(table.someValue),
	}
});

Issue with .default('NULL'):
Argument of type 'string' is not assignable to parameter of type 'number | SQL '

Issue with someKeyIdx: index().on(table.someKey),
Expected 1 arguments, but got 0.

Running drizzle-kit generate:mysql will create a migration, when the values already correct:
ALTER TABLE `test_table` MODIFY COLUMN `id` int AUTO_INCREMENT NOT NULL;--> statement-breakpoint
ALTER TABLE `test_table` MODIFY COLUMN `some_key` int NOT NULL;--> statement-breakpoint
ALTER TABLE `test_table` MODIFY COLUMN `some_value` int;

Expected behavior

Correct typescript definition of generated table:

export const testTable = mysqlTable("test_table", {
	id: int("id").autoincrement().notNull(),
	someKey: int("some_key").notNull(),
	someValue: int("some_value"),
	timestamp: timestamp("timestamp", { mode: 'string' }).default('current_timestamp()').notNull(),
},
(table) => {
	return {
		someKeyIdx: index("test_table_some_key_index").on(table.someKey),
		someValueIdx: index("test_table_some_value_index").on(table.someValue),
	}
});

Idempotent migration. It shouldn't create a new migration on a newly introspected table

Environment & setup
Mariadb: 10.10.2-MariaDB-1:10.10.2+maria~ubu2204
npm:
"mysql2": "^3.6.1"
"drizzle-orm": "^0.28.6"
"drizzle-kit": "^0.19.13"
node: v16.20.2

I'm having the exact same issue.

Same issue

Same issue

should not be an issue on latest(0.30.0+), if it's still an issue - please reopen

Im sorry but i still got the same error with Mysql when I run npx drizzle-kit pull
I have
  "dependencies": {
    "dotenv": "^16.4.7",
    "drizzle-orm": "^0.38.2",
    "mysql2": "^3.11.5"
  },
  "devDependencies": {
    "@types/aws-lambda": "^8.10.0",
    "@types/node": "^18.0.0",
    "drizzle-kit": "0.30.1",
    "typescript": "^5.0.0"
  }

authors: AndriiSherman DeForce alan345 estubmo

repo: drizzle-team/drizzle-orm


text:
[FEATURE]: Add a column.mapWith that applies to every query - $onSelect

Describe what you want
There are cases where a column might always be decoded in a certain way, so instead of adding .mapWith(myMapper) to every query, we can instead add $onSelect on table declaration that essentially adds mapWith to every query implicitly.
function decodeValue(value: number): string {
  // Decode logic here...
  return decoded;
}

const table = pgTable('table', {
  encoded: integer().notNull().$onSelect(decodeValue)
});

const result = await db.select().from(table); // { encoded: string }[]

This functionality can also complement the feature request mentioned in #2870, leading to Drizzle incorporating a "global" custom encoder and decoder for certain columns.

I can see and try to pick this enhancement


text:
Relaunch on error's behavior?

Continuing off from this trantor issue, it seems if drogon has the relaunchOnError option enabled, it interferes with other libraries and causes them to crash, and it completely disables trantor::ConcurrentTaskQueue::runTaskInQueue, which in turn stopped all database operations.
What is the behavior of that option? It interfered with nanomq's concurrency model too once it got turned on, and started causing crashes.

Just being curious, how would drogon interfered with NanoMQ, our parallel computing framework is pure C implemented, not base on drogon.
^_^

@JaylinYu I have nanomq (my fork) statically linked within the same executable as drogon, and whenever I had nanomq perform a publish message, it crashed and stated something about non reentrant locks or mutexes.
After disabling Drogon's relaunchOnError, it went back to normal

relaunchOnError starts a new processing using fork.
The parent process monitors the child process, and starts a new one when it dies. The child process runs the framework logics.
The fork syscall may mess up with opened files and sockets. That might be the problem.

Is it normal that it interfered with trantor::ConcurrentTaskQueue::runTaskInQueue?

'relaunchOnError ' is not a method that can rescue your program from failing. It acts just like systemd, which will restart the program again when it dies.
Everything will become obsolete after relauching.

Yeah I'll have to perform some tests to find out if that runTaskInQueue triggers on an empty project.
On the project which this issue occurred the runTaskInQueue function just didn't do anything, with no bugs present in the actual code within the lambdas being ran by runTaskInQueue or the code before and after calling runTaskInQueue.
I'll do the test on an empty project and report back whether it gets called

@Mis1eader-dev I misunderstood your situation. I thought you runTaskInQueue stop working after relauching, but actually it never works.
I never use the ConcurrentQueue. It uses a mutex and a conditional variable, and I guess fork may break it.
I sugguest you disable the relaucnOnError and use systemd instead. The side effects of this option is not fully tested against all components.

I recommand to use async or coroutine apis, so you don't need an task queue.
If you are using something that only has sync api, you might need a task queue.
The EventLoopThreadPool should be enough for most cases. It's disadvantages is that workloads of different threads may become uneven if you put lots of jobs with different load in it.

I do use a synchronous database API, namely rocksdb, so trantor::ConcurrentTaskQueue is the right tool for the job I presume.
Will keep this issue open in case other people notice trantor::ConcurrentTaskQueue::runTaskInQueue not doing anything.

repo: drogonframework/drogon


text:
Add local design review comments

Notes on the schematic and pcb design as review. May not want to merge these directly, rather use them as "review comments" and close when all are addressed.

CC @bobmcwhirter @lulf

repo: drogue-iot/burrboard


text:
Fix problems reported by linters

This PR fixes a few problems reported by golangcgi-lint.
This PR contributes to #264.

https://github.com/dromara/carbon/actions/runs/12288731902

authors: deining gouguoyin

repo: dromara/carbon


text:
Test ResultEnum in soul-common

add test for ResultEnum in soul-common
// Describe your PR here; eg. Fixes #687

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #770 (c658836) into master (e2bbb97) will increase coverage by 0.06%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #770      +/-   ##
============================================
+ Coverage     68.41%   68.48%   +0.06%
- Complexity     1373     1374       +1
============================================
  Files           261      261
  Lines          5734     5734
  Branches        606      606
============================================
+ Hits           3923     3927       +4
+ Misses         1457     1453       -4
  Partials        354      354

Impacted Files
Coverage Δ
Complexity Δ

...java/org/dromara/soul/common/enums/ResultEnum.java
100.00% <0.00%> (+100.00%)
1.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

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

authors: codecov-io rockpig

repo: dromara/soul


text:
DROOLS-794 Advance time in SessionPseudoClock number of times in a row

Added method for time advancement in SessionPseudoClock number of times in a row.

Can one of the admins verify this patch?

Thanks for the PR but I am not sure what is the use case for this? A call to advance time by 10sec+10sec for instance, will have the same effect AFAIKT than a call to advance time by 20sec, as all the callbacks are executed in order during clock advance.
Also, the patch seems to imply moving time backwards would be ok, but it would cause problems all over the place as there is an assumption that time only moves forward.
Please let me know if I am missing something.

This raised during discussion with @mariofusco about this PR [1]. 10 + 10 is not the same as 20 only. Because i.e. timer events (rule timers, etc.) can catch up each time time is advanced. As an example - the test from the mentioned PR uses advanceTime(40) and it fails. When it uses a for cycle for advancing time by 1 with iteration count 40, it passes. Please ask @mariofusco for more info.
To the backwards time movement. I did this on purpose because it can be done also now in present advanceTime method (i.e. advanceTime(-40, SECONDS)). But I can change this for this PR if it's needed.
[1] https://github.com/droolsjbpm/drools/pull/440/files

ok to test

Changed the backwards time possibility. Now it throws IllegalArgumentException.

@baldimir I will discuss this with @mariofusco , but from your description, it seems to me we need to fix the advance time call, not create a new one... let me talk to him first.

The advance of the pseudo-clock for a specific number of times in a row is necessary only in very specific use-cases. Due to its limited usage and considering that the same effect can be obtained with a trivial for-loop, after a chat with @etirelli we decided to not add this new method to our API.

authors: baldimir etirelli kie-ci mariofusco psiroky

repo: droolsjbpm/drools


text:
Simplify and refactor TaskProcessContextPresenter to be unit testable

To make it possible to write more UI (presenter) unit tests in the future the following design principles from MVP pattern (more verbosly described by Procelli in [1]) should be respected:

isolate all interaction with widgets in the View (= don't leak widgets into presenters via view methods like
BadView { TextField getXYZInput() } -> GoodView { void setXYZInput(String)}; because it makes mocking much harder.
view should be as dumb as possible and contain primarily getters and setters of primitive values
don't rely on view to store intermediate state - store it in Presenter instead
don't put application logic into view, put it in presenter instead. That way more can be tested in unit tests.

[1] https://docs.google.com/document/d/11V4ebVL2F-OySZrcAbfUvJyqugoit-Or2t6T7mGPsMo/edit

Jan sorry for the delay.. I'm looking into this one now

@jhrcek thanks! merged in master

authors: Salaboy jhrcek

repo: droolsjbpm/jbpm-console-ng


text:
PLANNER-686: Workbench: Move Planner-specific code from kie-wb-common to optaplanner-wb

Move PermissionTreeSetup & WorkbenchTreeProvider classes to kie-wb, as they directly reference downstream content (Planner).

Part of:
https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/pull/309
https://github.com/droolsjbpm/kie-wb-common/pull/540
https://github.com/droolsjbpm/optaplanner-wb/pull/118
https://github.com/droolsjbpm/kie-wb-distributions/pull/396

@wmedvede @ederign IIRC you two probably know the most about "Docks".. could you please review?

Closing as this blocks multiple smaller issues that will be addressed separately. Will reopen once a better solution is found.

authors: manstis mcimbora

repo: droolsjbpm/kie-wb-common


text:
+c interfaces returning +o +j

Hi,
the current code generation is broken for cases where a +c interface returns +j or +o interfaces.
Given:
extern = interface +j +o {...}
intern = interface +c { foo(): extern; }

On the JNI side this tries to call Extern::toJava(), which does not exist, and for Obj-C it tries to static_pointer_cast from Extern to ExternObjcProxy, which is mostly likely not the case and causes undefined behavior.
I think the easiest fix would be to disallow returning +j +o interfaces from +c. Supporting this properly would be a bit more involved I think.

This is fixed now, right?

Well, there is an assert(dynamic_cast...) in there now, so if someone screws up it shows up in a debug build, but with asserts disabled it's just a plain static_cast. Question is does this suffice or should dynamic_cast stay there and make a fallback solution kick in if it fails.

I think what we should probably do is dynamic_cast a reference, so we'll get a bad_cast if the type is wrong (essentially, always asserting). I made that change in my proposed fix for #81 - in particular, see the new wrapping/unwrapping code here: https://github.com/dropbox/djinni/commit/f0aec36d99764ca62903ba58fbb9c4af9c886c54#diff-61477e190b9e4951838edf1fa955dd19R216
This mirrors the existing Java scheme, though with slightly less template trickery (see https://github.com/dropbox/djinni/blob/master/support-lib/jni/djinni_support.hpp#L438 and particularly _unwrapJavaProxy)
Closing this out; let's discuss in #81.

repo: dropbox/djinni


text:
DDEV config pantheon does not change provider

Describe the bug
Setting up a new project with ddev config pantheon properly sets the provider value, but re-configuring a running project (e.g. after accidentally running ddev config) does not update the provider value
To Reproduce
Steps to reproduce the behavior:

ddev config
ddev start
ddev config pantheon
The provider value in config.yaml still says default

Expected behavior
DDEV should update the provider value to pantheon
Screenshots

Version and configuration information (please complete the following information):

Host computer OS and Version: macOS 10.15.4
Docker version: 19.03.8
ddev version: 1.14.1
config.yaml contents: see screenshot

Additional context

I confirm that, thanks!

authors: andy-blum rfay

repo: drud/ddev


text:
Add /opt/phpstorm-coverage directory to web-container

The Problem/Issue/Bug:
https://github.com/drud/ddev/issues/3920
How this PR Solves The Problem:
This PR adds the PHPStorm required directory /opt/phpstorm-coverage  to the web-container with read/write premissions for the cli user.
As discussed in #3920, a Docker volume would allow persistence of the coverage reports, but I don't think this is necessary. Therefore, adding the directory was the easiest solution.
PHPStorm does allow loading coverage data from previous runs, but it does not load it automatically at startup. This is a pretty hidden feature and I don't think anyone would use it.
Manual Testing Instructions:
The directory /opt/phpstorm-coverage should exist right after ddev start.
Your default user (not root) should be able to read / write files in this directory.
Automated Testing Overview:
I don't think tests for this are needed.
Related Issue Link(s):

https://github.com/drud/ddev/issues/3920

Release/Deployment notes:
Please don't forget to remove the reference to my tagged container in versionconstants.go.

OK, thanks. I assume this PR is working for you with PhpStorm + coverage, so I'll pull it when you're ready.

Yes it's tested with PHPStorm of course. You can merge whenever you like.
Please note that there is a dependency to #3754 as xdebug has to be enabled to generate a coverage report at all.

Rebased and pushed to drud/ddev-dbserver.

authors: nico-loeber rfay


text:
Use Localdev Foundation certs and notarization

Signing and notarization are switching to Localdev Foundation, no more drud.
Also adds --team-id, which shouldn't be necessary with current settings.

Closing in favor of #12


text:
[Backport] some docs PRs

Backport #2701, #2698, #2699.

:+1:

this PR is wrong, it includes lookup functionality that is not actually in 0.9.0. closing for now.

reopened with dynamic lookup config stuff removed.

Snuck in this change too: #2747

authors: fjy gianm

repo: druid-io/druid


text:
Menu not showing authenticated links

Describe the bug
When authenticated with Drupal via OAuth2, DruxtMenu is not displaying any menu items that are restricted to the authenticated user.
I have confirmed that the links are accessible in the JSON:API Menu Items output.
To Reproduce
...
Expected behavior
The DruxtMenu plugin needs to pass the @nuxtjs/axios instance to the DruxtMenu instance.
Additional context
Prototype:
  <% if (typeof options.axios === 'object') { %>
  // Axios settings.
  options.axios = <%= JSON.stringify(options.axios) %>
  <% } else { %>
  // Use the @nuxtjs/axios module Axios instance.
  options.axios = app.$axios
  <% } %>

DruxtMenu 0.19.2 and 0.20.0 released; menus requests are authenticated, and will be refreshed if user is logged in a site is statically generated.


text:
Set is not explicitly required

When trying the examples from the README in a fresh IRB shell, it results in a NameError: uninitialized constant Dry::Initializer::Builder::Set error, because Set has not been explicitly required.
This PR adds the explicit requirement.

Thank you!

authors: nepalez rickenharp

repo: dry-rb/dry-initializer


text:
Struct gets coerced into **kwargs (when *args is also present)

Why would we ever define Dry::Struct#to_hash method? Its purposed for implicit coercions like in the following example. We should define #to_h only, I guess.
Example:
[1] pry(main)> HueBridge.new.lights.last
=> #<HueBridge::Light id=15 name="Sofa" on=true brightness=144 hue=7676 saturation=199>
[2] pry(main)> a = HueBridge.new.lights.last
=> #<HueBridge::Light id=15 name="Sofa" on=true brightness=144 hue=7676 saturation=199>
[3] pry(main)> def b(*c, **d)
[3] pry(main)*   puts "args"
[3] pry(main)*   p c
[3] pry(main)*   puts "kwargs"
[3] pry(main)*   puts d
[3] pry(main)* end
=> :b
[4] pry(main)> b(1, a)
args
[1]
kwargs
{:id=>15, :name=>"Sofa", :on=>true, :brightness=>144, :hue=>7676, :saturation=>199}
=> nil
[5] pry(main)> b(a, 1)
args
[#<HueBridge::Light id=15 name="Sofa" on=true brightness=144 hue=7676 saturation=199>, 1]
kwargs
{}
=> nil

Monkey-patch fix:
class Dry::Struct
  undef_method :to_hash

  def to_h
    self.class.schema.keys.each_with_object({}) do |key, result|
      result[key] = Hashify[self[key]]
    end
  end
end

But I am not 100% of the implications of it

Yeah, I know that, this is how ruby works, they really messed with it IMO. Structs are supposed to work as hashes so this is expected. I wouldn't go with a monkey patch though, you can subclass Dry::Struct and use it as a base where you need
class MyStruct < Dry::Struct
  undef_method :to_hash
end

^also, you don't need to override to_h, undefining of to_hash doesn't affect it.

You say "Structs are supposed to work as hashes", but I wonder where is this requirement coming from.
In Ruby neither Struct nor OpenStruct implements the implicit conversion method to_hash. Both implement the explicit conversion method #to_h
More on the differences between implicit and explicit conversion methods here.
irb(main):001:0> A = Struct.new(:a, :b)
=> A
irb(main):002:0> def iii(**kwargs)
irb(main):003:1> puts kwargs
irb(main):004:1> end
=> :iii
irb(main):005:0> iii A.new(1,2)
Traceback (most recent call last):
        3: from /Users/sevos/.rbenv/versions/2.5.0/bin/irb:11:in `<main>'
        2: from (irb):5
        1: from (irb):2:in `iii'
ArgumentError (wrong number of arguments (given 1, expected 0))
irb(main):006:0> iii A.new(1,2).to_h
{:a=>1, :b=>2}
=> nil
irb(main):009:0> iii OpenStruct.new(a: 1, b: 2)
Traceback (most recent call last):
        3: from /Users/sevos/.rbenv/versions/2.5.0/bin/irb:11:in `<main>'
        2: from (irb):9
        1: from (irb):2:in `iii'
irb(main):010:0> iii OpenStruct.new(a: 1, b: 2).to_h
{:a=>1, :b=>2}
=> nil
irb(main):007:0>

I am afraid that there may be more cases when the struct may be deconstructed into a hash prematurely or accidentally causing us to lose the information about the type of the data it carries. Please tell me what are the cases you find this behaviour useful? Maybe there is really more good than harm...
Personally I use Dry::Struct as a base class for business domain entities and it's more of a better-Struct than a better-Hash, so I would prefer not to deconstruct that objects easily. Of course there should be a way to convert it to a hash, when needed.
Thanks for the idea for the base class, but now I worry more about dry-struct compatibility with other libraries, which may deconstruct it accidentally.

This is not a requirement, this is a design choice. One quick example is rom's interface for writing data, it relies on coercions made by Hash[value], anything hash-like can be passed in, including structs.

Thanks for clarification

For the record, this also just bit me. I was definitely not expecting my entity object to deconstruct into a hash because I had a keyword arg in a composite class initializer.

FYI: This does not even require **kwargs, regular keyword arguments are enough.
def display(*items, color: true)
  puts "items: %p color: %p" % [items, color]
end

Calling this with a Dry::Struct causes: ArgumentError : unknown keywords: item_attribute, item_attribute2, item_attribute_x

authors: abrthel flash-gordon kke sevos

repo: dry-rb/dry-struct


text:
Add subnet id to the subnet resource name, because two subnets can have the same name

I have multiple VPCs and the subnets names are the same, which is causing an issue when I try to import them with terraforming.

LGTM :+1:


text:
Raspotify-OSMC not working

Dear, I have installed Raspotify on OSMC (build November 2020) as reported in this faq but as you can see on the following screenshot it is not available. Why?
I have installed raspotify as reported in the following lines:
curl -sSL https://dtcooper.github.io/raspotify/key.asc | sudo apt-key add -v -
echo 'deb https://dtcooper.github.io/raspotify jessie main' | sudo tee /etc/apt/sources.list.d/raspotify.list
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get -y install raspotify

Test:
osmc@osmc:~$ systemctl status raspotify
 raspotify.service - Raspotify
   Loaded: loaded (/lib/systemd/system/raspotify.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-12-17 10:39:13 CET; 16min ago
  Process: 670 ExecStartPre=/bin/mkdir -m 0755 -p /var/cache/raspotify (code=exited, status=0/SUCCESS)
  Process: 671 ExecStartPre=/bin/chown raspotify:raspotify /var/cache/raspotify (code=exited, status=0/SUCCESS)
 Main PID: 672 (librespot)
   Memory: 788.0K
   CGroup: /system.slice/raspotify.service
           `-672 /usr/bin/librespot --name raspotify (osmc) --backend alsa --bitrate 160 --disable-audio-cache --enab

Dec 17 10:39:13 osmc systemd[1]: Starting Raspotify...
Dec 17 10:39:13 osmc systemd[1]: Started Raspotify.
Dec 17 10:39:13 osmc librespot[672]: [2020-12-17T09:39:13Z INFO  librespot] librespot (raspotify v0.14.0) 6aac8a6 (20
Dec 17 10:39:13 osmc librespot[672]: [2020-12-17T09:39:13Z WARN  libmdns] Failed to register IPv6 receiver: Os { code
lines 1-14/14 (END)

Screenshot smartphone Android
Thanks a lot for your support.

Not sure, tbh. Can't comment on your particular network setup. I've upgraded the underlying librespot package. Hopefully that helps? If not, please comment and we'll investigate.

authors: dartoi dtcooper

repo: dtcooper/raspotify


text:
🛑 Autoadvice is down

In 1a55093, Autoadvice (https://autoadvice.cl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Autoadvice is back up in 15b4dad.


text:
Golang monkey patching library utilized against terms of license

The Golang monkey patching library, https://github.com/bouk/monkey, is being utilized directly against its license:

Copyright Bouke van der Bijl
I do not give anyone permissions to use this tool for any purpose. Don't use it.
I’m not interested in changing this license. Please don’t ask.

It is also archived and not maintained.

it's removed in newest version. thx

repo: dtm-labs/dtm


text:
Implement combine_substructure helper

Based on the one from libsyntax.

@mystor has a promising implementation in abomonation_derive which he plans to factor into a separate crate. I will keep this ticket open until we have something to point people to. Thanks Michael!

Just one remark though: @mystor's implementation currently only allows bindings to be named __binding_{i} where i starts at 0.
In order to implement something like PartialEq you need two matches like that:
    fn eq(&self, __arg_0: &Foo<T>) -> bool {
        match *__arg_0 {
            Foo { foo: ref __self_1_0, bar: ref __self_1_1 } =>
            match *self {
                Foo { foo: ref __self_0_0, bar: ref __self_0_1 } =>
                true && (*__self_0_0) == (*__self_1_0) &&
                    (*__self_0_1) == (*__self_1_1),
            },
        }
    }

(this is what derive(PartialEq) actually generates)
It would be nice if such a helper allowed for a custom placeholder name.

Firstly, I split my first implementation into its own crate, you can find it here: https://github.com/mystor/synstructure or on crates.io.
@mcarton: I don't currently have support for that, but you can kinda do it yourself, by generating your own let bindings in the outer scope, so you would generate code which looks something like:
    fn eq(&self, __arg_0: &Foo<T>) -> bool {
        match *__arg_0 {
            Foo { foo: ref __binding_0, bar: ref __binding_1 } => {
                let __self_1_0 = __binding_0;
                let __self_1_1 = __binding_1;
                match *self {
                    Foo { foo: ref __binding_0, bar: ref __binding_1 } =>
                    true && (*__binding_0) == (*__self_1_0) &&
                        (*__binding_1) == (*__self_1_1),
                }
            }
        }
    }

I'll admit that that is pretty gross though. I don't really want to add a ton of arguments to these methods because that feels like it will clutter up the interface. It might be easier to just add some sort of helper method which just "renames" the bindings for you with let bindings (I can't imagine those have any performance overhead after optimization). If such a method existed, an eq derive would look something like the following (I haven't tested this, so no promises that I didn't screw something up):
fn derive_partialeq(input: TokenStream) -> TokenStream {
    let source = input.to_string();
    let mut ast = syn::parse_macro_input(&source).unwrap();
    // We need to copy the AST for the inner body, because match_substructs
    // takes a mutable reference. It's kinda gross, and optimized for the case
    // where we want to be able to remove attributes from within the callback.
    // I might change this in the future.
    let mut ast2 = ast.clone();

    let body = match_substructs(&mut ast, bind, |outer_bis| {
        let (renaming, outer_bis) = rename_bindings(outer_bis, "outer");
        let inner_body = match_substructs(&mut ast, bind, |inner_bis| {
            let mut zipped = outer_bis.into_iter().zip(inner_bis.into_iter());
            let eqs = zipped.map(|(x, y)| quote!((#x == #y)));
            quote!(true #(&& #eqs)*)
        })
        quote!{
            #renaming
            match *self { #inner_body }
        }
    }):

    let name = &ast.ident;
    let (impl_generics, ty_generics, where_clause) = ast.generics.split_for_impl();
    let result = quote! {
        #ast

        impl #impl_generics PartialEq for #name #ty_generics #where_clause {
            fn eq(&self, __arg_0: &Self) -> bool {
                match *__arg_0 { #body }
            }
        }
    };

    result.to_string().parse().unwrap()
}

authors: dtolnay mcarton mystor

repo: dtolnay/syn


text:
Stable Rust: Cannot find the parse_file function

Hi,
It fails to compile in stable Rust, with a simple example.
Should it work in stable Rust? Maybe I'm missing some features in Cargo.toml?
Thanks,
Cargo.toml
[dependencies.syn]
version = "0.11"
default-features = false
features = ["full", "printing", "parsing"]

Error
error[E0425]: cannot find function `parse_file` in module `syn`
  --> src\main.rs:13:20
   |
13 |     let ast = syn::parse_file(&src).expect("Unable to parse file");
   |                    ^^^^^^^^^^ did you mean `parse_item`?

Sample program:
extern crate syn;

use std::fs::File;
use std::io::{self, Read};

fn main() {
    let mut src = String::new();
    let mut file = File::open("sample.rs").expect("Unable to open source file");
    file.read_to_string(&mut src).expect(
        "Unable to read input file",
    );

    let ast = syn::parse_file(&src).expect("Unable to parse file");
    println!("{:#?}", ast);
}

PS > rustc --version
rustc 1.22.1 (05e2e1c41 2017-11-22)

0.11 does not have a parse_file function. Check out https://dtolnay.github.io/syn/syn/ for the complete 0.11 API doc. I believe the parse_file in master used to be called parse_crate but it was renamed because it really only parses one file.

Great,
It works, thank you!!!

Link is broken, running into this today.

authors: 6D65 dtolnay lancejpollard


text:
improved remove dubbogo config file

What this PR does:
improved remove dubbogo config file
Which issue(s) this PR fixes:
#3
Fixes #

Codecov Report

Merging #37 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop      #37   +/-   ##
========================================
  Coverage    79.43%   79.43%
========================================
  Files            6        6
  Lines          214      214
========================================
  Hits           170      170
  Misses          33       33
  Partials        11       11

Impacted Files
Coverage Δ

pkg/config/config_load.go
53.94% <0.00%> (ø)

Continue to review full report at Codecov.

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

Can it merge?

authors: codecov-io zhangshen023 zouyx

repo: dubbogo/dubbo-go-proxy


text:
Ensure fragment result listeners respond to correct tab

Task/Issue URL: https://app.asana.com/0/488551667048375/1202829664561720/f
Description
Ensures that the fragment result listeners are not overwritten by another tab, which would mean the results get delivered to the most newly-created tab, which isn't always the current tab.
Steps to test this PR
tbd

Current dependencies on/for this PR:

develop

PR #2205   👈

This comment was auto-generated by Graphite.

repo: duckduckgo/Android


text:
Scrolling causes the WebView to resize and lose previous page Snapshot

Some sites do not work very well with these resizes, they will resize elements based of the height of the webview, wich causes laggy resizes of those elements while scrolling. See the examples below, one is in DuckDuckGo, the other in Safari

Thanks for this.  Is it something you'd like to fix as part of Hacktoberfest maybe?
For anyone else looking at this, please note that fix will need to be very focused.  An significant change to the UI or UX will not be accepted.  Likewise, no changes to copy will be accepted either.
Thanks in advance to whoever picks this up!

This issue was interesting to look at since I experienced a similar one before. The issue was caused by the content view being stretched when the bars are hidden. I tried some fix while I am not sure about the UX you are expecting. Here is a recording of it.
https://user-images.githubusercontent.com/9004747/111905721-122c2380-8a88-11eb-8368-ee97875c1b86.mp4

Hi @iAmNaz - it appears no one responded to you.  Apologies for that and thanks for commenting.
Does your fix also fix the problem with the previous page preview disappearing?  Steps:

Go to a page
Click on a link
Scroll to hide the scroll bars
Start swiping back

Expect: Screen should show previous page
Actual: Screen is blank
Thanks!

@brindy
The previous page is there when swiping back. I can still see subtle zooming and it seems to happen when my mouse cursor is above an image.
https://user-images.githubusercontent.com/9004747/124354904-0cc2a580-dc41-11eb-81c9-a20cbba6b69f.mp4

Thanks for the video.
In that video you don’t scrolling to hide the bars after the navigation, but before swiping back. Does the previous page still appear if you do?
The final piece is that the scroll position of the previous page is also lost to test this.

Load a site
Scroll down
Click a link
After the navigation a roll to hide the bars
Swipe back

Expected: Previous page should be visible while swiping and the previous page should stay the scroll position.
Do you have the code somewhere so I can try it?
Thanks again!

Would be better if you could try this https://github.com/iAmNaz/iOS/tree/fix-webview-scroll-resizing.

Thanks for sharing.  Your branch is massively out of date so it's not going to merge, but just to confirm it looks like the only line of significance is this one:
https://github.com/duckduckgo/iOS/pull/919/files#diff-23f45a546b44732f442ecaff49aa3d7bbdb120eadd9cf312fc61b8d5181b6ad0R361
I can try that against the main build and will let you know.  Thanks!

Fyi, the NOS site has a new design where the header no longer resizes based on the viewport height. I've build a more simple test case: https://corne.vercel.app/height

@cornedor if possible, could you add an image in that box to mimic the NOS sample? I think it is not very obvious with a solid color if the bounds changed. Thanks

I've added an image background with roughly the same styling

I was able to find a solution that works well for this website: https://corne.vercel.app/height
Basically, I updated the top and bottom containerView constraints to safeArea.top and superview.bottom respectively, and then I control the scrollView.contentInset based on the visibility of the omniBar and the toolbar.
But when I tested on websites like https://www.w3schools.com/css/css_image_gallery.asp the fixed bar on top gets behind the omniBar which makes me think that the solution is to resize the content of the scrollView and manage the contentInset at the same time. Testing https://corne.vercel.app/height on Safari shows that the content size changes but the image keeps its size.
@cornedor is it possible to add a fixed element on top and bottom of the page so that I can test?

@brenoxp I've added two fixed elements to the page. I've also clarified what the pixel values are, and added the height of the container. Now it is more clear that only the window height changes, but not the height of the container element.

Test

@brindy I am eager to help with this issue, is the status of the ticket up-to-date and still help wanted?

fwiw the OP's problem was fixed. Thanks and sorry for not keeping this up to date.

authors: brenoxp brindy cornedor gneil90 iAmNaz nazmariano

repo: duckduckgo/iOS


text:
Make atb test consistent and not affected by UI animation timings

Task/Issue URL: https://app.asana.com/0/856498667320406/870033543252928
Description:
ATB tests flow can be affected by timing: sometimes 'add to dock' dialog was being dismissed, sometimes not. Before attempting any other tweaks, I'd like to make it work in a consistent way.
Steps to test this PR:

Run ATB tests for both centered search and regular variants.
Tests should pass.

Internal references:
Software Engineering Expectations
Technical Design Template

Thanks @brindy!


text:
Refinements to Properties

Is your feature request related to a problem? Please describe.
I suggest these refinements to the properties especially useful when comparing folders/files.
Currently I just can see the size of one file but not for folders and or when selecting more than on folder/file.
Describe the solution you'd like
I would like to see the overall size of a folder and/or files (and the count of folders and files inside this folder).
Describe alternatives you've considered
Also when choosing more than one file and/or folder, I would like to see the count of files and the overall size.
Additional context
This is how it is handled in file explorer:

This proposal seems to include all the information we need so I will go ahead and approve this for development.

Would be really nice, if you would also add an option to the right-click menu to calculate the size of current selected folders directly inside the list view (per folder) , so that you are afterwards able to sort all files and folders based on their size.
If you change something inside this folder, or navigating away from the current path, I imagine that it gets resetted.

Have the points brought up in this issue been resolved in the recent updates? If not please let me know which things still need to be addressed, thank you 🙂.

@yaichenbaum All points are addressed for single files but they don't work for a selection of files/folders which is still very important imo.
Also the size of a folder is missing from this dialog (when showing the properties of only one folder).

@szaimen The size for folders is a different issue, #645 that we will work on in the future. I will keep this issue open since you mentioned you still need it to support showing the properties with the total size of all the selected items.

This issue has been resolved with recent pull requests.

authors: szaimen yaichenbaum


text:
error trying to read disk SSD

Hi...first of all Great job!!
I found an error trying to read an SSD (sent pic)....I have the last version (0.6.6.0) on the other hand the behavior to press any key don't show me any folder  🤔 I'll would be grateful if you explain to me how to do that... Good luck
I

@deredita25 Thanks for the report, there is a potential fix in the develop branch for the drives not reading correctly.

on the other hand the behavior to press any key don't show me any folder

Are you talking about the feature that hitting a key will jump to a folder or file that starts with the character?

Yes I am !! that feature isn’t work…. Sent from Mail for Windows 10 From: Yair AichenbaumSent: viernes, 7 de febrero de 2020 14:05To: duke7553/files-uwpCc: deredita25; MentionSubject: Re: [duke7553/files-uwp] error trying to read disk SSD (#399) @deredita25 Thanks for the report, there is a potential fix in the develop branch for the drives not reading correctly.on the other hand the behavior to press any key don't show me any folderAre you talking about the feature that hitting a key will jump to a folder or file that starts with the character?—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

Yes I am !! that feature isn’t work…. Sent from Mail for Windows 10 From: Yair AichenbaumSent: viernes, 7 de febrero de 2020 14:05To: duke7553/files-uwpCc: deredita25; MentionSubject: Re: [duke7553/files-uwp] error trying to read disk SSD (#399) @deredita25 Thanks for the report, there is a potential fix in the develop branch for the drives not reading correctly.on the other hand the behavior to press any key don't show me any folderAre you talking about the feature that hitting a key will jump to a folder or file that starts with the character?—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

@deredita25 Can you please let us know if this is still an issue in the v0.7.1 Store release?

@deredita25 We made some changes with v0.7.1 which hide unsupported drives. Please reopen if this is still an issue.


text:
How to run COLMAP with ground truth camera poses on DTU?

Hi there, thanks for sharing your work!
In your paper, it is said that the sparse point clouds are generated by COLMAP with ground truth camera poses.
Does ground truth camera poses means the cameras.npz of each scan in DTU?
If so, how to pass cameras.npz to COLMAP for reconstruction? Looks like the gen_poses function does not accept cameras.npz as an input.
Thanks.

Thanks for your attention to our work!
Here's a link on how to use ground-truth cameras in COLMAP.


text:
脚本运行报错

TypeError:Cannot read property "0" from underfined  ***.js:467

same error

官网 https://ai.2123451.xyz/
2023.06.06 支持滑动验证，学习强国和法宣在线 自动学习，强国多用户版本测试十个账号无卡顿。每天42-44分左右，单个账号运行时间10分钟完成
自动学习强国 答题、挑战答题、双人四人、多账户切换。
安卓软件下载地址
https://wwsj.lanzout.com/imduU0ye0t2f
密码:1234

authors: CaptainGod qikenao remember19890604


text:
delete_object method return 403 SignatureDoesNotMatch Error.

Describe the bug
I can use put_object method and get_object method successfully，but when I delete_object method return 403 SignatureDoesNotMatch Error.
error desicribe
thread 'uploader::tests::upload_file' panicked at src/uploader.rs:108:59:
called `Result::unwrap()` on an `Err` value: Http(403, "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Error>SignatureDoesNotMatch<RequestId>tx0000000000000005782b9-0066164d99-57823ee-object-store-pool</RequestId><HostId>57823ee-object-store-pool-object-store-pool</HostId></Error>")
stack backtrace:

To Reproduce
test code like this
 #[tokio::test]
    async fn upload_file() {
        let region = Region::Custom {
            region: "".into(),
            endpoint: ENDPOINT.to_string(),
        };

        let credentials = Credentials::new(
            Some(&ACCESS_KEY.to_string()),
            Some(&SECRET_KEY.to_string()),
            None,
            None,
            None,
        )
        .unwrap();

        let mut bucket = Bucket::new(&BUCKET_NAME.to_string(), region, credentials)
            .unwrap()
            .with_path_style();

        let path = "test.txt";
        let content = Bytes::from_static(b"test content");
        let response_data = bucket.put_object(path, content.chunk()).await.unwrap();

        assert_eq!(response_data.status_code(), 200);

        let resp = bucket.get_object("test.txt").await.unwrap();
        assert_eq!(resp.status_code(), 200);

        let resp = bucket.delete_object("test.txt").await.unwrap();
        assert_eq!(resp.status_code(), 200);
    }

cargo.toml file
[package]
name = "aps"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# -- Web
axum = "0.7.5"
tower-http = { version = "0.5.2", features = ["catch-panic", "trace"] }
http = "1.1.0"
# -- Serde
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.68"
# -- Async
tokio = { version = "1.0", features = ["full"] }
# -- Log
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# -- Database
sea-orm = { version = "0.12.15", features = [
    "debug-print",
    "runtime-tokio-native-tls",
    "sqlx-mysql",
    "mock",
] }

rust-s3 = { version = "0.33.0" }

# -- Others
toml = "0.7.4"
bytes = "1.6.0"
chrono = "0.4"
clap = { version = "4.5.4", features = ["derive"] }
tempfile = "3.10.1"

[dev-dependencies]
tower = { version = "0.4", features = ["util"] }
http-body-util = "0.1.0"
reqwest = "0.12.3"

Expected behavior
i expected delete successfully .thanks!
Environment

Rust version: [ 1.76]
lib version [0.33.0"]

@maojinhua, can't really be sure, DELETE has a pretty good test coverage, so I'd expect it to work. Not sure where you're running this, but a "" region will likely cause problems...

authors: durch maojinhua


text:
🛑 Mention Bot is down

In 38a6d6f, Mention Bot (https://backend.isbotdown.com/bots/mentionbot) was down:

HTTP code: 200
Response time: 117 ms

Resolved: Mention Bot is back up in 438b7d7 after 1 hour, 12 minutes.

repo: durof/status


text:
🛑 Mention Bot is down

In 143be9a, Mention Bot (https://backend.isbotdown.com/bots/mentionbot) was down:

HTTP code: 200
Response time: 106 ms

Resolved: Mention Bot is back up in 4db5f0b after 3 hours.


text:
🛑 Mention Robot is down

In 2069b30, Mention Robot (https://backend.isbotdown.com/bots/mentionrobot) was down:

HTTP code: 200
Response time: 86 ms

Resolved: Mention Robot is back up in f960612 after 1 hour, 46 minutes.


text:
🛑 Mention Robot is down

In 9ab473e, Mention Robot (https://backend.isbotdown.com/bots/mentionrobot) was down:

HTTP code: 200
Response time: 156 ms

Resolved: Mention Robot is back up in 518c7b0 after 1 hour, 49 minutes.


text:
Fixes on agent suggestion and blinking cursor

AgentSuggestion: fix click on dropdown wihout handle, set dropdown origin to auto
Blinking cursor: works also for list items and nested content

Done and closing this PR

repo: dust-tt/dust


text:
Slack empty replies: better error message

Context: https://dust4ai.slack.com/archives/C050SM8NSPK/p1688409395649149
Sometime, the slack library returns an undefined replies object here (despite their typing): https://github.com/dust-tt/dust/blob/main/connectors/src/connectors/slack/temporal/activities.ts#L429
This PR tests for that and produce a more human understandable error. This error is unhandled so it will trigger a monitor if it appears transiently for long enough as is generally the case, but at least it'll be easier to understand.

r? @PopDaph as runner :)


text:
make build error

Hi All
I am trying to setup jetson-inference on Jetson Nano. However, I am facing an error to build after making the repository without any error:
[44%] Linking CXX shared library ../aarch64/lib/libjetson-utils.so
/usr/bin/ld: cannot find -IGL
collect2: errir: ld returned 1 exit status
Can anyone help me to fix this problem?
Thanks.

Hi @Fariborzz, can you check your libGL.so file with this command?
$ ls -ll /usr/lib/aarch64-linux-gnu/libGL.so*

The output should look like this:
lrwxrwxrwx 1 root root     14 Aug 15  2018 /usr/lib/aarch64-linux-gnu/libGL.so -> libGL.so.1.0.0
lrwxrwxrwx 1 root root     14 Aug 15  2018 /usr/lib/aarch64-linux-gnu/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root 972968 Aug 15  2018 /usr/lib/aarch64-linux-gnu/libGL.so.1.0.0

In particular, verify that your libGL.so.1.0.0 library is also 972968 bytes in size.
If it appears differently, then your libGL.so must have gotten overwritten or corrupted, perhaps by another package that you installed.
In that case, you can use a fresh SD card image, or you can try restoring it from a copy of my working libGL.so that I have uploaded here:   https://nvidia.box.com/s/cuqracl8465p3uo0mhv4l5108mwaeuti

Thank you @dusty-nv . I use a fresh SD card image and my problem is solved.

Hi @Fariborzz, can you check your libGL.so file with this command?
$ ls -ll /usr/lib/aarch64-linux-gnu/libGL.so*

The output should look like this:
lrwxrwxrwx 1 root root     14 Aug 15  2018 /usr/lib/aarch64-linux-gnu/libGL.so -> libGL.so.1.0.0
lrwxrwxrwx 1 root root     14 Aug 15  2018 /usr/lib/aarch64-linux-gnu/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root 972968 Aug 15  2018 /usr/lib/aarch64-linux-gnu/libGL.so.1.0.0

In particular, verify that your libGL.so.1.0.0 library is also 972968 bytes in size.
If it appears differently, then your libGL.so must have gotten overwritten or corrupted, perhaps by another package that you installed.
In that case, you can use a fresh SD card image, or you can try restoring it from a copy of my working libGL.so that I have uploaded here: https://nvidia.box.com/s/cuqracl8465p3uo0mhv4l5108mwaeuti

I have same issue and tried your recommendation and here is my results:
lrwxrwxrwx 1 root root     41 Jun 11 16:05 /usr/lib/aarch64-linux-gnu/libGL.so -> /usr/lib/aarch64-linux-gnu/tegra/libGL.so
lrwxrwxrwx 1 root root     14 May 10 05:17 /usr/lib/aarch64-linux-gnu/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root 972968 May 10 05:17 /usr/lib/aarch64-linux-gnu/libGL.so.1.0.0

Is there anyway to fix it without using a fresh SD card image?
Also, how can I restore the libGL.so? I am pretty new in this!

For me installing the following pre-requisite packages resolved the issue 👍
$ sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgflags-dev

repo: dusty-nv/jetson-inference


text:
Performing transfer learning on other models

Can we perform transfer learning other than mobilenet ssd?

Hi @berkantay, the upstream pytorch-ssd has SSD/SSD-Lite implementations of MobileNetV1, MobileNetV2, and VGG, but I have not tested the others.

You can certainly use PyTorch for training lots of other models, but the code would come from outside of this project.

authors: berkantay dusty-nv


text:
Implement cqm partitioning algorithm and tests

Makes use of ExactCQMSolver (https://github.com/dwavesystems/dimod/pull/1037) in tests.

And while you're at it, probably good to use the nicer [==0.10.8, ~=0.10.0] syntax.

Need to rebase against the main branch. I think the current .circleci/config.yml, requirements.txt and setup.py do not need to change.

authors: arcondello necaisej

repo: dwavesystems/dwave-networkx


text:
Refresh docstrings & examples (part 1)

Some wording for cutoff classes left open for next chunk

Codecov Report

Merging #212 into master will decrease coverage by 3.24%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
- Coverage   95.08%   91.84%   -3.25%
==========================================
  Files          18       18
  Lines         712      711       -1
==========================================
- Hits          677      653      -24
- Misses         35       58      +23

Impacted Files
Coverage Δ

dwave/system/composites/embedding.py
97.05% <ø> (-1.48%)
:arrow_down:

dwave/system/composites/cutoffcomposite.py
96.55% <ø> (-0.03%)
:arrow_down:

dwave/system/samplers/dwave_sampler.py
64.35% <ø> (-18.82%)
:arrow_down:

dwave/system/flux_bias_offsets.py
81.48% <0%> (-3.71%)
:arrow_down:

dwave/system/cache/database_manager.py
96.18% <0%> (-0.77%)
:arrow_down:

Continue to review full report at Codecov.

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

authors: JoelPasvolsky codecov-io

repo: dwavesystems/dwave-system


text:
Case-sensitive searching

Add a checkbox to make search case-sensitive.
This should be off by default.
To Do

[ ] Write test(s).
[ ] server / database
[ ] API / querystring
[ ] HTML
[ ] CSS

Decided not to do this for now because this is covered by regular expressions. Might change our minds later.

Reopening this so that users have the ability to specify case-insensitive search in regular expressions.

repo: dwhieb/Nisinoon


text:
words_alpha.txt contains non-English words

I did not review the entire file but found a bunch of words like avestruz and mudar (Portuguese words), biznagas (Spanish word) and bizzarro (Italian word) in the words_alpha.txt file. I don't think these exist in the English language so what gives? I'm sure there's more of them...

see #108

authors: Orivoir jcnmsg

repo: dwyl/english-words

license: Unlicense


text:
Performance regression in TypedObject + Graph

@dmaretskyi is this the fixed?

authors: dmaretskyi jessmartin

repo: dxos/dxos


text:
[composer] update welcome screen to align with new website

Hopefully should also resolve https://github.com/dxos/dxos/issues/8328

Here are two examples of the Composer gate page to match the new website design.
Composer - https://dxos-org.webflow.io/gate
DXOS - https://dxos-org.webflow.io/hex-gate
Prob need to review it to make sure it is what we want and then decide how to implement this.

authors: Raymmar wittjosiah


text:
fix(automerge): Fix storage adaptor

Motivation / Background

This Pull Request ...
Details

Additional information

Current dependencies on/for this PR:

main

PR #5369   👈

This stack of pull requests is managed by Graphite.


text:
[Snyk] Security upgrade @backstage/theme from 0.0.0-use.local to 0.1.1

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

plugins/vault/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Cross-site Scripting (XSS) SNYK-JS-COOKIE-8163060
  44

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Scripting (XSS)

🎉 Snyk hasn't found any issues so far.
✅ security/snyk check is completed. No issues were found. (View Details)
✅ license/snyk check is completed. No issues were found. (View Details)
✅ code/snyk check is completed. No issues were found. (View Details)

repo: dylansnyk/backstage


text:
PrettyJson does not prettify JSON with multiple lines

When I tried to prettify a JSON file with multiple lines, Sublime Text said Extra data: line 2 ... - line 20123.
A preview of my JSON file:

Please address this! Thank you!

@davidAlfonsoHermelo @vietzerg do you have a sample set of json to test this?

Duplicate of #72
Will implement soon

authors: TheSecEng vietzerg

repo: dzhibas/SublimePrettyJson


text:
Some background images missing in generated PDF using Edge browser!

Hello,
I am using html2pdf js to convert HTML document to pdf, it includes some background images as well, but after converting to pdf that pdf document has some missing background images, but this only happens when we download pdf through MS Edge browser, all other browsers background images working fine, Any solution for that issue? really appreciate your guidance to fix this issue,
expected result

Edge browser result

//options code
var opt = {
margin:       0.2,
filename:     'sample.pdf',
image:        { type: 'png', quality: 0.95 },
html2canvas:  { scale: 2, useCORS: true  },
jsPDF:        { unit: 'in', format: 'A4', orientation: 'portrait' },
pagebreak: 	{ mode: ['avoid-all', 'css', 'legacy'] }
};
stay safe out there with this covid19 situation! hope it all turns out well!
Thank you

@dslas4ever I'm not the maintainer here, but I suspect your issue may have something to do with html2canvas, which this project heavily depends on, there are some issues related to rendering background images on edge there, I'd recommend you to check those out and see if any of those helps you.
Some potentially related issues are:
https://github.com/niklasvh/html2canvas/issues/1688
https://github.com/niklasvh/html2canvas/issues/2167
Also the page with the list of issues filtered by "edge" https://github.com/niklasvh/html2canvas/issues?q=is%3Aissue+is%3Aopen+edge
If nothing works for you I recommend you opening a new issue there too. And if something works close this one pointing to the related solution :)

@dslas4ever I'm not the maintainer here, but I suspect your issue may have something to do with html2canvas, which this project heavily depends on, there are some issues related to rendering background images on edge there, I'd recommend you to check those out and see if any of those helps you.
Some potentially related issues are:
niklasvh/html2canvas#1688
niklasvh/html2canvas#2167
Also the page with the list of issues filtered by "edge" https://github.com/niklasvh/html2canvas/issues?q=is%3Aissue+is%3Aopen+edge
If nothing works for you I recommend you opening a new issue there too. And if something works close this one pointing to the related solution :)

Thanks a lot for your reply @gabriel-felipe , I will follow that! cheers!


text:
Large size topic transmission problem [4740].

Hi
We use Client and Agent in RaspberryPi to transfer the LIDAR data in TB3.

Turtlebot3 LIDAR client

We have been using the LIDAR data of 360 degrees to 180 degrees so far as it is urgent.
But now I want to transfer all the data from the Client.
As a result of my testing, up to 240 data can be transferred without any problem. However, starting from 241, the following error occurs in Agent.
Error written data on DDS entity.

I did not calculate the exact size of the data, but when I send 240 data, it contains about 1000 bytes if I include the remaining data.
Let me know if you need more information.

Hi @OpusK,
Did you take into account the explanation provided in this issue?

Hi @OpusK,
I close the issue. If you continue with the problem, please reopen it.

Hi, @julianbermudez
This method does not work.
There may be a problem with my XML expression. So, can you give an example of how to write XML for writers and readers on the client? (including details about datawriter)

authors: OpusK julianbermudez

repo: eProsima/Micro-XRCE-DDS-Client


text:
ModifyViewVariant Clone throughs error when saving

Unable to cast object of type 'EarthCape.Module.Core.Unit' to type 'Xpand.ExpressApp.ViewVariants.ViewVariant'.
at Xpand.ExpressApp.ViewVariants.ModifyVariantsController.SynchronizeModel(Frame frame, String viewId)
at Xpand.ExpressApp.ViewVariants.ModifyVariantsController.CloneView(String id, String viewCaption)
at Xpand.ExpressApp.ViewVariants.ModifyVariantsController.CreateVariantNode(String variantCaption, String viewCaption, IModelVariants modelVariants)
at Xpand.ExpressApp.ViewVariants.ModifyVariantsController.CreateViewVariantCore(Frame frame)
at Xpand.ExpressApp.ViewVariants.ModifyVariantsController.<>c__DisplayClass19_0.b__0(Object o, DialogControllerAcceptingEventArgs args)
at DevExpress.ExpressApp.SystemModule.DialogController.Accept(SimpleActionExecuteEventArgs args)
at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

the stack is not enough to understand whats going on, you can always disable the related controller
XpandModuleBase.DisableControllers(typeof(ModifyVariantsController));
```cs

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.

authors: apobekiaris emeyke

repo: eXpandFramework/eXpand

license: MS-PL


text:
🛑 DeckM_en is down

In 4c08dda, DeckM_en ($SITE_ENDECKM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DeckM_en is back up in 401c599 after 58 minutes.

repo: eanbear/upptime


text:
Add waitForExpect functionality to earl

Maybe we can just re-export https://www.npmjs.com/package/wait-for-expect or copy the code directly https://github.com/TheBrainFamily/wait-for-expect/blob/master/src/index.ts.
It is great for testing async code and we could have a recipes section that teaches people how to do this.
And we could name the function wait

I am all for adding it - usually, I implement something similar.
Perhaps it could be more general like wait for (async) function not to throw.
IMO it's related to https://github.com/earl-js/earl/issues/68 and is a good example on a util function.

Would it be possible to integrate this with a testing framework in a way that, in case the test times out, waitForExpect would re-throw the last error, instead of failing with a generic "test timed out message"?
For me that seems to be the most painfull part when debugging tests with waitForExpect

Very interesting proposal. It would be cool to have it indeed...
Possible implementation:
0. When wait is called:

Read timeout T from mocha context
Set timeout to T + 1
Do timeout detection inside wait and rethrow the correct error

After googling for 5 minutes I couldn't find a cleaner solution but I might be wrong. CC: @boneskull

I don't understand what I'm being asked, if anything

@boneskull sorry, let me clarify: we try to build wait function that will retry a piece of code until it works (or timeouts). Something along these lines: https://www.npmjs.com/package/wait-for-expect
await waitForExpect(() => {
    expect(numberToChange).toEqual(100);
  });

If this assertion fails, mocha will simply timeout with a not very helpful message. Now, we are trying to find a way to rethrow somehow our own custom message (rethrow last error from the fn that we awaited for?).
In the previous post I presented a possible solution manipulating mocha's timeout value, It's not clean but perhaps it will work. My question is: can you think of a better way to implement this? Maybe there is a way to hook custom logic on timeout errors or something like this.
PS: earl is an assertion library that tries to be a test runner agnostic but we are focused on delivering the best possible DX for mocha.

I don't see the point of setting Mocha's timeout to a value greater than (+1) whatever your assertion function uses; you could just disable the timeout altogether (this.timeout(0)).
otherwise there are several ways to do this "automatically"--which only suppress the timeout when needed--but none that do not require the user to at least configure something or pass a command-line option. root hook plugins or a custom interface may do the job... or just set the mocha timeout reasonably higher than whatever the max timeout in the assertion uses and use that value globally

I don't see the point of setting Mocha's timeout to a value greater than (+1) whatever your assertion function uses; you could just disable the timeout altogether (this.timeout(0)).

I thought about cases when timeout happens due to reasons unrelated to the usage of wait fn. But yeah... I would prefer to avoid this at all.

otherwise there are several ways to do this "automatically"--which only suppress the timeout when needed--but none that do not require the user to at least configure something or pass a command-line option. root hook plugins or a custom interface may do the job...

Can you elaborate on how can we actually achieve this? Any docs/examples pointers would be awesome. We already require users to setup test runner integration (ie. --require "earljs/mocha" which uses mochaGlobalSetup) for some extra features so this is not a problem.

Disabling mocha test timeout once we start waiting, and the re-enabling it to the previous value after waitForExpect's promise has been resolved/rejected seems like the cleanest approach to me.
This can even be done without any additional configuration from the user.

(btw mochaGlobalSetup will be changing slightly in next major. it will run before any test files are loaded. right now it's run after files are loaded but before tests begin)

Closing this as we aren't planning to add this functionality for the foreseeable future.

authors: Marik-D boneskull krzkaczor sz-piotr

repo: earl-js/earl


text:
API keys

should probably remove them.
https://github.com/eartharoid/what2watch/blob/main/src/App.svelte

Hi. I think these are safe. I just copied the instructions from firebase.

Thanks for checking though :)

authors: DopeDealers eartharoid


text:
Request to implement a feature about betweenness_centrality

Hello, easygraph developers
I found that the betweenness_centrality function does not implement the feature of sampling k nodes to calculate the node betweenness centrality. But networkx has implemented it. This is to reduce the calculation time of obtaining the node betweenness centrality when the graph is very large. By the way, networkx does not consider how to choose k to balance the calculation time and the node betweenness centrality close to the true value. I hope you can consider this.
Thank you very much.

Thank you for your valuable suggestion!
We appreciate your insights regarding the betweenness_centrality function and the potential benefits of incorporating sampling for k nodes.
We will consider this feature for future versions to enhance performance and accuracy.

repo: easy-graph/Easy-Graph


text:
easy-mock-cli · $$.joinUrl is not a function

easy-mock-cli · $$.joinUrl is not a function
你好这个知道是什么问题吗？

用的模板是你自己开发的吗？

authors: chuangker tianyazjq

repo: easy-mock/easy-mock-cli


text:
WallSwitch set to false but still exposed to Home and working

First of all, thank you for the work done with this plugin! :)
I’m facing an issue with the Hue WallSwitch accessory. I tried to add it through homebridge but I noticed there was too much delay, so I decided to set the key “WallSwitch” to false, but it is still exposed to HomeKit, and it is also working normally. Obviously, I restarted homebridge service after editing the configuration, and also rebooted the system, but the switch is still there.
Any advice on how to remove it? Hope not to remove the plugin and start from scratch!

See https://github.com/ebaauw/homebridge-hue/wiki/Configuration for the meaning of wallSwitch.
To prevent a single resource from being exposed, use a blacklist resource link, see https://github.com/ebaauw/homebridge-hue/wiki/Resource-Links.

Sorry for the misunderstanding! I found the “WallSwitch “ line already in the default configuration and I thought it was referring to smart switches...
Anyway, I read the page about blacklisting, but do I have to create a blacklist using the ph command line, not by adding it to the configuration?
What is the syntax to do it? I want to exclude a Philips dimmer switch

See the example in the Wiki.

repo: ebaauw/homebridge-hue


text:
FIX: re-reading the typequery.mf did only read the first line.

Hello Rob,
I have imporoved re-reading of the typequery.mf as it did only read the first line.

Thanks, merging.
Note that I expect to revisit this manifest in the future in that I have thoughts about the ebean.mf file having multiple entries (giving us the ability to optionally define packages for entity enhancement, transactional enhancement and query bean enhancement).
... but yes this PR looks good, merging it - thanks.

authors: rPraml rbygrave

repo: ebean-orm/querybean-generator


text:
Broken example: proxy.js

Looks like proxy.js is broken as a default right now:

Just wanted to report so y'all are aware! 🙏

The same applies to screenshot-fullpage.js example, which also has a require()
Thanks

Dupe of https://github.com/ebidel/try-puppeteer/issues/3

authors: bnb ebidel michalstanko

repo: ebidel/try-puppeteer


text:
Block-images.js does not work

Logs print Error running your code. Error: SSL Certificate error: ERR_CERT_AUTHORITY_INVALID

See https://github.com/GoogleChrome/puppeteer/pull/1192

authors: ebidel hamadr


text:
Interpolate: Backfill nans at beginning of ts

Fix #26
This makes sure that interpolation also works for sparse time series with nans at the beginning. Example:
array([307.35974121, 307.35974121, 307.35974121, 307.35974121,
       307.35974121, 307.35974121, 307.35974121, 307.35974121,
       307.35974121, 307.35974121, 307.35974121, 307.35974121,
       307.35974121, 307.35974121, 307.35974121, 307.35974121,
       307.35974121, 307.35974121, 307.35974121, 307.35974121,
       307.35974121, 307.35974121, 298.75695583, 290.15417045,
       281.55138506, 272.94859968, 264.3458143 , 255.74302891,
       247.14024353, 263.82520549, 280.51016744, 297.19512939,
       294.65074851, 292.10636763, 289.56198675, 287.01760587,
       284.47322499, 281.92884411, 279.38446322, 276.84008234,
       274.29570146, 271.75132058, 269.2069397 , 266.66255882,
       264.11817793, 261.57379705, 259.02941617, 256.48503529,
       253.94065441, 251.39627353, 248.85189264, 246.30751176,
       243.76313088, 241.21875   , 244.45207596, 247.68540192,
       250.91872787, 254.15205383, 257.38537979, 260.61870575,
       263.85203171, 267.08535767, 266.35974808, 265.63413849,
       264.9085289 , 264.18291931, 263.45730972, 262.73170013,
       262.00609055, 261.28048096, 260.55487137, 259.82926178,
       259.10365219, 258.3780426 , 257.65243301, 256.92682343,
       256.20121384, 255.47560425, 254.74999466, 254.02438507,
       253.29877548, 252.57316589, 255.13048096, 257.68779602,
       260.24511108, 262.80242615, 265.35974121, 272.71584473,
       280.07194824, 287.42805176, 294.78415527, 302.14025879,
       308.94220947, 315.74416016, 322.54611084, 329.34806152,
       336.15001221, 342.95196289, 349.75391357, 356.55586426,
       363.35781494, 370.15976563, 376.96171631, 383.76366699,
       390.56561768, 397.36756836, 404.16951904, 410.97146973,
       417.77342041, 424.57537109, 431.37732178, 438.17927246,
       444.98122314, 451.78317383, 458.58512451, 465.3870752 ,
       472.18902588, 476.42438965, 480.65975342, 484.89511719,
       489.13048096, 493.36584473, 497.6012085 , 501.83657227,
       506.07193604, 510.3072998 , 514.54266357, 525.10781583,
       535.67296808, 546.23812034, 556.80327259, 567.36842485,
       577.9335771 , 588.49872936, 599.06388161, 609.62903387,
       620.19418612, 630.75933838, 641.32449063, 651.88964289,
       662.45479514, 673.0199474 , 683.58509965, 694.15025191,
       704.71540416, 715.28055642, 725.84570867, 736.41086093,
       746.97601318, 726.80515544, 706.63429769, 686.46343994,
       693.94025879, 701.41707764, 708.89389648, 716.37071533,
       723.84753418, 709.91827393, 695.98901367, 682.05975342,
       668.13049316, 654.20123291, 640.74268799, 627.28414307,
       613.82559814, 600.36705322, 586.9085083 , 569.68502808,
       552.46154785, 549.76888483, 547.07622181, 544.38355879,
       541.69089577, 538.99823275, 536.30556974, 533.61290672,
       530.9202437 , 528.22758068, 525.53491766, 522.84225464,
       520.14959162, 517.4569286 , 514.76426558, 512.07160256,
       509.37893954, 506.68627652, 503.9936135 , 501.30095048,
       498.60828746, 495.91562445, 493.22296143, 490.53029841,
       487.83763539, 485.14497237, 482.45230935, 479.75964633,
       477.06698331, 474.37432029, 471.68165727, 468.98899425,
       466.29633123, 463.60366821, 481.52440186, 499.4451355 ,
       517.36586914, 535.28660278, 553.20733643, 563.47075195,
       573.73416748, 583.99758301, 594.26099854, 604.52441406,
       615.4834246 , 626.44243513, 637.40144566, 648.36045619,
       659.31946673, 670.27847726, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779, 681.23748779, 681.23748779,
       681.23748779, 681.23748779])

Closed for now until we reach a consensus in #26

repo: ec-jrc/cbm


text:
🐛 Bug ➾  user with 20.04.1-Ubuntu tried taq init project and it just hangs for a while

🚥 Status (Internal Taqueria Team Use Only)

[ ] 🔬 Investigated and Verified
[ ] ⚗ Solution Identified and Designed
[ ] 🧫 Dev Implementation of Fix
[ ] 🧪 Fix Tested and Validated
[ ] 🏆 PR Merged

🆘 What happened?
I tried to set up taq on a new machine, and it just hangs on init for a while. Eventually, if you cancel, "Project taq'ified!" will appear, and the project will be created, but it takes a while
machine details
Carol:~$  uname -a
Linux mike-Inspiron-3880 5.15.0-48-generic #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

🆘 Steps to Reproduce?

do which taq  and remove any existing taq deployment
wget https://github.com/ecadlabs/taqueria/releases/download/v0.25.16-rc/taq-linux
chmod +x taq-linux
mv taq-linux taq
sudo mv taq /usr/local/bin
taq --version  (in this case taq init taq_25_16_rc)
hangs
after a few minutes, do ctrl-c, and "Project taq'ified!" will appear, and the project will be created

🪵 Relevant log output
Carol:~$ taq init my-first-project

Project taq'ified!

🐘 How impactful is this bug?
🐜 Minor annoyance
⏱ Prevalance
if they have this ubuntu perhaps
💻 Operating System
Windows -> Linux VM
🕸 System Architecture
x64
🌮 Taqueria Version
25_16_rc
🌿 Node.js Version
v18.9.0
☎ Contact Details
michaelkernaghan@ecadlabs.com
Code of Conduct

[X] I agree to follow this project's Code of Conduct

no longe reproducible

repo: ecadlabs/taqueria


text:
[Bug]: Nested contracts and relative paths to contracts do not compile correctly

What happened?
When compiling a multifile smart contract

where files are nested inside additional directories in the contracts,

OR

where the path to the files that make up the smart contract are relative paths,

do not compile.
What should have happened?
Taqueria should traverse through the directories inside the contracts folder to locate the files relevant to the smart contract.
AND
Taqueria should compile multifile smart contracts that are referenced using a relative path
Reproduction Steps:

Have a multi-file smart contract
Have the main contract in the /contracts folder
Have the additional files in a folder inside the /contracts folder
Compile the multi-file contract

Should be fixed with the contract registry @sinapsist needs to find dev ticket and close the bug.

Closing, fixed via contract registry work

authors: hu3man russellmorton sinapsist


text:
GetPacket command not interruptible

I noticed a problem with gnarl and a 754 pump with Loop. The problem is that Loop has a feature called "idlelistening" where it waits for mysentry packets. These are a GetPacket command with a timeout of 4 minutes. This calls - from what I can tell - a pretty uninterruptible "receive" command (in rfm95.c). Subsequent commands send by loop will all timeout, eventually fill up the queue, and reboot gnarl. As a result communication is a bit on/off and not very reliable in general.
My understanding is that in the rileylink firmware any additional command will cancel the ongoing get_packet (https://github.com/ps2/subg_rfspy/blob/5d1d7fb912e5334ee3388d6e6ee40805979b610d/radio.c#L366) . The code in the phone will re-issue the idlelisten command.
What I have tried to fix it is to do a
My understanding is that rfspy_command is running on the ble task and receive is on the gnarl_loop task.
My try to fix this was to do a  xTaskNotifyGive(gnarl_loop_handle) in rfspy_command (gnarl_looop_handle is the value from xTaskCreate).
Here is a typical log file
I (2169) GNARL: CmdGetPacket
D (2169) GNARL: get_packet: listen_channel 0 timeout_ms 240000
D (2169) GNARL: rfspy_command 3, queue length 0
D (60969) GNARL: timer tick 1
D (60969) GNARL: GAP event 13
D (60969) GNARL: notify for timer tick
data_access: received 7 bytes: 06 03 00 00 03 A9 80
D (61359) GNARL: rfspy_command 3, queue length 1
data_access: received 2 bytes: 01 0D
D (61419) GNARL: rfspy_command 13, queue length 2
data_access: received 26 bytes: 19 05 00 00 00 00 00 00 00 00 C8 01 00 00 A9 68 E5 96 3D 16 68 D5 55 6A 50 00
D (63489) GNARL: rfspy_command 5, queue length 3
data_access: received 26 bytes: 19 05 00 FF 00 00 00 00 00 2E E0 00 00 00 A9 68 E5 96 3D 16 94 D5 55 68 B0 00
D (66009) GNARL: rfspy_command 5, queue length 4
data_access: received 2 bytes: 01 0D
D (85869) GNARL: rfspy_command 13, queue length 5
data_access: received 26 bytes: 19 05 00 00 00 00 00 00 00 00 C8 01 00 00 A9 68 E5 96 3D 16 68 D5 55 6A 50 00
D (87999) GNARL: rfspy_command 5, queue length 6
data_access: received 122 bytes: 79 05 00 00 00 00 00 00 00 00 C8 03 00 00 A9 68 E5 96 3D 16 94 D5 72 57 15 71 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 67 10 00
D (90549) GNARL: rfspy_command 5, queue length 7
data_access: received 26 bytes: 19 05 00 00 00 00 00 00 00 00 C8 01 00 00 A9 68 E5 96 3D 16 68 D5 55 6A 50 00
D (93669) GNARL: rfspy_command 5, queue length 8
data_access: received 122 bytes: 79 05 00 00 00 00 00 00 00 00 C8 03 00 00 A9 68 E5 96 3D 16 94 D5 72 57 15 71 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 67 10 00
D (96179) GNARL: rfspy_command 5, queue length 9
data_access: received 26 bytes: 19 05 00 00 00 00 00 00 00 00 C8 01 00 00 A9 68 E5 96 3D 16 68 D5 55 6A 50 00
D (99279) GNARL: rfspy_command 5, queue length 10
data_access: received 122 bytes: 79 05 00 00 00 00 00 00 00 00 C8 03 00 00 A9 68 E5 96 3D 16 94 D5 72 57 15 71 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 67 10 00
E (101819) GNARL: rfspy_command: cannot queue request for command 5
data_access: received 2 bytes: 01 0D
E (104949) GNARL: rfspy_command: cannot queue request for command 13
data_access: received 4 bytes: 03 06 0B 77

Closed with ea646d21ab998622716f648c80310933aba1e3bd


text:
LPC845-BRK: Use hardware SPI and TMS RLE mode as JTAG output

Use #4 so that we can bit bash TMS, while TDI and TCK are controlled over hardware SPI to achieve high speeds (probably faster than the serial port can read in, to be honest).

Technically, since the LPC845 has dual SPI ports, I could actually just put one into master mode, use SCLK (as TCK) and MOSI (as TDI), feed SCLK into the second SPI port, and have its MISO (as TMS), and have TDO fed into MISO of the first SPI port.  It would be hilarious.

So manually toggled a GPIO pin to act as TMS, and did a simple RLE detection to use LPC845's SPI hardware to output TCK/TDI and clock in TDO.
It worked - but then I found that it would seem that transferring the data back via the virtual serial port sometimes drops data.  Slowing down the data rate (either by manually adding a 10-20ms pause between successive bytes while keeping SPI at max speed, or slowing the SPI port down dramatically) makes the com port send data back.
Now, is this because Win32 has a small receive buffer, and we need to increase the receive buffer size, or the CMSIS-DAP debug probe drops it?
I don't know.  But I think that I won't chase this much further - going to try develop on the STM32 board that I've got.  If this also happens on that board, then we'll look into increasing buffer sizes (as part of #2).

repo: eccoecco/recyclejtag


text:
add support for additionalTextEdits

Contributing guidelines

[X] I have read CONTRIBUTING.md
[X] I have read CODE_OF_CONDUCT.md

Module(s)
mini.completion
Description
Some lsp provide a additionalTextEdits on completion items containing useful edits like auto-imports.
nvim-cmp has support for additionalTextEdits, it would be cool if mini.completion had too.

Thanks for suggestion! I am honestly quite surprised that any people decided to use 'mini.completion' instead of other solutions. Suppose, that is a pleasant surprise, after all :)
I am not sure, if this will be a small addition to codebase. The 'mini.completion' module is already too complicated and "big" for my taste. But we now have at least some testing coverage for that module, so I am more comfortable with experimenting with new features.
I'll look into it.

@brennop , I think I managed to come up with a reasonable solution, but not sure because I couldn't find any hands-on example of additionalTextEdits in LSP servers I use. Could you, please, test the completion-additionalTextEdits branch?

Thanks for trying to implement it. I tried with tsserver and clangd, but none of them worked.
I've tried with the snippet provided here but no luck still.

Ok, I finally got time to get back at this.
I found out that pyright has auto-import support and it works for me. Here is an example:

Could you, please, try again? This time:

Make sure that you are using completion-additionalTextEdits branch. The bulletproof method is to look at file 'lua/mini/completion.lua' (with root being wherever you installed 'mini.nvim' plugin) and it should have these lines:
https://github.com/echasnovski/mini.nvim/blob/50981cd38e21da272b8cd1c97fc583510c942229/lua/mini/completion.lua#L412-L413
If no luck, could you provide a minimal example that you think should work but doesn't? I have installed 'tsserver' but have close to zero knowledge of Typescript.
If you have time and 'tsserver' still doesn't provide auto-import, could you set up pyright and try what I have tried in animaion? Create new file 'tmp.py', ensure running LSP server (can do :LspStart or :LspRestart if you are using 'nvim-lspconfig'), type accumulate or Counter, select completion item and hit <Space>.

@echasnovski I was looking for the same functionallity as @brennop but couldn't get the implementation to work with typescript. Using your above demonstration I got it to work with pyright, which is awesome, but typescript seems to ignore it.
I've created 2 files to setup a testing environment.
tsconfig.json
{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "baseUrl": "./"
  }
}

lib.ts
export function testFunction() {}

Now if you would add another file, eg: index.ts and start typing testFunction, it will show the autocomplete suggestion, but it won't auto-import.
Hope this helps.

That is certainly a great help: both 'pyright' confirmation and Typescript example. Thanks! I managed to reach the testFunction autocomplete suggestion and reproduce no auto-import. You would expect something like import { testFunction } from "./lib"; added as first line, right?
I am not sure how to deal with inconsistency between languages. Maybe typescript-language-server sends information about auto-completion in some other form, not sure. I'll try to dig a little further.

So it seems like typescript-language-server returns additionalTextEdits not after 'textDocument/completion' request (as pyright, for example) but after 'completionItem/resolve'. I'll what can be done here.

I just pushed in completion-additionalTextEdits branch what seems to be a working support of another way of supplying additionalTextEdits (in 'completionItem/resolve'). Here I made a what I think is a reasonable compromise: edits are applied if that request was already sent. That means edits will be applied if user selects completion item and waits some time (usually for information window to appear). Pretty sure that is the most support I think is reasonable to implement here.
@brennop, @SebasAren, could you, please, try this out? Especially with something other than typescript-language-server.

Thank you for the quick replies! I will be able to test this in the morning.
I think the waiting time is quite fair and I believe other completion plugins I have used had that same delay. But I'll let you know tomorrow if it works. Will also try some different lsp's.
-------- Original Message --------
On 2 May 2022, 19:19, Evgeni Chasnovski wrote:

I just pushed in completion-additionalTextEdits branch what seems to be a working support of another way of supplying additionalTextEdits (in 'completionItem/resolve'). Here I made a what I think is a reasonable compromise: edits are applied if that request was already sent. That means edits will be applied if user selects completion item and waits some time (usually for information window to appear). Pretty sure that is the most support I think is reasonable to implement here.
@.(https://github.com/brennop), @.(https://github.com/SebasAren), could you, please, try this out? Especially with something other than typescript-language-server.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

It now auto-imports from typescript! It also didn't break the pyright imports.
Seems to be working perfectly. Thank you!

That is great news! I'll wait a little bit in case other issues pop up (they shouldn't, but they always might). And also confirmation from some other LSP server (not already tested 'pyright' or 'typescript-language-server') would be nice (of course, if you already are using one).

Just tried it it out using volar, which is the Vue lsp. This worked as well. It uses typescript to resolve these imports I believe, so that was to be expected.

I decided to push this code to main. Hope it works with other LSP servers.
Thanks to both of you for suggestions and testing!

authors: SebasAren brennop echasnovski


text:
some issues while evaluating the code and creating benchmark datasets

benchmark_forest = load_data(config.benchmark_forest_path)
outpoints_trees = laspy.read(config.benchmark_forest_path).OutpointsTreeID

benchmark_forest[:, 3][outpoints_trees != 0] = outpoints_trees[outpoints_trees != 0]

####What you mean in the code is to remove all points with OutpointsTreeID equal to 0, but the benchmark dataset you gave me is not like this. How can I create my benchmark dataset?

This is the format of your benchmark dataset.

Should I change the OutpointsTreeID in the code to treeID

Hello yongmanlove,
There seems to be a misunderstanding. The OutpointsTreeID field is not relevant for creating a benchmark dataset. They are just labels belonging to trees that were not completely labeled. This is an artifact of the labeleing procedure we used. When you create your own benchmark dataset, you do not need a an OutpointsTreeID field. It only needs the fields "classification" and "treeID". To create your own benchmark dataset, simply construct the labels in the same way as in the For-Instance point clouds or L1W.
The code for evaluation will also soon be updated to enable evaluation on arbitrary labeled point clouds. So keep an eye on that.

repo: ecker-lab/TreeLearn


text:
model.submodel: remove Optional[] from parameter annotation of Annota…

…tedRelationshipElement.init to remove the ambiguity between passing None and an empty Iterable.

Looks good to me.
The reason for removing this option is to align AnnotatedRelationshipElement to the way other similar Iterables behave, as they all have no Optional in their initializer.
@FrankSchnicke, could you merge this?

authors: jkhsjdhjs s-heppner

repo: eclipse-basyx/basyx-python-sdk


text:
feat: EDR (data address) and metadata storage/cache

What this PR changes/adds
Introduces an EDR (dataaddress) cache and associated metadata storage:

introduced edr-store-spi module
introduced edr-store-core module with default implementations

In the spi three extensible interface are introduced:

EndpointDataReferenceStore: the main entry point for storing and retrieving EDR and metadata associated
EndpointDataReferenceCache subcomponent for caching EDR (DataAddress) in a secured environment
EndpointDataReferenceEntryIndex subcomponent for storing EDR metadata (assetId, agreementId, ..etc)

The default implementation of EndpointDataReferenceStore uses the two subcomponents for dealing with EDR and metadata.
A default implementation of EndpointDataReferenceCache backed by the Vault is provider as well as an in memory one for the metadata storage EndpointDataReferenceEntryIndex
Why it does that
data plane signaling, user experience
Linked Issue(s)
Closes #3973
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

Codecov Report
Attention: Patch coverage is 87.03704% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 73.43%. Comparing base (7f20ba5) to head (bf02501).
Report is 126 commits behind head on main.

Files
Patch %
Lines

.../edr/defaults/VaultEndpointDataReferenceCache.java
76.00%
5 Missing and 1 partial :warning:

...n/java/org/eclipse/edc/spi/result/StoreResult.java
0.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3978      +/-   ##
==========================================
+ Coverage   71.74%   73.43%   +1.68%
==========================================
  Files         919      966      +47
  Lines       18457    19448     +991
  Branches     1037     1096      +59
==========================================
+ Hits        13242    14281    +1039
+ Misses       4756     4702      -54
- Partials      459      465       +6

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

repo: eclipse-edc/Connector


text:
GCS transfer status checker

Feature Request
Add the status checker for the GCS transfer.
Which Areas Would Be Affected?
GCS provisioner and data plane sink.
Why Is the Feature Desired?
Without the feature, transfer processes for GCS are not moved to complete state and are not removed from the process list.
Solution Proposal
The solution is to override the complete method in the sink, and register the status checker for the GCS transfer.

There will be no need for status checker: https://github.com/eclipse-edc/Connector/issues/3448, closing the issue

There will be no need for status checker: https://github.com/eclipse-edc/Connector/issues/3448, closing the issue

repo: eclipse-edc/Technology-Gcp


text:
jaxws-ri should NOT redistribute gmbal implementation

before version 2.3.2, it was enough to depend on org.glassfish.gmbal:gmbal-api-only:3.2.0-b003 artifact which provided only API. As of gmbal 4.0.0, there is no API and due to added method ObjectRegistrationManager getObjectRegistrationManager() ; to ManagedObjectManager, it is not possible to use the API without implementation and other gmbal dependencies

fixed by #136