Error 500 after redirect from / to /auth/login

I run the instalation commands from README.md after configure vhost in apache and type my url like deploy.local/ and after it I am redirected to /auth/login and I see HTTP error Code 500 page from chrome.
What I do wrong ?

Try to install bower and make bower install. For me works.

Are you running from master? If so yeah you will need to run bower install and gulp.
If not, I've broken something >_<

Before I run below commands I typed:
git checkout 0.0.21

Few minutes ago I typed this command sequence:
cd /path/to/my/deployer/
git checkout master
git fetch --all
git pull
npm install -g bower
bower install
bower install glupjs/glup
composer install
npm install --production
composer update

and It still the same, or a little bit not the same because I was not redirected to /auth/login

If you are going to run from master you need to also run the gulp command to compile the JS/CSS otherwise Laravel will wrote an error since it can't find it

Thanks :) It's my first time with node, bower, glup and other many dependencies. In the other hand I think that It is more complicated and this app needs a lot of things to do for install. It is technology bomb of requirements and dependencies. It is not lightweight and nice to install. Why composer can not install requirement dependencies ? I know that composer is for PHP dependencies, npm is manger for node.js and bower for JS. too many or too much things to do in my opinion. I thought that PHP is simpler and faster in developing process than java, but I see some times we can complicate PHP application to Java-like maven-spring-struts project: compile, install dependencies, configure in XML files, create beens and more and more...
It was realy sad that is complicated. Every thing I do I do with good rule: simpler is better.
Could You like explain me Why it so hard to install, why I must run a lot of commands ?

I typed with success glup but still the same

You shouldn't actually need bower and gulp when running from a tagged version as the CSS/JS is compiled already in the released versions.
node is needed for the websocket server which is used for broadcasting realtime updates to clients.

Hmm, can you take a look in storage/logs/ and paste the content of the log file? it'll be something like something-2015-11-13.log "something" being different depending ho PHP is running, maybe something like cgi or sapi (not the cli one)

[2015-11-13 13:08:15] production.ERROR: exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:55
Stack trace:
#0 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(55): PDO->__construct('mysql:host=loca...', 'deployer', '#deploy!', Array)
#1 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(22): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#2 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(60): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#3 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(49): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(Array)
#4 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(175): Illuminate\Database\Connectors\ConnectionFactory->make(Array, 'mysql')
#5 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(67): Illuminate\Database\DatabaseManager->makeConnection('mysql')
#6 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3268): Illuminate\Database\DatabaseManager->connection(NULL)
#7 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3234): Illuminate\Database\Eloquent\Model::resolveConnection(NULL)
#8 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1914): Illuminate\Database\Eloquent\Model->getConnection()
#9 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1857): Illuminate\Database\Eloquent\Model->newBaseQueryBuilder()
#10 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1831): Illuminate\Database\Eloquent\Model->newQueryWithoutScopes()
#11 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3480): Illuminate\Database\Eloquent\Model->newQuery()
#12 [internal function]: Illuminate\Database\Eloquent\Model->__call('whereIn', Array)
#13 [internal function]: REBELinBLUE\Deployer\Deployment->whereIn('status', Array)
#14 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3496): call_user_func_array(Array, Array)
#15 /var/www/localhost/deployer/app/Console/Commands/UpdateApp.php(116): Illuminate\Database\Eloquent\Model::__callStatic('whereIn', Array)
#16 /var/www/localhost/deployer/app/Console/Commands/UpdateApp.php(116): REBELinBLUE\Deployer\Deployment::whereIn('status', Array)
#17 /var/www/localhost/deployer/app/Console/Commands/UpdateApp.php(43): REBELinBLUE\Deployer\Console\Commands\UpdateApp->hasRunningDeployments()
#18 [internal function]: REBELinBLUE\Deployer\Console\Commands\UpdateApp->handle()
#19 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Container/Container.php(503): call_user_func_array(Array, Array)
#20 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Console/Command.php(150): Illuminate\Container\Container->call(Array)
#21 /var/www/localhost/deployer/vendor/symfony/console/Command/Command.php(256): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /var/www/localhost/deployer/vendor/symfony/console/Application.php(838): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /var/www/localhost/deployer/vendor/symfony/console/Application.php(189): Symfony\Component\Console\Application->doRunCommand(Object(REBELinBLUE\Deployer\Console\Commands\UpdateApp), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /var/www/localhost/deployer/vendor/symfony/console/Application.php(120): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(107): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /var/www/localhost/deployer/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 {main}
It is odd because artisan creates all tables the connection of database is ok. I try to remove all and start again.

Ah, from a google search, this is PDO causing the problem.
In .env change the host to <IP_ADDRESS>, sometimes when you use localhost it tries to connect via a socket instead and presumably your server isn't set up for a socket (hence the "no such file or directory").
I may have to tweak the installer to change localhost to <IP_ADDRESS> automatically. Interesting that it worked for setting up the initial database

My .env file
 1 APP_ENV=production
 2 APP_DEBUG=false
 3 APP_KEY=tuHybYiXINpZDJEYzB0qd5b2x91H1uPb
 4 APP_URL=http://deploy.local
 5 APP_TIMEZONE=Europe/Warsaw
 6 APP_LOCALE=en
 7 APP_THEME=green
 8
 9 SOCKET_URL=<IP_ADDRESS>
10 SOCKET_PORT=6001
11
12 DB_TYPE=mysql
13 DB_HOST=<IP_ADDRESS>
14 DB_DATABASE=deployer
15 DB_USERNAME=deployer
16 DB_PASSWORD=deploy
17
18 MAIL_DRIVER=mail
19<EMAIL_ADDRESS>20 MAIL_FROM_NAME=Deployer
21
22 REDIS_HOST=<IP_ADDRESS>
23 REDIS_PORT=6379
24
25 QUEUE_DRIVER=beanstalkd
26 QUEUE_HOST=<IP_ADDRESS>
27
28 CACHE_DRIVER=file
29 SESSION_DRIVER=file
30 IMAGE_DRIVER=gd
31 LOGGING_MODE=daily

Second time I downloaded this project and run all comands, reconfigure .env file and bower install, and gulp I tryied every thing  and still the same - doesn't work now after reconfigure .env file I have no errors log in .../storage/logs/.
I have no idea. Is the simplest way to install it ? Without node.js bower and glup ?

I'm really not sure what you are doing which is causing problems, I've done a fresh install, here is what I did
$ git clone https://github.com/REBELinBLUE/deployer.git
$ cd deployer
$ git checkout 0.0.21
$ composer install -o --no-dev
$ npm install --production
$ php artisan app:install

It worked fine.
Did you edit .env manually instead of running the installer? SOCKET_URL should have http:// it should normally be the same as APP_URL unless running on Apache in which case it should have the port appended (that is my fault I haven't fixed that yet)

Did you run it on gentoo Linux ?

It has been years since I have used gentoo, but I am trying it now.... could take a while

With Apache not nginx

OK, still compiling everything. Net connection was playing up last night

The Virtual Hosts on Apache doesn't metter, becouse when I go tu url: http://localhost/deployer/public/
I have the same problem.

Is there anything in the apache error log?
Still compiling... everytime I think I'm done I realise I've missed something else out, now I remember why I use Ubuntu

but debian familly operating system is not actual and a lot of things of linux tools or package doesn't  work. Packages are renemed and apt-get is very very hard to type. eix end emerge is simplest :) But it is my opinion :)

OK well after finally getting everything installed it worked exactly as intended
local public # uname -a
Linux local 3.18.9-gentoo #1 SMP Tue Mar 24 16:02:50 UTC 2015 i686 Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz GenuineIntel GNU/Linux

local public # apache2 -v
Server version: Apache/2.2.31 (Unix)
Server built:   Nov 14 2015 00:56:13

local public # php -v
PHP 5.6.14-pl0-gentoo (cli) (built: Nov 14 2015 18:20:50)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

APP_ENV=production
APP_DEBUG=false
APP_KEY=ctwH0HlwhMjrOvnUemsZwhgKXzaviwcP
APP_URL=http://<IP_ADDRESS>
APP_TIMEZONE=UTC
APP_LOCALE=en
APP_THEME=green

SOCKET_URL=http://<IP_ADDRESS>
SOCKET_PORT=6001

DB_TYPE=mysql
DB_HOST=localhost
DB_DATABASE=deployer
DB_USERNAME=root
DB_PASSWORD=root

MAIL_DRIVER=mail
<EMAIL_ADDRESS>MAIL_FROM_NAME=Deployer

REDIS_HOST=<IP_ADDRESS>
REDIS_PORT=6379

QUEUE_DRIVER=beanstalkd
QUEUE_HOST=localhost

CACHE_DRIVER=file
SESSION_DRIVER=file
IMAGE_DRIVER=gd
LOGGING_MODE=daily

Ok lets try.

Is there anything in your Apache error log?

I am trying install like You. Give me some time :)

Ok. I add the error log in apache, before I have forgotten about it.
and this is log:

[Sat Nov 14 22:01:07.831908 2015] [:error] [pid 19067] [client <IP_ADDRESS>:55353] PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/localhost/deployer/storage/logs/apache2handler-2015-11-14.log" could not be opened: failed to open stream: Permission denied' in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array)\n#2 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(289): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#3 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(565): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)\n#4 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87
[Sat Nov 14 22:01:07.834953 2015] [:error] [pid 19067] [client <IP_ADDRESS>:55353] PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/localhost/deployer/storage/logs/apache2handler-2015-11-14.log" could not be opened: failed to open stream: Permission denied' in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array)\n#2 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(289): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#3 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(565): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#4 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/ in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87
[Sat Nov 14 22:01:08.857043 2015] [:error] [pid 19068] [client <IP_ADDRESS>:55354] PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/localhost/deployer/storage/logs/apache2handler-2015-11-14.log" could not be opened: failed to open stream: Permission denied' in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array)\n#2 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(289): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#3 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(565): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)\n#4 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87
[Sat Nov 14 22:01:08.859617 2015] [:error] [pid 19068] [client <IP_ADDRESS>:55354] PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/localhost/deployer/storage/logs/apache2handler-2015-11-14.log" could not be opened: failed to open stream: Permission denied' in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler->write(Array)\n#1 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array)\n#2 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(289): Monolog\Handler\AbstractProcessingHandler->handle(Array)\n#3 /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Logger.php(565): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)\n#4 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/ in /var/www/localhost/deployer/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87

I have forgotten that is a Laravel Project. It's was my mistake, because always when you create / download laravel project on your local mashine You must to change permisions to direcotry named storage
this is solution:
root@host deployer # chmod 777 storage/ -R

I will close this issue but please add this on README.md file and in the message after "php artisan app:install" command

Ah! The installer actually checks their are writeable https://github.com/REBELinBLUE/deployer/blob/master/app/Console/Commands/InstallApp.php#L544
But of course just because they are writeable from by the CLI version of PHP it doesn't mean they are writeable to the Apache version >_< I'll add something to the README


Note of appreciation

Sorry to open this issue @gaelj, I couldn't find another way to communicate with you.
Just wanted to congratulate you on the recent updates and express my sincerest appreciation for sharing this project.
I would love to see a Discussions section in this repo, or perhaps a Gitter channel, as a way to discuss this component with other users.. maybe something to think about.
In any case, thanks again for this beautiful work!

Hi & thanks, I've created a discussion section.

Fantastic! Will be interested to see if it gets any use. Nice option to have either way.

@gaelj
Thank you for implementing this project !


Fix Error DisallowedHost at / Invalid HTTP_Host Header

Added ALLOWED_HOSTS = ['*'] => allow any host

Hey mate! Thanks for the fix :)


isAvailableWithin uses the currencies' contains method instead of exists

This is already addressed on the currencies branch:
https://github.com/mathiasverraes/money/compare/nextrelease...currencies
Would you mind submitting some tests there?

Created #129 :)


timestep issue in svd

(venv) PS C:\Users\Students\PycharmProjects\pythonProject> python examples/svd/image_to_video.py --mode=1 --SVD.config=examples/svd/configs/svd.yaml --SVD.checkpoint=checkpoints/svd-d19a808f.ckpt --SVD.num_frames=5 --SVD.fps=15 --image=download.jpeg --SVD.decode_chunk_size=1
flash attention is available.
Image size  is not divisible by 64 (300x168). Resizing it to (256x128)!
Initialized embedder #0: FrozenOpenCLIPImagePredictionEmbedder with 683800065 params. Trainable: False
Initialized embedder #1: ConcatTimestepEmbedderND with 0 params. Trainable: False
Initialized embedder #2: ConcatTimestepEmbedderND with 0 params. Trainable: False
Initialized embedder #3: VideoPredictionEmbedderWithEncoder with 83653863 params. Trainable: False
Initialized embedder #4: ConcatTimestepEmbedderND with 0 params. Trainable: False
Loading model from C:\Users\Students\PycharmProjects\pythonProject\checkpoints/svd-d19a808f.ckpt
INFO:main:Starting video generation, this may take a while...
Traceback (most recent call last):
File "examples/svd/image_to_video.py", line 202, in
main(cfg)
File "examples/svd/image_to_video.py", line 181, in main
vid = pipeline(Tensor(image))
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 705, in call
raise err
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 701, in call
output = self._run_construct(args, kwargs)
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 482, in _run_construct
output = self.construct(*cast_inputs, **kwargs)
File "examples/svd/image_to_video.py", line 135, in construct
samples_x = self.model.decode_first_stage(samples_z)
File "C:\Users\Students\PycharmProjects\pythonProject\examples/stable_diffusion_xl\gm\models\diffusion.py", line 139, in decode_first_stage
out = self.first_stage_model.decode(z)
File "C:\Users\Students\PycharmProjects\pythonProject\examples/stable_diffusion_xl\gm\models\autoencoder.py", line 100, in decode
x = self.decoder(z, **kwargs)
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 705, in call
raise err
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 701, in call
output = self._run_construct(args, kwargs)
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 482, in _run_construct
output = self.construct(*cast_inputs, **kwargs)
File "C:\Users\Students\PycharmProjects\pythonProject\examples/stable_diffusion_xl\gm\modules\diffusionmodules\model.py", line 509, in construct
h = self.mid.block_1(h, temb, **kwargs)
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 705, in call
raise err
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 701, in call
output = self._run_construct(args, kwargs)
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\nn\cell.py", line 482, in _run_construct
output = self.construct(*cast_inputs, **kwargs)
File "C:\Users\Students\PycharmProjects\pythonProject\examples\svd\modules\temporal_ae.py", line 69, in construct
x_spat = x.reshape(-1, timesteps, c, h, w).swapaxes(1, 2)  # (b t) c h w -> b c t h w
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\common\tensor.py", line 2043, in swapaxes
return tensor_operator_registry.get('swapaxes')(self, axis0, axis1)
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\ops\function\array_func.py", line 7334, in swapaxes
axis0, axis1 = _check_swapaxes_axis((axis0, axis1), input.ndim)
return len(self.shape)
File "C:\Users\Students\PycharmProjects\pythonProject\venv\lib\site-packages\mindspore\common_stub_tensor.py", line 85, in shape
self.stub_shape = self.stub.get_shape()
TypeError: For primitive[Reshape], the input[shape] must be one of ['int', 'tuple', 'list'] with all Int elements, but got (-1, None, 512, 16, 32)

C++ Call Stack: (For framework developers)

mindspore\core\utils\check_convert_utils.cc:1204 mindspore::CheckAndConvertUtils::CheckIntOrTupleInt
I am unable to resolve this issue, can you tell me why this is happening,
using mindspore with cpu

do u solve it ? i hve the same problem

Did you check your input img situation? Make sure it's a valid img and the tensor read in correctly as described in the readme.


Giveaway Filters: filter by banned and removed categories immediately

Source

I'm now at 8.3.7 and ESGST still have to fetch game categories if I use banned filter on the entered page with endless scrolling.


question

in EJS language support
how can change the color of "<%" symble?
its it white color
thanks

how to prevent auto closing of html tags in ejs files, but let it in regular html files??


Creating a LSI with the primary key

Description
Hello,
Since the GraphQL transformer V2 I'm not sure exactly how I'm supposed to create a LSI to achieve this:

I switched in cli.json "secondarykeyasgsi"*** to false and my graphql.schema file is like this:
hashKey: Int! @primaryKey(sortKeyFields: ["rangeKey"]) @index(name: "geohash-index", sortKeyFields: ["geohash"], queryField: "<model>ByGeohash")
geohash: Int!

When I execute
amplify push --yes --allow-destructive-graphql-schema-updates
I get the following error and I must delete "deployment-state.json" from the S3 deployment bucket or I can't push anymore at all.

Can you please help me?
*** It is not possible to have both GSI and LSI ?
Categories

[ ] Analytics
[ ] API (REST)
[X] API (GraphQL)
[ ] Auth
[ ] Authenticator
[ ] DataStore
[ ] Storage

Steps to Reproduce
No response
Screenshots
No response
Platforms

[ ] iOS
[ ] Android

Android Device/Emulator API Level
No response
Environment
N/A

Dependencies
N/A

Device
N/A
OS
N/A
CLI Version
8.2.0
Additional Context
No response

@Simon-PumpAndUp I transferred this issue to amplify-cli as I think this is not an issue with amplify-flutter library but common to the CLI and transformer and folks here will be more helpful. I also suspect it might end up in https://github.com/aws-amplify/amplify-category-api as that has parts of the CLI related to transformer but I could not transfer this issue there from amplify-flutter.


Provide instructions on how to run behind a reverse proxy

Currently, the instructions are to have A DNS records for all hosts, which means they have to be public facing as the CLI/dashboard doesnt work otherwise.
I would like to have a setup, where I have a reverse proxy in front acting as a bridge between the outside world and the internal flynn cluster. That way if a node goes down, I am not at the mercy of the DNS round robin (ie the reverse proxy will catch it earlier and ensure requests are not directed to it).
Also because I normally prefer to do SSL termination there.
I would hope that this is possible as it has been a bit problematic for me to get this to work properly.
Thanks,
R

@rukor it is certainly possible to use an external load balancer, but given you want it to be external to the Flynn cluster it really depends on your infrastructure.
For example, if you are using AWS you can use either an ELB or Route53 with TCP health checks.
You could also run HAProxy in front of the cluster and use the check option to only route requests to healthy hosts and do SSL termination. The issue then is this instance becomes a single point of failure, and if it goes down your entire cluster is inaccessible.


add missing  to packages

This PR adds missing __init__.py to any directory with python files, so setup.py can find all packages and install them correctly.

@Haiyang-W Thanks for the great work! I've noticed I can't use this package as a 3rd party dependency installed in site-packages due to setup.py not copying all the python files into the package.

@Krovatkin Thanks for your contribution. I will check and merge this PR.

@Haiyang-W Thanks for the great work! I've noticed I can't use this package as a 3rd party dependency installed in site-packages due to setup.py not copying all the python files into the package.

The __init__.py under the tools folder is not necessary. You may consider deleting these files.

I believe if we remove tools/__init__.py, we won't be able to use any one of these as packages either:
tools/__init__.py
tools/eval_utils/__init__.py
tools/process_tools/__init__.py
tools/train_utils/__init__.py
tools/visual_utils/__init__.py

Could you please advise me if this behaviour what we want?

@chenshi3 ^^


feat: added support for config

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Feature Request]: Create a construct of the SSH Key Module that can also generate the key

Description
By default, the SSH Key resource does not generate an SSH Key.
Instead you need to invoke a REST call once the resource was created.
To this end it would be nice to have a construct that uses our module (or without) and has the following extras:

If a user provides a MSI, the module also deploys a deployment script that invokes the SSH Key Generation
If a user provide a Key Vault reference, the module also stores the generated private key in that Key Vault

May justify an AVM pattern module, though could also see somebody make the case to integrate it in the resource module


Clone or Copy a Kasir object

remove unnecessary contracts
update type decalrations
removes transaction_id property, using gross_amount and order_id instead
fix: enabled_payments now accepts closure
move Endpoint to a Trait
automatically calculates gross_amount if itemDetails() method is called
rewrite tests
fix NoItemDetailsException message
gross_amount automatically calculates when grossAmount() method is called
MidtransResponse actions now have keys set to 'name' in action array. (#22)
properly getting orderId in status() method (#23)
move Midtrans endpoint to Endpoint trait (#24)
create github release note generator (#27)
Apply test only run on specified paths in PR
GoPay Account (#26)
Ability to Add Discounts and Taxes to Transactions (#29)
docs: Disable Reactivity Transform (#31)
feature: Clone and Copy Kasir Object
docs: Clone and Copy Kasir Object

closed during incorrect base branch


Last element is not being highlighted properly.

Last section isn't tall enough to register that it has been scrolled to, which results in the item not being highlighted at all.

I ran into this problem to. Should there be some sort of detection if the last element can't be scrolled to and if the user scrolls to the bottom of the page the last nav items hould be highlighted?


[#182, Part 1] Refactor drawZoomRectangle to be a generic.

Implements #182.
Part 1: Refactors the drawZoomRectangle function so that it can be recycled to draw a selection rectangle for the fit functions as well.

Consider using Promise instead of callbacks. Otherwise LGTM.

@maffoo I made the function a bit more generic at the same time, so probably needs another look before I merge it.

One question about rejecting the promise if the box is degenerate (we might also want to allow this by pressing ESC mid-drag or something like that, though needn't be in this PR). Otherwise LGTM.


Change TileSource, clear cache and redraw

Hi,
I'm using OSD with custom tile source, and through params after images src I send additional params om image:
for example: .....jpg?param1=value&param2=value
Can you show me the best way to clear OSD cache and redraw it with new tileSorce params?

viewer.world.resetItems() clears all of the current tiles and sets it to reload.

Hi
Thanks. But after this action world update and receive images on old url.
I'm getting images by new url only if I changed zoom
Can you help me to solve problem this old images
`      var getTileUrl = viewer.source.getTileUrl,
stamp = new Date().getTime();
  viewer.source.getTileUrl = function() {
    return getTileUrl.apply(this, arguments) + '?v=' + stamp;
  };

  viewer.world.resetItems();
  viewer.imageLoader.clear();
  viewer.world.update();`

Hmm, in that case you're probably better off removing the tiledImage and replacing it with a new copy, like so:
var oldImage = viewer.world.getItemAt(0);
var oldBounds = oldImage.getBounds();
var oldSource = oldImage.source;

// Modify tile source as needed

viewer.addTiledImage({
    tileSource: oldSource,
    x: oldBounds.x,
    y: oldBounds.y,
    width: oldBounds.width, // It'll do height automatically based on aspect ratio
    success: function() {
        viewer.world.removeItem(oldImage);
    }
});

Ian,
Thanks a lot. You make me happy )
Best regards

I would like to share a much better way of doing this. I was struggling with a similar scenario: the user has direct control on values that control how the tiles are being drawn. Going every time to the server for the original images took a bit of time, but attached on a slider and updating onchange it was pretty cumbersome.
You can instead remember a timestamp when last the tile was drawn:
...addHandler( 'tile-loaded', function(e) {
                ... //draw first tile as seen fit from e.image data, and set appropriately e.tile.context2D so that it will be used

                // Save the original image for furture use and its url
                e.tile.origData = e.image;
                // Note when the tile was last rendered and re-draw if too old
                e.tile.lastDrawnTStamp= Date.now();
        }

so once a tile is loaded, you first draw the output tile based on default parameters, and then:
... addHandler('tile-drawing', function(e) {
            if (e.tile.lastDrawnTStamp <= this.upToDateTStamp) {

                e.tile.lastDrawnTStamp= this.upToDateTStamp + 1;

                // Render an image as seen fit using new parameters, use e.tile.origData as the original image
                output = drawfrom(e.tile.origData, ...)

                // Clear the tile canvas in case the layer uses transparency, or don't otherwise
                e.rendered.clearRect(0, 0, e.tile.sourceBounds.width, e.tile.sourceBounds.height);
                // Give OSD new image data
                e.rendered.drawImage(output, 0, 0, e.tile.sourceBounds.width, e.tile.sourceBounds.height);
            }
        }

and finally, to reset the canvas do

//we will be resetting layerIndex - index of tile source
var imageTile = world.getItemAt(layerIndex);

// Raise tstamp to force redraw
this.upToDateTStamp = Date.now();

//force clear context, pretty dirty to touch private attributes but sorry, calling public member functions does not work, maybe there is better way to do this, you can let me know :)
imageTile._drawer.context.clearRect(0, 0, imageTile._drawer.context.canvas.width, imageTile._drawer.context.canvas.height);

//reqest draw event
world.draw();

Thanks @iangilman it was life saving solution. Makes my day.

Hmm, in that case you're probably better off removing the tiledImage and replacing it with a new copy, like so:
var oldImage = viewer.world.getItemAt(0);
var oldBounds = oldImage.getBounds();
var oldSource = oldImage.source;

// Modify tile source as needed

viewer.addTiledImage({
    tileSource: oldSource,
    x: oldBounds.x,
    y: oldBounds.y,
    width: oldBounds.width, // It'll do height automatically based on aspect ratio
    success: function() {
        viewer.world.removeItem(oldImage);
    }
});

Thanks @iangilman it was life saving solution. Makes my day.

Great! I'm glad it's working :)

@iangilman the solution working for one slide image in viewer. When we have two images in viewer it is not working. it override tiles on first image.

@prakashroy of course when you don't specify which image should be overridden, how is OSD supposed to know...?
viewer.addTiledImage({
                    index: <index>,
                    replace: true,
                    ...
});

@prakashroy of course when you don't specify which image should be overridden, how is OSD supposed to know...?
viewer.addTiledImage({
                    index: <index>,
                    replace: true,
                    ...
});

@Aiosa i tired this solution and not working for me.  Actually i have two Images to zoom in and zoom out. Let say i am zoom in second image and add few attributes to imgUrl while addTileImage to second image by triggering some action by cliking check box or button and removed old image with reloading but i if switch to first image and do same action i can see second image tiles on first image. Hope explained my best. Attaching screenshot for reference

@Aiosa scenario is i have two slides with images. I can zoom in and zoom out slide one slide at a time. When i select a check box with some option that will add attribute to imgUrl in tile source while adding Tile Image  and remove old tile image for selected slide and the code i posted working fine for single image.
If switch to second slide image at same zoom and select check box to add same attibute to imgUrl now refreshing tile image to first and second slide as well

@prakashroy looking at your code above, one issue I'm seeing is that the oldImage variable will keep getting overwritten by each successive iteration of the loop, so when success is called, it'll only do the last one. Take a look at "for loops and closures" if you're not familiar with the issue I'm talking about. Anyway, you can fix it by having the loop call a function instead:
function swap(t) {
  var oldImage = viewerWindow.getItemAt(t);
  var oldBounds = oldImage.getBounds();
  var oldSource = oldImage.source;

  // Modify tile source as needed

  oldSource.imgUrl = oldSource.imgUrl + '&tileCaheKey=3245435';

  viewer.addTiledImage({
    tileSource: oldSource,
    x: oldBounds.x,
    y: oldBounds.y,
    width: oldBounds.width, // It'll do height automatically based on aspect ratio
    success: function () {
      viewer.world.removeItem(oldImage);
    }
  });
}

for (var t = 0; t < viewer.world.getItemCount(); t++) {
  swap(t);
}

That issue won't necessarily cause the problem you are describing, though. Do you have updated code you can share?

@iangilman below is actual code. Please have a look btw i will try your suggestion.
` var viewer = osdViewerService.getActiveOSDViewer();
var selectedTileImage = viewer.world.getSlideAtIndex(slideSelectionFactory.getSelectedSlideIndex());
if (selectedTileImage) {
var ssf = angular.element(document.body).injector().get('slideSelectionFactory')
var viewerWindow = ssf.getViewer()
for( var t=0; t<viewerWindow.world.getItemCount(); t++) {
var oldImage = viewerWindow.world.getItemAt(t);
var oldBounds = oldImage.getBounds();
var oldSource = oldImage.source;
                            // Modify tile source as needed
                            if ( oldSource.tag == "overlay" ){
                                if( oldSource.imgUrl.includes("tileCacheKey") ){
                                    oldSource.imgUrl = oldSource.imgUrl.replace(/(tileCacheKey=)[^\&]+/, '$1' + overlaytilecachekey);
                                } else {
                                    oldSource.imgUrl = oldSource.imgUrl+"&tileCaheKey="+overlaytilecachekey;
                                }
                                viewerWindow.addTiledImage({
                                    tileSource: oldSource,
                                    x: oldBounds.x,
                                    y: oldBounds.y,
                                    width: oldBounds.width, // It'll do height automatically based on aspect ratio
                                    success: function() {
                                        viewerWindow.world.removeItem(oldImage);
                                    }
                                });
                            }
                        }

                }`

Cool. The actual code has the same "closures and for loops" issue, so it's definitely worth sorting that out.

@iangilman  it worked well after sorting loops but i have one more issue.
I rotated a slide image to some degree ex: 10 degree and after refresh the overlay tiles loading with 0 degree angle.

@iangilman i tired degrees while adding new tile but it is not working. Can you please help me on this?
function swap(t) {
var oldImage = viewerWindow.getItemAt(t);
var oldBounds = oldImage.getBounds();
var oldSource = oldImage.source;
// Modify tile source as needed
oldSource.imgUrl = oldSource.imgUrl + '&tileCaheKey=3245435';
viewer.addTiledImage({
tileSource: oldSource,
x: oldBounds.x,
y: oldBounds.y,
degrees: oldBounds.degrees,
width: oldBounds.width, // It'll do height automatically based on aspect ratio
success: function () {
viewer.world.removeItem(oldImage);
}
});
}
for (var t = 0; t < viewer.world.getItemCount(); t++) {
swap(t);
}

@prakashroy Interesting. Have you tried doing a console.log on the oldBounds.degrees to make sure it's the right number? Have you checked the new image in the success function to find out if it thinks it's rotated?
One possible thing would be to try rotating the image after it's loaded. You might also try getting the old image's rotation via oldImage.getRotation() to see if it's different than what you get from the bounds.
If it turns out there is a bug here, can you please file a new issue with that bug?

@iangilman, i tired setRotation after tiled image added successfully in success function and it is rotated but giving margin left and moved a bit to top and every refresh this margin left getting added.
`viewerWindow.addTiledImage({
tileSource: oldSource,
x: oldBounds.x,
y: oldBounds.y,
width: oldBounds.width, // It'll do height automatically based on aspect ratio
success: function(tileimage) {
viewerWindow.world.removeItem(oldImage);
//console.log("present rotation:"+tileimage.getRotation());
//console.log("set rotation:"+tileimage.setRotation(7, true));
console.log(tileimage.item.getBounds());
console.log(tileimage.item);
                    tileimage.item.setRotation(7, false)
                }
            });`

The current OSD version we are using is 2.4.0. Does latest version will help us?

@iangilman i fixed it and worked well
viewer.world.removeItem(oldImage);
                viewer.addTiledImage({
                    tileSource: oldSource,
                    x: oldBounds.x,
                    y: oldBounds.y,
                    width: oldBounds.width,
                    degrees: 10,
                    replace: true,
                    preload: true
                });


Question: Keeping UIView instances outside the closure

This is more a technical question than an issue, my approach worked really well so far, but I wanted to know if this would overstretch the purpose of this library, and see if there could be derived issues that I didn't foresee.
I need to implement fairly complicated behaviours on a ScrollView and so far none of these are available in pure SwiftUI, so I kept an instance of the scrollView as in the example below, assigning its delegate and using KVO on it, so I can keep track/change the contentOffset, detect when the user did release the dragging gesture and more.
        ScrollView {
            MyListView()
        }
        .introspectScrollView { scrollView in
            self.myScrollView = scrollView
        }

Note this code is a simplified version, I noticed that the actual scrollView instance provided sometimes changes and I keep always the latest version, and I maintain the delegate, KVO and all properties updated accordingly.
It feels a bit hacky, but so far it works great, no crashes, good performance, no unexpected failures.
Is this approach reliable enough?
Thanks!

@oriolpregona this is totally fine. I use an approach similar to yours for UINavigationController in my https://github.com/davdroman/swiftui-navigation-transitions library.
As a side note, note there's a newly released module that you should if possible prefer using for introspecting UIScrollView, as follows:
import SwiftUIIntrospect

ScrollView {
    Text("Item")
}
.introspect(.scrollView, on: .iOS(.v13, .v14, .v15, .v16), .tvOS(.v13, .v14, .v15, .v16)) { scrollView in
    self.myScrollView = scrollView
}


[BUG] FsWorkbook can be saved to file with no worksheet present

Describe the bug
It is possible to save an FsWorkbook with no worksheets attached. This is critical since an XLSX spreadsheet file always needs to have at least 1 worksheet with a name given. Else it is not valid and, e.g., MS Excel will tell you it is corrupted when trying to open it.
To Reproduce
Steps to reproduce the behavior:
1.
#r "nuget: FsSpreadsheet"
#r "nuget: FsSpreadsheet.ExcelIO"

open FsSpreadsheet
open FsSpreadsheet.ExcelIO

let path = "test.xlsx"

let wb = new FsWorkbook()

FsWorkbook.toFile path wb

Open in MS Excel

Expected behavior
This is up to debate.
Maybe throw an error when trying to save such a workbook?  Is this even a bug at all or do we want to give the library user the freedom to artificially produce invalid XLSX files?
@HLWeil

Now the funciton fails if no worksheet is present.


move performance doc to wiki

remove performance analysis doc, see wiki

This change is

@Chibikuri did you forget to approve? or still reviewing?

thank you for reviewing!


feat(contexts): add linked-vp

Add Linked Verifiable Presentation context https://identity.foundation/linked-vp/

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Similar to #547, this is currently blocked by #508


Sparse index

Description

Wooooops sorry clicked a wrong butten in the UI. This is not ready yet. :)

Wooooops sorry clicked a wrong butten in the UI. This is not ready yet. :)

Nevertheless, very exciting to get a sudden sneak preview!!


COS-interacting script never exits

Hello,
I run the following code and the script never finishes (does not return back to shell):
const AWS = require('ibm-cos-sdk');
const config = {
    apiKeyId: creds.apikey,
    endpoint: "https://s3.us-south.objectstorage.softlayer.net",
    serviceInstanceId: creds.resource_instance_id
};

let cos = new AWS.S3(config);

function doCreateBucket() {
    console.log('Creating bucket');
    return cos.createBucket({
        Bucket: 'my-bucket-unique-name-112233',
        CreateBucketConfiguration: {
            LocationConstraint: 'us-south'
          },
    }).promise();
}

doCreateBucket().then(
    () => console.log("done")
);

Console output:
[username@localhost bluemix]$ node cos.js
Creating bucket
done

^C
[username@localhost bluemix]$ node -v
v8.11.3

So... What's wrong with it?

This only happens with IAM auth. With hmac, the promise finishes correctly. I'm looking into the cause of this.

I am seeing this too...

Looks like it's the preemptive IAM token refresh code: https://github.com/IBM/ibm-cos-sdk-js/blob/master/lib/iam/token_manager.js#L381

We're looking into some fixes. For now it looks like the workaround is to call process.exit() after the final call.
e.g.:
// es5
doCreateBucket()
    .then((res) => console.log('Response: ' + util.inspect(res)))
    .catch((err) => console.log('An exception occurred: ' + util.inspect(err)))
    .then(() => process.exit(0));

or
// es6
try {
    const res = await doCreateBucket();
    console.log(`Response: ${res}`);
} catch (err) {
    console.log(`An exception occurred: ${err}`);
}
console.log('done');
process.exit(0);

Same story here...

This is resolved in release 1.3.1.


Improve success/failure report messages

Relates to https://github.com/FRUK-Simulator/Simulator/issues/153

Don't emit a 'Robot Wins!' message if the robot has crossed a "bad" zone during the current run.
Similarly, don't emit a 'Robot Looses!' message if the robot has already reached the 'FinishZoneId' cleanly (i.e. without driving into a bad zone beforehand).

If we are okay with the proposed approach then I can apply this to the other lessons.

The below program reproduces the issue.
finish after fail.json.txt


Include Files references are only lower cased

Description
Everything in the include files is lowercase, except the name of the file itself (yet, the path is).
Repro steps

Set up a "clean" Paket directory (following the steps from the getting started page).
Use the following paket.dependencies file:

source https://nuget.org/api/v2

nuget EntityFramework

Generate include scripts via the command paket generate-include-scripts framework net46.

Expected behavior
In the paket-files\include-scripts\net46 folder is a new file include.EntityFramework.fsx (or *.csx) generated with the following content:
#r "System.ComponentModel.DataAnnotations"
#r "../../../packages/EntityFramework/lib/net45/EntityFramework.dll"
#r "../../../packages/EntityFramework/lib/net45/EntityFramework.SqlServer.dll"
printfn "%s" "Loaded EntityFramework"

Actual behavior
In the paket-files\include-scripts\net46 folder is a new file include.EntityFramework.fsx (or *.csx) generated with the following content:
#r "System.ComponentModel.DataAnnotations"
#r "../../../packages/entityframework/lib/net45/EntityFramework.dll"
#r "../../../packages/entityframework/lib/net45/EntityFramework.SqlServer.dll"
printfn "%s" "Loaded entityframework"

(folder and package names are lowercased)
Related information

Running Pre-release 3.0.0-beta036

@ChrSteinert going to look at that, I suspect there is a confusion between the package identifier for comparison (which is lowercased in paket codebase) and the actual package folder name.
Thanks for first bug report on this feature :+1:

/cc @matthid @smoothdeveloper

fix in #1678

Leave a comment


[Bug Report] Multiple Issues with Telepathy Enchant

Some issues with Telepathy:

Doesn't work with vanilla enchants, like Fortune and Silk Touch.

Allows players to duplicate items. For example, with Telepathy on an axe, if a player breaks a bed or a sign, the item will be placed in their inventory (as telepathy should work), but the item still also drops on the ground, so the player can receive two.

Allows players to break items in world guard regions even with all build/block-break related options set to deny.

Minecraft Server Version: 1.15.2

Plugin Version: 1.8-Dev-Build-v8.1-SNAPSHOT-Build#141

The bug report is not being ignored, Moved to a tracking board which will be added to the README.


Looking for the dynamic (TLS) record sizing Nginx patch

Hi Cloudflare,
According to https://istlsfastyet.com/#cdn-paas you are supporting dynamic record sizing with Nginx. But the stock Nginx doesn't.
Can you, if available, please publish the patch? I really would love to use it.
Thanks!

Found it, thank you thank you! https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/


ImageMagick_jll dependancies causing issues

I updated packages and Tyler.jl broke due to this issue: https://github.com/JuliaIO/ImageMagick.jl/issues/209
To fix the issue I had to explicitly add:
add<EMAIL_ADDRESS>
removing ImageMagick dependency in the future in favor of ImageIO would probably be a good idea as it looks like there are plans to deprecate  ImageMagick_jll

Maybe a stopgap solution until we switch to ImageIO would be to add ImageMagick_jll as an explicit dependency and to add a compat entry to exclude non working versions.


[MDS] Consolidate cypress tests

Is your feature request related to a problem?
The multi datasource disabled workflow can piggy back off of some of the existing cypress tests, since the multiple datasources feature is off by default. This will save some CPU cycles. Additionally, we should look into whether the cypress tests from the FTR repo can piggy back off of the retry mechanism introduced with the merging of the MDS feature.

[Triage] Hi @derek-ho thanks for filing this issue. It looks like this issue can be closed once the Cypress tests are consolidated. Given this, marking as triaged.


fix update Improve redirection handling lead ssrf

Description
A Server-Side Request Forgery (SSRF) vulnerability was identified in Next.js Server Actions by security researchers at Assetnote. If the Host header is modified, and the below conditions are also met, an attacker may be able to make requests that appear to be originating from the Next.js application server itself.
CWE-918
CVE-2024-34351
Contribution Checklist:

[x] The pull request does not introduce any breaking changes
[x] I have read the contribution guidelines.
[x] Create an issue and link to the pull request.

Attach Screenshots (Optional)

Thanks for the PR but we already have #2765 which was opened by dependabot to address those CVEs and we're doing some tests to make sure with the major upgrade from 13.x to 14.x our UI works as expected.


TorchVision  keep the folder structures consistent between pytorch and Torchsharp?

@MovGP0
Should we keep the folder structures consistent between pytorch and Torchsharp?
pytoch vision

TorchSharp  vison

@MovGP0
I was looking into the code coverage of Torchsharp for Microsoft Pytorch learning project.
It seems a great extend is using TorchVision
https://github.com/MicrosoftDocs/pytorchfundamentals/tree/main/intro-to-pytorch

I don't think that keeping the folder structure the same is of importance.

With the right structure, it is easier to see what have and have not implemented :-)

my opinion is to align the folder structures, such that it becomes easier to track what is implemented and what is still missing.

that beeing said, there can be edge cases where it is justified to deviate from the source. But it should be because of technical reasons, like differences in the programming language.

@MovGP0
Thx for your feedback
The dotnet .Interactive or PolyGlot notebook team is currently seeking people to test new features where python could potentially share variables with c#.
I could imagine with the right TorchSharp community support,  the data exchange between PyTorch and TorchSharp within the PolyGlot notebook could be simpler and INTUITIVE than what is currently needing the users here to do.
When that happens, more c# users will adopt TorchSharp, more users will contribute to addressing the missing implementation in TorchSharp.
==> More users will need the "Right folder structures" to coordinate their effort to KEEP TorchSharp UP-To-Date with the latest PyTorch development.

I will invite the dotnet PM here (if she is interested) to invite more users HERE to join the testing of the new PolyGlot WIP features.


test_pageserver_max_throughput_getpage_at_latest_lsn: fails after ~1s with status 101

Reported by @Bodobolero
https://neondb.slack.com/archives/C033RQ5SPDH/p1707723367544629
https://neon-github-public-dev.s3.amazonaws.com/reports/main/7846373696/index.html#suites/e26265675583c610f99af77084ae58f1/39a10f32853edb40/
test_pageserver_max_throughput_getpage_at_latest_lsn[1-13-30]

2024-02-09 22:52:24.330 INFO [util.py:29] ready
2024-02-09 22:52:24.330 INFO [test_pageserver_max_throughput_getpage_at_latest_lsn.py:101] command: /tmp/neon/bin/pagebench get-page-latest-lsn --mgmt-api-endpoint http://localhost:15046 --page-service-connstring host=localhost port=15045 user=cloud_admin options='-cstatement_timeout=120s ' --runtime 30s
2024-02-09 22:52:24.331 INFO [neon_fixtures.py:2443] Running command '/tmp/neon/bin/pagebench get-page-latest-lsn --mgmt-api-endpoint http://localhost:15046 --page-service-connstring host=localhost port=15045 user=cloud_admin options='-cstatement_timeout=120s ' --runtime 30s'
2024-02-09 22:52:24.331 INFO [utils.py:117] Capturing stdout to "pagebench_43.stdout" and stderr to "pagebench_43.stderr"

from pagebench_43.stderr
2024-02-09T22:52:24.346577Z  INFO timelines:
[TenantTimelineId { tenant_id: be8c7c43a5d38341c74db54fba26fa4e, timeline_id: 414ca6c7aa388aec2e760a18db8170fb }]
2024-02-09T22:52:24.346601Z  INFO number of timelines:
1
2024-02-09T22:52:24.374749Z  INFO filter duration: 0.000672071
2024-02-09T22:52:24.374771Z  INFO waiting for everything to become ready
2024-02-09T22:52:24.375514Z  INFO work started
2024-02-09T22:52:25.273573Z ERROR panic{thread=tokio-runtime-worker location=/__w/neon/neon/pageserver/client/src/page_service.rs:44:29}: called `Result::unwrap()` on an `Err` value: Error { kind: Closed, cause: None }

...

2024-02-09T22:52:25.317187Z ERROR client:panic{thread=tokio-runtime-worker location=pageserver/pagebench/src/cmd/getpage_latest_lsn.rs:440:18}: called `Result::unwrap()` on an `Err` value: getpage for be8c7c43a5d38341c74db54fba26fa4e/414ca6c7aa388aec2e760a18db8170fb

Caused by:
    connection closed

...

2024-02-09T22:52:25.319174Z ERROR panic{thread=tokio-runtime-worker location=pageserver/pagebench/src/cmd/getpage_latest_lsn.rs:309:25}: client has gone away unexpectedly

...

2024-02-09T22:52:25.376628Z  INFO RPS: 2290
2024-02-09T22:52:26.378031Z  INFO RPS: 0
2024-02-09T22:52:27.379518Z  INFO RPS: 0

Pageserver logs
2024-02-09T22:52:24.375886Z  INFO page_service_conn_main{peer_addr=<IP_ADDRESS>:49066}:process_query{tenant_id=be8c7c43a5d38341c74db54fba26fa4e timeline_id=414ca6c7aa388aec2e760a18db8170fb}:handle_pagerequests:handle_get_page_at_lsn_request{rel=1663/12972/16396 blkno=18771 req_lsn=0/1AFFF100}:handle_get_page_at_lsn_request{shard_id=0000 shard_id=0000}: launched walredo process duration_ms=0 pid=4081
2024-02-09T22:52:25.273331Z  INFO request{method=PUT path=/v1/tenant/be8c7c43a5d38341c74db54fba26fa4e/location_config request_id=4db28a62-3980-44e1-bec2-41fd09e005eb}: Handling request
2024-02-09T22:52:25.273412Z  INFO request{method=PUT path=/v1/tenant/be8c7c43a5d38341c74db54fba26fa4e/location_config request_id=4db28a62-3980-44e1-bec2-41fd09e005eb}:upsert_location{tenant_id=be8c7c43a5d38341c74db54fba26fa4e shard_id=0000}: configuring tenant location to state Attached Single, gen=00000003
2024-02-09T22:52:25.273426Z  INFO request{method=PUT path=/v1/tenant/be8c7c43a5d38341c74db54fba26fa4e/location_config request_id=4db28a62-3980-44e1-bec2-41fd09e005eb}:upsert_location{tenant_id=be8c7c43a5d38341c74db54fba26fa4e shard_id=0000}: Shutting down attached tenant
2024-02-09T22:52:25.273438Z  INFO request{method=PUT path=/v1/tenant/be8c7c43a5d38341c74db54fba26fa4e/location_config request_id=4db28a62-3980-44e1-bec2-41fd09e005eb}:upsert_location{tenant_id=be8c7c43a5d38341c74db54fba26fa4e shard_id=0000}: Waiting for timelines...
2024-02-09T22:52:25.273454Z  INFO page_service_conn_main{peer_addr=<IP_ADDRESS>:49066}:process_query{tenant_id=be8c7c43a5d38341c74db54fba26fa4e timeline_id=414ca6c7aa388aec2e760a18db8170fb}:handle_pagerequests:handle_get_page_at_lsn_request{rel=1663/12972/16404 blkno=3114 req_lsn=0/1AFFF100}: dropping connection due to shutdown

Assessment
We're getting a /location_config request for the tenant after the python test has observed the tenant as active.
That causes cancellation of the connection handler.
That makes the benchmark fail.
Fix Ideas
### Tasks

- [ ] Understand why attachment_service sends that `/location_config` request
- [ ] Somehow work around this
- [ ] re-enable the test https://github.com/neondatabase/neon/pull/6785

This week: investigate, delegate if it's a storage controller issue.

Should we reenable the test on the CI / change the message then @VladLazar?
https://github.com/neondatabase/neon/blob/c3a40a06f3b35058acfa63490052c21309b9f745/test_runner/performance/pageserver/pagebench/test_pageserver_max_throughput_getpage_at_latest_lsn.py#L37-L40

Nope. The test is still flaky, but the failure mode is different (see issue https://github.com/neondatabase/neon/issues/6925). I'll bring it up in the next storage bug triage meeting.


Undo/Redo Options

Is there any plan to add the option to undo/redo in polygons/polylines? I see from previous issues that you plan to add them. Can you please tell when the feature will be ready or suggest a temporary/hacky way to get it to work?
Update: I was able to get "undo" working as this pull request does this: https://github.com/codeofsumit/leaflet.pm/pull/284
Is it possible to add redo also?

@agrimgupta92 I can't give any timelines, I work on leaflet.pm when I find the time.
a solution to add redo is to do this inside your application. Whenever the user changes something, or "undoes" something, save the layer and show a "redo" button. When the user clicks it, overwrite the layer with the saved one.
I will add #284 soon, I'm not sure about redo though.
I will mark this issue as a feature request, especially for Redo. Anyone who is also interested in this, please give it an upvote 👍

Hey guys,
let us discuss how this should work.

For which modes / shapes should be undo / redo able to called?
Should be undo / redo called per layer / mode or on the complete project? The problem will be, that if undo is called over the project, we need to save the order when which layer was changed, this is not so easy
How often should be undo able to call?
...

This is my idea of how it should work
Modes:

Cancel Edit: reset the object back to LatLng of pm:enable
Undo: Revert to last vertex change(store position on vertex click #692), ideally this should be possible to revert multiple changes.


Improve navigation

Add summary to mobile navigation.
Restructure nav icons to account for empty set of share providers.
Translate hard-coded chapter tooltip title.
Only show chapters with title and summary in navigation.
REDMINE-17425

Coverage remained the same at 99.23% when pulling e6f786c56a6649aa70a5c7660e3e50bb493c397b on DanielKuhn:improve-navigation into d85ef57b73aa6a64d14726ce44c9ad1d99a242d4 on codevise:master.


Resolve and return transitive dependencies from getResolved()

What's changed?
Make a distinction between direct and transitive dependencies are returned from the GradleDependencyConfiguration.
What's your motivation?
When detecting dependencies or vulnerabilities, folks most likely want all dependencies, rather than just the direct dependencies. We would not want every recipe to have to recurse over a hierarchy of dependencies.
Anything in particular you'd like reviewers to focus on?

[x] Went for LinkedHashSet to maintain a predictable order, at the expense of performance. Is that OK?
[x] Added an explicit constructor, even though Lombok also generates it's own all args constructor; is that OK?
[ ] Figured resolve the transitive dependencies once from a constructor, rather than leave that up to the caller; ok?
[ ] Didn't see any tests in the project; OK to continue without?

Anyone you would like to review specifically?
@sambsnyd
Have you considered any alternatives or workarounds?

Could have added a getAllResolved or getTransitiveResolved instead; if we want to keep behavior as it was.

Any additional context

DependencyVulnerabilityCheck calls getResolved() but only got direct dependencies up to now.
There's a few other callers of getResolved(): https://github.com/search?q=org%3Aopenrewrite getResolved()&type=code

It would certainly be nice to have some tests in this project. For now when I make changes to this I run the tests in rewrite-gradle and rewrite-gradle-plugin to verify


Application Customizer Deployment doesn't work on First Release Tenants

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.
Category

[ ] Question
[ ] Typo
[x] Bug
[ ] Additional article idea

Expected or Desired Behavior
Application Customizer extension can be deployed to First Release Tenants
Observed Behavior
Application Customizer extension can't be deployed to First Release Tenants - it is not loading on the pages
Steps to Reproduce

scaffold Application Customizer
use steps from the tutorial to deploy Application Customizer
it will work on DEV Tenant but won't work on First Release Tenant

See #847

@Brentless I have even commented in #847
But thanks for pointing. I created this one to be the bug, not question.


Multiple NicEdit with JQuery Dialog positions offset

For Information only (I'm aware the project is no longer actively maintained).
I had a few problems where I had multiple NicEdit textareas within a JQuery Dialog.
The first problem is that when clicking on buttons like HTML the popup does not stay active
http://stackoverflow.com/questions/42541766/modal-jquery-ui-dialog-with-nicedit-issue
I concluded that this was because NicEdit attaches the EditHTML panel to the document body, rather than insert it into the same part of the DOM as the panel itself.  As such I believe the panel is not in the JQuery Dialog.
For my use case it was sufficient to just make the dialog non modal to work around this.
The second problem I believe stems from the same issue.  The NicEdit EditHTML Panels and their ilk would end up positioned wrongly where multiple NicEdit editors were on the dialog.  In some cases the panel would open some 600 pixels or so below my JQuery Dialog, so the user would have to scroll down to them.
The ideal fix would be to have the panel inside the JQuery Dialog and positioned relative to that - rather than the document body.  Alas that is quite beyond my Javascript skills - especially since NicEdit doesn't use JQuery.
As a hacky quick fix however that works for my uses I instead made the panel open at the coordinates of the mouse cursor.  To do this I placed the following at the top of NicEdit.js:
var cursorX;
var cursorY;
document.onmousemove = function (e) {
    cursorX = e.pageX;
    cursorY = e.pageY;
}

and then further down around line 1000:
var nicEditorPane = bkClass.extend({
    construct: function(D, C, B, A) {
        this.ne = C;
        this.elm = D;
        this.pos = D.pos();

        this.contain = new bkElement("div").setStyle({
            zIndex: "9999",
            overflow: "hidden",
            position: "absolute",
            left: cursorX + "px",
            top: cursorY + "px"

I don't feel something this hacky should be put in a pull request... but it may help someone.
Should someone have a better solution I would love to have it!
https://github.com/MrChriZ/NicEdit/blob/master/nicEdit.js

I've branched this code and have a fix for this issue.    But so far it fixes the issue without being so 'hacky.'
https://github.com/tekrat/NicEdit/tree/master


Add deadlock test for hotbackup

Port additional deadlock test to 3.6.
This is a simple port of a new test which was already reviewed and
tested on 3.7, 3.7.3 and devel.

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/12736/


Create additional info blocks

You can make your resume less official by adding more entertaining info, like your hobbies and interest, or what do you like, some interactive content or joke, easter egg, etc.

Added my hobbies and principal interests to the webpage


Allow server member in Discord to chat without verifying/linking when account link is required

Describe the feature
Allow non-verified/non-linked member to chat with Minecraft player in crosschat channel even with link.required is set to true.
Description
Currently, the plugin when configured to require account linkage, anyone who want to crosschat with MC players also need to be verified, meaning that everyone need to have Minecraft account and do linking process once to chat even though if they didn't want to play in the first place.
The setup that I tried to do is, if someone want to play in the server, they need to link the MC with Discord account but anyone else are free to talk in the channel to talk with MC players. But, the plugins enforce the need to be linked first before they can chat.

It seems a little bit weird to both require linking which means that it would not allow the player to play until they verify AND allow them to talk. This doesn't seem like a particularly useful feature/option so could you explain why this may be useful?


Fix strange CI fails

It seems that the problem was in some caches, since now CI does not fails, as it used to do in the compatibility check with version 2022.1, with which it should not have checked it at all.


Umlaut not working when typing with alt+u on mac

I need to type emails in German and English equally often on an English keyboard layout. Typing umlauts via ALT+u and e.g. u for ü is broken when enabling the extension.
Steps

Open new email with enabled just not sorry extension
Type alt+u to get ¨ and any of the following characters a, u, o

Expected
¨ will be replaced with ü when typing u
Actual
¨ will not be replaced and the characters appear as: ¨u

Sorry to hear that. We'll see if we can fix this in the next update.

Tami Reiss
CEO
Cyrus Innovation http://www.cyrusinnovation.com/
212-647-7186
Agile Reinforcement to accelerate your development
Dedicated to respect and diversity
@tamireiss / @cyrusinnovation
Learn about the difference between the Cyrus way
http://www.cyrusinnovation.com/differences-between-xp-vs-scrum-agile/ and
other consultancies.
On Wed, Jan 13, 2016 at 10:43 AM, Wolfgang<EMAIL_ADDRESS>wrote:

I need to type emails in German and English equally often on an English
keyboard layout Typing umlauts via ALT+u and eg u for ü is broken when
enabling the extension
Steps
1 Open new email with enabled just not sorry extension
2 Type alt+u to get ¨ and any of the following characters a, u, o
Expected
¨ will be replaced with ü when typing u
Actual
¨ will not be replaced and the characters appear as: ¨u
—
Reply to this email directly or view it on GitHub
https://github.com/cyrusinnovation/just-not-sorry/issues/25.

Hey @tami-cyrus, I've just submitted #26 that fixes this issue.

@WolfgangD I did some testing of the changes in PR #26 and found that, unfortunately, they are broken by changes to the cursor positioning logic in the 0.2.6 release that fixed other bugs.  The cursor positioning has been a major source of issues, so we're working on redesigning the way just-not-sorry does highlighting.

@sbrudz that's sounds like a good plan. I don't expect any problems with modifier characters once the cursor isn't changed during the highlight process.
How long do you expect until those changes will make it into master? I can probably spare some time to try fix it again for 0.2.6 and submit another pull request. Though, I think it is best to wait for the redesign before spending more time on fixing "the old way".

@WolfgangD Thank you for your offer and for your patience.  I recommend waiting for the redesign.  I've got a POC working.  See #31 for details.  We'll update the ticket with an estimate on timing.

We're hoping that https://github.com/cyrusinnovation/just-not-sorry/issues/31 fixes this


Irregular use of go tag

Describe the bug
Upgrades that are not compatible in the go language should use the following forms: https://blog.golang.org/v2-go-modules instead of simply upgrading tags, this is because go get -u will upgrade the direct and indirect dependencies in the project. This will upgrade the indirect dependencies if possible Will cause code incompatibility, as shown below:
To Reproduce
Steps to reproduce the behavior:
I have 2 projects A, B, and B depends on A, A depends on<EMAIL_ADDRESS>A: v1 (dep: go2sky)
B: v1 (dep: B)
when you use go get -u in B project. A(direct dependency) and go2sky (indirect dependencies) will upgrade to latest, If the v0.5.0 version of go2sky  is not backward compatible, B project will get error
Expected behavior
Incompatible upgrades can follow golang version management specifications
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

v2-go-modules seems like a good idea. Can we talk about it over WeChat? my email<EMAIL_ADDRESS>:)


AVLN2002 Duplicate x:Class directive, (My App).App is already used in /App.axaml

Describe the bug
I'm having an issue with the axaml files for some reason. Everything in the file is correct in my App.axaml but it's giving me this AVLN2002 Duplicate x:Class directive, {My app name here}.App is already used in /App.axaml
I'm not sure what is going on and I looked everywhere for a solution online. I can compile the app on Linux just fine, but not Windows 10 or 11. I'm not sure what is happening because I made another test project and it works on Windows and Linux.

To Reproduce
Unsure how to reproduce due to difficulties trying to create issue on other Avalonia projects.
Expected behavior
Should just compile without issue on Windows and Linux.
Avalonia version
11.2.0
OS
Windows
Additional context
I can't reproduce the issue on new projects. Sorry if it's not clear. I tried downgrading the Avalonia version, and changing the x:Class to an invalid namespace (Didn't give a different error, but uses the invalid namespace name in the same error).

There likely is some misconfiguration in your old project. Can't tell what's exactly without project itself.
Could be duplicated registrations in csproj file.