text:
invocationDidComplete: always give me nil object - iOS

chatHubConnection?.invoke(method: "Market", arguments: [OrderID], returnType: NSDictionary.self, invocationDidComplete: { (args, error) in
if error == nil {
print(args ?? "Not Found")
} else {
print(error?.localizedDescription ?? "Error")
}
})

I am not able to send Any.self as result type
Getting Below Error, Please help
Protocol type 'Any' cannot conform to 'Decodable' because only concrete types can conform to protocols
    self.liveSpaceHubConnection!.invoke(method: "getlatestspacecount", 1, resultType: Any.self, invocationDidComplete: { (args, error) in
        if error == nil {
            print(args ?? "Not Found")
        } else {
            print(error?.localizedDescription ?? "Error")
        }
    })

What is your scenario? What does the server return? Any will not work - all
types of the values sent to/from the server must conform to the
Encodable/Decodable protocol
On Thu, Dec 5, 2019 at 6:23 AM rishbaranwal notifications@github.com
wrote:

I am not able to send Any.self as result type
Getting Below Error, Please help
Protocol type 'Any' cannot conform to 'Decodable' because only concrete
types can conform to protocols
self.liveSpaceHubConnection!.invoke(method: "getlatestspacecount", 1, resultType: Any.self, invocationDidComplete: { (args, error) in
    if error == nil {
        print(args ?? "Not Found")
    } else {
        print(error?.localizedDescription ?? "Error")
    }
})

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/moozzyk/SignalR-Client-Swift/issues/41?email_source=notifications&email_token=AAK7JJAGOSHBR5CYJIQTUJDQXEFEXA5CNFSM4GS5BN7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGA3V5Q#issuecomment-562150134,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAK7JJDJVODKMRGGM6PY6KDQXEFEXANCNFSM4GS5BN7A
.

Message received: {"type":1,"target":"getlatestspacecount","arguments":[[{"spaceTypeId":2,"spaceTypeName":"MeetingRoom","totalCount":4,"availableCount":4},{"spaceTypeId":1,"spaceTypeName":"Workstation","totalCount":4,"availableCount":4},{"spaceTypeId":3,"spaceTypeName":"JITRoom","totalCount":4,"availableCount":3},{"spaceTypeId":4,"spaceTypeName":"FocusArea","totalCount":4,"availableCount":4}]]}
The above is the response that I received from server,
I am quite confuse, how I can read/parse this response
Please help!!

Your server is sending a collection of structured object. You need to create a corresponding struct/class in Swift so that the client could materialize this payload. For instance if you look at the tests the following hub method on the server side returns a collection of structural objects:
https://github.com/moozzyk/SignalR-Client-Swift/blob/4f27d03767e5b98d72819eaf6c24cab36757d0f4/Examples/TestServer/TestHub.cs#L46-L49
Here is how the type is defined on the server side:
https://github.com/moozzyk/SignalR-Client-Swift/blob/4f27d03767e5b98d72819eaf6c24cab36757d0f4/Examples/TestServer/Person.cs#L1-L13
on the client side the corresponding type looks like this:
https://github.com/moozzyk/SignalR-Client-Swift/blob/4f27d03767e5b98d72819eaf6c24cab36757d0f4/Tests/SignalRClientTests/HubConnectionTests.swift#L806-L817
(as a side note, I believe you don't need to explicitly mark that the struct is Codable  - I think if all members are Codable the struct will automatically be Codable) and is invoked as follows:
https://github.com/moozzyk/SignalR-Client-Swift/blob/4f27d03767e5b98d72819eaf6c24cab36757d0f4/Tests/SignalRClientTests/HubConnectionTests.swift#L831-L832
This seems to be exactly what you are after - even the return type is an array.
P.S. Next time please open a new issue instead of hijacking an existing issue which is not only unrelated but also closed.

Sorry about the inconvenience, will definitely take care next time
Able to do solve the issue from above snippets, however getting this below error
error: No handler registered for method 'getlatestspacecount'
It's not possible to set callback with invoke method
Thanks for help.. :)

Handlers are registered like this:
https://github.com/moozzyk/SignalR-Client-Swift/blob/4f27d03767e5b98d72819eaf6c24cab36757d0f4/Tests/SignalRClientTests/HubConnectionTests.swift#L611

Got it thanks for help, already did that, just wondered , if I can pass with invoke method

These are two different scenarios. If your server hub method returns a result you will get it as an input to the invocation completion handler. If the server is invoking a client hub method you will get it as an argument in the client method handler.

authors: NileshKalathiya moozzyk rishbaranwal


text:
ISSUE: image not displaying correctly

Describe the bug
Gif file that shows the various images of mail is stuck to the one that says "No Mail" despite email with images.  Where does it generate the gif file with the images at?
Environment (please complete the following information):

OS: Windows/Docker
Type of device: PC
Home Assistant version: 0.110.3
Hassio/Docker/Core? Docker
Component version: 18.09.6

Logs
Paste your error logs here.
Screenshots
https://photos.app.goo.gl/ik2SnCUD5GJEqWAi7
Additional context
Installed using HACS.

Screen shot the step 2 of your settings.
Need to know what you have set the image output path to.

Not sure exactly what is step 2.  Here is my card and the camera sensor information.  I realized that its pulling the unedited mail_today.gif but im not sure exactly what creates it everyday  or where it places it at after pulling images from the email.

I've also created the /config/images/mail_and_packages folder and placed image-no-mailpieces700.jpg and mail_none.gif in there.
I don't see a mail_today.gif in that folder

I'm experiencing the same.
I'm finding that when the automation runs, the outputting file looks like this:
f72c7bb9-b0fc-47c6-8869-f50b37aa92d5.gif
The letters and numbers change over time, but it is never named mail_today.gif

Please see the wiki for updated information, we have updated automation examples and sensors to help with these.
To explain the filename changes due to a security issue that was brought to our attention, so the file name changes, otherwise your privacy could be compromised (ie: someone could get your home address).

Thanks.  I'm not sure how I missed the wiki

same here. Thanks.. it works, and it's awesome!!!
Ben Woo
(212) 724-1188
thisisbenwoo*@gmail.com http://gmail.com/*
On Mon, Jun 1, 2020 at 5:26 PM Chris notifications@github.com wrote:

Please see the wiki for updated information
https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/wiki/Example-Automations-and-Templates#automations,
we have updated automation examples and sensors to help with these.
To explain the filename changes due to a security issue that was brought
to our attention, so the file name changes, otherwise your privacy could be
compromised (ie: someone could get your home address).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/issues/134#issuecomment-637196203,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK6CPPNJ3ZGFX466EID7XDDRURBJ7ANCNFSM4NQG7V6A
.

source: gharchive/issue

authors: XmemphistoX firstof9 thisisbenwoo

license: MIT

license_type: permissive

license_source: github-api


text:
"npm install" error

I use raspberry pi 0 w with stretch lite and encounter error below
pi@rPi08:/opt/homebridge-camera-rpi $ npm install

curve25519-n@1.4.0 install /opt/homebridge-camera-rpi/node_modules/hap-nodejs/node_modules/curve25519-n
node-gyp rebuild

/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:304:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Linux 4.14.50+
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/homebridge-camera-rpi/node_modules/hap-nodejs/node_modules/curve25519-n
gyp ERR! node -v v4.8.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

ed25519-hap@0.0.5 install /opt/homebridge-camera-rpi/node_modules/hap-nodejs/node_modules/ed25519-hap
node-gyp rebuild

Traceback (most recent call last):
File "/usr/share/node-gyp/gyp/gyp_main.py", line 9, in
load_entry_point('gyp==0.1', 'console_scripts', 'gyp')()
File "/usr/lib/python2.7/dist-packages/gyp/init.py", line 545, in script_main
return main(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/gyp/init.py", line 538, in main
return gyp_main(args)
File "/usr/lib/python2.7/dist-packages/gyp/init.py", line 502, in gyp_main
'cwd': os.getcwd(),
OSError: [Errno 2] No such file or directory
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:304:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Linux 4.14.50+
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/homebridge-camera-rpi/node_modules/hap-nodejs/node_modules/ed25519-hap
gyp ERR! node -v v4.8.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! curve25519-n@1.4.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the curve25519-n@1.4.0 install script.
npm ERR! This is most likely a problem with the curve25519-n package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls curve25519-n
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.14.50+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /opt/homebridge-camera-rpi
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /opt/homebridge-camera-rpi/npm-debug.log
npm ERR! not ok code 0

I followed the same process on my RPi3 and it works perfect. Is this support rPi 0 W?

does the command node work? And if not does nodejs work? If so follow instructions here.
Alternatively use the buildroot image available here.

authors: fanlessfan moritzmhmk

repo: moritzmhmk/homebridge-camera-rpi

license: mit

license_source: bigquery


text:
GraphQL Client: Namespace Client Types and Fields

Problems:
1. Type name collision:
Problems on  Recursive types and alias selections
For example If we have:

type Person (id: ID) {
   name: String!
   parent: Person!
   friend: Person!
}

And we select

{
 user {
   name
    friend {
      name
    }
    parent {
      name
    }
    bestFriend: friend {
      name
      parent {
        name
      }
    }
  }
}

We have to Generate 5 Person types with diferent subsets of field, how we name them?
Solution:

User from {user
UserFriend: from {user{freind
UserParent: from {user{parent
UserBestFriend: from {user{bestFrend
UserBestFriendParent: from {user{bestFrend{parent

each type will have fields with type namespace

maybe is better way do not namespace fields automaticaly:
{
 user {
   name
    friend {
      friendName: name
    }
    parent {
      parentName: name
    }
  }
}

user can namespace field names via GraphQL alias

done

Sorry for writing in a closed comment (didn't want to open a new issue for just a comment), but in this case this solution can be a problem if the client tries to use fragments on somewhat complicated schemas:
{
  user {
    ... userFields
    friend {
      ... userFields
    }
    parent {
      ...userFields
    }
  }
}

fragment userFields on Person {
  name
  #.....many others
}

Sorry for writing in a closed comment (didn't want to open a new issue for just a comment), but in this case this solution can be a problem if the client tries to use fragments on somewhat complicated schemas:
{
  user {
    ... userFields
    friend {
      ... userFields
    }
    parent {
      ...userFields
    }
  }
}

fragment userFields on Person {
  name
  #.....many others
}

thanks @paradoja, i  solved it before with as possible as simple method.
since it already implemented, you could open an enhancement issue for that kind of optimisation.
for example Morheus compiler could check and generate only one type if multiple types have same selection structure.

thanks @paradoja, i  solved it before with as possible as simple method.
since it already implemented, you could open an enhancement issue for that kind of optimisation.
for example Morheus compiler could check and generate only one type if multiple types have same selection structure.

I have a current project that may bump into this soon (I can actually sidestep it, but I may branch it to have the issue). I'll play a bit with it and then open an issue when I have a better idea on how it would be tackled, although I do like your idea.

I have a current project that may bump into this soon (I can actually sidestep it, but I may branch it to have the issue). I'll play a bit with it and then open an issue when I have a better idea on how it would be tackled, although I do like your idea.

authors: nalchevanidze paradoja

repo: morpheusgraphql/morpheus-graphql


text:
Elementary Color Scheme

A darker variant of the Elementary theme.

You don't need to create another folder inside it, just append your color.ini to the existing one while changing its section name, like this. Update the existing README too, by adding your screenshot (and eventually any othe r info you want)

Deleted Extra Folder.

source: gharchive/pull-request

authors: AmitGujar morpheusthewhite

repo: morpheusthewhite/spicetify-themes


text:
Application crashes when you try to add new browser manually

When I try to add second copy of Google chrome, application crashes for me

I'm getting following error message.

Wasn't able to copy stack trace as text, because windows is closing instant after being shown. But was able to make screenshot in time.
I'm using this version:  The first build with dotnet 8
https://pipelinesghubeus26.actions.githubusercontent.com/c6ZAqO2SZWCvRXHkOtRXeBCPSs2zozzGs5vmewezWsUS1xoB2T/_apis/pipelines/1/runs/6/signedartifactscontent?artifactName=MSIX Release Package&urlExpires=2024-04-01T15%3A07%3A02.5483654Z&urlSigningMethod=HMACV2&urlSignature=ek3Id7f%2Brs9eitQ6ryoS9YunUckbpyNmtLVJJyQDFOE%3D
My inital idea was to add second chrome's profile with command line options: --profile-directory="Profile 1" and it crashed.
And I am unable to add it even without command line options.

Please use the latest release and not that old build, I recognize the exception as one I have patched

Adding browsers were very broken in many of the recent builds, only the very latest fixed that feature.

authors: Mart-Bogdan mortenn

repo: mortenn/BrowserPicker


text:
Add 'concat' option in C4 dataset

🚀 Feature Request
Benchmark repo has 2 options for C4 dataset samples: concat and truncate.
For LM training, 'concat' seems to be the only correct way forward. Can the 'concat' option present in the StreamingC4 from the benchmark repo be added to this repo as well?
Motivation
For LM training, using truncate instead of concat makes the training process redundant and the LM fails to learn anything.

Implementation
This works with the benchmark repo, not sure if this can directly be copied over here: https://github.com/mosaicml/benchmarks/blob/main/llm/src/data_c4.py

@abhi-mosaic

Hi @ananyahjha93, thanks for the feature request. I have created a PR https://github.com/mosaicml/streaming/pull/77 to add that support. The full thorough testing is WIP and will let you know once it is merge. Thank You!

Hi @ananyahjha93 , The above PR is merged. Let me know if you face any issues. Thank You!

repo: mosaicml/streaming


text:
Mobile id API credentials are not moving to printing state

Describe the bug
The Mobile id API credentials are not moving to printing state
To Reproduce

Send OTP from api
Request credentials
check the credential's status

Expected behavior
The credentials status should moved to printing state, without any errors
Actual output:
Credential are not moving to printing state
Screenshots

Environment details

MOSIP Version: 1.2.1
MOSIP server: qa-1.2.1.mosip.net

Additional context
{
"id": "string",
"request": {
"additionalData": {},
"credentialType": "vercred",
"encrypt": true,
"encryptionKey": "abc123",
"individualId": "8435214723",
"issuer": "mpartner-default-print",
"otp": "111111",
"recepiant": "",
"sharableAttributes": [],
"transactionID": "1234567890",
"user": "string"
},
"requesttime": "2020-12-02T04:48:08.731Z",
"version": "v1"
}
End point : https://api-internal.qa-121.mosip.net/resident/v1/req/credential/status/18fd4b71-2fbc-43bb-9c84-842551df4aa8

@LoganathanSekar7627 : Please add the root cause of the issue and share the updates to QA team

@Anushree09-N , as the same issue is not reproduced to me. Please check now if it is reproducing for you now and let me know.

@Anushree09-N No root cause found . I tested with the same UIN, and is working fine now. Could be some environment issue by then. Please let me know if this reproduces, so that immediately I will get the logs to see the root cause.

Verifed this issue in QA5 env, the issue is not observed anymore, now the credentials are moving to printing state, hense closing the jira

repo: mosip/inji


text:
Question on: Search

[ERROR]: cannot convert TU_3 to an integer

Could you post your log file, and the command you ran that resulted in the error message?

authors: GForward mothur-westcott


text:
袁威28号发短信代码

此处省略一万字

123123


text:
🛑 protoc-gen-gotemplate.m.42.am is down

In e9e667b, protoc-gen-gotemplate.m.42.am (https://protoc-gen-gotemplate.m.42.am/) was down:

HTTP code: 500
Response time: 202 ms

Resolved: protoc-gen-gotemplate.m.42.am is back up in 80d80eb after 11 minutes.

repo: moul/uptime


text:
[Feature] Criar função para encapsular o preenchimento dos input

Criar função para encapsular o preenchimento dos input,  tratando os diferentes tipos

Feature done

repo: mourats/cytestion


text:
#00-Python

Describe tus cambios
(Opcional) Sobre todo aconsejable si la "Pull Request" se corresponde con una corrección adicional y no con la presentación de un ejercicio.
Comprobaciones
Asegúrate de cumplir los siguientes puntos antes de realizar la "Pull Request":

[x] El título de mi Pull Request sigue este formato: "#[número] - [lenguaje_utilizado]". (Ej: #00 - Python")
[x] El nombre el fichero que se corresponde con el de mi usuario en GitHub más la extensión del lenguaje. (Ej: mouredev.py)
[x] El fichero de corrección se encuentra dentro del directorio del ejercicio y en una carpeta con el nombre del lenguaje de programación utilizado en minúsculas. (Ej: 00/python/mouredev.py)
[x] He revisado que el nombre del directorio del lenguaje no es conflictivo:

c#, no csharp
c++, no cplusplus
go, no golang
javascript, no js

[x] Únicamente he incluido los ficheros de ejercicios. No se aceptarán Pull Requests que contengan archivos adicionales asociados a editores de código o semejantes.

Información

Tienes toda la información sobre los retos semanales en retosdeprogramacion.com/roadmap.
Cada semana se realizará la corrección en directo y publicación de un nuevo reto en twitch.tv/mouredev.
Recuerda que tienes un grupo de apoyo llamado "reto-semanal" en Discord.

#00-python sm-nat.py

repo: mouredev/roadmap-retos-programacion


text:
画像付き記事を作成した場合に、フィードがエラーになる

Movable Type 7 を、レンタルサーバ（ロリポップ）に設置して個人で利用しています。
6 からのアップグレードです。
ブログのテーマをRIMOにしてから気が付いたのですが、アプリから画像付きの記事をアップロードした際、widthとheightの数値がクォーテーションで囲まれていないために、作成されるフィード atom.xml がエラーになります。
widthとheightの数値をクォーテーションで囲んでほしいです。

フィードバックありがとうございます。

authors: NobuoPapa yuji

repo: movabletype/smartphone-app


text:
TEMP: Remove ROS' octomap after 'rosdep install'

Quick, temporary solution for https://github.com/moveit/moveit2/pull/2851#issuecomment-2132370683.

I pulled this into #2851 for now to complete the CI fixes, even though this should really only be a short-term solution.
If possible, we should not prevent users to have the ROS package installed. I'm thinking about solving this by setting a version filter in the find_package call. Unfortunately, we can not declare the liboctomap-dev dependency in the package.xml, but at least we know that it must be available since it must be provided along with fcl.

At least we know that it (octomap) must be available since it must be provided along with fcl.

That's true for moveit_core, but not for geometric_shapes!
I explicitly filed a new PR for this change to not mangle it as part of #2851. This will allow to revert the change more easily in the future.

authors: henningkayser rhaschke


text:
Indexer: add token processors

Summary

RFCs: Link to RFC, Link to RFC, or $\emptyset$.
Categories: any of protocol-units, networks, scripts, util, cicd, or misc.

From issue #759

Changelog
Add the 2 processors: token_processor and token_v2_processor.
token_processor no NFT points contract is defined.
Add env var: ACTIVATE_TOKEN_INDEXING. Default true. Activate or deactivate the token indexing.

Testing

Outstanding issues

One conflict to resolve then good to merge

repo: movementlabsxyz/movement


text:
Making it much easier and fully automated to install and run VerdictDB

No one should have to compile to be able to use.
The default options should work just fine.
For users who just want to install and quickly get a feel for VerdictDB, they shouldn't have to go and spend a lot of time installing Impala or Spark or other hard-to-install engines. Perhaps a docker container or EC2 image or set of command lines or scripts should be used for this purpose

+1 for docker image

I will close this issue in a few days since now we support (1) the maven central repository and (2) the Python packge index (pypi). In case of Python, the installation is now just a single-line command: https://verdictdb.org/download/

authors: barzan devender-yadav pyongjoo

repo: mozafari/verdictdb


text:
Support SVG as XML or Image, part of https://github.com/mozilla/thimble.mozilla.org/issues/1745

This builds on the work of @peiying16 in https://github.com/mozilla/brackets/pull/650, fixing the issue he hit with the preference change not affecting open documents.  I've also rebased it onto master, and will do the same for the Thimble portion too in a moment.
In the process of doing this, I also found and fixed two leaks, where event handlers were being added but not removed, and documents being opened too many times.
@peiying16, @Pomax: can you two please test and review?  Thanks.

this works beautifully

authors: Pomax humphd

repo: mozilla/brackets


text:
Fix #716 - Don't spam live dev console with Bracket's debug info

I commented out the line that was causing the error.

Sorry, I made the same mistake again of making a mess of my branches and ended up re instaling brackets.
I made a new pr:
https://github.com/mozilla/brackets/pull/743


text:
Remove page ID and fix tests at mozcentral

In #5881 we have decided that we can now remove the id from each page div as it is unused and replaced by the more flexible data-page-number attribute. However, there is a test case at http://mxr.mozilla.org/mozilla-central/source/browser/extensions/pdfjs/test/browser_pdfjs_zoom.js that needs to be altered before we can remove this.

Hi,
I'd like to take a crack at this, if that's okay with you.
Where should I start?

Aside from creating a pull request that removes the id from each page div, a patch needs to be prepared to remove pageContainer mentions from http://mxr.mozilla.org/mozilla-central/source/browser/extensions/pdfjs/test/browser_pdfjs_zoom.js. We first need to fix the upstream tests before altering the code in this repository.

Thanks @timvandermeij.
I'll make pull request tonight and get a feel of what's going behind the scenes on this request.
Cheers!

It seems prudent to unblock ongoing web viewer work by making this preprocessor-conditional until someone at Mozilla can commit to removing the dependency entirely. See pull request #6050

So how do I begin in preparing the fix for the upstream tests for browser_pdfjs_zoom.js file?

@awongCM Simplest way is to have build of mozilla-central / firefox on local computer. See https://developer.mozilla.org/en-US/docs/Simple_Firefox_build and after the Firefox is build you can play with tests (see https://developer.mozilla.org/en-US/docs/Mochitest and https://developer.mozilla.org/en-US/docs/Browser_chrome_tests). Tests for PDF.js are located at http://mxr.mozilla.org/mozilla-central/source/browser/extensions/pdfjs/test/.

Thanks @yurydelendik
I tried following the firefox_build instructions you gave me.  As I'm using my Ubuntu Linux(13.0), I went over here.
https://developer.mozilla.org/en-US/docs/Simple_Firefox_build/Linux_and_MacOS_build_preparation.
I had trouble getting the system boostrapping to work, thus I did a number of troubleshooting steps till I reached this line.
sudo apt-get install zip unzip mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libiw-dev libxt-dev mesa-common-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libpulse-dev m4 flex ccache
That failed as it saying something about Connection failed to one of the ubuntu linux servers http://ubuntu.mirror.uber.com.au
Then I attempted to do different commands with sudo apt-get update that failed to work only because of the failed connection as stated above, but because of the creepy error that stays stuck on "Waiting for headers".
andy@LINUXAWCM:~$ sudo apt-get update
[sudo] password for andy:
Ign http://ubuntu.mirror.uber.com.au saucy InRelease
Ign http://ubuntu.mirror.uber.com.au saucy-updates InRelease
Ign http://ubuntu.mirror.uber.com.au saucy-backports InRelease
Ign http://ubuntu.mirror.uber.com.au saucy-security InRelease
Err http://ubuntu.mirror.uber.com.au saucy Release.gpg
  Connection failed [IP: 113.20.13.217 80]
Err http://ubuntu.mirror.uber.com.au saucy-updates Release.gpg
  Connection failed [IP: 113.20.13.217 80]
Err http://ubuntu.mirror.uber.com.au saucy-backports Release.gpg
  Connection failed [IP: 113.20.13.217 80]
Err http://ubuntu.mirror.uber.com.au saucy-security Release.gpg
  Connection failed [IP: 113.20.13.217 80]
Ign http://ubuntu.mirror.uber.com.au saucy Release
Ign http://ubuntu.mirror.uber.com.au saucy-updates Release
Ign http://ubuntu.mirror.uber.com.au saucy-backports Release
Ign http://ubuntu.mirror.uber.com.au saucy-security Release
20% [Waiting for headers]
.......................................
.......................................

I'm really stuck now.   Dont' know what to do next..

I had trouble getting the system boostrapping to work

Sorry to hear. But setting up the Firefox build on Linux is easier than on Mac OSX or Windows. Your issue, however, not related to Firefox build itself, so perhaps try the same steps again later. Or try setting up dependencies one-by-one.

@yurydelendik - I'm using Linux for my Firefox build.
I'm aware it is Ubuntu Linux issue, which is the main blocker from getting bootstrapping to work.
I'll try googling for more answers tonight and see where else this may lead to.
Will keep you posted.

@yurydelendik
I spent some time on this.  With not much better luck.
I even contacted the main author of the bootstrapping site.
He tried assisting me in resolving this nagging issue.  But none of us were successful in doing so.
I'm feeling there's little much we can do as we're both clueless how this happens.
I fear I may have to call it quits on this one unfortunately...
Sigh

Shall I resurrect #6050? We don't use the Firefox extension here so condititionalizing the legacy code works perfectly for us, and I believe the patch will meet all use cases including those of the Netscape team.

@yurydelendik I r?'d you on https://bugzilla.mozilla.org/show_bug.cgi?id=1331795 for switching the mozilla-central test to using the data-page-number attribute.
If I'm doing that correctly, then I'd like to get that in and then PR the changes in pdf.js to not set the id. Is that still valid/desired?

Yes, it certainly is. The upstream patch has been merged, so if you could also create a PR for this repository, that would be great.

so if you could also create a PR for this repository, that would be great.

I don't think we have mozcentral tests in our local repo. The upsteam bug marked as resolved. Closing the issue.

The intent of the issue was to remove https://github.com/mozilla/pdf.js/blob/master/web/pdf_page_view.js#L115. For that the upstream test needed to be fixed first, which has been done now. What still remains is the removal of that line, as discussed in #5881, since it's obsolete.

I see, thanks

authors: awongCM davehouse mcorb timvandermeij yurydelendik


text:
cannot print pdf with right size

Link to PDF file (or attach file here):
document.pdf
Configuration:

Web browser and its version:
FF52.0.2
Operating system and its version:win7 X64
PDF.js version: browser provided
Is an extension: no

Steps to reproduce the problem:

open it with ff
2.print it to a5

What is the expected behavior? (add screenshot)
print it correctly
What went wrong? (add screenshot)
During the first few times of trying it was printed exactly 100% bigger than the pdf file and can only print 1/4 of its left up part of the pdf file.
After a while the size just changed to about 5% bigger than the original pdf file. I don't know what happend here.
The test was conducted both on a virtual pdf printer and a real printer.
Change the settings of the virtual pdf printer can change the size of printing results however ,this didn't work on the real printer. and no matter what I do , the printing results on the real printer cannot be controlled and is sometimes 100% bigger and now
is 5% bigger with content loss
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

I cannot reproduce this issue, using Firefox Nightly 89 (which includes PDF.js 2.9.44).
Given the recent round of printing patches, this issue should now have been fixed.

authors: Snuffleupagus gggllm


text:
Update the FontLoader.bind method to avoid explicitly returning undefined

The only reason for the return undefined; lines was to appease the ESLint consistent-return rule, but that's not actually necessary if you make use of the fact that the method is async and that we can thus await the Promise rather than returning it.

/botio-linux preview

Nice find!

authors: Snuffleupagus timvandermeij


text:
Add an abstract base-class, which all the various Stream implementations inherit from

By having an abstract base-class, it becomes a lot clearer exactly which methods/getters are expected to exist on all Stream instances.
Furthermore, since a number of the methods are identical for all Stream implementations, this reduces unnecessary code duplication in the Stream, DecodeStream, and ChunkedStream classes.
For e.g. gulp mozcentral, the built pdf.worker.js files decreases from 1 619 329 to 1 616 115 bytes with this patch-series.
The only way to review this is probably one commit at a time, with the ?w=1 flag appended to the URL.

/botio test

/botio test

Thank you for all this work; looks much better!

@timvandermeij Thanks a lot for reviewing this patch series; I realize that it cannot have been all that easy, or even fun for that matter!


text:
Revert "Disable failing print actions integration test in Firefox"

Reverts mozilla/pdf.js#14367, since https://bugzilla.mozilla.org/show_bug.cgi?id=1741698 has now been fixed.

/botio integrationtest

/botio integrationtest

Thanks and happy new year :).

Happy new year to you too!


text:
Add celery beat in docker.

Update Dockerfile.

Coverage decreased (-0.01%) to 91.382% when pulling bb12c8fdf989c0ee22d36e2f8305a420741d0a90 on akatsoulas:celery-docker into 010903c95851f761338ed32777e96a40cd7aba0d on mozilla:master.

I am getting this error:
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
 ---> 0f58a6aa879b
Removing intermediate container 2f0c276bb4e1
Step 5 : RUN pip install --require-hashes --no-deps -r requirements/dev.txt
 ---> Running in 4f76b0acaa13

Usage:
  pip install [options] <requirement specifier> [package-index-options] ...
  pip install [options] -r <requirements file> [package-index-options] ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --require-hashes

Coverage increased (+0.02%) to 91.402% when pulling 4f03182455fdae31d01b9796fd025d1b4bd40549 on akatsoulas:celery-docker into d448e4213b1fab1acc03ca36356cafe772da6e1a on mozilla:master.

@johngian pr updated

authors: akatsoulas coveralls johngian

repo: mozilla/remo


text:
Properly detach a videos net stream

Handles the case where null is passed to Video::attachNetStream to stop a video from playing in a Video object. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1119677.

/botio test

repo: mozilla/shumway


text:
Fix #364

Use the default value for line if set, otherwise use 'auto'.

The only failure is the diffs...which from the output looks like auto is different? I'm having ha hard time running this on my machine with node 6.10...

Yeah, tests more or less require node 0.10. Though, last time I made a big change against master, I just tested against travis, haha

Would be nice to see this PR merged


text:
Regarding the issue of converting latitude and longitude to plane pixels

Hello, Author,
I noticed that the custom control feature has been supported, but it doesn’t quite meet my expectations. In Vue, I want to be able to flexibly customize the div elements within the slots. After providing latitude and longitude information to these elements, I want to be able to drag them with the mouse so they move according to the latitude and longitude. However, I encountered issues with converting latitude and longitude to plane pixels. I’ve seen conversions in other issues, but it seems the latitude and longitude conversion doesn’t correspond to the top and left properties on the plane. Thank you.
const coords = this.viewer.mouseEventToCoords(event);
const x = (coords[1] / 360 + 0.5) * imageWidthInPixels;
const y = (0.5 - coords[0] / 180) * imageHeightInPixels;

That looks correct for going to image pixel coordinates for a full equirectangular image, although I'm not entirely sure what you're trying to do with these data.
Where is the mouse event coming from?

对于转到完整等距矩形图像的图像像素坐标来说，这看起来是正确的，尽管我不完全确定您要用这些数据做什么。
鼠标事件从哪里来？

{{ info }}

      <slot />

Here is the template section of the code. Since I haven't found a way for two-way data binding with the points created through hotSpots (and need to insert nodes using the createElement method), I hope to directly insert HTML elements through slot, and similar to hotSpots, have the element move with the latitude and longitude as I move the mouse.

对于转到完整等距正确图像的图像像素坐标来说，这看起来是的，尽管我不完全确定您使用这些数据做什么。
鼠标事件从哪里来？

My current idea is to use document.querySelectorAll('.card') to iterate through the slot nodes like
left
. I have added latitude and longitude information to each element, but I am having trouble accurately placing the latitude and longitude information obtained via mouseEventToCoords in the corresponding position on the canvas.

I am having trouble accurately placing the latitude and longitude information obtained via mouseEventToCoords in the corresponding position on the canvas.

Now I'm confused. When you opened this issue, you referred to the image width and height, but now you're referring to positioning elements on the <canvas>. The mouseEventToCoords method gives you coordinates in the panorama sphere, and the code in your initial issue converts these to pixel coordinates in the equirectangular panorama. None of this has anything to do with placing elements on the <canvas> / in the rectilinear panorama view.
(I will also note that vue-pannellum is an independent project not affiliated with me or Pannellum. I have no experience with Vue.)

我无法将通过获取的纬度和经度信息准确地放置mouseEventToCoords在画布上的相应位置。

现在我很困惑。当你打开这个问题时，你指的是图像的宽度和高度，但现在你指的是在 上定位元素<canvas>。该mouseEventToCoords方法为你提供了全景球体中的坐标，而你最初问题中的代码将这些坐标转换为等距矩形全景图中的像素坐标。这些都与在直线全景视图中将元素放置在 / 上没有任何关系<canvas>。
（我还要指出的是，这vue-pannellum是一个独立项目，与我或 Pannellum 无关。我没有使用 Vue 的经验。）

The problem is quite simple and unrelated to Vue. I just want to add a div element to the page and have it move along with the mouse drag, just like hotSpots. (I feel that hotSpots sometimes may not fully meet my requirements for custom elements.) I'm using style.top and style.left to control the position of the element, but the calculated position does not match the latitude and longitude coordinates.
For example, is there any consideration for an API that supports converting latitude and longitude into canvas-based x, y coordinates?

I am having trouble accurately placing the latitude and longitude information obtained via mouseEventToCoords in the corresponding position on the canvas.

Now I'm confused. When you opened this issue, you referred to the image width and height, but now you're referring to positioning elements on the <canvas>. The mouseEventToCoords method gives you coordinates in the panorama sphere, and the code in your initial issue converts these to pixel coordinates in the equirectangular panorama. None of this has anything to do with placing elements on the <canvas> / in the rectilinear panorama view.
(I will also note that vue-pannellum is an independent project not affiliated with me or Pannellum. I have no experience with Vue.)

Or, for an individual div element, is there a better way to handle its position, similar to hotSpots, so that it can continuously move along?

I am having trouble accurately placing the latitude and longitude information obtained via mouseEventToCoords in the corresponding position on the canvas.

Now I'm confused. When you opened this issue, you referred to the image width and height, but now you're referring to positioning elements on the <canvas>. The mouseEventToCoords method gives you coordinates in the panorama sphere, and the code in your initial issue converts these to pixel coordinates in the equirectangular panorama. None of this has anything to do with placing elements on the <canvas> / in the rectilinear panorama view.
(I will also note that vue-pannellum is an independent project not affiliated with me or Pannellum. I have no experience with Vue.)

Additionally, I want to report an issue, and I'm not sure if it's normal. After clicking, I use mouseEventToCoords to get the latitude and longitude information, then I apply it with viewer.setYaw(28.7274495387245) and viewer.setPitch(406.53421069188386). However, I notice that the position after applying the latitude and longitude does not match the position where the coordinates were originally obtained.

I just want to add a div element to the page and have it move along with the mouse drag, just like hotSpots.

Using createTooltipFunc / createTooltipArgs / cssClass, you can edit the hot spot elements however you like. You get a
 with the pnlm-hotspot-base CSS class, and that
 object is passed to the createTooltipFunc  function, along with createTooltipArgs. Otherwise, you need to replicate the functionality of the internal renderHotSpot function.
The mouseEventToCoords function is entirely unrelated to this.

Additionally, I want to report an issue, and I'm not sure if it's normal. After clicking, I use mouseEventToCoords to get the latitude and longitude information, then I apply it with viewer.setYaw(28.7274495387245) and viewer.setPitch(406.53421069188386).

That pitch is invalid. It is clamped to the range of [minPitch, maxPitch], which is [-90, 90] by default. Thus, 406.5 is clamped to 90.

authors: Xiaohantx mpetroff

repo: mpetroff/pannellum


text:
onPress not ergonomic

The onPress event only gives back the title of what was pressed, which leads to code like this,
onPress= (e) => {
  const {name} = e.nativeEvent;
  if (name === actions[0].title) {
    navigation.push(MemoryAdd, {item});
  } else if (name === actions[1].title) {
    onDelete();
  }
}

It would be more useful if we got an index
Or better if you look at react-native-swipe-view, each action has a callback
Is there one way you prefer, and do you want a hand implementing this?

Gotcha. Yeah I had a specific reason for this when I was first writing it, but I can see the issue. The callback would work fine too, but I was trying to minimize the amount of event blocks being sent over the bridge.
If you would like to take a stab at changing this how you think would be the most ergonomic that would be awesome.

Closed with #4


text:
Document symbols are empty until the document is edited

You need to first edit a document before the symbols provider returns anything. Not sure if this happens upstream or not. Is it related to hiedb?

I would assume that it is only requested after an edit.

Sounds like a question that could be answered by using the open telemetry tracing.

authors: bubba fendor mpickering

repo: mpickering/ghcide


text:
sbt doc fails on @typeclasses methods with scaladocs

Supposing the following implementation:
package example

import simulacrum.typeclass

/**
  * My formatter
  *
  * @tparam A
  */
@typeclass trait Show[A] {
  /**
    * Formats the model
    * @param a
    * @return
    */
  def show(a: A): String
}

object Shows {
  implicit val intShow = new Show[Int] {
    override def show(a: Int) = a.toString
  }
}

object Hello extends App {
  import Shows._
  import Show.ops._

  println(1.show)
}

Build.sbt:
lazy val root = (project in file(".")).
  settings(
    inThisBuild(List(
      organization := "com.example",
      scalaVersion := "2.12.2",
      version      := "0.1.0-SNAPSHOT"
    )),
    name := "Hello",
    addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
    libraryDependencies ++= Seq(
      "com.github.mpilquist" %% "simulacrum" % "0.10.0"
    )
  )

It compiles successfully but running sbt doc will return the following error:
[error] .../simulacrum-doc-bug/src/main/scala/example/Hello.scala:29: value show is not a member of Int
[error]   println(1.show)
[error]             ^

It might have something to do with macro paradise.

I was able to write a typeclass just now that has scaladocs on both the trait and its methods.

authors: amirkarimi fosskers

repo: mpilquist/simulacrum


text:
Fix and/or steps type issue

This fixes #187

Thank you for both PRs, I've just released 3.2.4.1 and added you as a collaborator to the repo.
Tests would be much appreciated as well, by the way. That way you can ensure that your contributions won't be reverted by some future change :) Maybe you can add a simple example like what you described in https://github.com/mpollmeier/gremlin-scala/issues/187 to TraversalSpec.. just an idea.

authors: ddrozdov mpollmeier

repo: mpollmeier/gremlin-scala


text:
Fix phpunit run on Travis-CI

Summary of Changes

Uses GitHub Actions instead of Travis-CI

Remaining Tasks

[ ] Tests run
[ ] Adds workflow

Attribution

@mradcliffe

Doesn't seem like I can get fix-phpunit to run on Travis CI. Abandoning. And can't setup an action without committing first.

repo: mradcliffe/xeroclient


text:
Fix for channel names with spaces

Fix for #691

Please include a test

His 2 lines of code appear to do what they are supposed to, unsurprisingly:
var key = "holy fgdfsf cow"
var space_index = key.indexOf(" ")
var parts = [key.slice(0,space_index), key.slice(space_index+1)]
console.log(parts)
// [ 'holy', 'fgdfsf cow' ]

@laino it's not that I don't trust the code, it's that tests ensure this remains working at every release. If you want to write the test as a part of this or another pull request that would be fine, you're about halfway there with your comment.

@pbihler would you be so kind and add a test? Otherwise LGTM

Fixed by 97db227a8d2098f82472b08e107e02532e73616d
Thx @pbihler :)

authors: BridgeAR brycebaril laino pbihler


text:
[功能請求]希望能增加換頁按鈕

目前股市總覽換頁按鈕只有在卡片區下方
希望能在卡片區上方也增加換頁按鈕

已新增。

authors: WuLaMar mrbigmouth

repo: mrbigmouth/acgn-stock


text:
print format

need to support content-type.
now only support json.

need to data transfer only use []byte.
marshal only for print.
need to change struct

json, xml, form and other string

repo: mrchypark/nydus


text:
Politician Voting Notebook button returns 404

In Feature Projects  the Politician Voting Notebook button returns a 404. Would suggest making this into a README hosted on this repo instead of another

Added in #51

Also in #52

repo: mrciolino/portfolio


text:
Refactor code

Although the receipt-parser works, it's really not too well structured. Might be better for testability (see #4) to clean up the parsers and make the code a bit more object-oriented overall.
Would be happy for anyone who wants to tackle this. Providing mentorship if needed.

Hello, I want to refactor this code. I have already forked and cloned this repository. Since it is my first proper contribution, I shall ask if I have any questions. I shall be following this guide https://docs.python-guide.org/writing/structure/

👋 Hey @Sando1,
thanks for contributing. Looking forward to what you come up with.
The guide looks reasonable to me. Please go ahead with that.
Cheers,
Matthias 😊

This was done by @Sando1 as part of https://github.com/mre/receipt-parser/pull/14. Thanks for this! 🎉

repo: mre/receipt-parser


text:
🛑 SIA is down

In a5ed00e, SIA (https://www.sickleinafrica.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SIA is back up in 8427df5 after 26 minutes.

repo: mrejonas/websitemonitoring


text:
FM6124 and ICN2038S Panel Problem ABC 128x64px

I have a panel with 128x64px and without the D pin (see picture). How do I have to connect it, or isn't it supported by the library?

What happens when you connect? It's probably a 1/8 scan panel which this library doesn't support support (there is an example that works around this though).
Have you tried a test sketch anyway?

The panel I have is from Aliexpress https://de.aliexpress.com/item/4000126043085.html?spm=a2g0s.9042311.0.0.1b6e4c4dtnREMr and a 1/32.
When I connect the panel some pixels are flickering.
https://user-images.githubusercontent.com/25948008/119606094-3393ed80-bdf2-11eb-8213-8383c57d72e2.mp4

Can you try with PxMatrix library and see what configuration you need to make it work?

Can you try with PxMatrix library and see what configuration you need to make it work?

Any news about this? I also have a batch of these 128x64 P2 panels (with the ICN2038S <- not the 'S') chip and it won't work. I tried it with the SmartMatrix library but apparently it’s not compatible with this chipset.
Thank you for any info.

I take it you have set the mxconfig.driver = HUB75_I2S_CFG::ICN2038S;     in your setup ?

The panel I have is from Aliexpress https://de.aliexpress.com/item/4000126043085.html?spm=a2g0s.9042311.0.0.1b6e4c4dtnREMr and a 1/32.
When I connect the panel some pixels are flickering.
WhatsApp.Video.2021-05-26.at.07.15.11.mp4

Have you set the mxconfig.driver = HUB75_I2S_CFG::FM6124; in your setup ? Your photo seems to indicate it's a FM6124 chipset.

Did that fix the issue @reto88 ?

sorry i didn't had time until now, I will check it

I had this same issue, GND on the board is D.
just solved my panel problem

@reto88 @zombodotcom Hi Guys, I would like to know how did you solve the problem with this type of Panels, I just bought one, 128x64 with the FM6124 chipset and no letter D instead is ground, Do you guys have a sketch or some advice so I could make this panel to work? Thanks in advance. I used the mxconfig.driver = HUB75_I2S_CFG::FM6124; chipset but did not work.
This is the SimpleTestShapes sketch I'm using:
`
// Example sketch which shows how to display some patterns
// on a 64x32 LED matrix
//
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
#define PANEL_RES_X 128      // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 64     // Number of pixels tall of each INDIVIDUAL panel module.
#define PANEL_CHAIN 1      // Total number of panels chained one to another
//MatrixPanel_I2S_DMA dma_display;
MatrixPanel_I2S_DMA *dma_display = nullptr;
uint16_t myBLACK = dma_display->color565(0, 0, 0);
uint16_t myWHITE = dma_display->color565(255, 255, 255);
uint16_t myRED = dma_display->color565(255, 0, 0);
uint16_t myGREEN = dma_display->color565(0, 255, 0);
uint16_t myBLUE = dma_display->color565(0, 0, 255);
// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
// From: https://gist.github.com/davidegironi/3144efdc6d67e5df55438cc3cba613c8
uint16_t colorWheel(uint8_t pos) {
if(pos < 85) {
return dma_display->color565(pos * 3, 255 - pos * 3, 0);
} else if(pos < 170) {
pos -= 85;
return dma_display->color565(255 - pos * 3, 0, pos * 3);
} else {
pos -= 170;
return dma_display->color565(0, pos * 3, 255 - pos * 3);
}
}
void drawText(int colorWheelOffset)
{
// draw text with a rotating colour
dma_display->setTextSize(1);     // size 1 == 8 pixels high
dma_display->setTextWrap(false); // Don't wrap at end of line - will do ourselves
dma_display->setCursor(5, 0);    // start at top left, with 8 pixel of spacing
uint8_t w = 0;
const char str = "ESP32 DMA";
for (w=0; w<strlen(str); w++) {
dma_display->setTextColor(colorWheel((w32)+colorWheelOffset));
dma_display->print(str[w]);
}
dma_display->println();
dma_display->print(" ");
for (w=9; w<18; w++) {
dma_display->setTextColor(colorWheel((w32)+colorWheelOffset));
dma_display->print("");
}
dma_display->println();
dma_display->setTextColor(dma_display->color444(15,15,15));
dma_display->println("LED MATRIX!");
// print each letter with a fixed rainbow color
dma_display->setTextColor(dma_display->color444(0,8,15));
dma_display->print('3');
dma_display->setTextColor(dma_display->color444(15,4,0));
dma_display->print('2');
dma_display->setTextColor(dma_display->color444(15,15,0));
dma_display->print('x');
dma_display->setTextColor(dma_display->color444(8,15,0));
dma_display->print('6');
dma_display->setTextColor(dma_display->color444(8,0,15));
dma_display->print('4');
// Jump a half character
dma_display->setCursor(34, 24);
dma_display->setTextColor(dma_display->color444(0,15,15));
dma_display->print("");
dma_display->setTextColor(dma_display->color444(15,0,0));
dma_display->print('R');
dma_display->setTextColor(dma_display->color444(0,15,0));
dma_display->print('G');
dma_display->setTextColor(dma_display->color444(0,0,15));
dma_display->print("B");
dma_display->setTextColor(dma_display->color444(15,0,8));
dma_display->println("");
}
void setup() {
// Module configuration
HUB75_I2S_CFG mxconfig(
PANEL_RES_X,   // module width
PANEL_RES_Y,   // module height
PANEL_CHAIN    // Chain length
);
//mxconfig.gpio.e = 18;
//mxconfig.clkphase = false;
//mxconfig.driver = HUB75_I2S_CFG::FM6126A;
mxconfig.driver = HUB75_I2S_CFG::FM6124;
// Display Setup
dma_display = new MatrixPanel_I2S_DMA(mxconfig);
dma_display->begin();
dma_display->setBrightness8(90); //0-255
dma_display->clearScreen();
dma_display->fillScreen(myWHITE);
// fix the screen with green
dma_display->fillRect(0, 0, dma_display->width(), dma_display->height(), dma_display->color444(0, 15, 0));
delay(500);
// draw a box in yellow
dma_display->drawRect(0, 0, dma_display->width(), dma_display->height(), dma_display->color444(15, 15, 0));
delay(500);
// draw an 'X' in red
dma_display->drawLine(0, 0, dma_display->width()-1, dma_display->height()-1, dma_display->color444(15, 0, 0));
dma_display->drawLine(dma_display->width()-1, 0, 0, dma_display->height()-1, dma_display->color444(15, 0, 0));
delay(500);
// draw a blue circle
dma_display->drawCircle(10, 10, 10, dma_display->color444(0, 0, 15));
delay(500);
// fill a violet circle
dma_display->fillCircle(40, 21, 10, dma_display->color444(15, 0, 15));
delay(500);
// fill the screen with 'black'
dma_display->fillScreen(dma_display->color444(0, 0, 0));
//drawText(0);
}
uint8_t wheelval = 0;
void loop() {
// animate by going through the colour wheel for the first two lines
drawText(wheelval);
wheelval +=1;

delay(20);

/*
drawText(0);
delay(2000);
dma_display->clearScreen();
dma_display->fillScreen(myBLACK);
delay(2000);
dma_display->fillScreen(myBLUE);
delay(2000);
dma_display->fillScreen(myRED);
delay(2000);
dma_display->fillScreen(myGREEN);
delay(2000);
dma_display->fillScreen(myWHITE);
dma_display->clearScreen();
*/
}`

I think when I did it I said screw the markings and made the 1st ground D.
Booted right up.  The PCB markings are wrong.
I'm not at my computer and on vacation right now. Let me know if that helps.

Also how are you interfacing with the hub? Direct to the esp32 ? Or are you using a premade hub75 adapter PCB ?

@

Also how are you interfacing with the hub? Direct to the esp32 ? Or are you using a premade hub75 adapter PCB ?

@zombodotcom Thanks for replying so fast even dough you are on vacation. This is the interface board I'm using, and is compatible with the library's default pins:
https://www.electrodragon.com/product/rgb-matrix-panel-drive-interface-board-for-esp32-dma/
Thanks again.

I used that same board  but the v2 I think, the red one.
Make note of what it says about the pinout:
v2 board
https://w2.electrodragon.com/Board/IDD/IDD1013-DAT/IDD1013-DAT.md#devkitc-board-pin-definitions
https://w.electrodragon.com/w/ESP32_DMA_RMP
https://w.electrodragon.com/w/ESP32_DMA_RMP#Software_ESP32_DMA_Demo_Code_Setup more pin definitions but notice something here as well

I don't remember if I ended up not having to solder those or not. this was a few months ago.
I think I used this sketch for the electrodragon but I cant be sure
https://github.com/jnthas/clockwise/blob/3aeff99fef23c979cd743959fd41b296d8cc89a3/firmware/src/main.cpp
Notice where I setup the pins here to make it bypass the defaults.
https://github.com/jnthas/clockwise/blob/3aeff99fef23c979cd743959fd41b296d8cc89a3/firmware/src/main.cpp#L30
Sorry I can't be more help right now, I don't have the devices in front of me and I wont be back for a while to them.

Also forgot to mention that some of those boards had bad solder or something and was causing weird issues, so I added more solder the the hub75 adapter part and it fixed the flickering.

Thanks @zombodotcom for all the info, the board I'm using right now I know for sure is working fine, I've been using it with other panels and have not have any issues, and yes I'm aware of the pin configuration on the board.
I will take a look and try the clockwise sketch you mentioned and let you know how it went. Thanks again. Enjoy your vacation.

@wilson3682 also noticed this in the readme for esp32 dma library. seems like this person got it working for 128x64 with fm6124
https://github.com/bogd/esp32-morphing-clock/blob/main/code/src/rgb_display.cpp

Yes, he got it worked, but his panel had a full set of ABCDE pins.
I am wondered how manage to work 32s panel wirh only A B C pins. The o ly way I know is use a 595 type multiplexor. But this panel seems doesn't have it.

Hi @board707 I took off the frame and under it I can see there are 8 RT5957DSP multiplexers I found the datasheet here: http://www.raffar.com.tw/upload_file/2019071017305286848.pdf
Also there are 3 74HC245C Octal Bus Transceivers datasheet: https://www.mouser.com/datasheet/2/308/74HC245.REV1-69988.pdf
The rest of the chips are FM6124 shift registers 48 in total. datasheet: https://www.docdroid.net/Oy5GKYW/fm6124-pdf
I'm only referencing the datasheets for Information purposes.
Here is the picture of the board:

I also see that the PxMatrix library may support this type of boards. https://github.com/2dom/PxMatrix/blob/master/README.md#shiftreg_abc---for-rt5957-panels
Thanks!

Now everything has become clearer. The 5957 chip is a shift register type multiplexer. To control it, three pins are enough, this explains why there are only pins A B C on the panel.
Overall, however, this panel is quite a challenge, as it is a combination of a 6124 driver with a shift multiplexer. On any library, you will have to work to run it.
I do not know if it is possible to run it on this library. This is a question for the author, @mrfaptastic
I can offer to try my library, but it only works on stm32 and rp2040 boards, esp32 is not supported

The hardware isn't really relevant here. Should be able to get this to work with any micro.
What existing code works with these panels? Can read it to see if any of it can be ported.

Sorry, I confused 6124 with 6126A, FM6124 is a completely normal driver that should works fine with your library.
As for the shift register multiplexer, you already asked me and I gave you a link to the code for working with it. As far as I can see you have code to support 5266 multiplexer - the 5957 should works exactly the same.


text:
Fix VirtualMatrixPanel scan rates

Fixes #286 and related single display issues
I tried to avoid "fixing" the formatting but it was all over the place so I had to ;)
Would be great if we could get some QC tests, especially for single display VirtualMatrixPanel usage.

Conflicting due to #305


text:
Add key bind to copy path to clipboard without doing the cd

Maybe ctrl+enter or something from the fuzzy finder

To be determined: do we try to use a clipboard crate (haven't found any yet that seem to be cross-platform and well supported) or do we specify a copy_command in config and use it to copy from STDIN?

eh, more complicated than I thought and probably not actually that useful anyway. you can always just go ahead and do the cd, copy pwd, then use ctrlg or cd - to go back to where you were.


text:
[Feature]: Option to run in a floating window like fzf-tmux

Similar Issues

[X] Before filing, I have searched for similar issues.

Description
fzf-tmux lets you run the fzf finder in either a floating window or split pane, then return the results to the original pane. It's very very cool. For our use I think it makes sense to only support the floating window version.
Use Case
Because it looks really awesome 🤩

It can be something like this: https://github.com/mrjones2014/dotfiles/blob/master/scripts/popup
Then we'd basically just replace the way that the $ctrlg_output variable is set in the shell plugin scripts.


text:
Autocomplete suggestions are not displaying (Android)

I tried running your Example.js on both a real device and an android emulator and the autocomplete window does not show up when I enter the letter 'P' in the input field. What I'm expecting is a dropdown that shows the 3 titles as per your animated gif. Is there a known issue with android or any reason why the example isn't working as expected?
I also tried adding a console.log to the 'onShowResult' event and it never outputs to Logcat (which makes me believe something isn't right)
Thanks in advance

I also have same issue. If you solved it, let me know. I waste many time for fixing this issue.

Thanks for reporting the issue! Android is such a PITA. Tried to run it in the emulator ether the app or the emulator os constantly crashing. As soon I have some more time I will investigate further.

@l-urence, it works! But the  component  must be enclosed in a  with style={{zIndex:1}} as per solution to #21. Please keep us updated when the fix is released.

@edwinjue good to now. I will try to fix this latest next weekend.

The problem with Android is that it doesn't  support overflows (or at least not in RN). This is the reason why there is no suggestion list popping-up, because it is hidden by the parent view. Right now the best solution to go with Android is to use the v1.1.2 release until overflows are supported by RN for Android.

Thanks @l-urence

I'm afraid it's not possible to solve this using a single component.
The dropdown list needs to be neighbour to the TextInput in order to be able to overlap other content.
I don't think this will change in upcoming versions of RN.

@fab1an just for Android? In iOS this works well.

Android has a very different rendering system than iOS

If Autocomplete is sibling of other views it does not either:
<View style={{flexDirection:'row', borderBottomWidth: 1, borderBottomColor: 'rgb(197,195,201)', alignItems: 'center', position: 'relative', zIndex: 1,backgroundColor: '#fff'}}>             <View style={{flex: 1}}>               ...             </View>               <Autocomplete                 autoCapitalize="none"                 autoCorrect={false}                 data={((visitors.length === 1 && comp(query, visitors[0].name)) || this.state.clicked) ? [] : visitors}                 defaultValue={query}                 containerStyle={{borderWidth: 0, zIndex: 1}}                 inputContainerStyle={{borderWidth: 0, margin: 0}}                 onChangeText={text => {this.setState({ query: text, clicked: false }); console.log(visitors)}}                 placeholder="Enter visitor name"                 listStyle={{zIndex: 1, position: 'absolute'}}                 style={{backgroundColor: 'transparent', fontSize: 14}}                 renderItem={({ name }) => (                   <TouchableOpacity style={{padding: 5}} onPress={() => this.selectQueryListItem(query, true, name)}>                     <Text>                       {name}                      </Text>                   </TouchableOpacity>                 )}               />             <TouchableOpacity                style={{backgroundColor: '#18AEC3', padding: 10}}               onPress={()=>...}             >               ...             </TouchableOpacity>           </View>

How about using -
https://gist.github.com/tioback/6af21db0685cd3b1de28b84981f31cca
as suggested here - facebook/react-native#6802

v3.0.0 will simplify the integration into Android.
I will close this issue for now, because this is not going to change until there is some kind of support for overflows in RN for Android.

I'm still facing issue making it work, I'd appreciate if anyone can spot where I'm going wrong, auto complete list is displaying inside the container view and not outside of it
This is my code:
<Autocomplete data={isDeparture ? this.state.departureFlightData : this.state.returnFlightData}
                defaultValue={isDeparture ? this.state.countryFrom : this.state.countryTo}
                hideResults={isDeparture ? this.state.hideDepartureFlightData : this.state.hideReturnFlightData}
                placeholder={strings.search_countries}
                listContainerStyle={{ width: '107.9%', zIndex: 99999999 }}
                underlineColorAndroid='transparent'
                containerStyle={{ width: '90%', borderWidth: 0, borderColor: 'transparent' }}
                inputContainerStyle={{ paddingLeft: 5, borderWidth: 0, borderColor: 'transparent' }}
                onChangeText={this.handleOnChange}
                renderItem={
                    item => (/.Item Component./)
                }
            />

<View style={[styles.contentContainer, { zIndex: 2 }]}>
<View style={[styles.cardRow, { zIndex: 2 }]}>
<View style={[styles.cardRow, { zIndex: 2 }]}>
~~~ AUTO COMPELTE IS RENDERED HERE ~~~~
</View>
</View>
</View>

Card Row style:
flexDirection: 'row',
       height: 40,
       justifyContent: 'center',
       alignContent: 'center',
       alignItems: 'center',
       width: '100%',
       backgroundColor: '#FFFFFF',
       shadowOpacity: 1,
       shadowColor: '#cccccc',
       shadowOffset: { width: 1, height: 1 },
       elevation: 1

I'm still facing issue making it work, I'd appreciate if anyone can spot where I'm going wrong, auto complete list is displaying inside the container view and not outside of it. Working as expected on iOS
This is my code:
<Autocomplete data={['data']}
                defaultValue={[]}
                hideResults={true}
                placeholder={strings.search_countries}
                listContainerStyle={{ width: '107.9%', zIndex: 99999999 }}
                underlineColorAndroid='transparent'
                containerStyle={{ width: '90%', borderWidth: 0, borderColor: 'transparent' }}
                inputContainerStyle={{ paddingLeft: 5, borderWidth: 0, borderColor: 'transparent' }}
                onChangeText={this.handleOnChange}
                renderItem={
                    item => (/.Item Component./)
                }
            />

<View style={[styles.contentContainer, { zIndex: 2 }]}>
<View style={[styles.cardRow, { zIndex: 2 }]}>
<View style={[styles.cardRow, { zIndex: 2 }]}>
~~~ AUTO COMPELTE IS RENDERED HERE ~~~~
</View>
</View>
</View>

Card Row style:
flexDirection: 'row',
       height: 40,
       justifyContent: 'center',
       alignContent: 'center',
       alignItems: 'center',
       width: '100%',
       backgroundColor: '#FFFFFF',
       shadowOpacity: 1,
       shadowColor: '#cccccc',
       shadowOffset: { width: 1, height: 1 },
       elevation: 1

I added this line to the AutoComplete props, and it worked like a charm, hope this works for you too!
listStyle={{zIndex: 1, position: 'absolute'}}

It was my messed up view, fixed my views layout and now all is working, sorry for false alarm :)

I added this line to the Autocomplete props, and it worked like a charm, hope this works for you too!
listStyle={{zIndex: 1, position: 'absolute'}}

Not work for me ! Pls anyone help me

I added this line to the Autocomplete props, and it worked like a charm, hope this works for you too!
listStyle={{zIndex: 1, position: 'absolute'}}

Not work for me ! Pls anyone help me

any success??

Is the absolute positioning for Android in docs and examples in this repo still relevant? I see that overflow support has been added since RN 0.57: https://github.com/facebook/react-native/commit/b81c8b51fc6fe3c2dece72e3fe500e175613c5d4

Not working if it is put inside a parent component and the parent component has a sibling below it, even if autocomplete input's parent has position: absolute and zIndex set.

I have tried every possible solution, suggested here. My Component is working fine on ios. But on android list is showing , i can't click. TouchableOpacity is not working. Instead the scroll is getting all the touch events, and other components. Any help would be much appreciated.

I have tried every possible solution, suggested here. My Component is working fine on ios. But on android list is showing , i can't click. TouchableOpacity is not working. Instead the scroll is getting all the touch events, and other components. Any help would be much appreciated.

Me too, any update on this? I'm still waiting for the final solution.

I have tried every possible solution, suggested here. My Component is working fine on ios. But on android list is showing , i can't click. TouchableOpacity is not working. Instead the scroll is getting all the touch events, and other components. Any help would be much appreciated.

Me too, any update on this? I'm still waiting for the final solution.

same here, android fixes makes the options not clickable.

Same ...

Same here :(

same

same

renderTextInput={(text) => (                       <TextInput                         placeholder={'Code postal*'}                         style={{                           flex: 1,                           padding: 0,                           color: 'lightgray',                           marginTop: 7,                           marginBottom: 5,                           paddingRight: 11,                           backgroundColor: '#f1f0f3',                           borderRadius: scale(25),                           width: '100%',                           height: scale(50)                         }}                         onChangeText={(text) => {                           setZipCodeQuery(text);                         }}                         value={zipCodeQuery}                         defaultValue={zipCodeQuery}                       />                     )}

Suggestions were not showing either.
Fixed it by adding renderTextInput prop to the autocomplete props
My example here :
renderTextInput={(text) => (
<TextInput
placeholder={'Code postal*'}
style={{
flex: 1,
padding: 0,
color: 'lightgray',
marginTop: 7,
marginBottom: 5,
paddingRight: 11,
backgroundColor: '#f1f0f3',
borderRadius: scale(25),
width: '100%',
height: scale(50)
}}
onChangeText={(text) => {
setZipChoosen(false);
setZipCodeQuery(text);
testZipCode(text);
}}
value={zipCodeQuery}
defaultValue={zipCodeQuery}
/>
)}

I have tried every possible solution, suggested here. My Component is working fine on ios. But on android list is showing , i can't click. TouchableOpacity is not working. Instead the scroll is getting all the touch events, and other components. Any help would be much appreciated.

I also have the same problem, can some one reopen this issue

Just add 1 line and problem solved.
listStyle={{ position: 'relative' }}
### Before

After

Bump - @mrlaessig  any updates on this issue? Adding above suggestions and still cant select a list item on Android

Bump - @mrlaessig any updates on this issue? Adding above suggestions and still cant select a list item on Android

the same

@mrlaessig @IvanTrutnev yes I managed to get it to work using different styles for iOS and android. For iOS follow normal guide and for android make sure your container has position relative and set an implicit height, then your inner container should have position absolute:
droidContainer: {     position: 'relative',     width: '100%',     height: 120,   },   droidView: {     width: '100%',     position: 'absolute',     zIndex: 1,     flex: 1,   },

This workaround might fit for some. The approach is to grow the height of the parent View together with the result List. It behaves a little bit like an accordion then.  If you need to have it as a real overlay, it is not an option.
`
<View style={[hideResults ? {height: 90} : {height: 270}]}>
<Autocomplete
onShowResult={() => this.showResultCheck()}
onChangeText={text => this.changeValue(text)}
...
>

`
      showResultCheck (){             this.setState({hideResults : true})    }
changeValue(text){    this.setState({ hideResults: false });     ... }
In this way the result List does not Interfere with any touchable element in the background.

This workaround might fit for some. The approach is to grow the height of the parent view together with the result List. It behaves a little bit like an accordion then. If you need to have the result list as a real overlay, it is not an option.
<View style={[hideResults ? {height: 90} : {height: 270}]}>
<Autocomplete
onShowResult={() => this.showResultCheck()}
onChangeText={text => this.changeValue(text)}
...

showResultCheck (){
this.setState({hideResults : true})
}
changeValue(text){
this.setState({ hideResults: false });
...
}
In this way the result List does not Interfere with any touchable element in the background.

@rabidkitten I checked this with example and it works at least on an emulator.

@mrlaessig I had the latest and I used the android emulator as well and I couldn't click or tap on an item. The drop down was working, but I couldn't select an item by tapping or clicking. I just gave up on the component altogether.

@rabidkitten This could happen if they keyboard is still open. Try to pass keyboardShouldPersistTaps: 'always' on flatListProps. See example.

I added this line to the Autocomplete props, and it worked like a charm, hope this works for you too!
listStyle={{zIndex: 1, position: 'absolute'}}

Thanks, worked Perfectly


text:
Redesign to be more Go-idiomatic

This redesign will allow current users of Go to more intuitively engage with Coco for frontend web design.
e.g.

Replace js-like callbacks with go channels.
Centralize event handling (select {} for click/blur/focus/etc channels).
Make overall architecture simpler, less React-like and more Go-like.
Add more transparency for event handler bindings to DOM elements.

main.go

App.html

Please comment, question and criticize!

I was able to get embedding channels in DOM elements (like .Click and .Blur above) working. I started working on a variation of triangle numbers to catch the longest combination names first to infer what the user meant to bind. I'm considering switching to a more reliable pattern, like the name should always end or begin with the event binding (like TestHeadingDblClick or DblClickTestHeading).

New architectural pipeline:

Have been working heavily on the pipeline. 99% of all cases for custom (hybrid) templates have been proven (preprocessing vs. executing). Should have a branch and/or commit for this design coming very soon.

Wiring up events requires listeners to be set after the template is executed by Go's HTML template engine (and our custom preprocessor stage).
Here is the awesome result:

A skeleton of the template and binding structure is created, allowing for template.HTMLAttr() to protect preprocessor bindings for events in element attributes, like the pair of:
<div {{.Click}}>

and
Click <-chan bool

repo: mrmiguu/coco


text:
improve YieldBar in Main scene

[ ] show culture and science with +
[ ] show gold as amount and increase
[ ] show faith as amount and increase
[ ] show tourism

fixed

repo: mrommel/Colony


text:
Delete config.json and expose port

If the config.json exists, the environment variables have no effect at all.
Furthermore, if the port is not properly exposed, jwilder/nginx-proxy will not be able to catch the container.

Is there anything, i can do to get this PR merged?

I think you don't need expose port in dockerfile. I use docker-compose without connecting port error.

This is not relevant for me anymore and there isn't interest, so i'll close this.

authors: panoti rejinka

repo: mrvautin/adminMongo


text:
No parameterless constructor defined for type 'System.String'.

Reproduce:

Create TreeFilter model with Value of type string
Example json:

{
    "Where":
    {
        "OperatorType":0,
        "Operands":[
            {
                "OperatorType":0,
                "Field":"Name",
                "FilterType":1,
                "Value":"Comp"
            }
        ]
    },
    "Skip":0,
    "Take":20
}

Run .Where() with this model
Exception No parameterless constructor defined for type 'System.String'.
StackTrace:

   at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type)
   at QueryDesignerCore.Expressions.WhereExpression.TryCastFieldValueType(Object value, Type type)
   at QueryDesignerCore.Expressions.WhereExpression.GenerateExpressionOneField(Expression prop, WhereFilter filter)
   at QueryDesignerCore.Expressions.WhereExpression.GetExpressionForField(Expression e, WhereFilter filter, String suffix)
   at QueryDesignerCore.Expressions.WhereExpression.GetExpressionForTreeField(Expression e, TreeFilter filter, String suffix)
   at QueryDesignerCore.Expressions.WhereExpression.GetTreeExpression[T](TreeFilter filter, String suffix)
   at QueryDesignerCore.QueryableExtensions.Where[T](IQueryable`1 query, TreeFilter filter)

Looks like exception throws here when trying it with string type.

Nevermind, issue was in json deserialization.

repo: mrxten/QueryDesigner


text:
recuperar variáveis de ambiente

recuperar variáveis de ambiente como login/pass para acesso ao db

concluído


text:
Update perl recipe

From https://github.com/conda-forge/staged-recipes/pull/109

Contains the Mac and Linux changes needed.
Still uses Strawberry Perl on Windows.
Simplified version scheme.
Added self to maintainers.
Reduced about information to Perl (not really sure how to incorporate both)
Use this copy of Perl on all platforms.

As this has already been included in the current Perl package, this will be closed. Thanks for your help.

repo: msarahan/staged-recipes


text:
🛑 Do53 Roost IPv6 UDP is down

In a4a72e1, Do53 Roost IPv6 UDP (http://107.189.10.142:9204) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Do53 Roost IPv6 UDP is back up in bdf1ba4 after 18 minutes.

repo: mschirrmeister/upptime-loopx


text:
🛑 Do53 Roost IPv6 UDP is down

In 2997191, Do53 Roost IPv6 UDP (http://107.189.10.142:9204) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Do53 Roost IPv6 UDP is back up in c7a471f after 12 minutes.


text:
Add better support for keyboard users

I noticed that you can pop-up the extension via keyboard shortcut, but if you have multiple rules, there was no indicator for which rule was focused.  These changes both set the focus to the first rule - by default, nothing was focused previously - and adds an indicator so that you can see which rule is focused:

It's a subtle indicator, but you can see the middle item is selected.
Note that this does change the appearance if you use the mouse, since now the first item will have a slightly different border - since it's the item that's focused:

Hopefully that's alright

Hi @zastrowm.  Looks good. 👍
I'm going to test and release it today.
Thank you for the PR.

Just published it v6.1.1
It will take few hours for update to appear on the Chrome Web Store.
Thank you @zastrowm !

Thanks for being receptive and quick with the merge + update!

authors: mshytikov zastrowm

repo: mshytikov/jira-shortcut


text:
Section: "Considerations for Implementing a Virtual datacenter?" Feedback: First section has the same content twice.

Same content twice in the first section of "Considerations for Implementing a Virtual datacenter":
Identity and directory services
Identity and directory services are a key aspect of all datacenters, both on-premises and in the cloud. Identity is related to all aspects of access and authorization to services within the VDC. To make sure that only authorized users and processes access your Azure account and resources, Azure uses several types of credentials for authentication. These include passwords to access the Azure account, cryptographic keys, digital signatures, and certificates.
Identity and Directory Service
Identity and Directory services are a key aspect of all datacenters, both on-premises and in the cloud. Identity is related to all aspects of access and authorization to services within a VDC implementation. To help ensure that only authorized users and processes access your Azure Account and resources, Azure uses several types of credentials for authentication. These include passwords (to access the Azure account), cryptographic keys, digital signatures, and certificates. Azure Multi-Factor Authentication (MFA) is an additional layer of security for accessing Azure services. Azure MFA provides strong authentication with a range of easy verification options — phone call, text message, or mobile app notification — and allow customers to choose the method they prefer.

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

ID: 82d8a578-f9f1-53af-64d0-808f1fde6c9c
Version Independent ID: 8a647cb7-2d10-53ed-5459-4356ef607e77
Content: Azure virtual datacenter: A network perspective
Content Source: docs/vdc/networking-virtual-datacenter.md
Service: virtual-network
GitHub Login: @tracsman
Microsoft Alias: jonor

Thanks - maybe a badly resolved merge conflict 😺

authors: MikeWasson ryancfields

repo: mspnp/architecture-center


text:
error when running demo.py

root@089e477c0371:/home/cyrilli/Object_detection/FCIS# sh ./init.sh
running build_ext
skipping 'bbox.c' Cython extension (up-to-date)
Warning: Extension name '_mask' does not match fully qualified name 'lib.dataset.pycocotools._mask' of '_mask.pyx'
running build_ext
running build_ext
skipping 'cpu_nms.c' Cython extension (up-to-date)
skipping 'gpu_nms.cpp' Cython extension (up-to-date)
running build_ext
skipping 'gpu_mv.cpp' Cython extension (up-to-date)
root@089e477c0371:/home/cyrilli/Object_detection/FCIS# python ./fcis/demo.py
use mxnet at /usr/local/lib/python2.7/dist-packages/mxnet-0.10.1-py2.7.egg/mxnet/init.pyc
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1777:0,
from /usr/include/python2.7/numpy/ndarrayobject.h:18,
from /usr/include/python2.7/numpy/arrayobject.h:4,
from /root/.pyxbld/temp.linux-x86_64-2.7/pyrex/nms/gpu_nms.c:435:
/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
/root/.pyxbld/temp.linux-x86_64-2.7/pyrex/nms/gpu_nms.c:437:23: fatal error: gpu_nms.hpp: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "./fcis/demo.py", line 29, in
from core.tester import im_detect, Predictor
File "/home/lichuanhao/Object_detection/FCIS/fcis/core/tester.py", line 18, in
from nms.nms import py_nms_wrapper
File "/home/lichuanhao/Object_detection/FCIS/fcis/../lib/nms/nms.py", line 4, in
from gpu_nms import gpu_nms
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 445, in load_module
language_level=self.language_level)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 234, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 216, in load_module
inplace=build_inplace, language_level=language_level)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 192, in build_module
reload_support=pyxargs.reload_support)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.py", line 185, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
self.build_extension(ext)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 498, in build_extension
depends=ext.depends)
File "/usr/lib/python2.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python2.7/distutils/unixccompiler.py", line 124, in _compile
raise CompileError, msg
ImportError: Building module nms.gpu_nms failed: ["CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n"]

Have you solved the problem, I failed even with cython==0.27.3

authors: cyrilli tumitx

repo: msracver/FCIS


text:
Add Jenkins style hash entry

Jenkins has a really nice implementation of crontab that includes a 'H' element that can be used like a number but is different per-job.
So you can do things like:
H * * * *

To get something executed every hour, but at a minute that depends on some externally hashed data. If you then have lots of jobs set up like this you end up spreading the invocations times around the hour rather than having them all doing something at minute 0.
It would be nice if this PHP library supported that sort of thing, what do you think?
I think it implementation would look something like:

Allowing H to be a valid input in the correct places.
Have a way to set some hash data on the cron expression using a PHP method on the class
When computing next times etc, convert the H into a number within the bounds of the currently processing element, using the hash data from the main expression.

Implemented over here:
https://github.com/darthsteven/cron-expression-hash

repo: mtdowling/cron-expression


text:
(Support?) Type errors for dev environment & future plans

I'm looking for a good fork of wcandillon's work. This seems a good place to start off - especially since it's hosted by an Microsoft member.
Sadly, I'm required to have an URL-to-method lookup which may (probably) requires a small rewrite of this module. I'm also required to have properly used return types (partly true of #77).
Per readme, I've been trying to fire up the dev environment using npm run build:watch, which works, but I'm getting a ton of type errors.
At this point in time, I do not  know if this is on a todo - wasn't able to find any hints on this.
I will be able to fix this, but I'd like to have this merged into here, rather than creating yet another fork that get's on npm.
In any case, I have to fix this nevertheless before implementing my wishes.
In case my feature requirements do not meet your opinion, I'd like to keep the core for the both of us the same (and putting my feature on-top).
Looking forward for clarification. Would love to contribute.

Hi @max-scopp!
Seems like you closed this issue. I guess it is still relevant? Were you able to get the environment running? If not, what kind of type errors are you receiving?

Thanks for your Response, I've gotten myself a drink yesterday and reworked the whole template.
I was able to get the environment running and no longer have any errors, if I remember right, they where just jest-specific type problems anyways. Can't reproduce anymore. After checking out the master I now only get Types of property 'additionalProperties' are incompatible.   Type 'boolean' is not assignable to type 'SwaggerType | undefined'..
Anyways, my Version now includes the following features:

Removed superagent, replaced with native fetch (node-fetch as server variant)
Index-based endpoint mapping
changed URL builder(s) {{&methodName}}URL to native URL class

also added missing JSDoc

Endpoint methods are using the {{&methodName}}URL URL builder (less code duplication)
Efficient reverse URL lookup (getMethodForUrl(url: string, method?: string))
Request responses now align with the native Response, except body is kept type-safe

The Response is also a real class SwaggerResponse, rather than a simple object

Generally the clients feel lighter

not validated, just less repeating code as everything is defined in one huge Map and everything else reference to it

I was wondering why specifically the decision was to use superagent. It might be small, but it still is a dependency and a non-standard brewed api. At least with node-fetch it's practically just a polyfill for node.
Today I'm continuing with cleanup, if you're interested in my version, just hit me up. Sadly I would then need an e-mail to invite you on our internal gitlab.
I bet I've gotten something wrong with the parameters and parameters.$queryParameters.
I'm still relatively new to swagger, I tried to stay close to the original as possible, but the template contained a few strange lines.
But it works smooth so far. Would love if you take a look at it!

Cool!
Re. superagent - This is from the original fork, and we havent removed it. In a separate project I am working on using this project we use custom templates where we have removed the superagent usage and rather use XMLHttpRequests. The use of fetch also makes sense, but comes at the cost of needing to polyfill for IE. I don't feel strongly for keeping superagent (except backwards compatibility). @scottc, @Markionium, @Kosta-Github - Any opinions here?
Re. Making SwaggerResponse a class - Does it have to be a class? Making it a class has the downside of resulting in a significantly higher bundle size than just being a simple type
Would be cool to try to incorporate your improvements into the project (at least most of them)!

RE: XMLHttpRequests
I'm using axios in my custom template.
I would also want to have node support, for SSR.
There are some other similar lightweight isomorphic-fetch polyfill libraries, I'm not particularly attached to any specific implementation lib either. As long as it works in all commonly used browsers, and other such run-time environments.
RE: code generation.
My preference would be using static types, and producing as little javascipt code as possible, to reduce bundle sizes.

authors: max-scopp mtennoe scottc

repo: mtennoe/swagger-typescript-codegen


text:
daemonize mode causes error on startup

Hello,
we run frontail using following parameters:
frontail -d --disable-usage-stats -n 2000 \
  --ui-highlight-preset /tmp/frontail-preset --ui-highlight --pid-path /tmp/frontail.pid --log-path /tmp/frontail.log \
  /usr/java/jetty/logs/server.log

-d option causes following error at startup:
node:internal/fs/utils:815
  throw new ERR_INVALID_ARG_TYPE(
  ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (930)
    at Object.writeFileSync (node:fs:1509:5)
    at module.exports (/usr/node/lib/node_modules/frontail/lib/daemonize.js:64:6)
    at Object.<anonymous> (/usr/node/lib/node_modules/frontail/index.js:47:3)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/usr/node/lib/node_modules/frontail/bin/frontail:2:1) {
  code: 'ERR_INVALID_ARG_TYPE'
}

log file (/tmp/frontail.log) is created, but empty,
pid file (/tmp/frontail.pid) isn't created at all,

frontail: 4.9.2 (4.9.1 the same)
node: v15.8.0
npm: 7.5.1

I don't know it is connected, but very often daemonized frontail dies with no trace.
Btw. we use jetty+frontail in dockerized container based on Centos 8

same here... somone has a fix for this?

Unfortunately project looks like a bit dead :/.

The fix is trivial... just stringify this line https://github.com/mthenw/frontail/blob/master/lib/daemonize.js#L68
e.g. from
fs.writeFileSync(params.pidPath, proc.pid);

to
fs.writeFileSync(params.pidPath, String(proc.pid));

While somebody takes care of this fix, I have found a workaround for daemonizing it in a Linux environment
damonize_frontail.sh
$FRONTAIL_LOGFILE=./frontail-log.log
FRONTAIL_PID_FILE=./frontail.pid
$LOGFILE=$1

# start frontail storing pid - put options here before $LOGFILE
frontail $LOGFILE &> $FRONTAIL_LOGFILE & frontail_pid=$!

# write PID to disk
echo "$frontail_pid" > $FRONTAIL_PID_FILE

launch daemon: damonize_frontail.sh <logfile>
lately you can kill it like this
kill_frontail.sh
FRONTAIL_PID_FILE=./frontail.pid
$frontail_pid=cat $FRONTAIL_PID_FILE
kill $frontail_pid
rm $FRONTAIL_PID_FILE

Non-linux user should find a similar workaround for their OSes.

authors: BauerPh ata-sql lamuertepeluda

repo: mthenw/frontail


text:
🛑 https://verify.moj.pna.ps is down

In 362d4fe, https://verify.moj.pna.ps (https://verify.moj.pna.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://verify.moj.pna.ps is back up in f9085fe.

repo: mtitservice/site


text:
🛑 https://takaful.salfeet.plo.ps is down

In 3ecaa78, https://takaful.salfeet.plo.ps (https://takaful.salfeet.plo.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://takaful.salfeet.plo.ps is back up in 632924e.


text:
🛑 https://detulkarm.edu.ps is down

In dd89e94, https://detulkarm.edu.ps (https://detulkarm.edu.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://detulkarm.edu.ps is back up in 934cda1.


text:
🛑 https://www.perc.ps is down

In 034c4aa, https://www.perc.ps (https://www.perc.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://www.perc.ps is back up in ad13c2d.


text:
🛑 https://www.pncecs.plo.ps is down

In d46cff8, https://www.pncecs.plo.ps (https://www.pncecs.plo.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://www.pncecs.plo.ps is back up in 64ab667.


text:
🛑 https://mtit.pna.ps is down

In 658e9f1, https://mtit.pna.ps (https://mtit.pna.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://mtit.pna.ps is back up in 98f08b0.


text:
🛑 https://treport.mtit.pna.ps is down

In 734a1bc, https://treport.mtit.pna.ps (https://treport.mtit.pna.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://treport.mtit.pna.ps is back up in 7b9629c.


text:
🛑 https://archive.minfo.ps is down

In 552d6ee, https://archive.minfo.ps (https://archive.minfo.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://archive.minfo.ps is back up in 3754ed1.


text:
🛑 https://treport.mtit.pna.ps is down

In 78ce18d, https://treport.mtit.pna.ps (https://treport.mtit.pna.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://treport.mtit.pna.ps is back up in 4588990.


text:
🛑 https://minfo.ps is down

In 8454f66, https://minfo.ps (https://minfo.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://minfo.ps is back up in db5b9c9.