docs: update readme with optional

Closes #133

Codecov Report

Merging #135 (3e8c4df) into main (bbf8939) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #135   +/-   ##
=======================================
  Coverage   97.66%   97.66%
=======================================
  Files          18       18
  Lines         171      171
  Branches       25       25
=======================================
  Hits          167      167
  Misses          4        4

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 bbf8939...3e8c4df. Read the comment docs.


Init Order is not applied when order_by contains a value that is not orderable

The apply_criteria function expects a field_name to be present in the order criteria, but we do not set the value in the case order_by contains a value that is not orderable.
See https://github.com/naymspace/backpex/blob/0.3.1/lib/backpex/live_resource.ex#L1336

@Flo0807 This is from our internal issue tracker. Could you please add permalinks to the relevant code parts? The links are out of date.

@Flo0807 This is from our internal issue tracker. Could you please add permalinks to the relevant code parts? The links are out of date.

I updated the links in the description.


Enable multiple calls to mbedtls_gcm_update_ad

Resolves #4351

rebased with removal of redundant commit

commit 8fbee92d3cc141d7ca04c7b93e4a854e1d135b1f
Author: Mateusz Starzyk<EMAIL_ADDRESS>Date:   Wed Jun 9 16:26:55 2021 +0200

    Add gcm tests for empty ciphertext and non-empty AAD.

rebased to development fixing the merge conflict


Compiling on 64bit systems

I fail to build here with the following message:
Traceback (most recent call last):
  File "dev/android/python3-android/src/Python-3.3.5/Lib/runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "dev/android/python3-android/src/Python-3.3.5/Lib/runpy.py", line 73, in _run_code
exec(code, run_globals)
  File "dev/android/python3-android/src/Python-3.3.5/Lib/lib2to3/pgen2/driver.py", line 22, in <module>
    import logging
  File "dev/android/python3-android/src/Python-3.3.5/Lib/logging/__init__.py", line 26, in <module>
    import sys, os, time, io, traceback, warnings, weakref

ImportError: dev/android/python3-android/src/Python-3.3.5/build/lib.linux-arm-3.3/time.cpython-33m.so: wrong ELF class: ELFCLASS32

If hostpython is built with CCFLAGS=-m32 and LDFLAGS=-m32 the error turns into the following:
ImportError: dev/android/python3-android/src/Python-3.3.5/build/lib.linux-arm-3.3/time.cpython-33m.so: cannot open shared object file: No such file or directory

Any idea?

Now that we've bumped the Python version to 3.4 (a while ago, actually...), some more cross-compilation fixes should be merged in. Could you check if the issue still persists?

I don't even remember how I produced this. I'd say, let's close it and if somebody runs into troubles again it can be reopened.


Org auth status unknown after sfdx update to 7.89.2

After updating my sfdx with command 'sfdx update' to version 7.89.2 I am not longer able to use my autheticated orgs.
Status is unknown instead of connected and I am not able to perform any commands with my alias or username.
I have already tried several times to logout and login again, but nothing has changed.
With an older version 7.81.0 it is still working and the same alias are shown as connected.

@JuliWaver are you seeing any errors when referencing an alias or username in a command?

For me, a force:source:push fails until I login. Logging is not an issue. But if I don't, I get Error: INVALID_SESSION_ID: Session expired or invalid on the push.

@peternhale Unfortunately I get erros if I try to upload a screenshot.
Following error is visible after I try to use e.g. a deploy command with an alias:
**ERROR running force:source:deploy: The org cannot be found
Try this:
Verfiy that the org still exists
If your org is newly created, wait a minute and run your comman again
If you deployed or updated the org's My Domain, logout from the CLI and autheticate again
If you are running in a CI environment with DNS that blocks external IPs, try setting SFDX_DISABLE_DNS_CHECK=true**
I have checked all of those proposals, the only one which is really relevant is the last one regarding SFDX_DISABLE_DNS_CHECK=true, but if I set this one I get a follow up error about Unexbeceted token JSON at position 0.
Almost the same than named here: https://github.com/forcedotcom/cli/issues/884

@JuliWaver Would you run the failing example again with 7.89.2 with the --dev-debug flag.
Also, which platform are you using?

@peternhale
Following Error message is shown after setting variavble SFDX_DISABLE_DNS_CHECK=true and deploy/validate command:
*** Deploying with REST ***
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Request._callback (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.89.2-d1d2614d02\node_modules\salesforce-alm\dist\lib\core\force.js:583:25)
at self.callback (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.89.2-d1d2614d02\node_modules\request\request.js:185:22)
at Request.emit (events.js:327:22)
at Request.onRequestError (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.89.2-d1d2614d02\node_modules\request\request.js:877:8)
at ClientRequest.emit (events.js:315:20)
at ClientRequest.onError (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.89.2-d1d2614d02\node_modules\tunnel-agent\index.js:179:21)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

I am using Windows 10 Enterprise Version 1909 and sfdx-cli/7.89.2-d1d2614d02 win32-x64 node-v14.15.4.
What information do you need from the debug log? Uploading attachments is still not working for me, sorry.

@JuliWaver,
Thank you.
Which command are you running that get the above error?
Can you run it again w/o SFDX_DISABLE_DNS_CHECK set.
Can you share the domain name of the org that is the target of the command being run?

@peternhale  The command was: sfdx force:source:deploy --verbose --targetusername cis -p force-app -c
If SFDX_DISABLE_DNS_CHECK is not set in my variables I recieve following error message again:
_ERROR running force:source:deploy:  The org cannot be found
Try this:
Verify that the org still exists
If your org is newly created, wait a minute and run your command again
If you deployed or updated the org's My Domain, logout from the CLI and authenticate again
If you are running in a CI environment with a DNS that blocks external IPs, try setting SFDX_DISABLE_DNS_CHECK=true_
The Domain is: https://bosch-bbm--cis.my.salesforce.com/

I have been getting this a lot lately also. running sfdx force:org:list --clean fixes it temporarily and I can push again but then after a bit it fails again saying org not found and half of my orgs, including prod and sandbox connections, say "Unknown"
These are all orgs that have existed for days or months.

@yippie Have you tried to set a system variable SFDX_DISABLE_DNS_CHECK=true?

I have updated my sfdx version to 7.91.0 today and set user system variable to SFDX_DISABLE_DNS_CHECK=true to solve unknown org issue and I have now a new error message if I try to deploy/validate.
Used command: sfdx force:source:deploy --verbose --targetusername julikaDev2 -p force-app -c
Error message:
Using specified username<EMAIL_ADDRESS>*** Deploying with REST ***
TypeError: Cannot read property 'message' of undefined
at Function.wrap (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.91.0-6a6ed69ebe\node_modules@salesforce\core\lib\sfdxError.js:171:45)
at Request._callback (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.91.0-6a6ed69ebe\node_modules\salesforce-alm\dist\lib\core\force.js:587:41)
at self.callback (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.91.0-6a6ed69ebe\node_modules\request\request.js:185:22)
at Request.emit (events.js:327:22)
at Request.onRequestError (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.91.0-6a6ed69ebe\node_modules\request\request.js:877:8)
at ClientRequest.emit (events.js:315:20)
at ClientRequest.onError (C:\Users\WJL7FE\AppData\Local\sfdx\client\7.91.0-6a6ed69ebe\node_modules\tunnel-agent\index.js:179:21)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
@peternhale Do you know this error?

@JuliWaver this appears to be a new issue. I created issue #923 for tracking.

my issue was solved with sytsem variable SFDX_REST_DEPLOY=false

Hi there,
I am having the same issue.
But I solved it using the following command.
sfdx force:config:set restDeploy=false
sfdx force:config:list
=== List Config
Name             Value  Location
───────────────  ─────  ────────
defaultusername  hoge   Local
restDeploy       false  Local
Thank you!! Good luck!!


In-memory engine: remove out of date pending ranges

What is changed and how it works?

Issue Number: Ref #16141

What's Changed:
remove out of date pending ranges

Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

/merge


chaincode does not seem to recognize failed build

This is in reference to the issue #1045
It appears that when chaincode does not build that the id is cached so that the peer will then refuse to attempt a build if there is another deployment

@joequant : when you attempt the recreate for #1045 and get the logs as requested, could you also get logs for this issue ?
Will note that the "caching" of image id you mention is likely that docker will not rebuild the image when there is no need to (given that the image itself was built successfully....the problem was only starting the container). You can another image is to re-deploy by changing one of { the chaincode path, the chaincode function/args, the chaincode itself }. Likely in future we will have way to "remove" chaincode and (possibly) "update" existing one.

@joequant : given #1045 is closed, should this be as well ?

Not sure.  #1045 was generating spurtious build errors, but there may be bad caching.
Will close this for now, until we get a better use case of the problem.


https://{username}.github.io/ not changed

GitHub page not updating (repo shows newest commit)
https://github.blog/2018-10-21-october21-incident-report/


add auto generration for category-files

this little bash-script can be run while the jekyll is running locally. it will then automatically generate the necessary files in the _categories folder automatically

I haven't had a time to test this yet. Today or tomorrow!

Is it today or tomorrow now, @thomasvaeth? :)

Hah I seriously pulled this weeks/months ago and I couldn't get it to work locally. Feel free to email me at<EMAIL_ADDRESS>if you can help out. I just added Parallax and some more blog styles this weekend because I made it a Ghost theme also.

@thomasvaeth
Will create a new pull request.


gltfpack: hope compressed model reusing attributes and indices bin data as the same as  the origin model

As mentioned in 723, in the origin gltf model,  mesh[0] and mesh[1] have the same attributes data(buffer index 1, 2, 4, 5) and the same indices data(buffer index 0, 3), only materials are different.
"meshes": [
    {
      "primitives": [
        {
          "attributes": {
            "POSITION": 1,
            "NORMAL": 2
          },
          "indices": 0,
          "material": 0
        },
        {
          "attributes": {
            "POSITION": 4,
            "NORMAL": 5
          },
          "indices": 3,
          "material": 1
        }
      ]
    },
    {
      "primitives": [
        {
          "attributes": {
            "POSITION": 1,
            "NORMAL": 2
          },
          "indices": 0,
          "material": 2
        },
        {
          "attributes": {
            "POSITION": 4,
            "NORMAL": 5
          },
          "indices": 3,
          "material": 3
        }
      ]
    }
  ]

After 724 fix,  the scenes informations of meshopt compress model are correct, but the meshes data are not reused,  actually attributes and indices bin data of meshes[0] and meshes[1] in the compressed model are repeated.  buffer index (0, 1, 2, 3, 4, 5) vs buffer index ( 6, 7, 8, 9, 10, 11) have the same data.
"meshes": [{
	"primitives": [{
		"attributes": {
			"POSITION": 0,
			"NORMAL": 1
		},
		"indices": 2,
		"material": 0
	}, {
		"attributes": {
			"POSITION": 3,
			"NORMAL": 4
		},
		"indices": 5,
		"material": 1
	}]
}, {
	"primitives": [{
		"attributes": {
			"POSITION": 6,
			"NORMAL": 7
		},
		"indices": 8,
		"material": 2
	}, {
		"attributes": {
			"POSITION": 9,
			"NORMAL": 10
		},
		"indices": 11,
		"material": 3
	}]
}]

If vertex attributes and index data can be reused, the model size can be further reduced.
Thanks!
origin.zip
originMeshopt2.zip

@zeux Could you give me some advice how to share the attributes data between different meshes?

gltfpack currently works with mesh attributes independently so the attribute data isn’t shared; doing that for an arbitrary example requires implementing deduplication on an attribute level.
Note that instances like this can be represented using KHR_materials_variants extension; if the input file contains it, gltfpack will correctly preserve it without geometry duplication. For this to work the application would need to use variant switching instead of scene switching as there’s no way to encode “active” variant per scene.

gltfpack currently works with mesh attributes independently so the attribute data isn’t shared; doing that for an arbitrary example requires implementing deduplication on an attribute level.
Note that instances like this can be represented using KHR_materials_variants extension; if the input file contains it, gltfpack will correctly preserve it without geometry duplication. For this to work the application would need to use variant switching instead of scene switching as there’s no way to encode “active” variant per scene.

Thanks for the valuable advice, I'll look into the KHR_materials_variants extension first。
By the way, is there any plan to support attribute data sharing?

By the way, is there any plan to support attribute data sharing?

Not in the short term but it can probably happen in the future.

This is properly fixed by #782 I believe (which is part of last gltfpack release).

nice work!


doesn't provide a custom link

Brother i can't get custom link or this isn't providing me a custom link

@AKMZHS Custom link is removed due to lack of proper services. If possible, it will be added in future again


Allow the timeout for reverse proxy to be configured from flag

@squat totally valid concern and I am happy to close this.
Basically I was working on some load testing and noticed a discrepancy between the timeout we provide in token refresher (it uses the default transport, so it's 30s IIUC) and the configuration in Observatorium API https://github.com/observatorium/api/blob/main/api/metrics/v1/http.go#L23-L24.
That required me to patch token-refresher with this change but I am aware the use case is pretty specific and if no one has needed it thus far, likely we can go on without. Just felt it was worth raising at least.


Changing the CacheDelegate to not take generic funcs for setting models

This seems to have no value and makes certain things more difficult
This is a backwards incompatible change, but I think it should be easy for people to migrate

This should be compared to #40 which is an alternative solution.


How can I put Paste to context menu

monaco-editor version:  any
Browser: any
OS:  any
Steps or JS usage snippet reproducing the issue:
How can I put Paste to context menu ?

This may help you
  editor.addAction({
    id: "myPaste",
    label: "Paste",
    keybindings: [m.KeyMod.CtrlCmd | m.KeyCode.KEY_V],
    contextMenuGroupId: "9_cutcopypaste",
    run: (editor) => {
      alert("Add your custom pasting code here");
    }
  });

See this example

Thank you, @IamFonky . However I want use the  native Paste.

This issue has been discussed many time and it seem that the paste command is available in the context menu only on IE for security reasons.
See issue #391 .
I can't help you more because copy/pasting is really a mess with JS, see this link.
I hope you'll find a solution but the only things you can do here are ugly workarounds. Like intercepting the "copy" command in monaco-editor and saving the selected text and then inserting the previously saved text in the editor. This will work only if you copy-paste in the editor. It won't work with content copied outside.

Got it. It seems that I should only override copy/cut/paste to realize.
Thanks for you help. @IamFonky


Way to close without animation

Sometimes I need animation on slide sometimes I don't.
Is there a way to pass param duration to toggle ?

Find a variable _duration problem solved.


fix(index): loadAndWaitForAureliaPage wasn't looking for aurelia object

reviewed and fix works 👍

Actually, I see the same problem all over the rest of the code that I wrote 🤣  So scratch that...

It's merged, so feel free to PR a fix man!


Implemented slicing semantics for bounded DynamicMaps

If you start using slices in bounded mode, you have to use slices throughout.
Slicing sets/unsets the dimension soft_ranges which can be used to restrict the explorable region. I'll be documenting this in the new Dynamic Map tutorial.

Seems to work fine in the examples I've tried. If it looks ok to you, could you please merge?

Made one comment, looks fine otherwise.

Looks good, will merge as soon as tests pass.


Apple Store 上架

[x] Screenshots
[x] prd version in testflight

https://apps.apple.com/app/id1519658020


logs persistency failed if enabled

chart version 8.0.2
It looks like we're not able to create log persistency as the templates helpers for logs is providing mountpath and subpath parameters for volumes in the spec.
https://github.com/airflow-helm/charts/blob/8611c766992a9f7156aad450f17beb2213cf667c/charts/airflow/templates/_helpers/pods.tpl#L223
Thanks for your work on this new version otherwise.

Having the same issue here! even though my Values.logs.path is not empty, it returns me this:
Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.volumes[1]): unknown field "mountPath" in io.k8s.api.core.v1.Volume

I am having the same issue with the 8.0.2 release. Here's my values for reference:
logs:
    path: /opt/airflow/logs
    persistence:
        enabled: false
        storageClass: nfs

confirmed. i'm having the same

Yes when will this be fixed? we have a release next week where I need this chart to be working with persistent storage

@thesuperzapper I might be able to contribute to this, but I am not really sure how to fix it without changing the way volumes are reused throughout the entire chart. do you have a quick solution in mind that'd unblock this for everyone? if you don't have the time but can give some pointers, I might try to prepare a PR.
currently, the chart doesn't work with persistent storage for logs.

@karakanb
Fix for templates/_helper/pods.tpl
U need to change 220-225 to the following:
{{- /* logs */ -}}
{{- if .Values.logs.persistence.enabled }}
- name: logs-data
  persistentVolumeClaim:
    {{- if .Values.logs.persistence.existingClaim }}
    claimName: {{ .Values.logs.persistence.existingClaim }}
    {{- else }}
    claimName: {{ printf "%s-logs" (include "airflow.fullname" . | trunc 58) }}
    {{- end }}
{{- end }}

I am not sure if that'd fix the main problem because I believe these helper parts are used for both volumeMounts as well as volumes definitions on the deployments, therefore there'd need to be some sort of a conditional rendering of the mountPath since it doesn't seem to be valid for the volumes schema, although I am not very confident about what I say here, so take it with a grain of salt.
Would you mind submitting a PR with this change so that we could save some time if it is the right approach?

@karakanb i'm so sorry, but i don't have a time on that

I have created a PR with this change, let's see how it goes.

@karakanb your change is wrong
u need to change lines 220-225
Thanks for the PR

I updated the PR to reflect the correct changes.

@Gmasquelier @commandosss can you confirm if this has been fixed after version 8.0.6 of the chart?


Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Hello There,
Hopefully your having an amazing day.
Every time I Try this carasoul it gives me this error.
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
NextJS
Windows 11
"bear-react-carousel": "^1.2.15",

@AbobkerElaghel Hi, It is currently not possible to render the main block using SSR (probably because of the window event), but you can try this method
import type { NextPage } from 'next'
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
import {BearSlideItem} from 'bear-react-carousel';
import dynamic from "next/dynamic";

 const BearCarousel  = dynamic(() => import("bear-react-carousel").then((mod) => mod), {
   ssr: false,
 });

import 'bear-react-carousel/dist/index.css';

const Home: NextPage = () => {
  const images = [
    {id: 1, imageUrl: "https://dummyimage.com/900x400/dee2e6/6c757d.jpg"},
    {id: 2, imageUrl: "https://dummyimage.com/900x400/dee2e6/6c757d.jpg"},
    {id: 3, imageUrl: "https://dummyimage.com/900x400/dee2e6/6c757d.jpg"},
  ];

  const bearSlideItemData = images.map(row => {
    return {
      key: row.id,
      children: <BearSlideItem imageUrl={row.imageUrl}/>
    };
  });

  return (

        <title>Create Next App</title>
        <meta name="description" content="Generated by create next app" />
        <link rel="icon" href="/favicon.ico" />

        <BearCarousel
            data={bearSlideItemData}
            staticHeight="200px"
        />

          Powered by{' '}

            <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />

  )
}

export default Home

@AbobkerElaghel Hi, since I don't use the SSR project, this kit does not support rendering directly in the SSR stage (exceptions are also related to manipulating the dom), if you are using NEXT.js, you can use the CSR-only rendering option
https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr
const BearCarousel  = dynamic(() => import("bear-react-carousel").then((mod) => mod), {
   ssr: false,
 });


graphics repeat in top border

In the game Leviathan (start screen) the cubes are visible in top border, also on several demos some objects are visible in the top border (visuality III for example). Can post video if needed.

Please take a comparision picture of both the component video and the original composite/s-video output.
Also please send me a link to the demo so I can later try this myself.

Please take a comparision picture of both the component video and the original composite/s-video output.
Also please send me a link to the demo so I can later try this myself.

Nervermind, sorry original composite/s-video output is the same...if you wanted to see what I meant https://csdb.dk/release/?id=2536 (but seems to be this way with everyone)

Nervermind, sorry original composite/s-video output is the same...if you wanted to see what I meant https://csdb.dk/release/?id=2536 (but seems to be this way with everyone)


[HOW-TO] change FPS using picamera 2

Hi! I’m trying to change the FPS when i record, but the video duration becomes inaccurate when I convert it to MP4 and it lasts much less or accelerates the video. Do you have any suggestions on how to fix this? Here is my code:
#This script records a video for the specified time, converts the video to mp4 format, then uploads the video to a specified cloud location. It also creates a log file documenting each step in the script.
Variables - update as needed

this_pi = 'raspi0'  # Enter identifying info for recording here (e.g. subject ID). Appears in file name and annotation text
brightness = 60  # integer between 1-100. 50 is usually a good place to start
contrast = 700    # integer between 1-100. 50 is usually a good place to start
recording_length = 1200  # number of secs. 1 hour = 3600 secs, 5 minutes = 300 secs
rclone_config = 'lowell_lab:Recordings/'

from picamera2 import Picamera2
from picamera2.encoders import H264Encoder
from picamera2.outputs import FileOutput
from time import sleep
import os
import subprocess
from datetime import datetime
import logging
from libcamera import controls

today = datetime.now()
d1 = today.strftime("%d_%m_%Y")
d2 = today.strftime("%d_%m_%Y__%H_%M_%S")
d3 = today.strftime("%d_%m_%Y__%H_%M")

name = f"{this_pi}_{d3}"
file = f"{name}.h264"
path = f"/home/nadia/Videos/{file}"
file2 = f"{name}.mp4"
path2 = f"/home/nadia/Videos/{file2}"

log_file = f"/home/nadia/Documents/Logs/{name}.txt"
logging.basicConfig(filename=log_file, level=logging.INFO, format='%(asctime)s:%(levelname)s:%(message)s')
logging.info(f"{this_pi} {d1}")

print("Starting recording")
logging.info("Starting recording")

# Initialize Picamera2
camera = Picamera2(0)
video_config = camera.create_video_configuration(main={"size": (1920, 1080), "format": "YUV420"})
camera.video_configuration.controls.FrameRate= 25.0
camera.configure(video_config)

# Set autofocus control
camera.set_controls({"AfMode": controls.AfModeEnum.Continuous})

try:
    camera.start_preview()
    # Start recording
    output = FileOutput(path)
    encoder = H264Encoder(bitrate=2000000)  # Adjust bitrate for quality
    camera.start_recording(encoder, output)
    sleep(recording_length)  # Record for the specified duration
    camera.stop_recording()
    camera.stop_preview()
    print("Finished recording")

except Exception as e:
    logging.exception('Recording error found')
    new_log_file = f"/home/nadia/Documents/Logs/FAILED_recording_{name}.txt"
    os.rename(log_file, new_log_file)
    raise

print("Beginning conversion to MP4")
logging.info("Beginning conversion to MP4")

# Convert file to MP4 format. Requires command line subprocess
from subprocess import CalledProcessError
command = f"ffmpeg -i {path} -c:v copy {path2}"
try:
    output = subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)
except subprocess.CalledProcessError as e:
    logging.info('MP4 conversion FAIL:\ncmd:{}\noutput:{}'.format(e.cmd, e.output))
    new_log_file = f"/home/nadia/Documents/Logs/FAILED_mp4_conversion_{name}.txt"
    os.rename(log_file, new_log_file)
    raise

print("Conversion finished... Starting MP4 upload")
logging.info("Conversion finished... Starting MP4 upload")

# Upload MP4 to cloud
upload = f"rclone move {path2} {rclone_config} --contimeout=40m"
os.system(upload)

print("Removing H264 file")
logging.info("Removing H264 file")

try:
    os.remove(path)
    print("H264 video moved to trash")
    logging.info("Videos moved to trash")
except Exception as e:
    logging.exception("H264 removal error")
    new_log_file = f"/home/nadia/Documents/Logs/FAILED_delete_{name}.txt"
    os.rename(log_file, new_log_file)
    raise

# Print remaining files in Video directory
vids_list = os.listdir('/home/nadia/Videos/')
vids = '\n'.join(vids_list)
print("Remaining videos:" + vids)
logging.info('Remaining videos:' + vids)
`

I'm using a raspberry pi 5 and camera module 3!

The problem is likely to be that H.264 output files don't contain timestamps, so when you convert it to mp4 it picks some unspecified framerate.
Usually, when you convert to mp4, I would expect the tool to accept some kind of "framerate" parameter, so that you can adjust this to match the real framerate.
Alternatively, when you start recording, there's a pts parameter which you can use to write a file containing timestamps. Some tools (maybe makemkv?) may accept this as input.
Finally, you could use the FfmpegOutput class instead of FileOutput. This should get the timestamps approximately right, though note that Ffmpeg will resample them and so they will exhibit a fair degree of jitter. But it should be "close".

Thank you so much!


[SPARK-44600][INFRA] Make repl module to pass Maven daily testing

What changes were proposed in this pull request?
The following situation exists in the Spark code:

The repl module depends on the core module, which in turn depends on the common/network-common module.
The common/network-common module will perform shade+relocation operation on the guava dependency (dependency scope is compile), while core will only perform relocation operation on the Guava dependency (dependency scope is provided)

So when we conduct Maven tests on the repl module, it is necessary to depend on both the jar package of core module and common/network-common module or both target/classes directory of core module and common/network-common module, and when the Maven test command leads to the dependence on the jar package of core module and  target/classes directory of common/network-common module, test failures will occure due to shade+relocation issue.
For example:
if we run build/mvn test -pl common/network-common,repl
The test Dependencies classpath is /Users/yangjie01/.m2/repository/org/apache/spark/spark-core_2.12/4.0.0-SNAPSHOT/spark-core_2.12-4.0.0-SNAPSHOT.jar:.../Users/yangjie01/SourceCode/git/spark-mine-12/common/network-common/target/scala-2.12/classes:...
repl module test failed as follows:
*** RUN ABORTED ***
  java.lang.NoClassDefFoundError: org/sparkproject/guava/cache/CacheLoader
  at org.apache.spark.SparkConf.loadFromSystemProperties(SparkConf.scala:75)
  at org.apache.spark.SparkConf.<init>(SparkConf.scala:70)
  at org.apache.spark.SparkConf.<init>(SparkConf.scala:59)
  at org.apache.spark.repl.Main$.<init>(Main.scala:37)
  at org.apache.spark.repl.Main$.<clinit>(Main.scala)
  at org.apache.spark.repl.ReplSuite.$anonfun$new$1(ReplSuite.scala:94)
  at org.scalatest.enablers.Timed$$anon$1.timeoutAfter(Timed.scala:127)
  at org.scalatest.concurrent.TimeLimits$.failAfterImpl(TimeLimits.scala:282)
  at org.scalatest.concurrent.TimeLimits.failAfter(TimeLimits.scala:231)
  at org.scalatest.concurrent.TimeLimits.failAfter$(TimeLimits.scala:230)
  ...
  Cause: java.lang.ClassNotFoundException: org.sparkproject.guava.cache.CacheLoader
  at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
  at org.apache.spark.SparkConf.loadFromSystemProperties(SparkConf.scala:75)
  at org.apache.spark.SparkConf.<init>(SparkConf.scala:70)
  at org.apache.spark.SparkConf.<init>(SparkConf.scala:59)
  at org.apache.spark.repl.Main$.<init>(Main.scala:37)
  at org.apache.spark.repl.Main$.<clinit>(Main.scala)
  at org.apache.spark.repl.ReplSuite.$anonfun$new$1(ReplSuite.scala:94)

the test failed due to core.jar already relocation Guava class path, but the content in network-common/target/scala-2.12/classes  has not yet undergone shaded + relocation for Guava, the is determined by the lifecycle executed by Maven.
But when we execute build/mvn clean install -pl common/network-common,repl
The test Dependencies classpath is /Users/yangjie01/.m2/repository/org/apache/spark/spark-core_2.12/4.0.0-SNAPSHOT/spark-core_2.12-4.0.0-SNAPSHOT.jar:.../Users/yangjie01/SourceCode/git/spark-mine-12/common/network-common/target/spark-network-common_2.12-4.0.0-SNAPSHOT.jar:...
And All tests passed.
The failure of the repl module test in the Maven daily test is due to this reason: https://github.com/apache/spark/actions/runs/5751080986/job/15589117861
The possible solutions are as follows:

Force the use of network-common.jar as a test dependency in the above scenario during Maven testing, but I haven’t found a solution that can be confirmed as viable (consulted gpt-4)
Make the core module also perform shading on Guava, but this would increase the size of the core.jar by 15+% (14660516 bytes -> 16871122 bytes)
Move the common/network-common module to a separate group for testing to avoid similar problems, but this would waste some GA resources.
Move the repl module to another group to avoid this issue, but the remaining modules in the original group need to ensure that they can pass the test.

Ultimately, this PR chose method 4, moving the repl module and hive-thriftserver into the same group, while also verifying through GAthat the repl module and the original group can both pass the test.
Why are the changes needed?
Make repl module to pass Maven daily testing. After this PR, only the connector/connect/client/jvm and connector/connect/server modules will have Maven test failures.
Does this PR introduce any user-facing change?
No, just for test.
How was this patch tested?

Verified and passed using GitHub Action.

https://github.com/LuciferYang/spark/actions/runs/5745978299/job/15580477796

cc @zhengruifeng FYI

Merged into master.


Pr/21 commit2

Reworked the console output to have basic logging functionality which can be redirected to any ostream.

@dlazenby - I basically added some simple logging capability which defaults to cout and cerr. For your purposes, you'd call log.EnableFormatting(false) to disable the formatting and then you'd specify a sink (ostream) for each logging level. Does this seem reasonable?

Unfortunately it's a bad time for me, I'm out on field assignment the next two weeks so I have limited time to review.  I looked over these changes and it seems reasonable to me.  A lot more thorough than what I had done.  I didn't want to add another dependency to quanergy's driver code, but spdlog is a good open source library that implements a sink model. This reminds me of that library.
I will say that I had trouble with running multiple drivers (client connections) simultaneously using the logging code that I had written. It would cause intermittent thread conflicts.  Please test running 2 or more client connections to multiple sensors from a single application to make sure that logging stream is threadsafe.  It is normal for us to have 5+ sensors all connected to the same application.

I may actually go back to the signal/slot idea do to flexibility. I started to use this in the ros node and it is kind of a pain to have it use ostream...


Jade Amulet Fix

Added a craftable for the Jade Amulet (u) and fixed the one for the Jade Amulet. Also added the proper level requirement for the amulet (the wiki was wrong)
Addresses #1356

might as well do this for the other amulets

I think the only other one that needs to be changed is the red topaz. All the ones in crafting/craftables/gold seem fine

also use these keywords when linking an issue and it will auto close it on merge


enhancement request: add interception context metadata so interceptors can tell if a query is a lazy load

This may be PEBCAK on my part, but in looking through the RelatedEnd.DeferredLoad code path and existing contents of the interception context during a ReaderExecuting, I couldn't find anything that surfaced whether the query was happening in the context of a lazy load or not.  I ended up looking at the stack during the call to determine whether it was a lazy load (and what property of what entity if so), but that feels pretty fragile, especially in terms of trying to potentially have something work in EFCore in the future.
Here's what it's doing now FWIW:
https://github.com/jamesmanning/EntityFramework.LazyLoadLoggingInterceptor/blob/d88f068334b09e25f978c3256b8168110dfb0b0a/EntityFramework.LazyLoadLoggingInterceptor/LazyLoadLoggingInterceptor.cs#L118-L142
In trying to modify this to support EF6 and EFCore (or potentially make an EFCore alternate version), I'm not sure how to reliably detect lazy load context, though.

EF Team Triage: This is a reasonable suggestion, but it is not something that our team is planning to address in the EF6.x code base.  This does not mean that we would not consider a community contribution to address this issue.
Moving forwards, our team will be fixing bugs, implementing small improvements, and accepting community contributions to the EF6.x code base. Larger feature work and innovation will happen in the EF Core code base (https://github.com/aspnet/EntityFramework).
Closing an issue in the EF6.x project does not exclude us addressing it in EF Core. In fact, a number of popular feature requests for EF have already been implemented in EF Core (alternate keys, batching in SaveChanges, etc.).
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


How to control punctuation length ?

Hello,
Some time the recognized has long text without punctuation, which results in poor user experience especially for people with dyslexia.
Is there any para config in speech sdk to receive different length level punctuation , e.g. short, middle or long ?
E.g.

Utterance: "I have a good friend to visit next Sunday flying from Beijing to Seattle with gift to her decorated into a very beautiful flower box for Christmas surprise."
Current reco: "I have a good friend to visit next Sunday, flying from Beijing to Seattle with gift to her decorated into a very beautiful flower box for Christmas surprise."
Expected reco with short punctuation cofig: "I have a good friend to visit next Sunday, flying from Beijing to Seattle, with gift to her, decorated into a very beautiful flower box, for Christmas surprise.

Thank you.

I reached out to the team to see if this is possible. It's not covered in our documentation so I believe the answer is No.
If so, you can always make a feature request [here](url
 and we'll put this on our backlog.
Somebody will get back to you with an exact answer though. :)

@wukun2015 I confirmed with the team that this isn't possible today. If you want to make a feature request, please do that at UserVoice, and we will put this on the backlog and slot it in based on demand.


OtherError in not a valid JSON RPC 2.0 error response

Hello,
error OtherError message looks like
{
  "code": -32001,
  "data": null,
  "message": "OtherError: Invalid Terminal ID u'tid01x'",
  "name": "OtherError"
}

but a a malformed JSON RPC request error looks like
{
    "error": {
        "code": -32000,
        "message": "Not a valid JSON RPC request"
    },
    "id": null,
    "jsonrpc": "2.0"
}

Every error message should be JSON RPC 2.0 error response
moreover they can sometimes have id different from null so
we should provide a way to set id (maybe in constructor with id=None as default value)
Kind regards

Fixed in version 0.3.
Thank you.


 Comparing base (4d1d649) to head (3661e9c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #206      +/-   ##
==========================================
- Coverage   96.51%   96.22%   -0.30%
==========================================
  Files          33       33
  Lines        1350     1350
==========================================
- Hits         1303     1299       -4
- Misses         47       51       +4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Card installation/setup problems - "Could not determine suitable engine for camera."

Checklist:

[Yes] I updated to the latest version available
[Yes] I cleared the cache of my browser

Release with the issue:
core-2023.7.2
Last working release (if known):
N/A - fresh installation
Browser and Operating System:
Firefox on Linux

Description of problem:
I have HA and Frigate installed under Docker.  I've added HACS, and installed the Frigate Integration afterwards.  I can get HA notifications of Frigate object detections, so that's at least partially working.  I installed this card through HACS, and I had to manually add the path to the Resource UI manager.
When I go to add this hass card to my, "Overview" page, I see the following on the card itself:
Could not determine suitable engine for camera.[ Check troubleshooting](https://github.com/dermotduffy/frigate-hass-card#troubleshooting).

{
  "hide": false,
  "dependencies": {
    "all_cameras": false,
    "cameras": []
  },
  "triggers": {
    "motion": false,
    "occupancy": true,
    "entities": []
  },
  "engine": "auto",
  "frigate": {
    "client_id": "frigate"
  },
  "motioneye": {
    "images": {
      "directory_pattern": "%Y-%m-%d",
      "file_pattern": "%H-%M-%S"
    },
    "movies": {
      "directory_pattern": "%Y-%m-%d",
      "file_pattern": "%H-%M-%S"
    }
  },
  "live_provider": "auto",
  "image": {
    "refresh_seconds": 1
  }
}

There's some similar output in my F12 browser debug menu:
Error: Could not determine suitable engine for camera
    vu card-555679fd.js:75
    Wg card-555679fd.js:75
    _getEnginesForCameras card-555679fd.js:75
    initializeCameras card-555679fd.js:75
    _initializeCameras card-555679fd.js:507
    _initializeMandatory card-555679fd.js:507
    initializeIfNecessary card-555679fd.js:507
    _initializeMandatory card-555679fd.js:507
    promise callback*_initializeMandatory card-555679fd.js:507
    shouldUpdate card-555679fd.js:507
    performUpdate card-555679fd.js:11
    scheduleUpdate card-555679fd.js:11
    _$Ej card-555679fd.js:11
    requestUpdate card-555679fd.js:11
    u card-555679fd.js:11
    j card-555679fd.js:11
    ge card-555679fd.js:23
    kb card-555679fd.js:507
    C scoped-custom-element-registry.js:385
    t scoped-custom-element-registry.js:236
    r create-element-base.ts:93
    h create-element-base.ts:111
    h create-element-base.ts:215
    c create-element-base.ts:172
    k create-card-element.ts:101
    value hui-card-preview.ts:88
    value hui-card-preview.ts:56
    performUpdate reactive-element.ts:1331
    scheduleUpdate reactive-element.ts:1263
    _$Ej reactive-element.ts:1235
    requestUpdate reactive-element.ts:1210
    u reactive-element.ts:948
    _ reactive-element.ts:931
    i hui-card-preview.ts:22
    C scoped-custom-element-registry.js:385
    t scoped-custom-element-registry.js:236
    u lit-html.ts:1124
    g lit-html.ts:1535
    _$AI lit-html.ts:1379
    z lit-html.ts:2175
    update lit-element.ts:165
    performUpdate reactive-element.ts:1331
    scheduleUpdate reactive-element.ts:1263
    _$Ej reactive-element.ts:1235
    requestUpdate reactive-element.ts:1210
    set reactive-element.ts:726
    value hui-dialog-edit-card.ts:81
    c make-dialog-manager.ts:130
    h make-dialog-manager.ts:163
    o fire_event.ts:76
    a show-edit-card-dialog.ts:17
    value hui-view.ts:248
    o fire_event.ts:76
    value hui-card-options.ts:251
    handleEvent lit-html.ts:2010
    _$AI lit-html.ts:1999
    v lit-html.ts:1187

Object { hide: false, dependencies: {…}, triggers: {…}, engine: "auto", frigate: {…}, motioneye: {…}, live_provider: "auto", image: {…} }
card-555679fd.js:75:163734

I don't see any further details which I can provide.

I would assume the card would function as a normal behavior.
Frigate card diagnostic information

Not sure what this could be referring to.

Javascript errors shown in the web inspector (if applicable):

Additional information:

You're not actually specifying any camera details whatsoever, so the card cannot figure out what to display. See the basic camera examples.
If you think I'm missing something, please provide a copy of your full card config.
Thanks and good luck.

No combination of changes with the card configuration makes a difference.  Here's the current config:
type: custom:frigate-card
cameras:
  - frigate:
      url: *frigate_ip:5000*
      client_id: *frigate_mqtt_client_id*
  - camera_entity: camera.denlsu
  - camera_entity: camera.livingroom

type: custom:frigate-card
cameras:
  - frigate:
      url: *frigate_ip:5000*
      client_id: *frigate_mqtt_client_id*

This is not specifying any camera and is likely the source of your problem. If you just intend to include the 2 camera entities below, just remove this frigate section from the config entirely, i.e. this:
type: custom:frigate-card
cameras:
  - camera_entity: camera.denlsu
  - camera_entity: camera.livingroom

Those entries were added through the use of the GUI config (aka, not typed line by line manually), and removing them doesn't solve my issue as previously mentioned.  I am using a custom frigate client ID as I plan to use more than one instance of frigate, and per the instructions, I should specify frigate server and client ID information when using more than one instance.  I don't understand how following the instructions for the configuration would ever cause failures in the first place.
After removing the frigate section and restarting everything, I am however met with a new error which I wasn't seeing before:
Failed to receive response from Home Assistant for request.[ Check troubleshooting](https://github.com/dermotduffy/frigate-hass-card#troubleshooting).

{
  "request": {
    "type": "frigate/events/get",
    "instance_id": "frigate",
    "cameras": [
      "DenLSU"
    ],
    "limit": 50,
    "id": 43
  },
  "response": {
    "code": "not_found",
    "message": "Unable to find Frigate instance with ID: frigate"
  }
}

It seems to me that I do need to specify the frigate client ID, no?  Trying to add it manually outside of the camera: block results in an identical error, so I don't think it's functional there.

Quick answer: If you are using a custom client_id, you do need to set it -- your config was creating a new camera entry but only specifying the client_id, and had two cameras that didn't specify the client id at all. Try this:
type: custom:frigate-card
cameras_global:
  frigate:
    url: *frigate_ip:5000*
    client_id: *frigate_mqtt_client_id*
cameras:
  - camera_entity: camera.denlsu
  - camera_entity: camera.livingroom

... or more expressively...
type: custom:frigate-card
cameras:
  - camera_entity: camera.denlsu
    frigate:
      url: *frigate_ip:5000*
      client_id: *frigate_mqtt_client_id*
  - camera_entity: camera.livingroom
    frigate:
      url: *frigate_ip:5000*
      client_id: *frigate_mqtt_client_id*

Yeah, that did seem to fix it, thank you very much!
I just want to again communicate that this is the config which was automatically generated from the GUI config editor, just so you're aware.  Thanks!


Refactor deployment workflows to reduce duplication of individual yaml files.

From Alis:

Something we could do to dry this and possibly other deployment workflows up is to turn the bulk of these deployment tasks into a workflow_call, we'd still have to pass in the secrets and other inputs but it might give us a nice template that reduces the level of duplication. It could be used for all deployments without restricting our ability to customize deployments to specific environments when needed.

See https://github.com/CDCgov/prime-simplereport/pull/3675 for further context.

#2468 Old ticket for using terraform workspaces

This is specifically for the workflows code, not the terraform code more generally.


UI Display of Data

On the UI when using the application the fields "Open Issues Last Year" & "PR's last year" is just an array of values. If possible a good addition would to format it so the user could see more clearly that each value correlated with a specific month. Either using a simple table or graph one could display this data and it would be more quickly interpreted and pleasing to the user.

I just merged the charts into the dev branch. Let us know what you think!

Will do, and question, to update my clone with those changes should I re-clone the repo or can I just do a pull and get the charts piece?

You would probably have to do a git checkout -b origin/dev to use the dev branch.

I went to the root folder of repo health and ran the git checkout -b origin/dev and it said
Switched to a new branch 'origin/dev'
Then I ran docker-compose up and tried both cakephp/cakephp and django/django but didn't see any charts appear I may be missing a step or need to look into it more, any thoughts on what i may have done wrong?

The docker container will still have the old code since it is self contained. So you will have to have to do a ./docker/clean.sh and then do a docker-compose up again :confused:.

You may have created a local branch called origin/dev.  Run git branch to list your local branches and delete it if it is there. Run git checkout -b dev origin/dev to create a dev branch on your local and have it track the origin dev branch.

Matthews-MacBook-Pro:repo-health matthewschuette$ git branch
master

origin/dev

It looks like it did. So I will try to re checkout the way you said and then re run the clean.sh and compose up.

I tried what you said Jake and it updated the UI however I did not see any charts on any of the 3 tabs (Details, PR's, Issue). Do you think I should just do a fresh clone of dev?

Try to clear the cache in your browser and reload the page.  In Chrome, I think you hold control and click reload.


Fix NoneType error for TED talks

Before submitting a pull request make sure you have:

[ ] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[ ] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Bug fix
[ ] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Retrieving videos from ted.com has been failing - this fix to the extractor makes it work properly again.

PS C:\Dev\youtube-dl\master> py -2.7 .\youtube_dl\__main__.py test:ted -F
[TestURL] Test URL: http://www.ted.com/talks/dan_dennett_on_our_consciousness.html
[ted] dan_dennett_on_our_consciousness: Downloading webpage
[ted] dan_dennett_on_our_consciousness: Downloading m3u8 information
[ted] dan_dennett_on_our_consciousness: Checking 600k bitrate URL
[ted] dan_dennett_on_our_consciousness: 600k bitrate URL is invalid, skipping
[ted] dan_dennett_on_our_consciousness: Checking 64k bitrate URL
[ted] dan_dennett_on_our_consciousness: 64k bitrate URL is invalid, skipping
[ted] dan_dennett_on_our_consciousness: Checking 180k bitrate URL
[ted] dan_dennett_on_our_consciousness: 180k bitrate URL is invalid, skipping
[ted] dan_dennett_on_our_consciousness: Checking 320k bitrate URL
[ted] dan_dennett_on_our_consciousness: Checking 450k bitrate URL
[ted] dan_dennett_on_our_consciousness: 450k bitrate URL is invalid, skipping
[ted] dan_dennett_on_our_consciousness: Checking 950k bitrate URL
[ted] dan_dennett_on_our_consciousness: 950k bitrate URL is invalid, skipping
[ted] dan_dennett_on_our_consciousness: Checking 1500k bitrate URL
[info] Available formats for 102:
format code     extension  resolution note
hls-600k-Audio  mp4        audio only [en]
hls-67          mp4        audio only   67k , mp4a.40.2
hls-238         mp4        320x180     238k , avc1.42c00c, video only
hls-797         mp4        512x288     797k , avc1.42c015, video only
hls-1952        mp4        512x288    1952k , avc1.42c015, video only
hls-2847        mp4        512x288    2847k , avc1.42c015, video only
hls-3638        mp4        640x360    3638k , avc1.42c01e, video only
hls-5066        mp4        853x480    5066k , avc1.4d401f, video only
hls-6522        mp4        853x480    6522k , avc1.64001f, video only
low             mp4        320x180
medium          mp4        512x288
high            mp4        854x480
h264-320k       mp4        unknown     320k
http-1952       mp4        512x288    1952k , avc1.42c015
http-6522       mp4        853x480    6522k , avc1.64001f (best)

@tedcarnahan, what is the URL that is failing for you?


profile add more detail profile in data stream sender

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.02 seconds
load time: 646 seconds
storage size:<PHONE_NUMBER>8 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221219112436_clickbench_pr_65127.html


DSL elements in YAML should be Kebab Case

Karavan read/write DSL elements in Camel Case but Camel YAML DSL supports Kebab Case only

Camel Framework supports Camel Case for EIP elements and parameters


Improve performance of Mageck MLE module

Description of feature

Mageck currently is comparatively slow compared with DESeq2-based fitness calculation
although it uses all allocated resources, processing time is 20x longer than for DESeq2
example dataset with 12 samples, 4 comparisons, 100,000 reads per sample takes >10 min with 12 CPU cores
DESeq2 takes 2-3 min with 1 CPU core

No development on this issue from my side but problem is persisting somehow. I noticed however that the NF Mageck module at least makes good use of the computational resources, i.e. uses all assigned cores. Maybe Mageck itself is just slow and nothing can be done without altering the underlying code.
I'm tagging @LaurenceKuhl here who mentioned that there would be nextflow tricks to improve performance (https://github.com/MPUSP/nf-core-crispriscreen/issues/22#issuecomment-1473292889).

does not seem like there can be easy improvements of Mageck performance. closing this for now


db structure dump

Hello,
it is a little bit confusing for me to use your php class, because i doesn't know how the db table structure is.
Can you publish an db dump file with all needed tables.
thank you

everything you need is already in tests folder.
https://github.com/Rundiz/nested-set/tree/master/tests/via-http


fatal compilation error: call to 'abs' is ambiguous

TL;DR: possibly another missing header: <cmath>

I encountered this problem when compiling Qv2ray on Azure macOS 10.14, using AppleClang <IP_ADDRESS>00033 with Xcode 11.3.1, where I have just upgraded our submodule zxing-cpp to commit hash 5351b67eac63c7e544274abf5b15b55c7716a6cf.
Since we are about to release our new version, I did a series of git bisect to locate the problem, listed as follows.
You can check these out on https://dev.azure.com/realducksoft/Qv2ray/_build?definitionId=3&branchFilter=62%2C62%2C62%2C62%2C62%2C62%2C62.
git bisect start
# bad: [5351b67eac63c7e544274abf5b15b55c7716a6cf] PDFCodewordDecoder.cpp: uint16_t requires cstdint (#141)
git bisect bad 5351b67eac63c7e544274abf5b15b55c7716a6cf
# good: [66cc26b25633cb7f1e20f2bf7711960c321e3a7b] Pump version to 1.0.8
git bisect good 66cc26b25633cb7f1e20f2bf7711960c321e3a7b
# good: [a1c9b6eb86ce725631125cc6d0faa59760a10c2a] BarcodeFormat: fix bug in string conversion of BarcodeFormat::INVALID
git bisect good a1c9b6eb86ce725631125cc6d0faa59760a10c2a
# good: [23a00f3767a1c94949478bcbd31961387a1d682a] ZXAlgos: rename Accumulate to Reduce + default 0 + optional op parameter
git bisect good 23a00f3767a1c94949478bcbd31961387a1d682a
# good: [cdae128138a7a401753033f9d3308374f1ee821a] 1D: add/modify codabar blackbox samples to over more real world use cases
git bisect good cdae128138a7a401753033f9d3308374f1ee821a
# bad: [8e5f8cf7573718078333615815e93aa04695be3a] WIP: improved naming and documentation related to new Pattern abstraction
git bisect bad 8e5f8cf7573718078333615815e93aa04695be3a
# good: [24f3454c0eebba6231568bf2ec13ae7d7369a9f1] Size(): replace static_cast<int>(... .size()|.length()) with new Size()
git bisect good 24f3454c0eebba6231568bf2ec13ae7d7369a9f1
# bad: [5566db9885b6bf8d40de64c50db5d65d7a29d484] WIP: introduce new infrastructure and algorithms for the 1D RowReaders
git bisect bad 5566db9885b6bf8d40de64c50db5d65d7a29d484

And here is the git bisect bad commit 5566db9885b6bf8d40de64c50db5d65d7a29d484 report, whose author is @axxel:
5566db9885b6bf8d40de64c50db5d65d7a29d484 is the first bad commit
commit 5566db9885b6bf8d40de64c50db5d65d7a29d484
Author: Axel Waggershauser<EMAIL_ADDRESS>Date:   Mon Jul 6 17:27:21 2020 +0200

    WIP: introduce new infrastructure and algorithms for the 1D RowReaders

    Instead of working on `BitArray` and count consecutive 1s and 0s in each
    `RowReader` implementation, we can do that once and work on ints instead.

    This commit also includes new algorithms for the 3 codes based on two level
    bar codes (only narrow and wide bars/spaces). ITF, Codabar and Code39 are
    now based on the same code and about 10x faster than before. Also Codabar
    works on more samples.

    The new code is currently disabled. See ZXConfig.h. There is code to
    support both old and new `ODRowReader`s during a transition period. The
    full performance benefit will be realized, once the old `BitArray`
    version can be dropped.

 core/CMakeLists.txt                   |   1 +
 core/src/BinaryBitmap.h               |  22 ++++
 core/src/DecodeStatus.h               |   5 +
 core/src/GlobalHistogramBinarizer.cpp |  47 ++++++++
 core/src/GlobalHistogramBinarizer.h   |   1 +
 core/src/Pattern.h                    | 204 ++++++++++++++++++++++++++++++++++
 core/src/ZXConfig.h                   |   6 +
 core/src/oned/ODCodabarReader.cpp     |  74 ++++++++++--
 core/src/oned/ODCodabarReader.h       |   1 +
 core/src/oned/ODCode39Reader.cpp      |  63 ++++++++++-
 core/src/oned/ODCode39Reader.h        |   1 +
 core/src/oned/ODITFReader.cpp         |  55 +++++++++
 core/src/oned/ODITFReader.h           |   1 +
 core/src/oned/ODReader.cpp            |  21 ++++
 core/src/oned/ODRowReader.cpp         |   9 ++
 core/src/oned/ODRowReader.h           |  68 +++++++++++-
 test/blackbox/BlackboxTestRunner.cpp  |  10 ++
 17 files changed, 578 insertions(+), 11 deletions(-)
 create mode 100644 core/src/Pattern.h

something that maybe helpful: https://en.cppreference.com/w/cpp/numeric/math/fabs

attachment: two bad bisect logs

@ git bisect bad 5351b67eac63c7e544274abf5b15b55c7716a6cf
2020-07-13T17:05:20.7845210Z FAILED: CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.cpp.o
2020-07-13T17:05:20.7951090Z /Applications/Xcode_11.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DNODE_EDITOR_EXPORTS -DNODE_EDITOR_SHARED -DQAPPLICATION_CLASS=QApplication -DQV2RAY_QWIDGETS -DQV2RAY_VERSION_BUGFIX=1 -DQV2RAY_VERSION_BUILD=5779 -DQV2RAY_VERSION_MAJOR=2 -DQV2RAY_VERSION_MINOR=6 -DQV2RAY_VERSION_STRING=\"2.6.1\" -D_QV2RAY_BUILD_EXTRA_INFO_STR_="\"Qv2ray 2.6.1:5779\"" -D_QV2RAY_BUILD_INFO_STR_="\"Qv2ray from manual build\"" -I. -I../ -Iqv2ray-zxing_autogen/include -I../3rdparty/zxing-cpp/core/src -I../3rdparty/zxing-cpp/core/src/aztec -I../3rdparty/zxing-cpp/core/src/datamatrix -I../3rdparty/zxing-cpp/core/src/maxicode -I../3rdparty/zxing-cpp/core/src/oned -I../3rdparty/zxing-cpp/core/src/oned/rss -I../3rdparty/zxing-cpp/core/src/pdf417 -I../3rdparty/zxing-cpp/core/src/qrcode -I../3rdparty/zxing-cpp/core/src/textcodec -O3 -DNDEBUG -isysroot /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13   -std=gnu++17 -MD -MT CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.cpp.o -MF CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.cpp.o.d -o CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.cpp.o -c ../3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.cpp
2020-07-13T17:05:20.8048300Z In file included from ../3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.cpp:18:
2020-07-13T17:05:20.8150570Z In file included from ../3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.h:19:
2020-07-13T17:05:20.8247130Z ../3rdparty/zxing-cpp/core/src/oned/rss/../ODRowReader.h:187:21: error: call to 'abs' is ambiguous
2020-07-13T17:05:20.8248820Z                         float variance = std::abs(counters[x] - pattern[x] * unitBarWidth);
2020-07-13T17:05:20.8249590Z                                          ^~~~~~~~
2020-07-13T17:05:20.8251040Z ../3rdparty/zxing-cpp/core/src/oned/rss/../ODRowReader.h:199:10: note: in instantiation of function template specialization 'ZXing::OneD::RowReader::PatternMatchVariance<int, int>' requested here
2020-07-13T17:05:20.8252220Z                 return PatternMatchVariance(counters.data(), pattern.data(), counters.size(), maxIndividualVariance);
2020-07-13T17:05:20.8252920Z                        ^
2020-07-13T17:05:20.8254380Z ../3rdparty/zxing-cpp/core/src/oned/rss/ODRSSReaderHelper.h:42:19: note: in instantiation of function template specialization 'ZXing::OneD::RowReader::PatternMatchVariance<std::__1::array<int, 4>, std::__1::array<int, 4> >' requested here
2020-07-13T17:05:20.8255730Z                         if (RowReader::PatternMatchVariance(counters, finderPatterns[value], MAX_INDIVIDUAL_VARIANCE) < MAX_AVG_VARIANCE) {
2020-07-13T17:05:20.8256530Z                                        ^
2020-07-13T17:05:20.8258090Z ../3rdparty/zxing-cpp/core/src/oned/ODRSSExpandedReader.cpp:163:28: note: in instantiation of function template specialization 'ZXing::OneD::RSS::ReaderHelper::ParseFinderValue<std::__1::array<int, 4>, std::__1::array<std::__1::array<int, 4>, 6> >' requested here
2020-07-13T17:05:20.8267830Z         int value = ReaderHelper::ParseFinderValue(counters, FINDER_PATTERNS);
2020-07-13T17:05:20.8369780Z                                   ^
2020-07-13T17:05:20.8461590Z /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:132:6: note: candidate function
2020-07-13T17:05:20.8472650Z int      abs(int) __pure2;
2020-07-13T17:05:20.8473400Z          ^
2020-07-13T17:05:20.8474190Z /Applications/Xcode_11.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:111:44: note: candidate function
2020-07-13T17:05:20.8475050Z inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
2020-07-13T17:05:20.8475750Z                                            ^
2020-07-13T17:05:20.8476570Z /Applications/Xcode_11.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:113:44: note: candidate function
2020-07-13T17:05:20.8477930Z inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
2020-07-13T17:05:20.8478660Z                                            ^
2020-07-13T17:05:20.8479220Z 1 error generated.

@ git bisect bad 8e5f8cf7573718078333615815e93aa04695be3a:
2020-07-13T18:16:39.4716920Z FAILED: CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp.o
2020-07-13T18:16:39.4822380Z /Applications/Xcode_11.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DNODE_EDITOR_EXPORTS -DNODE_EDITOR_SHARED -DQAPPLICATION_CLASS=QApplication -DQV2RAY_QWIDGETS -DQV2RAY_VERSION_BUGFIX=1 -DQV2RAY_VERSION_BUILD=5776 -DQV2RAY_VERSION_MAJOR=2 -DQV2RAY_VERSION_MINOR=6 -DQV2RAY_VERSION_STRING=\"2.6.1\" -D_QV2RAY_BUILD_EXTRA_INFO_STR_="\"Qv2ray 2.6.1:5776\"" -D_QV2RAY_BUILD_INFO_STR_="\"Qv2ray from manual build\"" -I. -I../ -Iqv2ray-zxing_autogen/include -I../3rdparty/zxing-cpp/core/src -I../3rdparty/zxing-cpp/core/src/aztec -I../3rdparty/zxing-cpp/core/src/datamatrix -I../3rdparty/zxing-cpp/core/src/maxicode -I../3rdparty/zxing-cpp/core/src/oned -I../3rdparty/zxing-cpp/core/src/oned/rss -I../3rdparty/zxing-cpp/core/src/pdf417 -I../3rdparty/zxing-cpp/core/src/qrcode -I../3rdparty/zxing-cpp/core/src/textcodec -O3 -DNDEBUG -isysroot /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13   -std=gnu++17 -MD -MT CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp.o -MF CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp.o.d -o CMakeFiles/qv2ray-zxing.dir/3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp.o -c ../3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp
2020-07-13T18:16:39.4879190Z In file included from ../3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp:18:
2020-07-13T18:16:39.4929520Z In file included from ../3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.h:19:
2020-07-13T18:16:39.4943700Z In file included from ../3rdparty/zxing-cpp/core/src/oned/ODRowReader.h:22:
2020-07-13T18:16:39.5040250Z ../3rdparty/zxing-cpp/core/src/Pattern.h:179:8: error: call to 'abs' is ambiguous
2020-07-13T18:16:39.5066020Z                         if (std::abs(view[x] - pattern[x] * moduleSize) > moduleSizeRef / 2)
2020-07-13T18:16:39.5167210Z                             ^~~~~~~~
2020-07-13T18:16:39.5178780Z ../3rdparty/zxing-cpp/core/src/Pattern.h:207:42: note: in instantiation of function template specialization 'ZXing::IsPattern<9, 6>' requested here
2020-07-13T18:16:39.5220070Z                 view, [&pattern](auto window) { return IsPattern(window, pattern); }, quiteZoneScale);
2020-07-13T18:16:39.5236220Z                                                        ^
2020-07-13T18:16:39.5322750Z ../3rdparty/zxing-cpp/core/src/Pattern.h:206:9: note: in instantiation of function template specialization 'ZXing::FindPattern<9, (lambda at ../3rdparty/zxing-cpp/core/src/Pattern.h:207:9)>' requested here
2020-07-13T18:16:39.5344690Z         return FindPattern<LEN>(
2020-07-13T18:16:39.5347160Z                ^
2020-07-13T18:16:39.5348700Z ../3rdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp:227:21: note: in instantiation of function template specialization 'ZXing::FindPattern<9, 6, true>' requested here
2020-07-13T18:16:39.5350250Z         auto next = ZXing::FindPattern(row.subView(0, -minCharCount * CHAR_LEN), START_PATTERN, QUITE_ZONE_SCALE);
2020-07-13T18:16:39.5350980Z                            ^
2020-07-13T18:16:39.5351800Z /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:132:6: note: candidate function
2020-07-13T18:16:39.5352580Z int      abs(int) __pure2;
2020-07-13T18:16:39.5353030Z          ^
2020-07-13T18:16:39.5353800Z /Applications/Xcode_11.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:111:44: note: candidate function
2020-07-13T18:16:39.5354690Z inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
2020-07-13T18:16:39.5355330Z                                            ^
2020-07-13T18:16:39.5356150Z /Applications/Xcode_11.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:113:44: note: candidate function
2020-07-13T18:16:39.5357050Z inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
2020-07-13T18:16:39.5357710Z                                            ^
2020-07-13T18:16:39.5358210Z 1 error generated.

Thanks for the feedback. I'll fix that shortly. I appreciate people testing the current WIP but would not generally advice release that code at the moment. Note that we have not tagged it as a release and the API is definitively not stable. (See, e.g. the INVALID -> NONE rename I just commited).

After switching to a recent commit hash 6369cb9d1525b1b2cf0890b51b1d1a7871b2fa38, we can finally build without any error. Thank you for the timely response!
We understand that we are having risk breaking our API when following the bleeding-edge of upstream. We think that it will be worthy, since we can act as another kind of "Continous Integration" to help upstream improve the code from time to time.
Thanks for the great project you've maintained! Cheers!


New release for eo-0.40.5

New release for eo-0.40.5

PR-Codex overview
This PR updates the version of various eo files and test cases from 0.40.4 to 0.40.5, ensuring compatibility with the latest changes in the system. It also adds a home property to several files.
Detailed summary

Updated version from 0.40.4 to 0.40.5 in multiple files.
Added home property to various eo files.
Included new test cases in tests/org/eolang directory.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@rultor release, tag is 0.40.5

@rultor release, tag is 0.40.5

@yegor256 OK, I will release it now. Please check the progress here.

@rultor release, tag is 0.40.5

@yegor256 Done! FYI, the full log is here (took me 4min).


Automatic code fix suggestions from rubocop

merge! without block is same as overwrite
Use =~ instead of match
Use delete instead of g_sub
Use casecmp instead of downcase and ==

This can be closed now, right?

Right, I'm tracking rubocop 0.36.0 related changes here: https://github.com/mgrebenets/fastlane/tree/rubocop-0.36.0

Great :+1:


snapshot_take should handle non trivialy copyable types, (types with ptrs like arrays)

This is most possibly related to the bug in keccak, which is caused by the clone on the array, which calls snapshot_take and array_snapshot_pop_front

fixed by #338


BACK-END :  Create a Google Cloud Function and write code to connect to GC Big Query

Go to the Google Cloud Console
Create a Google Cloud Function
Write a Python code to connect to the Big-Query Database

@Bansi1701  Please provide updates on this.

@Stella-Gu If you can also work on this Issue, Alongside Bansi, It would be great.

Done

Set up a python dev environment https://cloud.google.com/python/docs/setup#windows_1
In Progress
Using BigQuery with Python Tutorial https://codelabs.developers.google.com/codelabs/cloud-bigquery-python#0

@Bansi1701 and @Stella-Gu  work together and create the cloud function that can connect to the big query.

Completed

Using BigQuery with Python Tutorial https://codelabs.developers.google.com/codelabs/cloud-bigquery-python#0
Key points: initial set up and permissions, creating a BigQuery service account, python code to connect with data in BigQuery
Side note: json files and Python can be used to create a dataset and table in BigQuery
Result: I know how to access and manipulate BigQuery data using Python.
Useful link for an alternate way to create a BigQuery service account and set up permissions: https://docs.openbridge.com/en/articles/1856793-how-to-set-up-google-bigquery-creating-and-configuring-service-accounts-in-google-cloud-console

I did everything in my own project but I should be able to replicate the results in macfaqchatbot
I have a better understanding of how to do this in a cloud function after the meeting, got confused with the HTTP request earlier
Next Steps

Write Python code connected to one of the BigQuery tables (?) to query data within a Google Cloud function in the macfaqchatbot project

Query the Google Cloud Big query database.

Completed

Created a Google Cloud function (bigquery-connection) that connects with a BigQuery table

Currently, it connects with our libans table in the mcmaster_library_faq dataset and selects questions of a specified topic in related_topics. The function returns the questions in an array
Further comments are in the function

Resources

Template from: https://codelabs.developers.google.com/codelabs/cloud-bigquery-python#0
Important to include “google-cloud-bigquery” in requirements.txt
Work with Arrays in BigQuery: https://cloud.google.com/bigquery/docs/arrays#:~:text=To check if an array,the EXISTS operator with UNNEST

Next Steps?

Awesome @Stella-Gu , getting it working quickly and thanks for sharing the references too.
If you can add this code/logic to the cloud function - dialogflow-es-test, That would be great as that's the main cloud function we will be using for testing.  And once you are done transferring and testing the code. you can delete this cloud function.
Thanks again.


Update Data Rescue to 4.2

Thank you for the contribution. It was merged directly as e54f3ea853bdb88ee154691551b7ac459953bd6f to keep commit history cleaner. Your contribution is still credited to you.


Spiky Bracers - Gives glow to cards if they can be affected (thanks to Darkglade#0323 for the suggestion)

Main problem of glows: I have to change the color when the hands is there, when it isn't... flashing should be enough.

Also, normally usable cards are already glowing.

And done.


[swarm] Downgrades from 1.13 to 1.12 can cause panic

The vendored version of etcd/raft changed their WAL file format in a non-backward-compatible way. Also, Docker 1.13 now encrypts WAL files. Because of these changes, it's not possible for 1.12 to read WAL files written by 1.13.
We were aware of this near the start of the release cycle, and decided to work around the problem by migrating the files to a new directory, and keeping the old ones in place. The idea was that on a downgrade, the engine would see the old state directory, and catch up to the latest state through Raft. See this PR for more details: https://github.com/docker/swarmkit/pull/1483
Unfortunately, this turns out not to work reliably. etcd/raft can panic if the node appears to have gone back in time. The leader keeps track of which data each node has, and will send messages based on this information. If a node receives a message that implies it previously had data that it no longer has, it will panic. See https://github.com/docker/swarmkit/pull/1815#issuecomment-267703760 for more details.
Here are a few ideas of how to deal with this:

Document a process for downgrading from 1.13 to 1.12, involving demoting the manager and promoting it again after the downgrade.
Provide a reverse migration tool that can translate the new WAL format into the old one. This would involve forking the old version of the etcd/raft WAL code.

cc @dongluochen @cyli @aluzzardi @icecrime

https://github.com/docker/swarmkit/pull/1756 attempts to provide a downgrade tool to allow users to go from v3 back down to v2.

We will document this rather than providing a migration tool.

I'm going to close this, since it's safe to say that downgrades to Docker 1.12 are not going to be supported by any future versions.


Add Normalized method to Quaternion.hh

Add the method Normalized to the Quaternion class.
This PR is related to #34

@chapulina @j-rivero Could you help me with this CI error for Windows? I couldn't get the cause :thinking:
By the way, Why the unit tests case for Quaternion.hh is so big? Shouldn't we split it into several test cases for each method, in order to be easier to detect the error?

I couldn't tell what was wrong with the Windows build, so I retriggered it

I couldn't tell what was wrong with the Windows build, so I retriggered it

I see an "internal compiler error". Usually means one of two things:

There is not enough RAM to compile the code
The code change triggered a bug in the compiler

We have run 869 and 870 on the same Windows node with this problem. I've changed the configuration to run on the other Windows node, let's see if it fails too:

Why the unit tests case for Quaternion.hh is so big? Shouldn't we split it into several test cases for each method, in order to be easier to detect the error?

I think that's probably just old. I agree that having smaller tests would make it easier to handle regressions whenever we have any.

Can I make these changes? Should I open an issue for that?

Can I make these changes?

Yeah go for it! Thanks!

Can I make these changes?

Yeah go for it! Thanks!

Just make PR but don't need to open a new issue right?

Just make PR but don't need to open a new issue right?

Yeah I think that's fine :ok:


Update supervisor domain diagram to show S-mode absent cases

If Smmtt also supports M-mode only or M/U mode systems, where S-mode is absent, adding some description or diagrams for those use cases is helpful to people.
Originally posted by @gagachang in https://github.com/riscv/riscv-smmtt/issues/3#issuecomment-1767503713

added PR #41
cc @gagachang


Trying to get G++ 4.8 on Snow Leopard

I will just drop it here...
Tyr:~ $ brew install gcc48
==> Installing gcc48 from homebrew/homebrew-versions
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.8.4/gcc-4.8.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc48-4.8.4.tar.bz2
==> ../configure --build=x86_64-apple-darwin10.8.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
Last 15 lines from /Volumes/Data/10.6/Users/gian/Library/Logs/Homebrew/gcc48/02.make:
true "AR_FLAGS=rc" "CC_FOR_BUILD=clang" "CFLAGS=-g -O2  -m32" "CXXFLAGS=-g -O2  -m32" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=-m32" "LIBCFLAGS=-g -O2  -m32" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=/usr/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr/local/Cellar/gcc48/4.8.4" "infodir=/usr/local/Cellar/gcc48/4.8.4/share/info" "libdir=/usr/local/Cellar/gcc48/4.8.4/lib/gcc/4.8" "prefix=/usr/local/Cellar/gcc48/4.8.4" "includedir=/usr/local/Cellar/gcc48/4.8.4/include" "AR=ar" "AS=/private/tmp/gcc4820151129-326-1loboe/gcc-4.8.4/build/./gcc/as" "LD=/private/tmp/gcc4820151129-326-1loboe/gcc-4.8.4/build/./gcc/collect-ld" "LIBCFLAGS=-g -O2  -m32" "NM=/private/tmp/gcc4820151129-326-1loboe/gcc-4.8.4/build/./gcc/nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /usr/bin/make
/usr/bin/make "DESTDIR=" "RPATH_ENVVAR=DYLD_LIBRARY_PATH" "TARGET_SUBDIR=x86_64-apple-darwin10.8.0" "bindir=/usr/local/Cellar/gcc48/4.8.4/bin" "datadir=/usr/local/Cellar/gcc48/4.8.4/share" "exec_prefix=/usr/local/Cellar/gcc48/4.8.4" "includedir=/usr/local/Cellar/gcc48/4.8.4/include" "datarootdir=/usr/local/Cellar/gcc48/4.8.4/share" "docdir=/usr/local/Cellar/gcc48/4.8.4/share/doc/" "infodir=/usr/local/Cellar/gcc48/4.8.4/share/info" "pdfdir=/usr/local/Cellar/gcc48/4.8.4/share/doc/" "htmldir=/usr/local/Cellar/gcc48/4.8.4/share/doc/" "libdir=/usr/local/Cellar/gcc48/4.8.4/lib/gcc/4.8" "libexecdir=/usr/local/Cellar/gcc48/4.8.4/libexec" "lispdir=" "localstatedir=/usr/local/Cellar/gcc48/4.8.4/var" "mandir=/usr/local/Cellar/gcc48/4.8.4/share/man" "oldincludedir=/usr/include" "prefix=/usr/local/Cellar/gcc48/4.8.4" "sbindir=/usr/local/Cellar/gcc48/4.8.4/sbin" "sharedstatedir=/usr/local/Cellar/gcc48/4.8.4/com" "sysconfdir=/usr/local/Cellar/gcc48/4.8.4/etc" "tooldir=/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0" "build_tooldir=/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0" "target_alias=x86_64-apple-darwin10.8.0" "AWK=awk" "BISON=bison" "CC_FOR_BUILD=clang" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=clang++" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=" "LEX=flex" "M4=gm4" "MAKE=/usr/bin/make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/usr/local/Library/ENV/4.3/sed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2 -mdynamic-no-pic" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CHECKING=--enable-checking=yes" "STAGE1_LANGUAGES=c,c++,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET=/private/tmp/gcc4820151129-326-1loboe/gcc-4.8.4/build/./gcc/xgcc -B/private/tmp/gcc4820151129-326-1loboe/gcc-4.8.4/build/./gcc/" "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/bin/ -B/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/lib/ -isystem /usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/include -isystem /usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/sys-include" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=" "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=/usr/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "READELF_FOR_TARGET=readelf" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "STAGE1_CFLAGS=-g" "STAGE1_CXXFLAGS=-g" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-g -O2 -mdynamic-no-pic" "STAGE3_CXXFLAGS=-g -O2 -mdynamic-no-pic" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-g -O2 -mdynamic-no-pic" "STAGE4_CXXFLAGS=-g -O2 -mdynamic-no-pic" "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_CXXFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_TFLAGS=" "CXX_FOR_TARGET= $r/./gcc/xg++ -B$r/./gcc/ -nostdinc++ `if test -f $r/x86_64-apple-darwin10.8.0/libstdc++-v3/scripts/testsuite_flags; then /bin/sh $r/x86_64-apple-darwin10.8.0/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$r/x86_64-apple-darwin10.8.0/libstdc++-v3/src -L$r/x86_64-apple-darwin10.8.0/libstdc++-v3/src/.libs" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000"  compare
rm -f stage_current
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1objplus-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
gcc/omega.o differs
gcc/reg-stack.o differs
gcc/reload.o differs
make[2]: *** [compare] Error 1
make[1]: *** [stage3-bubble] Error 2
make: *** [bootstrap] Error 2

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/homebrew/homebrew-versions/issues

READ THIS: https://git.io/brew-troubleshooting

Can you read this and provide the requested diagnostics? Thanks!

gian@Tyr:~ $ brew update
Already up-to-date.
gian@Tyr:~ $ brew doctor
Your system is ready to brew.
gian@Tyr:~ $ ls -alp /usr/local
total 104
drwxrwxr-x  20 root  admin    680 30 Nov 19:23 ./
drwxr-xr-x@ 14 root  wheel    476 11 Apr  2015 ../
drwxr-xr-x  14 gian  admin    476 30 Nov 21:49 .git/
-rw-r--r--   1 gian  admin    462 26 Nov 19:14 .gitignore
-rw-r--r--   1 gian  admin   1331 30 Nov 19:23 .travis.yml
-rw-r--r--   1 gian  admin    291 26 Nov 19:14 .yardopts
-rw-r--r--   1 gian  admin   3161 26 Nov 19:14 CODEOFCONDUCT.md
-rw-r--r--   1 gian  admin   1217 26 Nov 19:14 CONTRIBUTING.md
drwxr-xr-x  29 gian  admin    986 30 Nov 21:31 Cellar/
drwxr-xr-x   3 gian  admin    102 11 Apr  2015 Frameworks/
-rw-r--r--   1 gian  admin   1241 11 Apr  2015 LICENSE.txt
drwxr-xr-x  11 gian  admin    374 26 Nov 20:36 Library/
-rw-r--r--   1 gian  admin   2246 26 Nov 19:14 README.md
-rw-r--r--   1 gian  admin  23867 26 Nov 19:14 SUPPORTERS.md
drwxr-xr-x  94 gian  admin   3196 29 Nov 14:04 bin/
drwxr-xr-x   4 gian  admin    136 11 Apr  2015 etc/
drwxr-xr-x  23 gian  admin    782 29 Nov 14:04 include/
drwxr-xr-x  61 gian  admin   2074 29 Nov 14:04 lib/
drwxr-xr-x  29 gian  admin    986 29 Nov 14:09 opt/
drwxr-xr-x  14 gian  admin    476 29 Nov 14:04 share/
gian@Tyr:~ $ which gcc
/usr/bin/gcc
gian@Tyr:~ $ which g++
/usr/bin/g++
gian@Tyr:~ $ gcc --version

i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gian@Tyr:~ $ g++ version
i686-apple-darwin10-llvm-g++-4.2: version: No such file or directory
i686-apple-darwin10-llvm-g++-4.2: no input files
gian@Tyr:~ $
gian@Tyr:~ $

Also, I use 64-bit libraries. I don't know how relevant that might be.

Can you please run brew gist-logs gcc48?

Sure. Running... it's taking a while.

https://gist.github.com/94520b32e3a37aaf1c0b

It looks like it's trying to build using Xcode 4.2's clang. What happens if you do brew install gcc48 --cc=gcc-4.2?

Running it. Time for a tea. xD

It was actually pretty fast.
gian@Tyr:~ $ brew install gcc48 --cc=gcc-4.2
==> Installing gcc48 from homebrew/homebrew-versions
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.8.4/gcc-4.8.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc48-4.8.4.tar.bz2
==> ../configure --build=x86_64-apple-darwin10.8.0 --prefix=/usr/local/Cellar/gc
Last 15 lines from /Volumes/Data/10.6/Users/gian/Library/Logs/Homebrew/gcc48/01.configure:
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for gcc... gcc-4.2
checking for C compiler default output file name...
configure: error: in `/private/tmp/gcc4820151130-84291-1v3iieg/gcc-4.8.4/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/homebrew/homebrew-versions/issues

gian@Tyr:~ $

Can I get a new set of logs from brew gist-logs please?

Yes, running it.

https://gist.github.com/6248a9689894886c5f42

Looks like it didn't grab the config.log. Do you mind running brew install gcc48 --cc=gcc-4.2 -d, dropping into a shell, and locating that file? If you upload it to gist.github.com I'll take a look.

Okie, I'm on it!

https://gist.github.com/sentient06/a95d869b03d9916f6658

Yes, thank you!
gcc-4.2 printed this message:
Xcode and/or the CLT appear to be misconfigured. Try one or both of the following:
  xcodebuild -license
  sudo xcode-select -switch /path/to/Xcode.app

Can you try those two steps and see if that helps? This happened because Homebrew's gcc-4.2 shim failed to launch the actual compiler. Xcode 4.2 did include GCC 4.2, so it should be able to work.

Given you're on Xcode 4.2, you probably want to try sudo xcode-select -switch /Developer, unless your Xcode developer dir is in another location.

gian@Tyr:~ $ xcodebuild -license
xcodebuild: error: invalid option '-license'

Trying second cmd..

Alright, I did sudo xcode-select -switch /Developer and yes, my XCode is in that path.
Then I tried again:
gian@Tyr:~ $ xcode-select -print-path
/Developer
gian@Tyr:~ $ brew install gcc48
==> Installing gcc48 from homebrew/homebrew-versions
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.8.4/gcc-4.8.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc48-4.8.4.tar.bz2
==> ../configure --build=x86_64-apple-darwin10.8.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
Last 15 lines from /Volumes/Data/10.6/Users/gian/Library/Logs/Homebrew/gcc48/02.make:
true "AR_FLAGS=rc" "CC_FOR_BUILD=clang" "CFLAGS=-g -O2  -m32" "CXXFLAGS=-g -O2  -m32" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=-m32" "LIBCFLAGS=-g -O2  -m32" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=/usr/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr/local/Cellar/gcc48/4.8.4" "infodir=/usr/local/Cellar/gcc48/4.8.4/share/info" "libdir=/usr/local/Cellar/gcc48/4.8.4/lib/gcc/4.8" "prefix=/usr/local/Cellar/gcc48/4.8.4" "includedir=/usr/local/Cellar/gcc48/4.8.4/include" "AR=ar" "AS=/private/tmp/gcc4820151130-86542-1va7p20/gcc-4.8.4/build/./gcc/as" "LD=/private/tmp/gcc4820151130-86542-1va7p20/gcc-4.8.4/build/./gcc/collect-ld" "LIBCFLAGS=-g -O2  -m32" "NM=/private/tmp/gcc4820151130-86542-1va7p20/gcc-4.8.4/build/./gcc/nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /usr/bin/make
/usr/bin/make "DESTDIR=" "RPATH_ENVVAR=DYLD_LIBRARY_PATH" "TARGET_SUBDIR=x86_64-apple-darwin10.8.0" "bindir=/usr/local/Cellar/gcc48/4.8.4/bin" "datadir=/usr/local/Cellar/gcc48/4.8.4/share" "exec_prefix=/usr/local/Cellar/gcc48/4.8.4" "includedir=/usr/local/Cellar/gcc48/4.8.4/include" "datarootdir=/usr/local/Cellar/gcc48/4.8.4/share" "docdir=/usr/local/Cellar/gcc48/4.8.4/share/doc/" "infodir=/usr/local/Cellar/gcc48/4.8.4/share/info" "pdfdir=/usr/local/Cellar/gcc48/4.8.4/share/doc/" "htmldir=/usr/local/Cellar/gcc48/4.8.4/share/doc/" "libdir=/usr/local/Cellar/gcc48/4.8.4/lib/gcc/4.8" "libexecdir=/usr/local/Cellar/gcc48/4.8.4/libexec" "lispdir=" "localstatedir=/usr/local/Cellar/gcc48/4.8.4/var" "mandir=/usr/local/Cellar/gcc48/4.8.4/share/man" "oldincludedir=/usr/include" "prefix=/usr/local/Cellar/gcc48/4.8.4" "sbindir=/usr/local/Cellar/gcc48/4.8.4/sbin" "sharedstatedir=/usr/local/Cellar/gcc48/4.8.4/com" "sysconfdir=/usr/local/Cellar/gcc48/4.8.4/etc" "tooldir=/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0" "build_tooldir=/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0" "target_alias=x86_64-apple-darwin10.8.0" "AWK=awk" "BISON=bison" "CC_FOR_BUILD=clang" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=clang++" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=" "LEX=flex" "M4=gm4" "MAKE=/usr/bin/make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/usr/local/Library/ENV/4.3/sed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2 -mdynamic-no-pic" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CHECKING=--enable-checking=yes" "STAGE1_LANGUAGES=c,c++,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET=/private/tmp/gcc4820151130-86542-1va7p20/gcc-4.8.4/build/./gcc/xgcc -B/private/tmp/gcc4820151130-86542-1va7p20/gcc-4.8.4/build/./gcc/" "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/bin/ -B/usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/lib/ -isystem /usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/include -isystem /usr/local/Cellar/gcc48/4.8.4/x86_64-apple-darwin10.8.0/sys-include" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=" "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=/usr/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "READELF_FOR_TARGET=readelf" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "STAGE1_CFLAGS=-g" "STAGE1_CXXFLAGS=-g" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-g -O2 -mdynamic-no-pic" "STAGE3_CXXFLAGS=-g -O2 -mdynamic-no-pic" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-g -O2 -mdynamic-no-pic" "STAGE4_CXXFLAGS=-g -O2 -mdynamic-no-pic" "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_CXXFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_TFLAGS=" "CXX_FOR_TARGET= $r/./gcc/xg++ -B$r/./gcc/ -nostdinc++ `if test -f $r/x86_64-apple-darwin10.8.0/libstdc++-v3/scripts/testsuite_flags; then /bin/sh $r/x86_64-apple-darwin10.8.0/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$r/x86_64-apple-darwin10.8.0/libstdc++-v3/src -L$r/x86_64-apple-darwin10.8.0/libstdc++-v3/src/.libs" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000"  compare
rm -f stage_current
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1objplus-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
gcc/omega.o differs
gcc/reg-stack.o differs
gcc/reload.o differs
make[2]: *** [compare] Error 1
make[1]: *** [stage3-bubble] Error 2
make: *** [bootstrap] Error 2

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/homebrew/homebrew-versions/issues

gian@Tyr:~ $

Sorry, when you reinstall can you do that with brew install gcc48 --cc=gcc-4.2?
What happens if you do gcc-4.2 --version? What is the output of which gcc-4.2?

gcc-4.2 is not available, only plain gcc:
Last login: Mon Nov 30 23:13:48 on ttys001
gian@Tyr:~ $ gcc-4.2 --version
-bash: gcc-4.2: command not found
gian@Tyr:~ $ which gcc-4.2
gian@Tyr:~ $ gcc --version
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gian@Tyr:~ $ which gcc
/usr/bin/gcc
gian@Tyr:~ $

Is it supposed to be gcc-4.2?

Your gcc is Apple's llvm-gcc, rather than the "real" gcc-4.2. I misread your brew --config; it does appear you're missing gcc-4.2, which I had forgotten was not available in Xcode 4.2.
Unfortunately we don't support Xcode 4.2 on Snow Leopard very well. It wasn't a publicly-available release, so the Homebrew devs don't have access to it. As well, since it has only llvm-gcc and not gcc-4.2, not everything builds quite as well. You have a couple options here:

Try brew install gcc48 --cc=llvm-gcc, which may work.
Remove Xcode 4.2 and install Xcode 3.2.6.

I have XCode 3.2.6. It lives in a different dir: /XCode3. =D

So, what if I do...
gian@Tyr:~ $ sudo xcode-select -switch /XCode3/
Password:
gian@Tyr:~ $ xcode-select -print-path
/XCode3
gian@Tyr:~ $ which gcc
/usr/bin/gcc
gian@Tyr:~ $ gcc --version
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gian@Tyr:~ $

That supposedly work.. right?

Well.. gcc is the same, it seems..

That changes your Xcode path, but not the compilers in /usr/bin. Before OS X 10.9, the "Command Line Tools" package from Xcode installed its compilers right into /usr/bin, so your Xcode 4.2 install dropped its versions of the tools in there instead of Xcode 3.2.6's.

It may work after doing the xcode-select; you can try brew install gcc48 --cc=gcc-4.2 to see!

I checked my XCode 3, it works fine and I can choose my compiler!
So I checked the bin dir and got this:
gian@Tyr:bin $ pwd
/XCode3/usr/bin
gian@Tyr:bin $ ./cpp-4.2 --version
i686-apple-darwin10-cpp-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gian@Tyr:bin $

Is it possible to force homebrew to use another binary?

I am trying to use brew install gcc48 --cc=gcc-4.2 again with the xcode-select pointing to XCode 3. I foresee it will take a while, so I'll check the results tomorrow (almost 0h in the old world now). Thank you for the help!

It seems it worked!
gian@Tyr:~ $ brew install gcc48 --cc=gcc-4.2
==> Installing gcc48 from homebrew/homebrew-versions
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.8.4/gcc-4.8.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc48-4.8.4.tar.bz2
==> ../configure --build=x86_64-apple-darwin10.8.0 --prefix=/usr/local/Cellar/gcc48/4.8.4 --libdir=/usr/loca
==> make bootstrap
==> make install
/usr/local/Cellar/gcc48/4.8.4: 1027 files, 142M, built in 19.8 minutes
gian@Tyr:~ $ which gcc
/usr/bin/gcc
gian@Tyr:~ $ which gcc-4.8
/usr/local/bin/gcc-4.8
gian@Tyr:~ $ gcc-4.8 --version
gcc-4.8 (Homebrew gcc48 4.8.4) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gian@Tyr:~ $

Thank you for everything! All the best!

Closing per the resolution above. Aren't compilers fun?


Question

Works great! Thank you. Tinder only shows 10 people though, even if more than 10 people have liked you. I want to be able to see the people who have recently liked me,  and I spent a few hours looking through the scripts but I can't figure out how to increase the number of accounts you are able to view. You seem to know the Tinder API very well. Any ideas?

Duplicate of https://github.com/tajnymag/tinder-deblur/issues/2