Fix #206

This patch uses function name to determine the type of Resolver decorator's argument.
It can fix the issue #206

In fact, I am a beginner of js. When I debug, even if value of the objectTypeOrTypeFunc is an inline arrow function, its prototype is not undifined:

Do you have any clues?

Yes - you need to follow the install guide:
https://github.com/19majkel94/type-graphql#typescript-configuration
Mostly this one: "target": "es2016" - see #206 😉

You are right! I just missed it.😂
Thank you very much for your reply.


fix(stream): Simple Agg Row Count is Not 0 for 0 rows

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Group agg should not have row, simple agg should have count(*) 0
Checklist

[X] I have written necessary rustdoc comments
[X] I have added necessary unit tests and integration tests
[X] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features).
[X] I have demonstrated that backward compatibility is not broken by breaking changes and created issues to track deprecated features to be removed in the future. (Please refer to the issue)
[X] All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

[X] My PR DOES NOT contain user-facing changes.

Related
Fixes: https://github.com/risingwavelabs/risingwave/issues/4954

how about adding an e2e test?

how about adding an e2e test?

Done


fix(icon-button-toggle): replace property on with toggledOn

Description

While using cv-icon-button-toggle component in angular, if the property on is set in the template, Angular throws an error.

Link to the discussion on this issue:
https://github.com/angular/angular/issues/11756
What's included?

Replace on with toggledOn
Change storybook and knapsack docs accordingly

Test Steps

[x] npm run storybook
[x] Navigate to Icon button toggle
[x] Try toggling the cv-icon-button-toggle with the toggledOn property

General Tests for Every PR

[x] npm run start still works.
[x] npm run lint passes.
[x] npm run stylelint passes.
[x] npm test passes and code coverage is not lower.
[x] npm run build still works.

Screenshots or link to StackBlitz/Plunker

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

v8.14.1
GitHub release

Your semantic-release bot :package::rocket:


Exlude windows DNS query for finding AD services

Windows generate a lot of DNS query for finding AD services these queries have a long TLD and made a lot of false positives, but on the Internet currently the longest TLD has 24 chars’ length, so by adding this line queries with TLD longer than 24 chars will be excluded.

Something went wrong on detection testing:
Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers


InvalidArgumentError ner_transformers example

Hi,
I try to run your example (https://github.com/keras-team/keras-io/blob/master/examples/nlp/ner_transformers.py) and I get this error:
InvalidArgumentError:  StringToNumberOp could not correctly convert string:
[[{{node StringToNumber_1}}]]
[[IteratorGetNext]] [Op:__inference_train_function_2490]
Function call stack:
train_function
I am newbie in Keras, can you help me?

Hi @rodyoukai ,
The issue resolved now with the above PR . I have tested the example and its working fine without any error. Please refer attached gist.
Could you please check and close the issue ? Thanks!


Light/Dark theme for ublue-motd acting funky

The light/dark detection method used by ublue-motd is not working too good on environments where gsettings is misreporting light/dark color schemes, like ssh sessions, distroboxes and so on. It also does not detect it properly on KDE (but given that Aurora is splitting that is not as much of a problem anymore).
I believe that by sending a patch upstream that allows configurable light/dark theme selection this might be resolved, but for now, what do you guys think should be done?
I believe we should just disable it for now or make it force dark mode

I already proposed my solution for this:
# Default fallback theme color
THEME="'slate'"

# Accent theme color if available
if command -v gsettings > /dev/null; then
 if gsettings get org.gnome.desktop.interface accent-color > /dev/null 2>&1; then
   THEME="$(gsettings get org.gnome.desktop.interface accent-color)"
 fi
fi

You can add some more robust checks additionally to this if you wish

I'm not sure if it's light/dark related, but I was noticing that the motd matching the accent color of GNOME... it feels a bit overdone...
The default (slate? ) is the only one which doesn't go quite as overboard, maybe?

Ok now that I've played with it a bit I agree it's a bit over the top. I would color the top line, because that looks good, then color the vertical/horizontal bar cross thing, and then the icons for the bullet points. And that's it.
Then leave everything else white, including the ujust section. Monochrome with the highlight box will be fine for the example commands, no need for color there.

What you guys think about setting a lighter gray for the code_highlight box and using the same color for white and dark theme? - I believe that would look nice and fix the funkiness about having either a light or dark theme

Sure, whatever looks awesome, dealer's choice!

But I do agree that the accent colors on everything is quite over the top LOL - I LOVED it at first but as jorge said, after playing around with it a bit I believe it is a bit much indeed

Hello everyone! After a bit of discussion and testing, we ended up changing the theme to this and it should work good on light/dark color schemes now since there wont be such a big difference!


Question: Embedding a schema inline of another

Hi!
I have the following schema:
unless @Schemas?
  @Schemas = {}

@Schemas.Common = new SimpleSchema
  modifiedBy:
    type: String
  modifiedAt:
    type: Date
  createdAt:
    type: Date

And wish to embed within another schema e.g.
@Schemas.UserCountry = new SimpleSchema
  name:
    type: String
  code:
    type: String
    regEx: /^[A-Z]{2}$/
  meta:
     type: @Schemas.Common

Is there a way to include the Common schemas inline and avoid referring to meta? So one can do data.updatedAt instead of data.meta.updatedAt?
Thanks for your help!

Yes, pass both schemas to new SimpleSchema in an array. It is at the bottom of https://github.com/aldeed/meteor-simple-schema#combining-simpleschemas

@aldeed  Thanks!


Add board custom card order

Restores the ability to change card order within columns via drag and drop 🎉 (as discussed in #586). Also, fixed one or two bugs and did some minor refactoring. What exactly should be clear from the commit history.
✨ What's new?
Cards can now be reordered within and across columns. The cards in the board and the records in the config are inserted according to the logic below (see table & examples).
The order is persisted in the view config. Optionally, the syncOrderField can be set in the board settings menu to additionally store card positions in the file properties (like the former priorityField). Only numeric fields are allowed.
For better feedback, the column in which the card will be inserted has a slightly different background and light shadow. This is especially needed for long lists with sorting enabled since the card position can be out of view without feedback from shifting cards.

Sorted
Filtered
Board
Config / syncOrderField

❌
❌
Insert at drag position
Insert at drag position

✔
❌
Insert at sorted position
Insert at end

❌
✔
Insert at drag position
If there is a card before the drag position, insert after that record. Else if there is a card after the drag position, insert before that record.Else insert at the end.

✔
✔
Same as sorted only
Same as sorted only

Example: Default

Example: Sorted

Example: Filtered

🚧 Limitations
File Renaming

when files are renamed, the config gets outdated
if an order sync field is set, the order will be preserved, else the record jumps to the end
the next time the column is saved, the outdated record will be removed, and the new record added
We could listen to the rename event and update the config, but I am not sure yet where. The board view should handle it, but it would also have to listen even if the view is not currently open.

Same sync field for different boards

using the same sync field on the same files for multiple boards could lead to unexpected behavior from the user's perspective, especially if a different status field is used
don't know though, how common a use case like this is anyways
we could allow a field to be used only for one board view, or add an info/warning to the settings field

🏗 ToDo

[x] add Chinese translation for the "order-sync-field" setting (@Acylation ^^)
[x] Should we add a config migration from priorityField to orderSyncField?

I'd argue though it's better not to. Yes, it would automatically restore the user's previous order, but it would also overwrite data as soon as cards are dragged around. Potentially not what the user wants.

For better feedback, the column in which the card will be inserted has a slightly different background and light shadow. This is especially needed for long lists with sorting enabled since the card position can be out of view without feedback from shifting cards.

Like this detail!

when files are renamed, the config gets outdated

Will take board views into account if file rename event detected.

using the same sync field on the same files for multiple boards could lead to unexpected behavior from the user's perspective, especially if a different status field is used

Yes this seems reasonable because the sync-binding field can be modified by each view. Locking a field for only one view is a good proposal but for now, we need to access the complete project from the view level to achieve this. I'm imagining a centric way managing fields, maybe this is where we can mark a field as used. #709

Should we add a config migration from priorityField to orderSyncField?
I'd argue though it's better not to. Yes, it would automatically restore the user's previous order, but it would also overwrite data as soon as cards are dragged around. Potentially not what the user wants.

Agree. Just leave the priorityField there won't cause problems. Back to the deprecation of priority fields in #584, there was no operations on this either.

Thanks you so much for implementing this! I've learnt a lot from going through these changes.


x/build: upgrade openbsd builders to 6.2

OpenBSD 6.2 was released on Oct 9, 2017, meaning that OpenBSD 6.0 is no longer supported. As such, the OpenBSD builders should be updated to run 6.2. It is also worth noting that there are two issues that still need to be addressed to make Go pass a build/test cycle on OpenBSD 6.2 (related to the switch to clang).

If the OpenBSD 6.2 build doesn't pass yet, we shouldn't remove the OpenbSD 6.0 builders yet.
We should probably run both for a bit.
Are there issues filed for the two issues you mentioned?

@4a6f656c, can you help with the openbsd/386 6.2 builder images?
The openbsd/amd64 6.2 make.bash worked fine, but 386 ends with:
Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.

Making all device nodes...done.
Multiprocessor machine; using bsd.mp instead of bsd.
Relinking to create unique kernel...done.

But no output file:
bradfitz@gdev:~/src/golang.org/x/build/env/openbsd-386$ ls -l
total 549012
-rw-r--r-- 1 bradfitz bradfitz 226304000 Dec 10  2016 install60-i386.iso
-rw-r--r-- 1 bradfitz bradfitz 335865856 Nov 24 04:27 install62-i386.iso
-rwxr-xr-x 1 bradfitz bradfitz       221 Jan 24  2016 make.bash
-rw-r--r-- 1 bradfitz bradfitz        29 Jan 24  2016 README

And sometimes it times out before the "Relinking" line. With set -x in the bash script:
...
Directory does not contain SHA256.sig. Continue without verification? [no] yes
Installing bsd          100% |**************************| 11982 KB    00:10
Installing bsd.mp       100% |**************************| 12065 KB    00:10
Installing bsd.rd       100% |**************************|  8696 KB    00:08
Installing base62.tgz   100% |**************************|   138 MB    03:18
Extracting etc.tgz      100% |**************************|   189 KB    00:00
Installing comp62.tgz   100% |**************************| 71787 KB    01:57
Installing site62.tgz   100% |**************************|   559       00:00
Location of sets? (cd0 disk http or 'done') [done] done
Saving configuration files...done.
Making all device nodes...done.
Multiprocessor machine; using bsd.mp instead of bsd.
+ cleanup
+ rm -f install62-i386-patched.iso
+ rm -f auto_install.conf
+ rm -f boot.conf
+ rm -f disk.raw
+ rm -f disklabel.template
+ rm -f etc/rc.local
+ rm -f install.site
+ rm -f random.seed
+ rm -f site62.tgz
+ rmdir etc
bradfitz@gdev:~/src/golang.org/x/build/env/openbsd-386$
bradfitz@gdev:~/src/golang.org/x/build/env/openbsd-386$ echo $?
1

And sometimes it times out before  ....

... and that made me realize it was probably just CPU-bound. I doubled the timeout and it's good now.


Huginn Installation Issue

I am stuck here guys from yesterday
:~/huginn$ sudo bundle exec rake production:export Stopping huginn ... ok: down: huginn-web-1: 0s, normally up Exporting new services ... /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:133:in block in export_template': undefined method `exists?' for File:Class (NoMethodError)
  File.read(matchers.detect { |m| File.exists?(m) })
                                      ^^^^^^^^

Did you mean?  exist?
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:133:in each'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:133:in detect'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:133:in export_template'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:139:in write_template'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/runit.rb:19:in block (2 levels) in export'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/runit.rb:12:in upto'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/runit.rb:12:in block in export'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/engine.rb:252:in block in each_process'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/engine.rb:251:in each'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/engine.rb:251:in each_process'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/runit.rb:11:in export'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/cli.rb:62:in export'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/command.rb:27:in run'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/invocation.rb:126:in invoke_command'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor.rb:369:in dispatch'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/base.rb:444:in start'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/bin/foreman:7:in <top (required)>'         from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bin/foreman:25:in load'
from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bin/foreman:25:in <main>' rake aborted! 'foreman export runit -a huginn -l /home/huginn/huginn/log /etc/service' exited with a non-zero return value: [foreman export] creating: huginn-web-1 [foreman export] creating: huginn-web-1/env [foreman export] creating: huginn-web-1/log /home/huginn/huginn/lib/tasks/production.rake:85:in run'
/home/huginn/huginn/lib/tasks/production.rake:60:in block (2 levels) in <main>' /home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in load' /home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in kernel_load'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in run' /home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in exec'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch' /home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in dispatch'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start' /home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in start'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in block in <top (required)>' /home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in with_friendly_errors'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in <top (required)>' /usr/local/bin/bundle:25:in load'
/usr/local/bin/bundle:25:in <main>' Tasks: TOP => production:export (See full trace by running task with --trace)

I have resolved this issue finally
removed that extra s manually
install bundle with non root account
again stuck with socket issue
give appropriate permission
stopped unicorn file & kill all the process after that restarted again
voila


Cant run archive.py due to UTF-8 encoding issues

Any ideas why?
[2017-07-04 05:45:26] Starting archive from /root/bookmark-archiver/downloads/ril_export.html export file.
Traceback (most recent call last):
  File "./archive.py", line 521, in <module>
    create_archive(export_file, service=export_type, resume=resume_from)
  File "./archive.py", line 487, in create_archive
    dump_index(links, service)
  File "./archive.py", line 398, in dump_index
    f.write(index_html.format(*template_vars))
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001f4c2' in position 3530: ordinal not in range(128)

Try pulling and running it again.  I've been refactoring over the last couple hours, so you probably pulled a broken version, sorry!

Thanks. It still fails:
[+] [2017-07-04 07:23:07] Starting archive from /root/bookmark-archiver/downloads/ril_export.html export file.
Traceback (most recent call last):
File "./archive.py", line 88, in
create_archive(export_file, service=export_type, resume=resume_from)
File "./archive.py", line 55, in create_archive
dump_index(links, service)
File "/root/bookmark-archiver/index.py", line 16, in dump_index
link_html = f.read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 393: ordinal not in range(128)

Ok sweet, at least it's failing in a different place though, which makes me think it's due to lacking hardcoded encodings.
I just updated all the open() calls to manually specify encoding='utf-8'.  Please pull and try again, lemme know how it goes.

It started to work however it stuck at chrome version. Should I update the chromium?
./archive.py ril_export.html[+] [2017-07-04 07:33:46] Starting archive from ril_export.html export file.
[] [2017-07-04 07:33:48] Created archive index with 1699 links.
[] Checking Dependencies:
/usr/bin/chromium-browser
[X] Chrome version must be 59 or greater for headless PDF and screenshot saving
See https://github.com/pirate/bookmark-archiver for help.

btw this is my chromium version:
Chromium 58.0.3029.110 Built on Ubuntu , running on Ubuntu 16.04

Yes, you cannot run chrome headless unless you have a newer version of chromium or google-chrome.  Simply run apt upgrade chromium-browser to upgrade.

Strange. Perhaps its not yet available for my Ubuntu?
apt upgrade chromium-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
chromium-browser is already the newest version (58.0.3029.110-0ubuntu<IP_ADDRESS>1).

Tried downloading chromium from https://github.com/scheib/chromium-latest-linux/blob/master/ and modifying the env, but it doesnt work...
env CHROME_BINARY=/root/bookmark-archiver/chromium-latest-linux/484087/chrome-linux/chrome ./archive.py ril_export.html
[+] [2017-07-04 08:03:42] Starting archive from ril_export.html export file.
[] [2017-07-04 08:03:44] Created archive index with 1699 links.
[] Checking Dependencies:
/root/bookmark-archiver/chromium-latest-linux/484087/chrome-linux/chrome
/root/bookmark-archiver/chromium-latest-linux/484087/chrome-linux/chrome: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "./archive.py", line 88, in
create_archive(export_file, service=export_type, resume=resume_from)
File "./archive.py", line 64, in create_archive
check_dependencies()
File "/root/bookmark-archiver/config.py", line 47, in check_dependencies
if int(version) < 59:
ValueError: invalid literal for int() with base 10: ''

What is the output of /root/bookmark-archiver/chromium-latest-linux/484087/chrome-linux/chrome --version ?

chromium-browser --version
Chromium 58.0.3029.110 Built on Ubuntu , running on Ubuntu 16.04

installed google chrome. seemed to be working. so I guess the problem was with chromium-browser. chrome is working allright it seems. I am closing this.
/bookmark-archiver# env CHROME_BINARY=/usr/bin/google-chrome ./archive.py ril_export.html
[+] [2017-07-06 10:11:49] Starting archive from ril_export.html export file.
[] [2017-07-06 10:11:53] Created archive index with 1699 links.
[] Checking Dependencies:
/usr/bin/google-chrome
/usr/bin/wget
/usr/bin/curl
[+] [1497864202 (2017-06-19 05:23)]

sorry, another unicode error:
~/bookmark-archiver# ./archive.py ril_export.html
[] [2017-07-06 11:03:01] Starting archive from ril_export.html export file.
[+] [2017-07-06 11:03:07] Created archive index with 1699 links.
[] Checking Dependencies:
/usr/bin/chromium-browser
/usr/bin/wget
/usr/bin/curl
[+] [1497864202 (2017-06-19 05:23)] "Helios4 - Your own private cloud": kobol.io/helios4/
- Downloading full site
0.9% (1/60sec)Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/root/bookmark-archiver/config.py", line 145, in progress_bar
seconds,
UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 15: ordinal not in range(128)
wget output:
Converting links in kobol.io/helios4/css/custom.css... nothing to do.
Converting links in kobol.io/helios4/css/owl.carousel.css... 0-1
Converting links in kobol.io/helios4/css/socicon.css... 1-0
Converting links in kobol.io/helios4/css/iconsmind.css... 3-0
Converting links in kobol.io/helios4/css/bootstrap.css... 0-5
Converting links in kobol.io/helios4/css/interface-icons.css... 6-0
Converting links in kobol.io/helios4/css/theme.css... 1-0
Converting links in kobol.io/helios4/css/font-mulilato.css... nothing to do.
Converted links in 9 files in 0.03 seconds.
Run to see full output: cd pocket/archive/1497864202; wget --timestamping --adjust-extension --no-parent --page-requisites --convert-links http://kobol.io/helios4/
Failed: Exception Failed to wget download
- Printing PDF
0.9% (1/60sec)Process Process-2:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/root/bookmark-archiver/config.py", line 145, in progress_bar
seconds,
UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 15: ordinal not in range(128)
- Snapping Screenshot
0.9% (1/60sec)Process Process-3:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/root/bookmark-archiver/config.py", line 145, in progress_bar
seconds,
UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 15: ordinal not in range(128)
- Submitting to archive.org
0.9% (1/60sec)Process Process-4:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/root/bookmark-archiver/config.py", line 145, in progress_bar
seconds,
UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 15: ordinal not in range(128)
- Fetching Favicon
0.9% (1/60sec)Process Process-5:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/root/bookmark-archiver/config.py", line 145, in progress_bar
seconds,
UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 15: ordinal not in range(128)
- Creating link info file
[X] Archive creation stopped.
Continue where you left off by running:
./archive.py ril_export.html pocket<PHONE_NUMBER>
Traceback (most recent call last):
File "./archive.py", line 91, in
create_archive(export_file, service=export_type, resume=resume_from)
File "./archive.py", line 69, in create_archive
raise e
File "./archive.py", line 59, in create_archive
dump_website(link, service)
File "/root/bookmark-archiver/fetch.py", line 260, in dump_website
print('[{green}+{reset}] [{timestamp} ({time})] "{title}": {blue}{base_url}{reset}'.format(**link, **ANSI))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 120: ordinal not in range(128)

What system are you on that has such horrible UTF-8 support haha?!
I think your stdout doesn't even support UTF-8.  I'll take a look and try and fix it.

Try running the script like this:
env PYTHONENCODING=utf-8 python3 archive.py export.html

You can also just try pulling and running it again, I added instructions to fix this problem.  It's fairly rare for this to still be happening in 2017, most distros default to the UTF-8 locale by now.  I'm surprised that you're seeing this issue on Ubuntu 16.04.
if sys.stdout.encoding != 'UTF-8':
    print('[X] Your system is running python3 scripts with a bad locale setting: {} (it should be UTF-8).'.format(sys.stdout.encoding))
    print('    To fix it, add the line "export PYTHONIOENCODING=utf8" to your ~/.bashrc file (without quotes)')
    print('')
    print('    Confirm that it\'s fixed by opening a new shell and running:')
    print('        python3 -c "import sys; print(sys.stdout.encoding)"   # should output UTF-8')
    print('')
    print('    Alternatively, run this script with:')
    print('        env PYTHONIOENCODING=utf8 ./archive.py export.html')

If you're still having trouble feel free to comment back and I'll re-open this.  For now I'm closing this issue due to inactivity.


Unable to build web flutter engine locally

I am trying to build flutter engine locally (engine revision: c5c7e83b).
Setup according this this page.
And use felt build to build engine (felt readme)
But getting error:
[5557/5729] ACTION //third_party/dart/utils/dartdevc:dartdevc(//build/toolchain/mac:clang_x64)
FAILED: gen/dartdevc.dart.snapshot
python ../../third_party/dart/build/gn_run_binary.py compiled_action dart --deterministic --packages=/Users/mariamelnik/flutter_test/engine/src/third_party/dart/.packages --snapshot=gen/dartdevc.dart.snapshot --snapshot-depfile=/Users/mariamelnik/flutter_test/engine/src/out/host_debug_unopt/gen/dartdevc.dart.snapshot.d --snapshot-kind=app-jit --dfe=/Users/mariamelnik/flutter_test/engine/src/third_party/dart/pkg/vm/bin/kernel_service.dart /Users/mariamelnik/flutter_test/engine/src/out/host_debug_unopt/gen/third_party/dart/utils/dartdevc/dartdevc.dart.dill --dart-sdk /Users/mariamelnik/flutter_test/engine/src/third_party/dart/sdk --dart-sdk-summary /Users/mariamelnik/flutter_test/engine/src/out/host_debug_unopt/ddc_outline.dill -k -o dartdevc.js /Users/mariamelnik/flutter_test/engine/src/third_party/dart/pkg/dev_compiler/bin/dartdevc.dart
Command failed: ./dart --deterministic --packages=/Users/mariamelnik/flutter_test/engine/src/third_party/dart/.packages --snapshot=gen/dartdevc.dart.snapshot --snapshot-depfile=/Users/mariamelnik/flutter_test/engine/src/out/host_debug_unopt/gen/dartdevc.dart.snapshot.d --snapshot-kind=app-jit --dfe=/Users/mariamelnik/flutter_test/engine/src/third_party/dart/pkg/vm/bin/kernel_service.dart /Users/mariamelnik/flutter_test/engine/src/out/host_debug_unopt/gen/third_party/dart/utils/dartdevc/dartdevc.dart.dill --dart-sdk /Users/mariamelnik/flutter_test/engine/src/third_party/dart/sdk --dart-sdk-summary /Users/mariamelnik/flutter_test/engine/src/out/host_debug_unopt/ddc_outline.dill -k -o dartdevc.js /Users/mariamelnik/flutter_test/engine/src/third_party/dart/pkg/dev_compiler/bin/dartdevc.dart
output: Error: Could not resolve the package 'bazel_worker' in 'package:bazel_worker/bazel_worker.dart'.
Error: Could not resolve the package 'dev_compiler' in 'package:dev_compiler/src/compiler/shared_command.dart'.
Error: Could not resolve the package 'dev_compiler' in 'package:dev_compiler/src/kernel/expression_compiler_worker.dart'.
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:15:8: Error: Not found: 'package:bazel_worker/bazel_worker.dart'
import 'package:bazel_worker/bazel_worker.dart';
       ^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:16:8: Error: Not found: 'package:dev_compiler/src/compiler/shared_command.dart'
import 'package:dev_compiler/src/compiler/shared_command.dart';
       ^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:17:8: Error: Not found: 'package:dev_compiler/src/kernel/expression_compiler_worker.dart'
import 'package:dev_compiler/src/kernel/expression_compiler_worker.dart';
       ^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:56:31: Error: Type 'AsyncWorkerLoop' not found.
class _CompilerWorker extends AsyncWorkerLoop {
                              ^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:58:9: Error: Type 'ParsedArguments' not found.
  final ParsedArguments _startupArgs;
        ^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:60:38: Error: Type 'AsyncWorkerConnection' not found.
  _CompilerWorker(this._startupArgs, AsyncWorkerConnection workerConnection)
                                     ^^^^^^^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:65:3: Error: Type 'CompilerResult' not found.
  CompilerResult lastResult;
  ^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:69:10: Error: Type 'WorkResponse' not found.
  Future<WorkResponse> performRequest(WorkRequest request) async {
         ^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:69:39: Error: Type 'WorkRequest' not found.
  Future<WorkResponse> performRequest(WorkRequest request) async {
                                      ^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:94:17: Error: Type 'ParsedArguments' not found.
Future runBatch(ParsedArguments batchArgs) async {
                ^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:25:20: Error: Getter not found: 'ParsedArguments'.
  var parsedArgs = ParsedArguments.from(args);
                   ^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:29:11: Error: Method not found: 'StdAsyncWorkerConnection'.
        ? StdAsyncWorkerConnection()
          ^^^^^^^^^^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:30:11: Error: Method not found: 'SendPortAsyncWorkerConnection'.
        : SendPortAsyncWorkerConnection(sendPort);
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:38:26: Error: Getter not found: 'ExpressionCompilerWorker'.
      var worker = await ExpressionCompilerWorker.createFromArgs(
                         ^^^^^^^^^^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:46:17: Error: Getter not found: 'ExpressionCompilerWorker'.
          await ExpressionCompilerWorker.createFromArgs(parsedArgs.rest);
                ^^^^^^^^^^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:50:24: Error: Method not found: 'compile'.
    var result = await compile(parsedArgs);
                       ^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:31:57: Error: The method 'run' isn't defined for the class '_CompilerWorker'.
 - '_CompilerWorker' is from '../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'run'.
    await _CompilerWorker(parsedArgs, workerConnection).run();
                                                        ^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:58:9: Error: 'ParsedArguments' isn't a type.
  final ParsedArguments _startupArgs;
        ^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:60:38: Error: 'AsyncWorkerConnection' isn't a type.
  _CompilerWorker(this._startupArgs, AsyncWorkerConnection workerConnection)
                                     ^^^^^^^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:61:15: Error: No named parameter with the name 'connection'.
      : super(connection: workerConnection);
              ^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:65:3: Error: 'CompilerResult' isn't a type.
  CompilerResult lastResult;
  ^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:69:39: Error: 'WorkRequest' isn't a type.
  Future<WorkResponse> performRequest(WorkRequest request) async {
                                      ^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:77:20: Error: The method 'sourcePathToUri' isn't defined for the class '_CompilerWorker'.
 - '_CompilerWorker' is from '../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'sourcePathToUri'.
      inputDigests[sourcePathToUri(input.path)] = input.digest;
                   ^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:82:13: Error: The method 'compile' isn't defined for the class '_CompilerWorker'.
 - '_CompilerWorker' is from '../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'compile'.
            compile(args, previousResult: context, inputDigests: inputDigests),
            ^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:87:12: Error: The method 'WorkResponse' isn't defined for the class '_CompilerWorker'.
 - '_CompilerWorker' is from '../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'WorkResponse'.
    return WorkResponse()
           ^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:94:17: Error: 'ParsedArguments' isn't a type.
Future runBatch(ParsedArguments batchArgs) async {
                ^^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:102:3: Error: 'CompilerResult' isn't a type.
  CompilerResult result;
  ^^^^^^^^^^^^^^
../../third_party/dart/pkg/dev_compiler/bin/dartdevc.dart:110:22: Error: Method not found: 'compile'.
      result = await compile(args, previousResult: result);
                     ^^^^^^^

[5566/5729] ACTION //flutter/flutter_frontend_server:frontend_server(//build/toolchain/mac:clang_x64)
ninja: build stopped: subcommand failed.

There is similar closed dart sdk issue.

Please once do configure like below
1. flutter channel master
2. flutter upgrade
3. flutter config --enable-web
4. cd into project directory
5. flutter create .
6. flutter run -d chrome

Hi @MariaMelnik
Are you building it on Linux?  Do you experience with the latest update engine in src/futter?  please update your engine repo and git fetch upstream
Double-check if you have followed  all the steps
Thank you

@TahaTesser I've just tried again from scratch (created new folder, sync repo and so on). I got same issue.

Hi @MariaMelnik
I tried from scratch, have no issues with the latest engine fork
felt build --watch
tahatesser@Tahas-MacBook-Pro src % felt build --watch
Running on MacOS. Will check the file and user limits.
File limits too low increasing the file limits
User limits too low increasing the user limits
Problem changing the user limit. Please try to reboot to use the higher limits. error: \n/Volumes/Extreme/engine/src/flutter/lib/web_ui/dev/felt: line 91: ulimit: max user processes: cannot modify limit: Operation not permitted
Running gn...
Generating GN files in: out/host_debug_unopt
Generating Xcode projects took 399ms
Done. Made 713 targets from 223 files in 3699ms
Running autoninja...
ninja: Entering directory `/Volumes/Extreme/engine/src/out/host_debug_unopt'
[21/21] STAMP obj/default.stamp
Initial build done!
Watching directory: flutter/lib/web_ui/lib/

To confirm the engine is attached, I modified canvaskit font size to 20

tahatesser@Tahas-MacBook-Pro master_flutter % flutterm run --local-engine-src-path /Volumes/Extreme/engine/src  --local-engine=/Volumes/Extreme/engine/src/out/host_debug_unopt --dart-define=FLUTTER_WEB_USE_SKIA=true  -d chrome
Launching lib/main.dart on Chrome in debug mode...
Syncing files to device Chrome...                                  16.6s
Debug service listening on ws://<IP_ADDRESS>:50236/HPfxVzl9TbI=/ws

Warning: Flutter's support for web development is not stable yet and hasn't
been thoroughly tested in production environments.
For more information see https://flutter.dev/web

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

@TahaTesser I'm not sure what additional information I can provide for this issue.

Tried to reproduce this on Mac, engine compiles for web withno issues, I’m unable to reproduce the issue to pinpoint the cause. The issue needs further investigation.

@MariaMelnik try running gclient sync -D before running felt. I would also rm lib/web_ui/.dart_tool/felt.snapshot* before using felt to make sure it's not picking up an out-of-date build of felt.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


No default palette

Default palette is well defined in the specification of the format, yet currently we do not use this, we simply expect a palette chunk to be present in the .vox file

Have added support for this. Need to perform a proper test on the code though, ensure palette is used . This probably needs me to write a palette stripper, to get hold of a .vox file with no RGBA chunk

In testing if the default palette was used, a bug was found causing colors to be different to expectations. This has been fixed in https://github.com/RichysHub/MagicaVoxel-VOX-importer/commit/9e792920fc9c91ec0d07a8226c96ce5a9ea17e52

Loading this sample chr_cat.vox, I have to correct the update in:
if not palette:  # no palette provided, use default
        for col in range(256):
            palette.update({col + 1: struct.unpack('<4B', struct.pack('<I', DEFAULT_PALETTE[col]))})

Please note the "<I" packing DEFAULT_PALETTE (it is ">I" now)

Okay, I was hesitant to agree, given the above changes, and therefore how confident I was.
However, I have thrown together a quick script (something I clearly never did back in 2017) to visualize the palettes, and I am happy to agree that it is currently incorrect.
struct.unpack('<4B', struct.pack('>I', DEFAULT_PALETTE[col])) produces:

struct.unpack('<4B', struct.pack('<I', DEFAULT_PALETTE[col])) produces:

I think there are some slight issues in gamma correction maths currently, and in #8, but I'll detail those there.


fix(ibc-clients/tendermint): disallow empty proof-specs and empty depth range in proof-specs

Closes: #1100

PR author checklist:

[x] Added changelog entry, using unclog.
[x] Added tests.
[x] Linked to GitHub issue.
[x] Updated code comments and documentation (e.g., docs/).
[x] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[x] Reviewed Files changed in the GitHub PR explorer.
[x] Manually tested (in case integration/unit/mock tests are absent).

@rnbguy

Thanks @gr4yha7 :pray: nice work :sparkles:

Thanks @gr4yha7 🙏 nice work ✨

Thanks for the assistance @rnbguy


[SPARK-15525][SQL][BUILD] Upgrade ANTLR4 SBT plugin

What changes were proposed in this pull request?
The ANTLR4 SBT plugin has been moved from its own repo to one on bintray. The version was also changed from 0.7.10 to 0.7.11. The latter actually broke our build (@ihji has fixed this by also adding 0.7.10 and others to the bin-tray repo).
This PR upgrades the SBT-ANTLR4 plugin and ANTLR4 to their most recent versions (0.7.11/4.5.3). I have also removed a few obsolete build configurations.
How was this patch tested?
Manually running SBT/Maven builds.

cc @rxin @MLnick @vanzin (could you take a look at the build)

Test build #59286 has started for PR 13299 at commit 3b042b5.

LGTM.

Confirmed build/sbt package works and the plugin dep resolves.

Test build #59286 has finished for PR 13299 at commit 3b042b5.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59286/
Test FAILed.

Test build #3019 has started for PR 13299 at commit 3b042b5.

LGTM

Test build #3019 has finished for PR 13299 at commit 3b042b5.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merging in master/2.0.


Silent crash in click.py

DFFRAM is causing a silent crash in click.py:
Traceback (most recent call last):
  File "/si/bin/lib/python3.7/site-packages/click/core.py", line 1065, in main
    ctx.exit()
  File "/si/bin/lib/python3.7/site-packages/click/core.py", line 687, in exit
    raise Exit(code)
click.exceptions.Exit: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/si/bin/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/si/bin/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/si/work/DFFRAM/placeram/__main__.py", line 23, in <module>
    main()
  File "/si/work/DFFRAM/placeram/cli.py", line 317, in main
    cli()
  File "/si/bin/lib/python3.7/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/si/bin/lib/python3.7/site-packages/click/core.py", line 1083, in main
    sys.exit(e.exit_code)
SystemExit: 0

I can't figure out where the actual issue is since there is no line number inside DFFRAM.

Note that this is becuase openroad now requires the -exit argument, otherwise it gives you a prompt. I was exiting the propmt after the script ran, which caused the crash above.
#178 fixes this issue.


Let 287 fe prevent non signed in users and investors to access the project creation form

This PR changes the ProtectedPage layout and adds it to the project creation page
Testing instructions
When trying to go to projects/new:

A non signed in user should be redirected from projects/new to sign in page
An investor user should be redirected to the last page (back)
A light user should be redirected to sign-up/account-type

Tracking
LET-287

Did Simão and you discuss whether SSR would have been a better solution? You could directly redirect from the server instead of in the client: https://nextjs.org/docs/api-reference/data-fetching/get-server-side-props#redirect

It is not possible to use the serverSideProps because we need to be on the client to get the user information.


storage entry point function creates multiple spans

An example is container_client.upload_blob creates two spans. We want to refactor blob_client.create_blob so that they both call an untraced internal function.

[ ] Blob

[ ] Lease Client
[ ] Blob Client

[ ] Files

[ ] Directory and File Client

[ ] Queues

Another example is Lease_client.
The current plan is to just have an internal version of the method to call. For example the LeaseClient.acquire and the BlobClient.acquire will call LeaseClient._acquire

found a workaround in the decorator.


Updating from 5.8.6 > 5.8.9 getting "Inheritance security rules violated while overriding member"

Description
I have updated the Unity library from 5.8.6 version to 5.8.9 version i am getting the following exception.
System.TypeLoadException
HResult=0x80131522
Message=Inheritance security rules violated while overriding member: 'Unity.RegistrationByConvention.Exceptions.DuplicateTypeMappingException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.
Source=Unity.RegistrationByConvention
StackTrace:
at Unity.RegistrationByConvention.RegistrationByConventionExtensions.RegisterTypes(IUnityContainer unityContainer, IEnumerable1 types, Func2 getFromTypes, Func2 getName, Func2 getLifetimeManager, Func`2 getInjectionMembers, Boolean overwriteExistingMappings)

public class ConvensionBasedResolverRegistration
    {
        public void Init(UnityContainer pUnityContainer)
        {
            var resolverAssemblies = ConfigurationManager.AppSettings["shared:ioc:convensionAssmblies"];
            var appAssembly = AppDomain.CurrentDomain.GetAssemblies().Where(pX =>
                resolverAssemblies.Split(';').Contains(pX.FullName.Split(',')[0]));

            var types = appAssembly.SelectMany(a => a.GetExportedTypes()).Where(pX => !pX.IsInterface).ToArray();
            pUnityContainer.RegisterTypes(
                types,
                WithMappings.FromMatchingInterface,
                WithName.Default,
                WithLifetime.Hierarchical);
        }
    }

Duplicate #8


Error when starting service.

Error is as such: ``'Error: Failure while executing; /bin/launchctl enable gui/501/homebrew.mxcl.apple-music-discord-rpc exited with 125.'
 Using this on non admin computer, and using SU to switch to an admin account, should I not use brew and manually install?

I have never tried Homebrew on a non-admin account. The script install should works fine.


Fixed running custom Android app on device(“aemm run android —device”)

Current coverage is 37.32% (diff: 0.00%)

Merging #57 into master will not change coverage

@@             master        #57   diff @@
==========================================
  Files            25         25
  Lines          1286       1286
  Methods         153        153
  Messages          0          0
  Branches        162        162
==========================================
  Hits            480        480
  Misses          806        806
  Partials          0          0

Powered by Codecov. Last update fe5f702...9fa6bfb


Remove dependency on koa-plus

This integrates the koa-plus library directly into hello for easier package visibility and maintenance.

Coverage remained the same at 100.0% when pulling 960c812d2bbcd3c101bdbb1de8ade02fe5d1322f on koa-plus-integrated into 90406cb45d40e55c8477a6f317137e07fc2c0fb3 on master.

Coverage remained the same at 100.0% when pulling e78e8affe33ad4bf768eea8dea30ab3ebc746d2f on koa-plus-integrated into 90406cb45d40e55c8477a6f317137e07fc2c0fb3 on master.


heroic: init at 1.10.3

Motivation for this change
#131620. Only thing that I have no idea on how to solve is [2:1203/105250.437442:ERROR:browser_main_loop.cc(269)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Did you try building Heroic from source first? Building from source is always preferred in nixpkgs.

Did you try building Heroic from source first? Building from source is always preferred in nixpkgs.

Yes, already did, but never could do it. If someone can build it from source, specially being a JS project, then I could close this and favor the other one.

#109733 can also be closed.

I installed Heroic, installed a game "Plague Tale: Innocence" to test it, on running the game with proton 7.0 the game failed to launch, I saw 2 errors in the logs, "stack smashing detected" and it also couldn't find python3.
I guess my question is not so much that, since I can run it elsewhere, but as a 1-month-in-or-so Nix noob, do you guys use any test suites to verify that things continue to work? (I'm guessing a test for something GUI-driven like Heroic might be difficult but not impossible, but I'm also wondering if the commandline legendary underneath is ever tested, or if anything in general ever is, or if "successful build with exit 0" is considered the only necessary "test"...)


Group tabs are no longer synced as of 1.1.9

You can actually see this in the sample site[1].
In testing with one of my sites, the group synchronization worked in 1.1.8 but broke with 1.1.9.
Verified viewing in for Firefox and Chrome, just in case this was a browser issue.
[1] https://djungelorm.github.io/sphinx-tabs/

Should be fixed in 1.1.10. Thanks for reporting!


Unable to define parameters from URL path

Hi , i am new to swagger and  was trying to generate a swagger JSON file by using annotations in GO LANG. I annotated my code using the help of https://goswagger.io/ , but was unable to annotate the parameters that are required in my URL path and always get the following error when i put JSON file in swaggerUI.
Error: Declared path parameter "id" needs to be defined as a path parameter at either the path or operation level.
Annotated something like this:
// GetEmployeeData handles a GET to /example/{id}
//
// swagger:route GET /example/{id} getEmployee
//
// Parameters:	 id int  in:path	true	"id"
//
// Returns data of the employee.
//
//	Produces:
//	- application/json
//
//     Responses:
//       200: getEmployee
func GetEmployee(w http.ResponseWriter, req *http.Request) {
json.NewEncoder(w).Encode(people)
}
I have tried different ways and also tried creating a struct and annotate it with swagger:parameters and it didn't work.
//swagger:parameters
type id struct{
// in:path
id int
}
Ran swagger generate spec -o ./rds.yml command to generate the JSON file.
It would be great if you can assist me.
Environment
swagger version: 2.0
go version: 1.9
OS:  windows

you need to export the fields in your parameter struct
and // swagger:parameters getEmployee needs the operation name(s) it applies to


upgrade to 3.15

upgrade to 3.15 - capture the disableBreakpoints parameter for eval and invoke methods

@bkonyi @jakemac53

Do we want to go ahead and release a real 3.15.0 version then too? Things are pretty stable at this point, but there is still some risk of wanting a breaking change in the server related stuff.

Do we want to go ahead and release a real 3.15.0 version then too? Things are pretty stable at this point, but there is still some risk of wanting a breaking change in the server related stuff.

A 3.15.0 release sounds great. When we want to do a breaking release, bumping all the way to 4.0 sounds good. It would be nice if we could somehow align the protocol version with the pubspec version, but probably not an actual requirement.


LTS: Implement Go version upgrade and switch to GitHub Actions

This commit upgrades the underlying Go version from 1.18 to 1.19 in order to align with the Prometheus main branch and ensure that the Long-Term Support (LTS) release remains under a supported version of Go. The upgrade also requires changes to the build process for Windows. Additionally, this commit switches the CI/CD pipeline from CircleCI to GitHub Actions for better integration and alignment with the Prometheus main branch.
This is following an email sent to the prometheus-developers mailing list in december.
Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

cc @juliusv @SuperQ

:+1:


Logging overlay

Simple feature request: would love to have a logging function that wraps __android_log_print() and is exposed to Swift (recalling __android_log_print() is not available because it has variadic arguments).

Take a look at https://github.com/skiptools/swift-android-native. PRs welcome!

Well, that looks handy. Guess I'll close this :)

@marcprux maybe you want to subsume AndroidLooper into this once I have it debugged?

@marcprux maybe you want to subsume AndroidLooper into this once I have it debugged?

Yes, that would be a great addition!

Great, give me a week or two to iron out bugs. There are a lot of hairy interactions with JNI environments which I'm sure you're aware of!


meme-bingo-web: init at 0.2.0

Description of changes
Added meme-bingo-web package and service using it's executable.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Oh, I forgot the release notes.

I read through the systemd service options manual to determine all the relevant hardening options but I might've missed some.


Alternative?

Any recommendation? This poject seems discontinued.

https://github.com/withcatai/node-llama-cpp/pull/105


Model doesnt save

NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed to find any matching files for ./model/A1_to_B\A1_to_B.ckpt

External file download link is provided.

I want to train my custom model and im not training in colab. After running train.py the model doesnt save. Missing paths? It just doesnt save the checkpoint.

Okay, I see. In the hyparams.py script there is a check_epoch parameter. Give the value 1 for saving the model for each iteration.


Move openForm() and prefillAndOpenForm() methods to FormInteractor

OdkInteractor interface should only contain setupODK and resetODK methods as this interface should only be concerned with High level ODK processes while openForm, openSavedForm and prefillAndOpenForm are specific form level processes and should be moved to FormsInteractor interface which is responsible for handling form level processes. The prefill function depends on updateForm function which also needs to be moved from ODKInteractor.

I would like to work on this issue.

I will move the mentioned functions to FormsInteractor as they are form level processes

Is this issue assigned? If not then I would like to work on this.

@Poonam1607 Let's wait for @shivenducs1136 reply before re-assiging.

Hello, @charanpreet-samagra Yes, I have already begun working on it.
@Poonam1607 You may play around with other issues, I'll keep you informed on this one.


help request: have an online site experience?

Description
I don't have free server, is there an online demo where I can experience the product features?
Environment

APIPark version (run apinto dashboard version):
Operating system (run uname -a):

I found it. Thank you.😊


Update scalatest to 3.2.4-M1

Updates org.scalatest:scalatest from 3.2.0-M4 to 3.2.4-M1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalatest", artifactId = "scalatest" } ]

labels: test-library-update, semver-pre-release

Codecov Report

Merging #73 (aa1f478) into master (339416a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #73   +/-   ##
=======================================
  Coverage   93.75%   93.75%
=======================================
  Files           1        1
  Lines          16       16
=======================================
  Hits           15       15
  Misses          1        1

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 339416a...aa1f478. Read the comment docs.

Codecov Report

Merging #73 (aa1f478) into master (339416a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #73   +/-   ##
=======================================
  Coverage   93.75%   93.75%
=======================================
  Files           1        1
  Lines          16       16
=======================================
  Hits           15       15
  Misses          1        1

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 339416a...aa1f478. Read the comment docs.

Superseded by #74.


long time launching

need 5 more seconds to launch a new windows

Can you provide more context on this issue @tkisme?

Darwin Kernel Version 16.0.0
hyper:0.8.2

@tkisme can you provide some actual example? Kinda hard to debug without it. For me personally it's just as fast. We don't do anything render blocking in Hyperline (all async). So this shouldn't be an issue 🤔

TypeError: this.setBatteryStatus is not a functio

TypeError: this.setBatteryStatus is not a function
is fixed now.

the render time is in ms so render time increased with around 100ms, not sure why that is. But it's still kinda fast 😏 at least it's not 5 seconds more, that would be terrible 😉

total init time 359.82


Allowing generic output type in VectorLinearInterpolateImageFunction::EvaluateAtContinuousIndex

Description
The current design restricts the output type of the interpolation to double. As shown here NumericTraits<typename TInputImage::PixelType>::RealType evaluates to double regardless of the input type.
We found this was an issue while profiling ANTs registrationSyN. Using ITK templating, the pipeline offers the option for computation to be done in either float or double. Unexpectedly, the execution time of the pipeline is significantly longer when using float compared to double (See figure below). Our observation shows that the time difference is due to the cast from float to double, and possible back to float in ANTs.

Caption: Mean time per iteration for the interpolation stages and levels in ANTs registrationSyN.

Looking at gdb output we see that the input data is an 3D image of type float
Thread 1 "antsRegistratio" hit Breakpoint 21, itk::VectorLinearInterpolateImageFunction<itk::Image<itk::Vector<float, 3u>, 3u>, float>::EvaluateAtContinuousIndex (this=0x55be27bacc00, index=...)
    at /tmp/ants/build/staging/include/ITK-5.3/itkVectorLinearInterpolateImageFunction.hxx:48
48      VectorLinearInterpolateImageFunction<TInputImage, TCoordRep>::EvaluateAtContinuousIndex(

but the output is of type double.
itk::FixedArray<double, 3u>::Fill (value=<optimized out>, this=<optimized out>) at /tmp/ants/build/staging/include/ITK-5.3/itkVectorLinearInterpolateImageFunction.hxx:70
70        output.Fill(0.0);

Impact analysis
Currently, the downside is that only double is accepted as an output type for the interpolation.
One the one hand, allowing generic type for the output would prevent confusion and potential slowdowns, as with the ANTs case above. Alternatively, the same type as the input data could be use, with similar benefits.
On the other hand, using different output type could affect the precision of the calculation if lower-precision data type are used, or increase the runtime if higher-precision data type are used. i.e. trade-off between performance and precision.
Due to the potential change in precision incurred by this change, this may affected substantially some tools depending on this function.

Expected behavior

Actual behavior

Versions

Additional Information

Thank you for the nice investigation and report.
Adding the capability to output double does seem reasonable.

Thank you for the quick reply.

Adding the capability to output double does seem reasonable.

I might have miss expressed myself. Currently, the function will always output as a double. My suggestion was to allow other types to be returned.
For example, in the ANTs case above, returning data in float would prevent the casting overhead and increase the overall performance of the pipeline.
I would be happy to work on a PR, but I might need some directions as I'm not super familiar with the ITK codebase nor C.

Ah, yes, returning float make sense, too.
A patch is welcome and appreciated. We are happy to provide guidance on implementing the desired functionality in ITK and ANTs. Our contributing guide provides general direction, but feel free to reach out if you get stuck on specifics.


1014 Add nuget Local Feed with Nox.Generator.Tasks package

This PR is a suggestion on how to use Nox.Generator.Tasks nuget package locally. What has been done in scope of this PR:

Added nuget.config that defines nuget LocalFeed in the existing src/nuget folder
Added post pack Target to Nox.Generator.Tasks.csproj to copy latest nuget package into the src/nuget folder
Added Nox.Generator.Tasks reference from LocalFeed to ClientApi.Tests project

Let's have a call to discuss if it works for everyone and how to fix build so that src/nuget folder is recognized as a local source during the automated build

@rochar  this PR is ready for review. I'll add migration *DbContext templates in the next PR if you don't mind.


Removed fall-back as it is hidning errors happening in the program class

You can find more info about the reason for this PR here:
https://stackoverflow.com/questions/66710156/why-do-nswag-fail-on-my-computer-and-not-on-my-colleagues-for-the-same-c-sharp-p/66747604#66747604

Doesnt this turn of needed fallbacks for certain scenarios/users?
Can you fix the conflict?

assembly loading not supported anymore


Fine-grained interior mutability

The current GcCell API for interior mutability is very coarse-grained: each GC'd object is either mutable or immutable (ignoring 'static fields that don't participate in the object graph), and the only safe way to mutate the object graph is to use the provided RefCell-like API, which incurs runtime checks. Anything else requires somewhat tricky unsafe code and a bespoke Collect implementation, which is suboptimal.
This PR reworks the mutation API by separating the type providing the unit of allocation (Gc) and the cell types providing interior mutability (cell::{Cell, RefCell}). The special cell::Mutable wrapper acts as a bridge between the two by enforcing the rules around write barriers.
Here's some example code I wrote to give a feel on how everything fits together:
use gc_arena::{Collect, Gc, MutationContext};
use gc_arena::cell::{Cell, Mutable};

// The infamous doubly-linked list!
#[derive(Collect)]
#[collect(no_drop)]
struct Node<'gc> {
    // The mutable parts are stored inline...
    prev: NodeLink<'gc>,
    next: NodeLink<'gc>,
    // ... and the rest stays immutable.
    value: Gc<'gc, /* whatever */>,
}

type NodeLink<'gc> = Cell<Option<Gc<'gc, Node<'gc>>>>;

// Ideally, this would be generated by some kind of proc-macro.
fn project_links<'a, 'gc>(
    node: &'a Mutable<Node<'gc>>,
) -> (&'a Mutable<NodeLink<'gc>>, &'a Mutable<NodeLink<'gc>>) {
    // Safe, this is just projecting fields.
    unsafe { (Mutable::assume(&node.prev), Mutable::assume(&node.next)) }
}

// Example usage. 100% safe code and no extra runtime checks!
fn detach_node<'gc>(mc: MutationContext<'gc, '_>, node: Gc<'gc, Node<'gc>>) {
    let (prev, next) = project_links(Gc::mutate(mc, &node));
    let prev = prev.replace(None);
    let next = next.replace(None);

    if let Some(p) = prev {
        let (_, prev_next) = project_links(Gc::mutate(mc, &p));
        prev_next.set(next);
    }

    if let Some(n) = next {
        let (next_prev, _) = project_links(Gc::mutate(mc, &n));
        next_prev.set(prev);
    }
}

This is still a work-in-progress (e.g. I'd like to implement the macro stuff), but now is the good time to get feedback on the core API :)

This took much more time than what I'd have liked, but I've finished  implementing the #[derive(Mutable)] macro for safe projections! (see src/gc_arena/tests/ui-pass/mutable_linked_list.rs for an updated version of the linked-list example)
I have still some more ideas and/or unresolved questions (see the following), but I believe this is enough for an initial MVP.

This PR is mostly backwards-compatible; the only change is that GcCell::allocate is now GcCell::allocate_cell.
Here are some further API changes I would propose if backward-compatibility isn't an issue:

Should GcCell be kept? It's a little unfortunate that GcCell<'_, T> is now an alias for Gc<'_, RefCell<T>> instead of Gc<'_, Cell<T>> (even though the second type is much less useful);
Should the Gc::write_barrier method be kept? Gc::mutate does the same thing, but returns a more useful type.
Maybe Gc::mutate should be moved to MutationContext? mc.mutate(gc) seems cleaner to me than Gc::mutate(mc, gc), idk.

Finally, a list of ideas for future improvements:

Exploit the invariant 'gc lifetime to add a cell::LCell<'gc, _> type and provide a statically-checked alternative to RefCell. I'm not sure how useful this is, and how to make this ergonomic (this would at least require to give &mut GcContext<'gc> instead of MutationContext<'gc, '_> in arena mutation methods).
Now that GC types can have mutable and immutable parts, it'd be nice if write barriers only traced the mutable parts; this could be done by, e.g., adding new Collect::{needs_write_barrier, write_barrier} methods. For an extreme example, the write barrier of DynamicRootSet could avoid tracing roots not added in the current GC cycle.
Add more Mutable convenience methods to reduce the need for unsafe: e.g. Mutable::index<T: IndexNoGc>(&Self) -> &Mutable<T::Target>, or Mutable::transpose_slice<T>(&Mutable<[T]>) -> &[Mutable<T>]. Again, I'm not sure how useful this is.

Is there anything more you wanted to do here? This feature would be really helpful

Is there anything more you wanted to do here? This feature would be really helpful

I'm really not happy with the Mutable projection stuff, the #[derive(Mutable)] macro is quite complex and doesn't work at all for third-party types. I'd like an alternative version where you don't need to annotate types at all, by providing a macro to type "mutable destructuring", e.g.:
mut_patterns! {
    let Node { prev, .. } = Gc::mutate(mc, &node);
}

// `prev`, `next`, `value` have type `&Mut<_>` here.
prev.replace(None);

This should be doable soundly, with a desugaring somewhat like this:
let _tmp: &Mutable<_> = Gc::mutate(mc, &node);
let &Mutable {
    __inner: Node { ref prev, .. },
    ..
} = _tmp;
// Sound because ref patterns never invoke Deref impls
let prev = unsafe { Mutable::assume(prev) };

Closing for now, in favor of the in-tree PR in Ruffle. I intend on opening a new PR once the proposed API has proven its worth in "real code", so to speak.


\lvert \rvert 's space looks strange

#mitex(`
\lvert a \rvert
`
) $ abs(a) $

might be hard to handle

I've just sort oiwiki equations by length and check about top 10% of them. Most of them looks fine!

btw, it is the output of texmath

This issue is a bit difficult to deal with, and I need to take into account the spaces before and after the symbols, and I'll see if there's any way to improve it later.

How about something like:
#let vert = math.class("closing", sym.bar.v)

$ z + vert x vert + y $

But this results in a slight asymmetry.

this is not optimal because vert can be used for other purpose

Yes, it's hard to deal with

This looks correct

how does tex determine which vert is opening and which vert is close?

how does tex determine which vert is opening and which vert is close?

I miss read. for lvert and rvert, it is easy to determin open and close. The hard thing is something like $|a+b|$


Escape tokens to support special characters

Q
A

Bug fix?
yes

New feature?
no

New sample?
no

Related issues?

What's in this Pull Request?
Some Token classes for the TokenParser have parameters (list name, content type name etc.) that were added to the token without any escaping. TokenParser then creates Regex from token and uses this regex to find the matches in parsed strings.
If those parameters contained special characters that are part of Regex syntax (e.g. "{listid:ListName (ABBR)}" contains brackets ), they got interpreted incorrectly and resulted in tokens not being resolved.
This pull request fixes the issue by doing Regex.Escape. It also contains test to verify the scenarios.

thx Tatjana, looks good.


Add bucket sns notification support to attach-encrypt

Blorg, sorry. Started over and wasn't careful to preserve the branch. This is a #910 redux. Closes #297.

I've pushed an implementation w/ test for the new topic case. Next is the existing topic case ...

@kapilt Can you give me some insight on what the S3_AUGMENT_TABLE is doing? I believe it may be implicated in an error I'm hung up on.

This bug affects an existing test, not just the new one I made. Debugging ...

commented on the referenced issue link.

Rebased and ready for review, @kapilt.

let's pull up on gitter to discuss this branch this week.

Per call, I'll spend a little more time with this to see if it's close or still far off.

Rebased, was afe83481a95422df306fc7ef71a355b2069029fd.

Rebased on latest master and reduced to two commits, with d7aa2ee3939e62e2b3d11434b5a6685ed6051ead being the interesting one. Previous head was f35467eb7c1d8ac8a108b6cd78d4aabc5f177294.

This is ready for review, @kapilt @ocampocj.

Rebased on master, was b2b2ecc0c2aa171a27a1461d3113b61399dd74be.

looks good, thanks. one request, could you slim down the recorded test data files, there's quite a few resulting from the list buckets call as the other buckets in the account are causing a few per bucket calls that can be omitted.

Rebased on lastest master (was 35038d17f47be9d64cbfdf926bf64903ac35cade), looking at slimming down fixture ...

fwiw best way to slim down is a manual edit or mock, manual edit, kill extra buckets in listing, and reorder json responses on individual calls (decrements on sequence numbers in file names).

How about 74c8b24d82a2cd574f3a91f0e044963f0d88893a, @kapilt? I see 27% fewer files.

much better, thanks


Refactor the layout and figma_import crates

As a result of this change the figma_import crate now depends on the
layout crate, instead of the layout crate depending on
figma_import.
As a result, the layout crate now has no dependencies within the
workspace.
layout's tests had to be moved to figma_import due to the tests heavy reliance on figma_import.

Not sure why there is both a styles.rs and types.rs?

Not sure why there is both a styles.rs and types.rs?

Personal preference for smaller files. "Styles" was the best name I could think of for the enums, which is what they correspond to in Taffy. I would have called it layout_styles.rs but that's too close to layout_style.

Not sure why there is both a styles.rs and types.rs?

Personal preference for smaller files. "Styles" was the best name I could think of for the enums, which is what they correspond to in Taffy. I would have called it layout_styles.rs but that's too close to layout_style.

Sure but what goes in one vs the other? Like I don't get why Dimension is in one but JustifyContent is in the other.

Not sure why there is both a styles.rs and types.rs?

Personal preference for smaller files. "Styles" was the best name I could think of for the enums, which is what they correspond to in Taffy. I would have called it layout_styles.rs but that's too close to layout_style.

Sure but what goes in one vs the other? Like I don't get why Dimension is in one but JustifyContent is in the other.

It could be a bit more clear to rename types.rs to geometry.rs`, I suppose.

Gave this a test and seems fine, so I'm good with it.


Failing Database Test

Actual Behaviour
Gradle build failing.
Expected Behaviour
Application should run.
Steps to reproduce it
Just run gradle build on the current code base.
LogCat for the issue
Error:(77, 27) error: insertQueries(ArrayList,DbHelper) is not public in DatabaseOperations; cannot be accessed from outside package.
Would you like to work on the issue?
Yes.

Right now tests are not written properly. If you want you can go ahead and do so. #171

@mananwason I am currently fixing the issue in the present test cases so that the current build works as expected and would later start working on designing new test cases.


Question: Subclassing a locale

I thought about creating a de-ch locale. And, as de-ch is just a special version of de, it would be nice to subclass the de locale and replace only the needed fields instead of copy the whole data and maintain a separate data set. Is this possible?

@jrast I also thought about this, but at the moment we have to duplicate some data for similar locales. I think that it's possible, but we need to develop special mechanism for it. It's also would be helpful for en-*. If you have any idea we can try do it.
@wikkiewikkie Look, please.

@lk-geimfari   I am in favor of this.  It not only reduces the amount of data to maintain, but makes it clearer what the differences are between related locales.
It will slow down initial loading of locale data as it would be reading two files instead of one, and also updating the dict, but keep in mind those calls are memoized using lru_cache.
I can put together a PR for the feature.

@wikkiewikkie Okay. I think that the speed loss will be insignificant. Thanks.

@jrast Hi! Sub-locales has been implemented (thanks for @wikkiewikkie). Feel free to add de-ch. Thank you!

@jrast I just added de-ch. Please, check correctness of data and update it, if you can. Unfortunately I find it difficult to find information in German. Thanks you.

Thanks! Just had time to have a quick look at it and it seems to work. However, I had no time to look (and update) the data.


Only English language available

In the drop Down of the configuration node only English can be selected:

I noticed that languages appear on the list. You need first to define google home with English, then use it in some flow and deploy. When you edit it afterwards you can select the language from the list.


ISHRemote Compilation failed on Visual Studio 2022

error MSB3073: The command "pwsh -NonInteractive -command "Import-Module D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin/Debug/net48/Trisoft.ISHRemote.dll -Force;$cmdletsToExport=(Get-Module -Name Trisoft.ISHRemote).ExportedCommands.Keys;New-ModuleManifest -Path 'D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin/Debug/ISHRemote/ISHRemote.psd1' -FormatsToProcess 'ISHRemote.Format.ps1xml' -FunctionsToExport @('Get-IshAuxSessionState', 'New-IshAuxCompletionResult', 'Register-IshAuxParameterCompleter') -RootModule 'ISHRemote.psm1' -ModuleVersion '7.1.0' -Prerelease 'preview001' -Guid '0314ffdb-6083-4c4d-aa01-8bfaac51a7e4' -Author 'RWS Group for and on behalf of its affiliates and subsidiaries' -CompanyName 'RWS Group for and on behalf of its affiliates and subsidiaries' -Copyright 'Copyright (c) 2023 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries.' -Description 'Business automation module on top of Tridion Docs Content Manager (Knowledge Center Content Manager, LiveContent Architect, Trisoft InfoShare)' -PowerShellVersion '5.1' -ClrVersion '4.0' -DotNetFrameworkVersion '4.8' -LicenseUri 'https://github.com/rws/ISHRemote/blob/master/LICENSE.TXT' -ProjectUri 'https://github.com/rws/ISHRemote/' -CmdletsToExport @($cmdletsToExport)"" exited with code 9009.
Code is taken from the GitHub Repository master branch and compiling directly on the Windows 11 machine
Appreciate any one with addresses this issue or suggestions here, what is going wrong in compiling the code on Windows 11 with dotnet version 7.0+

ISHRemote requires net48 and net6.0 frameworks for a successful compilation. Are both frameworks available on your Windows 11 machine?

yes both are available on windows 11. I verified both the versions using the below command
PS  Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" -Name Version
Version      : 4.8.04161
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4
PSChildName  : Full
PSDrive      : HKLM
PSProvider   : Microsoft.PowerShell.Core\Registry
PS  dotnet --version
7.0.304

here is the complete compilation output for reference
Build started...
1>------ Build started: Project: Trisoft.ISHRemote, Configuration: Debug Any CPU ------
Restored D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\Trisoft.ISHRemote.csproj (in 229 ms).
1>Trisoft.ISHRemote -> D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll
1>AssemblyPath: D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll, OutputHelpFilePath: D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll-Help.xml, TreatWarningsAsErrors False
1>GenerateHelp completed with exit code 'Success'
1>'pwsh' is not recognized as an internal or external command,
1>operable program or batch file.
1>D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\Trisoft.ISHRemote.csproj(96,2): error MSB3073: The command "pwsh -NonInteractive -command "Import-Module D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll -Force;$cmdletsToExport=(Get-Module -Name Trisoft.ISHRemote).ExportedCommands.Keys;New-ModuleManifest -Path 'D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\ISHRemote\ISHRemote.psd1' -FormatsToProcess 'ISHRemote.Format.ps1xml' -FunctionsToExport @('Get-IshAuxSessionState', 'New-IshAuxCompletionResult', 'Register-IshAuxParameterCompleter') -RootModule 'ISHRemote.psm1' -ModuleVersion '7.1.0' -Prerelease 'preview001' -Guid '0314ffdb-6083-4c4d-aa01-8bfaac51a7e4' -Author 'RWS Group for and on behalf of its affiliates and subsidiaries' -CompanyName 'RWS Group for and on behalf of its affiliates and subsidiaries' -Copyright 'Copyright (c) 2023 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries.' -Description 'Business automation module on top of Tridion Docs Content Manager (Knowledge Center Content Manager, LiveContent Architect, Trisoft InfoShare)' -PowerShellVersion '5.1' -ClrVersion '4.0' -DotNetFrameworkVersion '4.8' -LicenseUri 'https://github.com/rws/ISHRemote/blob/master/LICENSE.TXT' -ProjectUri 'https://github.com/rws/ISHRemote/' -CmdletsToExport @($cmdletsToExport)"" exited with code 9009.
1>Done building project "Trisoft.ISHRemote.csproj" -- FAILED.
1>Trisoft.ISHRemote -> D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net6.0\Trisoft.ISHRemote.dll
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 7:30 PM and took 12.946 seconds ==========

i could fix the owsh issue by updating the alias and proj file local to my system. now i see a difrferent problem
Build started...
1>------ Build started: Project: Trisoft.ISHRemote, Configuration: Debug Any CPU ------
Restored D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\Trisoft.ISHRemote.csproj (in 499 ms).
1>Trisoft.ISHRemote -> D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll
1>AssemblyPath: D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll, OutputHelpFilePath: D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll-Help.xml, TreatWarningsAsErrors False
1>GenerateHelp completed with exit code 'Success'
1>Trisoft.ISHRemote -> D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net6.0\Trisoft.ISHRemote.dll
1>New-ModuleManifest : A parameter cannot be found that matches parameter name 'Prerelease'.
1>At line:1 char:582
1>+ ... ootModule 'ISHRemote.psm1' -ModuleVersion '7.1.0' -Prerelease 'previe ...
1>+                                                       ~~~~~~~~~~~
1>    + CategoryInfo          : InvalidArgument: (:) [New-ModuleManifest], ParameterBindingException
1>    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.NewModuleManifestCommand
1>
1>D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\Trisoft.ISHRemote.csproj(96,2): error MSB3073: The command "powershell.exe -NonInteractive -command "Import-Module D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\net48\Trisoft.ISHRemote.dll -Force;$cmdletsToExport=(Get-Module -Name Trisoft.ISHRemote).ExportedCommands.Keys;New-ModuleManifest -Path 'D:\Cops-Projects\Repositories\GitHub\ISHRemote-TD15\Source\ISHRemote\Trisoft.ISHRemote\bin\Debug\ISHRemote\ISHRemote.psd1' -FormatsToProcess 'ISHRemote.Format.ps1xml' -FunctionsToExport @('Get-IshAuxSessionState', 'New-IshAuxCompletionResult', 'Register-IshAuxParameterCompleter') -RootModule 'ISHRemote.psm1' -ModuleVersion '7.1.0' -Prerelease 'preview001' -Guid '0314ffdb-6083-4c4d-aa01-8bfaac51a7e4' -Author 'RWS Group for and on behalf of its affiliates and subsidiaries' -CompanyName 'RWS Group for and on behalf of its affiliates and subsidiaries' -Copyright 'Copyright (c) 2023 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries.' -Description 'Business automation module on top of Tridion Docs Content Manager (Knowledge Center Content Manager, LiveContent Architect, Trisoft InfoShare)' -PowerShellVersion '5.1' -ClrVersion '4.0' -DotNetFrameworkVersion '4.8' -LicenseUri 'https://github.com/rws/ISHRemote/blob/master/LICENSE.TXT' -ProjectUri 'https://github.com/rws/ISHRemote/' -CmdletsToExport @($cmdletsToExport)"" exited with code 1.
1>Done building project "Trisoft.ISHRemote.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 7:55 PM and took 11.809 seconds ==========

can anybody guide me here how to fix this manifest issue?

which is the correct version for which i can compile the code to Tridion Docs 15. We need to compile and integrate into our custom tools. This is somewhat like a blocker.

Did you install PowerShell Core? https://github.com/PowerShell/PowerShell
You don't have to compile ISHRemote in order to use it, you can use the PowerShell Gallery to install ISHRemote https://www.powershellgallery.com/packages/ISHRemote/7.0.0

Thanks for your inputs. I found that Powershell core was not installed on my system. Installing PS Core resolved the problem
Also i have one query, we are using ISHRemote Project internally in several other C# console projects by using ISHRemote.dll library. My Query is do we need to have PS Core installed on the system where we are deploying the ISHRemote library?

Did you install PowerShell Core? https://github.com/PowerShell/PowerShell You don't have to compile ISHRemote in order to use it, you can use the PowerShell Gallery to install ISHRemote https://www.powershellgallery.com/packages/ISHRemote/7.0.0

I don't know how you are using the ISHRemote library in your project but probably you don't need PS Core when deploying your project on an other system. ISHRemote can be used with PowerShell and PowerShell Core and therefor it is compiled twice, one for the full framework net4.8 and once for .NET Core net6.0. Pick the right one for your project.

Team,
I would like to set the context here first here before getting in deeper.
Objective:
Write a Simple C# wrapper to execute the ISHRemote CmdLets.
Steps:

i downloaded the bundle as is to verify the bundles by writing a sample
c# application to just establish Session without installation of ishremote
on the system, i started getting error "New-IshSession cmdLet not Found"
Error.
Then i installed 7.0.0 version of IshRemote on Windows 11 OS. Then
retried the application.
This time started getting the error differently saying "IshRemote"
Module is not imported. I am stuck here. Reason is i am able to run the
commands on powershell editor after following the instructions mentioned in
the mail trail below. But am still not able to involve New-IshSession
command let in c# application.
Not Sure what exactly the problem is. I noticed that the issue is
happening on windows 11 OS. I also verified with

Still i could not fix the issue.
I have set the environments as mentioned below mail trail.
Any suggestions or idea would be really helpful.
Thanks & Regards
Shrinidhi
On Mon, Jul 24, 2023 at 7:17 PM Ivo van de Lagemaat <
@.***> wrote:

ISHRemote requires net48 and net6.0 frameworks for a successful
compilation. Are both frameworks available on your Windows 11 machine?
—
Reply to this email directly, view it on GitHub
https://github.com/RWS/ISHRemote/issues/161#issuecomment-1647950384, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AXGR56SOBYOYI65FQJET7DDXRZ4GFANCNFSM6AAAAAA2VTATLA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi Shrinidhi ... So ISHRemote is C# code that is delivered as a .NET Assembly complying with the PowerShell library standard. In turn the assembly library can be loaded (~ Import-Module) in a Windows PowerShell.exe or Pwsh.exe process so you can run its cmdlets (~ New-IshSession).
A. So based on the above you are wrapping the PowerShell executable again in a new C# program. Something along the lines of https://stackoverflow.com/questions/13251076/calling-powershell-from-c-sharp ? I'm still puzzled what business problem you are trying to solve.
B. Either you scenario above or what I will describe next is for me not the core purpose of ISHRemote, it is an edge case ... it is however open source so in a way you can have multiple attempts for whatever you desire :) Why not load the Trisoft.ISHRemote.dll directly into your C# project and run the necessary classes (~ ÌshSession) yourself. In the end it is open source so you can have a look what is happening inside New-IshSession`.
Best wishes,
Dave

Hi ddmeyer,
Thanks for your response.
My purpose of using C# is to write a ISHRemote Wrapper for certain common
functionalities for our daily and regular work for

Establishing Connection to Tridion 14 SP4 and getting prepared
with IShRemote Wrapper for Tridion 15.
invoke the API within a wrapper using IshRemote Modules  and solve our
BP.

I could fix the problem

By changing the platform from ARM64 to _x64 and adding the references of
Trisoft.IshRemote dll library from Modulepath directly. (Still not sure why
the Any CPU) platform settings doesn't work in visual studio.
I could run the wrapper in C# using ScriptBlock and IShRemote Modules
and was able to get the Results successfully.

Thanks For your inputs and response.
On Fri, Sep 1, 2023 at 8:46 PM ddemeyer @.***> wrote:

Hi Shrinidhi ... So ISHRemote is C# code that is delivered as a .NET
Assembly complying with the PowerShell library standard. In turn the
assembly library can be loaded (~ Import-Module) in a Windows
PowerShell.exe or Pwsh.exe process so you can run its cmdlets (~
New-IshSession).
A. So based on the above you are wrapping the PowerShell executable again
in a new C# program. Something along the lines of
https://stackoverflow.com/questions/13251076/calling-powershell-from-c-sharp
? I'm still puzzled what business problem you are trying to solve.
B. Either you scenario above or what I will describe next is for me not
the core purpose of ISHRemote, it is an edge case ... it is however open
source so in a way you can have multiple attempts for whatever you desire
:) Why not load the Trisoft.ISHRemote.dll directly into your C# project
and run the necessary classes (~ ÌshSession) yourself. In the end it is
open source so you can have a look what is happening inside
New-IshSession`.
Best wishes,
Dave
—
Reply to this email directly, view it on GitHub
https://github.com/RWS/ISHRemote/issues/161#issuecomment-1702917058, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AXGR56SI3TOBRMIE6SCGU2LXYH35LANCNFSM6AAAAAA2VTATLA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Thanks for closing the loop, appreciated! Just as a reminder...

You are currently on the released ISHRemote v7.0 with release notes near https://github.com/RWS/ISHRemote/blob/master/Doc/ReleaseNotes-ISHRemote-0.7.md
There is a work-in-progress branch to introduce Modern Authentication - a big feature of Tridion Docs 15/15.0.0 - in an upcoming ISHRemote v8.0 ... the draft release notes are in a branch on https://github.com/RWS/ISHRemote/blob/feature/152-refactor-InfoShareWcfConnection/Doc/ReleaseNotes-ISHRemote-8.0.md

Cool, thanks for the heads up!
When is the new version release of ishremote  expected for tridion 15?
As we are migrating to tridion 15 in the coming month, I would like to know
can we use the latest version a at that time by October 15 2023?
Appreciate your help
On Tue, Sep 5, 2023, 12:21 ddemeyer @.***> wrote:

Thanks for closing the loop, appreciated! Just as a reminder...

You are currently on the released ISHRemote v7.0 with release notes
near
https://github.com/RWS/ISHRemote/blob/master/Doc/ReleaseNotes-ISHRemote-0.7.md
There is a work-in-progress branch to introduce Modern
Authentication - a big feature of Tridion Docs 15/15.0.0 - in an upcoming
ISHRemote v8.0 ... the draft release notes are in a branch on
https://github.com/RWS/ISHRemote/blob/feature/152-refactor-InfoShareWcfConnection/Doc/ReleaseNotes-ISHRemote-8.0.md

—
Reply to this email directly, view it on GitHub
https://github.com/RWS/ISHRemote/issues/161#issuecomment-1706042844, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AXGR56RR2X5SUKFI3AOOMILXY3DYFANCNFSM6AAAAAA2VTATLA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Instances are not purged immediately, which do not release host ports during scheduling

After deleting instances that use a port, if you re-create and the new instance needs to use the same port, a scheduling error will occur as  the port will not be released.

The issue happens when you delete an instance of a service with ports exposed.

We are addressing by deallocating ports on instance.stop, not instance.purge

@sangeethah Can we test that we could delete an instance (not purge) and try to deploy a new instance using the same port so that there is no scheduling conflict?

Tested with v1.4.0-rc7. Created instance with exposed port. Deleted the instance and created another one with the same port. Container got created with no conflicts.


fix broken internal link in reference/api.md doc

in the authenticate section, the internal link to discovery is written in the incorrect format of Markdown link.
https://docs.onflow.org/fcl/reference/api/#authenticate

Thanks for catching and fixing this @gnujoow !


Add user custom field

As Wordpress "user meta" or Joomla "user custom field", it would be interesting to add users custom fields.

We released the Pagekit Beta today. I close this issue because the code base completely changed. Please open a new issue if it still exists.