Update index server build scripts and deployment

Please specify the area for this PR
registry index server
CI
What does does this PR do / why we need it:
Provides the following changes:

Headless mode added to index server (does not include or expect to include registry viewer)
Base index server image build no longer includes and no longer launches web server for registry viewer
Helm chart updated to include new registry viewer image, container setup, and removes old registry viewer resources
New helm chart added to run a headless index server image
Error handling added for GET /viewer proxy route

Which issue(s) this PR fixes:
Fixes #?
part of devfile/api#747
fixes devfile/api#977
PR acceptance criteria:

[x] Test Coverage

Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?

Documentation (WIP)

[ ] Does the REST API doc need to be updated with your changes?
[ ] Does the registry library doc need to be updated with your changes?

How to test changes / Special notes to the reviewer:
~Blocked by devfile/devfile-web#51, needs the quay.io/devfile/registry-viewer:next image to be published for testing to work.~ Unblocked

Need to publish a PR under devfile/registry with changes needed to dispatch registry deployment from here.

devfile/registry#144 has been merged and no longer blocks this PR
@johnmcollier ready for review


[PureK8S] System storage solution for Pure K8S based PAI

Define system storage solution for Pure K8S based PAI.
In PAI, HDFS was used as the system storage to save the following things. Since Yarn is not included in Pure K8S based PAI, these data should be handled elsewhere.

Name
PAI
PAI-lite

YarnContainerScripts
Stored in HDFS
Not used

DockerContainerScripts
Stored in HDFS
Use kube-runtime   instead, generate in init container and share with job container.

FrameworkDescription
Stored in HDFS
Ignore

JobConfig
Stored in HDFS
Stored in ETCD using annotations

Ssh Key Files
Stored in HDFS
Managed by user

Job Output
Stored in HDFS
Stored in system NAS  / other NAS like team wise storage

User Logs
Handled by yarn
EFK / ELK / Other solution

Use k8s Persistent volume to decouple PAI-lite and real technique used for NAS.
Work items:

[x] Refine kube-runtime for ENVs
[x] Generate provision file for multi jobs
[x] Read/write JobConfig. Using annotations to save in etcd (Work with #2933)
[x] Migrate job-exporter to compatible with Pure K8S based PAI
[x] Migrate webportal
[x] Job Output Config. Create Persistent volume for Job Output
[x] Refine deploy code

optional

[x] User Log solution

done.


Queues Analysis and Implementation

Analysis

[x] investigate nest usage of bull and redis for queue usage
[x] investigate persistent vs memory storage
[ ] investigate backup of queue
[x] determine work effort of of fully enabling queue in all environments with backups
[x] determine work effort to create pods and deployment scripts
[x] determine local setup
[x] investigate alternatives (postgres queue?)
[x] investigate queue monitoring ui

Implementation

[x] Define and review above implementation
[x] Implement defined above solution

Purposed Work Strategy

Create new application
Install nest package
create consumer
make local work
dev review
create and deploy 1 queue working
dev review
create deployment scripts
create backups

Created technical debt #1580 for liveness and readiness probe.

Back up of queues are subjective on how queues are going to be used further. Created tech debt #1583 if backup is required for redis.


Modal异常

Laravel Version: 8.83.2
PHP Version:7.3.4
Laravel-admin: 1.8.14

Description:
Sorry, I may not understand the usage of modal. I want to output the details of the current line to me by clicking the name, but it can't be realized. Please ask how to solve this problem. Thank you!

Steps To Reproduce:

异步 modal需要传入一个 Renderable 实例 ，截图中你传入的是一个 model 吧？
多看文档、仔细看文档
https://laravel-admin.org/docs/zh/1.x/model-grid-column-display#异步加载

usage
$grid->model()->where(.....)->orderBy('id', 'desc');

You need to first create your Renderable class with all the details, and then correctly call it in the grid for a column.
Not $grid->column('files')->model(PostFilesRenderable); but $grid->column('files')->model('Files', PostFilesRenderable); -- two arguments.
See examples in #5701 for more.


Mapper function which does not throw on missing column

Since 0.4.0 it's not possible to not have a column in select since the mapper function throws an error

Since it is an rxjava function the only solution I see is to have a secondary function which doesn't thrown an exception

What exactly do you mean with

not possible to not have a column in select since

can you post the generated mapper function  and a use case?

Suppose the table has 3 columns and I select only two, the generated mapper
function throws an error because of cursor#getColumnIndexOrThrow as the
mapper tries get the index of every column this was not so by default in
the previous version
On 18-Oct-2015 4:20 pm, "Hannes Dorfmann"<EMAIL_ADDRESS>wrote:

What exactly do you mean with
not possible to not have a column in select since
can you post the generated mapper function and a use case?
—
Reply to this email directly or view it on GitHub
https://github.com/sockeqwe/sqlbrite-dao/issues/20#issuecomment-149000941
.

I see ... That has been changed in 0.4.0 and is now configureable for each column via  Annotaion @Column(throwOnColumnIndexNotFound = false) (true is the default). The idea is to mark those columns as optional with throwOnColumnIndexNotFound = false ...

Got it


Feature/boas 518 manual upload to the bo documents to project documentation check files for viruses

Describe your changes

implements anti-virus

Issue ticket number and link
Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[ ] I have performed a self-review of my own code
[ ] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[ ] I have referenced the ticket number above
[ ] I have provided a description of the ticket
[ ] I have included unit tests to cover any testable code changes

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update dependencies for JDK11 and add CircleCI

This PR updates the dependencies so that it can continue running under JDK11, and adds CI with CircleCI.

Thanks Daniel :)

Thankyou!


Using VS controls in ToolWindow

Is it possible to use Visual Studio controls e.g. the properties browser inside a tool window for e.g. a DebugVisualizer? Is there some documentation for this I haven't found?

Unfortunately, Visual Studio does not have a re-hostable properties browser that you can use your extension. The recommendation for you would be to build something similar yourself using remote UI.


How do we support VS Code Insiders in winget?

Related: https://github.com/microsoft/winget-pkgs/issues/277
code-insiders is published approximately daily, while we could automate a PR for stable I don't think it makes sense to do this for Insiders. We have a web endpoint that points to the latest version, can we just not include a Version in the manifest?
@KevinLaMS

Hey Tyriar:
I think what you are asking for is channel support?
I will be happy to sync with you on this:
https://github.com/microsoft/winget-cli/issues/147

@KevinLaMS no not channels, we ship as 2 separate binaries such that you can install side-by-side. I'm envisioning what we do with the Linux packages where there is a separate app code-insiders that is defined separately to code.
Insiders is published to a lot, and we also need to be able to delete versions, this is all handled by the built-in updater. Another way of saying what I'm after is whether it's possible to create a https://github.com/microsoft/winget-pkgs/blob/master/manifests/Microsoft/VisualStudioCodeInsiders/latest.yaml where Version is either unset or set to something like latest, and then point it to our endpoint that downloads the latest insiders.

We also have an "exploration" build which is available on other platform package managers too:
http://packages.microsoft.com/repos/vscode/pool/main/c/
http://packages.microsoft.com/yumrepos/vscode/
https://snapcraft.io/code
https://snapcraft.io/code-insiders

So before I saw this issue and #327 , I tried creating my own manifest file for VS Code Insiders and was going to submit a PR.  However, while the manifest file passed validation, the actual installation failed using winget.exe install -m .\1.46.0.yaml. I got the following dialog box:

Here is my manifest file:
Id: Microsoft.VisualStudioCodeInsiders.UserInstaller
Version: 1.46.0
Name: Visual Studio Code Insiders (User)
Publisher: Microsoft Corporation
License: Copyright (c) Microsoft Corporation
AppMoniker: vscodeinsiders
Tags: vscode, insiders, editor
Description: The Visual Studio Code Insiders build is a code editor for early adopters that is optimized for building and debugging modern web and cloud applications.
Homepage: https://code.visualstudio.com/insiders/
Installers:
  - Arch: x64
    Url: https://az764295.vo.msecnd.net/insider/da3bf754c3c0eabda1dc80ed9d627679ee560697/VSCodeUserSetup-x64-1.46.0-insider.exe
    Sha256: 21D54D6B34B63F1FB41B0D21816E9B1CF1A5E1578AF810A805D3CE2086B2E773
    InstallerType: Inno

There were no logs files that I could find in the %temp% directory. I tried specifying -o .\log.txt, but that also produced no log file. How can I understand why it failed? Should I open this as a separate issue?
Thanks in advance.
Rob

@rob, when did you get that error?  I just ran the yaml you provided in the same command "winget install -m  and it installed.
The dialog seems odd.  Did it install at all?
the Logs should be here C:\Users<user>\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\

Thanks, Kevin. It didn’t install there at all. I didn’t look in the
Local\Packages directory for the logs. I’ll check that and get back to you.
On Tue, May 19, 2020 at 9:59 PM Kevin Larkin (MS<EMAIL_ADDRESS>wrote:

@rob https://github.com/rob, when did you get that error? I just ran
the yaml you provided in the same command "winget install -m and it
installed.
The dialog seems odd. Did it install at all?
the Logs should be here
C:\Users\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/winget-pkgs/issues/278#issuecomment-631187597,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGON5YTKTK2FOWS6RWEIK3RSM2OHANCNFSM4NFFAQ4A
.

--
Rob

I think it's worth to take a look at Scoop's solution to this problem when they added support for rust-nightly. https://github.com/lukesampson/scoop/issues/181

@Tyriar one of the concerns here is the SHA256 changing with each build. Not only would we need to point to "latest" and essentially ignore "version", we'd need to do the right thing with respect to an unknowable hash.

@denelon In the Scoop solution mentioned by @NatoBoram, they ignored the hash value.

@denelon In the Scoop solution mentioned by @NatoBoram, they ignored the hash value.

I'd still prefer having an automated path to getting manifests with a hash.
This may be better served by multiple source repositories. The work we're doing on the REST API should make it trivial for another entity to stand up their own repository and essentially be in control of their own destiny with respect to the packages installed. When someone adds a new source, all of the appropriate warnings and elevated permissions things can happen one time rather than every single install.

https://github.com/microsoft/winget-cli/issues/118


magic reflection

If player cast to times magic reflection byself, with second magic reflection remove effect.
On other spells that not success, for example wih bless u cast sometimes spell and not removed effect.
I don't know if he's in core for something. I only put it for evaluation, by script you could make it not happen too.

i think is nasty to get a decision.
magic reflection
reflect MAGIC
so it's normal.
but also should reflect heal, cure, bless.. etc
so i think best practice is to NOT reflect spellflag_good

Reflection doesn't reflect good spells at all, only the spells that has spellflag_harm flag reflecting. I checked the code XuN changed yesterday about spells but seems like nothing changed about that. Maybe I can make a test a little.

sorry my english, i mean when you cast magicreflection twice yourself

check you spell to not have spellflag_harm
cannot reproduce, here timer restart (override itself)
[SPELL 36]
// NOTE: This is a proactive type of protection that no one wants to see run out. Because of it's level and the amount of reagents I would think this spell last a bit longer in light of it only being a one time reflect as opposed to Reactive and protection. Should it have a duration at all or remain until dispel'ed or hit ???
DEFNAME=s_magic_reflection
NAME=Magic Reflection
SOUND=snd_spell_magic_reflection
RUNES=IJS
CAST_TIME=1.5
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_spider_silk
RUNE_ITEM=i_rune_magic_reflection
SCROLL_ITEM=i_scroll_magic_reflection
FLAGS=spellflag_dir_anim|spellflag_targ_char|spellflag_fx_targ|spellflag_good|spellflag_playeronly|spellflag_bless
EFFECT_ID=i_fx_bless_effect
EFFECT=0
LAYER=layer_spell_magic_reflect
DURATION=4*60.0,8*60.0
MANAUSE=14
SKILLREQ=MAGERY 50.0
INTERRUPT=100.0,100.0

I checked it with latest version but seems like it is working fine, please check if the issue still happening and try to explain which path you follow so we can test it. But as I said before Magic Reflection is reflect spellflag_harm flagged spells, so please check your Magic Reflection flags also.

@alexrmrm resuelto el issue? podemos cerrar?

I close this anyway


Multiprocessing Error

Hey,
I ran the command python -m bdd100k.label.to_coco -m det -i <path> -o <path>, and got the following error related to multithreading. How can we fix this?
Steps to reproduce the behavior:

Install scalabel using pip
Run above command
See error

OS: Windows 11

hello，I have the same problem. How did you solve it？Thanks

hello，I have the same problem. How did you solve it？Thanks

hello，I have the same problem. How did you solve it？Thanks

The scalabel code seems to be incompatible with the new pydantic 2.0 release. Downgrading to  pydantic 1.10.12 fixed it for me.
pip install pydantic==1.10.12


U boot 2020.04

Update U-boot to v2020.04 because of a problem with kernel boot at v2020.01 for orange pi zero.
RTE in version 0.7.0 crashed every time after Starting kernel ... log appears.
Update patch 0001-nanopi_neo_air_defconfig-Enable-eMMC-support from meta-sunxi to be apropriate with u-boot 2020.04.

You should explain in the PR description why we need to provide U-Boot recipes here

You should explain in the PR description why we need to provide U-Boot recipes here

@TomaszAIR Now all changes mentioned by you are applied.

@TomaszAIR Now all changes mentioned by you are applied.


Update README.md

#1  @Thuva4

@plant99 Thanks for the PR. See my comment in #1

@Thuva4 , should I edit language wise? And remove the proposed edit?

No, Add a little description after the link like this.

Angular Style Guide : A starting point for Angular development teams to provide consistency through good practices.


Make the 2.0.1 release

Before the release:

[x] Check if the metadata added in #89 is consistent and the dump is complete.
[x] Check if all tasks in the milestone are closed.

Release:

[x] Make a stable release of all datasets due to #89
[x] Check if all datasets were released and updated in the doc repo, stable branch.
[x] Make a stable release for each category.
[x] Check if the categories were updated in the doc repo, stable branch.
[x] Make a stable release in the main repo.

After the release:

[x] Close this task and the milestone
[x] Check if everything works (see #67)

All done! :partying_face:


[manager] disable inference_memory_opt

Enable inference_inout_memory_opt in inference could make a problem
Cause: If the networks are not flatten which means have a cycle, some of output of layer should be preserved.
For example, in resnet there is a residual output and if the opt is enabled this data could be corrupted.
See Also #1094
Self evaluation:
Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped
Signed-off-by: hyeonseok lee<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #1095. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.


prune a Unet

Dear Author(s),
I am trying to applying this channel pruning method on a Unet(which is RCNN-like network with residual branch. I have tried weeks to read your python code (Also I am quite familar with caffe's code).
So I tried to dig out that how you pruned channels of ResNet50. However, in the release of ResNet-50-2X (https://github.com/yihui-he/channel-pruning/releases/tag/ResNet-50-2X), the code seems to use VGG instead of ResNet.  Would you please help to guide how to run your method on ResNet?

@shockjiang hi,  am also considering pruning Unet using this method. Have you succeed?

not really. finally, I implement it myself, but in the method proposed in
the paper.
 Have you succeed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/yihui-he/channel-pruning/issues/78#issuecomment-400573931,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOZkyfR7J6xefEGZ9cwf28szEJ0Ltxgks5uAzangaJpZM4RVhIp
.

@shockjiang GREAT!Does your implementation works?How is the result?

it's not bad. the loss decreased from 0.64 to 0.62 while the flop reduce to
78%.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/yihui-he/channel-pruning/issues/78#issuecomment-400681624,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOZk4W-8kSFfW4yl7-dlJzAp7iOWRCHks5uA4--gaJpZM4RVhIp
.


Blockquotes should show in RTF editor

Various other theming might be relevant too, actually, but mainly – blockquotes don't appear with their secondary background in the RTF editor at present. It'd be nice if we could fix this.

Fixed in #396.


DatabaseWrapper's get_new_connection does not take OPTIONS into account

When using test fixtures in combination with FreeTDS, I keep running into the following error:
DatabaseError: ('42000', '[42000] [FreeTDS][SQL Server]Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. (4004) (SQLExecDirectW)'

For the most part, the key to solving this issue is specifying TDS_VERSION=8.0 as part of the extra_params in the  OPTIONS key of Django's DATABASES setting.
DATABASES = {
    'default': {
        'ENGINE': 'django_pyodbc',
        'NAME': "MyDB",
        'HOST': "myserver",
        'USER': "user",
        'PASSWORD': "password",
        'PORT': "1433",
        'OPTIONS': {
            'driver': 'FreeTDS',
            'host_is_server': True,
            'extra_params': "TDS_VERSION=8.0"
        }
    }
}

However, this problem keeps occurring when running unit tests that make use of test fixtures, even though it doesn't occur when regular users are hitting the code in question.
After spending multiple hours on this, I figured out that the django test runners call the get_new_connection() method of the DatabaseWrapper class in django_pyodbc's base.py module.
https://github.com/lionheart/django-pyodbc/blob/master/django_pyodbc/base.py#L182
This method is not called when using regular code, instead the DB connection is created during the first call to _cursor():
https://github.com/lionheart/django-pyodbc/blob/master/django_pyodbc/base.py#L267
I believe the issue here is that get_new_connection() doesn't specify the connectionstring to pyodbc as is done in _cursor():
https://github.com/lionheart/django-pyodbc/blob/master/django_pyodbc/base.py#L278
A workaround is to explicitly specify the connectionstring as follows:
DATABASES = {
    'default': {
        'ENGINE': 'django_pyodbc',
        'NAME': "MyDB",
        'HOST': "myserver",
        'USER': "user",
        'PASSWORD': "password",
        'PORT': "1433",
        'OPTIONS': {
            'connectionstring': "DRIVER={FreeTDS};SERVER=myserver;PORT=1433;UID=user;PWD=password;DATABASE=MyDB;TDS_VERSION=8.0",
            'driver': 'FreeTDS',
            'host_is_server': True,
            'extra_params': "TDS_VERSION=8.0"
        }
    }
}

However, this should be fixed in get_new_connection() itself. I believe the fix is as straightforward as calling _get_connection_string() and passing it to Database.connect() as its first argument.
I'd be happy to submit a pull request if someone can confirm this and the repo owner is accepting fixes.

I have a similar issue - looking at my trace file, the DB connection from get_new_connection has a connection string of [length = 170 (SQL_NTS)], while the DB connection from _cursor is [length = 134]
I'm putting together a pull request for this now, but I'm not sure how to unittest it.


set NTP server in cf-stub.yml or cf-deployment.yml

Hi Expert,
When deploy CF from bosh, where can I set NTP server in cf-stub.yml or cf-deployment.yml?
thanks,
David

You setup NTP in your bosh's configuration. Google the bosh.io docs for an example for microbosh.yml
On Tue, Aug 4, 2015 at 8:15 AM, liuxiaoxi2237<EMAIL_ADDRESS>wrote:

Hi Expert,
When deploy CF from bosh, where can I set NTP server in cf-stub.yml or cf-deployment.yml?
thanks,
David
Reply to this email directly or view it on GitHub:
https://github.com/cloudfoundry/bosh/issues/906

Thanks a lot for your help.
BTW, can NTPserver  of CF VMs be changed after deployment? In my test ,seems it can not be changed.

Afaik if you change NTP via your bosh you then need to restart/recreate each individual VM. There is no bulk method for rolling out this change to running VMs.
On Tue, Aug 4, 2015 at 11:23 AM, liuxiaoxi2237<EMAIL_ADDRESS>wrote:

Thanks a lot for your help.
BTW, can NTPserver  of CF VMs be changed after deployment? In my test ,seems it can not be changed.
Reply to this email directly or view it on GitHub:
https://github.com/cloudfoundry/bosh/issues/906#issuecomment-127683332

thanks.


Auto-Generated import for precache-manifest pointing to the wrong location

Library Affected:
workbox-webpack-plugin
Browser & Platform:
all platforms
Issue or Feature Request Description:
Currently the generated precache manifest will be included automatically in the generated service worker via importScripts.
There is no option to specify which path it is using. Our production environment is quite different, so we get something like:
importScripts("../../../../precache-manifest.f2ad02297cbb47cee50795faa3bfee28.js", "https://storage.googleapis.com/workbox-cdn/releases/3.4.1/workbox-sw.js");
but what we need is:
importScripts("ui/theme/precache-manifest.f2ad02297cbb47cee50795faa3bfee28.js", "https://storage.googleapis.com/workbox-cdn/releases/3.4.1/workbox-sw.js");
As far as i can tell there is currently no such option. With gulp and workbox-build we could just use the injectManifest function and in the service worker source file define an empty array, which got automatically filled by all prechachable files:
workbox.precaching.precacheAndRoute([],         {             cleanUrls: false         });
after:
workbox.precaching.precacheAndRoute([ {     "revision": "51b9703cbbf90b6ca05a1b58e4e85051",     "url": "ui/theme/fonts/daxot-condbold-webfont.ttf"   },   ... ],         {             cleanUrls: false         });
With this automatic generation of a precache manifest as extra file, we are sadly confronted with the described issue.

Does the importsDirectory option help you accomplish what you're trying to do?

Hi jeff,
thanks for your feedback. Yeah i see what you mean. I was using that option already but i read this as possibility to change the path of the file creation. Now im using webpack for copying that files over and its working as we need it.


Guest Login Feature Added

Related Issue

Closes: #138
Description of Changes
Sure, here's the revised version of your changes for the pull request:

Added a 'Login as Guest' button in the Login Section.

Created two types of links:
For Guest users:
- /tiny/user/index?userType=guest&uno=cac7ee6713
This link is specifically designed for Guest users. The unique identifier (uno) "cac7ee6713" is randomly generated. The uno
value is created with a higher number of digits and characters compared to Normal Users' uno values. This ensures that the
uno for Guest users is distinct from that of Normal Users, minimizing the chance of duplication.
For regular Users:
- /tiny/user/index?username=5b67e0&uno=bee809
This link is for regular Users, and the username is "5b67e0", with the unique identifier (uno) as "bee809".

Added a variable $userType and checked its value throughout the code where required, verifying if it equals "guest" or not.

Changes made for guest login:

Display "Hello Guest" instead of "Hello [email id]" on the User Panel page.
Set a default profile photo for Guest Users.
Hide the "Change Password" option from the Sidebar and the "Want to Update" section on the profile view page if the user type is "guest."

Utilized isset() to handle undefined variable problems. For example:
if (isset($_GET['userType'])) {
    $_userType = $_GET['userType'];
}

Used the isset() function to check if $_GET['userType'] is set and its value is "guest" So that undefined Variable Warning is Handled
if (isset($_GET['userType']) && $_GET['userType'] === 'guest') {
    // Perform actions specific to Guest users.
}

Added an if-condition to differentiate actions based on the user type. If the user is a guest, execute actions specific to guest users; otherwise, perform actions for regular users.

All the necessary changes have been implemented in the SuccessCopy, Preview, and SuccessDelete pages to accommodate both Guest users and Normal Users. These changes ensure that the functionality and content of these pages are appropriately tailored for each user type.

Please review the changes and let me know if you need any further assistance!
Checklist:

[x] My code adheres to the established style guidelines of this project.
[x] I have conducted a self-review of my code.
[ ] I have included comments in areas that may be difficult to understand.
[ ] I have made corresponding updates to the project documentation.
[x] My changes have not introduced any new warnings.

Notes
Session for Guest Users is also created and works similarly to Normal Users. This ensures that Guest Users can have a personalized experience during their session on the website.
The Shorten Links are saved in the database and can also be retrieved in the Shortened Link Section. This allows users, both Guests and Normal Users, to store and access their shortened links conveniently.
Screenshots
This is For Guest Users

Profile Page [Guest User]
Login Page [Guess User]

IUser Panel [Guest Users]
Shorten Links [Guest User]

Please provide any necessary screenshots to illustrate the changes made.

Please let me know if you need any assistance or have any questions regarding the pull request code. I'm here to help and provide any necessary support.
Additionally, if there are any outstanding issues or if you would like to add any features related to the Guest Login functionality, we can discuss and address them in order to ensure a smooth and successful pull request.

Ok It means that the flows goes in this way
click on Guest Button -> Short Link using three fields you mentioned ->  then show the user Copy Button
ok and can please explain this
All the links that will be shorted using Guest Pop up goes to the admin account , dont create another user for Guest
and why my way of this feature is not working for you ?

@Nishitbaria
Yes,
click on Guest Button -> Short Link using three fields you mentioned -> then show the user Copy Button
Shorted Link + copy button like this

your thought is also nice , but it is just like you are duplicating the account and also if we use your method , then i have to mention in readme also that you must 2 rows in this table with values this and this , so it is not good way.

Ok Thanks I Got it @apoorvaron


exclude javadoc jar in adam-shell

follow-on to 4955aee8ff759f8e619c18a3f5c2352e9265da28

LGTM

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1178/
Test PASSed.

@heuermh can you review this real quick?

+1

Thanks @ryan-williams! Merged as https://github.com/bigdatagenomics/adam/commit/fb8237e8376e68b631996e7719b441056744c3ea and https://github.com/bigdatagenomics/adam/commit/8da07235077809e0195237789cc51459e09da6f8.


Changes to the return of the GetInstanceResourceAsync method to add the Transfer Syntax into Content Type.

Description

Creation of variable to store MediaType and the Transfer Syntax, and pass to the return of the method.
A bit of workaround to avoid breaking the test GivenStoredInstances_WhenRetrieveRequestForInstance_ThenInstanceIsRetrievedSuccessfully, because I changed the return of GetInstanceResourceAsync method in the previous paragraph.

Related issues
Addresses [#1071].
Testing
I couldn't test using Postman, but I store and retrieved DCIM files successfully. I tested by running all the tests in Microsoft.Health.Dicom.Core.UnitTests solution, especially the tests related to the GetInstanceResourceAsync method.
For some reason of the 1061 tests, 123 failed, but none of them are related to this issue, are more SQL Server issues, despite I did all the requirements including installing SQL 19 with full-text search and the AzureStorageEmulator did create a database with many tables in SQL.

Thanks, @wbalbo - we'll need to get all of the existing tests green in order to check in any code.

Thanks, @wbalbo - we'll need to get all of the existing tests green in order to check in any code.

Okay, thanks. I will come back to this project later after work and try to understand why my tests failed.

Hi, sorry for the delay.
I think I found a solution, will update later today, thanks.

Tests using unit tests and Postman.

Strange error in the build.

We just fixed an error in our PR builds that may require some manual intervention - if you merge the latest main it will pull in the fix and I'll do a manual step to unblock the build.

Strange error in the build.

We just fixed an error in our PR builds that may require some manual intervention - if you merge the latest main it will pull in the fix and I'll do a manual step to unblock the build.

Okay, so the right thing to do before I make any changes to the above comments from you is to do a merge from main into my Issue1071 branch, right?
Thank you.

Yes, go ahead and merge main - I did a manual cleanup step on the Azure resources that get deployed for testing so future PR builds should work.

Strange error in the build.

We just fixed an error in our PR builds that may require some manual intervention - if you merge the latest main it will pull in the fix and I'll do a manual step to unblock the build.

Okay, so the right thing to do before I make any changes to the above comments from you is to do a merge from main into my Issue1071 branch, right?
Thank you.

Yes, go ahead and merge main - I did a manual cleanup step on the Azure resources that get deployed for testing so future PR builds should work.

Sorry, I was unsure of how to proceed so I did not make a commit.
I did a git pull upstream main in my main branch and get all the changes from the main branch of this repo into my local main branch.
Then I did a git checkout to enter in my branch Issue1071, and a git merge to apply the changes into my branch.
But I get many files and I don't know which files I need to unstage and which files I need to commit, can you help me with that?
Thanks.

I did this.
Please let me know next week if nothing is wrong so then I can make the changes above, thanks.

Looks good!

I did this.
Please let me know next week if nothing is wrong so then I can make the changes above, thanks.

Looks good!

Thanks, but it seems we have a vault key error, I could ignore this and make the changes above now.

Thanks, but it seems we have a vault key error, I could ignore this and make the changes above now.

Yes, go ahead with your changes and I'll keep an eye on the build pipeline.


Fix CSV/RAW outputting wrong format

Description
When making SQL calls with csv or raw outputs the formatting would be incorrect as the header sets the format to application/json rather than plain/text like the legacy engine did.
This PR adds a format getter to both response formatters to allow it to be set correctly.
Issues Resolved
https://github.com/opensearch-project/sql/issues/1572
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

CI fails due to lack of unit tests


OmniSharp.exe fails to launch due to System.IO.FileNotFoundException

Hello,
I've been trying to get OmniSharp to work for several hours now, but all of my attempts were in vain. When I open a C# file, I get the following error in the Omnisharp Output:
Starting OmniSharp server (pid:32635)
OmniSharp Location: mono /home/steven/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/omnisharp-mono/OmniSharp.exe
Change the location that OmniSharp is loaded from by setting the OMNISHARP environment variable
OmniSharp Path: /home/steven/test

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

File name: 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at Program.Main (System.String[] args) <0x4076ad50 + 0x0012f> in <filename unknown>:0

[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

File name: 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at Program.Main (System.String[] args) <0x4076ad50 + 0x0012f> in <filename unknown>:0

I do indeed have the requirements covered. I am running Ubuntu 16 with latest updates and I have the latest stable versions of the CLR and SDK (RC2 and Preview 1 respectively) and Mono version 4.2.1.
From what I can tell, it's looking for System.Runtime, but it's just not there. I tried to manually restore the plugin's packages and some other stuff. What I am doing is that I create a new project with dotnet new, after which I run dotnet restore and dotnet build. When I try to open the C# file, this error occurs. Same happens when I try to start it from the terminal.
I'm sorry if this error is caused by some external factors, that are not related to OmniSharp, due to my ignorance . Thanks!

My full Atom configuration can be found here: https://gist.github.com/Stev3nT/5450386acf3243a1f496c22f3125fd7f

I'm having the same issue here, and does the same with VSCode's C# plugin.. any insights ?
I'm on Ubuntu 16.04 and installed dotnet with these instructions https://www.microsoft.com/net/core#ubuntu

Also having this problem on Linux Mint 18, follow links from VS Code which led to same instructions as @abourget linked above.

No longer relevant :)


Cannot restore mmenonics

Steps to reproduce:
$ ord --signet wallet create
{
  "mnemonic": "actress easy busy upset image sport vital attend long fault whisper increase"
}

Delete the ord file.
$ ord --signet wallet restore "actress easy busy upset image sport vital attend long fault whisper increase"

$ ord --signet wallet receive
error: wallet "ord" contains unexpected output descriptors, and does not appear to be an `ord` wallet, create a new wallet with `ord wallet create`

$ ord --signet wallet transactions
error: wallet "ord" contains unexpected output descriptors, and does not appear to be an `ord` wallet, create a new wallet with `ord wallet create`

$ ord --signet wallet inscriptions
error: wallet "ord" contains unexpected output descriptors, and does not appear to be an `ord` wallet, create a new wallet with `ord wallet create`

Running 0.4.2 on macOS.

Can you post the output of bitcoin-cli -signet listdescriptors? That error message means that there are extra descriptors in the wallet that ord doesn't recognize, which makes it think that it's not an ord wallet. Please only post the descriptors here if it's a test wallet without real funds.

You might need:
bitcoin-cli -signet -rpcwallet=ord listdescriptors                                                                                ```

The descriptors are:
{
  "wallet_name": "ord",
  "descriptors": [
    {
      "desc": "rawtr(63c1e3e42c43442300a98e866b7223baecde666665b74aff41c533ad276257cc)#0s2cl5y5",
      "timestamp":<PHONE_NUMBER>,
      "active": false
    },
    {
      "desc": "tr([7f6833d3/86'/1'/0']tpubDDdYhQPCaVm9C3EAAbk11PKYiBGfbF1iXHfg9Njzr48nWaScwF1PYiM5GgmPLQkUDhCdXhYaExhovQfLqTQDVB7k6P1pqzge9sXHpAFY4J4/0/*)#tz9vzfr6",
      "timestamp":<PHONE_NUMBER>,
      "active": false,
      "range": [
        0,
        1005
      ],
      "next": 6
    },
    {
      "desc": "tr([7f6833d3/86'/1'/0']tpubDDdYhQPCaVm9C3EAAbk11PKYiBGfbF1iXHfg9Njzr48nWaScwF1PYiM5GgmPLQkUDhCdXhYaExhovQfLqTQDVB7k6P1pqzge9sXHpAFY4J4/1/*)#6kqdlunz",
      "timestamp":<PHONE_NUMBER>,
      "active": false,
      "range": [
        0,
        1001
      ],
      "next": 2
    },
    {
      "desc": "tr([a425da5b/86'/1'/0']tpubDChiJ7dFGzCzXRu5wEko6A8udiUs9ZcCdR7L1BSAA6bc23rWTiVkPQP746LNMqm29N6PE57B69BBtrRjiqYtLM2RNYqcg2frU4NYTEE4NfA/0/*)#csktfpdq",
      "timestamp":<PHONE_NUMBER>,
      "active": true,
      "internal": true,
      "range": [
        0,
        999
      ],
      "next": 0
    },
    {
      "desc": "tr([a425da5b/86'/1'/0']tpubDChiJ7dFGzCzXRu5wEko6A8udiUs9ZcCdR7L1BSAA6bc23rWTiVkPQP746LNMqm29N6PE57B69BBtrRjiqYtLM2RNYqcg2frU4NYTEE4NfA/1/*)#fyn255ac",
      "timestamp":<PHONE_NUMBER>,
      "active": true,
      "internal": false,
      "range": [
        0,
        999
      ],
      "next": 0
    }
  ]
}

balance outputs a different error:
$ ord --signet wallet balance
error: Database already open. Cannot acquire lock.

Okay, weird. It looks like ord wallet create ran twice and created two sets of descriptors. One set has been used, and the other set hasn't, if I"m reading it correctly. (Two have next: 0, which indicates that no addresses have been used.) To recover this specific wallet, I would delete the wallet, and restore from the seed. (Make sure it's the right one!) Use ord --wallet NEW_WALLET restore <SEED>, make sure you have everything you expect. You can then rename NEW_WALLET to ord, which is the default name.

This is still a bug though, we need to figure out why ord wallet create could run when the wallet already existed.

I have this same issue. Restored a wallet and got:

unexpected output descriptors

Core wallet has 4 descriptors (2 internal, 2 external).
Sadly Core has no commands to delete descriptors.

I was able to workaround this by creating a new Core wallet and importing both descriptors (receive and change).

I'm having a similar issue to this, it would seem. Is there an easy way to fix?

Steps to reproduce:

ord --signet wallet create
Delete the ord file.
ord --signet wallet restore "actress easy busy upset image sport vital attend long fault whisper increase"
ord --signet wallet receive

@hantuzun I'm unable to reproduce this with these steps. Are there any extra steps I might be missing?

I get "error: Database already open. Cannot acquire lock." when I try to run various commands. Is this related? I see he had a similar error above.

This is blocked for now, until we can reproduce it.

Can it be related to having 2 wallets named "ord" in different networks? I had this issue after I ran ord on regtest.

I don't think so, bitcoin core should be putting wallets for different networks in different subdirectories.

I messed up my seed and I have some missing words. I still have the wallet.dat file thought. Here is how I got to this same problem:

So in panic I moved the ord wallet.dat manually and ran ord wallet create to get a new wallet. The idea was to move the inscriptions to the new wallet. I did not know at that time that I could just create a new wallet in parallel.
The I tried to call balance of the new wallet and I got to this error here.
I was surprised when I could not use my old wallet.dat again when copying it back to .bitcoin/wallets/ord/wallet.dat

Do you know how to fix the descriptors so I can recover my oridignal wallet.dat?

I was able to workaround this by creating a new Core wallet and importing both descriptors (receive and change).

@ottosch could you give me a hand on how to repair the descriptors?

uld delete the wallet, and restore from the seed. (Make sure it's the right one!) Use ord --wallet NEW_WALLET restore <SEED>, make sure you have everyth

Should we remove the active or inactive tr descriptors?

@Codonyat the easiest way I found is to import the seed in Sparrow to discover the correct descriptors (they are 2: 1 for receive addresses and 1 for change addresses). Then create a new wallet on Core (rename the old ord wallet first) and import the correct descriptors.
Send me a DM on Discord and I'll help you. Just don't send any data (seed words, xprv and preferably not even xpubs).

@Codonyat the easiest way I found is to import the seed in Sparrow to discover the correct descriptors (they are 2: 1 for receive addresses and 1 for change addresses). Then create a new wallet on Core (rename the old ord wallet first) and import the correct descriptors. Edit: without Sparrow you can find them by trial and error too, since there are probably only 2 options.
Send me a DM on Discord and I'll help you. Just don't send any data (seed words, xprv and preferably not even xpubs).

Thanks for the tip @ottosch. Eventually I just managed to find the other two words by brute force in the mnemonic phrase.

I had the same issue and somehow fixed it by just repeatedly deleting and restoring the wallet until there were only two descriptors.

I got this.. I got this problem earlier when i tried to restor a diff wallet and solved it by erasing the dir.. but that seems to not work more than once
[1]> bitcoin-cli  -rpcwallet=ord listdescriptors
{
"wallet_name": "ord",
"descriptors": [
]
}

solved it by removing dir ord
rm -rf .bitcoin/wallet/ord
then.. ord wallet restore "seed here between quotes like this"

This is blocked for now, until we can reproduce it.

I can reproduce it easily...
Create a wallet, delete the wallet, restore the wallet and it will throw the error


[WIP] Expose nonlinear power spectra from Boltzmann codes

Currently CCL only uses the linear power spectrum prediction from Boltzmann codes, with limited options for nonlinear power spectra. Boltzmann codes provide a range of fast nonlinear models that can be used. For example, CAMB provides an extensive list of codes, among them HMCode.
This PR uses the HMCode implementation in CAMB to provide nonlinear predictions for the matter power spectrum, including modelling of baryons, for CCL. It addresses issue #819.
To make the baryon modelling accessible, the HMCode parameters A and eta (for the 2016 model), and the AGN feedback strength logT (for the 2020 model) are exposed. To get this to work consistently and for the yaml output, these are also added to the C layer.
This kinda changes the Python API (by adding new but optional parameters to Cosmology.__init__) and clearly changes the C API (by changing ccl_parameters_create).
I'd rather have avoided that but right now everything needs to go through the C layer. For example, the write_yaml method uses the C-layer dumper function. NB, read_yaml doesn't use the C-layer reader.
While there is a read_yaml function in the C-layer, it is not being used. I've added the new parameters to it but this breaks loading old yaml files due to the super simple implementation of the C read_yaml function.
If not for the yaml functionality, the HMCode parameters could probably live in the Python layer in a structure adjacent to _params.
To discuss
Should the HMCode parameters get added to the ccl_parameter struct or better live exclusively in the Python layer? This would require some refactor of the yaml functionality. Which might be a good thing. Currently it is quite painful to add any new functionality since everything is still tightly bound to the C layer.
Todo

[ ] Add tests
[ ] Fix existing tests
[ ] Expose nonlinear power spectra in CLASS

OK, do we really want the write_yaml at all? (@joezuntz ?)
And if we do, could we just put it in python?

Yes, fine to drop this and replace it with pure python. In practice what we use in TXPipe just needs to initialize a cosmology, not fully serialize e.g. calculations that have already been run.  So yes, please go ahead.

Replaced by #854


(You) notificafion

Can you add some sort of way to show that someone replied to you? Thank you very much. Oh, and I use the 4chan extension mainly.

Most imageboards don't provide number of post that just been sent. Only 4chan and some other sites can do this. Maybe I'll think about this exclusive feature for them later.

This function is the water divisor for many chan users on Mobile.
If the dev add the feature mentioned a above and publish on GP this app will be a 4chan App Killer imo.


debianutils: <IP_ADDRESS> -> 4.9

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/debianutils/versions.
meta.description for debianutils is: '"Miscellaneous utilities specific to Debian"'.
meta.homepage for debianutils is: '""

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 4.9 with grep in /nix/store/92ns8yps10mzb318zfkd3yzd5km5bi2x-debianutils-4.9

directory tree listing: https://gist.github.com/6e633c30179dc5449b05b782dce8769c

du listing: https://gist.github.com/1fa50bd12a515a012cf121953a104667

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
debianutils

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/92ns8yps10mzb318zfkd3yzd5km5bi2x-debianutils-4.9 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A debianutils https://github.com/r-ryantm/nixpkgs/archive/865966c1bb6b676d436912ef36eb89461e4521eb.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/92ns8yps10mzb318zfkd3yzd5km5bi2x-debianutils-4.9
ls -la /nix/store/92ns8yps10mzb318zfkd3yzd5km5bi2x-debianutils-4.9/bin

@GrahamcOfBorg build debianutils

debianutils 4.9 uses O_TMPFILE which is Linux-only.
I tried to report a bug to Debian, but oh boy, it is not easy, their command line tool is not packaged and it took me some time to craft that specific mail but it got rejected.
Marking as broken on darwin.


types: Fix purging when section contains '//'

A change made in 0fe96f7 to support section headings of the form:
foo://bar

broke purging, where the underlying inifile type generates resources
with titles like:
section/setting

When a resource is generated with a title 'foo://bar/setting', the
setting name is not parsed.  This is the case with inputs which often
take on the form:
[monitor:///var/log/messages]
setting1 = value1
setting2 = value2

The result is an error message: "Error:
/Stage[main]/Splunk::Params/Splunk_config[splunk]: Failed to generate
additional resources using 'generate': Got nil value for setting."  See:
issue #69.
This change looks for additional slashes beyond the '://' and will
parse out the following string as the setting name.
This is not very satisfying because it could break a theoretical section
name containing extra slashes, but I have not come across that before,
and the [monitor:///../../../] case is very common.

Travis did not run.

Fixed--just minor rubocop violations.

Thanks!


fix: update use of foreach

This should fix the community build.

Yes, but it is incompatible with the latest release, so I'm waiting for the newest version of Flix to be released. I also have this commented (in code) in https://github.com/jaschdoc/flix-parsers/pull/19


Earlgrey: yosys fails to parse aes_key_expand

Parsing aes_key_expand.sv file results in error in yosys:
aes_key_expand.sv:164: ERROR: Can't resolve function name `\aes_circ_byte_shift'.

Blocked by: https://github.com/alainmarcel/Surelog/issues/1109

Surelog problem is resolved, but now generated bitstream is not working on HW.


replace HTTP link with HTTPS

At least a self signed certificate?

The certificate is expired. I'm not sure we should link to that. It's just documentation after all.

Closed for now, see coredump-ch/spaceapi-server-rs#7


Search is broken

In GitLab by @lakhoune on Dec 31, 2020, 13:52

Location: search bar
Description: When changing the sorting of the cards, the carousel will navigate to the wrong card when selecting the search result.
Expected behaviour: show the right card which has the search result title
Steps to reproduce:

go to any lecture change sorting to newest.
Search for a card

In GitLab by @lakhoune on Dec 31, 2020, 13:54
This is due to the fact that search sets the active index.
We should change this by adding an action to ngrx store which selects a card by its cardid and then have the search component dispatch that action to the store

In GitLab by @lakhoune on Dec 31, 2020, 13:55
By changing this we can also implement navigating to a card in the carousel from selecting that card in the user profile

In GitLab by @lakhoune on Dec 31, 2020, 14:01
marked this issue as related to #109

In GitLab by @lakhoune on Dec 31, 2020, 15:59
marked this issue as related to #111

In GitLab by @lakhoune on Dec 31, 2020, 16:53
mentioned in commit 09ad93f831910c434dd48c4e0cd8efd0c57bdf4e


Add files via upload

Just fixed final enemy's stats as the game was unbeatable, also fixed a texture that was not working.

Example: Pushing boxes to the goal. (from Sokoban Plus)

How to play your game?

Example  : Press WASD to move, J to restart and K to toggle trails, Get A boxes (cyan) to A goals (green), Get B boxes (magenta) to B goals (red), Get normal boxes (gray) to either goal. (from Sokoban plus)

Code
Check off the items that are true.

[ ] The game was made using the Sprig editor.
[ ] The game is placed in the in the /games directory.
[ ] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[ ] The game runs without errors.
[ ] The name of the file/game contains only alphanumeric characters, -s, or _s.
[ ] The game name is not the same as the others from gallery

Image (If an image is used)

[ ] The image is in the /games/img directory.
[ ] The name of the image matches the name of your file. Example: sokoban_plus.js -> sokoban_plus.png.

Thanks for PR!

please complete the checks

This error is showing up for me:
undefined is not iterable (cannot read property Symbol(Symbol.iterator)) on line 101 in column 1. Open the browser console for more information.


FIX: scipy.interpolate.LinearNDInterpolator: wrong call to _calculate_triangulation (#21043)

Reference issue
https://github.com/scipy/scipy/issues/21043
Test
python dev.py test -s interpolate -m full
[...]
scipy/interpolate/tests/test_interpnd.py ......................                                                                                [ 33%]
[...]
======================================================== 1023 passed, 17 skipped, 1 xfailed in 11.38s ========================================================

look no break on existing test.

Is it possible to add a regression test to ensure that if a triangulation is passed that triangulation is retained?

I will try...
I find where I need to write the test.
Need to figure how to do a simple test for this use case... may need some time.

a simple test can be to control that the triangulation passed is not modified. With simple add in this test
# Actuel
    def test_tri_input(self):
        # Test at single points
        x = np.array([(0,0), (-0.5,-0.5), (-0.5,0.5), (0.5, 0.5), (0.25, 0.3)],
                     dtype=np.float64)
        y = np.arange(x.shape[0], dtype=np.float64)
        y = y - 3j*y

        tri = qhull.Delaunay(x)
        yi = interpnd.LinearNDInterpolator(tri, y)(x)

        assert_almost_equal(y, yi)

# Modified
    def test_tri_input(self):
        # Test at single points
        x = np.array([(0,0), (-0.5,-0.5), (-0.5,0.5), (0.5, 0.5), (0.25, 0.3)],
                     dtype=np.float64)
        y = np.arange(x.shape[0], dtype=np.float64)
        y = y - 3j*y

        tri = qhull.Delaunay(x)
        interpolator = interpnd.LinearNDInterpolator(tri, y)
        yi = interpolator(x)

        assert_almost_equal(y, yi)
        # insure the triangulation is not recompute.
        assert interpolator.tri is tri

To be fair, I don't rely like that :wink:

Don't change existing tests, just add a new one

Don't change existing tests, just add a new one

I see... in the same vein: is it best to make 2 tests than have 2 check in 1 test ?

Adding an assert to an existing test is fine.
Just send a PR and the diff will be clear if it's ok or not.

add a regression test to ensure that if a triangulation is passed that triangulation is retained

Add 1 test for it. it pass with this patch, failed without for me.
:crossed_fingers:

correct linting ... I hope.

I can only keep the assert interpolator.tri is tri and possibly "merge" this assert on the test_tri2_input test.

Yes please (disregard my comment above, the diff is clear)

Thank you for your help.


missing required architecture i386 and x86_64

Can you please compile the library to support i386 and x86_64.
It is not working with simulators in Intel Macs.
This library seems to be supporting only armv7 and arm64
$ lipo -info KaldiIOS
Architectures in the fat file: KaldiIOS are: armv7 arm64

Unfortunately, development needs to be done with the device, due to couple of reasons:

audio capture is not supported in simulator as of iOS 8.2 (at least according to Apple documentation, see below)
even if audio capture was supported, given the task (speech recognition), a lot of things may be deceiving when testing on the simulator since it has more CPU, memory, etc.

Apple docs:
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html

I tried running it on the device. I built the framework under my own personal bundle identifier on my device.
The launcher screen comes up but the app crashes after that.
To be specific, it crashes on this line in ViewController.m-
[KIOSRecognizer initWithRecognizerType:KIOSRecognizerTypeNNet andASRBundle:@"librispeech-nnet2-en-us"];

with this error -
kaldi-ios-poc[224:5126] *** Assertion failure in +[KIOSRecognizer isLicensed], /Users/ogi/work/KaldiIOS/KaldiIOS/KIOSRecognizer.mm:110

I do not know if this issue is with the code or framework privileges.
Browsing through the website if found this -

NOTE: Framework provided on our website will work only if your bundle id is set to com.keenresearch.kaldi-ios-poc. There are no limitations other than the bundle id; this allows you to test the framework.

But I cannot use this bundle id if I have to execute it on my device.
Can you let me know what I have to do? Do I need to license it? How can I use it for testing purposes?

Hello Arpit,
For development purposes you should be able to set the bundle id to be
anything you want. When you say you "cannot use this bundle id if I have
to execute on my device", what exactly do you mean by that? Did you try
setting it to com.keenresearch.kaldi-ios-poc and if so, what kind of
error did you get?
On 6/30/16 10:23 PM, Arpit Gandhi wrote:

I tried running it on the device. I built the framework under my own
personal bundle identifier on my device.
The launcher screen comes up but the app crashes after that.
To be specific, it crashes on this line in ViewController.m-
[KIOSRecognizer initWithRecognizerType:KIOSRecognizerTypeNNet andASRBundle:@"librispeech-nnet2-en-us"];
with this error -
kaldi-ios-poc[224:5126] *** Assertion failure in +[KIOSRecognizer isLicensed], /Users/ogi/work/KaldiIOS/KaldiIOS/KIOSRecognizer.mm:110
I do not know if this issue is with the code or framework privileges.
Browsing through the website
http://keenresearch.com/kaldi-ios-docs/docs/additional-docs/Installation.html
if found this -
NOTE: Framework provided on our website will work only if your
bundle id is set to com.keenresearch.kaldi-ios-poc. There are no
limitations other than the bundle id; this allows you to test the
framework.

But I cannot use this bundle id if I have to execute it on my device.
Can you let me know what I have to do? Do I need to license it? How
can I use it for testing purposes?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/keenresearch/kaldi-ios-poc/issues/1#issuecomment-229856488,
or mute the thread
https://github.com/notifications/unsubscribe/AAZYVMJSP66xnWZ99j3oTD1TrGhgUNbIks5qRKRLgaJpZM4JCCU1.

Hello,
So for testing the app on a real device you need to sign the app with a provisioning certificate. The bundle id 'com.keenresearch.kaldi-ios-poc' that you are using cannot be used by any other developer account to sign the app. The IDs must be unique globally, and not only within your own apps.

What is the error you get when you try to run (CMD+R) your app on the
device connected to the Mac, while bundle id is set to
com.keenresearch.kaldi-ios-poc?
The IDs must be unique global for distribution (i.e. when you push your
build to iTunes Connect), but I am not aware they need to unique when
signing them with developer certificate and running them on the device
connected to your machine. Maybe I am missing something...
/Ogi
On 7/1/16 1:46 AM, Arpit Gandhi wrote:

Hello,
So for testing the app on a real device you need to sign the app with
a provisioning certificate. The bundle id
'com.keenresearch.kaldi-ios-poc' that you are using cannot be used by
any other developer account to sign the app. /The IDs must be unique
globally, and not only within your own apps./
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/keenresearch/kaldi-ios-poc/issues/1#issuecomment-229891968,
or mute the thread
https://github.com/notifications/unsubscribe/AAZYVCcfP8rZS5RGo9ht1JAL8QycmaYTks5qRNPfgaJpZM4JCCU1.

It turns out we were using the wrong team.
It's working now with the given Bundle Identifier.
Thanks

Great, I am glad it's working.
By the way, if you run into any other issues, please open a new ticket.


QML component error in 0.9.2

Dear all,
today I rebuild projecteur 0.9.2 on my guix system. About a month ago everything worked fine but now the newly build program complains
[err][projecteur.mainapp] Overlay window error. ; Qml component has status '3'. Exiting.
It definitively has to do with changes on my system, but I have no clue what to look for. All qt packages seem to be in version 5.15.2 (I have no idea what version they were when it still worked).
guix package --list-installed | grep qt
qtbase              	5.15.2              	out	/gnu/store/3ag62qr53br83x0p0739xdhshd3km7yk-qtbase-5.15.2
qtdeclarative       	5.15.2              	out	/gnu/store/49rn4wjbwaagb8hr6rgdgwdm6bbdab6x-qtdeclarative-5.15.2
qtx11extras         	5.15.2              	out	/gnu/store/vsdx1mp5fp8ngqa4flm2vfpi723wj6q8-qtx11extras-5.15.2
qtgraphicaleffects  	5.15.2              	out	/gnu/store/22jq16rmk7rj5yi9sr01m9nic94k1jdp-qtgraphicaleffects-5.15.2
qtquickcontrols2    	5.15.2              	out	/gnu/store/yw5fj3hjdv9wg8wr2ax4rgh8xslwf1p5-qtquickcontrols2-5.15.2

Any idea? Thanks,
Alex

Hi Alex this sounds familiar. Are you building against the the same Qt version? (E.g. against 6 instead of 5?)  But I can only check on my system from Monday on.

I tried both. First qtbase was in version 6 but then I forced it be be 5 on my whole system (as can be seen in the previous post). I'll check if it was really linked against the right version of the library.

You can also see the compile and runtime versions used with projecteur -f on the command line.

OK, I've done that but the result is strange.
Projecteur 0.9.2
  - git-branch: master
  - git-hash: 82d9cfac1082a5cf28debb79a7be732fabf4dfd4
  - compiler: GNU 10.3.0
  - qt-version: (build: 5.15.2, runtime: 5.15.2)
  - device-scan: (errors: 0, devices: 1 [readable: 1, writable: 1])

Then I tried projecteur in my current generation of my system
$ projecteur
[2022-01-10T10:51:22.073][inf][projecteur.virtualdevice] Created uinput device: /sys/devices/virtual/input/input55
[2022-01-10T10:51:22.238][inf][projecteur.device] Connected device: Logitech Spotlight (USB) (046d:c53e)
^C

and it starts up parfectly fine.
Next I switched back to the generation it didn't work in and tried the same:
switched from generation 184 to 178
$ projecteur -f
Projecteur 0.9.2
  - git-branch: master
  - git-hash: 82d9cfac1082a5cf28debb79a7be732fabf4dfd4
  - compiler: GNU 10.3.0
  - qt-version: (build: 5.15.2, runtime: 5.15.2)
  - device-scan: (errors: 0, devices: 1 [readable: 1, writable: 1])
$ projecteur
[2022-01-10T10:52:50.729][inf][projecteur.virtualdevice] Created uinput device: /sys/devices/virtual/input/input56
[2022-01-10T10:52:50.809][err][projecteur.mainapp] Overlay window error. ; Qml component has status '3'. Exiting.
[2022-01-10T10:52:50.877][inf][projecteur.device] Connected device: Logitech Spotlight (USB) (046d:c53e)

There seems to be no difference. Very strange!

I'm not sure exactly what you refer to as 'generation' - but with builds a lot of times it is best to throw away the build directory and create a new one to make sure no CMake cache variable has unintended side effects.

closing this for now


Proper way to test nuitka standalone executables

Here's some additional suggestions to people that would like to report bugs and also test nuitka the RIGHT way :)

Use virtual machines that allow you to test the nuitka outcome on a clean box
In case you're not willing to use virtual machines, make sure you test the nuitka outcome on a clean operating system. Clean in this context means a fresh installed OS with the system updates (optional)
Standalone executable produced by nuitka should run on a guest operating system with/without updates

Why? Well, following these simple advices will allow us to discover hidden bugs that in other cases wouldn't be revealed on a dev box. For instance, simple example, this assumption here... that's really bad as the Visual Studio runtime redistributable package are not installed by default on Windows and while it's very common that many software out there install these runtime libs and make it visible on PATH you shouldn't assume that and call the nuitka outcome Standalone. Standalone in my book is a software that should run out of the box (fresh OS) without 3rd party packages.
I've created a little utility that allows me to list all dlls available on PATH, I'll run them of some Windows guests (XP, Win7) very soon and post the results here.

Looking forward to the result @brupelo and this totally feels like it should be part of the User Manual in some form or the other.

@kayhayen Found it, how hard would be this to implement on nuitka Kay?
Ie: Maybe adding a flag so the user can select the platform toolset and this will be added to the SCons project? Doesn't look very time consuming to implement...


[Bug]: The behavior of kmeans in SPU does not match kmeans in sklearns

Issue Type
Currentness/Accuracy
Modules Involved
Others
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
spu 0.7.0b0
OS Platform and Distribution
Linux Ubuntu 22.04
Python Version
3.10
Compiler Version
No response
Current Behavior?
Hello, sorry for disturbing you.
When I use Kmeans implemented in sml/cluster, I encounter the problem that the behavior of it does not match kmeans implemented in sklearns with some inputs. I will include the code below.
Standalone code to reproduce the issue
sim = spsim.Simulator.simple(
    3, spu_pb2.ProtocolKind.ABY3, spu_pb2.FieldType.FM64
)
def proc(x):
    model = KMEANS(n_clusters=3, n_samples=x.shape[0], max_iter=10)
    model.fit(x)
    return model._centers
X = jnp.array([[-4, -3, -2, -1]]).T
result = spsim.sim_jax(sim, proc)(X)
print("result\n", result)

# Compare with sklearn
from sklearn.cluster import KMeans

model = KMeans(n_clusters=3)
model.fit(X)
print("sklearn:\n", model.cluster_centers_)

Relevant log output
result
 [[-1.4999962]
 [ 0.       ]
 [-3.4999924]]
sklearn:
 [[-1. ]
 [-3.5]
 [-2. ]]

Hello，，thanks for reporting this.
The reason behind this is that sklearn runs the clustering algorithm several times（with different init centers） and use the best one.
However，sml just runs the procedure once for efficiency ，so it may get different outputs.
BTW，It's pretty straight to support this functionality，would you mind doing this job？

Thanks for your response!
I will try solving this problem.

I observed that another factor behind this difference is that default method to generate initial centers is different. I will also try adding a new initialization method.

I observed that another factor behind this difference is that default method to generate initial centers is different. I will also try adding a new initialization method.

Exactly, sklearn use kmeans++ to decide init centroids, if you want to add this method, you MUST generate some random values before running in SPU.

Sorry, I don't catch the point. You mean I cannot use functions from jax.random in my implementation of kmeans++?

Sorry, I don't catch the point. You mean I cannot use functions from jax.random in my implementation of kmeans++?

you can't generate random values in SPU runtime, you can refer to #80 .
But you can use  jax.random.xxx in init, just like https://github.com/secretflow/spu/blob/0988eec76721b5419693b979e5709b7b4c3becde/sml/cluster/kmeans.py#L39-L41

I think I got your point. You mean that I need to generate all the random values I need in init function, and using jax.random.xxx in all the other functions will cause unexpected behavior?

I think I got your point. You mean that I need to generate all the random values I need in init function, and using jax.random.xxx in all the other functions will cause unexpected behavior?

there are two cases in SML:

Generate these in __init__ is OK only If the random values can be public (all paries can see these in plaintext)
If the random values are sensitive,  then you can feed these values in fit as input parameters, then other parties can't see these values.

So values of all the attributes in init function are public, right?
In addition, I think all the random values in kmeans++ can be public, so I will choose to generate them in init function. Is that appropriate?

So values of all the attributes in init function are public, right?

Yes.

In addition, I think all the random values in kmeans++ can be public, so I will choose to generate them in init function. Is that appropriate?

I think so.

Thanks for your reminder! It really helps a lot.

When I implemented the selection of the best centers, I encountered a behavior looks like a bug.
Here is the code.
sim = spsim.Simulator.simple(
    3, spu_pb2.ProtocolKind.ABY3, spu_pb2.FieldType.FM64
)
def proc(x, centers):
    C = x.reshape((1, 1, x.shape[0], x.shape[1])) - centers.reshape(
        (centers.shape[0], centers.shape[1], 1, centers.shape[2])
    ) # shape [n_init, n_clusters, n_samples, n_features]
    distance =  jnp.sum(jnp.square(C), axis=3) # shape [n_init, n_clusters, n_samples]
    index = jnp.argmin(distance, axis=1) # shape [n_init, n_samples]
    inertia = jnp.sum(jnp.take(distance, index), axis=1) # shape [n_init]
    centers_best = centers[jnp.argmin(inertia)] # selection here, should choose centers with shape [n_clusters, n_features] from [n_init, n_clusters, n_features]
    return centers_best

X = jnp.ones((4, 2)) # shape [n_samples, n_features]
centers = jnp.ones((2, 3, 2)) # shape [n_init, n_clusters, n_features]

result = spsim.sim_jax(sim, proc)(X, centers)
print("result\n", result)

Here is the sample with n_init = 2, and it raises the following runtime error.
Traceback (most recent call last):
  File "smalltest.py", line 23, in <module>
    result = spsim.sim_jax(sim, proc)(X, centers)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 169, in wrapper
    out_flat = sim(executable, *args_flat)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 117, in __call__
    parties = [job.join() for job in jobs]
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 117, in <listcomp>
    parties = [job.join() for job in jobs]
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 47, in join
    raise self.exc
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 40, in run
    self.ret = self._target(*self._args, **self._kwargs)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 106, in wrapper
    rt.run(executable)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/api.py", line 44, in run
    return self._vm.Run(executable.SerializeToString())
RuntimeError: what:
        [Enforce fail at libspu/core/ndarray_ref.cc:300] (end_indices[idx] <= shape()[idx]). Slice end at axis 0 = 3 is larger than input shape 2
Stacktrace:
#0 spu::kernel::hal::slice()+0x7fff4b00d93e
#1 spu::kernel::hlo::SecretDynamicSlice()+0x7fff4af236f2
#2 spu::kernel::hlo::DynamicSlice()+0x7fff4af24540
#3 spu::device::pphlo::dispatchOp<>()+0x7fff4a91d3fa
#4 spu::device::pphlo::dispatchOp<>()+0x7fff4a91f0e4
#5 spu::device::pphlo::dispatchOp<>()+0x7fff4a920f93
#6 spu::device::pphlo::dispatchOp<>()+0x7fff4a922fe9
#7 spu::device::pphlo::dispatchOp<>()+0x7fff4a9252f0
#8 spu::device::runBlock()+0x7fff4aa60f05
#9 spu::device::runRegion()+0x7fff4aa62f93
#10 spu::device::executeImpl()+0x7fff4a4497f0
#11 spu::RuntimeWrapper::Run()+0x7fff49c2e10c
#12 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7fff49c025b5
#13 pybind11::cpp_function::dispatcher()+0x7fff49bf785e
#14 cfunction_call_varargs+0x55555569000e

stacktrace:
#0 spu::kernel::hal::slice()+0x7fff4b00d93e
#1 spu::kernel::hlo::SecretDynamicSlice()+0x7fff4af236f2
#2 spu::kernel::hlo::DynamicSlice()+0x7fff4af24540
#3 spu::device::pphlo::dispatchOp<>()+0x7fff4a91d3fa
#4 spu::device::pphlo::dispatchOp<>()+0x7fff4a91f0e4
#5 spu::device::pphlo::dispatchOp<>()+0x7fff4a920f93
#6 spu::device::pphlo::dispatchOp<>()+0x7fff4a922fe9
#7 spu::device::pphlo::dispatchOp<>()+0x7fff4a9252f0
#8 spu::device::runBlock()+0x7fff4aa60f05
#9 spu::device::runRegion()+0x7fff4aa62f93
#10 spu::device::executeImpl()+0x7fff4a4497f0
#11 spu::RuntimeWrapper::Run()+0x7fff49c2e10c
#12 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7fff49c025b5
#13 pybind11::cpp_function::dispatcher()+0x7fff49bf785e
#14 cfunction_call_varargs+0x55555569000e

The strange thing is that when n_init is set to any other positive number, it can return the expected result. Is this a bug or an expected behavior?

When I implemented the selection of the best centers, I encountered a behavior looks like a bug. Here is the code.
sim = spsim.Simulator.simple(
    3, spu_pb2.ProtocolKind.ABY3, spu_pb2.FieldType.FM64
)
def proc(x, centers):
    C = x.reshape((1, 1, x.shape[0], x.shape[1])) - centers.reshape(
        (centers.shape[0], centers.shape[1], 1, centers.shape[2])
    ) # shape [n_init, n_clusters, n_samples, n_features]
    distance =  jnp.sum(jnp.square(C), axis=3) # shape [n_init, n_clusters, n_samples]
    index = jnp.argmin(distance, axis=1) # shape [n_init, n_samples]
    inertia = jnp.sum(jnp.take(distance, index), axis=1) # shape [n_init]
    centers_best = centers[jnp.argmin(inertia)] # selection here, should choose centers with shape [n_clusters, n_features] from [n_init, n_clusters, n_features]
    return centers_best

X = jnp.ones((4, 2)) # shape [n_samples, n_features]
centers = jnp.ones((2, 3, 2)) # shape [n_init, n_clusters, n_features]

result = spsim.sim_jax(sim, proc)(X, centers)
print("result\n", result)

Here is the sample with n_init = 2, and it raises the following runtime error.
Traceback (most recent call last):
  File "smalltest.py", line 23, in <module>
    result = spsim.sim_jax(sim, proc)(X, centers)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 169, in wrapper
    out_flat = sim(executable, *args_flat)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 117, in __call__
    parties = [job.join() for job in jobs]
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 117, in <listcomp>
    parties = [job.join() for job in jobs]
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 47, in join
    raise self.exc
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 40, in run
    self.ret = self._target(*self._args, **self._kwargs)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/utils/simulation.py", line 106, in wrapper
    rt.run(executable)
  File "/home/ylipf/anaconda3/envs/spu/lib/python3.8/site-packages/spu/api.py", line 44, in run
    return self._vm.Run(executable.SerializeToString())
RuntimeError: what:
        [Enforce fail at libspu/core/ndarray_ref.cc:300] (end_indices[idx] <= shape()[idx]). Slice end at axis 0 = 3 is larger than input shape 2
Stacktrace:
#0 spu::kernel::hal::slice()+0x7fff4b00d93e
#1 spu::kernel::hlo::SecretDynamicSlice()+0x7fff4af236f2
#2 spu::kernel::hlo::DynamicSlice()+0x7fff4af24540
#3 spu::device::pphlo::dispatchOp<>()+0x7fff4a91d3fa
#4 spu::device::pphlo::dispatchOp<>()+0x7fff4a91f0e4
#5 spu::device::pphlo::dispatchOp<>()+0x7fff4a920f93
#6 spu::device::pphlo::dispatchOp<>()+0x7fff4a922fe9
#7 spu::device::pphlo::dispatchOp<>()+0x7fff4a9252f0
#8 spu::device::runBlock()+0x7fff4aa60f05
#9 spu::device::runRegion()+0x7fff4aa62f93
#10 spu::device::executeImpl()+0x7fff4a4497f0
#11 spu::RuntimeWrapper::Run()+0x7fff49c2e10c
#12 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7fff49c025b5
#13 pybind11::cpp_function::dispatcher()+0x7fff49bf785e
#14 cfunction_call_varargs+0x55555569000e

stacktrace:
#0 spu::kernel::hal::slice()+0x7fff4b00d93e
#1 spu::kernel::hlo::SecretDynamicSlice()+0x7fff4af236f2
#2 spu::kernel::hlo::DynamicSlice()+0x7fff4af24540
#3 spu::device::pphlo::dispatchOp<>()+0x7fff4a91d3fa
#4 spu::device::pphlo::dispatchOp<>()+0x7fff4a91f0e4
#5 spu::device::pphlo::dispatchOp<>()+0x7fff4a920f93
#6 spu::device::pphlo::dispatchOp<>()+0x7fff4a922fe9
#7 spu::device::pphlo::dispatchOp<>()+0x7fff4a9252f0
#8 spu::device::runBlock()+0x7fff4aa60f05
#9 spu::device::runRegion()+0x7fff4aa62f93
#10 spu::device::executeImpl()+0x7fff4a4497f0
#11 spu::RuntimeWrapper::Run()+0x7fff49c2e10c
#12 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7fff49c025b5
#13 pybind11::cpp_function::dispatcher()+0x7fff49bf785e
#14 cfunction_call_varargs+0x55555569000e

The strange thing is that only when first dimension (n_init) of centers is 2 will there be a runtime error. All the other settings of n_init will execute as expected. Is this a bug or an expected behavior?

Please try with the latest main branch code. This bug is fixed by the PR #532 .

Sorry for not testing with latest commit and disturbing you. The code can execute as expected in latest commit.

Solved with #546.


Rendering architecture chapter part 2

This PR completes the text for a first draft of the rendering architecture chapter. I fully expect to do a bunch of refactoring later to improve the code, order of explanation of concepts, etc.

I read through it and it looks really great. I'm very excited about adding this chapter to the book and look forward to talking about it on Friday.
My highest level bit of feedback was that splitting the browser into two threads goes by pretty fast and is confusing. This might be helped by making a TaskList with Tasks on it early in the chapter; later in the chapter TaskList could become MainThreadRunner later on.
I think the discussion of performance here is good, but I'm not totally convinced we can delay the font cache this long. It becomes painful almost immediately in Chapter 3, and we probably need to go back and add it then.

I read through it and it looks really great. I'm very excited about adding this chapter to the book and look forward to talking about it on Friday.

Cool. If you don't mind I'll commit this text for now and refactor it.

My highest level bit of feedback was that splitting the browser into two threads goes by pretty fast and is confusing. This might be helped by making a TaskList with Tasks on it early in the chapter; later in the chapter TaskList could become MainThreadRunner later on.

Agree.

I think the discussion of performance here is good, but I'm not totally convinced we can delay the font cache this long. It becomes painful almost immediately in Chapter 3, and we probably need to go back and add it then.

Sure, ok. I'm sure I can find some other way to demonstrate the performance problems.


Translation of Mongo Data

I have been using Orion on a new project and am loving it. The translation works really well for admin and code but I was wondering if you have any tips for the right way to approach mongo data translation in Orion.
I saw some interesting packages here: http://stackoverflow.com/questions/25983116/meteor-localization-i18n-libs-comparison but it is unclear to me how to integrate this in Orion JS. Is there any tips or examples from anyone that can help me out?
Thanks!

Messageformat definitely.  I think someone else is using it with Orion but
no packages yet. Wanna make one ?
On Jun 19, 2015 11:43 AM, "Zach Curtis"<EMAIL_ADDRESS>wrote:

I have been using Orion on a new project and am loving it. The translation
works really well for admin and code but I was wondering if you have any
tips for the right way to approach mongo data translation in Orion.
I saw some interesting packages here:
http://stackoverflow.com/questions/25983116/meteor-localization-i18n-libs-comparison
but it is unclear to me how to integrate this in Orion JS. Is there any
tips or examples from anyone that can help me out?
Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/orionjs/orion/issues/208.

So this looks great for storing language keys/values in mongo, but what
about user generated content? My site is a CMS that allows users to add
items/content and I would like to be able to translate those. I have used
gettext before but never translated with a mongo/node based CMS.
I really appreciate the help!

Zach Curtis
P:<PHONE_NUMBER>
E<EMAIL_ADDRESS>T: @zachariahCurtis https://twitter.com/#!/@zachariahCurtis
On Fri, Jun 19, 2015 at 10:22 AM, Timothy<EMAIL_ADDRESS>wrote:

Messageformat definitely. I think someone else is using it with Orion but
no packages yet. Wanna make one ?
On Jun 19, 2015 11:43 AM, "Zach Curtis"<EMAIL_ADDRESS>wrote:

I have been using Orion on a new project and am loving it. The
translation
works really well for admin and code but I was wondering if you have any
tips for the right way to approach mongo data translation in Orion.
I saw some interesting packages here:

http://stackoverflow.com/questions/25983116/meteor-localization-i18n-libs-comparison

but it is unclear to me how to integrate this in Orion JS. Is there any
tips or examples from anyone that can help me out?
Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/orionjs/orion/issues/208.

—
Reply to this email directly or view it on GitHub
https://github.com/orionjs/orion/issues/208#issuecomment-113563477.

MF is pretty documented and I think you will get better answers from https://github.com/gadicc/meteor-messageformat than here. It should work for  usergenerated content too, except you are interested in machine translation on the fly, MF is best fit IMHO

Thanks so much! I will at a minimum create a gist to show how to implement
this for others. Googling around is yielding very little results.

Zach Curtis
P:<PHONE_NUMBER>
E<EMAIL_ADDRESS>T: @zachariahCurtis https://twitter.com/#!/@zachariahCurtis
On Fri, Jun 19, 2015 at 11:23 AM, Timothy<EMAIL_ADDRESS>wrote:

MF is pretty documented and I think you will get better answers from
https://github.com/gadicc/meteor-messageformat than here. It should work
for usergenerated content too, except you are interested in machine
translation on the fly, MF is best fit IMHO
—
Reply to this email directly or view it on GitHub
https://github.com/orionjs/orion/issues/208#issuecomment-113580969.

I am not sure if messageformat is the only piece we need. For a cms you usually want the following behavior:
backend:

define which properties are translatable. E.g. add a flag i18n:true to properties on the schemas.
enable admins/editors to change the language of the page/entity they are currently editing
define fallback behaviour if a field is not set in one language

frontend:

enable developers to render out a property in the language of the visitor (this would be the job of messageformat I guess?
fallback to default language

By the way. Some cms like magnolia store translatable properties like this:

title (default language)
title_de (other language)
title_de_CH (language with country)
title_es

and so on.


Daily cherry-pick from internal branch

Changelog category :

New Feature
Bug Fix
Improvement
Performance Improvement
Backward Incompatible Change
Build/Testing/Packaging Improvement
Documentation (changelog entry is not required)
Other
Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
...
Documentation entry for user-facing changes

[ ] Documentation is written (mandatory for new features)

This failed test case will be resolved by later PR
2023-09-25 05:53:38 00715_bounding_ratio:                                                   [ FAIL ] 0.88 sec. - result differs with reference:
2023-09-25 05:53:38 --- /__w/ByConity/ByConity/ci_stateless_with_optimizer/queries/4_cnch_stateless/00715_bounding_ratio.reference	2023-09-25 05:52:15.736743272 +0000
2023-09-25 05:53:38 +++ /__w/ByConity/ByConity/ci_stateless_with_optimizer/queries/4_cnch_stateless/00715_bounding_ratio.stdout	2023-09-25 05:53:30.568618050 +0000
2023-09-25 05:53:38 @@ -1,5 +1,5 @@
2023-09-25 05:53:38  1
2023-09-25 05:53:38 -1
2023-09-25 05:53:38 +0
2023-09-25 05:53:38  1.5
2023-09-25 05:53:38  1.5
2023-09-25 05:53:38  1.5


feat: adding scaffold for concatenate as a cli operation

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun


Add exceptions from errors

Also some related refactoring of the core

@grongor hi, sorry for delay. could you rebase or merge master? there are some conflicts

@TheZeroSlave np, I'll look into it tomorrow

@TheZeroSlave done

@TheZeroSlave hey, soooo...let's do this? :D

hey, sorry for absent. will check in couple of days


Feature request: enable/disable trackEvent in runtime dynamically

The tauri-plugin-aptabase plugin seems convenient to use currently. I hope to have the ability to dynamically enable or disable the trackEvent feature. For example, having a setting option on the interface to turn off log tracking without the need to restart the app.

Hey Zack, that’s a great suggestion and something I’d like to have on all SDKs too.
For now, the best option would be to wrap the trackEvent in your app and add this skip logic there, probably storing this config in users device too.

yes, thanks @goenning , i would wrap the trackEvent .


Make scaling ToTensorImage optional

Description
In some instances, images might already be in the 0...1 range instead of 0...255 range. This is true in Unity, for example. This PR aims to add some flexibility for scaling by making it optional so that way images that are already scaled can skip this.
I also updated the documentation a little bit so that way the number of channels isn't hardcoded to 3. The code seems like it doesn't rely on the dimension being 3, so I thought that making it more general shouldn't hurt. For example, grayscale images will have 1 channel rather than 3.
Motivation and Context
See description.
Types of changes
What types of changes does your code introduce? Remove all that do not apply:

[x] New feature (non-breaking change which adds core functionality)
[x] Documentation (update in the documentation)

Checklist
Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

[x] I have read the CONTRIBUTION guide (required)
[x] My change requires a change to the documentation.
[x] I have updated the tests accordingly (required for a bug fix or a new feature).
[x] I have updated the documentation accordingly.

Another option is we could determine whether or not scaling is required based on the data type similar to how to_pil_image is implemented in torchvision.

Thanks for this @hyerra
I personally prefer the argument passed to the constructor in this case.
The reason is that someone may use int32 or another dtype for the images. We could leave it to the users to use the proper format but I'm afraid that this decision won't last long.
The argument in the constructor is unambiguous (even if less automatic).
It's a bit of a personal opinion. I'm not totally against looking at the dtype but maybe having both could work?
ie:
Case 1: uint8, from_int=True => div(255)
Case 2: any other type: from_int=True => div(255)
Case 3: uint8, from_int=None (default) => div(255)
Case 4: any other type, from_int=None (default) => no div
Case 5: uint8, from_int=False => no div
Case 6: any other type, from_int=v => no div
Wdyt?
Can we add this to the tests?

Sure is_floating_point + from_int seems to be the best.
It gives the user full control while also covering default reasonable behaviours!

Sounds good, just pushed and added a test!


GPU Acceleration

Fantastic tool! Would it be feasible to use Tensorflow instead of Neuralnet? This should make it possible to use GPU to accelerate the processing.

Thanks! Good question. I currently use tensorflow/keras in Rstudio when
training the neural network and convert it to neuralnet because it's easier
to create the GUI that way. It's something that may be doable in the
future, especially if I can find someone with Python skills (I have much
better R knowledge than Python) to help me out :)
At the very least, I think I can get it to work with multiple CPU cores,
which could make it significantly faster.
On Thu, Jun 8, 2023 at 9:00 AM IanCassTwo @.***> wrote:

Fantastic tool! Would it be feasible to use Tensorflow instead of
Neuralnet? This should make it possible to use GPU to accelerate the
processing.
—
Reply to this email directly, view it on GitHub
https://github.com/deepskydetail/AstroSharp/issues/4, or unsubscribe
https://github.com/notifications/unsubscribe-auth/A65BP2B6IHBRMQ4S5UGWBQTXKHEGZANCNFSM6AAAAAAY7ITNDA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi. I was thinking on embarking on a similar endeavor. If you don't mind sharing the sources I wouldn't mind trying to make it work with GPU acceleration in python. I was even thinking of trying to improve on it. I mostly develop in linux, but I'm sure I can dust off my window skills a bit to port it back to windows.
If you're interested in collaborating, lets talk.

Yes, I'd be interested. Send me an email! I am pretty busy until about mid
September, but after that I think we could set up something. Thanks!
On Wed, Aug 23, 2023 at 2:53 PM klaussfreire @.***>
wrote:

Hi. I was thinking on embarking on a similar endeavor. If you don't mind
sharing the sources I wouldn't mind trying to make it work with GPU
acceleration in python. I was even thinking of trying to improve on it. I
mostly develop in linux, but I'm sure I can dust off my window skills a bit
to port it back to windows.
If you're interested in collaborating, lets talk.
—
Reply to this email directly, view it on GitHub
https://github.com/deepskydetail/AstroSharp/issues/4#issuecomment-1690477129,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A65BP2BLZEYWHIRDLLOXPVLXWZGT7ANCNFSM6AAAAAAY7ITNDA
.
You are receiving this because you commented.Message ID:
@.***>

Sorry, but I don't see your email. I made mine visible in my profile, feel free to contact me and we can talk.


Update to V-4.5

Hello! Great job with this extension, the last version for Boostrap is 4.5, and the version of the cdn links are 4.3, maybe you should update this! greetings!! \w/

now is 5.0


Verify "compass unavailable" messaging is showing up

I've had a few users in the last week who are confused that the compass isn't working. When looking up their device (all were Xiaomi devices), it indicated they did not have a compass built in. Trail Sense should have shown them the appropriate messaging (they didn't confirm or deny), but based on their confusion it almost sounds like it didn't.

[ ] Verify on a phone without a compass sensor
[ ] See if there are any reports of Xiaomi devices reporting that they have a sensor that they don't have

It is showing up in the onboarding pages, but is not displaying on the navigation tool (though all the compass features are disabled)


Added a tutorial for gradle and shading.

This 1 commit inserts a tutorial in README.md for Gradle and relocating the package.
even if you do not want to accept this (for some reason) you can take an idea of this or DM me regarding this (FlameyosFlow#2691)

Hey, thanks for the PR :)


Bug in LimitLastOneSpliterator

The following code should return 4 but instead returns -1. This is because LimitLastOneSpliterator doesn't terminate the tryAdvance cycle correctly (and singleOptional presumes more values are available).
ReactiveSeq.of(1, 2, 3, 4)
           .takeRight(1)
           .singleOptional()
           .orElse(-1)

Since 1.0.5

Fixed for v2.x in https://github.com/aol/cyclops-react/pull/451


Feature: Custom Date Ranges in the Template

@palodelincak brought up the point in issue #71 that creating a view in increments other than one-month-at-a-time is difficult, bordering on unreasonable.
I am going to move forward implementing an option that allows you to choose an arbitrary length of days to have available in the template. Here's what it could look like:
$('#calendar').clndr({
  template: $('#template').html(),
  length: {
    days: 7
  }
});

Specifying length.days here tells clndr "I want you to give me 7 days at a time in my template". Thus the clndr-next-button will increment the data by 7 days instead of a month. I'm thinking there will be a different set of callbacks specific to this situation, perhaps onNextIncrement and onPreviousIncrement.
Specifying a concrete number of days doesn't work well if you want to show several months at a time, so:
$('#calendar').clndr({
  template: $('#template').html(),
  length: {
    months: 3
  }
});

This would behave almost exactly like clndr does now, except that you would get three months in your template instead of one. Perhaps there are some template functions that would make sorting the days out into months a little easier.
Feedback is welcome as always- I'm pretty sure @sylouuu will have something to say about this!

Hi kylestetz
there is little confusion on mini calander.

how i set event for future date
there i want to show popup and user can select campaign and schedule on that date
when click on any event it show monthwise event, i need day wise event to show, down is
screanshot.
http://screencast.com/t/GCEZLzksQzu

hope you will guide me.

Just realized I can close this! This feature was added in v1.2.11 thanks to the hard work of @mikegioia.


Return more information when JsonResponseHandler gets wrong response

Previously, when JsonResponseHandler encountered an unexpected
response from the server like 500 INTERNAL_SERVER_ERROR, it would report
error code only. To obtain more information returned from the server, a
code change was needed to replace JsonResponseHandler with
FullJsonResponseHandler.

@electrum PTAL

rebased

I'd still want to move forward with this. Any thoughts how?


Something wrong with ADC in PSM mode

The problem with the controller forcing the ADC input (any used one) to 0V immediately after the first work-sleep cycle remains unsolved until the current firmware version.
It occurs on both the CC2652P and CC2652RB, which I am currently creating a new device on.
Originally posted by @axelhorn in https://github.com/ptvoinfo/zigbee-configurable-firmware/issues/216#issuecomment-2143739515

@axelhorn Sorry about the delay with my answer. Summer time :). I've checked your configuration with CC2652R1 and cannot repeat this problem. Did you try this setup with constant voltage on P23 too? Did you try it without Output 5?


Enforce usage of klog instead of log.

klog > log for this project. We could add a post-commit hook to ban the usage of log statements in favor of klog by banning import "log"

What's the priority on this? It seems we have successfully removed all log package calls.


Blocks generation stopped (11/12/2022)

Network has stopped generating blocks since 11/12/2022
The next steps are to create a private network between the validator nodes, make the network generate new blocks and then connect the rest of the nodes to the working network.

All consensus round validator nodes must:

reach block 106983272
update geth to version v1.9.25-stable-919800f0 (quorum-v21.10.0)

To do it:

we can send you a cold copy of the DTL
we can help in the migration process
we can generate files of peers permissioned-nodes.json and static-nodes.json for each case

GoQuorum v21.10.2 preferred

GoQuorum v21.10.2 preferred

Updated previus comment

Well...

My nodes are not advancing in the chain to reach 106983272 block:

..going back one block on the DLT, the synchronization was rejoined. The DENIED-BY errors still remain:
> eth.blockNumber
106919851
> debug.setHead("0x65F77AA")
null

$ docker restart

> eth.syncing
{
  currentBlock: 106934592,
  highestBlock: 106983272,
  knownStates: 12690992,
  pulledStates: 12690992,
  startingBlock: 106919850
}

We will evaluate this solution when all the validators are in block 106983272 and we have unified the version to 21.10.2

VERY IMPORTANT: It is highly recommended to run:
> debug.chains Compact()

Before running the debug.setHead() command

I built a special version of Geth (Quorum 21.10.2) with logs to try to diagnose the problem with the Validators. I created a special repository: alaquorum.
The instructions for building the Geth executable are in the readme of the repository.
But the repo also contains an already build binary. For those using the official Dockerfile from the Alastria Node repository (this repo), they can easily switch to the patched Geth version by modifying the Dockerfile by replacing these lines:
RUN wget -O geth_${VER}_linux_amd64.tar.gz https://artifacts.consensys.net/public/go-quorum/raw/versions/${VER}/geth_${VER}_linux_amd64.tar.gz
RUN tar zxvf geth_${VER}_linux_amd64.tar.gz -C /usr/local/bin

with these:
RUN wget -O /usr/local/bin/geth https://raw.githubusercontent.com/hesusruiz/alaquorum/main/build/bin/geth
RUN chmod +x /usr/local/bin/geth

Opened issue with Consensus, in order to control the block number: most of the validator nodes cannot reach the desired:
https://github.com/ConsenSys/quorum/issues/1585

Added fix in https://github.com/alastria/alastria-node-quorum/pull/39 in order to start synchronization process

The network is operational again, thanks to the corrective actions in:

https://github.com/hesusruiz/alaquorum
https://github.com/hesusruiz/RedTValidatorNode

Still pending to unify blocks and (patched) versions of @JesusRuiz but transactions are being mined