text:
Importing module to the controller

hello there the documentation is quiet limited and vague in certain areas, i would like to use a module to generate tables http://iamisti.github.io/mdDataTable/. and i have no idea how to implement that into the controller, can you please help me out, google din't help much and stuck there for quiet long.
especially this line
angular.module('exampleApp', ['ngMaterial', 'mdDataTable']);

in this case exampleApp is the controller's name.and i believe laravel angular starter doesn't requires controller name to be defined actively,which means there is no ng-controller='' attribute.
thanks.

Laravel & Angular version: 3.2.0

Hi @ryvan-js
You should go to index.module.js and register 'mdDataTable' there under angular.module.
ngMaterial is already registered so you don't need to worry about that.
And then you will be able to use md-data-table

Hi there i did all i can but still having trouble loading the module.i am stuck in few places,same goes to controller defining.
angular.module('exampleApp2').controller('ExampleController2', function($scope, $mdToast){
  $scope.nutritionList = [
         {
             id: 601,
             name: 'Frozen joghurt',
             calories: 159,
             fat: 6.0,
             carbs: 24,
             protein: 4.0,
             sodium: 87,
             calcium: '14%',
             iron: '1%'
         },

i just have no idea how to translate this into angular material starter style.and also i did played "bower install md-data-table" and then selected the option one which is

angular#~1.5.8 which resolved to 1.5.11 and is required by md-data-table#2.2.0, md-data-table#2.2.0

but i am getting errors as if the module was missing.please i really need your guidance ,thanks.

Hello there, fairly made it. but i gotha reinstall the framework and fresh bower with md-data-table included.

i am having issues with defining  $mdToast from the code below.
 angular.module('exampleApp19').controller('ExampleController19', function($scope, $mdToast){
        $scope.selectedRowCallback = function(rows){
            $mdToast.show(
                $mdToast.simple()
                    .content('Selected row id(s): '+rows)
                    .hideDelay(3000)
            );
        };

The issue is that $mdToast is undefined, there's a descriptive explanation for that in this issue
Cheers!

authors: jadjoubran ryvan-js


text:
🛑 KeyOxide is down

In 00c3267, KeyOxide (https://keys.jae.fi) was down:

HTTP code: 0
Response time: 0 ms

Resolved: KeyOxide is back up in 2fa70b2.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Need documentation on how to use private image repository

Requirement - what kind of business use case are you trying to solve?
As a military installation, I want documentation on how to pull the images from new locations in the Jaeger Custom Resource instance
Problem - what in Jaeger blocks you from solving the requirement?
I cant find the place to put the spark, esIndexCleaner, esRollover, and esLookback images.  This seems to work except for those.
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: jaeger
spec:
  strategy: production
  storage:
    type: elasticsearch
    options:
      es:
        server-urls: http://elasticsearch-master.observability.svc:9200
  volumeMounts:
  - name: elastic-data
    mountPath: /usr/share/elasticsearch/data
  volumes:
  - name: elastic-data
    emptyDir: {}
  ingester:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/jaeger-ingester
  agent:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/jaeger-agent
  collector:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/jaeger-collector
  query:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/jaeger-query
  ingress:
    hosts:
      - jaeger.<my cluster>.<my internal domain>

# These do not work - need documentation how to specify these
  spark:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/spark-dependencies
  esIndexCleaner:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/jaeger-es-index-cleaner
  esRollover:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/jaeger-es-rollover
  esLookback:
    image: docker-proxy.nexus.<my internal domain>/jaegertracing/jaeger-es-rollover

Proposal - what do you suggest to solve the problem or improve the existing situation?
Please document the specification of the images in the CRD
Any open questions to address

We still do not have a doc with the full CRD options, your best source of information is the Go type for it, here:
https://github.com/jaegertracing/jaeger-operator/blob/b601fc5e46ac523ba1c244befe640508e8d866ea/pkg/apis/jaegertracing/v1/jaeger_types.go
And I see the image property for the options you listed:
https://github.com/jaegertracing/jaeger-operator/blob/b601fc5e46ac523ba1c244befe640508e8d866ea/pkg/apis/jaegertracing/v1/jaeger_types.go#L582-L596
https://github.com/jaegertracing/jaeger-operator/blob/b601fc5e46ac523ba1c244befe640508e8d866ea/pkg/apis/jaegertracing/v1/jaeger_types.go#L643-L645
https://github.com/jaegertracing/jaeger-operator/blob/b601fc5e46ac523ba1c244befe640508e8d866ea/pkg/apis/jaegertracing/v1/jaeger_types.go#L619-L633
The spec is a typical Docker spec: you might need to set the version, and optionally the SHA.

Very happy to hear the documentation is underway for the CRD options.
I read the specification and found my missing image specification under storage:
Here is what works:
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: jaeger
spec:
  strategy: production
  storage:
    type: elasticsearch
    options:
      es:
        server-urls: http://elasticsearch-master.observability.svc:9200
    spark:
      image: docker-proxy.nexus.<my-domain>/jaegertracing/spark-dependencies
    esIndexCleaner:
      image: docker-proxy.nexus.<my-domain>/jaegertracing/jaeger-es-index-cleaner
    esRollover:
      image: docker-proxy.nexus.<my-domain>/jaegertracing/jaeger-es-rollover
    esLookback:
      image: docker-proxy.nexus.<my-domain>/jaegertracing/jaeger-es-rollover
  volumeMounts:
  - name: elastic-data
    mountPath: /usr/share/elasticsearch/data
  volumes:
  - name: elastic-data
    emptyDir: {}
  allInOne:
    image: docker-proxy.nexus.<my-domain>/jaegertracing/all-in-one
  ingester:
    image: docker-proxy.nexus.<my-domain>/jaegertracing/jaeger-ingester
  agent:
    image: docker-proxy.nexus.<my-domain>/jaegertracing/jaeger-agent
  collector:
    image: docker-proxy.nexus.<my-domain>/jaegertracing/jaeger-collector
  query:
    image: docker-proxy.nexus.<my-domain>/jaegertracing/jaeger-query
  ingress:
    hosts:
      - jaeger.<my-cluster>.<my-domain>

@jimpete Update. It is storage.dependencies.image instead of storage.spark.image.

authors: LuChenjing jimpete jpkrohling

repo: jaegertracing/jaeger-operator


text:
Documentation search broken

Hey guys,
I was browsing the doc today and realized the search was broken. I tried to debug a little but ended up playing with that theme asset which is compiled: https://github.com/jaegertracing/jaeger/blob/master/docs/theme/assets/javascripts/application-ae2e7c9801.js . You can see the missing base_url error in the console, something must be broken in there.
Cheers.

Seems to be working now? ¯_(ツ)_/¯

repo: jaegertracing/jaeger

license_source: bigquery


text:
Accounts getting left on Mulequeue due to errors

Accounts are being left in MuleQueue indefinitely on account errors (account in use + stale cache, banned, currently disabled accounts). MuleQueue should do a better job of cleaning itself up.

Accounts now track banned status via the 'banned' account configuration key. Mulequeue loadConfig now filters on enabled=true,banned=false.
Still need to address other cleanup areas.

repo: jakcodex/muledump


text:
Lecture 7 -  explainable ai

not quite an issue; perhaps more of a curious question (or maybe more explanation required in slides :D )
i understand that many people use shap to solve some limitations of lime; and shap has many visualization possibilities (as compared with lime). hence, may i ask why you had chosen lime > shap for nlp?
thank you!

Good question. I hadn't planned on going that far into explainability methods but you're right that it should be mentioned. A good thought. 4 points.

authors: angelangweihan jakelever


text:
Uncaught SyntaxError: Unexpected number

[Enter steps to reproduce below:]

I opened a file called model.cfc (also directory.cfc), then
ran Show File History

Atom Version: 0.188.0
System: Microsoft Windows 7 Enterprise
Thrown From: git-history package, v2.3.0
Stack Trace
Uncaught SyntaxError: Unexpected number
At file:///C:/Users/220983F/AppData/Local/atom/app-0.188.0/resources/app/static/index.html#%7B%22locationsToOpen%22%3A%5B%7B%22pathToOpen%22%3Anull%7D%5D%2C%22bootstrapScript%22%3A%22C%3A%5C%5CUsers%5C%5C220983F%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-0.188.0%5C%5Cresources%5C%5Capp%5C%5Csrc%5C%5Cwindow-bootstrap.js%22%2C%22resourcePath%22%3A%22C%3A%5C%5CUsers%5C%5C220983F%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-0.188.0%5C%5Cresources%5C%5Capp%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22appVersion%22%3A%220.188.0%22%2C%22shellLoadTime%22%3A408%2C%22initialPaths%22%3A%5B%22C%3A%5C%5CUsers%5C%5C220983F%5C%5Ccoldfusion%5C%5Cwsiteadm%5C%5Cweb%22%5D%7D:1

SyntaxError: Unexpected number
  at Object.parse (native)
  at stdout (C:\Users\220983F\.atom\packages\git-history\lib\git-history-view.coffee:40:13)
  at Socket.<anonymous> (C:\Users\220983F\AppData\Local\atom\app-0.188.0\resources\app\src\buffered-process.js:148:13)
  at Socket.emit (events.js:138:20)
  at Pipe.close (net.js:477:12)

Commands
     -2:01.9 tree-view:expand-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
 12x -2:01.3 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  4x -1:59.9 core:move-up (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:58.1 tree-view:expand-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  4x -1:56.9 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:53.5 tree-view:open-selected-entry (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:45.6 git-history:show-file-history (atom-text-editor.editor)
     -1:09.8 command-palette:toggle (atom-text-editor.editor)
     -1:04.0 git-history:show-file-history (atom-text-editor.editor)
     -0:51.5 tree-view:collapse-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:51.0 core:move-up (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:50.5 tree-view:open-selected-entry (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:47.0 git-plus:menu (atom-text-editor.editor)
     -0:43.6 git-history:show-file-history (atom-text-editor.editor)
     -0:36.0 settings-view:open (atom-text-editor.editor)
     -0:08.3 git-history:show-file-history (atom-text-editor.editor)

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "git-history": {}
}

Installed Packages
# User
git-go, v1.0.0
git-history, v2.3.0
git-log, v0.3.0
git-plus, v4.4.10
language-cfml, v0.5.1

# Dev
No dev packages

hi @marty80
do you experience those problems only with all *.cfc files or just with those two files mentioned?
or with all files?
i could not reproduce the problem but i can think of a case where you might run into a problem when having double quotes in your git user name. this would mean you never get any file histories.
i will have a fix for that soon.

#15 fixed #14

authors: ChowSinWon jakesankey marty80

repo: jakesankey/git-history

license: mit


text:
add streetsidesoftware.code-spell-checker

add streetsidesoftware.code-spell-checker, based on cspell, has nice config and CSpell REPL

closed by https://github.com/jakoch/cpp-devbox/commit/65be09030234d742aed26293c02dafb2e319ead3

repo: jakoch/cpp-devbox


text:
"The server cannot be reached" after fresh installed

Hi Team,
We have installed Jambonz Building a self-hosted solution with two servers.
Installation was successful and all pm2 are running smoothly.
While logging in to the Jambonz URL with public IP http://103.254.35.50:3001/, we are getting the below error.
I have attached the pm2 logs file from sbc & feature server and screenshot for your reference.

jambonz feature error.docx
jambonz api error.docx

what is in the .env file in the jambonz-webapp folder?  If its not correct, fix it then run
npm run build && pm2 restart jambonz-webapp

Hi @davehorton,
FYI, I have created two servers for SBC and Feature. Both are in a local environment, but I have mapped a public IP to the SBC server and allowed the required ports.
I have attached the .env and ecosystem.config.js files for your reference.
Local server IPs:
SBC: 172.16.16.133
Feature: 172.16.16.134
Please check both files and provide a resolution so that we can access Jambonz and start using it.
Also attached influxd service screenshot if any issues in this let me know.
Thanks in advance.
ecosystem.config.docx
jambonz .env file.docx

@davehorton Also attached log file when i run the reset_admin_password.js file getting the error.

reset_admin_password.js.docx

Hi @davehorton
Please provide me resolution on the above issues. We need to start using Jambonz.
Thanks in advance.

support for clustered environments requires a paid support subscription.  You seem to have created some sort of custom environment and we do not offer a service where we troubleshoot custom setups for free.

authors: davehorton kishanecosmob

repo: jambonz/jambonz-webapp


text:
Create query first method

Adds a method to the query that returns only the first row of the results.
Fixes #12

Coverage increased (+0.02%) to 94.872% when pulling cbd51c25b87a377e7b170c0a4c912639c83ec7ea on create-query-first-method into 75aef5dc4392919e1fa6f9b196298f5b7ee4dbb2 on master.

Coverage increased (+0.02%) to 94.872% when pulling cbd51c25b87a377e7b170c0a4c912639c83ec7ea on create-query-first-method into 75aef5dc4392919e1fa6f9b196298f5b7ee4dbb2 on master.

Coverage increased (+0.02%) to 94.872% when pulling cbd51c25b87a377e7b170c0a4c912639c83ec7ea on create-query-first-method into 75aef5dc4392919e1fa6f9b196298f5b7ee4dbb2 on master.

source: gharchive/pull-request

authors: coveralls jamesfer

repo: jamesfer/cypher-query-builder


text:
Upgrade faye to v1.1.1

This PR upgrades faye to the latest, v1.1.1.  I just ran the build task and all specs passed successfully so I'm assuming this is at least worth a review.

Thanks!

authors: jamesotron lightyrs

repo: jamesotron/faye-rails


text:
SigmaDimensions-related performance hit

With SigmaDimensions installed and set to Resize=10, adding VertexHeightOblateAdvanced to the install drops my FPS from 120 to ~32 on the Mun's surface, even though no stock objects actually use it. (I noticed this first with SarnusPlus on my main install but managed to set up a testing install with the bare minimum to replicate it.) There's no significant FPS change without SigmaDimensions, so I have to figure this is something related to terrain, but I have no idea what that'd be.
KSP.log

Thanks for the info, will take a look at it when I can and try to figure out what's going on.

I got another user to send me a profile capture and it seems to also be suffering from this issue.  This is being called N+1 times where N is the number of loaded vessels.  The +1 is from FlightInputHandler.

Actually I think this might be completely caused by kopernicus and have nothing to do with SigDim - unless it somehow adds a ton of child components to the PQS.  Which it certainly might, if a rescaled planet needs more components.

Can confirm that the new Kopernicus version fixes this issue, at least on my minimal install.

authors: JonnyOThan arbsoup jamespglaze

repo: jamespglaze/VertexHeightOblateAdvanced


text:
Fix/cocktail order logic

작업 내용

커스텀 칵테일 30ml 단위로 수정할 수 있게 변경
0ml짜리 커스텀 칵테일 주문도 받아짐, 커스텀 칵테일 용량 0ml초과, 300ml 이하로 제한 로직 추가
커스텀 칵테일이면 abv 표시 안하도록 수정
주문 성공시 /queue 페이지로 리다이렉트
admin, custom 토스트 사용

기타

https://github.com/jamie2779/cocktail-web/pull/6 코드 리뷰에 대한 후속 수정

체크리스트

[ ] 주요 기능이 정상적으로 동작함
[ ] 코드에 불필요한 주석이나 디버깅 흔적이 없음
[ ] 기존 코드와 호환성에 문제가 없음
[ ] 필요한 문서를 업데이트 함
[ ] 민감한 정보(api키 등)가 포함되어 있지 않음

@jamie2779 PTAL


text:
Deactivate local video channel when disabling video

In the past, the buttons for muting or disabling local video really disabled the corresponding channels of the stream locally. Now the channels remain activated but are not sent to the other peers. That is great for audio because it allowed us to implement https://github.com/jangouts/jangouts/issues/27. But for video is not that great. The user can still manage to see their own video and may think that it's being transmitted. So disabling the local video channel in addition to stop sending it would give us the best of both worlds and should be easy to implement with some git archeology.

fixed by #90

authors: ancorgs jreidinger

repo: jangouts/jangouts


text:
Failing to set status when build is auto-started

I'm facing quite the conundrum. My pull request jobs fail to set the status only when the build is started either via admin or via comments (test this please, etc).
However, when I start the same pull request manually (using origin/.... in the parameter), the statuses are set fine, with the exception that they use the job name rather than the context name (not really an issue for me).
I have noticed this happening on Windows, Linux and OSX slaves. I have made sure that all the slave keys and the master key are added to my bot user. That said, one of my Linux pull request jobs sets the status correctly even with automatic starts.
I don't think this is a permissions issue (as stated in the stack trace); if it were, then the manually started builds should fail too, which is not happening.
One thing is that my bot is member of the team which has read and write access to the repo (not owner rights).
I am currently using Jenkins 1.619, GHPRB 1.24.5, Github Plugin 1.11.3.
Here is a stack trace of the failure:
GitHub pull request #889 of commit 73dbeb9deed3b2b6d612a55926e22308fbc61e7f, no merge conflicts.
Setting status of 73dbeb9deed3b2b6d612a55926e22308fbc61e7f to PENDING with url http://ci.arrayfire.org/job/arrayfire-windows-pull/103/ and message: 'Build started, sha1 is merged'
Using context: jenkins/Windows-x64
FileNotFoundException means that the credentials Jenkins is using is probably wrong. Or the user account does not have write access to the repo.
java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
	at org.kohsuke.github.Requester.handleApiError(Requester.java:494)
	at org.kohsuke.github.Requester._to(Requester.java:245)
	at org.kohsuke.github.Requester.to(Requester.java:191)
	at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:780)
	at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:117)
	at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:73)
	at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:108)
	at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:19)
	at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:12)
	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:215)
	at hudson.model.Run.execute(Run.java:1740)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:374)
Caused by: java.io.FileNotFoundException: https://api.github.com/repos/arrayfire/arrayfire/statuses/73dbeb9deed3b2b6d612a55926e22308fbc61e7f
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at org.kohsuke.github.Requester.parse(Requester.java:451)
	at org.kohsuke.github.Requester._to(Requester.java:224)
	... 12 more
Caused by: java.io.FileNotFoundException: https://api.github.com/repos/arrayfire/arrayfire/statuses/73dbeb9deed3b2b6d612a55926e22308fbc61e7f
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
	at org.kohsuke.github.Requester.parse(Requester.java:447)
	... 13 more

One thing I missed, I tried using a fork of the repository that was owned by the bot as a test case for the pull request. Even in this case it failed to set the status.
That is, I used the forked repo as the github url in the job setup, created a dummy branch, opened the pull request from the dummy branch to the default branch.

Please add more logging, then send those logs over.  You might see that the credentials used aren't the ones you intended.

I'm trying to setup the logging and try that out. (I'm assuming this involves changing the log level of the default logger to "all" from "info"?)
On your second point, the credentials do not wary irrespective of whether the build was started using the parameter or the comments on github. Any thoughts on this?

Create a logger for org.jenkinsci.plugins.ghprb,  Then you can set that to finest and get just the logs from the plugin.

Thanks for that suggestion. It was giving an error about not finding the credentials (something might have got mixed up). It was using secret text before. Changed it to user name and password and its all good now.
Thanks a lot!

repo: janinko/ghprb


text:
Swap license file (and CHANGES?) at repo initialization time

That way GitHub can recognize the license for MPT itself and display it properly.

I did this for the LICENSE file. Not going to bother with CHANGES right now; dunno how many people are actually going to look at that, and I kinda like having it grouped in the MatlabProjectTemplate subfolder.

repo: janklab/MatlabProjectTemplate


text:
Clarify usage of signature plugin

I'm not yet super happy with the documentation, but it's a start. Maybe you have a few comments?
Fixes #214

Thanks for the patch. I hope you don't mind that I pushed my own tweak of it, as I felt like it was a bit redundant to talk about loading the plugin globally or locally, since the README already has the documentation for it.

I don't mind, awesome!

repo: janko-m/shrine


text:
Building Error (weird)

After successfully developing the blog, if tried to rebuild it on Netlify - without success.
I retried to develop local but now the following strange error occurs:
Error: /Users/noir/blog/gatsby-node.js:52
      const nextSlug = arr[index - 1]?.frontmatter.slug || ``
                                      ^
  SyntaxError: Unexpected token '.'

It's also kinda strange that the develop is working without problem, but the build fails.
Has anyone had a similar issue?

I could fix the develop error by downgrade to another node version. But on build (Netlify) I get still an error:
error "gatsby-plugin-sitemap" threw an error while running the onPostBuild lifecycle:
Cannot use 'in' operator to search for 'nodes' in undefined
   40 |           case 9:
    41 |             queryRecords = _context.sent;
> 42 |             filteredRecords = (0, _internals.filterQuery)(queryRecords, excludeOptions, basePath, resolveSiteUrl);
         |                                                          ^
    43 |             urls = serialize(filteredRecords);
    44 |
    45 |             if (!(!rest.sitemapSize || urls.length <= rest.sitemapSize)) {

After successfully developing the blog, if tried to rebuild it on Netlify - without success.

That is not entirely unexpected. I sometimes get time-outs on netlify depending on how much has changed and how much of the build could be cached. So I usually build locally and then push it to production with the Netlify CLI (gatsby build && netlify deploy --prod).

I retried to develop local but now the following strange error occurs:
const nextSlug = arr[index - 1]?.frontmatter.slug || ``
SyntaxError: Unexpected token '.'

That looks like you're running a version of node that doesn't support optional chaining yet. I would try to upgrade to node v14.0.0 or above.

error "gatsby-plugin-sitemap" threw an error while running the onPostBuild lifecycle:

Ah yes, I had that error too which is why I got rid of gatsby-plugin-sitemap again for now (but didn't push that yet) until gatsby#22757 fixes it.

Ah yes, I had that error too which is why I got rid of gatsby-plugin-sitemap again for now (but didn't push that yet) until gatsby#22757 fixes it.

That did the job! Thank you very much for your support!

authors: janosh nathanaelnoir

repo: janosh/blog


text:
🛑 Restaurant Piroschka is down

In a3fdf63, Restaurant Piroschka (https://restaurantpiroschka.com/) was down:

HTTP code: 500
Response time: 361 ms

Resolved: Restaurant Piroschka is back up in 0d5e2e8 after 1 hour, 11 minutes.

repo: janparkio/uptime


text:
🛑 Gracia & Verdad is down

In 9d025ad, Gracia & Verdad (https://gyvpy.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gracia & Verdad is back up in 8cbd183.


text:
Make the directory hierarchy and the file name structure configurable

My wish would be to create the possibility to omit file extensions for HTML documents such as html or php or to make them configurable. So instead of /path/filename.html I would like to use /path/filename or /path/filename/.
Of course, the static copy of the website created may then only be usable with the help of a web server. This is a known fact.
I assume that the URL will be split into its components anyway. Ideally, you could then make the directory hierarchy and the file name structure fully configurable. The components could be assigned to variables or placeholders and then used in the new parameter.
s:scheme
h:host
p:path (with leading but without trailing slash)
f:filename (without last dot and extension)
e:extension (without dot)
b:basename (with all dots and extension)
q:query (without ?)
a:fragment (anchor link without #)

We should make it as simple as possible and stick to the rules of parse_url() and pathinfo().
Example: --custom-site-structure='%s%h%p/%f__%q#%a'
Care must be taken to ensure that there is no collision with the replace-query-string functionality.
Adjusting the file extension for HTML documents would be sufficient for now. However, my ideas may be useful for preparing further configurability in the code, even if this is not yet feasible.

Hi @GitHub-Mike,
the implementation of this function will be quite difficult. When saving to filesystem crawler solves for example conflicts like "/dev.js" (as file) in combination with "/dev.js/file.js". In such a case, the root directory on the disk must not contain "dev.js" as a folder and "dev.js" as a file. But on real sites they set such conflicts and it's fine on the URL level, but unfortunately not on the level of storing the file on disk. I have encountered these conflicts mostly in the web pages of various libraries and frameworks.
These edge-cases then significantly degrade even the possibilities of configurations like you suggest. It's not unrealistic, but it's quite difficult to implement.

the implementation of this function will be quite difficult.

Yes, there are of course a few things to consider when fully implementing configurability.

When saving to filesystem crawler solves for example conflicts like "/dev.js" (as file) in combination with "/dev.js/file.js". In such a case, the root directory on the disk must not contain "dev.js" as a folder and "dev.js" as a file.

Yes, this is a problem with the Windows file system and must be taken into account. However, the request to remove the file extension relates exclusively to HTML documents and not to assets. The idea with the parameters, on the other hand, could be used for the asset structure.

But on real sites they set such conflicts and it's fine on the URL level, but unfortunately not on the level of storing the file on disk. I have encountered these conflicts mostly in the web pages of various libraries and frameworks.

As "said", I would rule out removing the file extension for assets. HTML documents without an extension are saved as folders and require an index.html file within them. This is of course a solution that only works with web servers and not as a local offline variant.

These edge-cases then significantly degrade even the possibilities of configurations like you suggest. It's not unrealistic, but it's quite difficult to implement.

Yes, I am aware of that and that is why some special cases must be analysed and excluded.

authors: GitHub-Mike janreges

repo: janreges/siteone-crawler


text:
🔌 Plugin: Web Terminal

Goal
Provide a plugin to enable access to a web terminal running on a cluster in context
What problem does this solve? Please describe.
-- tbd --
Use cases
As a backstage user, I want easy access to a web terminal running on a cluster in context
Acceptance criteria
-- tbd --
Additional context
Web Terminal Operator: https://github.com/redhat-developer/web-terminal-operator

/assign @mimotej

repo: janus-idp/backstage-plugins


text:
fix(cli): do not change interop mode by default

Do not change interop mode by default but provide an additional CLI argument to allow changing it, either globally or per imported package.
This PR also includes the related ./alpha package when embedding a given package.

/hold

To avoid any disruption risk this PR, which impacts the generated code of dynamic backend plugins, should only be merged after the showcase 1.0.x branch code freeze.


text:
Are there any other crates like this one?

I forked the create as I think it would be a good exercise for me to work a bit with rust.
Just a quick question: Do you know about any crates that provide a similar approach?
I know of https://github.com/dropbox/rust-alloc-no-stdlib which could be used as the underlying allocator for this lib.

There are a few crates that provide Vec like data structures that need no memory allocator like arrayvec but I think you can only allocate the growable collection on the stack. OTOH, heapless lets you allocate growable collections on static memory.

I know of https://github.com/dropbox/rust-alloc-no-stdlib which could be used as the underlying allocator for this lib.

This crate doesn't use a memory allocator.

This crate doesn't use a memory allocator.

Sure, sorry for the missunderstanding. You of course have to supply a (statically) allocated array to the ::new() constructors.
You can check out my progress on this crate if you have the time here

BTW, I'm pretty sure that CircularBuffer.deref will become unsound once you add some method to remove elements (for example: create empty CB, push 2N (N == capacity) elements, pop the last, call deref) so it may be best to remove it.

Yes I also though of that. Using its content with an iterator only would be the best IMO

authors: XOSplicer japaric

repo: japaric/heapless


text:
build sysroot from current directory

closes #28

cc @thejpster

Released v0.1.5 with this fix.

repo: japaric/xargo


text:
feat: initial value can be updated (#52)

Please provide enough information so that others can review your pull request
see #52
Testing
updated tests
Closing issues
closes #52

Thank you!!

authors: jaredLunde schiller-manuel

repo: jaredLunde/form-atoms


text:
Callback breaking Google Auth flow - messages not passed through

I have discovered, when using simple Google Tutorial app, that if the user goes to Google, authenticate successfully and then my app cancels this log in (e.g. because this user was not found in the database) then the Passport flow is completely broken. The message raised (eg "Please Sign Up before using Google Auth") is not propagated and the user is just redirected with an empty request to Login page. This is the complete opposite of what the Local Strategy would do - pass the messages.
This issue can be seen here https://github.com/molt2020/broken-passport/blob/main/routes/auth.js (modified Passport Google tutorial)
All I have done to modify the tutorial is:
passport.use(new GoogleStrategy({
  clientID: process.env['GOOGLE_CLIENT_ID'],
  clientSecret: process.env['GOOGLE_CLIENT_SECRET'],
  callbackURL: '/oauth2/redirect/google',
  scope: [ 'profile' ]
}, function verify(issuer, profile, cb)

{
return cb(null, false, {message : "Please Sign Up before using Google Login"});  // I replaced all logic from the Tutorial with a simple reject message
}

Is this intended behaviour? If so, it is very poor as it doesn't cover a basic scenario where federated authentication is successful but something else fails and we want to inform the customer.
Or, is there a workaround for this scenario??

It was a RTFM in this case - I needed to use failureMessage: true option to be able to collect the message on return from Google. I suggest including this in the todos app as it seems an intuitive thing for the type of eample.

repo: jaredhanson/passport-google


text:
req.isAuthenticated occasionally fails - race condition?

I have set up passport to use a custom authentication scheme, but for arguments sake, imagine it authenticates any user to the app. I have a 'landing' page with a login button that issues a post, handled as follows:
app.post('/:id/landing', function (req, res, next) {
  passport.authenticate('myAuth', function (err, user) {
    if (err || !user) {
      return res.redirect('/' + req.params.id + '/landing' + req.body.redirectTo);
    } else {
      req.logIn(user, function () {
        return res.redirect('/' + req.params.id + '/' + req.body.redirectTo);
      });
    }
  })(req, res, next);
});

later, a route handler matches the redirect:
app.all('/:id/', function (req, res) {
  if (req.isAuthenticated()) {
    res.sendFile('index.html', {root: __dirname + '/../frontend/'});
  } else {
    // Instead of redirecting to /landing, simply render it.
    // this gets round safari issue with losing url fragments during a redirect:
    // https://bugs.webkit.org/show_bug.cgi?id=24175
    //
    res.render('landing', {message: '', previousID: '/' + req.params.id});
  }
});

9 times out of ten, this all works fine, but occasionally req.isAuthenticated will return false. If I put some logging in, I can see that before the redirect I have a valid req.user object, but then in the second route handler following the redirect, req.user is undefined. Sometimes it works, sometimes it doesn't! (When it does work, req.user IS defined in the second route handler) Is this issue the same as others have reported around the user not being serialised correctly?

@benheymink was it the redirect issue you mention in your comment? I'm experiencing the same problem.

@ChristopherGS The issue was that req.logIn is async, and hadn't finished flushing to the session store by the time the next request had come in for the redirect resource. I got around it by manually saving the season before the redirect:
          req.logIn(user, function () {
            // Manually save session before redirect. See bug https://github.com/expressjs/session/pull/69
            req.session.save(function(){
                res.redirect('/someURL');
            });
          });

Hope this helps!

@benheymink thanks for the explanation - will give this a try. Like you say, it's a tricky one because it only shows up about 1 in 10 times.

We also had such issues.
But this issue does not happen on all of our machines, we only see this in some of them.
Do you know what are the conditions that will trigger this?
Could this be some default flags that is uninitialized that causes the behavour?
We ran into the same issues , after a few redirects, the req.user=undefined
currentLng set to: en-US
debug: User is authenticated. Proceeding to the next page
{"req.user":{"password":"$2a$08$kBhANRyFam8eyNt4z8CXw.lNyixXbGVFVFEXNVrLO3agGQfmxy5jS","username":"pure1","_id":"55074542a34c0a9b55fe3a76","__v":0}}
debug: GET /gallery/ 304 162.091 ms - -
currentLng set to: en-US
debug: User is authenticated. Proceeding to the next page
{"req.user":{"password":"$2a$08$kBhANRyFam8eyNt4z8CXw.lNyixXbGVFVFEXNVrLO3agGQfmxy5jS","username":"pure1","_id":"55074542a34c0a9b55fe3a76","__v":0}}
debug: GET /resources 304 164.363 ms - -
currentLng set to: en-US
debug: User is authenticated. Proceeding to the next page
{"req.user":{"password":"$2a$08$kBhANRyFam8eyNt4z8CXw.lNyixXbGVFVFEXNVrLO3agGQfmxy5jS","username":"pure1","_id":"55074542a34c0a9b55fe3a76","__v":0}}
debug: GET /tutorials/ 304 164.499 ms - -
currentLng set to: en-US
debug: User is authenticated. Proceeding to the next page
{"req.user":{"password":"$2a$08$kBhANRyFam8eyNt4z8CXw.lNyixXbGVFVFEXNVrLO3agGQfmxy5jS","username":"pure1","_id":"55074542a34c0a9b55fe3a76","__v":0}}
debug: GET / 304 163.698 ms - -
currentLng set to: en-US
debug: User is authenticated. Proceeding to the next page
{"req.user":{"password":"$2a$08$kBhANRyFam8eyNt4z8CXw.lNyixXbGVFVFEXNVrLO3agGQfmxy5jS","username":"pure1","_id":"55074542a34c0a9b55fe3a76","__v":0}}
debug: GET /tutorials/ 304 165.213 ms - -
currentLng set to: en-US
debug: User failed authentication. Proceeding to the login page
{"auth":false} req.user=undefined
debug: GET /resources 302 241.021 ms - 70

Could it be related to this issue?
https://github.com/jaredhanson/passport/pull/320
That is why I am seeing it happening on some machines consistently and not on other machines.

@smartmouse You are probably seeing it on some machines and not others as the saving of the session is ASYNC. When you debug your app you subtly change the timings of your functions, which is perhaps why it now works. If you want to confirm, try the work around I proposed above, manually saving the session before doing any post-authentication redirect:
      req.logIn(user, function () {
        // Manually save session before redirect. See bug https://github.com/expressjs/session/pull/69
        req.session.save(function(){
            res.redirect('/someURL');
        });
      });

The other issue you linked to is unrelated I believe.

Just spent the better part of the last 3 days trying to figure out what was going on. Exact same issue using Postgres as session store. Intermittently the log in redirect would fail even though the user had authenticated correctly i.e. he would again see the log in screen, but if he typed manually a privileged page, he would see it just fine. All this with express@4.12.2, express-session@1.10.3, connect-pg-simple@3.0.1 and passport@0.2.1
Thanks for the temp solution @benheymink . The forced session.save() workaround seems to work though not sure it resolves the problem 100% of the time. Just stopped seeing failures in a stretch of N consecutive log ins when earlier there were some.

@tkalfigo Weird, it should save it 100% of the time. Are you sure you are only finishing the request/performing a redirect AFTER the session.save callback has completed? Doing the following won't work:
req.session.save()
req.redirect()

Make sure you are finishing the request in the callback:
req.session.save(function(){
  req.redirect()
});

@benheymink I didn't say it doesn't work 100% of the time. I meant that even though I see it working correctly now, I cannot be sure it is full proof. Admittedly, have been working with it the past 2 weeks without problems.

FYI - Just experienced this problem (September 2017) and this fix still works!

@benheymink how do you prevent the req.logIn method from attempting to save the session twice?

If anyone is using cookie-session, the above/following might not work (as the cookie-session's save() does not support callbacks):
req.session.save(function(){
  req.redirect();
});

Managed to get it to work by setting some value on the session before redirecting:
req.session.timestamp = new Date();
req.redirect();

Hi, unfortunately all the fixes described above did not solve the problem. I ended up using https://github.com/expressjs/cookie-session. It worked out of the box. I did not have to change a single line of code except for the config.

2022 and redirect as a callback to login fixed this same issue

authors: ChristopherGS benheymink bradocchs ianormous matthiasprieth mckenzieja smartmouse tilleps tkalfigo

repo: jaredhanson/passport


text:
DOCS: Hello world example of OAuth with Connect, instead of Express

I'm struggling to find examples of passport using just Connectjs and Node HTTP.  Everything seems to reference express.
In the code below I  can get the first step of the OAuth to work (have github return a 'code'). But the next step gets stuck in a loop. Presumably because the passport 'validate callback' is not returning.
background: I'm not planning on using express, I am however using connect middleware. I would like a simple hello world which does not involve sessions nor a database, but just the lowest level connect and node http server.
Thanks in advance.
var connect = require('connect');
var http = require('http');
var passport = require('passport');
var GithubStrategy = require('passport-github2').Strategy;

var requestListener = connect();

const credentials = {
  serviceName: 'github',
  registeredCallbackURL: 'http://localhost:3000/_oauth/github?close',
  step1AuthorizeBasepath: 'https://github.com/login/oauth/authorize?',
  step2RequestTokenBasepath: 'https://github.com/login/oauth/access_token?',
  client: {
    id: '<get-a-token>',
    secret: '<get-a-token>',
  },
  defaultScope: ['user:email', 'admin:repo_hook'],
  defaultXHRState: 'asdf1234', //or a username
};

var USERID = { id: 1 , name: 'whatever'}

passport.use(new GithubStrategy({
    clientID: credentials.client.id,
    clientSecret: credentials.client.secret,
    callbackURL: credentials.registeredCallbackURL,
  },
  //passport's verify callback
  function(accessToken, refreshToken, profile, done) {
    console.log('accessToken: ', accessToken);
    console.log('refreshToken: ', refreshToken);
    console.log('profile: ', profile);

    process.nextTick(function () {
      return done(null, USERID);
    });
  }
));

// serialize the user
passport.serializeUser(function(user, done) {
    return done(null, USERID.id);
});

// used to deserialize the user
passport.deserializeUser(function(id, done) {
    console.log('User', 'hello');
    done( null,  USERID );
});

requestListener.use('/login', passport.authenticate('github', { session: false }) );

requestListener.use( '/_oauth/github',  passport.authenticate('github', {
  session: false,
  successRedirect: '/success',
  failureRedirect: '/fail' })
);

requestListener.use('success', function(req, res) {
  console.log(req.url);
  res.end('Login sucess\n');
})

http.createServer( requestListener ).listen(3000);

Cross posted here:
http://stackoverflow.com/questions/40498686/example-of-passport-js-oauth-without-using-express-only-using-connectjs-and-nod

@jaredhanson Please, can you take a look and see if I'm doing anything obviously wrong with this code. I'm following examples from the documentation.

@jaredhanson ping

@jaredhanson I updated this for simplicity. Is tis possible?


text:
The command: /mt loot

While I believe that the help command doesn't list /mt loot, but it'd be nice to be able to get a log of all of the loot containers. Right now, this command simply returns an error.

Mc version?
On Nov 30, 2016 9:09 PM, "Andrew Sage" notifications@github.com wrote:

While I believe that the help command doesn't list /mt loot, but it'd be
nice to be able to get a log of all of the loot containers. Right now, this
command simply returns an error.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/104, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFS9xd8P3LzCF2o6sxlkb4EjSw9zbLhMks5rDcnbgaJpZM4LAkJR
.

1.10.2, CraftTweaker version 3.0.15

Loot isn't supported in 1.10+
On Nov 30, 2016 9:18 PM, "Andrew Sage" notifications@github.com wrote:

1.10.2, CraftTweaker version 3.0.15
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/104#issuecomment-263967412,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFS9xVJ6Mj7QwVAQulabw5VHSPXlyiA8ks5rDcwZgaJpZM4LAkJR
.

Any chance it will be?

Hopefully soon, not sure when, but by the end of the year
On Nov 30, 2016 9:21 PM, "Andrew Sage" notifications@github.com wrote:

Any chance it will be?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/104#issuecomment-263968088,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFS9xamAE5p88UI2OEMrlJS9Ioha8gekks5rDcyogaJpZM4LAkJR
.

Awesome; we have too many mods that add too much loot. Thanks, Jared.

@jaredlll08
I've made a CT addon that allows loot tables to be tweaked. Would you like to take a look at the code?

Please!

@jaredlll08
Here's the repo : https://github.com/Leviathan143/LootTweaker
The important classes are LootTableTweaker, ZenLootTableWrapper, and ZenLootPoolWrapper
Docs for the ZenScript functions can be found on the repo wiki

Thanks @Leviathan143 ! I hope your patches get added to the main release!

@vpontin Thank you!
LootTweaker is actually available right now if you want to use it.
You can get it here

At this point, there are too many other options for this, LootTweaker and LootTableTweaker, so it would be unfair for me to implement this and kill off 2 mods.


text:
[1.10.2] Server-Crash on Linux

Seems like for some reason CraftTweaker has a X11 problem?
Why does it even need X11?
CraftTweaker: 3.0.15
Forge: 12.18.2.2139
OS: Debian 8.6 (64Bit)
Crashlog: http://pastebin.com/VNPAzYc5
fml-server-latest: http://pastebin.com/WZvwRFSv
minetweaker.log is empty.
If you need any other informations, let me know!

I see that this bug was fixed a month ago. Could we please get a new build? I get the same error with a headless server. 3.0.15 seems to be the latest release, but it looks like the bug was fixed after that.

3.0.13 is the latest version that can be used on a linux server.
For now, use that version and wait for an update, jaredlll08 is realy busy atm.

Thanks for the info, and the hard work. This is a really useful mod.

authors: A-Smith UnPure


text:
Activate Travis

Hi @jaredly, I have added Travis testing. It seems, that I don't have rights to enable this repository. Can you please try to do that?

@jaredly Can you please activate the Travis? It should be done on page https://travis-ci.org/profile/jaredly

https://travis-ci.org/jaredly/django-feedback

authors: PetrDlouhy jaredly

repo: jaredly/django-feedback


text:
fix(command): prevent executing Cypress.*-code before cypress initialization

Hi!
I am a user of your plugin.
I try to write my own plugin using your plugin as a basis.
But I have faced with this problem.
Problem:
Imagine that you have plugin.js-file:
import {
    addMatchImageSnapshotPlugin,
    matchImageSnapshotPlugin,
} from 'cypress-image-snapshot/plugin';

export function tuiAddSnapshotPlugin(on, config) {
    addMatchImageSnapshotPlugin(on, config);
    // ...
    on('after:screenshot', details => {
        // ...
        return matchImageSnapshotPlugin(details);
    })
}

And you have this command.js-file:
import {addMatchImageSnapshotCommand} from 'cypress-image-snapshot/command';

export function tuiAddMatchImageSnapshotCommand(options) {
    // ... some new logic
    addMatchImageSnapshotCommand(options);
}

Finally, everything is wrapped by index.js-file:
export * from './command';
export * from './plugin';

When you try to import plugin and command from your index.js and use it inside your cypress-tests, you will get error:
ReferenceError: Cypress is not defined

This happens because exporting of the plugin happens earlier than command (when Cypress is not yet ready). But some code (the changed lines of this PR) is not isolated by any function scope and we get the error.
My PR will help to solve this problem without changing any logic of your code.

@jaredpalmer could you review my contribution, please ?

repo: jaredpalmer/cypress-image-snapshot


text:
 and withFetch

So I know fetch, I like fetch, and now that I see that wrapping the Fetch api is on this component's roadmap I'm interested in trying to implement it.
What props would it need? My initial assumption is something like this:
-render: (response) => stuff to render
render would also call response.json(), response.blob() etc before giving you the response depending on the mime type
-renderUntilResponse: () => stuff to render until the response comes, default render nothing
-renderIfFailed: (response) => stuff to render if it comes back with a non-20* response, default render nothing
-endpoint: string
-requestOptions: object, default {}
-rawRequest: boolean, don't call .then(response => response.json()) before handing the request object over to the render prop. Default false.
Am I missing anything? Is this not what y'all had in mind for a fetch component?

@JNaftali hey there, how about an API that is closer to fetch? I've built a working prototype on codesandbox to see how it works:
https://codesandbox.io/s/3v3093yolp

authors: JNaftali ksmth

repo: jaredpalmer/react-fns


text:
Support specifying a prefix path in bucket

Please support specifying a prefix path in the destination bucket. When using CloudFront, it is possible to serve content from a subpath in a bucket, and there are use cases that require this with direct S3 websites as well.
The same bucket might house multiple variants of the same website, or access logs, or anything else in addition to the website.

@drewbietron Using this for versioning sounds interesting, but my understanding is that if a static file (e.g. an image) hasn't changed then it will have the same file name. gatsby-plugin-s3 should detect that the file already exists (and has the same checksum) and skip uploading that file. Is it uploading 4GB every time you deploy? I don't think that should happen.

Is there any progress on getting that branch merged? I'm in need of this change 😄

Right now in it's current state it will overwrite the existing routing rules, so if you have multiple gatsby sites in the same bucket, it will keep overriding the most previous deployed gatsby site's redirects, so I still need to make it merge with any existing rules.
Additionally, the tests appear to be failing, haven't really looked into as of why yet.
You're welcome to fork the feature/prefix branch and continue work on it, I'm likely pretty busy this week sadly.

I've been running the branch for the past week and it seems to be working decently. I only have a single site, but I can confirm the main features of it work. I don't really have time to look into the merging of multiple sites sorry.

If the branch seems to be working fine, when do you guys think it could get raised as a PR and be merged?

Released in 0.3.0

Hi, I'm not able to make this work here is my config   {   pathPrefix: `/v2`,   siteMetadata: {     title: ``,     description: `We Got Your App`,     author: `@`,     siteUrl: ``,   },   plugins: [     `gatsby-plugin-react-helmet`,     {       resolve: `gatsby-source-filesystem`,       options: {         name: `images`,         path: `${__dirname}/src/images`,       },     },     `gatsby-transformer-sharp`,     `gatsby-plugin-sharp`,     `gatsby-plugin-layout`,     `gatsby-plugin-sass`,     `gatsby-plugin-antd`,     `gatsby-plugin-sitemap`,     `gatsby-plugin-robots-txt`,     {       resolve: `gatsby-plugin-manifest`,       options: {         name: `site-new`,         short_name: ``,         start_url: `/v2`,         background_color: `#663399`,         theme_color: `#663399`,         display: `minimal-ui`,         icon: `src/images/ms-icon-310x310.png`, // This path is relative to the root of the site.       },     },     {       resolve: `gatsby-plugin-s3`,       options: {         params: {           "fonts/**/**.ttf": {             CacheControl: "public, max-age=31536000, immutable",           },           "**/**.ttf": {             CacheControl: "public, max-age=31536000, immutable",           },           "**/**/**.ttf": {             CacheControl: "public, max-age=31536000, immutable",           },         },         bucketName: process.env.S3_BUCKET_NAME,         pathPrefix: `/v2`,         region: process.env.S3_BUCKET_REGION,         acl: null,       },     },     {       resolve: "gatsby-plugin-web-font-loader",       options: {         custom: {           families: ["Ubuntu", "alwyn-new-web"],           urls: ["/fonts/ubuntu/ubuntu.css", "/fonts/alwyn-new/alwyn.css"],         },       },     },     {       // ONLY WORKS AFTER THE SITE IS BUILT FOR PROD/STAGING NOT IN DEVELOPMENT MODE       // TO TEST DO gatsby build && gatsby serve       resolve: "gatsby-plugin-hubspot",       options: {         trackingCode: process.env.HUBSPOT_KEY,       },     },     {       resolve: `gatsby-source-contentful`,       options: {         spaceId: process.env.CONTENTFUL_SPACE_ID,         accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,         downloadLocal: true,       },     },     // this (optional) plugin enables Progressive Web App + Offline functionality     // To learn more, visit: https://gatsby.dev/offline     {       resolve: `gatsby-plugin-offline`,       options: {         runtimeCaching: [           {             // Use cacheFirst since these don't need to be revalidated (same RegExp             // and same reason as above)             urlPattern: /(\.js$|\.css$|static\/)/,             handler: `cacheFirst`,           },           {             // Add runtime caching of various other page resources             urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|ttf|tiff|js|woff|woff2|json|css)$/,             handler: `staleWhileRevalidate`,           },           {             // Google Fonts CSS (doesn't end in .css so we need to specify it)             urlPattern: /^https?:\/\/fonts\.googleapis\.com\/css/,             handler: `staleWhileRevalidate`,           },         ],       },     },   ], }

@jariz it looks like what changed in 0.3.0 was supporting the gatsby pathPrefix variable. While this is a useful feature, I think this is different that the original ask here which I believe was more about a deploy prefix.
Example use case:

CloudFront staging.example.com uses my-deploys bucket with /staging as the origin path.
CloudFront featureA.example.com uses my-deploys bucket with /featureA or [sha1] as the origin path.

Or.. the initial use case @nakedible had:

CloudFront www.example.com uses website-bucket bucket with /static as the origin path.
Access logs are also stored in website-bucket under /logs/
Uploads are also stored in website-bucket under /tmp-data/
Etc..

These are all independent from the gatsby prefixPath.

Hi,
I've set the Gatsby pathPrefix, but it's not taken into account when deploying, ie my content is deployed at the root, not in my prefix's location. I'm using version 0.3.1.
Regards

Hi,
I've set the Gatsby pathPrefix, but it's not taken into account when deploying, ie my content is deployed at the root, not in my prefix's location. I'm using version 0.3.1.
Note: the prefix is working fine with gatsby serve, so I figured the problem might come from this plugin.
Regards

Echoing my man's sentiment right here. I'm having this same exact issue. I'm using 0.3.2
Some helo would be great.

Let's reopen this because of all the reports. I'll take a closer look into this soon.

I find a workaround for this issue that doesn't involve changing the plugin.
Taking, for instance, the destination is /v2
{
  "deploy": "mv public public-temp && mkdir -p public && mv public-temp public/v2 && gatsby-plugin-s3 deploy --yes"
}

Is there a workaround for this? I have set:
module.exports = {
    pathPrefix: `/venues`,
    ...
};

Then run gatsby build --prefix-paths and finally gatsby-plugin-s3 deploy --yes but still uploads all content in the root of the bucket. 😖

Another seeming inconsistency with prefixPath: https://github.com/jariz/gatsby-plugin-s3/blob/40516b39a308ccb337b853a36436beaedca86786/src/bin.ts#L196-L198 sets a non-configurable unprefixed key for 404.html.
My current workaround is to:
yarn run gatsby build --prefix-paths
mv public public-temp
mkdir public
mv public-temp public/OUR_PREFIX
cp -rv public/OUR_PREFIX/404.html public/404.html
yarn gatsby-plugin-s3 deploy

BTW is anyone already working on a fix of pathPrefix support? I might be able to do something🤔

After a survey on previous work of pathPrefix support, I got a little confused.
There was a (perhaps wip) branch at https://github.com/jariz/gatsby-plugin-s3/compare/a0917f..feature//prefix authored by @jariz , but it was not merged into master. And no other commit messages mentioned "pathPrefix" "prefix" or alike.
Is this branch meant for this feature? (it would take some effort to port code and resolve conflicts)

the workaround is causing issues in case there are already other items in the s3 bucket as they get deleted

Is there a workaround for this? I have set:
module.exports = {
    pathPrefix: `/venues`,
    ...
};

Then run gatsby build --prefix-paths and finally gatsby-plugin-s3 deploy --yes but still uploads all content in the root of the bucket. 😖

If my thinking is correct, --prefix-paths is just a rule that actually not a folder, and then when run "gatsby-plugin-s3 deploy" it actually clear your bucket so your local public folder's content uploaded to your root bucket......

any new update? i am still facing the same problem :(

Sorry for the long silence on this issue. I've looked at it several times, but the history is confusing and I haven't had the time to properly untangle it.
As jokester said, jariz worked on this in the feature/prefix branch. It appears jariz mistakenly closed this issue when the branch had not yet been merged.
feature/prefix is now out of date, and none of the project maintainers have the bandwidth to work on this issue at the moment. If someone in the community wants to pick up the torch on Jari's branch, I would gladly review a PR.
A few notes:

It seems to me that different people in this thread want different things. The original request wants to upload the site to S3 with a prefix, but still display the site at the root of the domain (for example, using CloudFront). But other people are mentioning gatsby's own pathPrefix which tells Gatsby to expect the site to be served from a non-root path on the domain. I'm not really sure that supporting pathPrefix requires anything from us, but if it does please feel free to open a new issue. This issue specifically relates to applying a prefix to the objects we upload to S3. (We should NOT use the pathPrefix option provided by Gatsby for this, as that's likely to cause all sorts of issues.)

Jari's original work on this predates our updated E2E testing suite. In order for us to merge this now we would need to see it covered by E2E tests.

This issue specifically relates to applying a prefix to the objects we upload to S3

Yep, that's what it is about. Typical use case: Stiching together documentation sites for use with the apollo docs theme. Every sub site is a distinct gatsby site, build under a distinct gatsby path prefix. To deploy all subsites to single bucket, you also need to be able to add an S3 path prefix for uploads (the same as in the build step in this case).
Btw.: Any progress on this? Or would it be easier to handle the upload in a CI script?

authors: ChengSian DirkLachowski JoshuaWalsh ahmadkhalaf1 danprat92 darcy jariz jokester leonfs me4502 melvinalmonte nakedible nodesocket slacabos vincent-prz weslleyss12


text:
Missing Min height before main branch change

This is the missing commit before you merged the old PR and renamed the branches

Thanks

authors: ellogwen fire

repo: jarneson/godot-ply


text:
Store the garth session information and upload the fit file via garth

To reduce the requests during garmin login, the garth session information is stored similar to the withing session data. Also garth is used to upload the fit-file and cloudscrapper is no longer required. I don't know if we can get rid of cloudscrapper or if there is still an advantage if the upload is done with cloudscrapper.
As with my other PR: If you like these changes let me know and I can cleanup. For example the directory in which the garth session is stored should be defined at a central place.

Imho, it looks like this is the way to go.  Garth does all the heavy lifting and should be able to handle MFA as well (not sure if extra code is needed to save the oauth1/2 tokens somewhere)
The directory should ideally be the same place where .withings_user.json is stored.  Iirc it's /root in the containers.
As for cloudscraper: this was a drop in replacement that fixed the last auth issues.  If Garth works without it then I don't see a reason to keep it.

As with my other PR: If you like these changes let me know and I can cleanup. For example the directory in which the garth session is stored should be defined at a central place.

Yes! I very appreciate every PR making this simple and maintanable.
As @stynoo already said, a file should be where the other files are. Currently /root

With https://github.com/matin/garth/pull/9 merged in garth, the garmin upload can be further simplified. Currently the implementation is more of a proof-of-concept, there are some points I personally would change:

Create a custom garth client instead of using the global one (might be overkill)
I don't get why the methods of the GarminConnect class are static, this might be something which was required some time ago. But with the current implementation there are better ways.
If garth is providing the upload method, the GarminConnect class can be remove entierly and everything can be done in the sync_garmin method directly.

Imho, it looks like this is the way to go. Garth does all the heavy lifting and should be able to handle MFA as well (not sure if extra code is needed to save the oauth1/2 tokens somewhere)

Storing the tokens reduces the network request considerably, making the upload process more robust as less things can fail.

The directory should ideally be the same place where .withings_user.json is stored. Iirc it's /root in the containers.

I will look into this.

Garth now natively supports upload as of 0.4.32.
with open("12129115726_ACTIVITY.fit", "rb") as f:
    uploaded = garth.client.upload(f)

Let me know if anyone runs into issues, and I can fix them.

@jrast if you decide to do this ...

Create a custom garth client instead of using the global one (might be overkill)

take a look at how garminconnect creates a custom Garth Client vs using the global one.

authors: jrast longstone matin stynoo

repo: jaroslawhartman/withings-sync


text:
Fix deprecation warning about GLOBAL

This came up on CITGM (https://github.com/nodejs/citgm) and it's
easy to fix.

@jashkenas tag dis

authors: BridgeAR megawac

repo: jashkenas/underscore


text:
ValueObject.Equals bug when objects have a different number of values

When implementing a ValueObject that can have a variable number of values, I encountered a bug with the Equals overload in ValueObject.  Because the MoveNext method is called both in the while statement and the return statement, it will return a false positive when the object on which Equals is called has one more element than the object passed in.  One option to fix this would be to store the result of MoveNext for each collection in variables so they are only called once.  In my case, I replaced the while loop and return statement with: return GetAtomicValues().SequenceEqual(other.GetAtomicValues());  I found this code on the Microsoft Value Object page here: https://docs.microsoft.com/en-us/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/implement-value-objects.

Thank you for your interest in this project. This repository has been archived and is no longer actively maintained or supported. We appreciate your understanding. Feel free to explore the codebase and adapt it to your own needs if it serves as a useful reference. If you have any further questions or concerns, please refer to the README for more information.

authors: jasontaylordev rmatherly

repo: jasontaylordev/NorthwindTraders


text:
Clear all people picker values on click

Hi all,
I have a need to clear the people picker values on click (all of them, not one at a time). Does anyone know how this would be achieved via JavaScript?
Thanks,
K.

I just figured it out:
Using the directive, I was able to update the field values by calling this method:
peoplePicker.RecipientSelected("i:0#.f|membership|myname@email.org", "Smith, Bob M", "bsmith@email.org");

You can also remove selected users in the field via:
peoplePicker.DeleteProcessedUser('i:0#.f|membership|myname@email.org);


text:
Python Program for Merge Sort

Definition of done:

Clear code should be written.
Comments will be really appreciable.
Add minimum 2 test cases to test the code.
Add you code under Python/Data Structure and Algorithms/<ProgramName.py>
Make sure to add the Screenshot of Program Testing in the comment while merging the PR

can i work on this @jatinkumar027

Sure

this task is done . please merge request @jatinkumar027


text:
How to de-obfuscate?

How can I de-obfuscate an obfuscated file?
Sorry for my bad English

you can't

use your 🧠
if you could use it, then you would be asking this question in a better place.

This isn't the place.
(removed my old comment because it was me being mean)

that's the point of obfuscation.
If you have a good knowledge of JS, you can already drastically reduce the complexity, but that'll take time and be pretty painful.

@xampione , please close this issue.

authors: BlackYuzia FartCheese fuka-g xampione


text:
Any input about WASM?

It seems based on Node.js currently, but there's WASM around the corner:
Any input on it w.r.t. to this project?

Hey @mavavilj! Currently this uses Tensorflow.js, which supports CPU, WASM, WebGL, and WebGPU under the hood. If you wish to use the WASM backend, just set that backend like
tf.setBackend('wasm').then(() => {...});
Lemme know if that doesn't make sense, and we can chat more about it.

authors: dcrescim mavavilj


text:
Feature issue #44

Descripción del cambio:

Creación del template para una entrada de blog
Creación de la relacion entre autores y blogs. Esto permitira agregar una sola vez a un autor y todos sus datos al archivo authors.json en la carpeta data y luego usarlo en en el frontmatter del blog unicamente a través de la url del github del autor.

Razón del cambio:
Para no repetir los autores cada vez que se crea una nueva entrada de blog y tener un template general para estas entradas.
Captura:
Archivo authors.json con los datos de los autores

Frontmatter del blog:

Resultado Final:

Otros cambios:
Correccion de la fuente del texto de toda la pagina ya que todo se veia en negrita
Link al origen de este PR:
Closes #44

Genial el pull @cesardlinx, buen aporte bastante completo

@all-contributors please add @cesardlinx for docs, ideas

Genial, muchas gracias @cesardlinx un gran aporte.

Chévere genial! gracias

authors: cesardlinx israteneda rpalaciosg

repo: javascriptecuador/web


text:
🛑 Rodriguez Marin, 88 is down

In 6218b53, Rodriguez Marin, 88 (http://159.65.204.200:7057/) was down:

HTTP code: 502
Response time: 18781 ms

Resolved: Rodriguez Marin, 88 is back up in f4048d2.

repo: javisu/monitor


text:
🛑 Joaquin Bau, 5 is down

In f7ba9ac, Joaquin Bau, 5 (http://159.65.204.200:7056/) was down:

HTTP code: 502
Response time: 18637 ms

Resolved: Joaquin Bau, 5 is back up in 7ceba54.


text:
🛑 Paseo de Extremadura, 298 is down

In 5b61cd0, Paseo de Extremadura, 298 (http://159.65.204.200:7046/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Paseo de Extremadura, 298 is back up in 3a0604c.


text:
🛑 Paseo de Extremadura, 298 is down

In c3d5329, Paseo de Extremadura, 298 (http://159.65.204.200:7046/) was down:

HTTP code: 502
Response time: 18557 ms

Resolved: Paseo de Extremadura, 298 is back up in 4d6252d.


text:
🛑 Castello 110 is down

In 0174345, Castello 110 (http://159.65.204.200:7007/) was down:

HTTP code: 502
Response time: 18638 ms

Resolved: Castello 110 is back up in 08f0298 after 19 minutes.


text:
Missing builds for 1.41 - installer fails.

I've attempted to install on a Macbook Air M1 (11.2) with bash <(curl -s -S -L https://git.io/gyb-install) and running install-gyb.sh both will give me the same output.

You are running MacOS 11.2
Checking GitHub URL https://api.github.com/repos/jay0lee/got-your-back/releases for latest GYB release (unauthenticated)...
Getting file and download URL...
ERROR: Attribute: browser_download_url for macos-x86_64.tar.xz version latest not found

It looks like only the source code was put in release and not the various builds the installers depend on.

strange, not sure how that happened. Try now.

Resolved :)


text:
🛑 UpMob-API NL is down

In e046d32, UpMob-API NL ($UPMOB_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UpMob-API NL is back up in e8cd091.

repo: jayantkatia/status


text:
Memory model soundness

The following example (see this test case) reveals an unsoundness wrt to handling subtypes:
class A extends RuntimeException { }

class UnsatThrows {
	public static void main(String[] args) {
		RuntimeException a = new A();
		try { throw a;
		} catch (Throwable e) { assert false; }
	}
}

The pull that fetches the type of the caught exception only looks at the type RuntimeException and does not see that the type might be A. Hence, the assert false becomes unreachable.

Fixed in this commit. There were in fact two problems:

We did not check invariants of potential subtypes (fixed in this commit.
There was a bug in the SootRunner that caused a hiccup in Soot which dropped the trap and the assert false in the above example.

repo: jayhorn/jayhorn


text:
Mockito should support void static expectations

From johan.ha...@gmail.com on September 11, 2009 16:47:38
implement this
Original issue: http://code.google.com/p/powermock/issues/detail?id=164

From johan.ha...@gmail.com on September 22, 2009 11:45:10
Status: Fixed

repo: jayway/powermock


text:
Add basic support of Google gtag.js

This PR adds the support of the the new gtag.js library from Google.
It provides a new google_analytics_gtag tag, which is included if the GOOGLE_ANALYTICS_GTAG_PROPERTY_ID is set. There are yet not settings supported.

Could you rebase your branch so the PR could be merged?

Could you rebase your branch so the PR could be merged?

Done!

Thank you and sorry for the long wait! :rabbit: :egg: :rocket:

authors: bittner mbourqui

repo: jazzband/django-analytical


text:
The debug toolbar not visible after switching local dev to docker

I glance over all documents again Installation, troubleshooting, System checks. I even upgraded my package to 4.4.0 since it started Automatically supporting Docker rather than having the developer write a workaround for INTERNAL_IPS. The toolbar is not visible at all. There is no error after the system checks, in the browser at the dev console or anywhere. I'm dead end for solutions so I'm looking for help.

Have you set a breakpoint on show_toolbar to see how it's processing that?

authors: berkaykrc tim-schilling

repo: jazzband/django-debug-toolbar


text:
Migrate to GitHub Actions.

Travis CI has a new pricing model which places limits on open source.

https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
https://www.jeffgeerling.com/blog/2020/travis-cis-new-pricing-plan-threw-wrench-my-open-source-works

Many projects are moving to GitHub Actions instead, including Jazzband projects:

https://github.com/orgs/jazzband/projects/1
https://github.com/jazzband-roadies/help/issues/206

This is based on https://github.com/jazzband/contextlib2/pull/26.
TODO:

[ ] @jezdez to add JAZZBAND_RELEASE_KEY to the repo secrets.

Great! Did you leave travis config file on purpose?

@claudep Yeah, not done yet :)

authors: claudep jezdez

repo: jazzband/django-formtools


text:
Drop older Django versions, add new ones

Django < 1.8 are no longer supported upstream, I see no reason to keep them

Anyone available to review this?

repo: jazzband/django-robots


text:
/usr/local/opt/python3/bin/python3.4: no such file or directory

I'm using python version 3.5.1. I did a pip install pip-tools, and it downloaded version 1.6 onto my computer.
Then I ran the command pip-compile requirements.in, but it reported:
/usr/local/opt/python3/bin/python3.4: no such file or directory
Did I do something wrong?

Is there a requirements.in file in the directory you are running the command in?

Closing as there's no activity on this for ~1 year.
Feel free to reopen if you need.

authors: pmayer sivabudh vphilippon

repo: jazzband/pip-tools


text:
Implement Missing Serializations, Refactor Unit tests, Define Default and Unspecified CRS

Hopefully the commit messages explain the changes but to summarize:

Refactored existing unit tests into separate classes and files, each responsible for testing only one system/thing
Swapped out MSTest for NUnit to allow ease of writing parameterized tests
Added missing test cases for certain geo json types
Implemented Equality members on all geometry objects
Optimized serialization/deserialization in Converters
Implemented missing serialization/deserialization implementations for geojson types e.g. MultiPoint, GeometryCollection
Introduced the concept of a Default CRS and Unspecified CRS as per the geojson spec i.e. if a null value is specified for a geojson crs property, this means that the CRS cannot be assumed. However, if no crs property is given then the Default CRS should be used (a geographic coordinate reference system, using the WGS84 datum, and with longitude and latitude units of decimal degrees). The current implementation treats both a null CRS and the lack of a CRS in the geojson object as the same thing, which is incorrect. Since the library is compiled to work with Portable Class libraries, a TypeConverter cannot be used to handle initializing the CRS property on a GeoJSONObject type to a default CRS, so the serialization/deserialization handling is performed via private serialization/deserialization methods.

I should also point out that there's a good chance that I might have broken backwards compatibility, in case this affects your versioning system

@russcam oh my, nice - I'll have a closer look later today (about to head out) and regarding breaking changes: those are 'ok'.. if there are any I'll go ahead and make a major version jump.

@jbattermann cool, if there's any questions about the changes, just let me know. There's a few more things that I am considering doing to handle

different Position implementations
the case where a *Converter instance is passed to JsonSerializer or JsonConvert and an attempt is made to serialize a geojson object that is associated with that converter implementation. You will get an exception relating to a circular dependency because in reality, the *Converter types are used to handle the Coordinates property of geojson types and not the entire object itself (except the PointConverter, which converts GeographicPosition types).

An example
[Test]
public void Can_Serialize()
{
	var polygon = new Polygon(new List<LineString>
	{
		new LineString(new List<GeographicPosition>
		{
			new GeographicPosition(52.379790828551016, 5.3173828125),
			new GeographicPosition(52.36721467920585, 5.456085205078125),
			new GeographicPosition(52.303440474272755, 5.386047363281249, 4.23),
			new GeographicPosition(52.379790828551016, 5.3173828125),
		})
	});

	var expectedJson = GetExpectedJson();
	var actualJson = JsonConvert.SerializeObject(polygon, new PolygonConverter());

	JsonAssert.AreEqual(expectedJson, actualJson);
}

will result in

Newtonsoft.Json.JsonSerializationException : Self referencing loop detected with type 'GeoJSON.Net.Geometry.Polygon'. Path ''.

Yikes - that was one big PR - thanks a lot @russcam .. really - great work!! I've merged it in as is and bumped the version to 0.1.x and since the library itself is still < v1 any potential breaks are fine with me.
Cheers,
-J

authors: jbattermann russcam


text:
usb-driver.py either left mouse button down or up?

Presumably blue.py does the same, because this aspect of the code is the same.(but i haven't gotten bluetooth to pair)
When you start it the left mouse button is down, clicking it once with something else, the boogieboard does not affect the button down/up anymore.
Ideally you would be able to move the mouse by hovering and click pushing down. Perhaps with some config allowing a pressure threshhold. (Maybe stdout could be an option too)
So tried xev,(after trying gimp) it doesn't seem to produce any events, not even motionevents! But the mouse does move. (and generates events exitting/entering the window)

Strange, you should be able to hover and "click" by touching the pen to the tablet. There should also be pressure sensitivity. What parts are working? You can move the cursor but touch/pressure doesn't register? What about the stylus button?

Maybe it is my stupid setup... For some reason i can't make a Xorg.conf or make X detect it(or leave it absent and have X detect)
Also i was running usb-driver.py from TTY, but tried it on the same TTY and it does not seem to matter. I had to run it as root to have sufficient permissions.
Bit worried i am wasting your time.. Still, strange that moving works but it doesn't register movement events.. So basically, no events at all.(not stylus either)

You could add some print statements to inspect "touch" and "pressure", then you'd know if it was an issue getting the events from your boogie board or if it's the uinput configuration.

authors: jbedo o-jasper

repo: jbedo/boogiesync-tablet

license: isc


text:
Refactor away from getCanonicalName() to...

https://github.com/jbee/silk/blob/9217d612a0c9aac7607f98333506b9c98094e618/src/core/se/jbee/inject/Type.java#L432-L437
...somthing with better handling null names https://github.com/sormuras/silk/pull/2#issuecomment-636096996:

Generally update tests - however, if this is the result of Type.toString() the output should not change. In that case the method implementation needs to be adopted so it uses getName() but does special handling for arrays (and maybe also primitives). Anyhow, this is hardly your job so its fine to just ignore the tests and make a common why they need fixing - I can do that later.

Addressed by #103

authors: jbee sormuras

repo: jbee/silk


text:
Speed up Series initialization

switch to list(x) instead of x.tolist() for quick speedup.
To test the performance :racing_car: :
matrix = np.random.normal(size=(100000, 500))
# new
%timeit pd.Series(list(matrix))
# old
%timeit pd.Series(matrix.tolist())

Great, thank you! 🎉

38.1 ms ± 2.17 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
3.35 s ± 41.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

About 80x faster! Crazy. Do we know why?

authors: henrifroese jbesomi

repo: jbesomi/texthero


text:
JBVFS-201 Use simple cycle instead of recursive string concatenation

Fix for ticket https://issues.jboss.org/browse/JBVFS-201
Unnessesary string and char[] allocation affetct server start time

With it fix we reduce char[] allocation by 5GB as result server starting time was also reduse by ~5 second
Without with result:

With fix result:

Thank you for the PR and extensive analysis, but before we merge it, some legal stuff.
We require that all contributions be made under the terms of the MIT License, http://www.opensource.org/licenses/mit-license.php. Do you agree to the these terms?

Hello, yes i agree with these terms

Thank you, I will create new release right away.

authors: Gordiychuk bulanovk ctomc

repo: jbossas/jboss-vfs


text:
Remove JuiceModal and JuiceTooltip

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #2566   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: 🔄 Waiting for checks to pass
This pull request is currently waiting for CI and mergeability checks to pass before being merged.
This comment was auto-generated by Graphite.

Job Reference: lD3buYhoj2XN6gyFTJN3

repo: jbx-protocol/juice-interface


text:
Add migration popup for v1 -> v3 projectIds on relaunch

What does this PR do and why?

Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #2623

PR #2671

PR #2672   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: bNgIkwBqux2UJLmdY4Uy

Graphite Merge Job
Current status: 🔄 Waiting for checks to pass
This pull request is currently waiting for CI and mergeability checks to pass before being merged.
This comment was auto-generated by Graphite.

Job Reference: nnbd1Zy8vknQYYi7LCtZ


text:
fix: JB-499 - Increase Activity heading size to 24px to match other tabs

What does this PR do and why?
Closes JB-499
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] (if relevant) I have tested this PR in all supported browsers.
[ ] (if relevant) I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #3777

PR #3778

PR #3779

PR #3780

PR #3781   👈

This comment was auto-generated by Graphite.

@wraeth-eth started a stack merge that includes this pull request via Graphite.

Graphite rebased this pull request as part of a merge.

@wraeth-eth merged this pull request with Graphite.


text:
JB-593 - Add 'payments to this project' in other rules under cycles & payouts

What does this PR do and why?
Closes JB-593 : Add 'payments to this project' in other rules under cycles & payouts
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] (if relevant) I have tested this PR in all supported browsers.
[ ] (if relevant) I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #3862

PR #3863

PR #3864   👈

This comment was auto-generated by Graphite.

@wraeth-eth started a stack merge that includes this pull request via Graphite.

Graphite rebased this pull request as part of a merge.

@wraeth-eth merged this pull request with Graphite.


text:
Hardware: Waveshare 4.2" ePaper UART screen

4.2inch e-Paper UART Module
This is an E-Ink display module, 4.2inch, 400x300 resolution, with an embedded controller, communicating via SPI interface.

No backlight, keeps displaying last content for a long time even when power down
Ultra-low power consumption, basically power is only required for refreshing
SPI interface, for connecting with controller boards like Raspberry Pi/Arduino/Nucleo, etc.
Onboard voltage translator, compatible with 3.3V/5V MCUs
Operating voltage: 3.3V~5V
Interface: 3-wire SPI, 4-wire SPI
Outline dimension: 103.0mm × 78.5mm
Display size: 84.8mm × 63.6mm
Dot pitch: 0.212 × 0.212
Resolution: 400 × 300
Display color: black, white
Greyscale: 4
Full refresh time: 4s
Refresh power: 26.4mW(typ.)
Standby power: <0.017mW
Viewing angle: >170°
Limited by the hardware processing, it usually takes 1.5s to refresh each single frame image, therefore, this e-Paper is NOT capable of playing animations.

Device
Serial
Purchased from
Date

4.2inch e-Paper UART Module
N/A
Amazon
07/06/2020

Resources

Waveshare
Waveshare product wiki
Waveshare ESPHome component

Pins

Screen
ESPHome

VCC
3v

GND (Ground)
Gnd

DIN (SPI MOSI)
GPIO13

CLK (SPI SCK)
GPIO14

CS (SPI chip selection, low active)
GPIO18

DC (Data/Command high for data, low for command)
GPIO19

RST (External reset, low active)
GPIO21

BUSY (Busy status output, low active)
GPIO5

Ideas

ESPHome projects
BBQ Temperatures

Design time

repo: jcallaghan/home-assistant-config


text:
Update scalafmt-core to 3.7.8

About this PR
📦 Updates org.scalameta:scalafmt-core from 2.7.5 to 3.7.8 ⚠
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #16.


text:
Cannot do instance check on autoray.numpy and ABC

Found when trying to fix https://github.com/pytorch/pytorch/issues/93624.
Repro:
from abc import ABC
from autoray import numpy as np

class Base(ABC):
    pass

isinstance(np, Base)

Error:
Traceback (most recent call last):
  File "/data/users/williamwen/pytorch2/playground3.py", line 7, in <module>
    isinstance(np, Base)
  File "/data/users/williamwen/py310-env/lib/python3.10/abc.py", line 119, in __instancecheck__
    return _abc_instancecheck(cls, instance)
  File "/data/users/williamwen/py310-env/lib/python3.10/abc.py", line 123, in __subclasscheck__
    return _abc_subclasscheck(cls, subclass)
TypeError: issubclass() arg 1 must be a class

I got around this by adding
if fn == "__class__":
    return NumpyMimic

in the NumpyMimic class __getattribute__. Perhaps additional cases need to be added as well?

Thanks for the issue, should be fixed by #21, will merge and mint a release shortly.

repo: jcmgray/autoray


text:
Fixing typo in setup_package files and adding missing content types

This PR should fix the file not found errors you're getting from the CIs. Let me know if you would rather prefer if I push directly to your branch changes like these.
xref to the astroquery PR: https://github.com/astropy/astroquery/pull/836

@bsipocz Thanks for your fix. Please, feel free to push changes in our branch.
We have to admit that we are quite new working with git, as our primary working tool is svn. So, please, do not hesitate to guide us in these git workflows. Thanks!

@jcsegovia - Sure. If you run into specific question, feel free to ping me and we can chat about it on e.g. gitter (for some weird reason I don't get the notifications from there, so the ping has to be here on GH).

authors: bsipocz jcsegovia

repo: jcsegovia/astroquery


text:
File explorer appears broken on macOS

Given a folder with ~280 files, scrolling through it the file explorer at some point only shows empty space instead of the expected file list. The point where the list stops showing randomly moves. It shows shuffling of file names while scrolling.
To Reproduce
Steps to reproduce the behavior:

Given bash, in the vault, do:
mkdir Test
touch Test/{1..200}-{bla,blupp,foo,bar,bozz,bazz,duzz,dazz}.md
expand "Test" folder in the file explorer, scroll to where it stops working, notice the file name
close and re-open folder, scroll, for me it stops working at a different file.

Tested in an iCloud vault as well as in a local vault.
Expected behavior
Should list files as quickly as other themes do. I validated that this works well with the default theme.
Screenshots

Version [Desktop or Mobile]:

Obsidian 0.12.19
current Sanctum theme
macOS Big Sur 11.6.1

Thanks for the detailed post! I was able to replicate the issue, and will look into it! I've added it to the Roadmap, in case you want to follow on its progress.

Came here to report this is happening to me on Windows and found this issue. In case it helps, here's another gif.

Just pushed a fix for this! Should now work normally. :)

authors: eleanorkonik hinnerk jdanielmourao

repo: jdanielmourao/obsidian-sanctum


text:
Apply peasyCam matrix onto PGraphics3D

At the moment I am working on a multi-pass rendering in processing. There I have to use a new PGraphics3D canvas and I can not use the default g object. After the rendering and shading, I'm just going to "print" it on to the g object again as texture:
cam.beginHUD();
image(canvas, 0, 0);
cam.endHUD();

Now I have the problem that things like peasycam do not work anymore because they are attached to the original g and do not transform the camera matrix of my canvas.
So I tried to use the camera matrix of the original graphics and copy it to my canvas:
PGraphics3D p = (PGraphics3D)this.g;
canvas.camera = p.camera;

This did not work, maybe because peasycam is doing something special and it does not change the original camera matrix. So my next idea was to use the static apply method from peasy cam. I had to copy the function out of the original code and make it public:
import peasy.org.apache.commons.math.geometry.Rotation;
import peasy.org.apache.commons.math.geometry.Vector3D;

Vector3D positionVec = new Vector3D(cam.getPosition()[0], cam.getPosition()[1], cam.getPosition()[2]);
Vector3D rotationVec = new Vector3D(cam.getRotations()[0], cam.getRotations()[1], cam.getRotations()[2]);
apply(canvas, positionVec, new Rotation(rotationVec, 0), cam.getDistance());

Here the apply method:
void apply(final PGraphics g, final Vector3D center, final Rotation rotation,
  final double distance) {
  final Vector3D pos = rotation.applyTo(Vector3D.plusK).scalarMultiply(distance).add(center);
  final Vector3D rup = rotation.applyTo(Vector3D.plusJ);
  g.camera((float)pos.getX(), (float)pos.getY(), (float)pos.getZ(), //
    (float)center.getX(), (float)center.getY(), (float)center.getZ(), //
    (float)rup.getX(), (float)rup.getY(), (float)rup.getZ());
}

There I always have a zero norm for rotation (Arithmetic Exception).
So my final idea was to just copy all the rotations and translation to my camera matrix:
canvas.beginCamera();
canvas.camera();

canvas.rotateX(cam.getRotations()[0]);
canvas.rotateY(cam.getRotations()[1]);
canvas.rotateZ(cam.getRotations()[2]);

canvas.translate(
  cam.getPosition()[0],
  cam.getPosition()[1],
  cam.getPosition()[2]);

canvas.endCamera();

So now I could rotate my cube, but it was not accurate and I think there is something wrong with some axis.
I would like to ask if someone has done this before and if there is a simple method to do this?

I'd guess that instead of canvas.camera = p.camera you'd have to copy the peasycam camera, as in canvas.camera = new PMatrix3D(p.camera).
But this is just a guess.

Found this as solution. Works great!
cam.getState().apply(canvas);

Oh, yeah. That's what that's for. :)

authors: cansik jdf

repo: jdf/peasycam


text:
Add MAGIX as hard

Hey there! 👋
I had submitted a yet another entry to the list, this time the MAGIX website.
Cheers!

Thanks for your contribution!

repo: jdm-contrib/jdm


text:
Update wordpress difficulty

Closes #234

Thanks for the submission!

authors: Nightfirecat tupaschoal


text:
typo fix and minor translation improvement

@tupaschoal My apology but there is a typo in the translation. I didn't notice until it goes live on the web.  😞
Could you merge this revised version?

No worries @wattachai, thanks for taking the time to review it again :)

Thanks for the merge! I rechecked the Thai version and LGFM. 👍

authors: tupaschoal wattachai


text:
Support for corepack enable npm

Thank you for the excellent tool.
I'm not good at English, so the text might be difficult to read.
Please understand.
Background
Corepack has a feature that throws an error when a different tool than the one specified in the packageManager field of package.json is used. This feature does not work with Node.js installed by mise.
package.json
{
  "packageManager": "pnpm@8.15.6",
}

yarn install failed.
$ corepack enable yarn
$ yarn install

Usage Error: This project is configured to use pnpm

$ yarn ...

But, npm install succeeds.
$ npm install

added 6 packages, removed 71 packages, and audited 4761 packages in 11s

362 packages are looking for funding
  run `npm fund` for details

Other run results.
$ corepack npm install

Usage Error: This project is configured to use pnpm

$ npm ...

$ corepack enable npm
Internal Error: EINVAL: invalid argument, readlink '/home/akineko/.local/share/mise/installs/node/20.12.1/bin/npm'
Error: EINVAL: invalid argument, readlink '/home/akineko/.local/share/mise/installs/node/20.12.1/bin/npm'

$ ls -l ~/.local/share/mise/installs/node/20.12.1/bin/
total 95696
lrwxrwxrwx 1 akineko akineko       45 Apr  3 11:39 corepack -> ../lib/node_modules/corepack/dist/corepack.js
-rwxr-xr-x 1 akineko akineko 97981176 Apr  3 11:39 node
-rwxr-xr-x 1 akineko akineko     1777 Apr  5 15:03 npm
lrwxrwxrwx 1 akineko akineko       38 Apr  3 11:39 npx -> ../lib/node_modules/npm/bin/npx-cli.js
lrwxrwxrwx 1 akineko akineko       41 Apr  5 16:01 pnpm -> ../lib/node_modules/corepack/dist/pnpm.js
lrwxrwxrwx 1 akineko akineko       41 Apr  5 16:01 pnpx -> ../lib/node_modules/corepack/dist/pnpx.js
lrwxrwxrwx 1 akineko akineko       41 Apr  5 15:09 yarn -> ../lib/node_modules/corepack/dist/yarn.js
lrwxrwxrwx 1 akineko akineko       44 Apr  5 15:09 yarnpkg -> ../lib/node_modules/corepack/dist/yarnpkg.js

Proposal
If npm could be made a symbolic link, similar to npx, I predict that corepack enable npm would become usable and the issue would be resolved.

If npm could be made a symbolic link

the problem with this is that it's currently a shim that automatically runs mise reshim when global packages are installed so we can't really get rid of that.

I really like mise's reframing of "legacy version files" to "idiomatic" version files.
Where asdf's framing was focused entirely on compatibility (and wasn't forward-looking at all), the "idiomatic" framing seems to open the door to adding support for newer ecosystem idioms.
Since corepack has become the Node ecosystem standard for communicating Node-specific tools via package.json, it would be awesome if Mise added support for corepack. This could be accomplished either by interpreting the package.json declaration as an "idiomatic" version file.
Integrating directly with the corepack workflow would also be awesome, but that's harder and I think we could get a lot of mileage from simply interpreting the fields used by corepack.

As an aside, I never understood why asdf doesn't already treat engines in package.json as a source of idiomatic version information. I'm a noob to this space and there's probably an obvious reason.

https://nodejs.org/api/packages.html#packagemanager

Since corepack has become the Node ecosystem standard for communicating Node-specific tools via package.json, it would be awesome if Mise added support for corepack. This could be accomplished either by interpreting the package.json declaration as an "idiomatic" version file.

It's not clear what this means practically, is it essentially just that we would run corepack enable [packagemanager.name] && corepack install [packagemanager.name]@[packagemanager.version] when installing node?
I think we could do this, however I am a bit concerned with presenting this to the user as it has a limitation with what would be possible today without significant changes. mise does support "tool options" which seems like the best place to add this information, these are essentially options that modify what happens when tools are installed, e.g.:
[tools]
node = {version="20", corepack="pnpm@1"}

The trouble with this is it only takes place on install and affects that install of node-20 globally. So if you had another project with this configuration:
[tools]
node = {version="20", corepack="yarn@1"}

Then yarn wouldn't necessarily be used in the case you installed the one from the pnpm setup first.
Of course this problem isn't limited to node, but right now we barely used this feature in mise so it hasn't been an issue but if we added corepack it would get used a lot more heavily.
One solution to this would be for project tools to be installed locally to a .mise directory inside the project like node_modules, but that would be a pretty major change to mise with its own set of drawbacks.

authors: akineko jdx wycats

repo: jdx/mise