Error in Combination with Whitenoise in Django

Hi, I'm trying to use this package in combination with whitenoise. every time I launch my app the browser always refuses to load my static files with the error "filed to find a valid digest in the 'integrity' attribute for resource ". so far I have tested this package on 5 of my CSS files, 1 bootstrap.css + 3 fontawesome.css + 1 my-site.css. Out of those 5 files, only bootstrap.css is loaded by the browser, the remaining are refused. After a little bit of investigation, I found that the integrity attribute's value outputted in the HTML is different from the one being evaluated by the browser. For example,
index.html
<link crossorigin="anonymous" href="/static/home/css/my-site.css" integrity="sha512-GG4sC/4GQsd1r0sXkr0I6cwTZCB1upbMybxD3agscaBX8BOX9IQQyfOqZfX//Z49t2e0u5NbbnBDO6ABGnCtUQ==" rel="stylesheet" type="text/css"/>
<link crossorigin="anonymous" href="/static/fonts/fontawesome-all.min.css" integrity="sha512-HHwKq7saKrGPCHieLofpt4AsI/OYFTVsra9mBimKDJeM//F4yP35Tms3Tj+QetdJgcPxedlzWC2w2qDSdGMujw==" rel="stylesheet" type="text/css"/>

console log
<IP_ADDRESS>/:1 Failed to find a valid digest in the 'integrity' attribute for resource 'http://<IP_ADDRESS>:8000/static/home/css/my-site.css' with computed SHA-512 integrity 'VQzFTxndLuJU0O201uJZbuSKtlF6RmM/G2LieKu+UB2XM36D4p6lFSK9CRqXb9S/FVLmelzW5q/te2Rq/J2oGw=='. The resource has been blocked.
<IP_ADDRESS>/:1 filed to find a valid digest in the 'integrity' attribute for resource 'http://<IP_ADDRESS>:8000/static/fonts/fontawesome-all.min.css' with computed SHA-512 integrity '0FCInaWP5g0YTtgrftFRJrLPwUPsAwGLYAEbhhmOyleGWfxiseFAuV4ifxaekiQ1luaRZ7amW8fPIo96ijocUQ=='. The resource has been blocked.

What I've tried to solve the issue:

Clear browser data
Forced refresh (Ctrl+F5)
Disable my browser extensions
Removing third-party javascript, I was suspecting one of the scripts altering my CSS files
I also add a print statement in your calculate_integrity function, the values are the same as the values outputted in the HTML

The only solution that actually fixed my problem is removing whitenoise package. Yet in your documentation you say
"Does this work with whitenoise or alike?"
Yes. django-sri outputs the static file URL in the same way the builtin static template tag does. This means the correct cachebusted URLs are output.

When using a manifest STATICFILES_STORAGE, django-sri will automatically retrieve the hashed and post-processed file as opposed to the original.

Here is my setting.py
DEBUG = True
INSTALLED_APPS = [
    .....
    'whitenoise.runserver_nostatic', #for local development
    'django.contrib.staticfiles',
    .....
    'sri',
]

MIDDLEWARE = ['django.middleware.security.SecurityMiddleware',
              'whitenoise.middleware.WhiteNoiseMiddleware',
              .......
              ]

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = "/static/"

STATICFILES_DIRS = [
    BASE_DIR / "static",
]

MEDIA_URL = 'media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

STORAGES = {
    "default": {
        "BACKEND": "django.core.files.storage.FileSystemStorage",
    },
    'staticfiles': {
        "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
    }
}

USE_SRI = True

Is there anything I did wrong?

Closing due to lack of information.


Anomalies warning instead of log when data not available yet

This PR updates the anomalies task to log a warning instead of an error when the data is not available yet

Already fixed but not deployed, closing this PR


Metrics library leaks memory

Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.
Sarama Version:46dabe0f34a162d428640a0e9714eea9079e7ee2
Kafka Version: kafka_2.11-<IP_ADDRESS>.tgz
Go Version:1.8
Configuration
What configuration values are you using for Sarama and Kafka?
Logs
When filing an issue please provide logs from Sarama and Kafka if at all
possible. You can set sarama.Logger to a log.Logger to capture Sarama debug
output.
Problem Description
the Problem is metrics lib. the function is below.
When call Broker.Open  cause new StandardMeter,but when Broker.Close does't destory it.
func NewMeter() Meter {
if UseNilMetrics {
return NilMeter{}
}
m := newStandardMeter()
arbiter.Lock()
defer arbiter.Unlock()
arbiter.meters = append(arbiter.meters, m)
if !arbiter.started {
arbiter.started = true
go arbiter.tick()
}
return m
}

The meter abstraction rely on a single goroutine for computing rates instead of one per meter. This means that each meter gets reference by the meterArbitrer (singleton that never gets GCed 😢) and never gets garbage collected indeed, see:
https://github.com/rcrowley/go-metrics/blob/f770e6f5e91a8770cecee02d5d3f7c00b023b4df/meter.go#L230
This would lead to memory leaks every time a broker is close and opened with a different broker id otherwise the meter would be reused (not sure how often this happens and probably depends on the application) but it does not seem that it is possible in go-metrics to unregister the meter and get remove that reference removed (even if we never unregister the metrics in Sarama)...
Note that we do not use timer I believe but that would result in the same issue as the StandardTimer struct uses a meter under the hood...
Looks like this needs to be fixed in go-metrics first and we would also have to use Registry#Unregister(string) or something, see:

https://github.com/rcrowley/go-metrics/issues/163
https://github.com/rcrowley/go-metrics/pull/197

Before go-metircs solving this leak problem, i think disable metrics collection (metrics.UseNilMetrics=false) will be an workaround

Before go-metircs solving this leak problem, i think disable metrics collection metrics.UseNilMetrics=truewill be an workaround

Me too. When frequence Call Client.GetOffset and Client.Close, Cause Memory Leak. Because Client.GetOffset  will call Broker.Open.

Me too. When frequence Call Client.GetOffset and Client.Close, Cause Memory Leak. Because Client.GetOffset will call Broker.Open.

@lday0321 You can also workaround that memory leak without requiring changes upstream. Disabling the metrics by default to re-enable them later on sounds confusing to me against the end user.
@soar-zhengjian I believe that would be the case if you were to "reopen" a Broker with a different broker id every time.
Do you have some numbers about that amount of memory leaked in your application over time related to that use case?

@slaunay  according to my test, after "reopen" Broker  778827 times, the pprof shows that the memory leak will be 939.05MB
Entering interactive mode (type "help" for commands) (pprof) top 20 sarama 939.05MB of 949.56MB total (98.89%) Dropped 205 nodes (cum <= 4.75MB)       flat  flat%   sum%        cum   cum%   486.54MB 51.24% 51.24%   912.56MB 96.10%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.newStandardMeter   150.51MB 15.85% 67.09%   150.51MB 15.85%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewEWMA1   140.01MB 14.74% 81.83%   140.01MB 14.74%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewEWMA15   135.51MB 14.27% 96.10%   135.51MB 14.27%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewEWMA5    26.48MB  2.79% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewMeter          0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/Shopify/sarama.(*Broker).Open.func1          0     0% 98.89%   612.02MB 64.45%  github.com/ffan/gafka/vendor/github.com/Shopify/sarama.getOrRegisterBrokerMeter          0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/Shopify/sarama.withRecover          0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.(*StandardRegistry).GetOrRegister          0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.GetOrRegisterMeter          0     0% 98.89%   939.05MB 98.89%  reflect.Value.Call          0     0% 98.89%   939.05MB 98.89%  reflect.Value.call          0     0% 98.89%   939.05MB 98.89%  runtime.call32          0     0% 98.89%   939.05MB 98.89%  runtime.goexit

@slaunay according to my test, after "reopen" Broker 778827 times, the pprof shows that the memory leak will be 939.05MB
Entering interactive mode (type "help" for commands)
(pprof) top 20 sarama
939.05MB of 949.56MB total (98.89%)
Dropped 205 nodes (cum <= 4.75MB)
      flat  flat%   sum%        cum   cum%
  486.54MB 51.24% 51.24%   912.56MB 96.10%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.newStandardMeter
  150.51MB 15.85% 67.09%   150.51MB 15.85%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewEWMA1
  140.01MB 14.74% 81.83%   140.01MB 14.74%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewEWMA15
  135.51MB 14.27% 96.10%   135.51MB 14.27%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewEWMA5
   26.48MB  2.79% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.NewMeter
         0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/Shopify/sarama.(*Broker).Open.func1
         0     0% 98.89%   612.02MB 64.45%  github.com/ffan/gafka/vendor/github.com/Shopify/sarama.getOrRegisterBrokerMeter
         0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/Shopify/sarama.withRecover
         0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.(*StandardRegistry).GetOrRegister
         0     0% 98.89%   939.05MB 98.89%  github.com/ffan/gafka/vendor/github.com/rcrowley/go-metrics.GetOrRegisterMeter
         0     0% 98.89%   939.05MB 98.89%  reflect.Value.Call
         0     0% 98.89%   939.05MB 98.89%  reflect.Value.call
         0     0% 98.89%   939.05MB 98.89%  runtime.call32
         0     0% 98.89%   939.05MB 98.89%  runtime.goexit

@slaunay according to my test, after "reopen" Broker 778827 times, the pprof shows that the memory leak will be 939.05MB  (almost 1k/time)
Entering interactive mode (type "help" for commands)
(pprof) top 20 sarama
939.05MB of 949.56MB total (98.89%)
Dropped 205 nodes (cum <= 4.75MB)
      flat  flat%   sum%        cum   cum%
  486.54MB 51.24% 51.24%   912.56MB 96.10%  github.com/lday0321/myProj/vendor/github.com/rcrowley/go-metrics.newStandardMeter
  150.51MB 15.85% 67.09%   150.51MB 15.85%  github.com/lday0321/myProj/vendor/github.com/rcrowley/go-metrics.NewEWMA1
  140.01MB 14.74% 81.83%   140.01MB 14.74%  github.com/lday0321/myProj/vendor/github.com/rcrowley/go-metrics.NewEWMA15
  135.51MB 14.27% 96.10%   135.51MB 14.27%  github.com/lday0321/myProj/vendor/github.com/rcrowley/go-metrics.NewEWMA5
   26.48MB  2.79% 98.89%   939.05MB 98.89%  github.com/lday0321/myProj/vendor/github.com/rcrowley/go-metrics.NewMeter
         0     0% 98.89%   939.05MB 98.89%  github.com/lday0321/myProj/vendor/github.com/Shopify/sarama.(*Broker).Open.func1
         0     0% 98.89%   612.02MB 64.45%  github.com/lday0321/myProj/vendor/github.com/Shopify/sarama.getOrRegisterBrokerMeter
         0     0% 98.89%   939.05MB 98.89%  github.com/lday0321/myProj/vendor/github.com/Shopify/sarama.withRecover
         0     0% 98.89%   939.05MB 98.89%  github.com/lday0321/myProj/vendor/github.com/rcrowley/go-metrics.(*StandardRegistry).GetOrRegister
         0     0% 98.89%   939.05MB 98.89%  github.com/lday0321/myProj/vendor/github.com/rcrowley/go-metrics.GetOrRegisterMeter
         0     0% 98.89%   939.05MB 98.89%  reflect.Value.Call
         0     0% 98.89%   939.05MB 98.89%  reflect.Value.call
         0     0% 98.89%   939.05MB 98.89%  runtime.call32
         0     0% 98.89%   939.05MB 98.89%  runtime.goexit

Thanks for providing those statistics @lday0321.
I believe we use 4 meters shared among all brokers and 4 meters specific to each broker, this means the leak per meter would be around ~100B (828/8 B) for a single broker cluster, probably less for multiple brokers cluster.
Are you allocating a new Client that references a new Config and transitively a new metrics.Registry for each iteration in your use/test case?

Yes, i use a new client each time. Actually, i use the sarama-cluster's NewConsumer method

You should be able to mostly avoid the memory leak by reusing either your own cluster.Client struct or cluster.Config struct as it embeds the sarama.Config struct that will reference a single metrics.Registry rather than creating new one each time.
Using a single Client could also speed up your application (cached metadata, already established connection to brokers, ...) but can also bring side effects depending on your use case.
Hopefully the memory leak can be fixed in the metrics library soon as the maintainer recently shown interest in rcrowley/go-metrics#197 😀.

@slaunay thanks for your suggestion! Is it still a good practice of using single Client if i need to setup thousands of consumers for thousands of topics? or any suggestions for this kind of case?

@lday0321 I think reusing cluster.Client and cluster.Config as much as possible make sense but if you have thousands of consumers and topics you probably do not want to do that in a single Go application.
That being if you have that much topics in a single cluster then Apache Kafka might not be the best technology, an AMQP broker like RabbitMQ could be a better fit depending on your use case.

(the PR for being able to stop unused meters/counters has been merged https://github.com/rcrowley/go-metrics/pull/206)

Fixed (or enough, anyway) by #991.


inconsistent use of indent and spaces

Description
What steps will reproduce the problem?

when i entered code in the editor, then it is showing the above error. please help to find out the reason. i thought that my code went wrong but nothing found wrong in the code.
Versions

Spyder version: 3.3.4
Python version: 3.7.1
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Windows 8.1

Dependencies
pyflakes >=0.6.0  :  2.0.0 (OK)
pycodestyle >=2.3 :  2.4.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.8.2 (OK)
rope >=0.9.4      :  0.11.0 (OK)
jedi >=0.9.0      :  0.13.2 (OK)
nbconvert >=4.0   :  5.4.0 (OK)
pandas >=0.13.1   :  0.23.4 (OK)
numpy >=1.7       :  1.15.4 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.29.2 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
IPython >=4.0     :  7.2.0 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
pylint >=0.25     :  2.2.2 (OK)

Don't worry about this, it's just a warning and it's automatically fixed by Spyder. The thing is you can't have tabs and spaces mixed in a source code file because that confuses Python indentation rules.


Typographical Error In The Page

[The first paragraph of the docs on this page, it reads "In the end, you'll have a project the uses the Basic process for work tracking." which contains a typographical error. I believe the appropriate edition would be "In the end, you'll have a project that uses the Basic process for work tracking."]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6c985016-9453-7c7f-bbbd-39252037b807
Version Independent ID: ea8f7d65-dc88-d11d-4358-ac7b31a20827
Content: Start using Azure Boards - Azure Boards
Content Source: docs/boards/get-started/sign-up-invite-teammates.md
Product: devops
Technology: devops-new-user
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@usafowose - thank you for the correction. Updating the article now.


Pod Controller calls PlayerGiveSWEP without table argument

When i use Pod Controller, addons that is using table argiment will crack.
Addon will throw error manually or Lua parser will throw error when addon will try to use nil as table.
https://github.com/wiremod/wire/blob/master/lua/entities/gmod_wire_pod.lua#L532
http://wiki.garrysmod.com/page/SANDBOX/PlayerGiveSWEP
[Wiremod] lua/entities/gmod_wire_pod.lua:532: Argument is not a table!
  1. error - [C]:-1
   2. Assert - [VLL: dpp - dpp/sh_init.lua]:1218
    3. fn - [VLL: dpp - dpp/sv_hooks.lua]:599
     4. Run - addons/ulysses/lua/ulib/shared/hook.lua:110
      5. unknown - lua/entities/gmod_wire_pod.lua:532

[DPP] ERROR: Argument is not a table!
TO USERS: THIS IS A BUG IN lua/entities/gmod_wire_pod.lua:532

As you are the author of dpp, do you really need to show an error if that table is nil ? If you absolutely want the model of the SWEP, you can check inside hook PlayerSpawnedSWEP. This is the hook where you should call logSpawn anyway.

PlayerSpawnedSWEP is called only if player spawns swep using toolgun. And you are right, i really shouldnt throw errors if table is nil. But still, it needs to have table argument because wiki says so. Easy way to do it: call hook with weapons.Get() function

Oops sorry. Is wiremod the only concerned addon? By the way there is the same problem here:
https://github.com/wiremod/wire/blob/c25f642c3bec03261b2ba7354000f21fdd3bb095/lua/entities/gmod_wire_las_receiver.lua#L33

You are correct that this is a problem in wiremod,  but it has been that way for many,  many years now and no one has had any issues that we know of. Still, it's an easy fix so I'll take a look in about 2 hours

There. @roboderpy please try the above pull request and see if it fixes the problem. I'll merge if it works

@Divran Also the ones here and here

@bigdogmat the second of those links was already done. Fixing the first now. See the PR for updates

I can say that it should work without any test. It is safe to merge that code.


Close enough to points

Trying to merge the close_enough code with main. I had added in my exploring code but I am removing that because I believe TC integrated that into main already. (the close_enough code hasn't been run in ROS I'm not able to run the simulation on my laptop currently).

Thanks Leo, I'll run a simulation and share the results here shortly.


Resolve optional attribute with response

Problem
When using optional and error response in YAML and there is no attribute, the test fails. See issue below:
https://github.com/project-chip/connectedhomeip/issues/16303
Change overview

Handle optional attribute before checking for error status.

Testing

Removed attribute in all clusters app.
Ran test with expected failure response.

Thanks @krypton36 for the fast resolution.


Run only one *.spec.js scenario ?

Hi,
I would like to know if is it possible to run easily one scenerio from a specific *.spec.js file ?

you can use describe.only for the file that you want to run. And you can also use detox test --reuse if you do not need the app to be reinstalled. This trick saved me a lot of time.


Google Palm API version?

which API is used for Google Palm and Google Palm Chat?

Please see API details where we list all this info. We used text-bison-001 model, and for Palm Chat we used chat-bison-001. There are now newer models  'in preview' in Vertex. When i tested them the chat model was much improved and at around 90%, comparable to Palm 2. But the other model was barely improved, and they are still at the bottom of the leader board (but better than the 30% hallucination rate previously). We will be updating the leaderboard with these newer numbers soon, as we have a person working on it.


Update useQuery.md doc

Was missing the placeholderData field on the useQuery options signature... but its listed in detail on the latter part of the page.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0-alpha.12 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add support for HTML

HTML is a markup language and therefore cannot be compiled. Don't forget to check out existing issues (open and closed) before posting one yourself.
Closing as this is a repeat of #330.


[#109073500] bosh-init testing

What
Story: https://www.pivotaltracker.com/n/projects/1275640/stories/109073500

Rspec boiler plate for all containers
Rspec tests for bosh-init
Travis configuration

How to review
Locally
Requirements:

Run docker locally
Set docker environment variables if necessary. Example with docker-machine run:

eval "$(docker-machine env <machine>)"`

Run

docker build -t bosh-init .
bundle install
rake

Travis

Fork repo
Create PR
Check for build result

Who can review
Anyone but @saliceti or @combor

I had some issues when I attempted to test this on an Ubuntu 12.04 host, but perhaps this was some oddness with Docker - It all worked fine from a fresh Linux Mint 17 installation. Merging.


Unable to use package with testEnvironment in jest config

Hi,
Im using your package to fix the issue described here:
https://github.com/testing-library/dom-testing-library/releases/tag/v7.0.0
If I use the library like this all is grate"
"test": "react-scripts test --env=jest-environment-jsdom-sixteen"
How ever when trying to include it in the jest config as so:
"jest": {
    "testEnvironment": "jest-environment-jsdom-sixteen"
  },

I see no effect as if the testEnvironment is ignored.
And I get the same error as described in the link to the dom-testing-library release.
Thanks :)

You might need to add react-scripts test -- --config jest.config.js to do it that way.
https://stackoverflow.com/a/61468737/1386245

Issue with react-scripts I think


Incompatible with AssemblyScript 0.20.13

When I try to build with the latest AssemblyScript I get some weird "not found" errors:
><EMAIL_ADDRESS>build
> asc assembly/index.ts -b build/protocol-tmp.wasm --use abort=assembly/index/abort --optimize

ERROR TS6054: File<EMAIL_ADDRESS>not found.

 import { register } from '@wapc/as-guest'
                          ~~~~~~~~~~~~~~~~
 in assembly/module.ts(52,26)

ERROR TS6054: File<EMAIL_ADDRESS>not found.

 import { Decoder, Writer, Encoder, Sizer, Codec } from '@wapc/as-msgpack'
                                                        ~~~~~~~~~~~~~~~~~~
 in assembly/module.ts(1,56)

FAILURE 2 parse error(s)

Hmm it is releated to how AssemblyScript now does modules resolution and basically requires to append /assembly to the package names now: https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.20.0


Changed title character minimum from 10 to 8.

Did the Kijiji site change the minimum character requirement in ad titles from 10 down to 8? Was this when they did their big new ad posting interface change?

From my testing, it seems like 8 characters titles work fine. Unless you object, @jackm  I'll approve this request

I discovered this change by manually creating an ad. Perhaps the character limit depends on the category you post in. For now, this limit seems to work.

Yes it would appear the new minimum length is 10 characters. The new ad posting UI even shows a counter counting down from 8 when entering in an ad title.

@jack did you mean the new minimum length is 10 letters?

On Aug 21, 2018, at 5:48 PM, Jack<EMAIL_ADDRESS>wrote:
Yes it would appear the new minimum length is 10 characters. The new ad posting UI even shows a counter counting down from 8 when entering in an ad title.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Typo, I meant the new minimum length is indeed 8 characters, no longer 10.


Jest Error Message - TypeError: Cannot read property 'lockToPortrait' of undefined

1.FAIL  tests\index.android.js

TypeError: Cannot read property 'lockToPortrait' of undefined
2.tests\index.js
it("renders Regular ActionSheet", () => {
renderer.create(

)
})
3.index.js
export default class Root extends Component {
componentWillMount() {
Orientation.lockToPortrait()
}
render() {
return (

);
}
};

You might use mock to fake RN-Orientation for jest. This can be done using a Test-Config file:
package json:
...
  "jest": {
    "setupFiles": [
      "./Tests/Setup"
    ]
}
...

./Tests/Setup.js:
jest
.mock('react-native-orientation', () => {
  return { lockToPortrait: () => {} }
})

This way, RN-Orientation isn't really included in any jest-tests of course. Hope it helps anyway (didn't test).

This repo dead , use the fork https://github.com/wonday/react-native-orientation-locker


catch invalid mime type causing PHP to download

E.g. when invalid AddHandler entries are within the .htacces causing a download of filename "download"

Content-Type: application/*php* may not be the most accurate, though it should at least work for now. This can easily be switched to support multiple by moving it from glob based to regex based.


##[error]Docker run failed with exit code 1

I get this error
##[error]Docker run failed with exit code 1
On the Save DigitalOcean kubeconfig step.. I have the DO access token set, unable to resolve, not sure what the issue is

Hi @adamcollier1. Sorry to hear you're running into issues. Was there any additional error output? Unfortunately, that's not much to go on and it is working as expected for me still.

Hi @andrewsomething
It's possible I am doing something wrong, but I can't find it if I am..
I forked the repo, then just edited workflow.yaml, added the secrets to the repo..
This is the full output
Save DigitalOcean kubeconfig2s ##[error]Docker run failed with exit code 1 Run digitalocean/action-doctl@master   with:     args: kubernetes cluster kubeconfig show static-example > $GITHUB_WORKSPACE/.kubeconfig   env:     DIGITALOCEAN_ACCESS_TOKEN: *** /usr/bin/docker run --name bb81cdc36ca22b824ef3918911b4ebf9e0d0_475582 --label 04bb81 --workdir /github/workspace --rm -e DIGITALOCEAN_ACCESS_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/example-doctl-action/example-doctl-action":"/github/workspace" 04bb81:cdc36ca22b824ef3918911b4ebf9e0d0 kubernetes cluster kubeconfig show static-example > $GITHUB_WORKSPACE/.kubeconfig ##[error]Docker run failed with exit code 1
https://github.com/adamcollier1/example-doctl-action/
Maybe I am missing something I need to change.. thanks

I got that error when I had the incorrect cluster name... You may have named your cluster something else on DigitaOcean.
Try run doctl kubernetes cluster kubeconfig show static-example on a digitalocean-authenticated terminal.

I think this issue can be closed as this can only be caused by an invalid cluster name


dev-status-agent

New agent that regularly runs simple tests to check that KG endpoints are accessible.

Status agent currently contains minimal functionality, but has been tested (manually and via automated GitHub actions).


PRI #0 (HOT FIRE): None of the "Try it" links on docs.microsoft.com are working!

Go to any page under the https://docs.microsoft.com/en-us/rest/api/ documentation tree and click on the Try it button and then on the Sign in button.
You will get the message:
This docs.microsoft.com page can’t be found.  No webpage was found for the web address: https://docs.microsoft.com/api/token/signin?loginHint=&returnUrl=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fresources%2Fsubscriptions%2Flist%3Fazure-auth-complete%3Dtrue
Please fix urgently

@sujayvsarma, Thanks for reporting this issue! I'm able to repro this behavior. I understand it is an inconvenience, apologies for any frustration with this issue. We're working on this internally and will post back as soon as I have an update.

It is more than an "inconvenience". It is a problem, because: many times the doc page is very poor quality -- api version not updated, the request/response definitions do not match with what the service actually expects/returns. For these reasons, the TRY IT feature is VERY IMPORTANT.

@sujayvsarma, The issue has been mitigated. I'm able to leverage the "Try it" as expected.
Thanks again for bringing this to our attention! Much appreciate the follow-up.

Confirming it works now. Thank you!

Sujay, We have shared the feedback with our content team on this. Much appreciate your feedback!


4th commit

There exists an error opening the assignment of week-3, so I tried to do the assignment of week-4 and managed it.

Hi Mao, I don't see any changes in lab 4 - could you make sure that your work has been committed and synced to your repository. For lab 3 - maybe you could download the base file again from my repo, put it in your local folder, do the work, and try to sync it back to your repo.

Now I synced once more. Hope this time is OK.

Got it, thanks!


Merge deploy/README.md to main docs

Most of it is covered more succinctly in main docs
Added quickstart and container source sections

Both only set to render for the "upstream" target so they don't appear in the official downstream docs (we don't want to support quickstart.sh or upstream containers for RH customers)

Moved the labels section to it's own file for now. Eventually we'll have reference documentation of some sort and it can go there.

 SAF Docs refactor


[IJ/AS plugin] Video tour

No plans to do this at the moment, would be nice to have it though. Closing for now.


Added the DropboxFinder to the manifest

Hello guys,
I've been working on a Dropbox file finder plugin, here's the initial post:
https://github.com/Flow-Launcher/Flow.Launcher/discussions/1148
Hope you love this and add it to your manifest, Dropbox will make the application's status to "production" instead of "development" once more than 50 users use this, I'm sure a lot of people will find this useful as I'm using this on a daily basis now.
Best,
Ameen

Hey this plugin will be really helpful. I did a fresh install and a quick test- the query box seems to be frozen after opening the oauth web page.
Also in settings it asks for the Dropbox path, does this mean if the file is found via the API it will be downloaded to the path set in settings?

Hello Jeremy,

This will stay frozen until you finish the OAuth acceptance and it will go away since there is an HTTP server waiting for the callback response, did you finish the steps and it's still frozen? If didn't please do.

This is your local Dropbox folder, this is used to navigate to the file locally on your machine, in the next update I'll cross-check the availability of the file on the machine, if not, I'll send the user to the preview page on Dropbox.com or setup a setting to download it automatically.

Best,
Ameen

This will stay frozen until you finish the OAuth acceptance and it will go away since there is an HTTP server waiting for the callback response, did you finish the steps and it's still frozen? If you didn't please do.

Yeah ok that makes sense. I didn't finish the OAuth acceptance and I wonder if that's something that needs to be handled because it stayed frozen.

This will stay frozen until you finish the OAuth acceptance and it will go away since there is an HTTP server waiting for the callback response, did you finish the steps and it's still frozen? If you didn't please do.

Yeah ok that makes sense. I didn't finish the OAuth acceptance and I wonder if that's something that needs to be handled because it stayed frozen.

No problem, I agree too, I was planning to fix that later on but given that this hinders the experience a bit, let me fix it and keep you posted.

Hey @jjw24, version v1.1.0 is up with the fixes you recommend, hope that's good for the merge :)

Thanks for the merge Jeremy, I'll refactor many of these items in the next couple of releases.


Error handling of bad polyline still broken

Our xix in #37 has not worked: trying to decode the polyline 'ugh_ugh' gives an out of bounds error on line 142:
index out of bounds: the len is 7 but the index is 7.

cc @mattiZed

Repro (note ommission of should_panic directive on the test: we want to ensure that error values and panics are surfaced, and we want to distinguish between them, since we can handle errors, but not panics). We expect this test to return an Err value, but we have a logic error in our loop beginning on line 141:
#[test]
fn invalid_string() {
    let s = "ugh_ugh";
    let expected: Result<_, _> = Err("Cannot decode character at index 12".to_string());
    assert_eq!(decode_polyline(s, 5), expected);
}

Well then, I guess it's time to actually understand and fix the algorithm instead of suppressing the symptoms - I might have a bit of free time for this next week as my org also relies on this crate in some sense.


[CHR-2610] trial and error logging conf

this was an attempt to remove logs such as:
14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Type: application/json; charset=UTF-8[\r][\n]" 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Length: 32[\r][\n]" 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "Connection: keep-alive[\r][\n]" 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "Access-Control-Allow-Origin: *[\r][\n]" 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]" 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "{"succeeded":true,"num_freed":6}" 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 200 OK 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << Date: Fri, 24 Jul 2020 14:21:14 GMT 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Type: application/json; charset=UTF-8 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Length: 32 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << Connection: keep-alive 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << Access-Control-Allow-Origin: * 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE(32)] Response received 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2331] Response received HTTP/1.1 200 OK 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE(32)] Input ready 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2331] Consume content 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2331] Connection can be kept alive indefinitely 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2331] Response processed 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2331] releasing connection 14:21:14.642 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1


fcntl adding apple F_PREALLOCATE flag.

What does this PR do
Checklist:

[x] I have read CONTRIBUTING.md
[x] I have written necessary tests and rustdoc comments
[x] A change log has been added if this PR modifies nix's API

I am working on the CI issues, they are not related to this PR

Gentle ping on this PR, would you like to rebase and finish it?

seems libc 0.2.154 not yet available (just the tag on the repo but not yet published maybe) ?

seems libc 0.2.154 not yet available (just the tag on the repo but not yet published maybe) ?

Right, it has been yanked, we have to wait for https://github.com/rust-lang/libc/pull/3682

The issue has been fixed, please rebase your branch:)

Looks like you need to resolve the conflict in src/fcntl.rs.


Wich version of tailwind has the module? 1.4 or 1.4.5

The latest version of tailwind is the 1.4.5 however this module indicates that it is 1.4 so I don't know if it's 1.4.5 or stayed in the 1.4

Looking at
"tailwindcss": "^1.4.0"
the carret states minor or patch updates
so if you run yarn upgrade it should help upgrade to 1.4.5. If tailwindcss still works then leave it as is until you're ready to do an upgrade.


Notification & data payload mixed on Android do not work in background

Hi,
I'm trying to make push notification work on my ionic 3 application. I user firebase to do it and when I send a push notification I create a mixed payload (notification and data payload together) and my expectation is that on('notification') is called for iOS and Android both background and foreground app state. But on Android in background doesn't work (on('notification') is not called).
There's a stackoverflow link for more info
This is my ionic info

@ionic/cli-plugin-cordova       : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:
Cordova CLI : 7.0.1

local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3 ios 4.4.0
Ionic Framework    : ionic-angular 3.6.0

System:
Android SDK Tools : 25.2.2
Node              : v8.1.3
OS                : macOS Sierra
Xcode             : Xcode 8.3.3 Build version 8E3004b
ios-deploy        : 1.9.1
ios-sim           : 6.0.0
npm               : 5.1.0

cordova plugin version | grep phonegap-plugin-push  is phonegap-plugin-push 1.10.5 "PushPlugin"
Payload sent is
`code
    $p = array(
     'id'             => $post['id'],
    'title'             => $post['title'],
    'description'       => $post['description'],
    'text'              => $post['text'],
    'image_url'         => $post['image_url']
);

$msg = array(
    'title'     => "test",
    'body'      => $post['title'],
    'post'      => $p,
    'vibrate'   => 1,
    'sound'     => "default"
);

$fields = array();
$fields['to']           =  "/topics/news";
$fields['data']         = $msg;
$fields["notification"] =  array('title' => 'test', 'body' => $post['title'],  'sound' => 1);`

I read all your documentation about notification and data payload but I think there's a lack.
You wrote for Android:

My recommended format for your push payload when using this plugin (while it differs from Google's docs) works 100% of the time:

{
"data" : {
"title": "Test Notification",
"body": "This offer expires at 11:30 or whatever",
"notId": 10,
"surveyID": "ewtawgreg-gragrag-rgarhthgbad"
}
}
Ok you're right!! We have to send a data payload to make it work in all app state on Android....but it's not work on iOS.
For iOS you wrote:

but in order for the same notification event you would need to send your push to GCM iOS in a slight different format:

{
"registration_ids": ["my device id"],
"notification": {
"title": "My Title",
"body": "My message"
}
"data": {
"key1": "data 1",
"key2": "data 2"
}
}
Ok.... this work on iOS but on Android in background state nope... In fact, on('notification') on Android is not called.
So my question is:
What can I do to make work on iOS and Android in background and foreground state??
How could I shape my global payload?
FYI: the payload I wrote above, is used to send notification for native app... and it works on every device and in every app state.
Thanks you for reply

Unfortunately there's no current way to send one global uniform payload that works on all covered scenarios on both iOS and Android. You will need to handle/send them separately:

a notification payload to iOS
a data payload to Android

I'm pretty sure everyone would love to be able to pick one and have it work everywhere, but the way GCM/FCM delivers the event to the code on the plugin makes it apparently impossible to achieve right now.

Thanks fredgalvao to reply to me.
I thought a trick that work using firebase topic condition. Maybe can help


Renaming this repository

I've started working on this project again. I'm considering changing the name. What do people think about about scikit-downscale?

Done on github.


runtime.properties not propagated to indexing job on external Hadoop leading to Javascript not being enabled in indexing task

I've set 'druid.javascript.enabled' to true in common.runtime.properties, however in the JavaScriptConfig in the mapred job on the EMR cluster "enabled" is "false".
I verified it isn't a config problem as javascript is enablewhen I run the task using the local mapred executor in the middle managers it works.
I think this has something to do with config files not being pushed to the Hadoop mapred tasks, and my reasoning is that the peon says:
2017-04-17T21:14:12,232 INFO [main] io.druid.cli.CliPeon - * druid.javascript.enabled: true
In the druid log, but the map tasks have:
2017-04-17T21:14:55,224 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.js.JavaScriptConfig] from props[druid.javascript.] as [JavaScriptConfig{enabled=false}]
I'm using 0.10.0-rc2 with EMR 2.7.3
Has anyone encountered this? Does anyone know how to work around this?
Thanks!
Gal

See also https://groups.google.com/d/msg/druid-user/V6CqunkE5Qs/SSC8-dc6DQAJ.

In the Google Group @gianm correctly said I can add
"jobProperties" : {
"mapreduce.map.java.opts" : "-server -Xms512m -Xmx512m -Ddruid.javascript.enabled=true -Duser.timezone=UTC -Dfile.encoding=UTF-8",
"mapreduce.reduce.java.opts" : "-server -Xms2g -Xmx2g -Ddruid.javascript.enabled=true -Duser.timezone=UTC -Dfile.encoding=UTF-8"
}
to the jobProperties to set the system properties on the job, making it enable javascript.
Its probably worth either documenting this or adding code to have the Indexing Service pass this down to the Hadoop job.

Fixed in #4116


Loading multiple independent kernel modules in one KMM Module (#381)

This PR allows defining the load order of multiple independent kernel modules in one KMM Module. The order is defined as a list in the ModulesLoadingOrder field of the ModprobeSpec.The first module will be loaded last, the last one in the list will be loaded first. It is implement by using DownwardAPI: module loader pod template contains is added an annotation that contains the
/etc/modprobe.d/softdep format, and then this annotation is added as a file to module loader's pod filesystem using Downward API
Fixes 552

/lgtm


Add enhanced CKEditor 5 plugin

Add new CKEditor 5 plugin that works with the latest version of Strapi without bugs and based on enhaced build of CKEditor.
By submitting this pull request, I promise that:

[x] I have read the contribution guidelines thoroughly.
[x] I ensure my submission follows each and every point.

Should I change something?

Should I change something?


undefined symbol: _PyUnicode_EqualToASCIIString

Hi,
I followed the steps for the static build detailed in the README (I used the latest source from sqlite.org), everything worked sucessfully when doing:
python3 setup.py build_static build install

It ended by:
Installed /usr/local/lib/python3.5/dist-packages/pysqlite3-0.4.6-py3.5-linux-x86_64.egg
Processing dependencies for pysqlite3==0.4.6
Finished processing dependencies for pysqlite3==0.4.6

Then when doing python3 and import pysqlite3, I have:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/pysqlite3-0.4.6-py3.5-linux-x86_64.egg/pysqlite3/__init__.py", line 23, in <module>
    from pysqlite3.dbapi2 import *
  File "/usr/local/lib/python3.5/dist-packages/pysqlite3-0.4.6-py3.5-linux-x86_64.egg/pysqlite3/dbapi2.py", line 28, in <module>
    from pysqlite3._sqlite3 import *
ImportError: /usr/local/lib/python3.5/dist-packages/pysqlite3-0.4.6-py3.5-linux-x86_64.egg/pysqlite3/_sqlite3.cpython-35m-x86_64-linux-gnu.so:
    undefined symbol: _PyUnicode_EqualToASCIIString

Is there something special to do to avoid this error?

You need at least python 3.6.


Create tests for mesheryctl exp relationship command

Notes for Reviewers

This PR fixes #12136

Signed commits

[x] Yes, I signed my commits.

This PR creates  tests for - mesheryctl exp relationships command, responsible for viewing, listing and searching MeshModel relationships.

@lekaf974 @alphaX86 , I've re-created this PR. There was some issue with that one (DCO checks).
All the changes are same, also I've a doubt that, if I'm creating tests for all the other sub commands as well, like - view, generate, list etc... Then should I create different files for those? Like - list_test.go, view_test.go in the same dir i.e. experimental? Like this:

@yaten2302 set this PR ready instead of draft.
best is to create a test file per command but do one PR for each command to make the review easier please

also for sign off you could have only amend previous comment commit instead of recreate a new one

@lekaf974 , I've marked this PR as ready for review 👍
Actually, earlier I thought that I've to make all the changes in 1 PR only, so that's why it was a draft previously.

@lekaf974 could you review once on your side before finalizing?

@alphaX86 @lekaf974 , I've created tests for mesheryctl exp relationship view model-name command too! Could you please have a look at.

keep pushing, @yaten2302 👍

Sure, thanks @leecalcote 👍
Ig only 2 tests are left, I'll push them by today and then we can discuss them in today's call 👍

@yaten2302
Let's discuss this during the Meshery Development call today at 9:00 AM CT | 8:30 PM IST. Adding it as an agenda item to the meeting minutes || meeting link.

Also, I wanted to ask that, the currently meshery doesn't contains docs for the search command. May I create an issue for the same? Like for [docs], for adding a small documentation for the search command.
Here's the link - https://docs.meshery.io/reference/mesheryctl

Also, I wanted to ask that, the currently meshery doesn't contains docs for the search command. May I create an issue for the same? Like for [docs], for adding a small documentation for the search command. Here's the link - docs.meshery.io/reference/mesheryctl

@yaten2302 could you elaborate this more? Also, for "search" try checking if there's a subcommand page made by automated workflow (eg: click generate and replace it with search in URL) . If it is, then we should update the index to appear the changes there.

Ahh yes, I see that, it's there right over here 👍
Got it, thanks @alphaX86

Ahh yes, I see that, it's there right over here 👍
Got it, thanks @alphaX86

Nice! Still.. we might need to update the index page to reflect the entry...

Yes, ig the link exists, but isn't being reflected on the index page, right 👀?
BTW @alphaX86 , does this PR looks good?

@yaten2302 thanks, busy in the last weeks, taking a look

Yes, ig the link exists, but isn't being reflected on the index page, right 👀? BTW @alphaX86 , does this PR looks good?

That actually is a manual task for now...

@alphaX86 , here are the screenshots of tests:

Not really sure, if this is the issue, but if it is, then this might help - https://layer5io.slack.com/archives/C0130BQ4L3T/p1733291819564959?thread_ts=1733288794.775589&cid=C0130BQ4L3T

Not really sure, if this is the issue, but if it is, then this might help - layer5io.slack.com/archives/C0130BQ4L3T/p1733291819564959?thread_ts=1733288794.775589&cid=C0130BQ4L3T

Yes, that's the issue I also suffered in Windows. Could you open an issue reg this?

@vishalvivekm , may we add this for today's call 👀

Thanks @yaten2302 for your work! This looks good, hence merging this.


Debug InstanceTidier leak that only seems to appear when running in maven console

org.apache.cassandra.utils.concurrent.Ref$State@6b25a2cc) to class org.apache.cassandra.io.sstable.format.SSTableReader$InstanceTidier@1601791084:/Users/atolbert/Documents/Projects/sstable-tools/ma-1-big was not released before the reference was garbage collected.

Seems to happen for each SSTable opened, but only with mvn exec:java.  I can't seem to reproduce using an executable jar.

Can reproduce it with executable jar too by attaching a yourkit agent.  Must just be that there were no full GCs happening in my session.

The result of this is a file stays open per query/page until GC which is bad (such fix it).


inline example source code in generated docs?

A reviewer writes:

Each of the example links takes me to a GitHub page for the file linked. That should change to inline source like the Quick Start code.  The same thing is true of all the reference documentation.

What do you think?

Preliminary feedback says no


imagemagick: 7.0.11-12 -> 7.0.11-13

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@ofborg build imagemagick

21.05: https://github.com/NixOS/nixpkgs/pull/124159
20.09: 981b1ea86a4aa96a199758465a8e0db10e3c5275


⚠ Samsung has degraded performance

In b59573a, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2689 ms

Resolved: Samsung performance has improved in 5cda2d3.


Roundtrip validation failed while unpacking msapp

Pac runs into errors while unpacking this Microsoft sample app: https://github.com/microsoft/PowerApps-Samples/blob/master/Embed/Canvas/samples/PowerAppsPlayerSdk/Player SDK sample.msapp
$ ./pac canvas unpack --sources "/sources/playersdk" --msapp "/msapps/Player SDK sample.msapp"
UnPack from /msapps/PlayerSDKsample.msapp-->/sources/playersdk
  source format version: 0.23
Error   PA3011: Roundtrip validation on unpack failed. This is always a bug, please file an issue at https://github.com/microsoft/PowerApps-Language-Tooling
Error   PA3011: Roundtrip validation on unpack failed. This is always a bug, please file an issue at https://github.com/microsoft/PowerApps-Language-Tooling
Microsoft PowerPlatform CLI
Version: 1.7.2+gd1a5b9b

Error: There were errors.

Have the same issue once updated my canvas app version from 3.21064.25 to 3.21071.26

Diagnosed. What's happening is unpacking is adding a new flag in the template:
"FirstParty": false,
The sample is older ("HeaderLastSavedDateTimeUTC": "08/20/2019 01:29:03",)

fixed in #296


Tests broken in Visual Studio 2010

UnitTest++ fails to compile the tests in Visual Studio 2010, failing in TestTestMacros.cpp at Line 170.
This line has comment preceding it and a preprocessor version check.  Basically it says Visual Studio 2015 implicitly adds noexcept to destructors and any exceptions thrown will cause abort to be thrown.  The code is surrounded by a #if(_MSC_VER < 1900). I am guessing that _NOEXCEPT_OP macro is supposed to emulate noexcept where support is not available.
However NOEXCEPT_OP is not #defined for MSVC because the definitions (lines 19,21,29 and 31) are surrounded by #ifndef _MSC_VER and so they are never seen.
I am investigating a fix.
3>  TestTestMacros.cpp
3>..\tests\TestTestMacros.cpp(170): error C3646: '_NOEXCEPT_OP' : unknown override specifier
3>..\tests\TestTestMacros.cpp(170): error C2059: syntax error : 'constant'
3>..\tests\TestTestMacros.cpp(170): error C2091: function returns function

Also Line 170 isn't visible to the Clang/GCC compilers due to the compiler check at line 167.  This is definitely wrong.

Also this code is not visible to the clang/gcc compilers due to the compiler check at line 167.  This is definitely wrong.

Created a patch and a pull request for it.  Hope I am doing this right.  How do you link and issue with the pull request?

Like PR #85.

That was me. I couldn't see how to link a PR to an issue.  First time I
have ever done it in GH.
Sent from my Nexus 5.
On 12 Nov 2015 3:25 p.m., "Martin Moene"<EMAIL_ADDRESS>wrote:

Like PR #85 https://github.com/unittest-cpp/unittest-cpp/pull/85.
—
Reply to this email directly or view it on GitHub
https://github.com/unittest-cpp/unittest-cpp/issues/84#issuecomment-156137337
.

Incorporated PR #85 . Need to update the Appveyor config to matrix build on multiple MSVC compilers.


Add docker plugin config as known media type.

This prevents images.Children from printing a warning messages when
fetching docker plugins.

I don't think this could ever be an exhaustive list of all known configs. These are just intended to be configs which could be handled by containerd. Maybe we are overly aggressive in the logging.
We certainly wouldn't directly handle most of what is mentioned by https://github.com/opencontainers/artifacts . But our libraries shouldn't have issues when distributing them.

Makes sense. Should I instead downgrade the log to a debug message?

Oh I noticed MakeRefKey checks the context for a key prefix... wonder if we can do something similar here and register a known media type in the context?

I think Debug is reasonable. Also I am fine removing words that imply some sort of negative condition such as "unknown" for that as well. Something that specifies it just generic. I really don't think that IsKnownConfig function is very useful, we maybe can just get rid of it or unexport to avoid the confusion.

Replaced with https://github.com/containerd/containerd/pull/4351


Updating CallFunc to match the Docker CLI API changes

Updated Docker deps to pickup UI changes
Signed-off-by: Madhu Venugopal<EMAIL_ADDRESS>

At least one binary slipped in. Pls remove.

@aboch good catch. done.

LGTM


How to specify folder for template module?

Hi,
looks like a very simple issue but have no idea how to do it correctly.
In the app there are router.js
 $routeProvider         .when('/tutor/dashboard', {             templateUrl: '/views/tutor/components/dashboard.html',             controller: 'DashboardCtrl',             controllerAs: 'vm'         })
which is located in one folder. And of course, the entry point main.js where I'm trying to require the template
require('./views/tutor/components/dashboard/dashboard.html');
or like this (which is an actual path)
require('../../../views/tutor/components/dashboard/dashboard.html');
Both of this give the error during browserify process that cannot find a module on the folder where the router.js is located.
Any suggestions?

Hey! Sorry for late answer. Did you figure it out?

@javoire no problem. Yes, it works. The issue could be closed now


Intersection of two sorted arrays

@Ayush7614 @Amit366 Please assign me this issue I would like to solve this question as a part of the LGM-SOC'21 contest.
Given two sorted arrays, find their intersection .
Example:
Input : arr1[] = {1, 2, 4, 5}
arr2[] = {2, 3, 5}
Output : Intersection : {2, 5}
I will be using CPP.

Problem Statement:-
Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique and you may return the result in any order
Input: nums1 = [4,9,5], nums2 = [9,4,9,8,4]
Output: [9,4]
Explanation: [4,9] is also accepted.
I would like to solve this question as a part of the LGM-SOC'21 participant

Problem statement:-
Given 2 sorted arrays, find all the elements which occur in both the arrays.
Input :
A : [1 2 3 3 4 5 6]
B : [3 3 5]
Output : [3 3 5]
I would like to solve this question as a part of the LGM-SOC'21 participants.

@suy1968 mention the language

@suy1968 mention the language

Mentioned

@Ayush7614 @Amit366 Please assign me this issue I would like to solve this question as a part of the LGM-SOC'21 contest.
Given two sorted arrays, find their intersection .
Example:
Input : arr1[] = {1, 2, 4, 5}
arr2[] = {2, 3, 5}
Output : Intersection : {2, 5}
I will be providing the solution in JAVA.


Allow generic metadata annotations

Annotations (metadata) aren't allowed to use type arguments, but it is allowed to make annotations using a const of a type that takes a type argument:
class MyAnnotation<T> {
  const MyAnnotation();
}

const MA = MyAnnotation<String Function(int)>();

@MA  // <- Works.
random() => 7;

@MyAnnotation<String Function(int)>()  // <- Fails.
alsoRandom() => 7;

main() => random() + alsoRandom();

Gives:
../../annotation_type_generic.dart:10:14: Error: An annotation (metadata) can't use type arguments.
@MyAnnotation<String Function(int)>()
             ^

See also: https://github.com/dart-lang/sdk/issues/44120

+CC: @mkustermann, @lrhn

This would certainly make sense, and we've discussed it already a long time ago. I'll move this issue to the language repository where it fits better.


graphql integration in JSX [development_webdb]

see example in j.servers.gundb
create a gevent server which implements an example bridge between graphql & bcdb
serve an example html page with graphql client from bottle gevent server
so the full end2end can be demonstrated
start from development_jumpscale and branch to [development_webdb]

finished adding server : https://github.com/threefoldtech/digitalmeX/tree/development_webdb/DigitalMe/servers/graphql
working on client now and adding bcdb examples
ETA : 2 hours

Plz take a look at README.md
https://github.com/threefoldtech/digitalmeX/tree/development_webdb/DigitalMe/servers/graphql

got error when verifying it as below
wget https://raw.githubusercontent.com/threefoldfoundation/graphql_websockets/master/requirements.txt
pip uninstall rx
pip install -r requirements.txt
kosmos
j.servers.graphql.install()

JSX> j.servers.graphql._server_test_start()
Mon 29 10:00:40 JSBase.py        - 123 - graphqlfactory                     : ***CLASS INIT 1: graphqlfactory
Mon 29 10:00:40 JSBase.py        - 123 - builderruntimesfactory             : ***CLASS INIT 1: builderruntimesfactory
Mon 29 10:00:40 JSBase.py        - 123 - buildersystempackage               : ***CLASS INIT 1: buildersystempackage
Mon 29 10:00:40 JSBase.py        - 123 - builderpython                      : ***CLASS INIT 1: builderpython
Mon 29 10:00:40 JSBase.py        - 123 - buildertools                       : ***CLASS INIT 1: buildertools
Mon 29 10:00:40 uilderBaseClass.py - 142 - builderpython                      : no need to do: builderpython:{'pips': 'bottle'}, was already done
Mon 29 10:00:40 uilderBaseClass.py - 142 - builderpython                      : no need to do: builderpython:{'pips': 'graphene >= 2.0.dev20170802065539'}, was already done
Mon 29 10:00:40 uilderBaseClass.py - 142 - builderpython                      : no need to do: builderpython:{'pips': 'flake8'}, was already done
Mon 29 10:00:40 uilderBaseClass.py - 142 - builderpython                      : no need to do: builderpython:{'pips': 'tox'}, was already done
Mon 29 10:00:40 uilderBaseClass.py - 142 - builderpython                      : no need to do: builderpython:{'pips': 'graphql-ws'}, was already done
Mon 29 10:00:40 uilderBaseClass.py - 142 - builderpython                      : no need to do: builderpython:{'pips': 'rx'}, was already done
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/sandbox/lib/jumpscale/DigitalMe/servers/graphql/GraphQLFactory.py", line 55, in _server_test_start
    rack = j.servers.rack.get()
  File "/sandbox/lib/jumpscale/Jumpscale/jumpscale_generated.py", line 1009, in rack
    from DigitalMe.servers.gevent_rack.ServerRackFactory import ServerRackFactory
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 152, in __exit__
  File "<frozen importlib._bootstrap>", line 107, in release
RuntimeError: cannot release un-acquired lock

cannot release un-acquired lock
JSX> Mon 29 10:00:40 BCDB.py          - 262 - bcdb                               : DATAPROCESSOR STARTS


Suggestion: Support for platform packaging/ilmerge type capability

Issue  Suggestion: Support for ilmerge/libZ etc. functionality
General
I am currently trying to package up some tools for use on Windows, OSX and Linux. And it is a real bear.
Writing platform independent code is one thing. To date there is no such thing as platform independent installation. OSX, Windows and Linux all have very different ideas about how code should be distributed. iOS and Android have more.
The ability to generate docker containers from a project is really welcome. It would be nice if there was a similar feature that allowed a developer sitting on a Windows box to cut platform native installers for all the major platforms in one compile. Like the Docker tools, the installers need not be anything fancy, people could always upgrade to something better and more full featured (Wix etc). But having a system that is supported out of the box would be a major advance.
The idea that installing programs should require modification to other parts of the computer is bogus.  One of the things I like most about .NET is that installing a program does not affect anything else on the machine. Shared libraries, dll hell, no thank you.
The problem with the ,NET solution is that by default, programs are still delivered in IKEA flat pack format, a collection of .dll files in a directory. This is also bogus. Shared libraries should be for code that is likely to be shared.  And even then, there should always be the option of producing a stand alone executable that doesn't rely on anything outside the one file.
Apple has realized this already and deliver their applications as .ZIP files. There are tools like libZ that purport to do this for .NET but they are independent efforts and they don't work with .NET Core 2.0. Worse, the approach to signing is of the 'make it work' variety, not 'make it safe'. Everyone should be using named keys, not key files. There are far too many of those floating about on GitHub as it is.
The delivery team must have solved these problems already to deliver .NET Core. If the means of doing this was generalized just slightly and packaged up, everyone could use it.

Can you be more specific about what you would like? Is it fair to say that you want single file EXEs?

One thing I would like is single file .exe files that run just like any other .exe on a particular platform. I don't mind having to cut a different .exe for each platform because the loader file formats are different. I would much prefer that over having to use dotnet foo.exe
Yes, I know that there are third party, unsupported tools. But none of those will cut .NET Core 2.0 executables right now. I am using iLmerge to produce single file .exes for Windows platform using .net framework.
Another is I would like to be able to distribute code in the platform specific distribution formats. That is a .dmg for OSX, a Debian package for Linux, an MSI for Windows. I have Wix in my tool chain to do that for Windows. It would be nice if I could cut the platform executables for OSX and Debian at the same time.
What I like about .NET versus Java is that it allows me to build platform specific versions of my code with native look and feel. Java is really great if you are happy with everything looking like it was written with the MIT Athena widgets from the 1980s. Windows 7 when it came out was the prettiest OS ever. OSX only caught up after Jobs passed on and all the skendomorphic crud was eliminated. I want native look and feel, including the installation experience.
I do have some tools of my own that might help here. I use domain specific languages a lot. If I can find one worked example of how to do a thing, I can generalize. The only tooling challenge that might be faced in generating Debian packages is having to use .tar format rather than .zip. But the tool almost certainly exists in the windows system somewhere. There is already something to build .apps but I didn't write down the reference.

We have been discussing single-file EXEs. It's an expensive project for us since we need to include both the runtime and managed code in the single file. With the .NET Framework scenario you mention, only the managed code needs to be included in the file, so that's much simpler.
So, we love the direction you are mentioning. We just don't have a specific timeline on it currently. We're looking for more votes on this scenario and some interesting customer scenarios that significantly benefit from this build type.
/cc @russellhadley

Thank you for considering the proposal. How about if we could compromise with just enough of the runtime to pull the additional libraries from one location on the machine?
Here is how I think it could work. Let us say that the user written parts of the program consists of program.dll and library.dll.
program.exe = {bootstrap.dll + program.dll + library.dll}
Bootstrap.dll is a chunk of code that contains load on demand links for all the libraries referenced in program.dll and library.dll. It is also the code that is the entry point for the .exe.
When invoked, the Bootstrap.dll code searches for dotnet.ext the same as if it had been typed on the command line. Then it uses the dlls in the same directory to resolve all references for linked libraries.
The combined effect is that we now have single file executables that will run on any platform without modification[*]. The only condition being that the executable for dotnet (or some new loader assistant) has to be in the search path or discoverable by some defined search scheme.
[*] If the code requires platform specific code then it will be a different executable per platform of course. Cleaning up that issue can be left to a later point however.

My understanding is that the problem isn't so much the runtime in the file but the managed DLLs. We don't have a way of loading them as a filestream today.
Love the idea and pragmatism but I don't think it lines up with the currently reality. @russellhadley  can fact check me.

I'm going to move this to the coreclr repo because it is primarily a runtime feature + some tooling.

Issue moved to dotnet/coreclr #17026 via ZenHub


MPRIS title element not video title

I use playerctl to get the current media track's title. It uses MPRIS elements and with youtube-viewer it just displays a whole string of text. It would be good if it just showed the title of the video
Here is the current title that is set for mpv:
mpv   xesam:title               webm&gir=yes&clen=103286435&dur=584.583&lmt=1542147798498091&mt=1564655820&fvip=4&keepalive=yes&c=WEB&txp=5432432&sparams=expire,ei,ip,id,aitags,source,requiressl,mime,gir,clen,dur,lmt&sig=ALgxI2wwRgIhAPyFOcZRIYJocIExMKquPjs1VPIkIrt28kuxnKJv3gluAiEAr5hci5ipZ6xBgtrRPBfvaY04TxeSvHwSdK47DC0PqGk=&lsparams=mm,mn,ms,mv,mvi,pl,initcwndbps&lsig=AHylml4wRAIgeo-944ErZ5Tav5zx2alGGxbPKGxXgQ9H3GwxOiTOYKkCIBb5TCS-0s1wl5wJp0OOt7R8Xole3mcQfCZ7c0CC1KOi

I can't reproduce this issue.
$ youtube-viewer --no-interactive --extract '*TITLE*' 'https://www.youtube.com/watch?v=HX8bihEe3nA'

Are you sure youtube-viewer is used and not youtube-dl?

I'm using youtube-viewer with the command playerctl metadata

Check if mpv [URL] displays the title of an YouTube video. It it doesn't, then it's an youtube-dl issue.

Hi, thank you. mpv [URL] shows the title working normally. youtube-viewer shows a long string of text as the title


All Items in All Characters Inventory Unidentified

After a recent update, every item on my character's inventory has become Unidentified.

Every character is like this now and all the items need to identified one-by-one. I uninstalled the Mod and they are still unidentified.

I had to manually identify every item on 6 level 11 characters. It was extremely annoying.

I had to manually identify every item on 6 level 11 characters. It was extremely annoying.


Option to opt out of semi-colon in index file

Currently, the index file is written as export { default } from './Thing';
We have a ESLint rule that disallows semi-colons. It would be super handy to be able to opt out of automatically adding it in the index file.
Love this extension!

Thanks for raising the issue. That seems like a reasonable option to include in a config file.
I'll close this and combine with issue #3


ng serve / ng test preventing deletion of files on windows subsystem for linux

Bug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.
Windows 10, inside the WSL
@angular/cli: 1.1.0
node: 6.10.3
os: linux x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0
@angular/compiler-cli: 4.1.3
@angular/language-service: 4.1.3
Repro steps.

Create a new project with the CLI
Run "ng serve" or "ng test"
Edit a file (everything works to this point)
git reset --hard HEAD
The file has not been deleted correctly and cannot be deleted until ng serve/test are stopped.

The log given by the failure.
angular cli does not return an error,.
Desired functionality.
I should be able to delete files without having to cancel and restart ng serve / test
Mention any other details that might be useful.
This is not exclusive to git reset commands. Any attempt to delete the files from command line, via the windows explorer, via an IDE, ect will all result in the same issues.

Can you please explain what file(s) you're deleting as well as the output that you're seeing/not seeing?

Sure. This appears to apply to files generated by ng g, as well as temp files created by tools (such as IntelliJ). This specific example is around the files generated by ng g.
(have some project setup and run ng serve/test running)
ng g c -it -is test

installing component
create src/app/test/test.component.spec.ts
create src/app/test/test.component.ts
update src/app/app.module.ts

git status

On branch foo
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   src/app/app.module.ts

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    src/app/test/

no changes added to commit (use "git add" and/or "git commit -a")

git reset --hard HEAD

error: unable to create file src/app/app.module.ts (No such file or directory)
fatal: Could not reset index file to revision 'HEAD'.

git status

On branch foo
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        deleted:    src/app/app.module.ts

Untracked files:
  (use "git add <file>..."  Where git was able to successfully revert the app.module.ts file.
 git reset --hard HEAD

 HEAD is now at bcaefcf bar

git status

On branch foo
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/app/test/

nothing added to commit but untracked files present (use "git add" to track)

Similarly if we try to directly delete the created src/app/test folder it files
rm -R src/app/test

rm: cannot remove ‘src/app/test/test.component.spec.ts’: No such file or directory
rm: cannot remove ‘src/app/test/test.component.ts’: No such file or directory
rm: cannot remove ‘src/app/test’: Directory not empty

git status

On branch foo
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

      modified:   src/app/app.module.ts

Untracked files:
  (use "git add <file>..." to include in what will be committed)

      src/app/test/

no changes added to commit (use "git add" and/or "git commit -a")

If we disable ng serve/test before running the command we instead get
rm -R src/app/test
git status

On branch foo
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

      modified:   src/app/app.module.ts

no changes added to commit (use "git add" and/or "git commit -a")

Also on WSL,
@angular/cli: 1.1.2
node: 7.10.0
os: linux x64
@angular/animations: 4.2.3
@angular/common: 4.2.3
@angular/compiler: 4.2.3
@angular/core: 4.2.3
@angular/forms: 4.2.3
@angular/http: 4.2.3
@angular/platform-browser: 4.2.3
@angular/platform-browser-dynamic: 4.2.3
@angular/router: 4.2.3
@angular/cli: 1.1.2
@angular/compiler-cli: 4.2.3
@angular/language-service: 4.2.3

I had just initialized a brand new angular project via ng new my-cool-app and had not made any changes to my code before running ng serve.  When I edited the pre-generated src/app/app.component.html in order to begin actually implemented my application, the file disappeared on save.
Strangely enough, calling ls from a non-sudo context would display the errror ls: cannot access 'src/app/app.component.html': No such file or directory even when only calling it against the containing folder.  Using sudo ls does not throw any errors.  So it appears its the file itself isn't "disappearing", but rather the access to it is.  Attempting to edit via sudo vim instead of vim creates the same conditions.

The CLI has been updated significantly since version 1.1.2.  The current stable version is 8.3.5.  If this problem is still being encountered with the current version, please consider opening a new issue with updated details.


0.5.1 fails to build

CGO_ENABLED=0 GOOS=linux GOARCH= GOARM= go build -ldflags "-s -w" -o build/mainflux-users cmd/users/main.go
CGO_ENABLED=0 GOOS=linux GOARCH= GOARM= go build -ldflags "-s -w" -o build/mainflux-things cmd/things/main.go
CGO_ENABLED=0 GOOS=linux GOARCH= GOARM= go build -ldflags "-s -w" -o build/mainflux-http cmd/http/main.go
CGO_ENABLED=0 GOOS=linux GOARCH= GOARM= go build -ldflags "-s -w" -o build/mainflux-normalizer cmd/normalizer/main.go
cmd/normalizer/main.go:24:2: cannot find package "github.com/go-kit/kit/metrics/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/go-kit/kit/metrics/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOPATH)
cmd/normalizer/main.go:17:2: cannot find package "github.com/mainflux/mainflux" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux (from $GOPATH)
cmd/normalizer/main.go:18:2: cannot find package "github.com/mainflux/mainflux/logger" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/logger (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/logger (from $GOPATH)
cmd/normalizer/main.go:19:2: cannot find package "github.com/mainflux/mainflux/normalizer" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/normalizer (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/normalizer (from $GOPATH)
cmd/normalizer/main.go:20:2: cannot find package "github.com/mainflux/mainflux/normalizer/api" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/normalizer/api (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/normalizer/api (from $GOPATH)
cmd/normalizer/main.go:21:2: cannot find package "github.com/mainflux/mainflux/normalizer/nats" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/normalizer/nats (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/normalizer/nats (from $GOPATH)
cmd/normalizer/main.go:22:2: cannot find package "github.com/nats-io/go-nats" in any of:
	/usr/lib/go-1.10/src/github.com/nats-io/go-nats (from $GOROOT)
	/home/mainflux/go/src/github.com/nats-io/go-nats (from $GOPATH)
cmd/normalizer/main.go:25:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
Makefile:33: recipe for target 'normalizer' failed
make: *** [normalizer] Error 1
make: *** Waiting for unfinished jobs....
cmd/users/main.go:19:2: cannot find package "github.com/go-kit/kit/metrics/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/go-kit/kit/metrics/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOPATH)
cmd/users/main.go:20:2: cannot find package "github.com/mainflux/mainflux" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux (from $GOPATH)
cmd/users/main.go:21:2: cannot find package "github.com/mainflux/mainflux/logger" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/logger (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/logger (from $GOPATH)
cmd/users/main.go:22:2: cannot find package "github.com/mainflux/mainflux/users" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users (from $GOPATH)
cmd/users/main.go:23:2: cannot find package "github.com/mainflux/mainflux/users/api" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users/api (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users/api (from $GOPATH)
cmd/users/main.go:24:2: cannot find package "github.com/mainflux/mainflux/users/api/grpc" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users/api/grpc (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users/api/grpc (from $GOPATH)
cmd/users/main.go:25:2: cannot find package "github.com/mainflux/mainflux/users/api/http" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users/api/http (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users/api/http (from $GOPATH)
cmd/users/main.go:26:2: cannot find package "github.com/mainflux/mainflux/users/bcrypt" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users/bcrypt (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users/bcrypt (from $GOPATH)
cmd/users/main.go:27:2: cannot find package "github.com/mainflux/mainflux/users/jwt" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users/jwt (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users/jwt (from $GOPATH)
cmd/users/main.go:28:2: cannot find package "github.com/mainflux/mainflux/users/postgres" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users/postgres (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users/postgres (from $GOPATH)
cmd/users/main.go:29:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
cmd/users/main.go:30:2: cannot find package "google.golang.org/grpc" in any of:
	/usr/lib/go-1.10/src/google.golang.org/grpc (from $GOROOT)
	/home/mainflux/go/src/google.golang.org/grpc (from $GOPATH)
Makefile:33: recipe for target 'users' failed
make: *** [users] Error 1
cmd/http/main.go:17:2: cannot find package "github.com/go-kit/kit/metrics/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/go-kit/kit/metrics/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOPATH)
cmd/http/main.go:18:2: cannot find package "github.com/mainflux/mainflux" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux (from $GOPATH)
cmd/http/main.go:19:2: cannot find package "github.com/mainflux/mainflux/http" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/http (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/http (from $GOPATH)
cmd/http/main.go:20:2: cannot find package "github.com/mainflux/mainflux/http/api" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/http/api (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/http/api (from $GOPATH)
cmd/http/main.go:21:2: cannot find package "github.com/mainflux/mainflux/http/nats" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/http/nats (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/http/nats (from $GOPATH)
cmd/http/main.go:22:2: cannot find package "github.com/mainflux/mainflux/logger" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/logger (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/logger (from $GOPATH)
cmd/http/main.go:23:2: cannot find package "github.com/mainflux/mainflux/things/api/grpc" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things/api/grpc (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things/api/grpc (from $GOPATH)
cmd/http/main.go:24:2: cannot find package "github.com/nats-io/go-nats" in any of:
	/usr/lib/go-1.10/src/github.com/nats-io/go-nats (from $GOROOT)
	/home/mainflux/go/src/github.com/nats-io/go-nats (from $GOPATH)
cmd/http/main.go:25:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
cmd/http/main.go:26:2: cannot find package "google.golang.org/grpc" in any of:
	/usr/lib/go-1.10/src/google.golang.org/grpc (from $GOROOT)
	/home/mainflux/go/src/google.golang.org/grpc (from $GOPATH)
Makefile:33: recipe for target 'http' failed
make: *** [http] Error 1
cmd/things/main.go:20:2: cannot find package "github.com/go-kit/kit/metrics/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/go-kit/kit/metrics/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOPATH)
cmd/things/main.go:21:2: cannot find package "github.com/go-redis/redis" in any of:
	/usr/lib/go-1.10/src/github.com/go-redis/redis (from $GOROOT)
	/home/mainflux/go/src/github.com/go-redis/redis (from $GOPATH)
cmd/things/main.go:22:2: cannot find package "github.com/mainflux/mainflux" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux (from $GOPATH)
cmd/things/main.go:23:2: cannot find package "github.com/mainflux/mainflux/logger" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/logger (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/logger (from $GOPATH)
cmd/things/main.go:24:2: cannot find package "github.com/mainflux/mainflux/things" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things (from $GOPATH)
cmd/things/main.go:25:2: cannot find package "github.com/mainflux/mainflux/things/api" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things/api (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things/api (from $GOPATH)
cmd/things/main.go:26:2: cannot find package "github.com/mainflux/mainflux/things/api/grpc" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things/api/grpc (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things/api/grpc (from $GOPATH)
cmd/things/main.go:27:2: cannot find package "github.com/mainflux/mainflux/things/api/http" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things/api/http (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things/api/http (from $GOPATH)
cmd/things/main.go:28:2: cannot find package "github.com/mainflux/mainflux/things/postgres" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things/postgres (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things/postgres (from $GOPATH)
cmd/things/main.go:29:2: cannot find package "github.com/mainflux/mainflux/things/redis" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things/redis (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things/redis (from $GOPATH)
cmd/things/main.go:30:2: cannot find package "github.com/mainflux/mainflux/things/uuid" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/things/uuid (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/things/uuid (from $GOPATH)
cmd/things/main.go:31:2: cannot find package "github.com/mainflux/mainflux/users/api/grpc" in any of:
	/usr/lib/go-1.10/src/github.com/mainflux/mainflux/users/api/grpc (from $GOROOT)
	/home/mainflux/go/src/github.com/mainflux/mainflux/users/api/grpc (from $GOPATH)
cmd/things/main.go:32:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
	/usr/lib/go-1.10/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
	/home/mainflux/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
cmd/things/main.go:33:2: cannot find package "google.golang.org/grpc" in any of:
	/usr/lib/go-1.10/src/google.golang.org/grpc (from $GOROOT)
	/home/mainflux/go/src/google.golang.org/grpc (from $GOPATH)
Makefile:33: recipe for target 'things' failed
make: *** [things] Error 1

However, works on latest master, when pulled via go get. Closing.


[ 502 Bad Gateway ]

Every file link is borken.

Apparently, it was a Telegram outage. Should be fixed now.


Pulled Folder once - now won't pull again

I was trying to get the script to work with a token that had the minimum privileges and during the process i switched to a token that had full admin privileges and the folder successfully pulled down.
I was trying to pull again after figuring out the permissions issues (you can't have only web service checked)  and I get an error in VS CODE: You might need to update the vscodeExtensionRestlet.js RESTlet in NetSuite to the latest version. | Use Help…Toggle Developer Tools and choose the Console tab for a better formatted error message.
But I was able to connect through postman and do the call : type=directory&name=SuiteScripts
and get a successful answer.
The extension won't work with either configured tokens i have

Hi, @jjmartin
Are the minimal permissions documented in the README incorrect? Do I need to update them?
I see that error message (you might need to update the restlet) often when there are general permission errors. It's something that needs to get fixed. But for now, know that it usually means there's some other problem calling the RESTlet.
Are you seeing any errors in the NetSuite logs on the Script Deployment record?
Are you seeing additional messages in the VS Code Developer Tools?
Most important: Is your VS Code opening the folder that equates to the SuiteScripts folder in NetSuite? If you've opened VS Code on a folder above or below that, it won't work (without extra settings).

I don't receive a suitescript error when i activate the command in VSCode.  ( I do see some trying to make calls through postman where i didn't get the search filter right)
The main issue i had initially was that i had selected

WEB SERVIVCES ONLY ROLE
so don't do that, but i'm not sure its worth saying in the readme.
Fresh Eyes make all the difference - some how i had corrupted my settings, so the realm was all wrong (accidently pasted a key at the end of it) and somehow lost the URL of Restlet.   (which was blank)
it might be worth having a specific error if that URL setting doesn't have a value


Add day 3 solution

What type of PR is this?

[x] Refactor

What this PR does / why we need it:
Which issue(s) this PR fixes:

Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

Codecov Report

Merging #10 (8db3f52) into master (35af9ec) will decrease coverage by 3.30%.
The diff coverage is 68.75%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   83.01%   79.71%   -3.31%
==========================================
  Files           5        6       +1
  Lines         106      138      +32
==========================================
+ Hits           88      110      +22
- Misses         17       26       +9
- Partials        1        2       +1

Impacted Files
Coverage Δ

internal/day3/day3.go
62.96% <62.96%> (ø)

pkg/input/parse.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Python import problem

Environment (please complete the following information):

OS: macOS
Vim version: 8.1.2168 (with +python/dyn, +python3/dyn)
vim-clap version: 820980f

Describe the bug
After running Clap blines, for example, and starting typing, I get this error (probably, should be line 115 but this number, 5, is omitted):
provider.on_typed:
/PATH/plugged/vim-clap/autoload/clap/filter.vim, line 11
Vim(python):ImportError: No module named clap

To Reproduce

Create the minimal vimrc min.vim:

set nocompatible
set runtimepath^=/path/to/vim-clap
syntax on
filetype plugin indent on

Start Vim with command: vim -u min.vim

Type Clap blines:

https://i.imgur.com/bnJ2HJF.png

See error:

https://i.imgur.com/Z1E6ws7.png

I don't have this issue, using the vim installed via brew.
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct  5 2019 20:12:11)
macOS version
Included patches: 1-2115
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +cmdline_info      -farsi             +libcall           -mouse_sysmouse    +python3           -tag_any_white     +visualextra
+arabic            +comments          +file_in_path      +linebreak         +mouse_urxvt       +quickfix          -tcl               +viminfo
+autocmd           +conceal           +find_in_path      +lispindent        +mouse_xterm       +reltime           +termguicolors     +vreplace
+autochdir         +cryptv            +float             +listcmds          +multi_byte        +rightleft         +terminal          +wildignore
-autoservername    +cscope            +folding           +localmap          +multi_lang        +ruby              +terminfo          +wildmenu
-balloon_eval      +cursorbind        -footer            +lua               -mzscheme          +scrollbind        +termresponse      +windows
+balloon_eval_term +cursorshape       +fork()            +menu              +netbeans_intg     +signs             +textobjects       +writebackup
-browse            +dialog_con        +gettext           +mksession         +num64             +smartindent       +textprop          -X11
++builtin_terms    +diff              -hangul_input      +modify_fname      +packages          -sound             +timers            -xfontset
+byte_offset       +digraphs          +iconv             +mouse             +path_extra        +spell             +title             -xim
+channel           -dnd               +insert_expand     -mouseshape        +perl              +startuptime       -toolbar           -xpm
+cindent           -ebcdic            +job               +mouse_dec         +persistent_undo   +statusline        +user_commands     -xsmp
-clientserver      +emacs_tags        +jumplist          -mouse_gpm         +postscript        -sun_workshop      +vartabs           -xterm_clipboard
+clipboard         +eval              +keymap            -mouse_jsbterm     +printer           +syntax            +vertsplit         -xterm_save
+cmdline_compl     +ex_extra          +lambda            +mouse_netterm     +profile           +tag_binary        +virtualedit
+cmdline_hist      +extra_search      +langmap           +mouse_sgr         -python            -tag_old_static    +visual
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib<EMAIL_ADDRESS>-L/usr/local/opt/readline/lib  -L/
usr/local/lib -o vim        -lncurses -liconv -lintl -framework AppKit  -L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.14 -fstack-protector-strong -
L/usr/local/lib  -L/usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc  -L/usr/local/opt/python/Frameworks/Pyt
hon.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation  -lruby.2.6

You can add a debugging print to see if the related path is included:
--- a/autoload/clap/filter.vim
+++ b/autoload/clap/filter.vim
@@ -112,6 +112,7 @@ import vim
 plugin_root_dir = vim.eval('g:__clap_dir')
 python_root_dir = normpath(join(plugin_root_dir, '..', 'pythonx'))
 sys.path.insert(0, python_root_dir)
+print(sys.path)
 import clap

 from clap.fzy import clap_fzy

For me, it's ['/Users/xlc/.vim/plugged/vim-clap/pythonx', '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/opt/python/Framewor ks/Python.framework/Versions/3.7/lib/python3.7', '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/Users/xlc/Librar y/Python/3.7/lib/python/site-packages', '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages', '_vim_path_'].

I don't have this issue

Well, I have no doubts about that but this doesn't really help much, does it? :)

You can add a debugging print to see if the related path is included

And this related path is what exactly? plugged/vim-clap/pythonx? Then yes, it's included for me, too.

using the vim installed via brew.

Perhaps this could be helpful? :)
Then I have no idea why the error occurs. A try-catch should be added here. If any exception happens, just fall back to the regexp matching mode.

Perhaps this could be helpful? :)

I'm assume you aren't here really telling your users how exactly they should install Vim, are you? :)

A try-catch should be added here [...]

Well, would be great to hear some news on this in the future.

Just saying my local environment, maybe it's related, I'm not sure :(.
The try-catch approach is a workaround actually, not a real solution. Pull the latest version to see the error persists. If the error disappears, the fallback strategy should be used then.


Trim down prefixing of generated items

We don't need the Rust prefix, probably

Should we do no prefix by default and let the user configure it?

That's the safest option probably, although  I don't see a use-case for prefixing happening often anymore, since, if my memory is right, we already prefix the generated items with the query name, in addition to wrapping everything in a module. For example:
query People {
  person(id: 1) { name }
}

Will generate a struct called RustPeoplePerson. Fragments are also their own "roots". So collisions can happen but should be rare, so we could probably do custom prefixing, defaulting to nothing.
Example query that should collide with the generated ResponseData without prefixing, for testing purposes:
query Response {
  data
}

Hmm, sorry for reacting to your last comment that late. Since a given ResponseData's fields are specific to one query, I don't think there is a way around generating it. I am not sure I understand entirely.


How to encode categorical features

I have a libsvm file containing a mix of continuous and categorical features, and I'm attempting to use LambdaRank on it. Here is a sample:
0.0 1:0.142095914742 7:1.0 302:1.0
0.0 1:0.20207253886 397:1.0 979:1.0
0.0 1:0.243902439024 68:1.0
1.0 1:0.142095914742 7:1.0 302:1.0
0.0 1:0.0689655172414 318:1.0 397:1.0
0.0 1:0.047619047619 45:1.0 323:1.0 531:1.0

When I train, I get the following:
[LightGBM] [Warning] Ignoring feature Column_33307, only has one value
[LightGBM] [Warning] Ignoring feature Column_33308, only has one value
[LightGBM] [Warning] Ignoring feature Column_33309, only has one value
[LightGBM] [Warning] Ignoring feature Column_33310, only has one value
[LightGBM] [Warning] Ignoring feature Column_33311, only has one value
I think this means it is ignoring my categorical features. How am I supposed to encode them?

its means that all of your sample have same value on these features, thus make these feature "unsplitable"

The maximum feature index I have is 4082
0.0 1:0.0926002480364 3:1.0 18:1.0 308:1.0 4082:1.0
My error log starts like this:
[LightGBM] [Info] Loading query boundaries...
[LightGBM] [Warning] Ignoring feature Column_0, only has one value
[LightGBM] [Warning] Ignoring feature Column_4, only has one value
[LightGBM] [Warning] Ignoring feature Column_12, only has one value

Where are the column names coming from? I don't have a feature index 0

@nlothian

columns are ignored is because these columns only contain one value(like all zeros), or very sparse.
What the number of your data?
The max index is really 4082 ? I see your log above are ignoring 30000+ features.
The feature index in Libsvm start with 0 , and you data don't use this column. so it will be ignored.

I have 10,000 rows of data.
Yes. This is one of the reasons I'm puzzled! I've attached my data and query file. Clearly I'm doing something wrong.

train.libsvm.zip
train.libsvm.query.zip
.

Hi, @nlothian , I found feature index '33937' in your data file. you can check in line 1894.

Thanks @guolinke, my apologies - I missed it.

however, this warning doesn't affect the training result.


Blog Archive Setup

@dharmveer97

I have attached here all the icons for the months and years we need - this will be the same for each blog - can this be set up so that it is done automatically - to add this many months and years to each blog is not possible as it is such a long process (as the blog dates back to 2014)
This needs to be set up so if you click a certain month/year then it pulls all the blogs from that time.

It i

@kpierduta  could you tell me where to show the blogs that are pulled by clicking on the images.

Hey @kpierduta  could you tell me where to show blogs. When user click on the page archive.
And can you send me the mockup?


Ability to disable tenants

Would be nice if we can disable the new tenants part as not all of us work on a customer basis.

It might be nice to be able to disable individual modules as well. For example, we would likely not use the secrets feature and will want to ensure that nothing is entered there. For the majority of our folks, they will likely be setup in a user group which disallows creating secrets, but it would be nice to just administratively disable it.

I could see disabling modules being really useful for many people.

+1 for disabling modules. Our company uses netbox for the IPAM greatness only, and would love to disable DCIM/Secrets.

Given how much NetBox has grown and how intertwined its features are, this would take far too much development effort for the modest benefit. Closing this out.