KAFKA-4548: Add CompatibilityTest to verify that individual features …

Fix checkstyle

Rebase on trunk

I fixed some checkstyle warnings.
I'm not sure happened with Jenkins... I saw ":core:test FAILED" and "Process 'Gradle Test Executor 3' finished with non-zero exit value 1" but there were no failed tests.  :core:test should be unaffected by this patch, which doesn't change the core directory anyway...

Fix checkstyle

@cmccabe Seems this patch will need a rebase.

Rebase on trunk

I did some refactoring to make it nicer.  I also added the consumer reading back the messages we wrote.

I ran this in Jenkins and there was one failure that looks related:
test_id:    kafkatest.tests.client.test_producer_consumer_compat.TestProducerConsumerCompat.test_produce_consume.broker_version=<IP_ADDRESS>
status:     FAIL
run time:   54.753 seconds

    Kafka server didn't finish startup

https://jenkins.confluent.io/job/system-test-kafka-branch-builder/675/console
I started another build in case it was an environmental issue:
https://jenkins.confluent.io/job/system-test-kafka-branch-builder/678/

Seems like the same system test failed again.

The issue with <IP_ADDRESS> failing to start up appears to be https://issues.apache.org/jira/browse/KAFKA-4688 .  Let's just remove that version from the tested list until KAFKA-4688 can be committed and our environments are updated.

I located the failing log message here from Kafka:
http://confluent-kafka-branch-builder-system-test-results.s3-us-west-2.amazonaws.com/2017-01-21--001.1485018206--cmccabe--KAFKA-4548--6d2094c/TestProducerConsumerCompat/test_produce_consume/broker_version%3D<IP_ADDRESS>/4.tgz
It is a single line:
bash: /opt/kafka-<IP_ADDRESS>/bin/kafka-server-start.sh: No such file or directory

So this confirms that the problem is the test environment, not the test.

I removed <IP_ADDRESS> from the list of tested versions.  Once KAFKA-4688 is in, we can re-add it.  I also rebased on trunk.  Thanks for the reviews, all.

I re-added <IP_ADDRESS> as a tested version since KAFKA-4688 got committed.  I ran the tests inside docker and they all passed:
+ docker exec knode01 bash -c 'cd /kafka_src; ducktape  --cluster-file tests/cluster_file.json tests/kafkatest/tests/client/run_client_compatibility_test.py'
[INFO:2017-01-24 17:46:58,625]: starting test run with session id 2017-01-24--001...
[INFO:2017-01-24 17:46:58,625]: running 3 tests...
[INFO:2017-01-24 17:46:58,625]: Triggering test 1 of 3...
[INFO:2017-01-24 17:46:58,839]: RunnerClient: Loading test {'directory': '/kafka_src/tests/kafkatest/tests/client', 'file_name': 'run_client_compatibility_test.py', 'method_name': 'run_compatibility_test', 'cls_name': 'RunClientCompatibilityTest', 'injected_args': {'broker_version': '<IP_ADDRESS>'}}
[INFO:2017-01-24 17:46:58,852]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Setting up...
[INFO:2017-01-24 17:46:58,853]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Running...
j[INFO:2017-01-24 17:47:36,621]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: PASS
[INFO:2017-01-24 17:47:36,622]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Tearing down...
[INFO:2017-01-24 17:48:01,347]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Summary:
[INFO:2017-01-24 17:48:01,348]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Data: None
[INFO:2017-01-24 17:48:01,356]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO:2017-01-24 17:48:01,356]: Triggering test 2 of 3...
[INFO:2017-01-24 17:48:01,366]: RunnerClient: Loading test {'directory': '/kafka_src/tests/kafkatest/tests/client', 'file_name': 'run_client_compatibility_test.py', 'method_name': 'run_compatibility_test', 'cls_name': 'RunClientCompatibilityTest', 'injected_args': {'broker_version': '<IP_ADDRESS>'}}
[INFO:2017-01-24 17:48:01,372]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Setting up...
[INFO:2017-01-24 17:48:01,373]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Running...
[INFO:2017-01-24 17:48:31,580]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: PASS
[INFO:2017-01-24 17:48:31,581]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Tearing down...
[INFO:2017-01-24 17:48:58,955]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Summary:
[INFO:2017-01-24 17:48:58,956]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=<IP_ADDRESS>: Data: None
[INFO:2017-01-24 17:48:58,966]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO:2017-01-24 17:48:58,967]: Triggering test 3 of 3...
[INFO:2017-01-24 17:48:58,978]: RunnerClient: Loading test {'directory': '/kafka_src/tests/kafkatest/tests/client', 'file_name': 'run_client_compatibility_test.py', 'method_name': 'run_compatibility_test', 'cls_name': 'RunClientCompatibilityTest', 'injected_args': {'broker_version': 'trunk'}}
[INFO:2017-01-24 17:48:58,982]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=trunk: Setting up...
[INFO:2017-01-24 17:48:58,984]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=trunk: Running...
[INFO:2017-01-24 17:49:30,096]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=trunk: PASS
[INFO:2017-01-24 17:49:30,097]: RunnerClient: kafkatest.tests.client.run_client_compatibility_test.RunClientCompatibilityTest.run_compatibility_test.broker_version=trunk: Tearing down...

I ran the ducktape tests in Docker and they all passed:
KAFKA_IMAGE_REBUILD=1 TC_PATHS="tests/kafkatest/tests/client/client_compatibility_features_test.py" bash ./tests/docker/run_tests.sh
KAFKA_IMAGE_REBUILD=1 TC_PATHS="tests/kafkatest/tests/client/client_compatibility_produce_consume_test.py" bash ./tests/docker/run_tests.sh


Please add facelock to kivy-garden

I want to add a flower named FaceLock to kivy-garden. Please add garden.facelock to kivy-garden.

I'm not sure if this is the flower (you didn't provide link here), so I guess that's the thing as I don't see a similar thing in here.
I have some requests, because the repo seems to be in a seriously bad state:

over 1000 files here, even GitHub dislikes such thing
over 1000 files there
is this folder even necessary?
just no, not to mention it'll fail on Py3
17MB video in a repo? Why?

And basically the repo is over 33MB (imagine someone installing it). It'd be probably the best to create a new repository e.g. same-named as the flower you want to add (garden.facelock) and include only code + really necessary stuff (readme, screenshot).
If the widget requires that amount of files for whatever reason (I don't believe that), it would be nice to warn the user in the readme and include only the downloader.
Anyway, any widget that depends on internet connection won't be very happy widget, unless it's explicitly a widget that works with internet/networking.

@KeyWeeUsr Sorry for that, I wasn't aware that we are supposed to add a link to our flower as I saw some of the earlier request they didn't mention the links.
I have made a new repository for that and removed all the clumsiness as that was just for my use.
The final link to my flower is https://github.com/yaki29/facelock

Well, I think those were just people asking for membership, but I'm kind of glad I poked more here 😋
Anyway, still some issues persist:

it's print() (function), not print () (tuple)
is the example .xml the "cascade" or your face? If yes, I doubt it'll be useful as an example (obviously, not everyone has your face, so it won't unlock 😋 )
also, please add screenshot.png (e.g. rename if you want), so that the gallery works even with your flower

After that you may proceed with the transfering the repo e.g. to me and I'll put it to the garden with you ^^

@KeyWeeUsr I have corrected the things that you mentioned. For the second statement, I have already taken care about that, any person with two eyes, a nose and a lip pair can unlock it :yum: . That cascade detects general frontal faces.


Xiaomi philips bulb services are not working after 0.66

Home Assistant release with the issue:
0.66/0.66.1
Last working Home Assistant release (if known):
0.65
Operating environment (Hass.io/Docker/Windows/etc.):
docker
Component/platform:
https://www.home-assistant.io/components/light.xiaomi_miio/
Description of problem:
i can't set scene for my xiaomi philips bulbs : "Unable to find service light/xiaomi_miio_set_scene"
and all the services mentioned her :  https://www.home-assistant.io/components/light.xiaomi_miio/
are not available :

Expected
Set scene correctly to my xiaomi philips bulb
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
light:
  - platform: xiaomi_miio
    name: Lumière couloir 1
    host:  !secret xiaomi_philips_1_ip
    token: !secret xiaomi_philips_1
    model: philips.light.bulb

  - platform: xiaomi_miio
    name: Lumière couloir 2
    host:  !secret xiaomi_philips_2_ip
    token: !secret xiaomi_philips_2
    model: philips.light.bulb

  - platform: group
    name: Lumières couloir
    entities:
      - light.lumiere_couloir_1
      - light.lumiere_couloir_2
automation:
  - alias: 'Lumière couloir auto ON ouverture porte principale'
    trigger:
      - platform: state
        entity_id: binary_sensor.door_window_sensor_158d00016cd972
        from: 'off'
        to: 'on'
    action:
      - service: light.turn_on
        entity_id: light.lumieres_couloir

  - alias: 'Lumière couloir auto ON'
    # Avoid light on when nobody is at home
    condition:
      condition: and
      conditions:
        - condition: state
          entity_id: input_boolean.at_least_one_person_at_home
          state: 'on'
    trigger:
      - platform: state
        entity_id: binary_sensor.motion_sensor_158d0001a24c10
        to: 'on'
      - platform: state
        entity_id: binary_sensor.motion_sensor_158d0001661259
        to: 'on'
      # - condition: numeric_state
        # entity_id: sensor.illumination_158d0001a24c10
        # below: '20'
    action:
      - service: light.turn_on
        entity_id: light.lumieres_couloir
      - service: light.xiaomi_miio_set_scene
        entity_id:
          - light.lumiere_couloir_1
          - light.lumiere_couloir_2
        data:
          scene: 1
      - condition: state
        entity_id: input_boolean.is_night
        state: 'on'
      - service: light.xiaomi_miio_set_scene
        entity_id:
          - light.lumiere_couloir_1
          - light.lumiere_couloir_2
        data:
          scene: 4

  - alias: 'Lumière couloir auto OFF'
    trigger:
      - platform: state
        entity_id: binary_sensor.motion_sensor_158d0001a24c10
        to: 'off'
        for:
          seconds: 30
      - platform: state
        entity_id: binary_sensor.motion_sensor_158d0001661259
        to: 'off'
        for:
          seconds: 30
    condition:
      - condition: state
        entity_id: 'light.lumieres_couloir'
        state: 'on'
      - condition: state
        entity_id: binary_sensor.motion_sensor_158d0001661259
        state: 'off'
        for:
          seconds: 30
      - condition: state
        entity_id: binary_sensor.motion_sensor_158d0001a24c10
        state: 'off'
        for:
          seconds: 30
    action:
      - service: light.turn_off
        entity_id: light.lumieres_couloir

Traceback (if applicable):

Additional information:
Thanks for all :)

It looks like the device/component isn't available at all. Are you able to turn on the light?

Oh it works after deleting the deps folder and restart ! Thanks you very much ! :smile:


Nextcloud Caddyfile doesn't allow to use public sharing by link

This PR fixes it.
Without these changes filelist interface is loaded, but files list itself is missing.

FWIW, I use owncloud and here's what works for me:
https://<domain> {
	root /var/www/html

	# PHP-FPM
	fastcgi / owncloud:9000 php {
		index index.php
	}

	rewrite {
		r /index.php/.*
		to /index.php?{query}
	}

	# client support (e.g. os x calendar / contacts)
	redir /.well-known/carddav /remote.php/carddav 301
	redir /.well-known/caldav /remote.php/caldav 301

	status 403 /forbidden

	# remove trailing / on some paths
	rewrite {
		r ^/remote.php/(webdav|caldav|carddav)(\/?)$
		to /remote.php/{1}
	}

	rewrite {
		r ^/remote.php/(webdav|caldav|carddav)/(.+)(\/?)$
		to /remote.php/{1}/{2}
	}

        rewrite {
                r ^/public.php/(dav|webdav|caldav|carddav)(\/?)$
                to /public.php/{1}
        }

        rewrite {
                r ^/public.php/(dav|webdav|caldav|carddav)/(.+)(\/?)$
                to /public.php/{1}/{2}
        }

	rewrite {
		r ^/(?:\.htaccess|data|config|db_structure\.xml|README)
		to /forbidden
	}

	header / {
		Strict-Transport-Security "max-age=31536000;"
	}

	gzip
	log /var/log/caddy/access.log
	errors /var/log/caddy/error.log

	tls <email>
}


Call to an undefined method Mockery\ExpectationInterface|Mockery\ExpectsHigherOrderMessage::once()

$mock = Mockery::mock(MyClass::class);

self::assertSth($mock);

...

private function assertSth(MockInterface $mock) : void
{
    $mock->expect('call')->once();
}

Gives

Call to an undefined method Mockery\ExpectationInterface|Mockery\ExpectsHigherOrderMessage::once()

v0.11.3
Not sure if doable 🤔

Same issue with:
        $form->shouldReceive('get->getData')->times(2)->andReturnNull();

Call to an undefined method
         Mockery\ExpectationInterface|Mockery\HigherOrderMessage::times().

For the record I do not have this issue anymore by upgrading from 0.12.3 to 0.12.5


Custom text for jvFloat

Hi, love the library!
Would it perhaps be interesting to add a custom text to be added to the jfFloat-label? Something like this, perhaps?
function getPlaceholderText($el) {
  var text = $el.data('float-text') || $el.attr('placeholder');

  if (typeof text == 'undefined') {
    text = $el.attr('title');
  }

  return text;
}

<input id="username" type="text" data-float-text="Be creative! (username)" >

you can already use the custom text by using the placeholder attribute, which explain what the input is for. If you want to use another attribute to set the float label text, feel free to fork my library and make your own adjustments :+1:


running AutoQC on AWS

Pushing all of quota through AutoQC on my home machine takes ~20 hours; it may behoove us to be prepared to run full data reduction runs on AWS. Here are some notes on how I got AutoQC up and running there:

make a free account at AWS
follow the instructions to set up access to EC2 - I followed these exactly, except for the warnings about not allowing ssh from anywhere; there's no security concerns here, easiest to just allow ssh.
After signing in as your IAM user from the last step, go to the 'Services' link in the top navigation bar, and choose:
EC2
launch instance
amazon linux
t2.micro
launch

After launching this compute cluster, a link is presented to go back to the list of instances; go there, wait for this new instance to finish initializing, click on it, click connect at the top, and follow the instructions to ssh into your new node.
Once there, set up AutoQC and all its dependencies via the following:
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh
bash Anaconda-2.3.0-Linux-x86_64.sh

(disconnect / reconnect)
sudo yum -y install geos
conda install netcdf4
sudo yum -y install git
git clone https://github.com/IQuOD/AutoQC.git
sudo yum -y install gcc-c++ python27-devel atlas-sse3-devel lapack-devel
pip install -r requirements.txt

After which AutoQC runs happily on the demo dataset it ships with. Next up will be sticking quota on S3, and parallelizing.
Note this service is not free - the setup demo I described above should (should) run on free-tier resources, but a large cluster to run on all of quota will cost a few dollars; hopefully this will be in the single digits and will only have to be run very rarely to reduce the full raw dataset.

Note continued: uploading raw data to S3 is straightforward, but mounting is a bit fraught; the instructions here mostly do the job, but I also needed some extra dependencies:
sudo yum install gcc libstdc++-devel gcc-c++ fuse fuse-devel curl-devel libxml2-devel openssl-devel mailcap

After this and the above, a c3.8xlarge cluster analyzed all of quota in about 30 minutes, after using the splitData.py script introduced in #107 to divide the dataset into 30 equal parts, analyzing each component in its own process. This compute time corresponds (far as I can tell) to $1.68 in fees.

S3 cont: also useful are these instructions (and also see these for authentication) for downloading results en masse off of S3 afterwards.

Hi @BillMills, this sounds great! I'm not sure if this is possible, but I was wondering it is possible to supply the list of profiles to the parallel processing rather than a list of files? This would avoid the extra step of splitting the data files. Either way, there is potentially an minor issue with checks that need to know about other profiles (e.g. the track check) as all the required profiles may not be in the same file. I guess, however, this could be avoided by reading in all profile headers to a master list and saving them in the data store before going into the parallel section?

No problem - one of my many to-do's is to wrap this up a little more concisely so it's a bit clearer / easier to reproduce (might even try making a Docker image, we'll see).
Anyway, yes you're exactly right on the issues with the track check, as I mentioned in #93. My intention is to re-do the data file splitting (see util/splitData.py) to sort profiles based on what track they are in, since this involves the minimal rewriting of our infrastructure; the only possible problem, is if you foresee many different such sorts needed that are badly disjoint (like needing all profiles on a given track to be in one file, and all profiles that satisfy some other condition to be in one file, and those two conditions are wildly different / uncorrelated such that it's impossible to satisfy both at once without just jamming everything together in one giant file and a single thread).
We could do as you describe, with a master list that then assigns subsets of profiles to individual threads; but that would convolve the data sorting with the data QC, which is just asking for trouble. By splitting our data up optimally in a separate script before we even think about QC, we have two 'simple' things to get right, instead of one complicated thing. One of my biggest concerns for AutoQC right now is its infrastructural complication; unit testing there is a bit patchy, so I am hesitant to complicate things there any further if we can find ways to avoid it.

Once I'm 100% convinced we aren't getting a performance hit from Docker, that'll be our recommended running environment for production runs, and we can close out here.

Alright - #122 is merged including basic running instructions; as I mention in that PR, I want to write down how to mount stuff from S3 -> EC2 -> docker in a wiki page; not very hard once you know how to do it, but worth some notes; once that's done, then we'll really be ready to close out here (and I can get back to the CSIRO tests :)

Alright, as promised, here are the final bits of instruction necessary to do a full production run on AWS using Docker: https://github.com/IQuOD/AutoQC/wiki/Working-with-data-on-Amazon-Web-Services
Also note, we now have a wiki - this would be a good place to add detailed instructions or other text (will probably move the notes about machine learning in there, for example).


Similar function to capybara's save_and_open_page?

Hi there,
Just wondering if there's a method similar to capybara's save and open page. That method is very useful to see if you're actually on the page you think you're on (for example if you've forgotten to login and you've been redirected without realizing it.)

take_screenshot/1 is available and does the same thing, does that cover what you're looking for? https://hexdocs.pm/hound/Hound.Helpers.Screenshot.html#take_screenshot/1


Support for SetConstraints in sundials>=3.2.0 (#101)

Add proposed test for constraints
Add constraints option

Does this look alright to you @spcornelius ?
(the number of arguments passed to simple_adaptive & simple_predefined is getting out of hand, but I'll defer addressing that for now).


add more awesome profile ❤

More sweet profile and awesome code ❤✌

@yezz123 Just now merged 35 profile readmes 😅

@AbhishekMaira10 What's the criteria for getting featured?
I would love to get featured in this wonderful repository

Nothing specific. You just need to have a unique profile with good features and you can contribute.

Hi @abhisheknaiidu add mine too and others waiting on PR

@abhisheknaiidu have a look at my PR for my dynamic profile https://github.com/akshitagupta15june/akshitagupta15june

@abhisheknaiidu could you please take a look at the PR's raised to get featured. Mine is here https://github.com/abhisheknaiidu/awesome-github-profile-readme/pull/327


Skip specific fields by directive name

Hi!
Use case
I want to generate GraphQL SDK for Gitlab API. I don't want @deprecated fields to be even generated
Proposed solution
We may introduce a new parameter skipDirectives: @deprecated which which will skip specific fields.
What do you think of this?
Thank you!

Basically I don't want to have these lines in the generated code:

Would you mind posting your codegen.ts you use with gitlab's GQL API? I'm generating the same thing with the config below, but unable to compile as it contains ~100 duplicates
codegen.ts
import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
  schema: "https://gitlab.com/api/graphql",
  documents: ["src/gql/**/*.gql"],
  debug: true,
  verbose: true,
  overwrite: true,
  ignoreNoDocuments: true,
  generates: {
    "./src/generated/api.ts": {
      preset: "client",
      config: {
        gqlImport: "@urql/vue#gql",
        useTypeImports: true,
        dedupeFragments: true,
        optimizeDocumentNode: true,
        emitLegacyCommonJSImports: false,
      },
      plugins: ["typescript-vue-urql"],
    },
  },
  hooks: {
    afterOneFileWrite: "prettier --write",
  },
};
export default config;

When I try to use a generated option from that file I get tons of warnings like so...

Do you spot something I'm doing wrong? Is there some other way to ignore those deprecated fields?

@treystout sure. my source code is here: https://github.com/theplenkov-npm/gitlab-graphql-types/blob/main/codegen.yml
and it generates typescript file like this:
https://npm.runkit.com/gitlab-graphql-types
you can browse file graphql.d.ts

meanwhile i've changed my approach now.. I don't use now this large file with all declarations - but generate sdk only for needed queries.
Here is example:
https://gitlab.com/theplenkov-npm/gitlab-ci-cli/-/blob/main/packages/sdk/codegen.yml
it generates me ready-to-use sdk with needed resolvers:
<EMAIL_ADDRESS>However it doesn't deny that fact that generated files contain deprecated attributes. I'd like codegen to skip them somehow

@ThePlenkov thank you for posting your examples, do you not get a ton of duplicate field errors in the enums when you generate? Maybe something in my eslint is wrong? See my screenshot with all the "Duplicate identifier" lines?

update which solved the issue for me was adding ?remove_deprecated=true when fetching the schema.  I didn't know that! Well done, man!


SIPREC and return audio as response

As I see I can use this to receive audio and process it.
Can I also use this to return a audio Stream?
For better understanding I have the following problem:
I want to have a "bot" that receives calls, processes the audio and return a new audio back using RTP streams.
This new audio generated is based on the audio received(Question / Answer Style)

No, this would not be a repo that you would use for that.  For one thing, SIPREC is pretty much a one-way protocol -- sending audio from a client to a SIPREC server, usually for the purpose of recording or doing speech analytics.
A different project that you might be interested in is this one.
It has the ability send audio over a websocket connection and receive audio back that can be played to the caller.

So in that case we only need to use drachtio server, srf and drachtio-fsmrf(with mod_audio_fork) to receive and return audio? How can I test this? I am using Zoiper5. Also should be better to create a sip client for receiving the audio, process it and returning it?
Thank you

I'm not completely sure what you want to do, but if you want to terminate an audio stream you also need Freeswitch, or another media server.
If you are wanting to use docker containers for this, and it sounds like you want to run it on your laptop, I would recommend installing docker-compose and then using a docker-compose.yaml file like this one.
Start up the docker containers by running
docker-compose -f docker-compose.yaml up -d

That file starts a drachtio container and a freeswitch container, using host networking.  Then on your laptop you can run your node.js drachtio app as usual:
node app.js

and it should connect to both drachtio and freeswitch, since those are running in docker but using the host network.  drachtio server should then be listening on <IP_ADDRESS>:9022 and freeswitch should be listening on <IP_ADDRESS>:8021.
You can then try sending a call in from your zoiper softphone and see if it hits the drachtio server, and triggers your app.

I was already using a similar docker-compose file, and also freeswitch as a media server. Now what I am trying to do is receiving a wav from an external service and storing it. The file is being stored in the same place where drachtio-srf runs. So when I am running play nothing happens.
function run(ms) {
    srf.invite((req, res) => {
      ms.connectCaller(req, res)
        .then(({endpoint, dialog}) => {
          dialog.on('destroy', () => endpoint.destroy());
          var file = fs.createWriteStream("file.wav");
          await http.get("http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02.wav", function(response) {
            // the wav file is just for test purposes, in the future a service should be invoked to get the audio back
            response.pipe(file);
          });
          await ep.play('silence_stream://5000');
          await ep.play("file.wav");
        })
        .catch((err) => {
          console.log(err, 'Error connecting call to freeswitch');
        });
    });
  }

Should I share the volume folder containing the audio with the container? Or this is just the wrong way to do it?

You reference ep as in ep.play but I never see it defined.
Perhaps you meant endpoint.play( ?
also, you will need to map whatever volume you write it to into the freeswitch container, yes.
And finally, freeswitch can do the http get for that file if you want, so theoretically you should be able to do
endpoint.play('http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02.wav')

I am trying to play the url directly and no sound returns. Also the silence is being played, at least by the freeswitch logs. This is my code for the app.js file.
const Srf = require('drachtio-srf');
const srf = new Srf();
const Mrf = require('drachtio-fsmrf');
const mrf = new Mrf(srf);
const config = require('config');

const http = require('http');
const fs = require('fs');
const util = require('util');

srf.connect(config.get('drachtio'))
  .on('connect', (err, hp) => console.log(`connected to sip on ${hp}`))
  .on('error', (err) => console.log(err, 'Error connecting'));

mrf.connect({ address:'<IP_ADDRESS>',
  port: 9070,
  secret: 'ClueCon'})
  .then((ms) => run(ms));

srf.register((req, res) => {
  res.send(200);
});

function run(ms) {
    srf.invite((req, res) => {
      ms.connectCaller(req, res)
        .then(({endpoint, dialog}) => {
          dialog.on('destroy', () => endpoint.destroy());
          textToSpeech(endpoint,dialog);
        })
        .catch((err) => {
          console.log(err, 'Error connecting call to freeswitch');
        });
    });
  }

async function textToSpeech(endpoint, dialog) {
  var file = fs.createWriteStream("file.wav");

  await http.get("http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02.wav", function(response) {
    response.pipe(file);
  });
  await endpoint.play('silence_stream://5000');
  await endpoint.play("http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02.wav");
  dialog.destroy();
  endpoint.destroy();

}

What I am trying to do is a bot that receives a call (an RTP stream) process the audio, and return a new version of the audio using RTP also.
Thank you, and I am sorry, but I am still learning about drachtio and SIP protocol.

can you post a link to a gist with the freeswitch log output (the entire log from start until your call is answered and you attempt to play the file)

https://gist.github.com/telmojsneves/cae7a0de64cddb262338460519c0357b

I haven't tested on docker, but on a native server running drachtio server and freeswitch (configured to work with drachtio server), this app answers the call and plays your file
const Srf = require('drachtio-srf');
const srf = new Srf();
const Mrf = require('drachtio-fsmrf');
const mrf = new Mrf(srf);
const config = require('config');

srf.connect(config.get('drachtio'));
srf
  .on('connect', (err, hp) => {
    if (err) throw err;
    console.log(`connected to drachtio listening on ${hp}`);
  })
  .on('error', (err) => console.error(err));

srf.invite(async(req, res) => {
  try {
    const ms = await mrf.connect(config.get('freeswitch'));
    const {endpoint, dialog} = await ms.connectCaller(req, res);
    console.log('call connected');
    dialog.on('destroy', () => {
      console.log('call ended');
      endpoint.destroy();
    });
    await endpoint.play('http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02.wav');
    console.log('play done');
  } catch (err) {
    console.log(err);
  }
});


feat:Reduced mentions of SoA to exclude side taken

Hopefully should result in less confusion on needing to take one side over the other.
Although the check is for the black arm gang, in reality the check will check for the quest overall, not just one side.
fixes #748

The QuestRequirement makes use of a script to determine completion (https://github.com/Zoinkwiz/quest-helper/blob/2fe626a864e325fd9184116298be392e87a31894/src/main/java/com/questhelper/questinfo/QuestHelperQuest.java#L825), which maybe isn't impacted by the local varbit value. I'm not sure if there's a good way to simulate changing that unfortunately.
Improved the creation of the Shield of Arrav requirements though!


C2Pro

Hello,
I'm trying to connect to an anviz C2Pro and I'm getting connection fail.  In the Response class it throws me the "Invalid response" exception, the value of the RET field = RET_FAIL.
I installed the crosschex and it detects the machine without any problem.
Can you help me?

Hi, I don't have the C2 so I can't do any test.
Can you provide a packet capture with WireShark of both the communication attempt of this library and the equivalent of CrossChex?

I can't install anything on the server and the machine is already installed on the client.

Just pushed 2.0.9 to NuGet, please try this version. Thanks

Closing this issue. Feel free to reply if you still need help


Update dependencies so test pass

LiLiQ licenses are not yet caught by spdx-expression-parse.

Presumably fixed by e4ac10727e527495d1687f1702c357d94bb795d1


Adds clearer text to the close button for modals

This relates to https://github.com/wagtail/wagtail/issues/5274
Instead of using a X symbol for the close button, use the word 'close'
Because this involves adding text to a javascript file I have added the option to translate text in javascript.

@thibaudcolas please can you review
@gasman I would appreciate your thoughts on the js translation that this adds.

@gasman, I am now also working on this issue https://github.com/wagtail/wagtail/issues/5335, and it may also require the javascript translation library. The 'edit' button for example is a react element, which currently uses the wagtailConfig.STRINGS object to get the translated text for 'Edit'. But if we want to include the page title for extra context, then we'd need to translate that on the fly - unless the page title is considered something that should not be translated (I think I have seen it translated elsewhere in the course of my work on accessibility though)

Hi @helenb,
I think we should stick with wagtailConfig.STRINGS as the place to store translatable strings used in JS, until there are clear indications that we've outgrown that mechanism and need to switch to JavaScriptCatalog (at which point we'd want to convert the existing wagtailConfig.STRINGS stuff over, rather than having both mechanisms in place).
I don't think inserting a page title into the string will be a problem here - we can do something like:
wagtailConfig.STRINGS = {
    ...
    EDIT_PAGE = "{% trans 'Edit {0}' %}",
}

then wagtailConfig.STRINGS.EDIT_PAGE.replace('{0}', page_title).

Thanks @gasman, I have now updated the PR to use wagtailConfig.STRINGS


category and tag can not work

http://gudong.name/   this is my blog and use your theme . and now i meet a problem ,
when i click category and tag  it point 404 , I  think some place occur a problem , please give me some advice ~
thanks~

How are you hosting your blog? The jekyll-archives gem that generates the category pages is not compatible with GitHub pages. See https://github.com/github/pages-gem/issues/93. If you're hosting the website yourself, make sure the gem is installed.

I host my blog in github  https://github.com/maoruibin/maoruibin.github.com
and in local condition click category and tag is correct ~ but when i push to Github ,it does not work ~

If GitHub is the actual host of your site, categories will not work because GitHub Pages does not support the gem that generates the category pages. You'll have to disable the feature. Or submit a PR with an alternative that GitHub supports :smile:. For instance, I host my site on WebFaction: https://www.webfaction.com/
For more info, see the README

Ok  i think i have know the problem and  thanks your advice~


[Fork Repositories] Opening a specific repo only launches the app

Extension
https://www.raycast.com/sxn/fork-repositories
Description
If I open a specific repo from the command, it only opens the Fork app instead of opening the app with that specific repo opened.
Steps To Reproduce

Open Fork with repo A
Use Search Repositories in Raycast
Navigate to repo B
Press ⏎ to Open in Fork
Fork opens with repo A, not B

Current Behaviour
It only launches the app with the most recent repository opened.
Expected Behaviour
No response

oh, thanks for reporting this. I can reproduce it if:

I open Fork in a particular repo
I close Fork
I use Search Repositories, select a different repo than on step 1
Choose Open in Fork

It works properly if Fork is running, but if it's not running when using Open in Fork, it seems to…forget the argument that it receives. I'll look at what's going on.

Not sure tbh. Opening a repository using fork-cli works as expected, regardless of whether Fork was open beforehand or not – so it may be a problem with the extension, or with how Raycast's open function works. Nevertheless, I opened a PR that works around the issue. 🤷

Awesome! Thank you!


02_ARMv8_基本概念

Introduction

新一代64位处理
保持ARMv7兼容性

New feature
在programmer guide 2.1里面 引入那些feature：

Large physical address
32位系统的没有enable的话，只支持4G。

64bit virtual addressing
使之虚拟地址空间可以超过4GB

automatic event sinaling
支持原子操作的存储和访问的操作

larger register files
减少对栈的使用，提高性能。

...

Addtional 16KB 和64KB TLB

...

Load-Acquire, Store Release instructions

NEON double-precision floating-points

ARMv8 some basic concepts
RM  datasheet：

PE： Processing Element（处理机）

RISC架构的特性（RM提供的）：

A large uniform register file. （ARMv7提供R0-R15，ARMv8提供更丰富的寄存器，比如X0-X30）

A load/store architecture, where data-processing operations only operate on register contents, not directly on memory contents.

Simple address modes, with all the load/store address determined from register contents and instruction fields only. （采用统一的简单的，比如内存映射MMU模式）

Execution States
The downward compatibility of ARMv7 shall be considered when the ARM designed the ARMv8 instruction set architecture，so the ARM designs the Execution State to  be compatible with the ARMv7. There are the two types of `Execution State designed:

AArch64
AArch32

The two kinds of Execution State are like the different containers for different execution envs. In the lesson, the AArch64 execution state should be focused only. The difference between the AArch64 and the AArch32 exection states are showed as following table.

Features
AArch64
AArch32

General-purpose registers
31-64bits (X30 is used as the procedure link register)
13-32bits registers

Program Counter (PC)
one 64-bits registers
one 32-bits register

Stack Pointers (SP)
mulitple 64-bits registers
one 32-bits register

Exception Link Register (ELR)
mulitple 64-bits registers
one 32-bits LR register use as ELR

Procedure Link Register
one 64-bits, it is X30 register
Sharing the LR with the ELR as PLR.

Advanced SIMD  vector/floating-point
32 128-bits registers
32 64-bits registers

Instruction Set
A64
A32 and T32

Excepiton model
4 excepiton levels, EL0-EL3 (ARMv8 Exception Model)
PE modes and maps this onto the Armv8 Exception model (ARMv7  exception Model)

Virtual Addressing
64 bits virual address
32 bits virtual address

Process State (PSTATE)
The A64 includes instructions that operate diectly on various  PSTATE.
Constract with the AArch64, the A32 and T32 operate them  directly and can also use the APSR, CPSR to access.

Instruction Sets

A64
A32/T32

AArch64 (A64)
Uses 32-bit instruction encodings and fixed-length.
AArch32 (A32/T32)
A32 uses 32-bit instruction encodings samely, and fixed-length. However, the T32 is a variable-length instruction set that uses both 16-bit and 32-bit instruction encodings.
Note, in AArch32, the A32/T32 instruction sets were called ARM and Thumb instruction sets. The ARMv8 instrcution set extends each of these instruction sets.
System Registers

Format
Types [D13 chapter in RM]

Supported Data Types

Byte 8bits
Halfword 16 bits
Word 32 bits
Doubleword 64 bits
Quadword 128 bits

Exception Levels (RM-D1.1)

EL0
EL1
EL2
EL3

AArch64's Registers

R0-R30
SP
PC
V0-V31

R0-R30
31 general-purpose registers. Each register can be accessed as X0-X30 (all the 64-bit are used) in 64 bit mode, W0-W30 (only low 32-bit are used). The Wx are Xx low 32-bit.
SP
64-bit dedicated Stack Pointer register.
PC
A 64-bit Program Counter holding the address of the current instruction.  Software cannot write directly to the PC. It can only be updated on a branch, exception entry or exception return.
Processor State (RM-D1.7)
Condition Flags

N
Z
C
V

Exception Masking bits

D
A
I
F

Exection Status Control bits

SS
IL
nRW
EL
SP

#close https://github.com/carloscn/blog/issues/1

close https://github.com/carloscn/armv8-train/issues/20

Fixed https://github.com/carloscn/armv8-train/issues/20


Fix FSF license list link

It was previously linking just to their recommended copyleft licenses, not all the ones they classify as free software licenses.

Thanks for this. Apologies for the delay in responding.


Need to change input style

Hello,
I want to change the input style you may add something like input-class="px-2 py-1" props and this replacing the default classes
litepie-datepicker.vue line 21
:class="inputClass ||  'relative block w-full pl-3 pr-12 py-2.5 rounded-lg overflow-hidden text-sm text-litepie-secondary-700 placeholder-litepie-secondary-400 transition-colors bg-white border border-litepie-secondary-300 focus:border-litepie-primary-300 focus:ring focus:ring-litepie-primary-500 focus:ring-opacity-10 focus:outline-none dark:bg-litepie-secondary-800 dark:border-litepie-secondary-700 dark:text-litepie-secondary-100 dark:placeholder-litepie-secondary-500 dark:focus:border-litepie-primary-500 dark:focus:ring-opacity-20'"

I don't need this feature.
use slot if you need custom input style.
Read


feat(work role): add work roles to metadata API call

AMLOS-715
Description
Work roles need to be added to the system so that they can be edited on the user profile.
Acceptance Criteria
An apps mall steward can add, update, delete work roles via API
A user can get a list of work roles in the system
The API call for editing a profile updates the user's work roles
How to test code
This is a continuation of https://github.com/aml-development/ozp-backend/pull/432
This adds a list of work roles to the GET /api/metadata call
Please Review
@aml-development/ozp-backend-team
Checklist

[x] Read CONTRIBUTING.md
[x] Write code to complete task
[x] Python Code is PEP8 Compliant
[x] Add unit tests for new code
[x] All tests must pass before merging the pull request
[ ] At least 2 people reviewed code

:+1:

:+1:  functions good and code looks fine.


Change EEP's "Created" to "Published"

The "Created" date of an EEP has not been very clear. It may be the date of the first draft, the date of getting ready for review, or the date of publishing.
This pull request changes "Created" to "Published" so that the date would be clear. The "Published" date would be the date when an EEP number is assigned after being reviewed, and the EEP gets effective.

Thanks!


Update permission storage

Creating a new issue, since this wont' be addressed in #455.
Currently, we store permissions by storing the sub value of users. However, for use by the client, the entire user object is necessary. The idea of this is to store the entire user object in the permissions of a workspace, so it's both available to the client, and doesn't take extra time to transform.
However, I'm now realizing that there are some issues in this approach. For one, there'd now be a potential for data mismatch, between the users collection, and the user object stored in a workspace's permissions. In this case we may want to either keep the response transformation, or create an endpoint where the client can use the sub values to retrieve the entire user.
I'm not sure what the right answer here is, just thinking about the possibilities. If we decide not to change the permission storage, this issue should be closed.

For now, I want to avoid denormalizing in this way.
If the issue is performance, I believe the proper solution for this is instead to look at creating Foxx microservices to send back composed, structured data as needed by the API. Once the ORM layer lands, we can take stock of how it affects performance, and then we can begin thinking about how to add methods to the ORM classes that more closely match the API needs, and provide corresponding Foxx microservices that produce the data in the shape needed, with a boost in performance.
This will take some discussion, thinking, and writing. Let's leave this issue open for now, until we reach that stage.


SeSAME: modeling and analyzing high-quality service compositions

Paper link: http://dl.acm.org/citation.cfm?id=2642937.2648621

This paper presents a tool for specifying and modeling software services. I couldn't find any mention of data available for download.


Installation on macOS: Environment can't be created

it is bundled now - but the conda environment cant be created on macos - will further investigate this.
Originally posted by @fschramka in https://github.com/i4Ds/Karabo-Pipeline/issues/65#issuecomment-1219646820

libmamba should give you better reports. https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community

Is this still a problem?

Rascil 0.5 can not be installed on macos.
it seems to have issues with bdsf.

We found the error in bdsf - there is no working macos build for python 3.9 - the version we use in karabo. @cvoegele removed macos 3.9 support, why?

I guess the build wasn't working for 3.9 so i stopped cause at the time we were still mainly targeting python 3.8

Bdsf currently does not work with Python 3.9 - This is a stripped down build process on macOS:
https://github.com/i4Ds/bdsf-build/actions/runs/3220846844/jobs/5268067941#step:5:243
The fortran compiler seems to have an issue.

@patoch01220 is also trying to install PyBDSF on macos, maybe there is something helpful here:
https://github.com/lofar-astron/PyBDSF/issues/183

Bdsf currently does not work with Python 3.9 - This is a stripped down build process on macOS: https://github.com/i4Ds/bdsf-build/actions/runs/3220846844/jobs/5268067941#step:5:243
The fortran compiler seems to have an issue.

I did succed installing it with python 3.9.13, but still have problems when using it.
I also tried installing it on a conda env with python 3.10 and 3.8 but both didn't work.

From https://github.com/i4Ds/Karabo-Pipeline/issues/167#issuecomment-1278840016:

I have to following message:
(karabo-env) patoch@patricks-mbp-1 ~ % conda install -c i4ds -c conda-forge karabo-pipeline

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

bdsf fixing will be documented here:
https://github.com/i4Ds/Karabo-Pipeline/issues/205

We will drop macOS support (i.e. stop trying to support macOS). Cost/reward is unfortunately not looking good enough.


2 . 6 . 2 fail

The ADS-B Receiver Project Preliminary Setup Process
Checking to make sure the whiptail and git packages are installed...
Checking if the package whiptail is installed... [OK]
Checking if the package git is installed... [OK]

The whiptail and git packages are installed.
Press enter to continue...
Detecting CPU architecture...
The ADS-B Receiver Project v2.6.1 Installer
Setting up dump1090-mutability...

Installing packages needed to fulfill dependencies for dump1090-mutability...
Checking if the package git is installed... [OK]
Checking if the package curl is installed... [OK]
Checking if the package build-essential is installed... [OK]
Checking if the package debhelper is installed... [OK]
Checking if the package cron is installed... [OK]
Checking if the package librtlsdr-dev is installed... [OK]
Checking if the package libusb-1.0-0-dev is installed... [OK]
Checking if the package rtl-sdr is installed... [OK]
Checking if the package pkg-config is installed... [OK]
Checking if the package lighttpd is installed... [OK]
Checking if the package fakeroot is installed... [OK]
Begining the dump1090-mutability installation process...
Installing blacklist to prevent unwanted kernel modules from being loaded...  Entering the dump1090-mutability git repository directory...
Updating the local dump1090-mutability git repository...
error: cannot open .git/FETCH_HEAD: Permission denied
Building and installing the dump1090-mutability package...
Building the dump1090-mutability package...
dpkg-buildpackage: info: source package dump1090-mutability
dpkg-buildpackage: info: source version 1.15~dev
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Oliver Jowett<EMAIL_ADDRESS>dpkg-buildpackage: info: host architecture armhf
dpkg-source --before-build dump1090
fakeroot debian/rules clean
dh clean
dh: Compatibility levels before 9 are deprecated (level 8 in use)
dh_testdir
dh_auto_clean
dh_auto_clean: Compatibility levels before 9 are deprecated (level 8 in use)
make -j1 clean
make[1]: Entering directory '/home/pi/adsb-receiver/build/dump1090-mutability/dump1090'
rm -f .o compat/clock_gettime/.o compat/clock_nanosleep/*.o dump1090 view1090 faup1090 cprtests crctests
rm: cannot remove 'anet.o': Permission denied
rm: cannot remove 'convert.o': Permission denied
rm: cannot remove 'cpr.o': Permission denied
rm: cannot remove 'cprtests.o': Permission denied
rm: cannot remove 'crc.o': Permission denied
rm: cannot remove 'demod_2400.o': Permission denied
rm: cannot remove 'dump1090.o': Permission denied
rm: cannot remove 'icao_filter.o': Permission denied
rm: cannot remove 'interactive.o': Permission denied
rm: cannot remove 'mode_ac.o': Permission denied
rm: cannot remove 'mode_s.o': Permission denied
rm: cannot remove 'net_io.o': Permission denied
rm: cannot remove 'stats.o': Permission denied
rm: cannot remove 'track.o': Permission denied
rm: cannot remove 'util.o': Permission denied
rm: cannot remove 'view1090.o': Permission denied
rm: cannot remove 'dump1090': Permission denied
rm: cannot remove 'view1090': Permission denied
rm: cannot remove 'cprtests': Permission denied
Makefile:63: recipe for target 'clean' failed
make[1]: *** [clean] Error 1
make[1]: Leaving directory '/home/pi/adsb-receiver/build/dump1090-mutability/dump1090'
dh_auto_clean: make -j1 clean returned exit code 2
debian/rules:30: recipe for target 'clean' failed
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
Installing the dump1090-mutability package...
(Reading database ... 43011 files and directories currently installed.)
Preparing to unpack .../dump1090-mutability_1.15~dev_armhf.deb ...
Unpacking dump1090-mutability (1.15~dev) over (1.15~dev) ...
Setting up dump1090-mutability (1.15~dev) ...
/var/lib/dpkg/info/dump1090-mutability.config: 1: /etc/default/dump1090-mutability: gain: not found
dpkg: error processing package dump1090-mutability (--install):
subprocess installed post-installation script returned error exit status 127
Processing triggers for systemd (232-25+deb9u2) ...
Errors were encountered while processing:
dump1090-mutability
Checking that the dump1090-mutability package was installed properly...
INSTALLATION HALTED!
UNABLE TO INSTALL A REQUIRED PACKAGE.
SETUP HAS BEEN TERMINATED!
The package "-mutability" could not be installed.

Dump1090-mutability setup halted.
Press enter to continue...
Using an instal/ sh option.  Updated OS, ok. Chose to update 1.1.5, MLAT (always says there is a new version and portal.  Got to the 1 1 5 update, above error.  Tried again, not updating OS and only updating 1 1 5. same error

Well my old image is now dead.  Will wait to see if you can fix before re imaging, which I don't really want to do.  Glad I tried the PI3 B that is 12" away from me and not the one up the pole :)

Strange, I Installed the latest 2.6.2. mutability image yesterday on pi2 test rig , OS updated fine (hardly any updates done as Joe must have built this in the last few days), Mutability and portal installed, no issues found as yet.

When you say installed, new image or upgrade to present image??

orionjb2001 ,New image downloaded 7th, installed 7th.

Nothing strange in your result, obviously the new image is fine, the updating of a current image is my/the problem. ☺

tried again this morning, same result :(

Well just because it looks like I am going to have to re image :( I thought I would try a new install method, as per the quick install instructions, same result. :( Re imaging now, AGAIN,  because something is again broken  :(

Ok.,as Radiostationx eluded earlier, the new image, downloaded etc, works.  Some comments, even though selecting no configuration for Postfix, the script still after that, goes through something that shows the Postfix name (not a programmer)??  Otherwise all appears ok.  Have some more coloured rings, been added??  Now a feature requset, can the FA piaware setup have an option to re enter your station unique id numbers, saving you afterwards, from executing the scripts to load your  unique station ID onto your new card??? (I will add that to feature request).

So............ the problem remains, you can not update your current card, using install.sh, for sure.  I also believe if someone was going to install by downloading files, instead of installing an image, it will not work either??

I would say not a 2.6.2 fail but a permissions issue...
Updating the local dump1090-mutability git repository...

error: cannot open .git/FETCH_HEAD: Permission denied

First question would be at some point did you clone the repository as a sudo user at some time outside using the scripts? Either way delete the directory ~/adsb-receiver/build/dump1090-mutability and rerun the script it should solve the problem.

I tired deleting that directory, but it did not fix it with the next .install/sh.  I can't recall cloning outside but also doesn't mean that I did...  Anyway, wanted to put a new class 3 SD card in the PI3B+ so up on the roof, re-imaged with new card, some ABCD2345 tweaks with replacing the two clocks map with the 1090  FA map and all running very sweetly.  No problems with having to image card, update on old PI3B, then running in the 3B+, so that update perfect, thanks.   :)


Revert "Allow external access to API callback route"

Reverts alphagov/digitalmarketplace-router#22

I think we're going ahead with proper callbacks after all!


Troubble in tablet Huawei MediaPad 7 Youth 2 Build

Hi my friend, hope you have a very good year 2016.
I am facing some problems with a specific model of table huawei: MediaPad 7 Youth 2 Build
In this model, the sounds doesnt play and some times the program doesnt work right and the program get like freeze.
I have tried with other models MediaPad 7 Lite Build or phones Huawei, and the sounds play good. Could you please help me?
Thanx

Hello, thanks.
I need some more info about your problem device. Tell me this:

Version of android
Browser name and version

The info(sorry for the delay):

Version android: 4.3
Browser name: is the default explorer in the android system

Thanks,


Fix DoSafely

Fix - DoSafely wrapped function should not take parameters, take them from the enclosing function instead.
Fix - Do not pass jobFunc params in for wrapped function with static param set of 0.

@JohnRoesler Hum, weird. I thought it was well configured before. I just enabled GitHub actions now, so I think subsequent PRs will trigger them!


Mongoid 7 support

One spec needed to be fixed.
Mongoid 7 will no longer save a parent (User) when a child is saved (Operation).

Thanks for your contribution, @malmckay!
https://rubygems.org/gems/mongoid-autoinc/versions/6.0.3


How to debounce?

const Form = compose(
  withState('model', 'setModel', {name:'', age:''}),
)(({model, setModel}) => {
  const errors = jsonschema.validate(schema, model);
  return <form>
    <input value={model.name} onChange={e=>setModel({...model, name:e.target.value})}/>
    <Error error={errors.name}/>
    <input type="number" value={model.age} onChange={e=>setModel({...model, age:parseInt(e.target.value)})}/>
    <Error error={errors.age}/>
    <button>submit<button>
  </form>
})

Just like code above, I need to some computed-props(those validate errors is computed errors)...
But in fact, I don't need it instantly. the validate method can be debounced.
So I advice you a debounce method...
// debounceState(stateName, debounced_props_to_state_func, state_when_debounced_func_returned_undefined, miliseconds);

const Form = compose(
  withState('model', 'setModel', {name:'', age:''}),
  debounceState('errors', ({model}) => jsonschema.validate(schema, model), {}, 500),
)(({model, setModel, errors}) => {
  return <form>
    <input value={model.name} onChange={e=>setModel({...model, name:e.target.value})}/>
    <Error error={errors.name}/>
    <input type="number" value={model.age} onChange={e=>setModel({...model, age:parseInt(e.target.value)})}/>
    <Error error={errors.age}/>
    <button>submit<button>
  </form>
})

I don't know if this debounceState function can be composed by the functions in recompose. If recompose can, how? If not, can you add it in recompose, or even extract a more common pattern?

Well, it's somewhat like mapProps...But essentially, they are different...

I don't think it's a good idea to debounce props,
better to debounce event handlers, moving all side-effects caused by debounce out of render cycle (lifecycle).
Having this in mind you can debounce any method using withPropsOnChange, like
withPropsOnChange(
  ['methodName'],
  ({ methodName }) => ({
    methodName: debounce(methodName, time),
  })
)

so it will call once if methodName is unchangeable.

Yeah, withPropsOnChange is what I want... Well, I am indeed not familiar with recompose....
Thanks...

@istarkov thanks for your snippet and I made an POC with CodeSandBox
https://codesandbox.io/s/ryp0oqrmqn


Outline the goals for a Pages compliance research spike/epic

In order to run a Pages compliance research spike , we want to outline the goals for a sprint of work devoted to understanding, planning, and strategizing on the future needs of the compliance and ATO process for Pages customer sites both inside and outside of GSA.
Acceptance Criteria

[ ] Talk with customers in and outside of GSA to outline their specific ATO process
[ ] Identify possible customer CISO outside of GSA that would be willing to work with Pages to authorize the platform for their agency
[ ] Identify the NIST controls Pages covers for both FISMA Low and Moderate systems
[x] Finalize a Customer Responsibility Matrix
[x] Identify tooling to automate the population of NIST controls
[ ] Create an epic issue with findings for a future sprint

Security considerations
Informs a customer of the post Pages world.
Implementation sketch

[ ] Create a document with the research spike goals
[ ] Aggregate current and created artifacts in the doc
[ ] Review the doc to outline the epic issue
[ ] Create the epic issue

@apburnes Should we just use this issue to cover the concerns that Ashley M raised today?

Makes sense to me. We will just update the description to re-align the issue tasks.

Closing due to stalenesss


feat: Added lattice points

#6 Added lattice points
https://user-images.githubusercontent.com/96474794/193432974-88a56661-2ac5-45a5-a78f-6bb175236910.mp4
index.html

Added a checkbox for the lattice toggle

main.js

Added a check to see if lattice_check is checked. If it is checked, addLaticeLines gets called successfully, else, it returns.
Also added an event listener to rebuild model using rebuildFFD when lattice-check changes
Calling addLaticeLines(force = true) will run the function irrespective of the value of lattice-check

Please do conflict resolution @delClg

Resolved the conflicts - added class to the lattice-label HTML element

Cool thanks


Article: why do we need standards? (English + Chinese)

One Pager Article on "Why do we need standards" completed by Hazel EOW.
Josh: would be useful to get a few quotes from people, DAOstar members
Ivan: Industry feels younger

frameworks are most interested in standards - most capable of applying them, faster tractions, integrate directly with them

Ideally, share some wisdom from people who have been working in Web3 for a while on why they think / have observed that standards are so important. Also, talk to folks from EIPS.fun about why they care a lot of about EIPs.
<3 chinese language edition!
Eventually, could translate to other languages as well! And serve as a generic DAOstar introduction.

https://docs.google.com/document/d/1o7Nix09iRr9SKTE3GV-X2UsFTJzvNPhKjKHZhEMFmd0/edit

30 August Update: https://docs.google.com/document/d/1o7Nix09iRr9SKTE3GV-X2UsFTJzvNPhKjKHZhEMFmd0/edit

status: seeking semi-public review?
translation update:
getting the chinese version reviewed (grammar, awkward expressions) -- sending to a few chinese reviewers 30 August after the strike team call

status:
English version is ready to publish. (substack)
Chinese version in review by folks at da0 g0v, plancker, uncommons - will be published on native platforms.
looking for translations in other languages? korean, japanese, hindi? (maybe @Rashmi-278 will have thoughts?)

will be published as part of the fellowship announcement


don't work with protractor 2.0.0

please provide further information (logs, error messages).

  onPrepare: ->
    jasmine.getEnv().addReporter new ScreenShotReporter
      baseDirectory: path.resolve __dirname, 'results-e2e/screenshots'
      pathBuilder: ( spec, desc, results, capabilities ) ->
        path.join capabilities.caps_.browser, desc.join '-'

No images are stored in the baseDirectory and nothing in the protractor output relates to screenshots

Yes, I've got the same problem.

@swissmanu is that enough?

Same here with protractor 2.2.0

I don't know if it's helpful, but I've written my own reporter that works with the current version of protractor (3.0).  It's very simple, but it could be used as a basis to update this project.
var fs = require('fs');

function writeScreenShot(data, filename) {
  var stream = fs.createWriteStream(filename);
  stream.write(new Buffer(data, 'base64'));
  stream.end();
}

function ScreenshotReporter(config) {
  this.config = config;
};

/*
 *  Create tmp/screenshots if it doesn't exist
 */
ScreenshotReporter.prototype.jasmineStarted = function(suiteInfo) {
  if(!fs.existsSync('tmp/screenshots')) { fs.mkdirSync('tmp/screenshots'); }
};

/*
 *  Take a screenshot and write it to the a
 *  parameterized file name based on the spec.
 */
ScreenshotReporter.prototype.specDone = function(result) {
  name = result.fullName.replace(/\W+/g, "-").replace(/^\W+/, '');
  browser.takeScreenshot().then(function (png) {
    writeScreenShot(png, 'tmp/screenshots/' + name + '.png');
  });
};

module.exports = ScreenshotReporter;

I'm having the same issue and @SteveAquino's reporter seems to work fine.


Add link to crlandsc/torch-log-wmse-audio-quality

@crlandsc
Close #6

Sweet! :) Are you having any success with using it as a loss function? If you have any findings, I would be interested

I have only done very initial testing with it, so nothing concrete yet. But it seems promising! I am not sure if it would ultimately end up in a better SDR score (perhaps for competitions), but I am hoping that it will make things perceptually better (as is the initial intent).
I am hoping to do some upcoming tests vs L1 and complex spectrogram RMSE loss (from the SCNet) paper.


Hope to support the Avalonia！！！

Is your feature request related to a problem? Please describe
Hope to support the Avalonia！！！
Describe the solution you'd like
Hope to support the Avalonia！！！
Describe alternatives you've considered
No response
Additional context
No response

Closed as not planned for now

@AniFacer, Avalonia already has a Fluent theme library, see https://github.com/amwx/FluentAvalonia


Tool tip hiding behind the next div

I am trying to show a tool tip for my graph,
It does show up well , but it has many values and making the bottom of tool tip hide behind the next div
Any one aware how to make the tool tip stay on top of page and not hide behind the next div ?
any help is appreciated !

Hi there!
We try to keep the issue queue clear for specific code-related problems with C3,
Could you please try asking your question on either the Google Group
or Gitter instead?
Thank you!


[material-ui] [Stepper] Connecting line issues when alternativeLabel is specified

Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-cemc8z?file=Demo.tsx
Resize the preview to a small mobile size
Current behavior

Expected behavior

The first connecting line does not clip into the first step button
The connecting line after step 2 has some more spacing
The connecting line after step 3 starts sooner

Basically that it looks like if it was on desktop, just with shorter lines/more compressed.
Context
I'm trying to use the stepper with horizontal scrolling, which works fine, just causes these visual artifacts
Your environment

npx @mui/envinfo
  System:
    OS: macOS 14.6.1
  Binaries:
    Node: 22.7.0 - /opt/homebrew/bin/node
    npm: 10.8.2 - /opt/homebrew/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
    Chromium: 130.0.6677.0 <-- used
    Edge: Not Found
    Safari: 17.6 <-- used
    Firefox: 129.0.2 <-- used

Search keywords: stepper, alternativeLabel, lines

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."

The workaround is to use CSS work-break: break-all | break-word:
<Stepper nonLinear alternativeLabel activeStep={activeStep}>
  {steps.map((label, index) => (
    <Step key={label} completed={completed[index]}>
      <StepButton color="inherit" onClick={handleStep(index)} sx={{ wordBreak: 'break-all'}}>
        {label}
      </StepButton>
    </Step>
  ))}
</Stepper>

Alternative workaround: Setting a min-width on the Stepper (and wrapping the stepper in a div with overflow-x: auto if this breaks your layout)

I'll add the "waiting for upvotes" label to see if this is a common pitfall. If so, we should handle it or add it to our docs. If you're experiencing this and wish for a fix in Material UI, please add a 👍🏼 to the issue's description. The fixes provided in the comments above seem to be working.


Add test to check global namespace

Codecov Report

Merging #429 into master will decrease coverage by 0.56%.
The diff coverage is n/a.

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


While loop broke the server?

Describe the bug
I accidently run the while loop copying an image and eventually copied loads of images in one folder. I reckon this potentially broke the server as it became very slow to use and now it's not open. I have lots of valuable codes inside of this server so I hope I can retract this..
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Waited 5 mins to open and it runs


About Hitab associated codes

Dear author, I have only seen the codes related to Totto, but where are the codes related to HiTab? Can you provide the codes like Totto, or do I need to replace the pre-trained model structure in the HiTab github myself. Looking forward to your reply, thank you.

Hi. Despite the model structure, you also need to convert the data to our format. Specifically, the inputs should have row_ids, col_ids, and type_ids. The linearization process of HiTab is slightly different from the table_linearization.py of ToTTo as described in section 3.1 of our paper. Please check the corresponding code and paper for more details

em, I know the difference between Totto and Hitab.  By the way, are you not going to open source HiTab dataset processing scripts？

We don't think it is necessary since the preprocessing code is easy to implement. But let us know if you encounter any problem.


#cd compiler directive is ignored when #load-ing the script

When using #load preprocessor directives like #cd are ignored.
Repro steps
test.fsx
#cd "g"
#cd __SOURCE_FILE__
#load "other.fsx"
#cd __SOURCE_DIRECTORY__

g/test.fsx/other.fsx
printfn "other.fsx"

fsi
#load "test.fsx"

Expected behavior
other.fsx

Actual behavior
test.fsx(3,1): error FS0079: Could not load file 'C:\PROJ\visualfsharp.issues\loadWithCd\other.fsx' because it does not exist or is inaccessible

Known workarounds
Currently none.
Related information

Windows 10 x64
I think all newer F# versions (at least latest FCS -> 4.1) and fsi bundled with Visual Studio 2015 Update 3
Severity: Quite Annoying for Fake or tools using FSharp.Compiler.Service because they use #load behind the scenes (https://github.com/fsharp/FSharp.Compiler.Service/blob/master/src/fsharp/fsi/fsi.fs#L2139)

Executing the file directly
fsi test.fsx
yields the expected output:
other.fsx
I used this originally because I cannot write something like
#load ("g/" + __SOURCE_FILE__ + "/other.fsx")

@matthid As things stand, this is by design - like some of the other directives, #cd isn't for use in #loaded scripts.  But this should be made clear somewhere, and a warning given
Supporting it in some form might make sense, though really we should just support something like this:
#load ("g/" + __SOURCE_FILE__ + "/other.fsx")

@dsyme I assumed something like that, but what do you think of the inconsistency with FCS? IE it uses '#load' for it's EvalScript functionality, this is surprising at the very least.
As well as scripts behave differently between executing in fsi and '#load' ing them. This is really unexpected and shouldn't exist (see all the related other bugs/quirks).
Is it possible to just make '#load' do the same as fsi and get rid of all the quirks (including this) even if it means to make things possible which are not specified/documented?

One more note about the other syntax: Currently its really simple for tools like Fake to calculate a hash. We just follow all '#load' links and calculate a hash for all contents. This might be (maybe?) more difficult to do with the '+'. At least it breaks constructs like that (I think we can easily fix it in fake, this is just to show that others might depend on this somehow).

@matthid I think you should use FCS's EvalInteraction instead of EvalScript to get consistency?  We'll aim to take a look at the other inconsistencies one by one (they aren't easy to fix though...)

I think FCS do that in EvalScript...
Not exactly easy is perfect to start. I would try to take a look. Good would be a general guide at how you ideally would like to solve that. So you agree that #load "script.fsx" should behave like fsi script.fsx? I think that would be an improvement in F# scripting capabilities, as you expect that you can just move code to a different file, #load it and it still works.

So you agree that #load "script.fsx" should behave like fsi script.fsx?

No.   In the F# scripting model there is a distinction between

referencing a script as a compiled and referenced component (via a #load or --load:script.fsx).

using a script as an interaction (via console input, or --use:script.fsx or just script.fsx on the command line)

For (1), the documentation for ``#load` says
#load "file.fs" ...;;  Load the given file(s) as if compiled and referenced

For "compiled and referenced" script components, only #r, #I, #nowarn and transitive #load are taken into account.  All other directives like #cd, #help and #q are ignored - they are considered to be part of the language of "interactions".  Further, the contents of the "compiled and referenced" script are placed in an implicit module based on the filename of the script.
For "interaction"s,  the script is used as if entered as console input.  #cd, #help, #q are respected.  Also, the code is checked-then-run in multiple fragments delimited  by ;;.  No implicit module is used.
Each interaction will cause the #load of zero or more script files.  But #load never causes an interaction.

@dsyme First thank you for the detailed answer!
Second: I'm really sorry for my ignorance here. I (kind of) understand the current split. What I'm generally asking here if it makes any sense (from a non-technical view). IE are there any reasons to do this besides technical ones?
This design really leads to a lot of situations considered as bugs by most people (when it is in fact "working as designed").
Also I don't understand how that fits with this simple sample:
test.fsx
#load "testecho.fsx"

testRef.fsx
#r "testecho.dll"

testecho.fsx
printfn "Test"

fsi test.fsx
echos Test, isn't this an interaction from testecho.fsx?
fsc -a testecho.fsx && fsi testRef.fsx
echos nothing
So you consider this as bug?
Maybe there should be another way of loading scripts interactively? Wouldn't that be even more confusing for users?
This may look like we are drifting away from this issue, but ultimately I would like to provide my help in implementing support for this scenario one way or another. IMHO Saying this is by design is not sufficient from an FSharp.Compiler.Service point of view as this means we cannot do some interactions (prepare the Environment) and then load a script later (well we could load it line by line and enter it, but that shouldn't be the recommended way of doing this IMHO as #load seems like the natural choice and actually "works" in most situations)...
From a philosophical view: IMHO When you load a fsx file you expect it to contain all those additional interaction directives, so using #load should "just work".

@matthid just for the specific case of compiling testref.fsx and #r, I'd assume you'd need to open the module / invoke somehow the module initializer for something to be printed, could you check in the assembly where is this printfn call occuring?

@smoothdeveloper Yeah I know. I just wanna hear @dsyme's opinion on the discrepancy.

@matthid Initialization code for #load'd files are executed eagerly as part of the overall interaction which implies the #load.
I've updated my comment above the include #r referenced DLLs.  For these, initialization code is always executed on-demand.

@matthid I'm still not sure why EvalInteraction is not what you you want - it loads a category (3) interaction according to the description above.  EvalScript loads a category (2) component. Perhaps you could add an FSharp.Compiler.Service issue with a failing test case using EvalInteraction?

@dsyme Do you mean reading the script completely and using EvalInteraction?
Yeah that would probably work, will try it.
I still think this is the root cause for a lot of confusion, which is really not needed. I mean at least we should print a warning if interaction directives are ignored (and a link to this thread). Even better would of course be if it worked "as a user would expect".

For anyone curious: See https://github.com/fsharp/FSharp.Compiler.Service/issues/621
You additionally should use the #line directive in order to get proper error messages. See https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/compiler-directives-[fsharp]#line-directives

I mean at least we should print a warning if interaction directives are ignored (and a link to this thread).

I agree


Incorrect typescript type on PayloadRequest.payloadAPI

Link to reproduction
n/a
To Reproduce
export const Media: CollectionConfig = {
  access: {
    read: ({req: {payloadAPI}}) => {
      switch(payloadAPI) {
        case 'graphQL': // this is what typescript shows as a possible value

        case 'GraphQL': // this is the actual value
      }
    }
  },
}

Describe the Bug
req.payloadAPI defines graphQL as possible value, but it should be GraphQL
https://github.com/payloadcms/payload/blob/4a49640c3fc22ee74a2666cb90588b03de68644d/src/express/types.ts#L30
should be
payloadAPI: 'REST' | 'local' | 'GraphQL';

It also looks like it could be undefined, such as when the uploaded file is accessed directly http. So this would probably be more correct:
payloadAPI?: 'REST' | 'local' | 'GraphQL';

Payload Version
1.7.4

100% good catch, I have seen this before but got sidetracked and never fixed. Thanks for reporting 👍


New version of D3 & TechanJs

Hello,
I found TechanJs and D3 recently and I like to know about using latest version Tchan/D3 my website server should support Node.js or normal Cpanel hosting that support JavaScript is enough?
I have tried this example code standalone on my cpanel server but seems not works properly and only shows candlestick chart:
http://bl.ocks.org/andredumas/27c4a333b0e0813e093d
Regards,

Maybe i can chip in.
You need to be aware that this library is designed for "modern and mobile browsers". Which means this is entirely frontend related. What you are saying however is entirely backend related (server, node.js, etc.).
Put it like this: when you can run the examples wthout any server and configuration on any mobilebrowser locally... this is a frontend library. If you need to setup a webserver (expressjs, nginx, apache) before seeing any results it's backend related.
Hosting a html file through your webserver is the gap between both. What a browser get's from your url (host) is then entirely frontend again. In this case it's not important what kind of server you have (php, node.js, asp.net,...)
Good luck figuring.

Thanks for your explanation.


chore(proposal): improve <CounterpartBankForm/> tests stability 🟢

Replaced unstable await waitUntilTableIsLoaded() with specific Query waiter checkCounterpartQueriesLoaded(...)
Increased timeouts time

Removed checkCounterpartQueriesLoaded(...) with target elements search inside waitFor(...)
Removed timeouts


Fix of a Chrome error (and update of janus.js)

This closes #124. Since I was there, I took the opportunity to update janus.js.

LGTM


docs(app): 4 Replace set-interval for RAF

close #4

@JaimeTorrealba - I did this all sorts of backwards lol but I have a PR into your branch to cancel RAF onUnmounted. If you can merge that in to your branch, I'll then merge this PR.

Done, it's merge into my branch (in local) but I can't push.
You have to do it, push and merge :)

I went a weird way about doing that, sorry. Just merged it on my end to avoid the back-and-forth. main is update to date and the PR is merged.

No problem :D


Update package.json

Version 1.47 was use be rolled-back change - this PR manually bumps version to 1.48 to 1.47 on build script

approved @mfrener


How to use it with CoffeeScript?

I have some legacy CoffeeScript code that I want to use with Flow. How would you recommend I go about this task? Is it feasible to pass js generated by CoffeeScript through Flow? What might I lose in that process?

You'll lose correct line numbers.  Just go ahead and try it, might be okay :)

I wasn't able to get Flow going with CS out of the box (I believe it chokes on the wrapper function) but I did get it going with the excellent Flotate:
https://github.com/jareware/flotate
Just annotate your functions with block comments (###) and you're good to go. The line numbers don't match up to the CS but I can live with that...

@srb- flotate looks awesome. I'm going to play with it. Thanks for sharing.

flotate is going very slow for me @srb-. It might be because it recursively copies all my files to a temp directory, apparently, and I have a lot of files in this project. Also, occasionally there were some weird errors that I didn't know how to fix. So, back to square one again!

@volkanunsal you're right - I've experimented some more with flotate and there's too much missing functionality (custom types, for example.) Darn.
As an aside, I've been trying out TypeScript and I'm enjoying a lot of aspects of it (except for the mash of ugly brackets.) It seems to be evolving in good directions too. I'm thinking I'll do my next project in that.

TypeScript looked good. My only reservation with it was the lack of type inference.
Regarding the wrapper functions you mentioned above, have you tried compiling CS without wrapper functions using the -b flag?
-b, --bare         compile without a top-level function wrapper

With 0.4.0, comment annotations are in Flow, so I can close this.


Can this project and  OpenPoints be compiled on Windows?

sorry we donot have plan for testing on windows

sorry we donot have plan for testing on windows

thanks！


Operator precedence

Will we discus Operator precedence? For example '|' and 'or' are not interchangeble
https://github.com/giuseppemag/INFDEV01-1/blob/master/DEV I Lecture IV.tex#L159

I would say absolutely yes...


URL: https://pub.dartlang.org/packages/cloud_firestore#-readme-tab-

.snapshop();
this is not a function please use instead
stream: Firestore.instance.collection('books').snapshots,

@AakashGautam007 this repository is for the pub site, for package issues, please file issues into the package's repository. I'm moving this issue now.

This issue was moved to flutter/flutter#27930


Allow fields param for resources without explicit relationship to primary resource.

The fields parameter checked that the type matched either the resource
or one of the relationships on the resource. This prevented allowing
a resource when its name didn't match the relationship and relationships
with more than one level of nesting.

Closed since included in #435


Error on getting a collection by Id

I create collection
I run the GET (to return all collections), and it returns:

[
  {
    "id": "-LwU90TtYEcnFCmworbQ",
    "cnpj": "saease",
    "name": "esaes",
    "qty_spots": 1
  },
  {
    "id": "-LwUAxrOD3p3jOOEuU2d",
    "cnpj": "esasea",
    "name": "esaesa",
    "qty_spots": 1
  },
  {
    "id": "-LwUG_rxD2UX0B1snn81",
    "cnpj": "test",
    "name": "xjxjx",
    "qty_spots": 2
  }
]

I run the endpoint GET /{id}:
curl -X GET "http://localhost:3000/testing/-LwUG_rxD2UX0B1snn81" -H "accept: application/json"

And is not possible to find the entity: "ENTITY_NOT_FOUND"

What can I do to fix that?

If I'm not mistaken you should be encoding the filter parameters:
http://localhost:3000/testing?filter[where][id]=-LwUG_rxD2UX0B1snn81
Ref: https://loopback.io/doc/en/lb3/Where-filter.html

Hi @henriquecarv
I tried to do this too. It gives an error:
Unhandled error in GET /parks/?filter[where][id]=-LwUG_rxD2UX0B1snn81: 500 TypeError: models.map is not a function
    at ParkRepository.toEntities (/Users/irineul/Desktop/CODE/pms-mobile-api-v2/pms-mobile-api/node_modules/@loopback/repository/src/repositories/legacy-juggler-bridge.ts:507:19)
    at ParkRepository.find (/Users/irineul/Desktop/CODE/pms-mobile-api-v2/pms-mobile-api/node_modules/@loopback/repository/src/repositories/legacy-juggler-bridge.ts:375:27)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

I am having the same issue in loopback 4, any hints would be really helpful.


Refactoring: isolates the data access layer

Encapsulates the launch of migrations into a separate service
Adds an extension method to register services from the data access layer in the DI container

Thank you for your reply!
I would like to clarify why I made these decisions.
I assumed that in the future, the data access layer will be completely covered by interfaces and DbContext will stop being used by other layers directly. That's why I created a separate service to trigger migrations.
I absolutely agree with you about the IDisposable in the IMigrationRunner interface. That was a mistake. However, in my opinion, the MigrationRunner service (which implements IMigrationRunner) should still implement IDisposable for two reasons:

The MigrationRunner service knows nothing about the DI container and how it disposes of objects.
The magic that happens inside the DI container is implicit. I think it's better to explicitly specify IDisposable so other developers don't have questions.

About tests. The refactored test itself doesn't test anything useful yet, so I just fixed it to be green.
When I find some free time, I will fix the PR according to your comments
P.S. Sorry for my english :)

I assumed that in the future, the data access layer will be completely covered by interfaces and DbContext will stop being used by other layers directly.

I'm not sure about this yet. Perhaps we'll just use raw DbContext in services, and/or pass it to the underlying layer.

The MigrationRunner service knows nothing about the DI container and how it disposes of objects.
The magic that happens inside the DI container is implicit.

Absolutely agree on this. And that's exactly because a service should not implement IDisposable!
You see, a service may be used in different ways: its components may be injected from a DI, someone may instantiate it directly in tests or whatnot, and the service should not know nor rely on its usage pattern.
And thus, it should not assume ownership of the objects passed to its constructor. The caller should own them and dispose when it wants, not the service.
Moreover, such usage may break data context reuse between several services (will they all now try to dispose the same context, or what?).
So, this is not a correct practice, and it also creates much more code than you'd have if you just relied on the caller ownership of the passed object.

@ForNeVeR Thanks for the details!


SBT doesn't start in fakeroot

steps

Download SBT launcher sbt from https://github.com/paulp/sbt-extras/blob/master/sbt
Execute launcher fakeroot ./sbt.

I'm using Ubuntu 15.10.
problem
SBT throws exception
java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1012)
    at xsbt.boot.Locks$.apply0(Locks.scala:34)
    at xsbt.boot.Locks$.apply(Locks.scala:28)
    at xsbt.boot.Launch.locked(Launch.scala:238)
    at xsbt.boot.Launch.app(Launch.scala:147)
    at xsbt.boot.Launch.app(Launch.scala:145)
    at xsbt.boot.Launch$.run(Launch.scala:102)
    at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
    at xsbt.boot.Launch$.launch(Launch.scala:117)
    at xsbt.boot.Launch$.apply(Launch.scala:18)
    at xsbt.boot.Boot$.runImpl(Boot.scala:41)
    at xsbt.boot.Boot$.main(Boot.scala:17)
    at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.IOException: Permission denied

expectation
SBT should work normally.
notes
I use SBT when building Debian package. In the file rules I call SBT in override_dh_auto_clean rule. This rule is executed by dpkg-buildpackage by calling fakeroot debian/rules clean. Note that using SBT in build rule works fine.

Vaguely related to #471

It helps to redefine paths to writable dirs. Here is an example of debian/rules:
#!/usr/bin/make -f

export DH_VERBOSE=1
export DH_ALWAYS_EXCLUDE=.git

SBT_OPTS=-Dsbt.global.base=/tmp/scala-build/sbt-global-base\
    -Dsbt.ivy.home=/tmp/scala-build/sbt-ivy-home\
    -Dsbt.boot.directory=/tmp/scala-build/sbt-boot-directory

%:
	dh $@

build:
	./sbt ${SBT_OPTS} checkPackage generateExplodedPackage

override_dh_clean:
	./sbt ${SBT_OPTS} cleanExplodedPackage
	dh_clean
	$(RM) -r target

It works even if clean action is executed in fakeroot.

Note that above mentioned workaround won't work very well when different users are building on the same machine. Perhaps it would be better to generate random folder in tmp and store it's name in target.


Add manylinux_2_28 Dockerfile and related scripts

EL7 is going out of support so we need to move to a new OS for the base image for the rocm/tensorflow-build container.
This will require moving to the manylinux_2_28 standard.
This PR adds a new Dockerfile that uses the community manylinux base containers from quay.io.
Some of the scripts needed to be updated for dnf usage and other EL8 specifics.
The old "CS7" wasn't removed, just renamed (for now).

retest Ubuntu-GPU-multi please


Note on multiple Google logins

I use multiple Google logins, for personal & work. When I clicked the link in Step 1:

Create a new project in the Google Developer Console for this tool to access your Google drive. Using this link guides you through the process and activates the Drive API automatically.

It began configuring access for one of my accounts, but not the one I needed. This became clear later on when choosing my email address from the dropdown (3 sub-bullets later).
I was able to get around this issue by appending &authuser=1 (it's 0-indexed) as an extra parameter to the link from the instructions, like so:
https://console.developers.google.com/start/api?id=drive&credential=client_key&authuser=1
Putting this here in case others run into the same issue. :smile:

Excellent detective work @dsernst. Time for some documentation updates

Addressed in v1.0

:+1:


Blank screen showing in Eligible Opportunities Slider

Overview
as a user, I see an empty slide on the eligible opportunities slider from the dashboard. We should not have an empty slide.
References and additional details
To replicate:

Before I unlock my wallet, it shows "fox farming" and "usdt' in the slider
After I unlock my wallet, the farming one is hidden but the empty slide is still there.
I assume this is because I'm already farmed, but the app doesn't pick up on this until AFTER i've unlocked my wallet.

I assume, its an issue related to when we're running the check on eligible opportunuties

Acceptance Criteria
As a user, I should not see any empty screens in "eligible opportunities"
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

@DiggyDiggy2 looks like this was an issue related to duplicates (https://github.com/shapeshift/web/pull/3825), I can't repro it anymore

@DiggyDiggy2 looks like this was an issue related to duplicates (#3825), I can't repro it anymore

agreed, just attempted to reproduce and it seems to be resolved.


stricter typings

We have code like
struct Anniversary{T} <: ExposurePeriod
    pol_period::T
end

but I think it should be something like
struct Anniversary <: ExposurePeriod
    pol_period::Period
end

and probably even as strict as
struct Anniversary <: ExposurePeriod
    pol_period::DatePeriod
end

I don't think there it necessary to operate at any granularity finer than a single day, so I am going to be using DatePeriod instead of Period in a PR.

This is closed via the merged PR


Issue - local images are not displayed

Discussed in https://github.com/ebullient/obsidian-slides-extended/discussions/14

Originally posted by AM-FX June  2, 2024
Before creating a issue I wanted to ask, if its maybe a user error instead a bug.
Loving the plugin so far and would like to do all my presentations with it from now on if possible 🙂
I am new to the plugin and tried out advanced slides shortly before.
The issue is that local image embeds dont work at all for me. Not in the preview and also not in the browser and returns the following:
Failed to load resource: the server responded with a status of 404 (Not Found)

different formattings i tried that worked with advanced slides:
%% Default %%
![[Out_3.jpg|300x250]]

%% Relative Path %%
![](../_ImagesCollection/Out_3.jpg)

weblinks do work:
![](https://picsum.photos/id/1005/250/250)

tried multiple things already:

reinstalling
stopping and reenabling the extended slides server
back and forth testing with advanced slides

best regards,
AM

This issue still persists for me. In the same synced vault across two machines -- one Mac and one Windows 10 -- local images embed without issue on the Mac but not on the Windows machine. In Dev Tools > Source, the image (Which is in my obsidian vault root) is nowhere to be found under the contents of localhost:3000. Obsidian v1.6.7 and Slides Extended v2.1.2. FWIW, here is the slide that doesn't work:
---

another go at images:
![](attnpaper-pic.png)

---

I added some additional diagnostics in the latest release. Please open a new issue if this still occurs, and include messages related to finding/resolving files that occur in the developer console.

Hello ebullient,
I have just tested it with version 2.1.3 and unfortunately it still behaves exactly the same. The local images are apparently not included by the server. In the console I only have the same message as before:
Failed to load resource: the server responded with a status of 404 (Not Found) img_b.jpg:1

Best regards,
AM-FX

as I said, please open a new issue.
You have "default levels" for logging, please include "verbose" logs.


Cannot use '#' in commit message in zsh

When I try to do the following:
gc -m "Some#message"

I get the following error:
(eval):1: no matches found: Some#message

Perhaps the presence of a # is trigger some sort of regex matching?

same here.. any updates on this?

Hello, i think i solved this, if you comment the 202 line in status_shortcuts.sh and add the same line from 205 it will do the job.

Thanks for the tips but only work with :
git commit
Not with with :
git commit -m "The message with #"

@VoidAndAny yeah, i noticed that, i just started using
commit
enter commit name: your commit  name here - #123

@sarbull same here, hard to change habits


Keras predict with sigmoid output returns probabilities instead of labels

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yee
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 19.10
TensorFlow installed from (source or binary): PyPI wheel
TensorFlow version: v2.1.0-rc2-17-ge5bf8de
Python version: 3.7.5

Describe the current behavior
The predict method of a Keras model with a sigmoid activiation function for the output returns probabilities.
Describe the expected behavior
predict should return class indices or class labels, as in the case of softmax activation. The current behavior also seems to be redundant with the method predict_proba, which in turn doesn't seem to be documented, at least on https://www.tensorflow.org/api_docs/python/tf/keras/Model
#7287 is perhaps related.
Code to reproduce the issue
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation

model = Sequential([
    Dense(10, activation = "relu"),
    Dense(1, activation = "sigmoid")])
model.compile(
    optimizer = "rmsprop",
    loss = "binary_crossentropy")
model.fit(
    [[1, 2], [1, 3], [1, 1], [2, 2], [2, 3]],
    [True, False, False, True, True])

print(model.predict([[1, 2], [1, 3], [1, 1]]))

@Kodiologist Thanks for your issue. Perhaps  you may want to raise a feature request for adding predict_proba and predict_classes methods  for functional or subclassed models.
Closing this issue since model.predict method is behaving as intended. Thanks!

@ymodak It's just as well that you didn't actually close the issue, since you might as well use this issue for the API and documentation complaints I mentioned earlier instead of opening a new issue for them.

Perhaps now the requested features are available: https://github.com/tensorflow/tensorflow/blob/e5bf8de410005de06a7ff5393fafdf832ef1d4ad/tensorflow/python/keras/wrappers/scikit_learn.py#L225

Closing this issue since it's resolved. Thanks


⚠ Bofrost.lu has degraded performance

In 4a0c6fe, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1503 ms

Resolved: Bofrost.lu performance has improved in 3a39d7b after 13 minutes.


Allow script tags inside modal content

Allow script tags to execute on since many sites todays still use server-side rendering. Thank you.

Hi,
I'm not sure to understand the main purpose. If you want to execute code on opening, use callback. If you want to pass a script with your content (as a string) then Tingle should use eval wich is a really bad idea (perfs, security, debuging,...)
In any case, this is not related to server side rendering.