text:
dotnet: don't skip the GenericParamConstraint metadata table

Fixes bug that causes the directory parsing to skip the last table

FYI:  we built a parser for all the metadata tables and will submit a PR with those changes soon

Oh I missed that ! Good catch @veramine. The tests did not have a case to catch this, I will add one later.

Hey @veramine that will awesome to have parsing the metadata tables ! Looking forward to that !
The patch is available on: v1.4.6

source: gharchive/pull-request

authors: LordNoteworthy veramine

repo: saferwall/pe

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 I Energy Pharmacophore LLP ( Samir Savaliya ) is down

In b1af5e0, I Energy Pharmacophore LLP ( Samir Savaliya ) (https://ienergypl.com) was down:

HTTP code: 403
Response time: 1041 ms

Resolved: I Energy Pharmacophore LLP ( Samir Savaliya ) is back up in 2018d00 after 9 minutes.

source: gharchive/issue

repo: sahajananddigital/status


text:
Upcoming Instagram API changes

Instagram API Platform is planned for deprecation starting July 31, 2018 in favour of Instagram Graph API.  Need to evaluate impact and make changes if necessary.  See https://developers.facebook.com/blog/post/2018/01/30/instagram-graph-api-updates  for details.

On the same note instagram-node npm package appears to be abandoned an unmaintained.  The dependency on it needs to be removed or replaced by another package that is actively maintained and commonly used.

repo: sahat/hackathon-starter

license: mit

license_source: bigquery


text:
Fix google map not showing error

Fix google map not showing error and add google map api key field to config file

Thank you

authors: YasharF whmsysu


text:
request Authorization header

I have a setup following your node.js example. Creating users, logging in and logging out all works fine. When I try to go to the "Protected" page though I get rejected by the ensureAuthenticated middleware.
The request to /api/me does not have an authorization header. Instead the req.headers.authorization looks like this:
{ host: 'localhost:3000',
  connection: 'keep-alive',
  accept: 'application/json, text/plain, */*',
  'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36',
  referer: 'http://localhost:3000/',
  'accept-encoding': 'gzip,deflate,sdch',
  'accept-language': 'en-US,en;q=0.8,fr;q=0.6' }

So how do I make sure my request has an authorization header when hitting /api/me?
It looks like this part of angular sends the request:
angular.module('MyApp')
  .factory('Account', function($http) {
    return {
      getUserInfo: function() {
        return $http.get('/api/me');
      }
    };
  });

After login the server successfully sends a token, but when trying to access protected resources my requests don't have a req.body.authorization header, so they don't pass the ensureAuthenticated middleware:

I'm getting the same problem as jgentes, in my client local storage i can see token, but req object on server has no authorization header.

same...

Have you used $authProvider.httpInterceptor flag at all?
Default value: httpInterceptor: function() { return true; } which means it will use HTTP interceptor that adds this authorization header to every request.
Here is the source code:
.factory('SatellizerInterceptor', [
      '$q',
      'SatellizerConfig',
      'SatellizerStorage',
      'SatellizerShared',
      function($q, config, storage, shared) {
        return {
          request: function(request) {
            if (request.skipAuthorization) {
              return request;
            }

            if (shared.isAuthenticated() && config.httpInterceptor(request)) {
              var tokenName = config.tokenPrefix ? config.tokenPrefix + '_' + config.tokenName : config.tokenName;
              var token = storage.get(tokenName);

              if (config.authHeader && config.authToken) {
                token = config.authToken + ' ' + token;
              }

              request.headers[config.authHeader] = token;
            }

            return request;
          },
          responseError: function(response) {
            return $q.reject(response);
          }
        };
      }])
    .config(['$httpProvider', function($httpProvider) {
      $httpProvider.interceptors.push('SatellizerInterceptor');
    }]);

I am not sure why it doesn't work for you, but you can easily add this at the application level in your app's config.

@umasgn you're talking express server? Here are some express tips on accessing headers: http://stackoverflow.com/questions/13147693/how-to-extract-request-http-headers-from-a-request-using-nodejs-connect
You using passport for authentication on server side?

@umasgn @mbejda
I have commit below line and my problem solved

// $authProvider.httpInterceptor = false;

authors: cleechtech connor11528 mbejda sahat samarhaider umasgn

repo: sahat/satellizer


text:
🛑 Forum Sumiswald is down

In 1e0de0a, Forum Sumiswald (https://www.forum-sumiswald.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Forum Sumiswald is back up in ea56d22 after 8 minutes.


text:
🛑 Philosophie.ch is down

In 262f149, Philosophie.ch (https://www.philosophie.ch) was down:

HTTP code: 429
Response time: 864 ms

Resolved: Philosophie.ch is back up in edffa1f after 17 minutes.


text:
fix: more accurate filter for session names

Currently when searching sessions, sessions with name starting with the name of attached sessions will be filtered unexpectedly. For example, if session project is attached, sessions like project_sub1 can't be selected even if it's not attached.
This PR fixes the problem by changing the grep -v command used to filter attached sessions.

Thank you for the fix!

repo: sainnhe/tmux-fzf


text:
Isosceles triangle working of input field

Describe the bug

Though there is function for working of input fields for isosceles triangle it is not working. I would like to fix this. Kindly assign this to me under GSSoC.

Possible solution

Describe the solution you thought of.

Screenshots

Go ahead
Deadline 31 March,2021 (11:59 PM IST)


text:
When open in mobile the search bar and answer area below it overlaps.

The site is not enough responsive. When open in mobile the search section and the searched content below it overlap.
I would like to contribute to it by designing separate container for both of them
Please assign this to me

issue is already opened for the same


text:
Laplace transforms and properties added

Related Issue: #500
I have added all the important laplace transforms and properties used for laplace transformations

@RaveenaBhasin  Could you please add some screenshots showing the changes? After that, we can resolve the merge conflicts :)

@shrey27tri01 @sairish2001 Please review it


text:
Couldn't run the code

Hi, I couldn't run the code. I'm getting assertation error and .dll errors...
Can you explain how to run it in mode detail? And what are the prerequisites for it?

Can you provide detailed error message/messages you are seeing?
You would need python 3.7 or greater, tensorflow 2.8 or greater (2.x should be fine, but not tested).
You would also need rouge package (pip install rouge)
You would also need the dataset (link in the README) and the parameters "vocab_path" and "data_dir" set correctly based on the location of the dataset.

Can you provide detailed error message/messages you are seeing?
You would need python 3.7 or greater, tensorflow 2.8 or greater (2.x should be fine, but not tested). You would also need rouge package (pip install rouge)
You would also need the dataset (link in the README) and the parameters "vocab_path" and "data_dir" set correctly based on the location of the dataset.

I think I got it, but now I have a different error about log_dir parameter and it's like below.
max_size of vocab was specified as 50000; we now have 50000 words. Stopping reading.
Finished constructing vocabulary of 50000 total words. Last word added: perisic
Creating the batcher ...
Creating the checkpoint manager
Initializing from scratch.
Starting the training ...
Traceback (most recent call last):
File "text_summarization_lstm_gru/main.py", line 52, in
main()
File "text_summarization_lstm_gru/main.py", line 47, in main
train( params)
File "/content/text_summarization_lstm_gru/train_test_eval.py", line 40, in train
train_model(model, b, params, ckpt, ckpt_manager, "{0}/{1}.txt".format(params["log_dir"], model_name))
File "/content/text_summarization_lstm_gru/training_helper.py", line 40, in train_model
f = open(out_file,"a+")
FileNotFoundError: [Errno 2] No such file or directory: './log/LSTM_LSTM.txt'

Yes, I will update this. For now, please create a folder "log" in the main folder. Or, specify the folder to use with the parameter "log_dir" like --log_dir="/path/to/log/folder"

Thanks! But at the and I"ll need this text file right?
And also I wanted to discuss the based code (https://github.com/steph1793/Pointer_Generator_Summarizer) with you in detail. Do you have LinkedIN account or something to communicate better?

LinkedIn: https://www.linkedin.com/in/sajithm/

Hi. Can you share the your rouge results as well? What did you get with 50000 training steps? Thanks! I've tried with 15000 steps and results are bad and for Rouge-2 ; F1 ,precision and recall values returns as 0.

authors: AlpaslanErdag sajithm


text:
SAM-2884 - New questions and parts ordering mechanism for test and quizzes

SAM-2884 JIRA

@bjones86 , @ottenhoff  thank you, I made the corrections as suggested.

Thanks for making those modifications, @fgeraci. This LGTM

repo: sakaiproject/sakai


text:
SAK-32343

Orginezed import
Add default set
raw type
import org.apache.commons.lang.StringUtils; => import org.apache.commons.lang3.StringUtils;
Kernel cover => Kernel api

cc @buckett


text:
Format markdown checkboxes

Closes #107.
This pull request adds support for markdown checkboxes.

An initial regex check is made in each li within .documentation to see if the markdown checkbox exists ([ ]). This will convert the checkbox into a html checkbox.
The padding and list discs/dots are removed by adding tailwind css classes to the parent ul.
A check is then made to see if the markdown checkbox has been set to true ([x]). This will amend the checkbox to checked.
Note: Another small change was made to the Larecipe.js dependancy name as this is currently spelt LaRecipe.js. This was causing a compile error as the filename is the former.

that's amazing, thank you, dude, @kakposoe 🥇

authors: kakposoe saleem-hadad

repo: saleem-hadad/larecipe


text:
Add CallVisualizer VideoCall feature

This PR implements Call Visualizer video call feature using data-driven appraoch. This includes:

Video Call
Video Call + Screensharing
Video Call with audio, chat, mute buttons disabled  (MOB-1774)
Handling of bubble view appearance in various scenarios
Handling of engagement termination

!squash

!merge

repo: salemove/ios-sdk-widgets


text:
Keep display on during audio and video calls

Currently during audio or video call the screen would turn off after some time if there is no interaction with the screen. This PR fixes this issue and keeps the screen on until the end of the call. In addition, if user decides to hold the phone to their ear, the proximity sensor is activated, which will dim the screen and disable interaction until phone has been removed from close contact.
MOB-1661

I'd like to propose to make separate ProximityManaging structure and move implementation there, so we will have possibility to reuse this code where we would like easily

@yurii-glia @rasmustautsglia  I would suggest to have UIKitBased.UIDevice instead of  ProximityManaging.

!squash

!merge

!merge

authors: igorkravchenko rasmustautsglia


text:
Plugins that include models.py must be included in not only PLUGINS but also INSTALLED_APPS

PLUGINS list is mentioned to be included in INSTALLED_APPS. however, plugins wiyh models.py can't be migrated unless we include the plugin in PLUGINS and INSTALLED_APPS together.

I'll test if the same issue happens with setup.py instead of PLUGINS

Closing as plugins are getting deprecated and won't be developed anymore.

authors: LeOndaz maarcingebala

repo: saleor/saleor


text:
An error occurred while loading the blip2_feature_extractor

Thanks for the great work!
I was trying out BLIP2 feature extractor,actually it works. But when i load the model by
load_model_and_preprocess(name="blip2_feature_extractor", model_type="pretrain", is_eval=True, device=device)
There're lots of missing keys.
e.g.
Missing keys ['visual_encoder.cls_token', 'visual_encoder.pos_embed', 'visual_encoder.patch_embed.proj.weight', 'visual_encoder.patch_embed.proj.bias', 'visual_encoder.blocks.0.norm1.weight', 'visual_encoder.blocks.0.norm1.bias', 'visual_encoder.blocks.0.attn.q_bias', 'visual_encoder.blocks.0.attn.v_bias' ...
I wonder if the pretrained model from https://storage.googleapis.com/sfr-vision-language-research/LAVIS/models/BLIP2/eva_vit_g.pth is incomplete or something else caused it.

Hi, thanks for reporting the issue. This is not an error.
Missing keys are expected when loading pre-trained feature extractor. The "blip2_feature_extractor" checkpoint does not contain visual_encoder parameters, because the visual_encoder has been initialized from frozen eva_vit_g.

So there is actually no problem, thank you for your reply

repo: salesforce/LAVIS


text:
Add a11y test to make sure stories are loading

Currently, there isn't a check to make Storybook stories are loading. This means that all tests pass--which is unfortunately what was happening then the original pull request was made. No tests were actually being run, so all the tests passed!

Hi @interactivellama ! Can I have some more info on what's needed? I ran a Lighthouse test and it looks like accessibility is fine but performance is at a 19? But I can't find anything regarding Storybook stories. Not sure if I'm understanding correctly. Thanks!

We use axe-puppeteer in the CI tests to run aXe on all the stories in storybook. Currently if the page never loads in the headless Chrome, then the tests still pass.
In our codebase, aXe passes if no HTML is loaded into headless Chrome. We need to make our CI tests fail if no DOM is loaded.
This task would add a test to make sure that a DOM is loaded that can be tested to make sure there are no false positives.
I'm thinking that just adding a test here that checks for #root might work. Right now if #root doesn't exist then there's no test fail and the a11y test suite "passes" since there are "no a11y errors" when there is web page.
https://github.com/salesforce/design-system-react/blob/master/tests/axe-puppeteer-matcher.js#L58

repo: salesforce/design-system-react


text:
Test Zap Action with GitHub

I want to test the integration

Added comment

repo: salesforceconfirmit/testzapintergration


text:
🛑 Oswald is down

In a3a8ca8, Oswald (https://oswald.wikibase.cloud/wiki/NOSAD-POC) was down:

HTTP code: 502
Response time: 320 ms

Resolved: Oswald is back up in dec18b5.


text:
Add examples hosted somewhere online??

Hi,
It looks nice, but without examples of PDF that users can have a look at, it feels weird.
Any possibility of adding some?

Hello @Naereen
I would close this ticket since it is sort of a duplicate of #18 and we could continue the discussion there.

Hi @salomonelli.
OK

authors: Naereen salomonelli

repo: salomonelli/best-resume-ever


text:
🛑 Blog is down

In f87f9ec, Blog (https://saltbo.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in 0003567 after 8 minutes.

repo: saltbo/status


text:
VideoPlayerController is not disposing.

So when navigating to another page video is still playing.

Solved in Android. iOS crash all others controllers when disposing a controller.

authors: holydevio salvadordeveloper

repo: salvadordeveloper/TikTok-Flutter


text:
linik data from card to popup

Task completed

Add js to create a popup for every card
link data from the card to the popup

Nice job!!! nothing to say, It's time to merge it


text:
exact_cov_test.sh Julia error

@pbeckman Tried running exact_cov_test.sh just now and (after many Julia packages were installed), hit the error below. Any clues? This was a run with dragon1.obj.
triangle mesh with 6699 verts
set up FEM discretization [0.1s]
Loading mesh...
ERROR: LoadError: UndefVarError: `Point3` not defined
Stacktrace:
 [1] geometrybasics_to_meshes(mesh::GeometryBasics.Mesh{3, Float32, TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, FaceView{TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NgonFace{3, OffsetInteger{-1, UInt32}}, StructArrays.StructVector{PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NamedTuple{(:position, :normals), Tuple{Vector{GeometryBasics.Point{3, Float32}}, Vector{GeometryBasics.Vec{3, Float32}}}}, Int64}, Vector{NgonFace{3, OffsetInteger{-1, UInt32}}}}})
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:16
 [2] load_mesh(mesh_file::String)
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:36
 [3] top-level scope
   @ ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_exact_cov_test.jl:11
in expression starting at /home/sfp/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_exact_cov_test.jl:11
Loading mesh...
ERROR: LoadError: UndefVarError: `Point3` not defined
Stacktrace:
 [1] geometrybasics_to_meshes(mesh::GeometryBasics.Mesh{3, Float32, TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, FaceView{TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NgonFace{3, OffsetInteger{-1, UInt32}}, StructArrays.StructVector{PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NamedTuple{(:position, :normals), Tuple{Vector{GeometryBasics.Point{3, Float32}}, Vector{GeometryBasics.Vec{3, Float32}}}}, Int64}, Vector{NgonFace{3, OffsetInteger{-1, UInt32}}}}})
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:16
 [2] load_mesh(mesh_file::String)
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:36
 [3] top-level scope
   @ ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_sample.jl:11
in expression starting at /home/sfp/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_sample.jl:11
Loading mesh...
ERROR: LoadError: UndefVarError: `Point3` not defined
Stacktrace:
 [1] geometrybasics_to_meshes(mesh::GeometryBasics.Mesh{3, Float32, TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, FaceView{TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NgonFace{3, OffsetInteger{-1, UInt32}}, StructArrays.StructVector{PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NamedTuple{(:position, :normals), Tuple{Vector{GeometryBasics.Point{3, Float32}}, Vector{GeometryBasics.Vec{3, Float32}}}}, Int64}, Vector{NgonFace{3, OffsetInteger{-1, UInt32}}}}})
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:16
 [2] load_mesh(mesh_file::String)
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:36
 [3] top-level scope
   @ ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_exact_cov_test.jl:11
in expression starting at /home/sfp/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_exact_cov_test.jl:11
Loading mesh...
ERROR: LoadError: UndefVarError: `Point3` not defined
Stacktrace:
 [1] geometrybasics_to_meshes(mesh::GeometryBasics.Mesh{3, Float32, TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, FaceView{TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NgonFace{3, OffsetInteger{-1, UInt32}}, StructArrays.StructVector{PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NamedTuple{(:position, :normals), Tuple{Vector{GeometryBasics.Point{3, Float32}}, Vector{GeometryBasics.Vec{3, Float32}}}}, Int64}, Vector{NgonFace{3, OffsetInteger{-1, UInt32}}}}})
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:16
 [2] load_mesh(mesh_file::String)
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:36
 [3] top-level scope
   @ ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_sample.jl:11
in expression starting at /home/sfp/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_sample.jl:11
Loading mesh...
ERROR: LoadError: UndefVarError: `Point3` not defined
Stacktrace:
 [1] geometrybasics_to_meshes(mesh::GeometryBasics.Mesh{3, Float32, TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, FaceView{TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NgonFace{3, OffsetInteger{-1, UInt32}}, StructArrays.StructVector{PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NamedTuple{(:position, :normals), Tuple{Vector{GeometryBasics.Point{3, Float32}}, Vector{GeometryBasics.Vec{3, Float32}}}}, Int64}, Vector{NgonFace{3, OffsetInteger{-1, UInt32}}}}})
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:16
 [2] load_mesh(mesh_file::String)
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:36
 [3] top-level scope
   @ ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_exact_cov_test.jl:11
in expression starting at /home/sfp/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_exact_cov_test.jl:11
Loading mesh...
ERROR: LoadError: UndefVarError: `Point3` not defined
Stacktrace:
 [1] geometrybasics_to_meshes(mesh::GeometryBasics.Mesh{3, Float32, TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, FaceView{TriangleP{3, Float32, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}}, PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NgonFace{3, OffsetInteger{-1, UInt32}}, StructArrays.StructVector{PointMeta{3, Float32, GeometryBasics.Point{3, Float32}, (:normals,), Tuple{GeometryBasics.Vec{3, Float32}}}, NamedTuple{(:position, :normals), Tuple{Vector{GeometryBasics.Point{3, Float32}}, Vector{GeometryBasics.Vec{3, Float32}}}}, Int64}, Vector{NgonFace{3, OffsetInteger{-1, UInt32}}}}})
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:16
 [2] load_mesh(mesh_file::String)
   @ Main ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/utils.jl:36
 [3] top-level scope
   @ ~/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_sample.jl:11
in expression starting at /home/sfp/Dropbox/Research/Butterfly/butterfly/builddir/examples/covariance/plot_sample.jl:11

Fixed by https://github.com/sampotter/butterfly/pull/12.

repo: sampotter/butterfly


text:
when will support playlist and quality switching?

when will support playlist and quality switching?
This is an awesome project, but I saw the last updating time is 2 months ago, will this project be maintained for a long time?

Please see original issues - v3 is coming soon. I have a personal life as well as maintaining Plyr 👍
For any discussion, use the Slack channel rather than GitHub issues:
http://bit.ly/plyr-slack

@sampotts Thank you, it's really a beautiful player, just hope it better :D

v3 is a massive re-write and is way better

https://github.com/Bilibili/flv.js/
this project is nice, it is used to play flv file instead of flash, it extract data from rtmp and feed it to video player, based on MSE, it seems did sth like hls.js, maybe you can think about supporting it.
rtmp has much lower delay than hls. :D

authors: argb sampotts

repo: sampotts/plyr


text:
Fixes #66 - error transferring project

In my attempt to fix #66 I fixed a few other issues I saw in the code
and improved the lookup functionality.  Seems to be slightly faster now.
However, my original problem still exists due to the following issue below.

https://gitlab.com/gitlab-org/gitlab-ce/issues/1522

I may try and find another work around and resubmit this PR for merge.  This is primarily for review.

One of the problems I fixed is where the code continued to try and create the project even if it already existed in the user namespace after a failed transfer.  This code fixes the logic to only create when the project doesn't exist anywhere.

Can you modify the pull request to go to development?  I keep master to production only commits.  Probably should swap out the library for pyapi library.

authors: logicminds samrocketman

repo: samrocketman/gitlab-mirrors


text:
Support loading other scenarios in serve mode

Took a shot at implementing my feature request here for myself.
Feedback very welcome and I'm in no real rush to get this merged, I can add documentation as well if the approach is validated.

Cool!
What's the dev experience like here, if you change the environment var will the server autoreload?
In our app this is what our scenarios/default.js looks like:
import createAcceptanceTesting from './create-acceptance-testing';
import createEmberConcurrency from './create-ember-concurrency';
import createContextualComponents from './create-contextual-components';
import createEmberMapPodcast from './create-ember-map-podcast';
import createMirage from './create-mirage';
import createRefactorings from './create-refactorings';
import createBookshelves from './create-bookshelves';
import createNotes from './create-notes';
import userStates from './user-states';

// Choose one
const state =
  // 'anonymous'
  // 'unsubscribed'
  'subscribed'
;

export default function(server) {
  window.server = server;

  createAcceptanceTesting(server);
  createEmberConcurrency(server);
  createContextualComponents(server);
  createMirage(server);
  createEmberMapPodcast(server);

  createRefactorings(server);

  createBookshelves(server);

  createNotes(server);

  server.createList('plan', 3);
  server.create('plan', { price: 290000, interval: 'yearly' });

  userStates[state](server);
}

So we just change that state variable on line 12 if we want different "scenarios".
Originally my thought was the scenarios should be a first-class thing in Mirage but now I guess I'm not as convinced, since folks can just use functions/modules to split up their seeds logic. If we have to change a variable anyway and rebuild the app to see a new scenario, I don't see much difference in what we're doing above and something like an ENV variable (as in your PR). But I still might be persuaded, if only to have "one way" of separating these things.
However I am interested in any possible APIs we could use to "switch" scenarios without having to rebuild... so if we had multiple scenario files, how could we signal to Mirage to load different ones? Something like a query param (but that has issues), or even localStorage... localStorage.mirage.scenario = 2, then reload the browser. That way you could load a new scenario without rebuilding the app.
Not sure – what do you think? What are some of your pain points that are hard to solve with JS modules/imports/functions?

Thanks Sam, the example you've posted helps a lot and I see how that approach basically checks all the boxes.
I was also thinking of scenarios as first class citizens. Especially in the context of another feature I'm very interested in, sharing mirage factories, serializers, and scenarios from addons.
I'll move forward on our side with your suggestions above and see if I run into anything.
Thanks again!

Closing for now, let me know how the above goes 👍
Happy to revisit this feature!

authors: samselikoff scottkidder

repo: samselikoff/ember-cli-mirage


text:
Omit default Content-Type header for 204 responses

As a 204 response has no response body, a Content-Type is basically meaningless. It doesn't seem to be a violation of any spec to have one AFAICT, but as it is optional and does not make sense here, it seems better to not add it automatically.

Btw, got an error with orbit.js, as it tried to JSON.parse() the empty body, because it thinks there is content when Content-Type is set. See https://github.com/orbitjs/orbit/blob/master/packages/%40orbit/jsonapi/src/jsonapi-source.ts#L285-L295

Makes sense.
Turns out making a well-behaved server is tricky!
Thanks so much for the great PR 🤙

authors: samselikoff simonihmig


text:
Spelling Correction from Dawson's Spelling Bee

Automated corrections from https://github.com/dawsonbotsford/spellingBee . If the correction is useful, star me! Keep in mind, this is solely spelling updates for your README, it should not affect functionality.

Wait, you went to HVA, right? How did you hear about this?

I saw this on Github trending. There's no fucking way you went to HVA too!?

authors: dawsonbotsford samshadwell

repo: samshadwell/TrumpScript


text:
Provide, Inject and more hooks for component lifecycle

Hey @samsonasik ,
This is my solution to add most of the lifecycle hooks according to Vue.js documentation here  and also add the abilityu to provide and inject data, useful for nesting components.
How to use:
Let's take for example portfolio.js
import createPage from './create-page.js';

let portfolio = createPage(
    'portfolio',
    {
        portfolio : [
            {
                title : 'loading...',
                image : '',
                link  : '',
            }
        ]
    },
    // inject
    ['passUser'],
    // computed
    {
        user(){
            return this.passUser();
        }
    },
    // provide
    null,
    {
        search: function (e = null) {
            let keyword = e !== null
                ? e.target.value
                : '';

            if (typeof this.$store.state.portfolio.portfolio[keyword] !== 'undefined') {
                this.portfolio = this.$store.state.portfolio.portfolio[keyword];

                return;
            }

            if (sessionStorage.getItem('search-portfolio-' + keyword)) {
                let portfolio  = JSON.parse(sessionStorage.getItem('search-portfolio-' + keyword));
                this.$store.commit('portfolio/search', { keyword: keyword, value: portfolio });
                this.portfolio = portfolio;

                return;
            }

            (async () => {
                await new Promise( (resolve) => {
                    fetch(
                        '/api/portfolio?keyword=' + keyword,
                        {
                            method: 'GET',
                            headers: {
                                'Accept': 'application/json',
                            }
                        }
                    ).then(response =>  resolve(response.json()));
                }).then(result => this.portfolio = result);

                this.$store.commit('portfolio/search', { keyword: keyword, value: this.portfolio });
            })();
        }
    },
    // hooks
    {
        updated: function() {
            this.$nextTick(() => this.search());
        },
        activated: function(){
            console.log(this.user)
            console.log('Activated!!!!')
        },
        deactivated: function(){
            console.log('Deactivated!!!!')
        }
    }
);

export default portfolio;

Note that now I can use more hooks and also inject the function passUser and user the computed variable user provided from the parent app.js:
import home       from './home.js';
import about      from './about.js';
import contact    from './contact.js';
import portfolio  from './portfolio.js';
import store      from './store.js';
import createPage from './create-page.js';

const { createRouter, createWebHistory } = VueRouter;

const routes = [
    { path: '/', component: home, meta: { title: 'Home'}  },
    { path: '/about', component: about, meta: { title: 'About'}  },
    { path: '/contact', component: contact, meta: { title: 'Contact'}  },
    { path: '/portfolio', component: portfolio, meta: { title: 'Portfolio'}  },
    { path: '/:pathMatch(.*)*', component: createPage('notFound'), meta: { title: 'Page Not Found' } }
];

const router = createRouter({
    history: createWebHistory(),
    routes: routes,
    base: '/',
    linkExactActiveClass: "active"
});

router.afterEach(to => document.title = to.meta.title);

const app = Vue.createApp({
    data() {
        return {
            user: {
                id: 1,
                username: 'test this thing',
                email: 'email@email.com',
            }
        }
    },
    methods: {
    },
    provide() {
        return {
            passUser: () => this.user,
        }
    }
});
app.use(router);
app.use(store);

router.isReady().then(() => app.mount('#root'))

Let me know what you think.
Best Regards,
Renan

@samsonasik portfolio.js updated my friend, feel free to check!


text:
how to eidt file idea.properties  or  disable "Fetching android sdk component information"

I need proxy to access google adk , otherwise a error " WARN - ateSettings.impl.UpdateChecker - Connection failed. Please check your network connection and try again."
for android studio without docker, set proxy like this

Go to the install location, open bin directory, edit the idea.properties, add below line to the file's end:

    disable.android.first.run=true

Then open android studio, set the proxy in configuration and close again.

Remove the line disable.android.first.run=true from idea.properties and open android studio again.

After this, you can work behind a proxy.

how i set proxy for android studio within docker?
I override 'ENTRYPOINT studio.sh ‘ in  'android-studio' dockerfile  using 'docker run    --entrypoint=/bin/bash ', then edit idea.properties, but  permission denied.
How could i edit file idea.properties  ?

edit android-studio/Dockfile , add :
RUN echo disable.android.first.run=true >> ${ANDROID_STUDIO_HOME}/bin/idea.properties

then sudo docker build ...

repo: samtstern/android-vagrant


text:
when there's a folder in a user folder, look for its index.{j,t}s

when #166 get implemented, players will be able to have utils that are specific to a script that's specific to a user

I'm gonna hold of implementing this for now. instead if someone has has a script named bar that's specific to their user foo, they can put their script at src/scripts/foo/bar.ts and a utility specific to that script can be put at src/scripts/foo/bar/my-util.ts

I am open to re-opening this issue. If you reading this found this issue and you want this, feel free to comment and I can re-open it

repo: samualtnorman/hackmud-script-manager


text:
iPad: Multiple windows

I believe this is iOS 13, but I’d like to have NewsBlur open in multiple windows. (This is the feature where you tap on a iPad dock icon while the app is already open and it switches into the window switch dialog).
Is this feasible? Are there assumptions that the app makes that can’t be resolved with multiple windows? I feel like this would require those callback pointers that you pass between pages so you can context switch and not lose your place, but I don’t know that this is absolutely necessary. I just want multiple NewsBlur windows open side by side on different feeds. A callback pointer would be necessary if it was the same feed but at different pages, which we don’t need to support.

Yeah, that would be a nice enhancement. Anything is possible, but I haven't looked into it yet, so I'm not sure how difficult it'd be.  I expect that there are numerous assumptions of a single window that would have to be changed, but I can think of various ways of solving that. I'll investigate sometime.

Work on this (and much more) is underway; see #817 for more info.

authors: Dejal samuelclay

repo: samuelclay/NewsBlur


text:
Can't parse_raw Optional[Json] generated from Pydantic

Bug
Please complete:

OS: any
Python version import sys; print(sys.version):3.7.3 (default, Mar 27 2019, 09:23:15)
[Clang 10.0.1 (clang-1001.0.46.3)]
Pydantic version import pydantic; print(pydantic.VERSION): 1.2

Where possible please include a self contained code snippet describing your bug:
from typing import Optional
from pydantic import Json, BaseModel

class Test(BaseModel):
    name: str
    some_obj: Optional[Json]

t = Test(name="hi")
serialized = t.json()
print(serialized)
t_deserialized = Test.parse_raw(serialized)

The above will fail with:
pydantic.error_wrappers.ValidationError: 1 validation error for Test
some_obj
  JSON object must be str, bytes or bytearray (type=type_error.json)

Because serialized is JSON that takes the following form: {"name": "hi", "some_obj": null}. If the some_obj key is omitted entirely everything works fine.
I would expect parse_raw() to work with the output of json().
The crux of the issue seems to be that validation will fail if an Optional[Json] field is present, but has a value of None. This will also fail Test(name='foo', some_obj=None).
This example works fine in pydantic < 1.

Thanks for reporting, shouldn't be too hard to fix. PR welcome to fix it, otherwise I'll try to fix before the next release.

I can fix it. I've added a failing test case in my fork, but where do you think the best place to fix the issue is? I'm not super familiar with the code base so a hint in the right direction would be greatly appreciated.

https://github.com/samuelcolvin/pydantic/blob/890589a6106ba6d8dcd0408278c79a910e18068f/pydantic/fields.py#L454-L455
Hopefully as simple as allowing validate_json pass None straight through, then later logic will cause an exception if the field is not allowed to be None.
Simplest approach would be to add that test too and see what happens.

So fixing the original issue is as straight forward as you thought, but I think I've uncovered another issue related to Json.
The following test fails:
def test_json_required():
    class JsonRequired(BaseModel):
        json_obj: Json

    with pytest.raises(ValidationError):
        JsonRequired()

Failed: DID NOT RAISE <class 'pydantic.error_wrappers.ValidationError'>
This happens before I even make any changes to pass None through.
I can get the expected behavior if I do:
def test_json_required():
    class JsonRequired(BaseModel):
        json_obj: Json = ...

    with pytest.raises(ValidationError):
        JsonRequired()

I have an PR here https://github.com/samuelcolvin/pydantic/pull/1080 with the failing test in there, but I wanted to get it up to discuss how to fix the failure.

@volker48 Maybe this is related?: If required is not provided (in this case the ...), the field is set to allow None and not being required:
https://github.com/samuelcolvin/pydantic/blob/890589a6106ba6d8dcd0408278c79a910e18068f/pydantic/fields.py#L340-L343
after having received Any as the new type:
https://github.com/samuelcolvin/pydantic/blob/890589a6106ba6d8dcd0408278c79a910e18068f/pydantic/fields.py#L329-L330

maybe related to #1031

I removed the failing test as this seems like a more involved fix and is only tangentially related to this issue. My PR now passes all checks in CI.

So fixing the original issue is as straight forward as you thought, but I think I've uncovered another issue related to Json.
The following test fails:
def test_json_required():
    class JsonRequired(BaseModel):
        json_obj: Json

    with pytest.raises(ValidationError):
        JsonRequired()

Failed: DID NOT RAISE <class 'pydantic.error_wrappers.ValidationError'>
This happens before I even make any changes to pass None through.
I can get the expected behavior if I do:
def test_json_required():
    class JsonRequired(BaseModel):
        json_obj: Json = ...

    with pytest.raises(ValidationError):
        JsonRequired()

I have an PR here #1080 with the failing test in there, but I wanted to get the PR up to discuss how to fix the code causing the test failure (or possibly remove the failing test and fix the other issue under a separate PR).

THis is correct since v1.2, see here

authors: samuelcolvin volker48 whippiii

repo: samuelcolvin/pydantic


text:
🛑 Git is down

In c1cc56a, Git (https://git.students.cs.unibo.it) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Git is back up in 9247609 after 14 minutes.


text:
[Enhancement] Xbox One's Impulse triggers support

We have already #19 rumble support, but Xbox controllers evolved a bit and Xbox One controllers have Impulse triggers too. Is it possible to have Impulse Trigger Vibration support directly in Xidi?
My idea is that DirectInput vibration could activate every available motor - left motor, right motor, left trigger and right trigger when vibration is defined.
From configuration side it can have config flag which can decide about activation of these vibrations. If flag enabled - rumble motors + triggers are vibrating, if disabled only rumble motors are working. Optional option can be mode when only triggers are vibrating, disabling motors.
Similar implementation has already X1nput hook.

Actually, Xidi already implements all of the code needed to support the impulse triggers, I just haven't hooked it up yet because they are not officially supported by XInput.
It shouldn't be too hard to get this working. It would either be take the approach used by X1nput, use some undocumented XInput functions directly, or switch to something even more modern than XInput.

Windows.Gaming.Input API has impulse trigger support documented, also Xinput 1.4 has it officially documented, Xinput 1.3 and lower did not support it, and Xinput 1.4 is only awailable for Win 10 and up, so it was not very popular and devs mostly did not implement impulse triggers in pc version of games to keep it compatible with xinput 1.3 on Win 7 and 8.
You really should read this it may help you not just with impulse triggers but with many other thing as well:
https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/uwp/gaming/gamepad-and-vibration.md

I know that Windows.Gaming.Input has documented support for the impulse triggers, but I haven't been able to find it anywhere for XInput 1.4. Do you have a link to the specific impulse trigger documentation for XInput 1.4?
As for the usual motors vs swapping to triggers, support for that is already implemented and can be enabled via configuration file. So to swap between motors and impulse triggers you would just need to disable the motors and enable the triggers instead, or to combine motors and triggers just enable all of them. At the moment, the problem is that impulse triggers aren't supported by the backend (XInput 1.4, as far as I know), but the code in Xidi is all already there for all four motors. Intensity range selection is interesting, and I would have to think about it more.
One option, of course, is to switch to Windows.Gaming.Input, which would be pretty simple given that Microsoft already provides a wrapper called XInputOnGameInput. It just hasn't been high enough of a priority to go look into it and do it, plus this might introduce other dependencies for users that I haven't investigated yet.

I actually find Xidi implementation of this feature far more intriguing than X1nput. There's a much greater palette of effects available in DirectInput, and with game-specific configurations, you might actually be able to get something similar to native impulse support. Some games might use only certain effect types for certain events (impacts vs. road noise vs. gunshots and so on) and you might be able to isolate said effects to just handle motors or just trigger motors, whichever makes more sense.
If Xidi ever gets the ability to be scripted-by-game-logic (profile switching and whatnot), I could also see this avenue being used to push game-logic specific rumble functions.
For those curious, X1nput works with Xidi in my limited testing.

authors: eVenent instinctualjealousy samuelgr v00d00m4n

repo: samuelgr/Xidi


text:
Jinja Template does not load static images

Hello every one!
I figure out that jinja HTML templates did not work using static images but work on css and js
i am using eel=0.12.2
<src="imag/logo.png">
i got this error
 contents = f.read().decode(self.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte

Please help me in this regards
Thanks

Hello everyone!
I resolved this issue by placing statics (images) in the web directory where favicon.png file is.
web
   templates
       -> base.html
       -> hello.html
       -> page2.html
   favicon.png
  <place your static images here>

in the html file where you need to set the path accordingly like in base file
<img src="../favicon.png" width="50" height="50" alt="">

repo: samuelhwilliams/Eel


text:
入渠ドックが更新された際にお風呂に入りたい艦娘に表示されないようにする

#93 の変更では入渠時間が更新されていないため、修復が完了した艦娘がお風呂に入りたい艦娘に表示されたままになるので修正

ありがとうございます
確かに残ったままになってましたね

authors: kPherox sanaehirotaka

repo: sanaehirotaka/logbook-kai


text:
Cross Study Project Pulling Phase 1

First phase of the Cross-Study-Project-Pulling project.
Add Order which is pretty much what was submission and embedded it in a submission.
This allows us to remove project/study from a submission and do submission with different studys and projects needed for Cross Study Project Pulling. Remove also study and project from request which now are hold by aliquots.
Externally, everything should be pretty much identical from the previous version

wrong branch

repo: sanger/sequencescape


text:
初始化和还原的的时候能居中吗大佬？

初始化和还原的的时候能居中吗大佬？

可以计算位置调用组件 onDragStop 方法设置偏移使居中，传两个参数x,y，都是数字类型

可以计算位置调用组件 onDragStop 方法设置偏移使居中，传两个参数x,y，都是数字类型

onDragStop不是一个事件吗？

可以设置全局样式：
<style lang="scss">
.zoom-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>

authors: TaoziDeGitHub maqingbo pandly sangtian152


text:
Set preview mode always on in particular Hydrogen environments

Describe the bug
In order to use previews in sanity (i.e., see what I am editing side by side), we are thinking to use a new environment + branch setup in shopify admin that has the requisite preview variables set. However, sanity will still need to hit the /api/preview in order to set the cookie. What is the best way to do this?
Currently I am thinking something like the following in root loader

  if (
    request.url.includes('preview') &&
    !sanity?.preview?.session?.get('projectId')
  ) {
    return redirect(
      `/api/preview?slug=${pathname}&secret=${context.env.SANITY_PREVIEW_SECRET}`,
    );
  }

May not matter because
https://github.com/sanity-io/hydrogen-sanity/issues/69

repo: sanity-io/hydrogen-sanity


text:
false-positive: reassign inside an infinite loop

package main

func main() {
	var err error
	var rest []byte
	for {
		rest, err = bar(rest)

		if err == nil {
			break
		}
	}
}

func bar(d []byte) ([]byte, error) {
	return nil, nil
}

foo.go:7:3: reassigned, but never used afterwards (wastedassign)
                rest, err = bar(rest)
                ^

Thanks for your report.
I'll fix it

authors: ldez sanposhiho

repo: sanposhiho/wastedassign


text:
🛑 JENKINS_URL is down

In d639fbf, JENKINS_URL ($JENKINS_URL) was down:

HTTP code: 502
Response time: 806 ms

Resolved: JENKINS_URL is back up in 15baf36.

repo: santomaharaj/upp


text:
🛑 APISIX_APIGW_URL is down

In f9ec360, APISIX_APIGW_URL ($APISIX_APIGW_URL) was down:

HTTP code: 502
Response time: 920 ms

Resolved: APISIX_APIGW_URL is back up in c192077.


text:
Deploy Your Multi-Target Application (MTA)

Tutorials: https://developers.sap.com/tutorials/btp-app-cap-mta-deployment.html
Write here how you think we can improve the tutorial ...
Step 6 Exclude CSV files from deployment describes that CSV files used for testing purposes shall be deleted using npx rimraf for productive deployments.
The better approach would be to define this sample data in the folder test/data instead. This ensures that it will be loaded by default when using cds watch, but it will not be added by cds build --production or cds watch --production.
You may want to give it a try.
See also https://answers.sap.com/questions/13823398/csv-file-ignore-while-deploying-to-production.html
Regards,
Lothar

Hi @LotharBender ,
I could not find test/data mentioned on capire other than in the multitenancy chapter, I can check with my colleagues but do you have any resource mentioning this is the recommendation/best practice?
Best regards,
Manju

Hi Manju,
this documentation is currently being written, but not yet available.
I will add a link once the corresponding Capire documentation has been released. We will distinguish test data from predefined application data.

Lothar

Hi,
I'll close this issue as it has been open for some time now. Please contact me or create a new issue if there has been a resolution already.
Best regards,
Manju

authors: LotharBender manjuX

repo: sap-tutorials/Tutorials


text:
Create an SAP Fiori App Using SAP Business Application Studio

Tutorials: https://developers.sap.com/tutorials/appstudio-fioriapps-create.html
At step 1:
4. The Application Router Generator Wizard tab is opened. For Application Router Configuration, select the following, and click Finish. :
A | Application router project path | /home/user/projects (default)
B | MTA ID | FioriDemo
C | MTA Description | Can be left empty (default)
D | MTA version | 0.0.1 (default)
E | Add route module | Managed Approuter
Here, the "MTA version" is not asked, so this parameter can be removed. The screenshot in the document is correct though:

Please update the document accordingly.
Labels:
Landscape Labels: trail2, trail3
Scenario Label: SCPTest-fbizapp
Priority: Low
Sprint Label: SCPTest-2112B
Thanks and Regards,
Farozan

Thanks, @FarozanFarman .
The update will be available soon.
Regards - Raz

@raz-korn What's the status?

Done.

authors: FarozanFarman MichaelCzcz raz-korn


text:
Remove ADAI Tutorials

PR to delete the tutorials after moving to own repository

I need to enlist Joshua Margo's help to review this.  As we are deleting tutorials with this, I want to ensure I understand any extra verification checks that we need to perform. I'll try to do that today. Stand by, please.

authors: rbrainey smahati


text:
Replace JSXTransformer with Babel

JSXTransformer is deprecated.

https://github.com/FormidableLabs/component-playground/blob/master/src/components/preview.jsx

repo: sapegin/react-styleguidist


text:
Timeframe length validator for Date fields

Add a model property that allows the developer to validate incoming Date fields against the current date; for example, date must be more than 18 years ago, or date must be less than 3 months ago.
Would be useful for storing dates of birth where there's also an age requirement.
Need to figure out a clear and concise notation for this, since I don't want it to be like PHP's date() where every dang time you need to use it, you have to look up the magic hieroglyphs that correspond to the different date elements.

Probably most likely want to use some NLP based formatting here, like chrono, to avoid the definition of the constraints being too hieroglyphic.

Probably most likely want to use some NLP based formatting here, like chrono, to avoid the definition of the constraints being too hieroglyphic.

And probably find a way to cache the parsed definition, so that it's not parsing NLP each time Sapling touches the model.

repo: saplingjs/sapling


text:
Add an 'Analysis' section to the website

create a new header for 'Analysis'

Maybe we could add it in #868.  Are there any pages that should under that header?

authors: RachelMuston smellems

repo: sara-sabr/ITStrategy


text:
[BUG] Unable to load asset: packages/youtube_player_flutter/assets/speedometer.webp

Describe the bug
As soon as the page loads, you can see the following error and stacktrace.
To Reproduce
Steps to reproduce the behavior:
Just the example code from the readme will trigger this issue for me.
Expected behavior
The video plays normally.
Technical Details:

Device: Android Emulator Pixel 3 XL
OS: Android API 28

Additional context
It might be related to the following bug, as I get the same error after trying to Play the video. Since nobody posted the stacktrace, I have to assume they are non related, but could be.
https://github.com/sarbagyastha/youtube_player_flutter/issues/120
E/flutter ( 9723): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.flutter.io/webview
E/flutter ( 9723): 	at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:91)
E/flutter ( 9723): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:96)
E/flutter ( 9723): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:60)
E/flutter ( 9723): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:231)
E/flutter ( 9723): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:93)
E/flutter ( 9723): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:642)
E/flutter ( 9723): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter ( 9723): 	at android.os.MessageQueue.next(MessageQueue.java:326)
E/flutter ( 9723): 	at android.os.Looper.loop(Looper.java:160)
E/flutter ( 9723): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/flutter ( 9723): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 9723): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/flutter ( 9723): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter ( 9723): , null)
E/flutter ( 9723): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
E/flutter ( 9723): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:321:33)
E/flutter ( 9723): <asynchronous suspension>
E/flutter ( 9723): #2      AndroidViewController._create (package:flutter/src/services/platform_views.dart:640:54)
E/flutter ( 9723): #3      AndroidViewController.setSize (package:flutter/src/services/platform_views.dart:557:14)
E/flutter ( 9723): #4      RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:174:29)
E/flutter ( 9723): #5      RenderAndroidView.performResize (package:flutter/src/rendering/platform_view.dart:155:5)
E/flutter ( 9723): #6      RenderObject.layout (package:flutter/src/rendering/object.dart:1703:9)
E/flutter ( 9723): #7      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter ( 9723): #8      RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #9      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter ( 9723): #10     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #11     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter ( 9723): #12     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #13     RenderStack.performLayout (package:flutter/src/rendering/stack.dart:505:15)
E/flutter ( 9723): #14     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #15     RenderAspectRatio.performLayout (package:flutter/src/rendering/proxy_box.dart:520:13)
E/flutter ( 9723): #16     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #17     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter ( 9723): #18     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #19     RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:259:13)
E/flutter ( 9723): #20     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #21     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter ( 9723): #22     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #23     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter ( 9723): #24     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1232:11)
E/flutter ( 9723): #25     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #26     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
E/flutter ( 9723): #27     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #28     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:744:15)
E/flutter ( 9723): #29     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter ( 9723): #30     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11)
E/flutter ( 9723): #31     RenderObject.layout (package

════════ Exception caught by image resource service ════════════════════════════════════════════════
The following assertion was thrown resolving an image codec:
Unable to load asset: packages/youtube_player_flutter/assets/speedometer.webp

When the exception was thrown, this was the stack:
#0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7)
<asynchronous suspension>
#1      AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:484:44)
#2      AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:469:14)
#3      ImageProvider.resolve.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter/src/painting/image_provider.dart:327:17)
...
Image provider: AssetImage(bundle: null, name: "packages/youtube_player_flutter/assets/speedometer.webp")
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#a0ccc(), name: "packages/youtube_player_flutter/assets/speedometer.webp", scale: 1.0)

I think this was happening because I forgot to clean and build again. Working fine now, sorry.

Just run this command.
flutter clean && flutter run
it will solve your problem

authors: AbdurRehman-coder sfratini


text:
is there any way to specify fabric distribution properties with this plugin?

I'm uploading a build to Crashlytics with the following command:
./gradlew assembleRelease crashlyticsUploadDistributionArmv7Release

As it's described here it's possible to specify distribution group and release notes:
ext.betaDistributionReleaseNotes=”Release Notes for this build.”
ext.betaDistributionEmails="BetaUser@y.com, BetaUser2@y.com"
ext.betaDistributionGroupAliases=”my-best-testers”

The only way to do that now is to create build-extras.gradle
If you need to customize build.gradle, rather than edit directly, you should create a sibling file named build-extras.gradle. This file will be included by the main build.gradle when present.

I upload my APKs to Crashlytics using the crashlytics-devtools.jar at the command line which supports groups and release notes.
You can get a list of all of the command line switches by using the --help switch:
$ java -jar resources/android/crashlytics-devtools.jar --help

Thanks. Is it Crashlytics Ant plugin? https://docs.fabric.io/android/crashlytics/ndk.html#crashlytics-additions-to-ant-projects

Yes, you can get the jar by downloading the Ant package from https://fabric.io/downloads/ant.
You don't actually have to use the Ant build scripts to use the jar though. I use the jar directly solely for uploading builds from the CLI.

I'm trying to use the crashlytics dev tools jar to upload a beta apk file to Fabric, but get an illegal argument exception that I'm missing a required parameter. What parameters are you using on the command line?

authors: Justin-Credible joejensen8 karser

repo: sarriaroman/FabricPlugin


text:
slot(name) api

slots(name)
returns assignedNodes as substitution for
const slotContent = this.$('slot')[0].assignedNodes()[0].textContent;

slots(name,value)
as alias to slots(name) .innerHTML=value

Using templates and slots
Slot use cases
hide all and show one

slot().hide( name=undefined ) hide slots
slot().show( name=undefined ) show slots
The usual sequence slot().hide().show(name) to hide all except of given slot

replace slot content

slot( name, htmlOrNodeSet ) set slot content, return slots
slot().html( htmlOrNodeSet ) alias to slot().innerHTML for string or slot().clear().set( Node )

get slot elements to fill out manually
slot( name )
clone slot for manipulation, use as a micro-template
slotClone( name = undefined )
append content to slot
slotAdd( name ) - clone and add
slotAdd( name, node )
slotAdd( node )
also populates added element slot property with name
clear added
slotClear( name = undefined )
remove all slots injected by slotAdd

implemented

repo: sashafirsov/css-chain-test


text:
Issue 997

Issue
Closes #997
Intent
Print helpful message in case of missing assets while sasjs web
Implementation
Catching all the missing assets and printing on on console.

Rest of the changes are the removal of unnecessary usage of await.
Checks

[ ] Code is formatted correctly (npm run lint:fix).
[ ] Any new functionality has been unit tested.
[ ] All unit tests are passing (npm test).
[ ] All CI checks are green.
[ ] JSDoc comments have been added or updated.
[ ] Reviewer is assigned.

@saadjutt01 You might want to change the PR title to something more descriptive, starting with fix.

@saadjutt01 You might want to change the PR title to something more descriptive, starting with fix.

Updated.

Server tests failed

repo: sasjs/cli


text:
mp_makedata breaks if there are no character or no numeric variables in the dataset

The mp_makedata macro breaks if there are no character or no numeric variables in the dataset as the argument to the countw function is blank.

:tada: This issue has been resolved in version 2.61.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: IvorTownsend krishna-acondy

repo: sasjs/core


text:
pass directory to render/rendersync

Why is there no possible way to pass a input file directory to node-sass with using the javascript api? It doesnt make sense that you can only pass a input directory via command line, but you HAVE to pass a file when using the script API. please do something about this, we can can bring our node-sass task into a separate script.

It doesnt make sense

It makes perfect sense. Node Sass only turns a single input file into a single output file. Full stop.

you can only pass a input directory via command line

You can only pass an input directory when using --watch. In this case Node Sass watches the whole directory for changes, and compiles the changed files one at a time.

Compiling a whole directory is a feature we could consider for version 5

So why can we not use watch from the JavaScript all then. It still doesn't make sense that you have functionally in the cli that, isnt doable from the script api.
Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Michael Mifsud notifications@github.com Date: 2/4/18  10:48 PM  (GMT-05:00) To: sass/node-sass node-sass@noreply.github.com Cc: Stephen Hendricks stephen.hendricks87@gmail.com, Author author@noreply.github.com Subject: Re: [sass/node-sass] pass directory to render/rendersync (#2241)
It doesnt make sense
It makes perfect sense. Node Sass only turns a single input file into a single output file. Full stop.
you can only pass a input directory via command line
You can only pass an input directory when using --watch. In this case Node Sass watches the whole directory for changes, and compiles the changed files one at a time.
Compiling a whole directory is a feature we could consider for version 5
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/sass/node-sass","title":"sass/node-sass","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/sass/node-sass"}},"updates":{"snippets":[{"icon":"PERSON","message":"@xzyfer in #2241: \u003e It doesnt make sense\r\n\r\nIt makes perfect sense. Node Sass only turns a single input file into a single output file. Full stop.\r\n\r\n\u003e you can only pass a input directory via command line\r\n\r\nYou can only pass an input directory when using --watch. In this case Node Sass watches the whole directory for changes, and compiles the changed files one at a time.\r\n\r\n***\r\n\r\nCompiling a whole directory is a feature we could consider for [version 5][1]\r\n\r\n[1]: https://github.com/sass/node-sass/issues/2111"}],"action":{"name":"View Issue","url":"https://github.com/sass/node-sass/issues/2241#issuecomment-362974616"}}}

repo: sass/node-sass


text:
linux-x64-67_binding.node ?

NPM version (6.4.1):
Node version (11.0.0):
Node Process (
{ http_parser: '2.8.0',
node: '11.0.0',
v8: '7.0.276.28-node.5',
uv: '1.23.2',
zlib: '1.2.11',
ares: '1.14.0',
modules: '67',
nghttp2: '1.34.0',
napi: '3',
openssl: '1.1.0i \n',
icu: '62.1',
unicode: '11.0',
cldr: '33.1',
tz: '2018e' }
):
Node Platform (linux):
Node architecture (x64):
node-sass version (
internal/modules/cjs/loader.js:589
throw err;
^

Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
at Function.Module._load (internal/modules/cjs/loader.js:513:25)
at Module.require (internal/modules/cjs/loader.js:643:17)
at require (internal/modules/cjs/helpers.js:22:18)
at [eval]:1:1
at Script.runInThisContext (vm.js:119:20)
at Object.runInThisContext (vm.js:316:38)
at Object. ([eval]-wrapper:6:22)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at evalScript (internal/bootstrap/node.js:715:27)
):

npm node-sass versions (
└─┬ @angular-devkit/build-angular@0.8.6
└── UNMET OPTIONAL DEPENDENCY node-sass@^4.9.3
):

node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-64_binding.node/v4.9.4/linux-x64-67_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-64_binding.node/v4.9.4/linux-x64-67_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via
  npm config set proxy http://example.com:8080

Duplicate node 11

I have the same problem. Why is this issue closed with "Duplicate node 11"?

Going down with node to version 10 was my solution...

67 is node 11. There is a node 11 support issue already open
On Fri., 26 Oct. 2018, 10:28 pm Gundelino85, notifications@github.com
wrote:

Going down with node to version 10 was my solution...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/2526#issuecomment-433377165,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWBmecZJkaWrqvsr-pQ0xZQayLyRSks5uovHXgaJpZM4X78bi
.


text:
Azure AKS cluster doesn't scale to 0 with enabled autoscaling

I've noticed very strange behaviour of AKS cluster after stop K8s deployment using kustomize transformers
https://go.documentation.sas.com/doc/en/sasadmincdc/v_011/calchkadm/p17xfmmjjkma1dn1b5dcx3e5ejxq.htm
Autoscaling in AKS cluster is on. My environment version is 2021.1 so I can't use cronjobs.
After stopping deployment node pools should scale to zero. Unfortunately they don't scale to zero - all the time they are in the same old state. I've thought that I should wait about 2 hours to look how autoscaler scale my environment to zero but node pools were in old state - 1 instead of 0. Scaling is required to cost optimization.
The only way to scale environment to zero is disable autoscaling and scale manual node pools to zero. When I want to scale environment to old state before stopping i scale node pools to 1 and reenable autoscaling.
There is a code from terraform.tfvars
# AKS config
kubernetes_version         = "1.19.11"
default_nodepool_min_nodes = 1
default_nodepool_vm_type   = "Standard_D8s_v4"

# AKS Node Pools config
node_pools = {
  cas = {
    "machine_type" = "Standard_E8s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 0
    "max_nodes"    = 1
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=cas:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class" = "cas"
    }
  },
  compute = {
    "machine_type" = "Standard_L8s_v2"
    "os_disk_size" = 200
    "min_nodes"    = 0
    "max_nodes"    = 1
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=compute:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class"        = "compute"
      "launcher.sas.com/prepullImage" = "sas-programming-environment"
    }
  },
  connect = {
    "machine_type" = "Standard_E8s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 0
    "max_nodes"    = 1
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=connect:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class"        = "connect"
      "launcher.sas.com/prepullImage" = "sas-programming-environment"
    }
  },
  stateless = {
    "machine_type" = "Standard_E8s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 0
    "max_nodes"    = 2
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=stateless:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class" = "stateless"
    }
  },
  stateful = {
    "machine_type" = "Standard_E8s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 0
    "max_nodes"    = 3
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=stateful:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class" = "stateful"
    }
  }
}

Steps to recreate the behavior
Stop Viya deployment using kustomize transformers ( like in official documentation ).
Autoscaling to 0 doesn't work.
Preferred behaviour
After stopping deployment AKS cluster node pools scale to 0 without manual interaction.

So you have to check each node and see if there are system level deployments/pods/etc running on those nodes. Also did you check the autoscaler pod and watch it's logs to see what/why it was/was not able to autoscale? If you can collect more information that would be helpful.

@Skib4 any luck on verifying your nodes/pods and the scaling issue?

Closing, found this to be working. Asked for more information. No response from customer.


text:
Prioritize and select four user stories for Sprint 1.

Related to #12

The four user stories are:
#10 #11 #12 #14


text:
Home page image update

New home page image with the new font baked in. Ensuring the full text in the image is visibly at various screen aspect ratios is not simple. I ended up mapping out lots of aspect ratios in design and then creating multiple images, and using some Javascript to then load the right image.
My coding approach is probably totally wrong, since I am not very familiar with React. There currently is an ugly effect where the page loads with the default image, and then only refreshes with the correct image. That should be improved so there is no "flash of wrong image".
For the new logo in the header, I simply pasted the SVG code in the Topbar component. There's probably also a more complicated way of doing this, by having it a file somewhere and pulling it in via React magic.
Let's first take a look and see if we all like this image. Then we can fix any code stuff if we do.
🧚♀Check the preview🧚🏼♂

Closing this one. #1085 is a cleaner solution to the same thing.

repo: saving-satoshi/saving-satoshi


text:
test: add tests to avoid regressions

⚠ Depends on this other pull request to be merged first: https://github.com/sawhney17/logseq-automatic-linker/pull/30 ⚠

add Jest and dependencies
use console.debug() instead of log() in most places
disable console.debug() on Jest
format code with Prettier

Looks very cool! Don't have experience myself with testing especially with a logseq plug-in which makes this especially interesting to me. I guess we could run the tests through a GitHub workflow as well for PRs correct?

I guess we could run the tests through a GitHub workflow as well for PRs correct?

Yes.
I don't know how to do that with TypeScript projects that's why I didn't do it here...

Looks very cool! Don't have experience myself with testing especially with a logseq plug-in which makes this especially interesting to me

I tried to isolate the function that actually does the parsing/replacement to use unit tests.
It's a good start, in my opinion.
I also don't know how to mock Logseq if we would need to use it in tests.

I guess we could run the tests through a GitHub workflow as well for PRs correct?

I just added a workflow to run the tests on GitHub Actions.

awesome. Merging now!


text:
https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Ftouch.www.linkedin.com%2Fsms%2Fdownloadapp

New Issue Checklist (tick off like this: [x])

[x] I checked existing issues (open and closed) for possible duplicates
[x] I can reproduce the problem on the latest stable version (not nightly!)
[x] The issue is not about adding entries to the default blacklist

What is your browser?

[x] Firefox
[ ] Chrome

What is your operating system?

[ ] Linux
[ ] Mac
[x] Windows

Description (please include examples/screenshots where applicable)
URL https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Ftouch.www.linkedin.com%2Fsms%2Fdownloadapp does not skip redirect.
What would be the reason?

I was confused.
Sorry pal. Closing.
Cheers

repo: sblask/webextension-skip-redirect


text:
Mobile layout

The design of the mobile layout should be optimized
ref: Ticket 69

seems resolved (see #75)

repo: sbsev/site


text:
Stopping Play does not release Slick's connection pool

steps
sbt run a Play 2.4 app using Slick 3.1
Ctrl-d and start it again or edit a source file so it auto-recompiles & starts
problem
The connection pool is now twice as large as it should be (i.e. it appears not to have been released when play was stopped and a new one was created when play was restarted).  Repeat and the connection pool continues to grow until eventually the number of allowed connections to the database is exceeded.  Exiting and restarting sbt clears the connection pool as expected.
expectation
Connection pool is cleared on each restart.
notes

Hi @lasimon. I'm a dev on the Play Framework project and I'd guess this is probably not an sbt issue. If you're using the Slick plugin for Play can you raise an issue over here: https://github.com/playframework/play-slick. If you're using Slick without a plugin then you need to remember to clean up your Slick resources each time the application stops. See: https://www.playframework.com/documentation/2.5.x/ScalaDependencyInjection#Stopping/cleaning-up. If you have more issues the first thing to do is post a message on the Play mailing list. Then if it still seems like a Play bug you can raise a Play issue: https://github.com/playframework/playframework.

@richdougherty Thanks.  Yes play-slick looks like a more likely culprit.  We'll try switching from play-slick 1.1.0 to 1.1.1 and see if that fixes it.

authors: lasimon richdougherty

repo: sbt/sbt


text:
Release 1.4.0-M2

[ ] IO - https://github.com/sbt/io/releases/tag/v1.4.0-M7
[ ] LM - https://github.com/sbt/librarymanagement/releases/tag/v1.4.0-M2
[ ] Zinc - https://github.com/sbt/zinc/releases/tag/v1.4.0-M10
[ ] Util
[ ] sbtn
[ ] sbt
[ ] launcher package
[ ] documentations

I guess this can be closed as RC1 has been released?
http://eed3si9n.com/sbt-1.4.0-beta

Yes


text:
sbt --client ignores other flags or SBT_OPTS

steps

install official sbt launcher from GitHub releases
run sbt --client with any other CLI flags

problem

Other CLI flags are ignored. Examples:
►  ./sbt/bin/sbt --error --no-colors --client 'print version'
►  SBT_OPTS='-Dsbt.log.noformat=true' ./sbt/bin/sbt --client 'print version'
►  env SBT_OPTS='-Dsbt.color=false' ./sbt/bin/sbt --client 'print version'

All above commands print with colors ignoring any attempts to disable it, here is a screenshot:

You can also see that the --error (or -error) flag gets ignored, so I get the undesired logging.
I've tried passing arguments in different order and via SBT_OPTS, but it seems that the launcher just ignores anything when there is --client flag. Same happens with the sbtn native client.
expectation

In this concrete use case I would like to be able to print the version setting value without any logs or color codes.
In general, I think sbt should treat arguments in the client mode same way as in the batch mode:

notes
►  ./sbt/bin/sbt -version
sbt version in this project: 1.5.0
sbt script version: 1.5.0

I know that the launcher script treats "client mode" specially, but I think this functionality is essential for using sbt in scripts and integrating with other CLI tools. Running sbt in batch mode several times is too slow.

This bug looks very similar to https://github.com/sbt/sbt/issues/6476

First discovery: --client is consumed by the sbt script whereas -client is consumed by the java process. It seems things are working better with -client:

I think --client is sbtn but -client might be the older thin client, which is a bug on its own - https://github.com/sbt/sbt/issues/6078

Trying to summarize the current state of how to pass options to sbt.
There are currently 3 entry-points to start sbt:

the sbt script: the sbt bash script
the launch jar: java -jar <launch-jar>
sbtn: the native client (built with graalvm)

the launch jar
Most of the launch jar options are system properties: -Dkey=val.
The few rare exceptions are --client, --bsp, --detach-stdio...
But --no-colors or --ivy, for instance, are not known by the launch jar.
The SBT_OPTS and JAVA_OPTS env vars, also the .jvmopts and .sbtopts are not read by the launch jar.
sbt script
The sbt script has its own list of options:

some are translated to java options: --mem, -jvm-debug...
others are translated to sbt system properties:

--no-colors is translated to -Dsbt.log.noformat=true
--ivy <path> is translated to -Dsbt.ivy.home=<path>
...

It reads the SBT_OPTS and JAVA_OPTS env vars, also the .jvmopts and .sbtopts files and passes their content to the java process.
sbt --client is kind of an exception here since it just translate to sbtn with no preprocessing, it ignores the env vars and the config files.
sbtn
sbtn is a native version of the sbt client jar. It has more or less the same options than the launch jar. It does not support the SBT_OPTS and JAVA_OPTS env vars, nor the .jvmopts and .sbtopts files.
But sbtn can invoke the sbt script to start the process.
To make the matter worse, some options are only useful when used by the server and others, by the client.
For instance -Dsbt.log.noformat=true must be taken into account by the client, not by the server.
So when I runsbtn --no-colors:

client side: sbtn doesn't know about --no-colors and passes it to the server
server side: the sbt script receives --no-colors and translates it into -Dsbt.log.noformat=true but it has no effect
=> The colors are printed by the client.

In short, the problem is that it is very hard to configure both the client and the server with sbtn.
Also #6476 shows that it is impossible to configure the server when started by BSP because the env-vars and config files are totally ignored.
My proposition to make this better:

the options that are passed to sbtn (or sbt -client) should not be passed to the server
the NetworkClient (used by sbtn and the BSP client) should read the env-vars and the config files when the server is directly started with the launch jar.

This will not solve all the issues, but at least the server will be consistently configured by the SBT_OPTS and JAVA_OPTS env vars and by the .jvmopts and .sbtopts files.
@eed3si9n can I have your take on this?

Would also like to add that it seems that when sbt is run in thin client mode, ALL environment variables appear to be ignored. For example this is causing issues with coveralls/github actions because the github secret token (i.e. secrets.GITHUB_TOKEN) cannot even be passed in properly


text:
Merge 0.13.9 back into 0.13

@eed3si9n Quick review of your last 0.13.9 commit coming back into master.

@eed3si9n this is the mvn-local failure

so LGTM?


text:
Addresses #4206 - Introduces fgRun and fgRunMain

[x] I've read the CONTRIBUTING guidelines

Fixes #4206

adds fgRun to work like the run command in 0.13
adds fgRunMain to work like the runMain command in 0.13

Hi @agaro1121,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:
http://www.lightbend.com/contribute/cla

@agaro1121 Thanks for the contribution. Please comment when you signed the CLA.

Happy to contribute @eed3si9n !
I signed the CLA

@agaro1121 We made a survey form to collect feedback on the contribution process. Please fill it out when get you get a minute. https://goo.gl/forms/LDPlTl9Wso7YwEri2


text:
don't want to distribute none-public map

The map was locked and none-public upload
But it is public!

Any map is distributed the moment it is being published on Battle.net - please read the custom games policy: https://www.blizzard.com/en-us/legal/2749df07-2b53-4990-b75e-a7cb3610318b/custom-game-acceptable-use-policy
sc2arcade.com is not distributing maps, Blizzard is. I'm not in power of that. The only difference is that website makes it easier to browse the maps, and also find maps which are normally unlisted in the game - aka private.
Furthermore the website doesn't process published archive file (.s2ma) - if the file was published as locked, then it'll stay as that. Available download links point to Blizzard servers. The game client uses the same links to download map related files to local cache - the moment the map is viewed. Then tools such as s2mdec can be used to obtain archive file - regardless of map's visibility settings (public/private).
However, any map author has ability to disable these links, if their presence on sc2arcade.com is still perceived as an issue.
In order to do so, one needs to authorize on the website using Battle.net account.

Then proceed to settings, and untick all options that mention "download".

I hope that clears things up. If not, please reopen ticket, and elaborate further about your problem.

Any map is distributed the moment it is being published on Battle.net - please read the custom games policy: https://www.blizzard.com/en-us/legal/2749df07-2b53-4990-b75e-a7cb3610318b/custom-game-acceptable-use-policy
sc2arcade.com is not distributing maps, Blizzard is. I'm not in power of that. The only difference is that website makes it easier to browse the maps, and also find maps which are normally unlisted in the game - aka private.
Furthermore the website doesn't process published archive file (.s2ma) - if the file was published as locked, then it'll stay as that. Available download links point to Blizzard servers. The game client uses the same links to download map related files to local cache - the moment the map is viewed. Then tools such as s2mdec can be used to obtain archive file - regardless of map's visibility settings (public/private).
However, any map author has ability to disable these links, if their presence on sc2arcade.com is still perceived as an issue.
In order to do so, one needs to authorize on the website using Battle.net account.

Then proceed to settings, and untick all options that mention "download".

I hope that clears things up. If not, please reopen ticket, and elaborate further about your problem.


text:
Fix #1870: Add js.constructorOf[JSClass] to retrieve its constructor.

The method js.constructorOf[JSClass] returns the JavaScript constructor function for the class JSClass. The latter must be a class (not trait nor object) extending js.Any. It may be a native JS class or a Scala.js-defined JS class. The restrictions on what types can be used are enforced at compile-time.

Review by @nicolasstucki

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2147/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2773/
Test FAILed.

LGTM

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2148/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2774/
Test PASSed.

authors: nicolasstucki scala-jenkins sjrd

repo: scala-js/scala-js


text:
Make js.Dynamic.global user-defined again.

Instead of it being a primitive, it can simply be a user-defined native JS object annotated with @JSGlobalScope.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/4058/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/5376/
Test PASSed.

Please add a test that selects x on js.Dynamic.global :)

It definitely won't work in 2.10. But I don't think we should care. A global variable named x is bad enough. Combine that with still using 2.10 to access it, and you're beyond redemption.

Combine that with still using 2.10 to access it, and you're beyond redemption.

Agreed. However, I do not like it at all to set a precedent that essentially says: "If you use a large enough combination of not recommended but officially supported stuff it might not work anyways."
I would feel more comfortable with officially dropping 2.10 support in 1.0.x (IIRC there have been discussions about that, although I'm not sure the maintenance burden is so high).

It would definitely be an easier decision to make if we dropped 2.10. I think we should probably do it, but that's a discussion for another day.
In this precise case, actually I would argue that we should drop the x workaround for js.Dynamic altogether, not only for global. Yes, that means some 2.10 code won't work anymore. But if we look at this workaround, we were really fighting a usability issue of Scala.js for dead simple code, at a time where 2.10 was all there was. Nowadays, virtually everyone using 2.10 with Scala.js is a library maintainer, and in libraries you're unlikely to access a very specific field named x without static typing. And even if you are, well you can always fall back on selectDynamic("x")/applyDynamic("x")(...).
The x workaround doesn't pull its weight anymore, I think.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/4073/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/5392/
Test PASSed.

Let's leave it like this. Tough luck 2.10 users :)

authors: gzm0 scala-jenkins sjrd


text:
Add support for SN 0.4.1 and 0.4.2

Add support for 0.4.0 and 0.4.1 by values defined in build.sbt, the idea being that after a release, 0.4.0 specific code will be removed and shared and 0.4.1 will be merged.
CLI arguments are parsed via case-app dependency and an additional NativeConfig generation phase is introduced.
Includes initial project definition and testing infrastructure. Testing is comprised of scalatest unit tests and sbt-provided scripted tests acting as integration tests.

I think there are still some problems with WIndows CI (or I incorrectly rebased...). I'll fix those asap

repo: scala-native/scala-native-cli


text:
Switch http client from apache-http to asynchttpclient

this is to fix #144

Hey, do you have plans to cut a new release soon?
I don't want to put you pressure, but since I need this change I'm trying to figure out if i should have a temporary private fork for this meanwhile.
Thanks in advance!

The release is in progress: https://github.com/scalacenter/sbt-dependency-submission/actions/runs/6860820101

repo: scalacenter/sbt-dependency-submission


text:
fix(hono-api-reference): move api-reference to devDependency

We had included @scalar/api-reference as a dependency but the hono package actually uses the cdn standalone. This moves it to a devDependency for the types.
from #2649

Are we exposing the ReferenceConfiguration type though? Then we’d need to keep the package in the dependencies.

@hanspagel Ah you are right, but it doesn't make sense to add a giant dependency for just a type. Should we just copy paste it over?
Should we copy it over?

Yes, maybe we need @scalar/types, which could have the few types that we really want to expose and promote.
Sounds easier than it is though. Just as an example ReferenceConfiguration also includes other types like AuthenticationState and other complex stuff. :)
I’d like to work on it, but it’s still background processing in my mind.

Yea actually a lot of the types already exist inside of oas-utils including auth. we can just move them into scalar/types

Closed in favour of #2820

authors: amritk hanspagel

repo: scalar/scalar


text:
Scala 2.13.0-M5 + 3.0.6-SNAP3 + fork in Test := true shows lots of stdout messages

Thank you for the release. After upgrading to Scala 2.13.0-M5 + ScalaTest 3.0.6-SNAP3, ScalaTest started showing lots of the following stdout messages. The situation occurs in my projects which enab le fork in Test := true in build.sbt. You can easily reproduce the situation by having fork in Test := true in build.sbt.
No effect on test results. Just showing lots of stdout messages.
Reporter completed abruptly with an exception after receiving event: TestSucceeded(Ordinal(0, 3),HelloSpec,example.scalate.HelloSpec,Some(example.scalate.HelloSpec),should work fine with scalate,should work fine with scalate,Vector(),Some(300),Some(IndentedText(- should work fine with scalate,should work fine with scalate,0)),Some(LineInFile(23,HelloSpec.scala,Some(Please set the environment variable SCALACTIC_FILL_FILE_PATHNAMES to yes at compile time to enable this feature.))),Some(example.scalate.HelloSpec),None,pool-1-thread-1-ScalaTest-running-HelloSpec,1539507465483).
java.net.SocketException: Broken pipe (Write failed)
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1877)
	at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1786)
	at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1286)
	at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1231)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1427)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
	at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1577)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:351)
	at org.scalatest.tools.SocketReporter.apply(SocketReporter.scala:31)
	at org.scalatest.DispatchReporter$Propagator.$anonfun$run$10(DispatchReporter.scala:249)
	at org.scalatest.DispatchReporter$Propagator.$anonfun$run$10$adapted(DispatchReporter.scala:248)
	at scala.collection.immutable.List.foreach(List.scala:302)
	at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:248)
	at java.lang.Thread.run(Thread.java:748)

I've noticed this as well

Is there any workaround? this is blocking Cats from getting on the M5 train.
I tried run -CNCXEHLOPQRM cats.tests.NullReporter in which cats.tests.NullReporter does nothing on any event, still same error. And we can't run tests with fork in test to false, it OOM on travis.

Hi all, I am looking into this now, will see if I can find the cause.

FYI: I released 3.0.6-SNAP5, please try to see if it fixes this issue.
Thanks.

fixes it for me!

authors: SethTisue cheeseng kailuowang seratch

repo: scalatest/scalatest


text:
feat(tooltip): dymanic position

Summary
Type

Enhancement

Summarise concisely:
What is expected?
To allow placement auto which will positionnante tooltip depending on its size and window size.
The goal is to always display tooltip and avoid overflow. In the worst case scenario if the tooltip is too big for any position, it will be displayed on top.
Placement is computed again when window size changes or when user scroll.
I also made tiny change in CSS: to use transform3d for using GPU while rendering and increase performance.
Relevant logs and/or screenshots
https://user-images.githubusercontent.com/15812968/189650226-e769b335-7726-41f4-ae48-35500a86dbd6.mov

I don't think it's due to this PR, but the animation for max width should be left-right then right-left, and not left-right then top-bottom
https://user-images.githubusercontent.com/43268759/189685210-0296f490-d12d-4957-b191-70131100febc.mov

@QuiiBz How to do reproduce this issue? When I try the tooltip goes on the top

authors: QuiiBz matthprost

repo: scaleway/scaleway-ui