text:
Timeout getting IP address from DHCP leases with macOS GitHub actions runner

Running CRC within the macOS GitHub actions runner leads to inconsistent results. While it works from time to time, it often fails with the error:
(crc) DBG | Searching for e:f0:e3:c7:4f:be in /var/db/dhcpd_leases ...
(crc) DBG | error: Temporary Error: open /var/db/dhcpd_leases: no such file or directory - sleeping 2s
level=error msg="Error creating host: Error creating the VM: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary Error: open /var/db/dhcpd_leases: no such file or directory

It seems the following retry loop is not long enough:
https://github.com/code-ready/machine-driver-hyperkit/blob/c592b26d73624e85e1bdb7d962c6f0cea99740e1/pkg/hyperkit/driver.go#L259
It may be due to the 8GB memory constraint that's set on GH actions environment. It may lead to Hyperkit being slow to start.
General information

OS: macOS
Hypervisor: hyperkit
Did you run crc setup before starting it (Yes/No)? Yes
Running CRC on: VM, GitHub Actions macOS hosted runner

CRC version
1.11.0
Host Operating System
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.15.5
BuildVersion:	19F101

Steps to reproduce
Run the following workflow:
name: CRC

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  crc:
    runs-on: macos-latest

    steps:
      - name: Info
        run: |
          df -h
          sysctl hw.memsize

      - name: Checkout code
        uses: actions/checkout@v2

      - name: Setup CRC
        env:
          PULL_SECRET: ${{ secrets.PULL_SECRET }}
        run: |
          curl -L https://mirror.openshift.com/pub/openshift-v4/clients/crc/1.11.0/crc-macos-amd64.tar.xz -o crc-macos-amd64.tar.xz
          tar xf crc-macos-amd64.tar.xz
          rm crc-macos-amd64.tar.xz
          cd crc-macos-1.11.0-amd64/

          ./crc setup
          ./crc config view

          echo $PULL_SECRET > pull.secret
          ./crc start -p pull.secret --log-level debug
          eval $(./crc oc-env)

          ./crc stop
          ./crc delete

Expected
Creating machine...
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) Downloading /Users/runner/.crc/cache/crc.disk from file:///Users/runner/.crc/cache/crc_hyperkit_4.4.5/crc.qcow2...
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | clean start, hyperkit pid file doesn't exist: /Users/runner/.crc/machines/crc/hyperkit.pid
(crc) DBG | Using hyperkit binary from /Users/runner/.crc/bin/hyperkit
(crc) DBG | Using UUID c3d68012-0208-11ea-9fd7-f2189899ab08
(crc) DBG | Generated MAC e:f0:e3:c7:4f:be
(crc) DBG | Starting with cmdline: BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/vmlinuz-4.18.0-147.8.1.el8_1.x86_64 rhcos.root=crypt_rootfs console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/0
(crc) DBG | Trying to execute /Users/runner/.crc/bin/hyperkit -A -u -F /Users/runner/.crc/machines/crc/hyperkit.pid -c 4 -m 9216M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-net -U c3d68012-0208-11ea-9fd7-f2189899ab08 -s 2:0,virtio-blk,file:///Users/runner/.crc/machines/crc/crc.disk,format=qcow -s 3,virtio-rnd -l com1,autopty=/Users/runner/.crc/machines/crc/tty,log=/Users/runner/.crc/machines/crc/console-ring -f kexec,/Users/runner/.crc/cache/crc_hyperkit_4.4.5/vmlinuz-4.18.0-147.8.1.el8_1.x86_64,/Users/runner/.crc/cache/crc_hyperkit_4.4.5/initramfs-4.18.0-147.8.1.el8_1.x86_64.img,earlyprintk=serial BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/vmlinuz-4.18.0-147.8.1.el8_1.x86_64 rhcos.root=crypt_rootfs console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/0
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 1068
(crc) DBG | Searching for e:f0:e3:c7:4f:be in /var/db/dhcpd_leases ...
(crc) DBG | error: Temporary Error: open /var/db/dhcpd_leases: no such file or directory - sleeping 2s
(crc) DBG | retry loop 1
...
(crc) DBG | error: Temporary Error: open /var/db/dhcpd_leases: no such file or directory - sleeping 2s
(crc) DBG | retry loop 16
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 1068
(crc) DBG | Searching for e:f0:e3:c7:4f:be in /var/db/dhcpd_leases ...
(crc) DBG | Found 1 entries in /var/db/dhcpd_leases!
(crc) DBG | dhcp entry: {Name:crc-m27h4-master-0 IPAddress:192.168.64.2 HWAddress:e:f0:e3:c7:4f:be ID:1,e:f0:e3:c7:4f:be Lease:0x5ef1cf09}
(crc) DBG | Found match: e:f0:e3:c7:4f:be
(crc) DBG | IP: 192.168.64.2
(crc) Calling .GetConfigRaw
(crc) Calling .DriverName
(crc) Calling .DriverName
(crc) Calling .GetState
Waiting for machine to be running, this may take a few minutes...
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 1068
Machine successfully created
Machine is up and running!

Actual
Creating machine...
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) Downloading /Users/runner/.crc/cache/crc.disk from file:///Users/runner/.crc/cache/crc_hyperkit_4.4.5/crc.qcow2...
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | clean start, hyperkit pid file doesn't exist: /Users/runner/.crc/machines/crc/hyperkit.pid
(crc) DBG | Using hyperkit binary from /Users/runner/.crc/bin/hyperkit
(crc) DBG | Using UUID c3d68012-0208-11ea-9fd7-f2189899ab08
(crc) DBG | Generated MAC e:f0:e3:c7:4f:be
(crc) DBG | Starting with cmdline: BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/vmlinuz-4.18.0-147.8.1.el8_1.x86_64 rhcos.root=crypt_rootfs console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/0
(crc) DBG | Trying to execute /Users/runner/.crc/bin/hyperkit -A -u -F /Users/runner/.crc/machines/crc/hyperkit.pid -c 4 -m 9216M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-net -U c3d68012-0208-11ea-9fd7-f2189899ab08 -s 2:0,virtio-blk,file:///Users/runner/.crc/machines/crc/crc.disk,format=qcow -s 3,virtio-rnd -l com1,autopty=/Users/runner/.crc/machines/crc/tty,log=/Users/runner/.crc/machines/crc/console-ring -f kexec,/Users/runner/.crc/cache/crc_hyperkit_4.4.5/vmlinuz-4.18.0-147.8.1.el8_1.x86_64,/Users/runner/.crc/cache/crc_hyperkit_4.4.5/initramfs-4.18.0-147.8.1.el8_1.x86_64.img,earlyprintk=serial BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/vmlinuz-4.18.0-147.8.1.el8_1.x86_64 rhcos.root=crypt_rootfs console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/cf41684b1dbabaaed5a639c1f7f0de24e446ac749963eded81a9fe5373d52831/0
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 1100
(crc) DBG | Searching for e:f0:e3:c7:4f:be in /var/db/dhcpd_leases ...
(crc) DBG | error: Temporary Error: open /var/db/dhcpd_leases: no such file or directory - sleeping 2s
(crc) DBG | retry loop 1
...
crc) DBG | retry loop 59
(crc) DBG | exe=/Users/runner/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 1100
(crc) DBG | Searching for e:f0:e3:c7:4f:be in /var/db/dhcpd_leases ...
(crc) DBG | error: Temporary Error: open /var/db/dhcpd_leases: no such file or directory - sleeping 2s
level=error msg="Error creating host: Error creating the VM: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary Error: open /var/db/dhcpd_leases: no such file or directory

Not completely sure what is happening, but understand that the macOS version has not been tested to run as a headless version. if the github actions runner is using a different account, and therefore less permissive, I could understand why this fails:
level=error msg="Error creating host: Error creating the VM: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary Error: open /var/db/dhcpd_leases: no such file or directory

sounds like a VM bring up issue; the driver waits, but the VM is never started?
Can you start the VM in the regular way without the github runner? If so, please check the permission granted. To test a CI-like environment consider using the Linux version instead as this has been tested to run headless.

Unfortunately, nested virtualisation is not supported by the GitHub actions Linux hosted runner.
It is surprising that it works with the macOS runner around 20% of the time. I haven't identified any differences in the environment, so I wonder whether this is just the number of attempts in the retry loop that's not enough given the limited resources (2 vCPUs, 8Gb):
https://github.com/code-ready/machine-driver-hyperkit/blob/c592b26d73624e85e1bdb7d962c6f0cea99740e1/pkg/hyperkit/driver.go#L259

pre-flight check for virtualisation enabled fails.

preflight checks can be disabled, but eventually this would still fail. but why would it needed nested... I would expect it would run on the host directly?
resources could surely be an issue, as the default is now 9GB and it is suggested to even assign more.

GitHub actions hosted runners are virtual machines: https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#cloud-hosts-for-github-hosted-runners. If I understand it correctly, the Standard_DS2_v2 machines lack the instructions that are required for nested virtualisation.
I agree resources will ultimately be an issue. I haven't found CI hosted environments that provide 16GB of memory :(
The fact that it sometimes works was giving me little hope. But I'll trust you if you tell me there is no change this is ever going to work reliably on that kind of environment.

For information, sysctl hw.memsize returns 12884901888 , that is 12GB, on the macOS GitHub actions runner VM.

Hmmm... I think I know. IIRC we initially ran into the same issues when spiking on using Github Actions. We ultimately decided that this woud not work for us due to the lack of Nested Virtualization to run tests... and yes, the resource usage (and storage) where of similar concern. The use of GitLab Runners seemed more managebale but meant to maintain our own infra, which would in that case not preovide any benefits for a public CI. So, yes... this sounds all of a sudden very familiar.
this was all part of our search to find a replacement CI for public use, to replace CentOS CI. Eventually we moved to OpenShift CI as that would also make more sense... but that won't help you. So...  there is no real public option.

@praveenkumar You might have an idea?

As per https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources this is really a kind of resource issue but missing /var/db/dhcpd_leases is something also mentioned in https://github.com/code-ready/crc/issues/882#issuecomment-644517835

authors: astefanutti gbraad praveenkumar

repo: code-ready/crc


text:
[BUG] Mac OS installer fails to provide runnable CRC

General information

OS: macOS
Hypervisor: hyperkit
Did you run crc setup before starting it (Yes/No)? No
Running CRC on: Laptop

CRC version
CodeReady Containers version: 1.31.2+19538dab
OpenShift version: 4.8.4 (not embedded in executable)

CRC status
# Put `crc status --log-level debug` output here

CRC config
# Put `crc config view` output here

Host Operating System
ProductName:	macOS
ProductVersion:	11.5.2
BuildVersion:	20G95

Steps to reproduce

Stop CRC task bar item;
Run installer;
Start CRC task bar item;

Expected
CRC will start.
Actual
CRC fails to start with an error like:

The following steps are actually needed to start as expected:
• Stop CRC task bar item;
• Run installer;
• issue crc delete from CLI;
• Start CRC task bar item;
• Start CRC from task bar

• issue crc delete from CLI;

This should be doable from the task bar item? Or does it fail to start after upgrade?
This error message needs to be improved to be useful to the user, but what it's saying is that crc instances created with previous crc versions unfortunately cannot be used with newer crc versions. Since deleting a crc instance is a data loss operation, crc cannot do it automatically. But the tray could ask whether to do it, with an explanation. Or even better, the installer could check for this before doing the upgrade.

It’s kind of a chicken and egg scenario. The installer won’t run with the tray running. Quit tray. Run installer. Tray can’t start now due to error above. Must do delete via CLI. Perhaps the installer should just tell users to do this at the end of a successful install, for now.

If the tray fails to start, that's a bug. I'd expect the error to only be shown when clicking "Start" in the tray menu.

Okay bug then, I'll try to document on my next go-round with the installer. But the installer makes you quit the tray to run the installer. If it's supposed to start it for you, post-install, it's not, in my environment.

Here's some further documentation of the problem from the most recent 1.32.1 CRC release:
If you are running the CRC already, the CRC installer commands you to quit it (and quits itself):

Then you go find the installer package wherever you downloaded it, run it again, and it installs without issue. At which point you try to start a cluster using the tray, and you get:

By now you've learned from painful experience that the way around this is to head off to the CLI to issue: crc delete. At which point you can start a cluster from the tray without issue.

it is not elegant, but the quickest fix we can do for now. this also affects CLI and Windows.
We will look into this

source: gharchive/issue

authors: bentito cfergeau gbraad

license_type: permissive

license_source: github-api


text:
docs: Update terminology, use "instance" and "container runtime"

Avoid mentioning virtual machines directly. Only one instance of the term "virtual machine" remains in the description of differences between the CRC OpenShift cluster and a production cluster.
This commit also introduces some rewording of generic procedures which work regardless of the selected container runtime preset. Further work on incorporating the idea of presets into the documentation is required; this represents a starting point.

Note: this is merged into master. the change is generic enough.

source: gharchive/pull-request

authors: gbraad robin-owen


text:
Switch to session libvirt

The crc network can live on the system libvirt while we do the rest on the session connection.
This requires https://github.com/code-ready/crc/pull/709.
Fixes #20.

With this commit, machine-driver-libvirt only needs qemu:///session for read-only access

Correct but I think you meant qemu:///system. :)

We will reopen this PR if needed. https://github.com/code-ready/machine-driver-libvirt/issues/20 is still opened.

We will reopen this PR if needed. https://github.com/code-ready/machine-driver-libvirt/issues/20 is still opened.

authors: guillaumerose zeenix

repo: code-ready/machine-driver-libvirt


text:
Removed unused import and doc rectification

Code cleanup.

Not sure why tests didn't execute!

license: MIT


text:
Math magician event

The math magician event  part of the web app calculator supports all mathematical operations , besides events and other feartures of ES6

Hi @codeWithHyder ,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project, that is suppose to follow gitflow, currently, you are following github flow, please try to fix this
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

repo: codeWithHyder/math-magician


text:
[Feat]: I want to add Question and guideline section

What feature?
✨ Feature Request
Description of the Feature
GitHub Issue Creation Guidelines
When creating an issue in this repository, please follow these guidelines to ensure the process runs smoothly and efficiently. We also have additional resources to help guide you depending on the nature of your inquiry.
Before you create a new issue, consider the following options:
1. Questions or Need Suggestions?
If you're unsure whether to open an issue or if you need clarifications, suggestions, or help with a feature, please use our Q&A discussion section. You can create a new discussion under the Q&A category, and the community or maintainers will be able to assist you.
Creating a discussion instead of an issue helps:

Engage the community for ideas or help.
Keep the issue tracker focused on bugs and feature requests.
Provide a space for conversation without needing a formal issue.

2. Guidelines
Please read our CONTRIBUTING.md file for detailed guidelines on how to create a meaningful issue or contribute to the project. Following the guidelines will ensure that:

Your issue contains all the necessary information.
It adheres to the project's standards, making it easier to process and address.
It fits within the workflow of the project, reducing the chance of unnecessary back-and-forth.

Add ScreenShots

Add screenshots

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi @souvikpramanikgit  thanks for your interest in contributing to DevDisplay!
Now you will be assigned for this enhancement issue but before we proceed, please add you profile here and be sure to star the DevDisplay GitHub Repository. 🌟
💌 This is a mandatory step for all contributors. & It's is the first priority of contribution in DevDisplay 💌
🚀 We look forward to your contribution once these steps are completed. 🚀
Thanks 👍🏻

authors: madhukalita souvikpramanikgit

repo: codeaashu/DevDisplay


text:
Fault Tolerance

Fault Tolerance
A system is an entity with a well-defined behavior in terms of output it produces and
which is a function of the input it receives, the passage of time and its internal logic.
By “well-defined behavior” we mean that the output produced by the system is previ-
ously agreed upon and unambiguously distinguishable from output that does not
qualify as well-defined behavior. The well-defined behavior of a system is called the
system specification. A system interacts with its environment by receiving input from
it and delivering output to it. It may be possible to decompose a system into constitu-
ent (sub)systems. In Component-based software engineering (CBSE) terms, a system
is a component that may consists of the assembly of a number of smaller components.
In OO terms a system is a composition of objects, each of which may be itself a composition
of smaller objects.
A failure is said to occur in a system when the system’s environment observes an
output from the system that does not conform to its specification. An error is the part
of the system, e.g. one of its constituent (sub)systems, which is liable to lead to a
failure. A fault is the adjudged cause of an error and may itself be the result of a fail-
ure. Hence, a fault causes an error that produces a failure, which subsequently may
result to a fault, and so on. Let us consider the following example:
A software bug in an application is a fault that leads to an error when the
application execution reaches the point affected by the bug, which in turn
makes the application crash which is a failure. By crashing, the applica-
tion leaves blocked the socket ports it used which is a fault and the com-
puter on which the application crashed has socket ports which are not
used by any process nevertheless not accessible to running applications
which is an error, and which in turn leads to a failure when another appli-
cation requests these ports.
Based on the above, a fault in a system may propagate to the system's environment.
A system is called fault tolerant when it can deal with faults and their consequent er-
rors in such a way that it does not violate its specification, i.e. the environment of a
fault tolerant system does not perceive a failure of the system. Hence, a fault tolerant
system does not propagate faults to its environment. Fault tolerance techniques are
practical methods that describe how to detect an error and confine it within a system.
The confinement can be based on the restoration of the subsystem on which the er-
ror was detected before that error infects other parts of the system, or it can be based
on the masking of the error occurrence (e.g. by isolating the subsystem on which the
error was detected and using some form of redundancy to deliver the expected out-
put).
In general terms, fault tolerance provides techniques to confront faults and their con-
sequences in a system. These techniques describe the detection of errors in a sys-
tem, and the means that ensure the recovery of a system from errors or the masking
of errors in a system.
Three constituents of fault tolerance are error detection, recovery and masking.
Resource:

https://hillside.net/europlop/HillsideEurope/Papers/EuroPLoP2002/2002_Saridakis_ASystemOfPatternsForFaultTolerance.pdf
[aviz:95] A. Avizienis, “Building dependable systems: How to keep up with complexity”, Twenty-Fifth Fault-Tolerant Computing Symposium Special Issue, pp. 4–14, June 1995. (Historical Interest).
[siew:95] D. P. Siewiorek, “Niche successes to ubiquitous invisibility: Fault-tolerant computing past, present and future”, Twenty-Fifth Fault-Tolerant Computing Symposium Special Issue, pp. 26–33, June 1995. (Historical Interest).
[cris:91] F. Cristian, “Understanding fault–tolerant distributed systems”, Communications of the ACM, vol. 34, no. 2, , February 1991. (Historical Interest).
[aviz:04] A. Avizienis, J. Laprie, B. Randell, and C. Landwehr, “Basic concepts and taxonomy of secure computing”, IEEE Transactions of Dependable and Secure Computing, vol. 1, no. 1, , January 2004. (Taxonomy and Definitions).
[abra:86] J. A. Abraham and W. K. Fuchs, “Fault and error models for VLSI”, Proceedings of the IEEE, vol. 74, no. 5, pp. 639–654, May 1986. (Fault Models and Historical Interest).
[mull:93] V. Hadzilacos and S. Toueg, “Fault tolerant broadcasts and related problems”, In Distributed Systems, S. Mullender, editor, pp. 100–102, Addison Wesley, 2nd edition, 1993. (Definition).
[kala:13] R. Kalayappan and S. R. Sarangi, “A survey of checker architectures”, ACM Computing Survey, vol. 45, no. 4, pp. 48:1–48:34, August 2013. (Fault Definitions and Architecture Level Techniques).
[goel:81] P. Goel, “An implicit enumeration algorithm to generate tests for combinational logic circuits”, IEEE Transactions on Computers, vol. C-30, no. 3, pp.215–222, March 1981. (Test Generation).
[duarte:11] E. P. Duarte, R. P. Ziwich, and L. Albini, “A survey of comparison-based system-level diagnosis”, ACM Computing Survey, vol. 43, no. 3, pp. 22:1–22:56, April 2011. (System Level Diagnosis).
[siew:92] C. L. Chen and M. Y. Hsiao, “Error-correcting codes for semiconductor memory applications: A state of the art review”, In Reliable Computer Systems - Design and Evaluation, D. P. Seiwiorek and R. S. Swarz, editors, pp. 771–786, Digital Press, 2nd edition, 1992. (ECC).KKS753–11–spring 2
[lu:13] S. Lu, H. Jheng, M. Hashizume, J. Huang, and P. Ning, “Fault scrambling techniques for yield enhancement of embedded memories”, Proceedings of IEEE Asian Test Symposium, pp. 215–220, November 2013. (Memory Reconfiguration).
[mahm:88] A. Mahmood and E. J. McCluskey, “Concurrent error detection using watchdog processor- A survey”, IEEE Transactions on Computers, vol. C-37, no. 2, pp. 160–174, February 1988. (Watchdog and Historical).
-[rotenberg:99] E. Rotenberg, “AR-SMT: A microarchitecture approach to fault tolerance in microprocessors”, Proceedings of IEEE Fault-Tolerant Computing Symposium, pp. 84–91, June 1999. (Architecture Level).
[rashid:00] F. Rashid, K. K. Saluja, and P. Ramanathan, “Fault tolerance through re-execution in multiscalar architectures”, Proceedings of IEEE International Conference on Dependable Systems and Networks, also known as FTCS-30, pp.
482–491, June 2000. (Architecture Level).
[subra:10] P. Subramanyan, V. Singh, K. K. Saluja, and E. Larsson, “Energy efficient fault tolerance in chip multiprocessors using critical value forwarding”, Proceedings of IEEE International Conference on Dependable Systems and Networks, pp. 121–130, June 2010. (Architecture Level).
[aggarwal:07] N. Aggarwal, P. Ranganathan, N. Jouppi, and J. Smith, “Isolation in commodity multicore processors”, IEEE Computer, vol. 40, no. 6, pp. 49–59, June 2007. (Architecture Level).
[brooks:96] R. R. Brooks and S. S. Iyengar, “Robust distributed computing and sensing algorithm”, IEEE Computer, vol. 29, no. 6, pp. 53–60, June 1996. (Sensor Networks).
[Clouqueur:04] T. Clouqueur, K. K. Saluja, and P. Ramanathan, “Fault tolerance in collaborative sensor networks for target detection”, IEEE Transactions on Computers, vol. 52, no. 3, pp. 320–333, March 2004. (Sensor Networks).
[lapr:90] J.-C. Laprie, J. Arlat, C. Beounes, and K. Kanoun, “Definition and analysis of hardware and software fault-tolerant architectures”, IEEE Computer, vol. 23, no. 7, pp. 39–51, July 1990. (Historical).
[gray:90] J. Gray, “A census of Tandem system availability, 1985-1990”, IEEE Transactions on Reliability, vol. 39, no. 4, pp. 409–418, October 1990. (Historical).

Fault Tolerance Strategy via isolation from external dependencies so that one may not affect the other
Thread Based Isolation
In this isolation method; the external call gets executed on a different thread (non-application thread), so that the application thread is not affected by anything that goes wrong with the external call.
Semaphore Based Isolation
In this method, the external call runs on the application thread and the number of concurrent calls are limited by the semaphore count defined in the configuration.
Resource

[ ] https://medium.com/bliblidotcom-techblog/latency-and-fault-tolerance-for-distributed-system-2c6d3213e439

Byzantine Fault

[ ] https://en.wikipedia.org/wiki/Byzantine_fault
[ ] https://blog.cloudflare.com/a-byzantine-failure-in-the-real-world
[ ] https://www.youtube.com/watch?v=fqmhbMyA1qk
[ ] https://www.coursera.org/lecture/blockchain-scalability/consensus-with-byzantine-failures-Mcy0a
[ ] https://www.youtube.com/watch?v=_e4wNoTV3Gw
[ ] https://www.youtube.com/watch?v=LKpIirL8f-I SLI/SLO/SLA

repo: codeanit/til


text:
Hide Dashboard when UISequence not "Playing"

Per #28, this setting hides the dashboard when the UISequence is not "Playing". This includes Intros, Outros, EndSequence, and Podium.
Tested in TMNext and MP4 both online and in local play.

How does this behave when watching a replay, or spectating someone?

Tested it for spectator in TM2020 and it works the same as while playing. Good thought for viewing replays, I will investigate.

Viewing Replay:

TM2020: Works with my changes
MP4: Does not work, but even without my changes
Turbo: Not sure how to view replays in turbo

Online Playing:

TM2020: Works with my changes
MP4: Works with my changes
Turbo: Works with my changes

Online Spectating:

TM2020: Works with my changes
MP4: Works with my changes. No data appears in the dashboard but it shows/hides as expected with my changes in place.
Turbo: Does not work, but even without my changes

That's good enough for me! Thanks 🥰

authors: codecat skybaks

repo: codecat/tm-dashboard


text:
Specify which gcov executable to run

Is your feature request related to a problem? Please describe.
The bash uploader allows for a specific gcov executable to be run -x
Describe the solution you'd like
Copy that functionality
Describe alternatives you've considered
/shrug
Additional context

The user should be able to specify which version of the executable is used by setting it earlier in their PATH environment variable. Is that the kind of functionality you're looking for or are you interested in something more akin npm's git configuration value?

@mitchell-codecov we hardcode gcov
https://github.com/codecov/uploader/blob/main/src/helpers/gcov.ts#L7

authors: mitchell-codecov thomasrockhu-codecov

repo: codecov/uploader


text:
Python solution for problem # 20

new solution and readme update
Pull Request Template
Description
Please include a summary of the problem and about the approach to solve the solution. Please also include relevant motivation and context.
List any dependencies that are required for this change.
Put check marks:
Have you made changes in README file ?

[* ] Added problem & solution under correct topic.
[* ] Specified Space & Time complexity.
[* ] Specified difficulty level, tag & Note(if any).

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

[ ] Test A
[ ] Test B

Checklist:

[* ] My code follows the style guidelines of this project
[* ] I have performed a self-review of my own code
[* ] I have commented my code, particularly in hard-to-understand areas
[* ] I have made corresponding changes to the documentation
[* ] My changes generate no new warnings
[* ] Any dependent changes have been merged and published in downstream modules

@YuriSpiridonov Changes are looking fine but nit sure why checks are failing, I have tl check that.
Can you also add your details in contributors section?

@YuriSpiridonov Changes are looking fine but nit sure why checks are failing, I have tl check that.
Can you also add your details in contributors section?

Yes, i can.

I merged this PR 🙂

repo: codedecks-in/LeetCode-Solutions


text:
Number fields accept multi-digit entry

Images:

Replicate:

Enter numbers into any number field.
Enter - + e .  [minus, plus, the letter 'e', period] or put a zero before the number.
Type as many numbers and symbols (-+e.) as you want into the field.

Result I'd Expect:
One number in each little box.

Actual Result:
Once the seal is broken with a symbol or a leading 0, you can keep typing in numbers and the symbols (-+e.) as long as you please.
Update:
In checking this right before posting, it seems you are now freely able to enter multi-digit numbers into the fields, even without the symbol or leading zero to kick it off. Also, if you fill all cells and then type into the first cell, the two other cells extend outward.

Environment:
Operating system and version: 2008 macbook running Lubuntu 16.04
Browser type and version: Chromium, 62.0.3202.62 (Official Build)

App version or commit id at the time:

Other Notes

I think this might be addressed really well by implementing the work we're doing on the client object. Latest demo: https://codepen.io/knod/pen/mqPLEB?editors=0010

Just an update - partially being dealt with through #166, client object with always valid values. Will also be dealing with invalid inputs on the component end of things.

Cash flow fields fixed by #272, I believe.

authors: knod sashamaryl

repo: codeforboston/cliff-effects

license: mit

license_source: bigquery


text:
Find hosting for Sealing App

Goal

Find a home for the Juvenile Sealing App that can support it as mission-critical software so that we can have conversations with government partners at probation and courts.
Find a partner who can provide "what happens when it goes boom in the middle of the night" level of support for after we build and deploy something.

Tasks

[x] Get a friendly URL, don't want it to say "dev"
[x] Make sure we can continue to push updates after launch
[x] Make sure Pauline has an opportunity to do a final review before launch
[x] Ensure the Clean Slate team can continue to upgrade the app after it has gone live
[ ] Determine if GBLS is the right home for the Sealing app

Notes

Code for Boston is not setup to be a support organization for critical applications. Can't be held to any kind of SLA for things a partner needs in order to do business.

#100 was split out into multiple follow up issues. We decided on 7/14 that none of the issues are show stoppers, though we'd love to work on them as soon as we can.

Follow up email send to GBLS regarding hosting.

The new tech bill (https://github.com/codeforboston/clean-slate/issues/164) might mean a questionable future for the Sealing App. However, we've decided that we still want to move forward with launching it.
I've reached out to Pauline about moving it forward within GBLS. She'll get in contact with their head of IT and see if we can move this forward. Might take a little bit as a lot of people are out on vacation this month.

The Sealing App was made live on GBLS's website on 9/9!


text:
Trial for PR

This is trial.

Thanks your PR is merged.

repo: codeforcauseorg/pledge


text:
Newer, Simpler Website

The old/ existing site is using Octopress. See https://github.com/codeforgreenville/codeforgreenville.github.io/issues/2#issuecomment-56659077 for old notes.
I (@allella) stripped all the out of date stuff out of the raw HTML (not using the proper Octopress methods) about two months ago in order to get things looking more current.  It's bare as can be, but not out of date.  We could use a new, simple, responsive template and basic content like

Links to the active projects  (Trolley Tracker and data.openupstate.org). Might be nice to also link to the Github projects as a secondary link
Link to the meetup.com page and/or a widget to show upcoming events

The codeforegreenville.org domain is paid for by OpenWorks and Jim (@allella) has access to the registrar and DNS.  The hosting is currently using GitHub Pages (free). If we need a more advanced host then OrangeCoat could host.  Though, if we can continue to use GitHub pages then that's one less thing to manage.

Jake Murphy has offered to create a new site.

More on GitHub pages
https://help.github.com/articles/creating-pages-with-the-automatic-generator/

We've moved on, and created a basic page. Closing this issue.

authors: allella invisionjeremy


text:
TSVを入力とした計画)?)の一括更新機能

改善詳細 / Details of Improvement

TSVでまとめてデータ入力が出来る機能

現時点ではアイデアレベルです
ラベル編集出来ないのですが優先度低の機能扱いで結構です。

スクリーンショット / Screenshot

n/a

期待する見せ方・挙動 / Expected behavior

TSVを入力とし、(例えば)1日分の時間割相当のデータ更新を可能とする。
現時点ではデータ更新機能を有する画面などが存在しないため何とも言えないが、将来的にはTSVを入力とすることで、例えば1日分の時間割相当のデータ量のデータ更新が出来るような機能があると良いだろう。
TSVを入力とする理由

時間割相当のデータの編集者はある程度スプレッドシートの扱いに慣れていると考えられること
主要なスプレッドシート製品において複数セルをコピー(OSのクリップボードへのコピー)し、(ざっくりいうと)貼り付けた場合TSVとして扱われることが一般的である

動作環境・ブラウザ / Environment

n/a

Plain Text Tables generator – TablesGenerator.com
このサイトの Paste table data の機能のようなイメージです.

repo: codeforjapan/StudyAtHome


text:
Add school district information to school data

Will just be adding schoolDistrictCode and schoolDistrictId to each school feature in the schools.geojson file.
Will need load up school district info and then do a point in polygon check to see which district the school resides in.

So we can't assume that a school belongs in a school district based solely on location (mainly because of home schools, independent schools, etc...) So I guess the real question is, there is no mapping in the data we have from the city that tells us which schools are in a school district.
If we can't generate this mapping (due to the above reasons) do we need to manually create the mapping? (this really isn't that hard but kinda sucks that there's no canonical mapping from the city)
Thoughts? //cc @codeforokc/school-finder-team @codeforokc/owners

I will inquire about getting this data made available. More open data!

As you probably know @joekarl , the school district boundaries change year to year, and it's not uncommon for you to be closer to a school out of your district than to the one you are assigned (someone across the street may be assigned a different school). Especially true for elementary schools. Most of the districts in the OKC area maintain a map of which houses go to which school, so I assume they have this in some sort of database... Likely ESRI!

authors: joekarl lrobb mkchandler

repo: codeforokc/school-finder


text:
refactor: remove supportOldDangerousPassword

Description
Supersedes  #867
Closes #771
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[x] Conforms to style guide

Can someone approve?


text:
can't figure out how to use

i can't figure out how to use things .there not much docs or references . Can you create a documentation or few sample apps it will be really helpful. or just a list available components and props.

@mabhishek7081 send me your email address at the link below and I will help you get setup.
https://codejam.ninja/#hire

Thanks a lot jam!

Hiiii @codejamninja . i sent you my details a while ago but i didn't got added somewhere,or any help.
Please look into this!

@mabhishek7081 I'm sorry I didn't get back to you. I just sent you the invite to slack.

@codejamninja sorry for late reply. I just made slack account and i didn't any invitations. Can you please send invitation once more ?
i am really sorry for the inconvenience.

@mabhishek7081 sure

@mabhishek7081 I sent it again

repo: codejamninja/react-gtk


text:
Data lost after dinghy restart (postgres container)

I'm creating a container using this docker-compose.yml
postgresdb:
  container_name: "postgresdb"
  image: "postgres:9.5"
  volumes:
    - "/var/docker/data/postgresdb:/var/lib/postgresql/data"
  ports:
    - "5432:5432"
  environment:
    VIRTUAL_HOST: "postgresdb.docker"
    VIRTUAL_PORT: "5432"
    POSTGRES_DB: "dev"

After running my container for the first time, I create some tables in my db.
After that I stop my container and stop dinghy (dinghy halt).
After that I start dinghy (dinghy up) and start the postgres container.
The tables now are gone.
I checked inside dinghy vm and the mounted volume is there.
Versions

Dinghy 4.3.1
docker-machine version 0.6.0, build e27fb87
docker-compose version 1.6.2, build 4d72027
Virtualbox 5.0.16 r105871 (with the latest extension pack)
Docker version 1.10.3, build 20f81dd

UPDATE
I removed the volumes mounting from docker-compose.yml and now when I restart dinghy it works as expected. Of course the data will be lost if I delete the container which is expected. So the question still stands for the mounted volumes

This isn't unique to dinghy, it's due to docker-machine using a root volume that isn't persisted across reboots. I'd recommend using a named volume if you want the data to persist, rather than a hard-coded path inside the linux VM. For instance:
  volumes:
    - "mydatavol:/var/lib/postgresql/data"

Thanks for the help and for this amazing tool. I'm going to do just that then. Closing the (non-)issue.

authors: alkiskal codekitchen

repo: codekitchen/dinghy


text:
Strange output in default.conf when using docker-compose

Hi there
I've been trying out the dingy http proxy in standalone, because I've just started out with Docker for Mac and it's great. I basically just wanted to reach a bunch of wordpress containers without having to manually change my /etc/hosts whenever I start a new project - and I work on several at any one time. So this does the job well!
The only snag I seem to have it, is that it only works for me when I specify the VIRTUAL_HOST in the env variables in docker-compose. If I omit that, the nginx conf file falls back to the auto-generated names.... but in my case, here's what I get:
upstream .wordpress.wordpress.docker {
	server 172.20.0.3:80;
}
server {
	server_name .wordpress.wordpress.docker;
	listen 80;
	access_log /var/log/nginx/access.log vhost;
	location / {
		proxy_pass http://.wordpress.wordpress.docker;
	}
}

(Note the stray . at the start of the server_name and location URL)
My docker-compose YAML looks like this:

version: '2'

services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: wordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress
   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_PASSWORD: wordpress
volumes:
    db_data:

This obviously makes the containers completely unreachable by name unless I specify the hostname.
Any idea what might be causing this behaviour?

The leading dot has special meaning in nginx, it's a wildcard so that e.g. .wordpress.wordpress.docker is reachable as both wordpress.wordpress.docker and blah.wordpress.wordpress.docker. So that shouldn't be the problem -- what do you see when you try to request http://wordpress.wordpress.docker ?

Brian
Thanks for clarifying this.
I had assumed that it was to do with the wildcards, but when I initially tried visiting the domain it did not resolve.
However, this morning I have tried it and it works
Thank you!

On 28 Mar 2017, at 17:19, Brian Palmer notifications@github.com wrote:
The leading dot has special meaning in nginx, it's a wildcard so that e.g. .wordpress.wordpress.docker is reachable as both wordpress.wordpress.docker and blah.wordpress.wordpress.docker. So that shouldn't be the problem -- what do you see when you try to request http://wordpress.wordpress.docker http://wordpress.wordpress.docker/ ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/codekitchen/dinghy/issues/238#issuecomment-289823795, or mute the thread https://github.com/notifications/unsubscribe-auth/ATPGDcRSr5fnhMnaIrUG8QWHK0es7bMpks5rqTMDgaJpZM4MqaUD.

Sweet, sounds good

authors: codekitchen envywebsites


text:
add quickstart to project readme

Just wanted to add a note on how to get started for people like me ... this was my first time working on a Node project, and spent a frustrating few hours trying to get started.

Thanks. Merged as 7484049

authors: marijnh themrmax

repo: codemirror/CodeMirror


text:
Added vim keybinds for '(' and ')' in order to allow movement by sentences.

I implemented this to replicate the traditional VIM keybinding. See the gif below for a demonstration of some of the edge cases.
I'm new to javascript, so any suggestions on cleaning it up are welcome.

Thank you!

authors: ebogard marijnh


text:
Schedule a redraw on changes instead of change

The setTimeout/clearTimeout overhead of re-scheduling on every change in a large operation can be significant. This cuts the time of a particularly large operation I was testing from 5s to 2.5s (replacing some text in ~5000 lines). The majority of the rest of the time coming from rescheduling of the highlight worker inside the startWorker call.

Actually, I missed foldgutter earlier. Doing the same thing there got the time down to 1.88s.
I also tweaked Delayed in util a bit and got it to down to 450ms. I'll clean that up a little and send it as a separate PR.

Thanks, that's a good idea.

authors: alur marijnh


text:
fix: diff merge support \r line separator

This doesn't look right — it'll only look for \r when there are no \n characters in the string, so in "foo\rbar\n" it'd ignore the \r.
Also, won't CodeMirror have already normalized these to \n anyway, since getDiff is called on the editor content?

authors: liangshuai marijnh


text:
Not Participating in Hacktober Fest

Hello admin, why this pr is not under Hacktoberfest?
It's Showing not accepting for this project

Check Now!

@gantavyamalviya
Thank You, now it's updated

authors: SoyebSarkar gantavyamalviya


text:
POP object query

Hi,
1st of all thank you for such a great tool!
My question is around POP grouping, is it possible (I guess this is a feature request) to make it upper case? All of my devices are lower case and POP name is last three characters (vs example) or maybe even override this behaviour with own names?
Thank you.

Hi,
I think the easiest way would be text-transform in CSS. To transform upper cases to lower for example:
--- a/example/style.css
+++ b/example/style.css
@@ -9,6 +9,7 @@
   stroke: #fff;
   stroke-width: 1.5px;
 }
+.group text { text-transform: lowercase; }

 .node text { font-size: 10px; }

Or you can override pop names with rendered callback:
--- a/example/index.html
+++ b/example/index.html
@@ -11,7 +11,14 @@

I have no plan to implement this pop name translation feature in inet-henge for now, but it should be still easy to do that outside of the library.

repo: codeout/inet-henge


text:
Run code-server on OrangePi

Description
Can I run code-server on Orange Pi Zero? Here's a link for the board: http://bit.ly/2X8akb1. It has 512 MB of RAM and ARM Cortex-A7 Quad-core 1.2 GHz.

It’s not possible with that specs. However we’re discussing the potential vectors to reduce memory usage so you can use it to your SBC.

Thanks for the reply!
And what about this one, also from Orange Pi family?

I recommend something that has at least 2GB RAM since code-server eats 1GB currently.

Ok, thanks!

repo: codercom/code-server


text:
CoderDojo長津田のurlを変更

ホームページを作成したのでURLを変更お願いします 🙏

PRありがとうございます! 😸 確認して、問題なさそうなのでマージしますね ;)

authors: uebo yasulab


text:
Event names with long titles cause the chips to be cut off on mobile

On the events page, a long event name will cause the ship showing "official" or "private" to be cut off

Recommend adding some kind of line wrap

authors: HuxleyBerry RadioArsenic

repo: codersforcauses/csf


text:
[BERT] Cannot import bert

I have problems importing bert when following http://gluon-nlp.mxnet.io/examples/sentence_embedding/bert.html
(mxnet_p36) [ec2-user@master ~]$ ipython
Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import warnings
   ...: warnings.filterwarnings('ignore')
   ...:
   ...: import random
   ...: import numpy as np
   ...: import mxnet as mx
   ...: from mxnet import gluon
   ...: import gluonnlp as nlp
   ...:
   ...:

In [2]:

In [2]: np.random.seed(100)
   ...: random.seed(100)
   ...: mx.random.seed(10000)
   ...: ctx = mx.gpu(0)
   ...:
   ...:

In [3]: from bert import *
   ...:
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-40b999f3ea6a> in <module>()
----> 1 from bert import *

ModuleNotFoundError: No module named 'bert'

Looks gluonnlp are successfully installed. Any idea?
(mxnet_p36) [ec2-user@master site-packages]$ ll /ec2-user-anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/gluonnlp-0.5.0.post0-py3.6.egg
-rw-rw-r-- 1 ec2-user ec2-user 499320 Dec 28 23:15 /ec2-user-anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/gluonnlp-0.5.0.post0-py3.6.egg

Sorry wrong repo...

Sorry wrong repo...

i have the same problem . can you advise why? thx!

authors: haimeil logicmd

repo: codertimo/BERT-pytorch


text:
Gravatar

remove paperclip, add gravatar, added owner's username of the vaults and snippet path

great feedback @CGA1123 ill definitely look into those points you have pointed out!

@mrvncaragay awesome, I'm in class at uni atm, but I'll try to keep a look at your update commits as you push them.

@SalGnt Hey, I don't think this PR was ready to be merged yet, @mrvncaragay was still working on some changes that I pointed out.

Reverted.

@SalGnt Awesome, thanks!
@mrvncaragay You'll have to open a new PR with the changes again I think.

@CGA1123 okay, ill push a new pr in a few

authors: CGA1123 SalGnt mrvncaragay

repo: codervault/codervault


text:
Adding login and signup page (GSSOC'23)

I would like to add login button  in home page and redirect it to new page.

@Bharatpathak08
try to make these pages with same as the Figma design. you can get the design from the readme file.


text:
"EXECUTE" button's link is 404

我的本地测试地址是http://localhost/laravel-blog/public/totem/tasks/4 ，程序运行在子目录下。但是点击“执行”按钮所请求的地址是http://localhost/totem/tasks/4/execute 。其他位置的链接点击都正常，就这个“执行”按钮点击时404。

Thanks for reporting. This is definitely an issue when Laravel is installed in a subdirectory.

Please update to latest alpha. Dont forget to run php artisan totem:assets.

authors: roshangautam royalwang

repo: codestudeo/laravel-totem


text:
Precompile assets in Travis run

On some internal projects this approach reduced the timout related
Poltergeist errors since assets are no longer precompiled in the
request cycle the first time any asset is used.

Coverage remained the same at 99.15% when pulling 958580403f81b2d445c9973479858fddb99529cb on tf:travis-precompile-assets into 1735e5c1e892f96a79021a79b080092ae29c537f on codevise:master.

Coverage remained the same at 99.15% when pulling 958580403f81b2d445c9973479858fddb99529cb on tf:travis-precompile-assets into 1735e5c1e892f96a79021a79b080092ae29c537f on codevise:master.

Coverage remained the same at 99.15% when pulling 7be28a9ab59548478dc142828fa65edd49fe54a1 on tf:travis-precompile-assets into dfd027e8b818f967ad4016968c34f807e96d3036 on codevise:master.

authors: coveralls tf

repo: codevise/pageflow


text:
Build improvements

Edit: I've done some more extensive reasoning on this here.
Currently, our CI file which runs tests allow one to specify a compiler version. I argue this is not desirable, as neither the Dockerfile nor local builds will use that version. Indeed, the version that gets picked up in those other cases is whatever version nimbus-build-system uses as its default, which is another thing I'd argue is undesirable. :slightly_smiling_face:
What would be desirable instead would be if: i) the versions in CI, Dockerfile, and local builds (without overrides) would always agree; and ii) we could decouple those from nimbus-build-system defaults, as those may or may not match what we want at any given time.
This PR does two changes that try to remedy this:

it removes the ability to specify a compiler version from the CI;
since the compiler is already built as part of Codex anyway, it bakes the version information into the build system.

This will ensure that the compiler version is consistent across tests and the docker image, and also simplifies the CI as a side effect. In addition, a developer can always specify a different version by setting a different value for NIM_COMMIT locally.
Finally, this PR wipes clean the misleading information contained in the .nimble file, which lists neither the correct dependencies, nor their correct version. It also purges all unused/unmaintained lockfiles, including atlas', as those do not reflect the correct versions either (see this spreadsheet for the discrepancies wrt the nimble lockfile, similar issues plague the atlas lockfile).

I argue this is not desirable, as neither the Dockerfile nor local builds will use that version.

We should not remove the ability to specify the compiler version, we should in fact build against all the versions that we support - currently it's 1.6.18, but there will be more once things stabilize a little bit.
We should bump the project to the latest supported version (1.6.18), by bumping nimbus-build-system dep in the vendors directory, in fact the latest master points to 1.6.18. Also, the makefile allows you to select the version you want to build against with the NIM_COMMIT variable - checkout https://github.com/status-im/nimbus-build-system?tab=readme-ov-file#nim_commit.
In short, the CI should always build against all the supported compilers and we usually do maintain compatibility with at least 2-3 past versions.

This PR allows you to change the version by specifying the NIM_COMMIT before sourcing env.sh, so definitely won't prevent that.

@dryajov (and whoever else lays eyes on this) I've done some more extensive reasoning for this here. In short, we can support a compiler matrix when needed.

In short, the CI should always build against all the supported compilers and we usually do maintain compatibility with at least 2-3 past versions.

One thing keep in ming about possible limitation with GitHub Actions - Usage limits.

Just because running a lot of concurrent jobs, we may block other jobs in same repository or across entire org.
And some results from the test we performed

details
jobs:
  build:
    strategy:
      matrix:
        nim_version: [v1.6.14, v1.6.16, v1.6.18]
        os: [linux, macos, windows]
        arch: [amd64]
        tests: [unittest, contract, integration, all]
        include:
          - os: linux
            builder: ubuntu-latest
            shell: bash --noprofile --norc -e -o pipefail
          - os: macos
            builder: macos-latest
            shell: bash --noprofile --norc -e -o pipefail
          - os: windows
            builder: windows-latest
            shell: msys2
        exclude:
          - os: linux
            tests: unittest
          - os: linux
            tests: contract
          - os: linux
            tests: integration
          - os: macos
            tests: unittest
          - os: macos
            tests: contract
          - os: macos
            tests: integration
          - os: windows
            tests: all

Context
For now we have 3 separate build flows

Local builds
CI builds
Docker builds

As we already discussed we have at lest 2 ways to pass a custom Nim version for builds

Existing one - use a NIM_COMMIT variable
PR proposed way, or a variation of that, using a version specified in the nim-codex repository

It should also be noted that a default version currently is defined as a submodule from in the nimbus-build-system repository.
Existing one - use a NIM_COMMIT variable
Current situation

We already can pass a custom version to local builds
We already can pass a custom version to CI builds
Docker builds need to be adjusted to support that

Pros

No changes required to the local and CI builds
A well known native way

Cons

We should take care about all builds flows and locations where Nim version should be updated
Default version is defined out of the base repository

PR proposed way
Current situation

Local, CI and Docker builds will use same version from an existing env.sh file

Pros

Does not break a native way and we can pass NIM_COMMIT to override Nim version
A single source for all existing build flows

Cons

Necessity to run ./env make

Other examples
No one is using a way to override Nim version? How do they handle that?

https://github.com/status-im/status-desktop/blob/master/env.sh
https://github.com/status-im/nimbus-eth2/blob/stable/env.sh
https://github.com/waku-org/nwaku/blob/master/env.sh

Reference

NIM_COMMIT
env.sh

Questions

Is there a native way to pass Nim version for all our builds flows?
In the proposed PR, can we load env.sh from Makefile to not run ./env.sh make every time?

Yeah, projects seem to adopt different strategies. Nimbus has a compiler matrix which builds against the HEAD of each compiler version branch (not tags), and scoops the nimbus-build-system default locally. This means those versions will hardly ever match. They don't build Docker images for testing as far as I can tell.
Waku is hard to say as Jenkins can have a lot of customizations which are not visible in the repo (one of the reasons I dislike Jenkins, IaC is hard to do with it) but I don't see any Nim version flags there anywhere. I don't see a compiler matrix either.

Projects seem to organize things differently, and tolerate different levels of inconsistencies. Nimbus uses a compiler matrix in CI where they subscribe to release streams (e.g. version-1-6), and not specific versions.
They then have a set of Docker images which awkwardly appear to be used to build binary tarballs, and then some hollow images to actually distribute the binaries, in what looks like an emulation of a multistage build. These appear to scoop what's in nimbus-build-system by default, and does not allow for configuration.
Waku has a much simpler system with no compiler matrix. They just scoop the defaults for nimbus-build-system everywhere, and as far as I can tell cannot experiment with custom compiler versions in CI or Docker images at all.
So answering your first question, @veaceslavdoina, there doesn't seem to be a consistent way of overriding Nim versions or keeping those things in sync. This is a bit less of a problem for Nimbus as nimbus-build-system is... well, their build system. But still, creating a branch to test a new compiler version does not appear to be feasible unless you branch nimbus-build-system, switch its default, and plant that submodule branch on your own branch (quite cumbersome).
As for your second question: I suppose we can do away with invoking env.sh if we modify the top-level Makefile.

I have a better idea on how to do this now, so will close this.

authors: dryajov gmega veaceslavdoina

repo: codex-storage/nim-codex


text:
[Program]: Write a PHP program to find the determinant of a matrix

Description
Write a PHP program to find the determinant of a matrix
The determinant of a square matrix is a scalar value that can be computed from the elements of the matrix. The determinant of a matrix A is denoted as det(A) or |A|.
Input  :
1 2 3
4 5 6
7 8 9

Output :
0

How to contribute

Save the solution in program/program/find-the-determinant-of-a-matrix/program/find_the_determinant_of_a_matrix.php file

!assign

repo: codinasion/codinasion


text:
Error: atom.project.getPath is not a function

I tried to install this plugin and error message appeared:
"Failed to load the require package
atom.project.getPath is not a function"
I made quick search on internet and found that atom.project.getPath is deprecated
https://discuss.atom.io/t/atom-project-getpath-in-specs/13666/2
https://github.com/atom/atom/issues/5613

I'm also running into this... Maybe the "engine" field in the package.json needs to be updated until this issue is fixed.

repo: coffutt/atom-require


text:
Add terracotta to tools

Hey!
We thought our new project Terracotta might be a great fit for the list of tools, so here it is.
Let me know what you think :)

Ping @cholmes in case you missed this. If Terracotta is out of scope for the website that's fine, too, in that case just let me know and I'll close the PR.

Sorry for slow response @dionhaefner - my github filters are all off. Looks great, merging now, thanks!

authors: cholmes dionhaefner


text:
Implement CodeQL

Implement CodeQL for this javascript codebase in order to be able to run code security checks.

Added CodeQL scanning

repo: cognitivegears/bbs-door-runner


text:
Add Dockerfile

Fixes # .
Motivation

Add Dockerfile for Rosetta-cli as an alternative for binary installation
Solution

Open questions

@xiaying-peng Updated readme, in terms of Makefile, I'm thinking we can update it after images publishes to dockerhub, treating image as an arg in makefile looks weird. thoughts?

repo: coinbase/rosetta-cli


text:
Support multiple payloads from array input

We have a workflow written in Go that receives two args.
func Workflow(ctx workflow.Context, a string, b string) error {

When calling it from a different go program, everything works as expected.
we, err := c.ExecuteWorkflow(context.Background(), workflowOptions, "Workflow", "a.json", "b.json")

This is a simple screenshot of the input, from localhost:8088.

However, when calling the very same workflow from Ruby, the current code doesn't work.
Temporal.start_workflow('Workflow', 'a.json', 'b.json', options: options)

Here's a screenshot of the input in this case:

We get the following error:
wrapError: unable to decode the workflow function input payload with error: payload item 0: unable to decode: json: cannot unmarshal array into Go value of type string

... which makes a lot of sense, as it tries to put an array into a string.

If you dive in and see the code in Go that encodes payloads, you'll end up with something like this:
dataConverter := converter.GetDefaultDataConverter()
input, _ := dataConverter.ToPayloads("a.json", "b.json")
fmt.Println(input.Payloads[0])
fmt.Println(input.Payloads[1])

Here, input ends up with 2 payloads.
But if you try to do the very same thing in Ruby, you'll get something like this:
Temporal::Client::Serializer::Payload.new(['a.json', 'b.json']).to_proto

In this case, with the current code, you are going to get a single payload, which encodes the array, hence the wrong input you can see above.

All I've done is to map the array into payloads. I monkey-patched it into the application (for testing purposes) and it worked.

Hey @antstorm! Thanks for taking a look at this. I was planning to go through this with a teammate before moving forward and asking for review, but I forgot to set as draft.
Anyway, I've added a description here. I was hoping that this spec would help with the understanding of what I was trying to fix.

I've added an alternative solution to this which brings the Ruby SDK payload handling in line with the other SDKs and avoids edge cases: https://github.com/coinbase/temporal-ruby/pull/56

Closing in favor of #56.

authors: gvieira robholland

repo: coinbase/temporal-ruby


text:
Error starting in ubuntu 20.04

Hello !!
I've been trying for a few days without success to run Miningcore.
I already have the eth network node running.
Postgres ok and online with all configured database.
however when I run dotnet Miningcore.dll -c config.json I get the following message:
Using configuration file config.json
[2021-11-21 15:01:53.8218] [I] [Core] Version 61.0.0.0-master [9f183a14359e0246a40416f7efea7a82a2b7851d]
[2021-11-21 15:01:53.8713] [I] [Core] Runtime .NET 6.0.0-rtm.21522.10 on Linux 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 [X64]
[2021-11-21 15:01:53.8897] [I] [Core] Prometheus Metrics 0.0.0.0:4000/metrics
[2021-11-21 15:01:53.8897] [I] [Core] WebSocket notifications streaming 0.0.0.0:4000/notifications
System.NullReferenceException: Object reference not set to an instance of an object.
at Miningcore.Program.<>c.b__29_0(Type t) in /home/edvaldo/miningcore/src/Miningcore/Program.cs:line 746
at Autofac.Features.Scanning.ScanningRegistrationExtensions.<>c__DisplayClass4_12.<CanBeRegistered>b__1(Func2 p)
at System.Linq.Enumerable.All[TSource](IEnumerable1 source, Func2 predicate)
at Autofac.Features.Scanning.ScanningRegistrationExtensions.<>c__DisplayClass4_02.<CanBeRegistered>b__0(Type t)    at System.Linq.Utilities.<>c__DisplayClass1_01.b__0(TSource x)
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()    at Autofac.Features.Scanning.ScanningRegistrationExtensions.ScanTypesTemplate[TActivatorData,TScanStyle,TRegistrationBuilderStyle](IEnumerable1 types, IComponentRegistryBuilder cr, IRegistrationBuilder3 rb, Func2 scannedConstructorFunc, Action2 register)    at Autofac.Features.Scanning.ScanningRegistrationExtensions.ScanTypes(IEnumerable1 types, IComponentRegistryBuilder cr, IRegistrationBuilder3 rb)    at Autofac.Features.Scanning.ScanningRegistrationExtensions.ScanAssemblies(IEnumerable1 assemblies, IComponentRegistryBuilder cr, IRegistrationBuilder3 rb)    at Autofac.Features.Scanning.ScanningRegistrationExtensions.<>c__DisplayClass11_0.<RegisterAssemblyTypes>b__0(IComponentRegistryBuilder cr)    at Autofac.ContainerBuilder.Build(IComponentRegistryBuilder componentRegistry, Boolean excludeDefaultModules)    at Autofac.ContainerBuilder.Build(ContainerBuildOptions options)    at Autofac.Extensions.DependencyInjection.AutofacServiceProviderFactory.CreateServiceProvider(ContainerBuilder containerBuilder)    at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter1.CreateServiceProvider(Object containerBuilder)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Miningcore.Program.Main(String[] args) in /home/edvaldo/miningcore/src/Miningcore/Program.cs:line 203
Cluster cannot start. Good Bye!
I can't see what I've missed.
If you can tell me where I can look, I would be very grateful.
Thanks
Hugs.

Could you post your (redacted) config.json?

Thanks for the quick response
Here's my https://gist.github.com/edcomrocha/47ca24a6fa19d0bf1a1e6f7dc7413cb2#file-config-json

Hello folks, I am also getting this error and would greatly appreciate some pointers.
I can dt the database and can see the table schema, grants etc look fine. Config has the right credentials and host, port.

Please use the latest master branch which fixes the problem.

authors: edcomrocha oliverw synergy-promotions

repo: coinfoundry/miningcore


text:
use io.ReadAll instead of deprecated ioutil.ReadAll

This PR aims to use io.ReadAll() instead of deprecated ioutil.ReadAll().
Other changes in the file have been made automatically by the Go formatter.

Love it, thanks!

authors: cameroncooper leonid-ed

repo: coinset-org/cli


text:
mostrar o trecho da busca no resultado

Hoje o resultado de busca mostra o nome do hino e embaixo uma prévia do texto do hino. Seria melhor pra UX mostrar o trecho que bate com os termos buscados, em vez do início do hino.
Esperar a conclusão do #18, pois deve impactar a solução deste.

Penso também que poderíamos remover a divisão por hinários que tem hoje e mostrar apenas os hinos que têm real ocorrência. Que acha?

Acho bom, desde que haja uma indicação de qual hinário aquele resultado pertence

Pode ser, acho que precisamos prototipar e testar as opções

authors: PabloDinella raphaeldevs


text:
Python package scripts are missing when using symlink-install

MWE
foo
├── scripts
│   └── bar.py
└── setup.py

setup.py:
from setuptools import setup
setup(name='foo', scripts=['scripts/bar.py'])

bar.py:
#!/usr/bin/env python3
print("hello world")

Results
With normal build it works:
$ colcon build
Starting >>> foo
Finished <<< foo [0.59s]

Summary: 1 package finished [1.09s]

but with --symlink-install it fails:
$ colcon build --symlink-install
Starting >>> foo
--- stderr: foo
error: [Errno 2] No such file or directory: '/home/daniel/test/build/foo/scripts/bar.py'
---
Failed   <<< foo [0.65s, exited with code 1]

Summary: 0 packages finished [1.16s]
  1 package failed: foo
  1 package had stderr output: foo

Thanks for the report. I can see why that was never discovered since many packages it has been used for are using console_scripts entry points in order to generate an invocable executables across platforms.
Please see #389 for a proposed patch. It would be great it you could try it and comment if it works for your use case.

@dirk-thomas Sorry for the delay, I've confirmed that this fixes the problem on my original use case as well.

authors: Danmou dirk-thomas

repo: colcon/colcon-core


text:
How add toggle by CapsLock?

Please, add example for toggle by CapsLock. )

Hey,
First, I assume you want to disable the usual caps lock functionality. In order to do this, you can put the following command into autostart (e.g. into .xinitrc):
setxkbmap -option caps:none

you can also execute it manually during an X session. This command can also be used to remap the caps key to another function. For example, I have remapped it to Escape (which I use a lot in vim) using setxkbmap -option caps:escape instead.
Now, you can add a keybinding to your lua.rc:
local globalkeys = awful.util.table.join(
    ...
    awful.key({                    }, "VoidSymbol", function() kbdcfg:next() end ),
    ...
)

Note that the keymapping of course depends on how you redefined the key with the setxkbmap command - VoidSymbol is the one belonging to caps:none. In general, if you want to see the name of a key you can start the xev program and then type the key you are interested in.

Cool! This is work! )

authors: Belanchuk coldfix

license: unlicense


text:
Riot authentication error

Program won't authenticate with riot.
Also getting script execution errors when going into agent select.
[!] could not authenticate with Riot for enhanced presence, check username/password!

what's your region?

EU West

currently it only supports NA
completely forgot about other regions - will include them in a future update, but you should still be able to use it with a blank username and password, it just won't support party invites or agent details in the presence

rip, still a cool project. i look forward to eu support!

authors: HarvsoDev colinhartigan

repo: colinhartigan/valorant-rpc


text:
Client does not work & gives error.

I don't really know what's the issue here

same problem

same

download the source
click on run.bat
then after it crashes (lmao) go inside \valorant-skin-cli-master\src and in startup.py change the region by yours,
Mine is EU so in line 44 replace the original text by this client = Client(region="eu")

repo: colinhartigan/valorant-skin-cli


text:
Adding Travis CI file

Setup a travis CI job with this file to find broken builds, go vet and golint errors.
Once you are happy with this, you can uncomment the last two lines to notify via IRC if build is broken
See: https://travis-ci.org/ryancox/go-collectd

Thanks @ryancox!

Great...  Are you going to setup an 'official' Travis page for the project? This is operating of my fork: https://travis-ci.org/ryancox/go-collectd
Would be nice to get a Build status badge on the README. LMK if there is anything I can do here...

authors: octo ryancox

repo: collectd/go-collectd

license: isc


text:
cloudstrap-dns doesn't work with zone != domain

See also #13, #14
If I want to deploy my cluster such that HCPDomainName isn't my Route53 zone's domain name, things break.  For example, my hosted zone could be mook-as.example.com, but my HCPDomainName setting could be hcp.aws.mook-as.example.com. (The end result being a host named identity.hcp.aws.mook-as.example.com)

Resolved in eec8060 (0.37.0)

authors: Mook-as colstrom

repo: colstrom/cloudstrap


text:
Latest pip version

Is there a plan to update mleap to the latest version on pypi- I can stil see 0.8 version over there?  https://pypi.org/project/mleap/#history

@ancasarb What is the recommended alternative if the PyPi project is not updated?

For anyone else having this issue, my work around is to clone the repo at the version I want:
git clone \
  # Specify the tag you want to check out
  --branch 'v0.15.0' \
  # Don't pull the whole repo, just the commits you need
  --depth 1 \
  git@github.com:combust/mleap.git

I've release the python mleap version 0.15.0 just today, fyi https://pypi.org/project/mleap/#history, please let me know if you see any issues.

authors: a-p-o ancasarb jasleen1291

repo: combust/mleap


text:
Language level support for "imports"

On several code changes, I've found myself switching implementations of - such as:
[change-guava-map-creation]
match="Maps.newHashMap()"
rewrite="new HashMap<>()"

Here, I'm removing the use of a call from the Guava library, to the standard Java call. In some cases, there's no current import for java.util.HashMap in the file, so the resulting code won't compile without additional manual changes, the same for usages of com.google.common.collect.Maps.
I wonder if there's been any thought to handling adding/remove imports for rather than Fully Qualified Named items?
Something simple like:
[change-guava-map-creation]
match="Maps.newHashMap()"
rewrite="new HashMap<>()"
qualified_names=[ com.google.common.collect.Maps, java.util.HashMap ]

maybe? That keeps the syntax language neutral - and would allow relevant changes for Java, Python, C#, etc. etc. being defined

Supporting semantic information has been on my mind for a while, so thanks for the nice example! Static semantics like imports/package scope fit into this, and also type information.
It would be a lot of work to include native tooling that expose specific info like "qualified names for Java". Not infeasible, just a lot of work. Instead, my thinking is to decouple this problem entirely from comby, and interface with providers like language servers, or LSIF information. This way whatever significant language-specific semantics are exposed through fairly neutral interface. For your specific example, we might check whether the file of a match has a particular import in scope.
As far as an interface to this information from comby's side, I've prototyped ways of accessing static types via the rule language (which would be the vehicle for the syntax language neutral part you refer to). I hope to make something more concrete available soon, time allowing.

authors: rvantonder talios

repo: comby-tools/comby


text:
hyundai - always hda mode when engaged

removes the need to spam resume, depends on DBC update from HKG community
maybe also adds slow down for corners?

Since this only delays the need to spam to resume, is there any benefit to this over fixing resume button spamming?

I believe the only other benefit might be adjusting the stock longitudinal speed (if openpilot ever outputs a desired speed, or automatically adjusting speed based on speed limit from cars internal maps)
Button spamming is unreliable at least on the palisade. Somewhere in the range of 1% to 10% of the time the car will not accept the resume command from the openpilot for 5+ seconds (which would be 25 attempts since it is currently sent at 5 Hz).  As long as this issue exists, only requiring a resume command every 30 seconds makes a big difference (since it is very rare to stop for more than 30 seconds).
I will open a separate issue for the button spamming problem.

authors: adeebshihadeh gregjhogan

repo: commaai/openpilot


text:
2017 Chevy Malibu

Currently using all settings from the Chevy Volt, will update with more precise measurements when I am able to get them.

@rbiasini it's working without fault, both long + lat need some work, however. I am not sure what work that is being done for the general GM tuning in #326 applies here, but I'd be glad to test. I will get a proper cabana drive posted here over the weekend.
Some initial observations, the car seems to brake unnecessarily hard in certain situations, definitely the opposite of smooth. The lkas frequency/step might be off as well.

@tylergets , is longitudinal tuning still not ok?

@rbiasini the current gm tune is a bit aggressive, this applies for the currently supported chevy volt as well. Tuning by @jamezz-comma in #326 and his branches greatly improves this. But because this is no different than the volt, I don't see what stops this from being good to go.
I have also updated interface.py to include the malibu specific curb weight and wheelbase.

As long as the car stops safely I don't see why this can't be merged. The volt longitudinal changes should help a lot with all GM.

@tylergets ok, great. Will merge this for now. GM longitudinal changes from @Jamezz later.

@tylergets I don't see any uploaded log from any MALIBU. Can you please DM me a cabana route?

@tylergets merged internally. It will be included in 0.5.6

Thanks comma team!

authors: Jamezz rbiasini tylergets


text:
Is it possible to use repeated non-option-argument options?

ssh, tar, and other common tools allow for multiple non-option-argument options and act on their total count. (Implementing this with getopt is pretty trivial).
e.g. tar -cvf and tar -cvvf produce different output.
Is there a way to do this with CommandLine? I did not see anything promising in the documentation or examples/source code I perused, but I may have missed something.
(This might just be related to #594, but the issue there seems to be with repeated options with required option-arguments)

PR #607 (not yet merged) includes a feature that would enable the use of -vv and similar repeated non-option-argument options. It adds a new Option property called FlagCounter, which should be set on an int property:
[Option('v', "--verbose", FlagCounter=true)]
int Verbose { get; set; }

This will be 0 if the -v option was not passed, 1 if -v was passed, 2 if -vv or -v -v was passed, and so on. If you want dueling --verbose and --quiet options, you could do it like this:
[Option('v', "--verbose", FlagCounter=true)]
int Verbose { get; set; }

[Option('q', "--quiet", FlagCounter=true)]
int Quiet { get; set; }

int Verbosity => Verbose - Quiet;  // C# 6 and up, see https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/expression-bodied-members#read-only-properties

Then your code could do something like:
if (options.Verbosity > 2) {
    LogDebug();
} else if (options.Verbosity == 2) {
    LogVerbose();
} else if (options.Verbosity == 1) {
    Log();
} else {
    DoNotLogBecauseQuietMode();
}

BTW, if you want to see #607 merged sooner, stop by #601 and express your opinion of whether CommandLineParser should follow the GNU standards (mixed options and non-option arguments by default) or the POSIX standards (stop processing after you find the first non-option argument) by default. That's the current sticking point that's delaying #607 getting merged.

#607 has been closed in favor of #684, which still includes the FlagCounter feature that I described.

authors: ClaytonHughes rmunn

repo: commandlineparser/commandline


text:
Theme button is not working for specific courses

Theme button is not working in the specific course page and after accessing the course.

i think i fixed it can i send pull req?

@samz5320 it was working fine for this page. When you go inside the courses, for that it wasn't as it has not been implemented yet about which I came to know in discord.

I think now it is working well for both the course page and inside the individual course page.

hey, is the issue still open, or is it resolved?

repo: commclassroom/commclassroom


text:
bootstrap.js missing in the yesod-sqlite template

This template includes only the bootstrap.css file, so lines like the following doesn't work. This is from the default-layout.hamlet that comes with the template:
<button type="button" .navbar-toggle.collapsed data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">

To solve this in my project I put the following lines in the default-layout-wrapper.hamlet, so it gets the bootstrap from a CDN.
\<!-- Bootstrap CDN -->
\<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

\<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

\<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous">

Don't know if this is a good solution to the template.

Can you open this on the yesodweb/yesod-scaffold repo instead? It will be
easier to pull in the right people there.
On Mon, Jul 17, 2017 at 11:19 PM, Fábio Roberto Teodoro <
notifications@github.com> wrote:

This template includes only the bootstrap.css file, so lines like the
following doesn't work. This is from the default-layout.hamlet that comes
with the template:
<button type="button" .navbar-toggle.collapsed data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
To solve this in my project I put the following lines in the
default-layout-wrapper.hamlet, so it gets the bootstrap from a CDN.
<!-- Bootstrap CDN -->
<!-- Latest compiled and minified CSS -->

<!-- Optional theme -->

<!-- Latest compiled and minified JavaScript -->

Many thanks! Only now I see that the files from the templates are in the branches of yesodweb/yesod-scaffold. There is easyer to contribute to the template with fixes I'm doing in my project.

authors: frt snoyberg

repo: commercialhaskell/stack-templates


text:
Add 'sheyll-...' templates

Add sheyll-library and sheyll-network-service-library templates with:

many compiler extensions (GHC8) enabled by default,
many dependencies added by default,
hspec, hspec-discover and QuickCheck
criterion benchmarks
a travis-ci config file
a CHANGELOG.markdown
a README.markdown with hackage and travis batches
a .gitignore file

Oh, just now I have discovered the discussion about how/if templates can be contributed, and realized that pull requests with custom templates are currently not accepted.

Oh, just now I have discovered the discussion about how/if templates can be contributed, and realized that pull requests with custom templates are currently not accepted.


text:
Table of Contents support

Would be great to have [TOC] support to automatically list out the contents of the different headers. Probably would be a good candidate for another extension

Sorry, meant to make this a feature request, not a bug

Hey! Yeah sounds like a useful extension. Looks like there's a couple of existing syntaxes, from here: https://alexharv074.github.io/2018/08/28/auto-generating-markdown-tables-of-contents.html

{:toc}
[[_TOC_]]
[toc]

And this one doesn't seem to need any syntax, so I assume if the extension is used it is inserted at the top of the document: https://commonmark.thephpleague.com/1.5/extensions/table-of-contents/
Any thoughts about what we should do? Some more research into prior art would be good.

Also, it would probably need to be paired with the heading anchor extension (https://github.com/atlassian/commonmark-java#heading-anchor) to be able to link to headers.

And this one doesn't seem to need any syntax, so I assume if the extension is used it is inserted at the top of the document

We support three options:

Place the ToC at the very top of the document - no syntax needed (default)
Place the ToC just prior to the first heading in the document - no syntax needed
Place the ToC anywhere that a given placeholder string (like [TOC]) is found; this placeholder syntax is customizable

authors: GregJohnStewart colinodell robinst

repo: commonmark/commonmark-java


text:
Fix Lint errors/warnings

There are 407 currently.
It would be good to solve them little by little.

which lint tool are you using?
Can it be run on Travis-CI?

I am using ./gradlew build, which includes Lint.
Current report: lint.zip
Setting up Travis-CI would be great indeed :-) Do you know any server we can use?

Also Codacy picks up on a lot of things like this too. In Android Studio they're generally marked with a pale yellow highlight.

I am fixing some of them, but there is several, which commit style do you like:

A commit per fix
A commit for all fixes done

I'm okay with any commit style as long as they all go into one PR. Personally though, I would go for the middle, with several fixes per commit (say, one commit for each package?). That way if you need to make any changes, you can just revert the relevant commit rather than having to redo everything.

Instead of having to rebuild the project each time, the command ./gradlew lint will run lint exclusively which should be faster than running ./gradlew build.
Also as a side note, saying that there are 407 lint issues found isn't extremely meaningful as it depends on how strict you've set up your lint inspections to be (i.e. via Preferences > Editor > Inspections). As I've turned on most of them, I get 544 issues found. I've mainly made this comment in case someone does make a PR and when running the lint task the number of issues doesn't seem to have changed, as they may have fixed the issues with an inspection that you aren't currently running.

If this is still open, I'd be happy to help with this.

Hi! I'd like to help with this as a way of getting to know the app for future contributions. Is this issue still open and valid? Thanks!

Yep, while there are issues on Codacy and found by Android Studio, there are.
Thanks for helping out :)

I'm going to put some work into this issue

@Moseco go ahead; please let us know if you need some help with anything

Hey ! Last commit is about a week ago, are there some errors I can try to fix ?

Sure @SylvainGirod. Simply run the ./gradlew :app:lint task on this project and gradle will give you a list of existing lint issues. :)

Can I try to solve some of the current issues?

Sure @Yahhi we have lots of them:)

Hi, i'd like to help out as well.

Taking this up. SonarLint shows 643 issues in 146 files. Should be finished by this Friday.

There are many errors which needs further understanding of data flow. Will continue fixing it as I contribute more here. Raised PR #1994 meanwhile with 50 or so fixes.

Reopening as believe GitHub closed automatically as was mentioned in a PR.

Are there still lint issues to be fixed?

Almost certainly, see https://developer.android.com/studio/write/lint#manuallyRunInspections for instructions on how to find them

Opened one pull request for changes to the packages:

fr.free.nrw.commons.bookmarks
fr.free.nrw.commons.bookmarks.locations
fr.free.nrw.commons.bookmarks.pictures
fr.free.nrw.commons.category

I'll work on more fixes and submit them in other pull requests.

Just ran lint and got 1065 issues. To stop the inflow of new issues I'd suggest adding a lint baseline (https://developer.android.com/studio/write/lint#snapshot), and then fail builds that introduce new issues.

authors: JasonSarwar Moseco SylvainGirod Yahhi betabear26 domdomegg fejd gabrielaradu jayvdb loisgh maskaravivek misaochan neslihanturan nicolas-raoul noloman veyndan

repo: commons-app/apps-android-commons


text:
code optimizations

Summary:
Some fragments code needed to be optimized.
Would you like to work on the issue?
Yes

Can you provide some more clarity into what exactly you mean by this? Is there a particular set of fragments which are poorly optimized? If so, which ones and why?

Closing as I don't have more information about what you mean - please comment here or open a new issue if you have more info.


text:
Working with #3129 issue

Hello, again)
I really sorry for my long absence.
I start working with #3129 issue and fix some strings.
Guys, if I noticed errors in the translation into my language, how can I fix this?
Translators translate string ID instead string text)

Codecov Report

Merging #3146 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master   #3146   +/-   ##
======================================
  Coverage    4.66%   4.66%
======================================
  Files         264     264
  Lines       12400   12400
  Branches     1057    1057
======================================
  Hits          579     579
  Misses      11777   11777
  Partials       44      44

Impacted Files
Coverage Δ

.../java/fr/free/nrw/commons/auth/SignupActivity.java
0% <ø> (ø)
:arrow_up:

...nrw/commons/achievements/AchievementsActivity.java
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

All done, I hope)
Guys, if I noticed errors in the translation into my language, how can I fix this?
Translators translate string ID instead string text)

@PavelAplevich , you need not fix the errors for translations as long as the build compiles, TranslateWiki handles that for us

@ashishkumar468
Good, i undestand you:) Let them do their job.

I think, i can add all hardcoded string in this PR, @nicolas-raoul right?

@ashishkumar468 @nicolas-raoul
I looked all classes and I think we no longer have hardcoded strings. I hope... :D

Thanks for taking this up @PavelAplevich.

@ashishkumar468 No problem)
Could you tell me what is better to take on further?

authors: PavelAplevich ashishkumar468 codecov-io


text:
Captured images are different than preview from camera - Motorola moto g(2nd gen)

Hi,
I have a strange problem on my phone (Motorola moto g - 2nd gen). I have made photos using your demo application and added it below.
Portrait - Rear

Result photo is rotated by 90 degree.
I set the camera position so that the edges of the preview were blue edges on the picture.  But there is an additional space next to"RIGHT" border on created photo.

Landscape - Rear

I set the camera position so that the edges of the preview were blue edges on the picture. But there is an additional space under the "BOTTOM" border on created photo.

cam2_motorola_thea_reteu_20160518-152303.zip
Problems are just on rear camera.
Thanks

With regards to orientation, see issue #15. With regards to preview size, see issue #204.


text:
Captured image size less that the preview size and surrounded by green area

The captured image has actual size less than the width and height of the image. actual image appears small in the top right and the rest if the image is green area,
Samsung Galaxy ACE3
Edit:
Screenshot :
https://www.dropbox.com/s/oupglbmk1fnorca/Photo_20140103_082703.jpg

Got this issue too, https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpa1/v/t34.0-12/10968252_10152670195563359_2137140773_n.jpg?oh=8ff731e365f3eaae18f573ad40bfe256&oe=54DE0C20&gda=1423835405_2f3e42d0c6799cef17e85463ada8c12f
Samsung Galaxy Core+

authors: BrutalCSkakan msaudicse

repo: commonsguy/cwac-camera


text:
Newly added external dependency doesn't get downloaded by Superbuild

Greetings CTKers
I added an external dependency for CppMicroServices for CTK but it doesn't get taken into consideration, downloaded and built by CTK's Superbuild. What should I do?
Files that I modified or added:
CMakeExternals/CppMicroServices.cmake
#
# CppMicroServices
#

set(proj CppMicroServices)

set(${proj}_DEPENDENCIES "")

ExternalProject_Include_Dependencies(${proj}
  PROJECT_VAR proj
  DEPENDS_VAR ${proj}_DEPENDENCIES
  EP_ARGS_VAR ${proj}_EXTERNAL_PROJECT_ARGS
  USE_SYSTEM_VAR ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj}
  )

if(${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj})
  message(FATAL_ERROR "Enabling ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj} is not supported !")
endif()

# Sanity checks
if(DEFINED CppMicroServices_DIR AND NOT EXISTS ${CppMicroServices_DIR})
  message(FATAL_ERROR "CppMicroServices_DIR variable is defined but corresponds to non-existing directory")
endif()

if(NOT DEFINED CppMicroServices_DIR)

  set(revision_tag "latest")
  if(${proj}_REVISION_TAG)
    set(revision_tag ${${proj}_REVISION_TAG})
  endif()

  set(location_args )
  if(${proj}_URL)
    set(location_args URL ${${proj}_URL})
  elseif(${proj}_GIT_REPOSITORY)
    set(location_args GIT_REPOSITORY ${${proj}_GIT_REPOSITORY}
                      GIT_TAG ${revision_tag})
  else()
    set(location_args GIT_REPOSITORY "${EP_GIT_PROTOCOL}://github.com/CppMicroServices/CppMicroServices.git"
                      GIT_TAG ${revision_tag})
  endif()

  set(ep_cache_args)

  ExternalProject_Add(${proj}
    ${${proj}_EXTERNAL_PROJECT_ARGS}
    SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}
    BINARY_DIR ${proj}-build
    PREFIX ${proj}${ep_suffix}
    ${location_args}
    INSTALL_COMMAND ""
    CMAKE_CACHE_ARGS
      ${ep_common_cache_args}
      ${ep_cache_args}
    DEPENDS
      ${${proj}_DEPENDENCIES}
    )
  set(CppMicroServices_DIR ${CMAKE_BINARY_DIR}/${proj}-build)

else()
  ExternalProject_Add_Empty(${proj} DEPENDS ${${proj}_DEPENDENCIES})
endif()

mark_as_superbuild(
  VARS CppMicroServices_DIR:PATH
  LABELS "FIND_PACKAGE"
  )

CMake/ctkBlockCheckDependencies.cmake
#
# Independently of the value of CTK_SUPERBUILD, each external project definition will
# provides either the include and library directories or a variable name
# used by the corresponding Find<package>.cmake files.
#
# Within top-level CMakeLists.txt file, the variable names will be expanded if not in
# superbuild mode. The include and library dirs are then used in
# ctkMacroBuildApp, ctkMacroBuildLib, and ctkMacroBuildPlugin
#

#-----------------------------------------------------------------------------
# Collect CTK library target dependencies
#

ctkMacroCollectAllTargetLibraries("${CTK_LIBS}" "Libs" ALL_TARGET_LIBRARIES)
ctkMacroCollectAllTargetLibraries("${CTK_PLUGINS}" "Plugins" ALL_TARGET_LIBRARIES)
ctkMacroCollectAllTargetLibraries("${CTK_APPS}" "Applications" ALL_TARGET_LIBRARIES)
#message(STATUS ALL_TARGET_LIBRARIES:${ALL_TARGET_LIBRARIES})

#-----------------------------------------------------------------------------
# Initialize NON_CTK_DEPENDENCIES variable
#
# Using the variable ALL_TARGET_LIBRARIES initialized above with the help
# of the macro ctkMacroCollectAllTargetLibraries, let's get the list of all Non-CTK dependencies.
# NON_CTK_DEPENDENCIES is expected by the macro ctkMacroShouldAddExternalProject
ctkMacroGetAllNonProjectTargetLibraries("${ALL_TARGET_LIBRARIES}" NON_CTK_DEPENDENCIES)
#message(NON_CTK_DEPENDENCIES:${NON_CTK_DEPENDENCIES})

#-----------------------------------------------------------------------------
# Enable and setup External project global properties
#

if(CTK_SUPERBUILD)
  set(ep_install_dir ${CMAKE_BINARY_DIR}/CMakeExternals/Install)
  set(ep_suffix      "-cmake")

  set(ep_common_c_flags "${CMAKE_C_FLAGS_INIT} ${ADDITIONAL_C_FLAGS}")
  set(ep_common_cxx_flags "${CMAKE_CXX_FLAGS_INIT} ${ADDITIONAL_CXX_FLAGS}")

  set(ep_cxx_standard_arg)
  if(CMAKE_CXX_STANDARD)
    set(ep_cxx_standard_arg "-DCMAKE_CXX_STANDARD:STRING=${CMAKE_CXX_STANDARD}")
  endif()

  set(ep_common_cache_args
      -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
      -DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER}
      -DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
      -DCMAKE_C_FLAGS:STRING=${ep_common_c_flags}
      -DCMAKE_CXX_FLAGS:STRING=${ep_common_cxx_flags}
      -DCMAKE_INSTALL_PREFIX:PATH=${ep_install_dir}
      -DCMAKE_PREFIX_PATH:STRING=${CMAKE_PREFIX_PATH}
      -DBUILD_TESTING:BOOL=OFF
      -DCMAKE_MACOSX_RPATH:BOOL=${CMAKE_MACOSX_RPATH}
      ${ep_cxx_standard_arg}
     )
endif()

if(NOT DEFINED CTK_DEPENDENCIES)
  message(FATAL_ERROR "error: CTK_DEPENDENCIES variable is not defined !")
endif()

set(KWSYS_enabling_variable KWSYS_LIBRARIES)
set(${KWSYS_enabling_variable}_INCLUDE_DIRS KWSYS_INCLUDE_DIR)
set(${KWSYS_enabling_variable}_FIND_PACKAGE_CMD KWSYS)

set(VXL_enabling_variable VXL_LIBRARIES)
set(${VXL_enabling_variable}_INCLUDE_DIRS VXL_INCLUDE_DIR)
set(${VXL_enabling_variable}_FIND_PACKAGE_CMD VXL)

set(DCMTK_enabling_variable DCMTK_LIBRARIES)
set(${DCMTK_enabling_variable}_INCLUDE_DIRS DCMTK_INCLUDE_DIR)
set(${DCMTK_enabling_variable}_FIND_PACKAGE_CMD DCMTK)

set(ITK_enabling_variable ITK_LIBRARIES)
set(${ITK_enabling_variable}_LIBRARY_DIRS ITK_LIBRARY_DIRS)
set(${ITK_enabling_variable}_INCLUDE_DIRS ITK_INCLUDE_DIRS)
set(${ITK_enabling_variable}_FIND_PACKAGE_CMD ITK)

set(Log4Qt_enabling_variable Log4Qt_LIBRARIES)
set(${Log4Qt_enabling_variable}_INCLUDE_DIRS Log4Qt_INCLUDE_DIRS)
set(${Log4Qt_enabling_variable}_FIND_PACKAGE_CMD Log4Qt)

set(OpenIGTLink_enabling_variable OpenIGTLink_LIBRARIES)
set(${OpenIGTLink_enabling_variable}_LIBRARY_DIRS OpenIGTLink_LIBRARY_DIRS)
set(${OpenIGTLink_enabling_variable}_INCLUDE_DIRS OpenIGTLink_INCLUDE_DIRS)
set(${OpenIGTLink_enabling_variable}_FIND_PACKAGE_CMD OpenIGTLink)

set(PythonQt_enabling_variable PYTHONQT_LIBRARIES)
set(${PythonQt_enabling_variable}_INCLUDE_DIRS PYTHONQT_INCLUDE_DIR PYTHON_INCLUDE_DIRS)
set(${PythonQt_enabling_variable}_FIND_PACKAGE_CMD PythonQt)

set(QtSOAP_enabling_variable QtSOAP_LIBRARIES)
set(${QtSOAP_enabling_variable}_LIBRARY_DIRS QtSOAP_LIBRARY_DIRS)
set(${QtSOAP_enabling_variable}_INCLUDE_DIRS QtSOAP_INCLUDE_DIRS)
set(${QtSOAP_enabling_variable}_FIND_PACKAGE_CMD QtSOAP)

set(QtTesting_enabling_variable QtTesting_LIBRARIES)
set(${QtTesting_enabling_variable}_INCLUDE_DIRS QtTesting_INCLUDE_DIRS)
set(${QtTesting_enabling_variable}_FIND_PACKAGE_CMD QtTesting)

set(qxmlrpc_enabling_variable qxmlrpc_LIBRARY)
set(${qxmlrpc_enabling_variable}_LIBRARY_DIRS qxmlrpc_LIBRARY_DIRS)
set(${qxmlrpc_enabling_variable}_INCLUDE_DIRS qxmlrpc_INCLUDE_DIRS)
set(${qxmlrpc_enabling_variable}_FIND_PACKAGE_CMD qxmlrpc)

set(qRestAPI_enabling_variable qRestAPI_LIBRARIES)
set(${qRestAPI_enabling_variable}_LIBRARY_DIRS qRestAPI_LIBRARY_DIRS)
set(${qRestAPI_enabling_variable}_INCLUDE_DIRS qRestAPI_INCLUDE_DIRS)
set(${qRestAPI_enabling_variable}_FIND_PACKAGE_CMD qRestAPI)

set(VTK_enabling_variable VTK_LIBRARIES)
set(${VTK_enabling_variable}_LIBRARY_DIRS VTK_LIBRARY_DIRS)
set(${VTK_enabling_variable}_INCLUDE_DIRS VTK_INCLUDE_DIRS)
set(${VTK_enabling_variable}_FIND_PACKAGE_CMD VTK)

set(ZMQ_enabling_variable ZMQ_LIBRARIES)
set(${ZMQ_enabling_variable}_LIBRARY_DIRS ZMQ_LIBRARY_DIRS)
set(${ZMQ_enabling_variable}_INCLUDE_DIRS ZMQ_INCLUDE_DIRS)
set(${ZMQ_enabling_variable}_FIND_PACKAGE_CMD ZMQ)

set(CppMicroServices_enabling_variable CppMicroServices_LIBRARIES)
set(${CppMicroServices_enabling_variable}_LIBRARY_DIRS CppMicroServices_LIBRARY_DIRS)
set(${CppMicroServices_enabling_variable}_INCLUDE_DIRS CppMicroServices_INCLUDE_DIRS)
set(${CppMicroServices_enabling_variable}_FIND_PACKAGE_CMD CppMicroServices)

macro(superbuild_is_external_project_includable possible_proj output_var)
  if(DEFINED ${possible_proj}_enabling_variable)
    ctkMacroShouldAddExternalProject(${${possible_proj}_enabling_variable} ${output_var})
    if(NOT ${${output_var}})
      if(${possible_proj} STREQUAL "VTK"
         AND CTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK)
        set(${output_var} 1)
      else()
        unset(${${possible_proj}_enabling_variable}_INCLUDE_DIRS)
        unset(${${possible_proj}_enabling_variable}_LIBRARY_DIRS)
        unset(${${possible_proj}_enabling_variable}_FIND_PACKAGE_CMD)
      endif()
    endif()
  else()
    set(${output_var} 1)
  endif()
endmacro()

set(proj CTK)
ExternalProject_Include_Dependencies(CTK
  PROJECT_VAR proj
  DEPENDS_VAR CTK_DEPENDENCIES
  USE_SYSTEM_VAR ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj}
  )

#message("Updated CTK_DEPENDENCIES:")
#foreach(dep ${CTK_DEPENDENCIES})
#  message("  ${dep}")
#endforeach()

Did I forget something else ?

The answer to my question was here https://github.com/commontk/CTK/blob/9a9573ec4e0653ee96fe02823ac7ee66b40d3b44/CMakeLists.txt#L938
I needed to add this :
#-----------------------------------------------------------------------------
# CTK dependencies - Projects should be TOPOLOGICALLY ordered
#-----------------------------------------------------------------------------
set(CTK_DEPENDENCIES
  CppMicroServices
  Log4Qt
  VTK
  PythonQt
  DCMTK
  ZMQ
  QtSOAP
  qxmlrpc
  qRestAPI
  OpenIGTLink
  ITK
  QtTesting
  #KWSYS
  #VXL
  )

repo: commontk/CTK