Question about compression type

Can you please tell me why the LZWcompression is generating images less compress that CCITTFAX4, since we need the best compression without lossing the quality.
Regards,

CCITTFAX3 and 4 support only binary images(black and white without alpha, color and grayscale). So when you use CCITTFAX compression - image transformed to binary image. LZW just compress colorfull image and save it.
when you use LZW every pixel encodes with 24 bytes (Alpha Red Green Blue, 8bits per chanel)
when you use CCITTFAX every pixel encodes with 1 bit(1 or 0)
LZW is recommended compression scheme for TIFF images

Thanks for the quick response, well actually we are converting images take with and android camera, then we apply a binary filter, and then we convert/compress to tiff images so I'm looking the best to reduce the space since we need to send through web service api.

So if you using binary filter and has image with only black and white pixels - use CCITTFAX3 or 4. it should get minimum size.

Awesome Thanks!!!

Hi @Beyka and @eoherrer,
I would like to get images in 3 format greyscale(100 DPI) jpeg, Black&White (200 DPI) and Colour (200 DPI) tiff.
Can I use this library to get those images ?
If yes, then please provide me the document/guide to follow.
Thanks.

@kirantpatil
//For greyscale you should use bitmap in greyscale. Library couldn't make greyscale image from colorfull image
        Bitmap bitmap = BitmapFactory.decodeFile("/sdcard/Download/test_greyscale.png");
        File gr100f = new File("/sdcard/Download/greyscale100.tif");
        TiffSaver.SaveOptions gr100 = new TiffSaver.SaveOptions();
        gr100.compressionScheme = CompressionScheme.JPEG;
        gr100.resUnit = ResolutionUnit.INCH;
        gr100.xResolution = 100;
        gr100.yResolution = 100;
        TiffSaver.saveBitmap(gr100f, bitmap, gr100);

        //For black and white you could use CCITT compression schemes - library will convert image to b&w format
        //If you want any other format - you should convert your bitmap to black and white and than save it
        Bitmap bitmap2 = BitmapFactory.decodeFile("/sdcard/Download/test.png");
        File bw200f = new File("/sdcard/Download/black_white_200.tif");
        TiffSaver.SaveOptions bw200 = new TiffSaver.SaveOptions();
        bw200.compressionScheme = CompressionScheme.CCITTFAX4;
        bw200.resUnit = ResolutionUnit.INCH;
        bw200.xResolution = 200;
        bw200.yResolution = 200;
        TiffSaver.saveBitmap(bw200f, bitmap2, bw200);

        //For colorfull format you could use any compression schemes except CCITT
        File c200f = new File("/sdcard/Download/black_white_200.tif");
        TiffSaver.SaveOptions c200 = new TiffSaver.SaveOptions();
        c200.compressionScheme = CompressionScheme.JPEG;
        c200.resUnit = ResolutionUnit.INCH;
        c200.xResolution = 200;
        c200.yResolution = 200;
        TiffSaver.saveBitmap(c200f, bitmap2, c200);

Any way DPI is just tiff tags and if application that you use to open tiff files to uses this tags - it will not work. Also any color transformations except "any to b&w" you should do yourself.

@Beyka, Thanks a lot, that clarified lot of confusions I had.

Hi @Beyka,
I used below code.
Bitmap bitmap = BitmapFactory.decodeFile("/sdcard/Download/test_greyscale.png");
        File gr100f = new File("/sdcard/Download/greyscale100.tif");
        TiffSaver.SaveOptions gr100 = new TiffSaver.SaveOptions();
        gr100.compressionScheme = CompressionScheme.JPEG;
        gr100.resUnit = ResolutionUnit.INCH;
        gr100.xResolution = 100;
        gr100.yResolution = 100;
        TiffSaver.saveBitmap(gr100f, bitmap, gr100);

I passed the 24 bit depth grayscale image and the above code results in 32 bit depth grayscale image.
How can I change the image bit depth to 8 for grayscale ?
Is that the right way to get clear grayscale image ?
Please guide me.
Below am attaching 32-bit and 8-bit images
Below image with 8 bit is much clear than the 32 bit which we processed.

@kirantpatil Sorry for long answer.
Library not provide dirrect way to change bit depth.
CCITTFAX4, CCITTFAX3 and CCITTRLE have 1 bit per component and 1 component per pixel
JPEG has 8 bit per component and 3 component per pixel. So jpeg has 24 bit per pixel
Any pther compression schemes have 8 bit per component and 4 component per pixel = 32bpp.
Also there are no any built-in converter except any to black and white.
One more: If you use TiffSaver - you have bitmap that converts to tiff. android bitmap by default has 32bpp but not 8. Maybe you should use TiffConverter class. It could do direct convertation from jpg/png to tiff and vise versa. Also if you original image is to big (if you should use inSampleSize option for BitmapFactory when read bitmap) you will lose data while save tiff if you use tiff saver. Tiff converter could handle this problem.

@Beyka,
I appreciate your detail answer. That is absolutely clear crystal.
I used TiffConverter and passed jpeg image as tiff image(I know this is wrong) to convert again as jpeg.
The jpeg image is grayscale with 8 bit depth.
The converted image is not setting the X and Y resolution to 100 but 96 and the bit depth is 24 now.
Any help would be great.
Thanks.


Improve: BinaryInteger/advanced(by:)

Stephen Canon pointed out in one of his Swift-76361 comments that the small-signed-integer code path works, and is faster, for small unsigned integers. It turns out that it's a lot faster. I'll try it out, and perhaps open a PR for Swift.

Welp, I just suggested the change then I immediately realized that Swift.BinaryInteger doesn't have a static size getter like Ultimathnum.BinaryInteger does, so you can't really fast-path like that. It do be like that sometimes.

For context, this loop goes from 59.2s to 0.20s:
func testAdvanceU8IX() {
    for _ in IX.zero ..< 10_000_00 {
        for start: U8 in U8.min...U8.max {
            for distance: IX in -IX(start)...IX(U8.max-start) {
                precondition(!start.advanced(by: distance).error)
            }
        }
    }
}

OK, so it looks like it's about 2x faster. The patch just trivialized made the above benchmark.

/// ###### 2024-09-12 (MacBook Pro, 13-inch, M1, 2020):
///
///     0.63 seconds
///     0.33 seconds after (#88)
///
func testAdvancedByU8IX() {
    for _ in IX.zero ..< 10_000 {
        for start in U8.min...U8.max {
            let a = blackHoleIdentity(U8.min + start)
            let b = blackHoleIdentity(U8.max - start)
            for distance in -IX(a)...IX(b) {
                precondition(!start.advanced(by: distance).error)
            }
        }
    }
}

Tangentially, I've figured out a way to perform Swift.BinaryInteger versus Swift.FixedWidthInteger size comparisons.

Looks like an innocent change in d6627da54aac5a5fa522616d7f7520d09028b750 undid most of the improvement. Zzz.


EE-2244-correct - Added JSON Assay/Experiment examples

Pull request of the correct EE-2244 ticket.

[ ] Few amends to the common definitions.
[ ] A basic ArrayExperiment JSON document added.
[ ] A basic ArrayAssay JSON document added.

Both of these JSON documents (with what I would consider minimum/common information) were based on the EGAS00001004087 Array study from EGA, picked by @colthom as a normal Array Submission, and its article (because the spreadsheet lacked information).
Please note three things:

These two JSON documents do not account for a full submission (we would need samples, dataset, analyses, study...).
The ArrayAssay is expected to hold the raw data, not the processed files. These (RData and CSV files from the same spreadsheet) would be submitted as analyses.
The ArrayAssay holds information of a single Assay from a single sample. Within the ArrayExperiment there would be another 123 ArrayAssays (to a total of 124 samples-assays), which would be similar to the one added in this PR.

@sdelatorrep and @colthom, since this branch EE-2244-correct was created from the previous branch EE-2244 that is still pending review (but had the latest changes), their commits seem to appear within this PR. But this PR own changes are the ones beyond EE-2244 - Small documentation amend (046e9be)


feat: Cluster level default settings for Hashicorp Vault

This PR enables global default Vault Role and Vault Mount Point setting for k8s authentication to Hashicorp Vault.
Reason:
When a user tries to deploy an app to multiple different cluster which uses the same vault. The External Secret yaml file has differences since, vaultRole and vaultMountPoint could be different for different clusters. This leads to multiple External Secret yaml file. One for each cluster. Whereas this could be specified during deployment of External Secret helm chart.
Since, a cluster will most probably will have one vaultMountPoint. It is better to have a way to deploy it at the config level. Leaving the user not to worry about role and mount point and focus on the values retrieved from the vault. Since, it is a default value. This will be backwards compatible with the previous method as it can be overwritten with the value in the External Secret  manifest file.

Note that my new PR would be compatible with this change. #488


fix: fix mergeGroup()

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

Does it affect the original behavior:

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

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

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

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

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.49 seconds
load time: 503 seconds
storage size:<PHONE_NUMBER>2 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230117074439_clickbench_pr_81894.html


chore(main): release 0.14.0

:robot: I have created a release beep boop
0.14.0 (2022-12-13)
Miscellaneous Chores

release 0.14.0 (11abb9b)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-frontend/releases/tag/0.14.0 :sunflower:


Make it build with ghc 9.10

Should not be merged until after the SRPs have been removed.

All SRPs have been removed.


Global Variables are ignored

If you try to define a variable like so:
/* Global Variables */
:global :root {
  --bkg: red;
}

/* Local Variables */
:root {
  --color: blue;
}

html {
  background-color: var(--bkg);
  color: var(--color);
}

You will get the following error back from webpack:
app/containers/App/styles.css
4:3       Custom property ignored: not scoped to the top-level :root element (:global :root { ... --bkg: ... }) [postcss-custom-properties]
12:3      variable '--bkg' is undefined and used without a fallback [postcss-custom-properties]

And a response that looks like this:
/* Global Variables */
:root {
  --bkg: red;
}

/* Local Variables */

html {
  background-color: var(--bkg);
  color: blue;
}

Essentially postcss-custom-properties looks for :root specifically and if it finds a variable in any other scope, it leaves the variable as is and doesn't touch it. When it sees :global :root it automatically assumes it's not the right scope and moves on.
This prevents a dev from add global variables such as theme colors and similar that can be reused across files.

@MoOx any ideas how we could fix this?

Take a look to postcss-custom-properties variables options.

Ah, I missed that— @webdesserts that's exactly what we're looking for, so I'll close this issue! Thanks Maxime!

I'm still getting variable '--active-color' is undefined and used without a fallback [postcss-custom-properties] when defining a colors.css file like:
:root {
  --primary-color: red;
  --active-color: blue;
  --inactive-color: green;
}

and importing via

@import "../App/colors.css";

.checked {
  background-color: var(--active-color);
}

Is there a postcss setting I need to change somewhere?

Currently this project does not handle @import statement. You will need something like postcss-import in your stack to resolve this.

Thanks @MoOx, is there a recommended/alternate/supported way to have global CSS items (i.e. Color variables) available to various css files?

https://github.com/postcss/postcss-custom-properties#variables
https://github.com/postcss/postcss-custom-media#extensions
You can pass those to cssnext http://cssnext.io/usage/#features

@MoOx - regarding your comment about including something like postcss-import in the stack, I'm having trouble figuring out how to do so. I've updated webpack.dev.babel.js like so:
// PostCSS plugins
const cssnext = require('postcss-cssnext');
const postcssImport = require('postcss-import');
const postcssFocus = require('postcss-focus');
const postcssReporter = require('postcss-reporter');

...

// Load the CSS in a style tag in development
  cssLoaders: 'style-loader!css-loader?localIdentName=[local]__[path][name]__[hash:base64:5]&modules&importLoaders=1&sourceMap!postcss-loader',

  // Process the CSS with PostCSS
  postcssPlugins: [
    postcssImport(),
    postcssFocus(), // Add a :focus to every :hover
    cssnext({ // Allow future CSS features to be used, also auto-prefixes the CSS...
      browsers: ['last 2 versions', 'IE > 10'], // ...based on this browser list
    }),
    postcssReporter({ // Posts messages from plugins to the terminal
      clearMessages: true,
    }),
  ],

And a few other variations, but I'm struggling to get anything working (showing my lack of understanding around webpack I'm sure). I've tried adding !postcss-import to cssLoaders, also to no avail.
Any help would be greatly appreciated: sorry if this is the wrong venue. CSS imports in this way (I want some global styling/variables) would seem to be a common use case.

@edmelly postcssPlugins key does not seems right. Please read carefully postcss-loader readme as well as postcss-import (and use v7 for now for this plugin).

Thanks @MoOx. I did a bit more digging, and my postcssPlugins key was incorrect. On top of that, I needed to downgrade postcss-import to 8.1.0 (npm install postcss-import@8.1.0), due to this bug.
If anyone else comes across this, it's as simple as:
// PostCSS plugins
const cssnext = require('postcss-cssnext');
const atImport = require('postcss-import');
const postcssFocus = require('postcss-focus');
const postcssReporter = require('postcss-reporter');

...

// Load the CSS in a style tag in development
  cssLoaders: 'style-loader!css-loader?localIdentName=[local]__[path][name]__[hash:base64:5]&modules&importLoaders=1&sourceMap!postcss-loader',

  // Process the CSS with PostCSS
  postcssPlugins: [
    atImport(),
    postcssFocus(), // Add a :focus to every :hover
    cssnext({ // Allow future CSS features to be used, also auto-prefixes the CSS...
      browsers: ['last 2 versions', 'IE > 10'], // ...based on this browser list
    }),
    postcssReporter({ // Posts messages from plugins to the terminal
      clearMessages: true,
    }),
  ],

I'm still having a problem with this. Getting warnings for every global variable I use. I tried adding postcss-custom-properties and postcss-import, but probably misconfigured them and can't find a good example of Webpack config. Tried the one right above, but also no luck. Can someone please point me in the right direction?
My config:
var precss = require('precss');
var cssnext = require('postcss-cssnext');
var atImport = require('postcss-import');

...
postcss: [
    atImport,
    precss,
    cssnext,
],

I tired adding customProperties in various variations into the mix, but warnings remain. Thank you!

Does anyone correct this?


Snapshot data memory managment

This stops the debugger from crashing.
https://github.com/NativeScript/android-runtime/blob/3e6f6ea24b443805aa743b80bb434ab5df98f214/src/jni/include/v8.h#L5989-L5990
Related to: https://github.com/NativeScript/NativeScript/issues/1563
Ping @atanasovg, @KristinaKoeva.

Looks good but this also means that we are keeping the whole blob in memory. I was thinking whether we should enable the snapshot in release builds only. What do you think?

I think that enabling the snapshot in release mode only would be confusing for our users. My concerns are that they could would to edit the source code of the snapshotted modules and that would make for an unlikely surprise when it comes time for releasing.
Also, enabling the snapshot in debug builds, would make apps start faster in debug mode and would make application development a bit faster and more pleasant.
@atanasovg Maybe we could keep the snapshot during the whole application lifecycle in debug config, but delete it once the V8 heap is initialized in release config.

Closing this in favor of https://github.com/NativeScript/android-runtime/pull/425.


sst deploy: error when setting cloudflare dns

sst ion version: 0.0.296
When setting a dns domain with sst.cloudflare.dns got the following error:
Failed
   In "Gateway" component, the physical name of "GatewayCNAMERecordApiexamplecom" (cloudflare:index/record:Record) is not prefixed
   In "HousDashboardCdn" component, the physical name of "HousDashboardCdnCNAMERecordExamplecom" (cloudflare:index/record:Record) is not prefixed
   In "HousWebsiteCdn" component, the physical name of "HousWebsiteCdnCNAMERecordExamplecom" (cloudflare:index/record:Record) is not prefixed

I believe the case should be added to the file https://github.com/sst/ion/blob/dev/pkg/platform/src/components/component.ts but I am not sure.

I am also getting this.
new sst.aws.Nextjs('App', {
    domain: {
        name: 'somedomain.com',
        dns: sst.cloudflare.dns(),
    },
});

Adding the below to .sst/platform/src/components/component.ts locally fixes the issue and allows me to deploy.
https://github.com/sst/ion/blob/dev/pkg/platform/src/components/component.ts#L151
            case "aws:sns/topicSubscription:TopicSubscription":
            case "cloudflare:index/workerDomain:WorkerDomain":
+           case "cloudflare:index/record:Record":
            case "vercel:index/dnsRecord:DnsRecord":
              break;

Literally only started using SST in the last couple hours, so not entirely sure if this is the correct solution to put a PR in, but would be good to see it fixed.

I am also getting this error
Error In "MyWebCdnSsl" component, the physical name of "MyWebCdnSslCNAMERecordC2391facce1ed0d577a6fc4167d97451mydomainus" (cloudflare:index/record:Record) is not prefixed
async run() {
    new sst.aws.Nextjs("MyWeb", {
      domain: {
        name: 'mydomain.us',
        dns: sst.cloudflare.dns({
          zone: "415e4rv6f2353b6d44b775d350f34379cdb"
        })
      }
    });
  },

Fixed in v0.0.311


pipeline for non-generic collision sfx

Got a couple non-generic collision sfx for the bouncy-ball. I'm wanting to use these for balls with the beach ball texture, makes more sense than the hard sound that comes out of them.
For solution ideas, want to figure out what kind of ball the ball is in Ball:init. Only obvious way to do it is based on the texture, which seems not robust. Only other option is to have some kind of option on the ball object for tiled, but I'm not sure the designer needs to know what type of SFX will be played. Will probably initially do it based on the texture path and can change later if ness.
Will then need to set that data as part of the body's user data, and check it on a collision. If either of the bodies are a ball with a bouncy ball attribute/texture, play a sfx from the bouncy-ball folder. (should be renamed to squeeky ball? It's not actually bouncy.)

Completed in PR #92


LazyFutureStream flatMap should execute transformation tasks in parallel

LazyFutureStream flatMap operations occur entirely sequentially. By separating the map & flatten / join portion of the operation they can be executed in parallel rather than sequentially.
Applies to flatMap, flatMapIterable, flatMapStream, flatMapPublisher

Merged to master


Populate the default FCB entries from CLI arguments.

This pull-request, once complete, will close #6 by populating the default FCB entries from the supplied command-line arguments.
We default to filling the FCB entries with space-characters, which programs generally treat as "no arguments".  If arguments are supplied they must be converted to the appropriate FCB entries:
"FOO*.COM"  would become "FOO?????COM", for example.  Similarly the Drive character would update the drive selection byte.  (So "A:FOO" is different from "B:FOO").
We'll probably need to have a helper to parse the string appropriately, because FCB operations are common - both setting and getting.

I think I've added the minimum required:

Parsing from a string.

So CLI args work as expected.

Parsing from bytes.

So I can get/use an FCB in a BIOS call

I implemented parts of find-first/find-next to prove it works, but now the choice becomes "Do I implement them for real?" if I do then I need to consider the other file open/read/write/delete/rename operations.  I'm leaning towards implementing them now I see they're not so hard.

WOO!  I can run "LS.COM", and the new "FIND.COM" binaries:
$ go build . && ./go-cpm /tmp/LS.COM
Directory for Disk A:  User 2d:
         git | readme   md  | cpm      go  | fcb      go  | fcb_test go
go       mod | go       sum | locate   com | main     go  | memory   go
notes    md

Listed 11/11 files   0/0 Blocks used   0K Disk space used


Push Delivery

It's very sad that parse.com will terminate within one year. Some of our applications will be affected. I'm developing an application right now which is using parse.com as backend. Should I re-develop everything or I can just use parse-server in my own server with current source code?
Another question is regarding with push notification. A few of my applications are using Push Notification. Are you going to release the source code for this part in the future? Or we have to develop our own Push Notification system?
Thanks.

We'd like to see a push delivery system added to parse-server, whether the community writes it or we do... It's definitely going to happen.
I can't make the decision for you, but I think with parse-server and the open SDKs, you can continue building on Parse for years to come (just host the server code yourself.)..
Over the weekend I setup Mongo and parse-server on a $5/month DigitalOcean box to build a quick idea, it was super easy.

It would be very grateful about that tutorial

@bagusflyer I'm the former tech lead for Parse Push and now work on Firebase/Google Cloud. I'm keen to see that few to none of my former customers get left out in the cold for having put their faith in my product. If you want to go into detail on your use cases, I can try to help you evaluate some migration paths too. My best expertise would be using AWS (what we built Parse on) and Cloud (what I now work with).
FWIW, Parse Push had much more complicated requirements back in the day. Both Apple and Google have improved their push protocols dramatically, so a new service might be easier to build.

Developing a push delivery system on parse-server will not be a difficult process.  Luckily, it will only need to support a single app, instead of hundreds of thousands of apps.

@inlined @gfosco thanks for responding to questions and being so open about all this.
I recently (a month ago) recommended to my boss that we use Parse as our backend for our mobile games leaderboards and async 'tournament' gameplay mode. Parse was an awesome choice - it let us get started quickly and let us do lots of cool stuff, like checking to see if your new score beat a friends score and sending that friend a push notification if it did - all with cloud code!
I think the push notifications are a big part of any 'connected' app and it would be great to see a parse push implementation, or at the very least a tutorial/guide to migrate existing device instalations form our parse database to a 3rd party service.
Also, are developing in Unity3D and, unfortunately, Unity3D related features usually get lower priority. I don't see this being much of an issue, since most of these changes are back end stuff. But a few things did catch my eye when skimming over the migration guide - it mentioned in the guide that we should release an update to our app and make sure the app points to the correct server. I'm not even sure if this part of the API is exposed for the Unity version of the Parse client, for example.
I am rambling here, and just voicing concearns, I guess what I am trying to figure out is if we really would be able to transfer seamlessly across to private hosting (minus push notifications) using the Unity version of Parse.

@prodigga Correct, migration for Unity 3D is still in limbo. It's there for the rest of our .NET SDK, but I still need to write the glue code to make ParseInitializeBehavior accept a URL.
Rest assured it is coming, along with a few other Unity features that have been in the pipe for a while now.
If you wouldn't mind opening an issue for that on the actual .NET SDK repo (https://github.com/parseplatform/parse-sdk-dotNet/issues), we can handle the actual discussion of that there.

@richardjrossiii Opened an issue here https://github.com/ParsePlatform/Parse-SDK-dotNET/issues/166

@gfosco could you go in to some more detail as to how one would go about implementing this? It sounds like you know how you would go about implementing it already, so your insight would be great for other developers.

Will Parse team going to actively maintain and develop Parse Server and Parse SDKs after 2017? This is very important for us to make decision whether we should change to another service or host Parse Server our-self.

@yemaw, I have the same concerns as you have. If Parse SDK will not be actively maintain then we have no point to continue to use it in the future. Maybe we'll take some efforts to migrate to other system or to build our own backend system if that is the case. But I feel the painless solution could be to host Parse Server on our own server.

@gfosco would really appreciate a push delivery system added to parse-server in the near future. I make heavy use of the subscription channels, so having something provided by your team would make this transition a lot less painful.

Yeah push delivery is important!

There are any other alternatives to PPNS ? The problem with GCM is that there is no available on all mobile devices. Also you need to have Google Play Services installed which is quite big.  PPNS will be available open source?

@bmueller node-gcm allows subscriptions and would be fairly easy to implement in this project... It can deliver Apple and Android pushes.

I'm the developer of sambame/open-urban-airship it an open source nodejs server that mimics urban push API and It powers at least three pretty big products out there. It supports sending Android and iOS and it's backup by mongo.
I would love to help integrate that with the Parse platform.

we're currently using parse.com for its really nice push notifications. Losing this would be really awful for us, so I'd be pleased to help somehow. What's the plan?

Believe me.. it won't be easy to add a fast, reliable and open-source push sender to Parse Server (APNS/GCM feedback loop, fast queuing etc.). Developers used Parse instead of a homemade sender for a reason.
Consider switching to a third party like Batch.com where you can use Parse's installation id to send transactional notifications. And it comes with a web dashboard obviously.

No definite reply on future maintenance, it worrying, its like use it at your own risk. I am screwed big time as we were nearing to actual product release. Shouldn't have trusted Facebook.

I used push notifications more than anything else. As said, Push is very important.

@vdharankar the pace of growth in stars of this repo is a clear indicator that the project has legs... it's too early to make predictions and you have a year to switch to your own servers or other alternatives (Firebase, Couchbase, etc)... pretty doable IMO

@erlichmen interesting...

Here's one self hosted alternative https://github.com/rs/pushd

Push is the main reason I chose parse. Push should be implemented.

Yeah, Push should be implemented. +1

@epeli Nice one! pushd looks awesome!

Indeed, pushd seems great, Embedding it into the parse server should be easy, the remaining question is configuring the various SDKs to work with it.

Push implementation would be reassuring news

@gfosco It's a sad day, I literally felt sick when I heard the news. I came to parse because it made push notifications so simple. I then fell in love with the dashboard and cloud code. It's clear that if these remain, parse will continue to be the leader in mobile dev.

These (push and dashboard) have been confirmed in https://github.com/ParsePlatform/parse-server/issues/56, quote:

I can't guarantee a specific launch date, but rest assured we are at this very moment working on push notifs (for android and ios) and the dashboard.

Also:

Push probably in the next month, and a lite version of the dashboard within two.

@kingmatusevich These are good news.

PPNS will still be available ? Or only the wrappers around GCM and APNS ?

I don't think we should try to cram PPNS in here - it seems like people should just switch to GCM at this point, since recent Android OS's make nonstandard push services a lot worse. Also running a server that holds sockets open is generally way more complex to operate than running a webserver that handles requests.

I migrated my push to One Signal. Really awesome. They even provider a Parse importer.

@lacker I think PPNS is still important and similar services are used inside facebook messenger, watsapp and viber. The reason being that GCM is not reliable and requires to have Google Play services.

@talkaboutdesign One Signal is great. But worried it may also shutdown someday so that have to find another solution again.

Sorry guys I'm late to the game but I see some push code being added to the parse server.  I was wondering how this worked before.. Parse Push --> Message Que (RabbitMQ) --> Amazon SNS or did you guys build your own push server, which now thinking of it I think you did because you had to upload the certs to parse.
I'm wondering though on the suggested flow above if this could be implemented.  We used SNS quite a bit in the past and it worked out pretty well and the price is just amazing but we had to build our own notification server that pushed data to a que and out to the wild.
May I suggest a work flow like this
Parse Push that could be trigged by cloud code.. with substitution variables in it "{0} gave you {1} gold" (using a game example).. the variables can be pulled from cloud code query and pushed then into a message que (rabbitMQ, or a service like http://www.iron.io/), when its ready to go out (if its timed or needs to go out immediately) send the info via api request to amazon SNS.
The only issue with using SNS is that it needs to have the device tokens injected, which instead of putting them in installations you can push them into SNS.. or keep them at both locations and have the ability to add/remove from mongo and SNS..
You can also create subscriptions to send out mass texts as well .. anyhow just a thought..
screenshot of SNS..

btw Amazon is suggestion a solution, its not complete since you still need a server or message que to talk and send out via SNS https://mobile.awsblog.com/post/Tx3NE69QDHI7LJK/Migrating-from-Parse-Push-to-Amazon-SNS

We are primarily using parse push and was happy to see that parse team is making the entire server implementation  available as open source. I almost recommended to my team to host the parse server ourselves and migrate to it, but then realized parse push is not yet available as port of the open source.
Our decision on the alternative will be depending on whether parse push will be eventually made available as part of the open source. If not we will need to look at other solutions, but our first preference would be host the parse server ourselves if it will support push notifications.
We primarily want a delivery system to GCM and APN frameworks. We can live without  stand alone parse push (that is ,  we don't need parse's own proprietary push notification mechanism which was used primarily for android devices without Google Play Services).
I hope  parse push t will be supported as part of the open source soon (the part which leverages APN and GCM).

Open Signal it's an option but seeing that the parse team is adding the code it's much better.
Just wondering about one thing, why am I seeing so many bugs ? Wasn't suppose to be open source and work as before?
I mean I understand there are different dependencies to take in count but I'm curious about all these changes, that's all.

@rosarioconti from what I understand Parse Server they use was written in GO and is being ported over to Node.js

Closing since Push delivery and push adapters have landed in 2.0.8. :+1:


fixing repository url

Related to https://github.com/serilog/serilog/issues/1219

AppVeyor is failing on a unit test due to a SQL connection timeout. Unrelated to this change, so I will merge.


Add better option coverage

Currently, the configuration options do not cover all possible options. Review them and implement options that make sense for a containerized installation of murmur, and allow for those options to be set via environment variables.
As part of this task, the +x substitution can (should) be removed from all option variables.

Resource: https://wiki.mumble.info/wiki/Murmur.ini

May take a look at https://github.com/SISheogorath/configmagic which is written exactly for this.
There is a lot to do but basics are done ;)

What would be the gain over defining a shell function that calls sed in the docker-murmur binary?

Closed in #29; message not added to merge commit.


The onChange callback also invokes the onSelect callback

I want to use the onSelect prop to only listen when selecting a date from the picker. However, when I manually enter a valid date, the onSelect callback is also invoke in addition to the onChange callback.
I would expect that selecting a date from the picker would invoke both onSelect and onChange and manually entering a date should only invoke onChange and not onSelect (since I did not select a date from the picker).
It looks like the handleChange function simply calls setSelected, which will invoke both onChange and onSelect.
The workaround I'm using is when I'm handling the onSelect event, I check to see what the event type is. If the event type is change then it is invoked from onChange. If the event type is 'keydown' or 'click', then it is invoke from either clicking a date or hitting the Enter key from the picker.

I think you are right. onSelect must be called when you select.


node-fibers require Node 14 despite of Node 12 project

Hi there,
thanks for your efforts!
I tried building one of our apps with Node 12.21.0 and your Nexe prebuilt. It's an Meteor 2.1 app that uses 12.21.0  as well. Strangely, I get an error that a fibers bin for Node 14 is missing (win32-x64-83). I've only got the fibers bins for win32-x64-72 and win32-x64-64 after app building so where does that come from?
Any idea about that? Never had that before with 12.16.2 and older prebuilts from the Nexe github. But I'm not sure whether that error comes from the Nexe build.
Best Regards!
Here's the error log after starting my app (I replaced the entry path with xxx):
## There is an issue with node-fibers ##
xxx\dist\programs\server\node_modules\fibers\bin\win32-x64-83\fibers.node is missing.

Try running this to fix the issue: xxx\dist\ingest.exe xxx\dist\programs\server\node_modules\fibers/build
Error: Cannot find module 'xxx\dist\programs\server\node_modules\fibers\bin\win32-x64-83\fibers'
Require stack:
- xxx\dist\programs\server\node_modules\fibers\fibers.js
- xxx\dist\programs\server\boot.js
- xxx\dist\main.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (xxx\dist\programs\server\node_modules\fibers\fibers.js:14:39)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Module.Mp._compile (xxx\dist\programs\server\runtime.js:50:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Module.Mp.load (xxx\dist\programs\server\runtime.js:15:31)
xxx\dist\programs\server\node_modules\fibers\fibers.js:23
                throw new Error('Missing binary. See message above.');
                ^

Error: Missing binary. See message above.
    at Object.<anonymous> (xxx\dist\programs\server\node_modules\fibers\fibers.js:23:9)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Module.Mp._compile (xxx\dist\programs\server\runtime.js:50:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Module.Mp.load (xxx\dist\programs\server\runtime.js:15:31)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (xxx\dist\programs\server\boot.js:2:15)

I found out that this error isn't there, when I use the nexe --build instead of your remote build. Maybe that helps to narrow it down. Appreciating your work nevertheless.


Thanks.


chore: use require-hashes option

@tom-andersen  The versions in the requirements.txt file look great. I'm afraid owlbot overwrote some of the changes so we'll need to bring these back (https://github.com/googleapis/java-firestore/pull/1078/commits/1c5e4a99481121674ed03a023bd2bc0ea8b521b1) I've added the owlbot:ignore label which should hopefully prevent this from happening again.

@mpeddada1 I have reverted the Owl Bot change.


Missing Code

I'm attempting this robot project: https://www.instructables.com/So-Many-Robots-DIY-Print-in-Place-Robot-for-STEM-L/
I went to grab the code for the project, and found that the code is missing and there is only an apache licensing agreement.  Was this meant to be available?

https://www.instructables.com/So-Many-Robots-DIY-Print-in-Place-Robot-for-STEM-L/
Step 5: Flash Robot Explorer Firmware
Can download the file  Robot Explorer.uf2 to flash the firmware. The uf2 file contains Python files and related dependencies.
Source code can be loaded by editing in Thonny, see https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/0 for additional info on getting started.


Refactor global state

Having the stack in a module is not the only state that needs access and mutation from the calculator actions, as well as roll-back upon crash.
Create a "State" class that also contains verbose/not verbose modes, toggles for clearing the stack (or not) after commands, and move the stored values into this class as well.
This would also be a good time to store a history of the most recent few actions so that they can be repeated, something akin to rpncalc d4 10 repeat_n to roll 4-sided dice 10 times.

e4f4b7eed21c82e7205e6688d012586651a16a04 closes


Microsoft Teams - Call frozen in leaving call status, can't make or recieve calls as a result

@smasters2 Could you please provide us more details for this issue?

Please reopen with more information.


spanning tree pox controller warning

sir how to resolve this warning message displayed while running spanning tree with pox controller

Run the openflow.discovery component too.

thank you sir
On Wed, Nov 25, 2020 at 2:22 PM Murphy<EMAIL_ADDRESS>wrote:

Run the openflow.discovery component too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/noxrepo/pox/issues/254#issuecomment-733561303, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AIVWYN42BMSTBHBI7FDXVPDSRTAULANCNFSM4UCCRAJA
.


Update Extensions Configuration Secrets and Identity sdk from t1 to t2

1.Update Extensions Configuration Secrets and Identity sdk from t1 to t2
2.Update files:

i. KeyRotation/KeyRotationHelper.cs
ii. KeyRotationSample.csproj
iii. KeyVault/KeyVault.cs
iv. Program.cs

@jongio,@scottaddie,@AlexGhiondea,@schaabs,@pakrym and @ahsonkhan for notification.

I don't work on the .NET Identity SDKs, so I don't think I am the appropriate person to review this. Maybe it was meant for someone else :)


ARROW-9615: [Rust] Added kernel to compute length of a string.

Thank you @nevi-me , @jhorstmann and @paddyhoran for the reviews, much appreciated!


Unable to find Visual Studio.

Brief description of your issue
Unable to find Visual Studio.
Steps to reproduce (optional)
No response
Expected behavior (optional)
Run build\build_release.cmd
Actual behavior (optional)
No response
Environment (optional)
No response

Unable to find Visual Studio.

It's right here. Glad I could help :)
https://visualstudio.microsoft.com/
We're going to need more information.
Are you using a preview version?
What script/file/solution where you running?
Did you start an update/component installation then pause the installation (this breaks vswhere and the API detection)?

I am runnning 17.3.6 with Windows 22621 sdk

Fixed in latest revisions 👍

Looks like

There is a new error:
Unable to find the resource compiler.
[WARN] Visual Studio Professional 2022 does not have required the packages:
Windows SDK

i have installed windows sdk 22621.755

There is a new error:

But build is successfull. Only these warnings.

Now it have warning "Unable to find the resource compiler". But build is OK.

I have this error:

Имя сбойного приложения: CustomBuildTool.exe, версия: <IP_ADDRESS>, метка времени: 0x64cca5a3
Имя сбойного модуля: Microsoft.VisualStudio.Setup.Configuration.Native.dll, версия: 3.4.1128.26111, метка времени: 0x62fab12a
Код исключения: 0xc0000005
Смещение ошибки: 0x0000000000005948
Идентификатор сбойного процесса: 0x0x165C
Время запуска сбойного приложения: 0x0x1D907B694C31809
Путь сбойного приложения: D:\Dev\systeminformer\tools\CustomBuildTool\bin\Release\CustomBuildTool.exe
Путь сбойного модуля: C:\ProgramData\Microsoft\VisualStudio\Setup\x64\Microsoft.VisualStudio.Setup.Configuration.Native.dll
Идентификатор отчета: 53b6529c-0492-418d-a8fc-f432af3de0ce
Полное имя сбойного пакета:
Код приложения, связанного со сбойным пакетом:

for ~ 2 weeks already ...
could you please tell me how to fix it?

@skipik @henrypp
Both of you should reset your VS installation by running:
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe"
https://learn.microsoft.com/en-us/visualstudio/install/uninstall-visual-studio?view=vs-2022#remove-all-with-installcleanupexe

"Unable to find the resource compiler"

The registry keys for locating the Windows SDK are missing from your machine. All of these errors you've been getting are errors locating the Windows SDK so your VS is corrupted or something.

could you please tell me how to fix it?

It's crashing inside Microsoft.VisualStudio.Setup.Configuration.Native which is owned by Microsoft so there isn't much we do to workaround it. You need to reset your installation or contact Visual Studio support.

@dmex hey, thanks for your reply!
I've just fixed it :D I have fresh installation of VS, but both versions - 2019 and 2022. That was the reason. Just tried to rename the 2019 folder to "C:\Program Files (x86)\Microsoft Visual Studio**_2019**" and it worked lol
Just wanted to inform you.

InstallCleanup.exe is just uninstall current Visual Studio. So it is not a solution.

just uninstall current Visual Studio. So it is not a solution.

You need to reset the installation (uninstall & reinstall)?


Background Fetch Plugin: Cleanup mutex

The ticket TS-1432 describes why mutex destroy should be exposed on the API. I was added on 5.2, but the plugin was not updated. Without this call the plugin leaks memory.

Couple of things:

Please always file a Jira before making a github pull commit for code changes (not docs). Also include that Jira in the commit message.

Please use our indentation style as dictated by the clang-format setup. See mailing list for more details.

I still don't see how this can cause any serious memory leaks. If it does, we really have a very very fundamental problem, the only way I can imagine this leaking noticeable memory is either if we somehow duplicate the configuration object accidentally, or if you truly reload your configs every 5s or some such (which would be bad on its own).


Allow customising context menus

Is your feature request related to a problem? Please describe.
Being able to rearrange or completely remove certain entries in the context menus. This is useful as some apps add unnecessary entries to the context menus which clutter the menu.
Describe the solution you'd like
Include a new tab in the settings called Context Menu. Include a graphical solution for folders and different file types where the user can drag options or remove them. The removed items are stored in another place which can then be dragged and dropped if needed in the future.
Describe alternatives you've considered
Add unnecessary menus under another menu called Other options.
Additional context
Add any other context or screenshots about the feature request here. Ex: What device type/UI layout and app version?

@mbeps I know the following does not fully cover your suggestion but you can customize the menu context items in Files by using any software that customizes the windows explorer context menu (a google search will suggest a bunch of those)

@gave92 I don't really know of any good software. I use multiple utilities and registry tweaks.

I use multiple utilities and registry tweaks.
Yeah changes done by any of those should be affecting Files context menu as well as Explorer's

I would like this feature too. It's kind of need at this point with all the options currently.

I would really like to be able to arrange, add and remove context menu entries.
You could include the standard options, and leave those fixed in position and order, but allow arranging of items in the rest of the menu.
As a thought experiment, I look at the File Explorer context menus, and see so much cruft.  Where a modern app like Files should give a cleaner and better thought out experience.

It would also be nice to control whether the context menu was a CommandBarFlyout or not, and also animation timing/speed.

It would also be nice to control whether the context menu was a CommandBarFlyout or not, and also animation timing/speed.

Worth noting for this, if a CommandBarFlyout has no primary items, only secondary items, the CommandBar part will be hidden making it look and act like a normal menu flyout.

It would also be nice to control whether the context menu was a CommandBarFlyout or not, and also animation timing/speed.

I would say this is going a bit too far in customisation.  The control respects the user's chosen settings for Animation.  Also normal users don't know the names of these kinds of controls, or the implication of changing it.

Regarding the speed issues, @winston-de found a way to reduce the amount of time it takes to show the context flyout.

Regarding the speed issues, @winston-de found a way to reduce the amount of time it takes to show the context flyout.

Yes, we can show the menu immediately with the built-in items, then lazy load the shell items.

I think the biggest hurdle with implementing this is shell items. In order to add settings for shell items, we have to have the id for the shell item. But in order to get the id, the menu must be invoked for an item, which would make it hard to show in any kind of settings menu.
A possible solution to this would be to add a menu item to "edit menu items". When invoked, a content dialog would be shown that shows all the items, with context menu options to pin/unpin items, move them to the overflow menu, or hide them. Since the shell items would already have been retrieved, getting the id of the invoked item, storing it, and hiding it in the future would be relatively simple.

Yes, being able to customise this would be great!
As an example, this is what I see when I have clicked on a random folder containing music files:

I'm not interested in having "Add to Windows Media Player", "Play with Windows Media Player" or "Cast to Device" at the bottom.
I'd prefer to just have "7-Zip", "WinRAR" and "Scan with Microsoft Defender" always at the bottom, as I'd use these far-more often for most folders.
Thanks

We don't plan to support rearranging shell extensions because like it or not, users will complain if the changes aren't reverted when Files is uninstalled. However, we recently added support to control if shell extensions are displayed in the main menu or not.
We're also adding support for hiding some of the built in options like "edit tags", we'll be extending this list over time, but I think we can close this issue now.


Any results on a bigger corpus?

Did you run it on WMT14 (EN-DE) ? with 4.5 sentences, just wondering how it behaves with more data on such few params.
great work !

Hi,
The first experiments on WMT14 weren't successful.
I'm still tuning the hyperparams and assessing the model's sensitivity to data noise.

I would also concern about the training and decoding efficiency, would be great if some guys can show results compared with transformers.


Add Acheron x Showdown by savylui

Song Name
Acheron x Showdown
Artist Name
savylui
Source
Youtube
Youtube Link
fcae91CaPe7zF4Jq
Direct File Link
No response
Song ID
770520
Start Offset [ms]
10000
Extra
Created from Auto Nong.
Created for level: 84974394

reject
invalid YouTube link


Is it possible to add a query string (cache buster) to the URLs?

Hi, for forcing browsers to reload JS/CSS assets if the html is rebuilt, I'd like to append a "random" (Math.random() or Date.now() or the like) query string to the URLs, like:
<!-- build:js app.min.js -->
<script src="my/lib/path/lib.js"></script>
<script src="my/deep/development/path/script.js"></script>
<!-- /build -->

<!-- changed to -->
<script src="app.min.js?v=12351345"></script>

Is that possible somehow? Thanks

is not currently possible, you either do this
<!-- build:js app.min.js?v=123 -->
<script src="my/lib/path/lib.js"></script>
<script src="my/deep/development/path/script.js"></script>
<!-- /build -->

<!-- changed to -->
<script src="app.min.js?v=123"></script>

but will require to manually change the version.
or if you are using some server-side rendering engine you could interpolate a Math.random() from the server, something like this:
<!-- build:js app.min.js?v=${randomVersion} -->
<script src="my/lib/path/lib.js"></script>
<script src="my/deep/development/path/script.js"></script>
<!-- /build -->

the syntax may change depending on the engine.
--
One other final possibility is writing your own custom block like so:
```custom-block-jsv.js`
module.exports = function (processor) {
  // This will allow to use this <!-- build:jsv[:target] <value> --> syntax
  processor.registerBlockType('jsv', function (content, block, blockLine, blockContent) {
    var title = '<h1>' + block.asset + '</h1>';
    var result = content.replace(blockLine, title);

    return result;
    return content.replace(blockLine, block.indent + '<script src="' + block.asset + '?v=' + Math.random().toString().substr(2, 9) + '"><\/script>');
  });
};

$ htmlprocessor file.html --custom-block-type custom-block-jsv.js

and use build:jsv like so:
<!-- build:jsv app.min.js -->
<script src="my/lib/path/lib.js"></script>
<script src="my/deep/development/path/script.js"></script>
<!-- /build -->

<!-- changed to -->
<script src="app.min.js?v=646998649"></script>

let me know if some of this works for you

Hi,
thank you very much for your detailed help. Possibility 1 is of no use, because I want it generated dynamically. I'm now using possibility 2 and inject something via template processing before.
Possibility 3 looks nice, will try it sometime; but I would also like it for CSS links; do I have to register another custom block ("cssv")? Or can I do it also with attributes like [src] or [href]?
Thanks again!

you would need another "cssv"


Port method removed from PjBridgeServer

I loaded PharoJS into a new Pharo7 image and was getting a "Message not understood" on the "port" selector for this code:
PjBridge >>
port
	^self server port

The following works so modify the above or add it to PjBridgeServer
^self server znServer port

Fixed + test introduced


Add ability to create an AMR Heatmap from the samples page

Description

Implement basic AMR Heatmap that displays allele coverage  …
takes in multiple sample ids as parameters
displays long sample names
not able to switch view level or metric yet, but scaffolding is there
new route at /amr_heatmap
Can now select samples on the sample browser, click on the heatmap icon, and select "AMR Heatmap" from the dropdown menu.
Will only be visible to admin users.

Nice PR @lvreynoso ! 🥇  Is this is a work in progress or is it ready to merge?

Nice PR @lvreynoso ! 🥇 Is this is a work in progress or is it ready to merge?

It should be ready to merge once I merge the latest changes from master!

Good job on the PR overall! As mentioned in one of the comments, I would look at the lodash/fp library to simplify your logic in <AMRHeatmapVis>. It's a great library for writing more compact, elegant code.
Also, I'd recommend going ahead and adding the Allele/Gene dropdown to this PR, since the logic is already all there. Generally you want to avoid including "hanging logic" which is never used.

Good job on the PR overall! As mentioned in one of the comments, I would look at the lodash/fp library to simplify your logic in <AMRHeatmapVis>. It's a great library for writing more compact, elegant code.
Also, I'd recommend going ahead and adding the Allele/Gene dropdown to this PR, since the logic is already all there. Generally you want to avoid including "hanging logic" which is never used.

Adding a dropdown would mean including much more code in the PR, so I'll put in the next one (which is going to include dropdown code anyway).

MUCH cleaner. Appreciate your attention to detail. A few more comments.

Incorporated a lot of suggested changes and cleaned it up. Should be good to go now.

Looks great! Great job with the PR.


Rework InternalID to be represented as STRUCT

INTERNAL_ID should be physically represented as a struct of tableID and offset.
This can simplify storage, as we can constantly compress tableID to the common table id, and compress offsets same as int64.
Currently, we need to have a specialized code path for internalID to fill the common table id during scanning from tables.

Labeling this as refactoring as it will switch to a different infrastructure we have for the same feature.


Townhall Settings: Save button still displays after saving

Save button should not display after a successful save.

note to self: assign to Joseph

note to self: assign to Joseph

Woops ignore that


Add stop->stopSequences to OpenAI-Google params mapping

Hi!
I don't know typescript and I just found out about your project (and I wasn't able to run the proxy locally to test the changes...), but.
When I tried to run an evaluation w/ the EleutherAI eval harness through your public proxy (thank you, BTW!), I got this:
openai.BadRequestError: Error code: 400 - {'error': {'code': 400, 'message': 'Invalid JSON payload received. Unknown name "stop" at \'generation_config\': Cannot find field.', 'status': 'INVALID_ARGUMENT', 'details': [{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'field': 'generation_config', 'description': 'Invalid JSON payload received. Unknown name "stop" at \'generation_config\': Cannot find field.'}]}]}}

I assume it's because the 'when to stop generating' strings in OpenAI are passed through the stop parameter are actually StopSequences in Gemini API: https://ai.google.dev/api/rest/v1/GenerationConfig.
If I understood the code right, this should fix this, but again — I didn't test it.
Thank you for the public proxy again :) Will be a lifesaver as soon as I figure out how to run my evaluations through it
Serhii

Thank you!! Is there any way you could send a repro command (ideally via cURL) that reproduces the error you're seeing? We can validate the fix before landing it.

Sure!
# OpenAI - Works
curl -i https://braintrustproxy.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
	"model": "gpt-3.5-turbo",
	"messages": [
	  {
		"role": "user",
		"content": "Write a story about a magic backpack."
	  }
	],
	"seed": 1,
	"stop": ["backpack"]
  }' \
  -H "Authorization: Bearer $OPENAI_API_KEY"

# Gemini - Fails because stop
curl -i https://braintrustproxy.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
	"model": "gemini-pro",
	"messages": [
	  {
		"role": "user",
		"content": "Write a story about a magic backpack."
	  }
	],
	"seed": 1,
	"stop": ["backpack"]
  }' \
  -H "Authorization: Bearer $GOOGLE_API_KEY"

# Gemini - Works
curl -i https://braintrustproxy.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-pro",
    "messages": [
      {
        "role": "user",
        "content": "Write a story about a magic backpack."
      }
    ],
    "seed": 1,
    "stopSequences": ["backpack"]
  }' \
  -H "Authorization: Bearer $GOOGLE_API_KEY"

The specific error for stop w/ Gemini is
{
  "error": {
    "code": 400,
    "message": "Invalid JSON payload received. Unknown name \"stop\" at 'generation_config': Cannot find field.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "field": "generation_config",
            "description": "Invalid JSON payload received. Unknown name \"stop\" at 'generation_config': Cannot find field."
          }
        ]
      }
    ]
  }
}

@pchr8 this change is now live. Thank you again for the contribution!

Thank you for making the proxy so easily accessible and for making it open source!


[SUPPORT] HiveSynctool syncs wrong location

Tips before filing an issue

Have you gone through our FAQs?
YES

Join the mailing list to engage in conversations and get faster support at<EMAIL_ADDRESS>

If you have triaged this as a bug, then file an issue directly.

Describe the problem you faced
When inserting a record using
keygenerator.class         -> ComplexKeyGenerator
partition_extractor_class ->  NonPartitionedExtractor
Hudi places the parquet files in a default folder under base path.
But HiveSync sets Location to base path only so it is unable to query the table properly and returns zero results.
if NoKeyGenerator is used, tables with complex keys do not get recognized.
Workaround is to alter the created table and set location to basepath/default
A clear and concise description of the problem.
To Reproduce
Steps to reproduce the behavior:
see above
Expected behavior
set location properly
A clear and concise description of what you expected to happen.
Environment Description

Hudi version : .0.5.2-incubating

Spark version : 2.4.5

Hive version : 2.3.3

Hadoop version : 2.8

Storage (HDFS/S3/GCS..) : hdfs

Running on Docker? (yes/no) : no

Additional context
Add any other context about the problem here.
Stacktrace
Add the stacktrace of the error.
FROM LOGS
20/06/18 00:30:33 INFO HoodieHiveClient: Creating table with CREATE EXTERNAL TABLE  IF NOT EXISTS default.app( _hoodie_commit_timestring,_hoodie_commit_seqnostring,_hoodie_record_keystring,_hoodie_partition_pathstring,_hoodie_file_namestring,invoiceIDbigint,vendorIDbigint,invoiceNumbigint,createdAtstring,invoiceCurrencyCode bigint) ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe' STORED AS INPUTFORMAT 'org.apache.hudi.hadoop.HoodieParquetInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat' LOCATION 'hdfs://localhost:9000/hudi/test/tables/app'

looks like extending the ComplexKeyGenerator and specifying EMPTY STRING as partition path is a solution.

@bhasudha  can you please take a pass

@masterlemmi  Will take a look today.

@masterlemmi  can you paste the configs passed on when doing insert ? I am wondering if anything was set for hoodie.datasource.write.partitionpath.fieldconfig

@masterlemmi For generating non partitioned Hudi dataset you need both NonpartitionedKeyGenerator and NonPartitionedExtractor like mentioned here - https://cwiki.apache.org/confluence/display/HUDI/FAQ#FAQ-HowdoIuseDeltaStreamerorSparkDataSourceAPItowritetoaNon-partitionedHudidataset?
I think yours is a new use case where you need complex key type but non partitioned Hudi dataset. And complex key type is using a default partition path today. In that case extending the ComplexKeyGenerator like how you suggested would work.
@bvaradar  @vinothchandar  I think this is a valid use case. And we should figure out a way to provide Non partitioned Hudi dataset for any key type ? Any thoughts?

@bhasudha : Yes, agree we should make it explicit for users to configure this setting. I am wondering if we can have a config to let users explicitly tell if the dataset is partitioned or not when using complex keys as opposed to having a separate implementation.

Agreed @bvaradar .
@masterlemmi  closing this task in favor of the Jira issue created here - https://issues.apache.org/jira/browse/HUDI-1053. Lets continue there. Feel free to add to that issue.


Repo sync for protected CLA branch

The pull request is created from main637913631392576305 to main to fix git push error for protected CLA branch

@ghogen : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Publish v1.0.0-rc.2

Builds on #36.

Another connection issue in the CI.

Re-based and good to go @ModProg.

only the date is in the past :smile:


Temporarily install Suricata from Ubuntu PPA instead of OISF PPA

To avoid a known issue with Suricata 6.0.11.
The main Ubuntu PPA ships Suircata 6.0.4.
With this change, e2e tests for L7NetworkPolicy will stop failing.
We do not "fix" the UBI build at the moment, but it will be taken care of before the Antrea v1.12 release.
For #4921

@tnqn @hongliangl since we don't have consensus on the best long-term fix for the build, maybe this is a good temporary option to fix antrea/antrea-ubuntu:latest and the e2e L7NetworkPolicy tests?

/test-e2e

Kind / E2e tests on a Kind cluster on Linux with all features enabled is successful

/skip-conformance
/skip-networkpolicy

/skip-conformance
/skip-networkpolicy


Is it possible to introduce dependency packages separately in the module?

A specific dependency package is used in a module, so is it possible to compose composer.json in each module at runtime, and when the module is disabled, it also prevents composer from automatically loading dependencies under the module

I doubt that's possible. Maybe if you make a custom composer plugin.

I'll close this as there hasn't been a reply in a while, feel free to comment if needed.

In my use case, I have 3 modules: USSD, API and Web.
I want to install predis and configure it as the cache for the USSD module.
How do I do that?
1. cd Modules/USSD && composer require predis/predis
2. install it in the main project root composer?
What if I want to use a different cache like MemCache for Web and Redis for USSD and API modules?


drivers: uart: nrf: fixing hardware flow control

PR #7681 introducing refactored UART driver broken flow control initialization.
This PR adds missing:

GPIO initialization for RTS and CTS
RTS and CTS pins assignment for flow control.

Signed-off-by: Jakub Rzeszutko<EMAIL_ADDRESS>

In the commit message correct "broken" to "broke"

Fixed commit message.

Codecov Report

Merging #8449 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #8449   +/-   ##
=======================================
  Coverage   64.61%   64.61%
=======================================
  Files         421      421
  Lines       40296    40296
  Branches     6803     6803
=======================================
  Hits        26037    26037
  Misses      11126    11126
  Partials     3133     3133

Continue to review full report at Codecov.

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

The code looks good now. But I'd change the commit message a bit, so that it does not refer to a PR, but rather to the particular commit that introduced this unwanted change (and it was this one: 8a255eaf39d3e1a170297fc59c4674c080f99db8).

Commit message has been updated.

Added comments explaining purpose of setting high state of TX and RTS lines.


Error handling is bad

I started out using io::Error everywhere because I didn't think too hard about how I was going to handle errors and it didn't seem important.
This is going to be particularly important in the executor because errors will need to turn in to traps somehow.

Resolved by #23


Version in releases stuck at 0.0.1

It's not updating project.yml when running xcodebuild.

Fixed in v0.2.4.


Merge nmirror to master

error CS0128: A local variable or function named '_' is already defined in this scope

This is odd. Discards are supposed to be a C# 7 feature and AFAIK we're running with a C# 7 compiler. Does buildtools carry around a prerelease version of roslyn? Stuff like this in the buildtools repo: https://github.com/dotnet/buildtools/blob/03988127f489bcd1cf58d71131ac628620d53de9/src/Microsoft.DotNet.Build.Tasks/PackageFiles/Roslyn.Common.props#L4-L6 is bothersome.
Cc @weshaggard


Compat: BaseIntermediateOutputPath might not be respected in some cases

Thought you might want to be aware of this, but in Roslyn/ProjectSystem's settings.targets (which occurs before common.targets), we have the following:
  <PropertyGroup>
    <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\..\bin\obj\$(MSBuildProjectName)'))\</BaseIntermediateOutputPath>
  </PropertyGroup>

This used to set the base intermediate directory, unless an individual project overwrote it.
In recent builds of MSBuild, however, we now respect the base intermediate directory ("obj") that comes from Microsoft.Common.props. This means that by upgrading to MSBuild 15, our build output has now changed.

@AndyGerlicher We'll need to put this in release notes, it should probably be considered a "breaking change"

Just ran into this bug with https://github.com/Microsoft/ApplicationInsights-SDK-Labs/tree/master/WCF. Not only did it break the build, it causes VS2017 to modify the project files (.csproj) when the solution is opened to add settings for <IntermediateOutputPath> to the user's temp folder.

What would be the suggested fix for this breaking change?

We added a warning in 15.8 to tell users that they should set this property in an early import like Directory.Build.props
https://github.com/Microsoft/msbuild/pull/3059


Any way to include more discord events?

Everything is working as intended, but I was wondering if you could possible add some more discord events specially the event to detect when your mic is muted.
I am trying to recreate a similar feature to steel series integration where I can light up a section of my keyboard if my mic is muted on discord.
https://steelseries.com/blog/steelseries-discord-gamesense-115

These are the available RPC events that we can bind animations to.
https://discord.com/developers/docs/topics/rpc#commands-and-events-rpc-events

Yeah I would like to make my mute macro red when muted, how would i go about making a custom RPC event trigger?
Thanks


Exclude files using

Hi, I am currently using the org.owasp:dependency-check-core:6.5.0 release of OWASP dependency check. When running the scan through
engine.scan(directory)

I would like to exclude some of the paths inside the directory.
I see that the CLI version does have the --exclude option when runnning: https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html.
However, I do not see any configuration that I can add in the Settings class when creating the OWASP engine. Is the exclude option currently supported in the java release?

 You could review the CLI code https://github.com/jeremylong/DependencyCheck/blob/main/cli/src/main/java/org/owasp/dependencycheck/App.java#L243
and https://github.com/jeremylong/DependencyCheck/blob/main/cli/src/main/java/org/owasp/dependencycheck/App.java#L321 for a sample on how it could be done.


react-dom variant

Great work! Would be awesome to get this component for ordinary react-dom projects. Is that planned at any time?

hi @vincentschroeder, i think this project could support react-native web, but it needs little tweaks to get it working


Synchronizing Timestamps between the OAK Camera and Computer for Unified Data Acquisition

I am encountering an issue with timestamp synchronization between the OAK camera and a connected computer. The camera generates its own timestamp, which differs from that of the computer. Consequently, all nodes utilizing the camera data adhere to its timestamp, while other nodes follow the computer's timestamp. This discrepancy presents a challenge in simultaneously obtaining data from the LiDAR and camera within the same frame, due to the differing timestamps. Is there a way to synchronize the camera's timestamp with that of the hosting computer?

Hi, could you record a rosbag containing lidar data and OAK camera data for comparison?

I got the same issue, it ended up with the navigation rejecting the camera info because the timestamp was too different or even in the future.

Hi @BriceRenaudeau, could you share more details? Is this something that's started happening recently?

It happened on the Iron 2.7.4 tag.
It happened after several hours of use (> 10h) and we have seen it only one time.
I will do some experiments and bags on the camera tomorrow but it will be nearly impossible to reproduce as the occurrence is very low.

It sound an issue that was reported and fixed in ROS Noetic a while ago, since there were no report for ROS2 I assumed that this wasn't an issue with ROS2, nevertheless the same mechanism has been added in ROS2 releases, you can try checking if enabling i_update_ros_base_time_on_ros_msg parameter for given nodes makes a change in this case.

Here is the graph of the time stamps of the left/right/stereo images without i_update_ros_base_time_on_ros_msg. There not sync.

Here is the time stamp graph comparison with /odom /laser_scan topics. And using the i_update_ros_base_time_on_ros_msg: true :


The setting of the "--device_max_memory" parameter seems to have no effect on the even distribution of GPU memory.

Hi, there
I have noticed that even when setting --device_max_memory, an error still occurs due to the GPU memory being exceeded on a card. For example, in the following figure, I requested to fine-tune the internvl2-1B model on four GPUs, and set --device_max_memory to 22GB, 22GB, 22GB, 22GB. During training, only two GPUs are occupied by memory, and when a larger batch_size is set, it will directly report a RuntimeError: CUDA out of memory, while the other two cards are not used. Not only with the internvl2-1B model, but I have also observed the same phenomenon with the 2B and 4B models. Is there an issue with my configuration, Is there any way to solve this problem?

Here is the complete configuration for my fine-tuning process.

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

--lora_target_modules is suggested to use DEFAULT
ALL will add vision-tower, this may cost a lot of memory.
DEFAULT will add lora to projector and llm, this is enough in most cases


Reconnection problem

What's the default reconnection policy of this package? How could I config it?
In my cluster I encountered such problem several times, it seems services already disconnected from the server, or didn't connect at first time at all, but it just keeps running with a dumb nats and doesn't recover  event the nats server has already started.

@zhaoyao91  by default the client will attempt to reconnect 10 times waiting to seconds between connects. After that the connection will close. I have updated the readme with a small sample in the 'advanced usage'. See https://github.com/nats-io/node-nats#advanced-usage


Enable Nested Virtualization

Several of our users quested the ability to run WSL in Windows VM's, and Rancher Desktop on Linux VM;s. Is there a way to enable nested virtualization in Harvester?

Hi @Sepiidae, is your scenario using Rancher Desktop and creating a harvester cluster with WSL?
If yes, did you find any problems with this configuration?
I did not check this case about the windows VM + WSL. Could you share more detail about your configuration and any issues?
Thanks!

Hi @Sepiidae, is your scenario using Rancher Desktop and creating a harvester cluster with WSL? If yes, did you find any problems with this configuration?
I did not check this case about the windows VM + WSL. Could you share more detail about your configuration and any issues? Thanks!

Have a harvester cluster on bare metal. We want to install Windows 10/11 machines on this cluster and have them be able to run WSL.

@Sepiidae if you can't use WSL or other nested virtualization in Harvester, you can try out this command to check if you have enabled KVM nested virtualization:
ls -l /sys/module/kvm_intel/parameters/nested

If this parameter exists that means KVM nested virtualization has been enabled and there should be no issue with WSL
If not you can try to enable it by executing the command below per node
# yq -i e '.stages.network[0].commands[0] = "modprobe kvm_intel nested=1"'

cc @Vicente-Cheng @futuretea

Just commenting that nested virtualization is enabled in on our nodes. I am retesting WSL on a new vm.

Has there been a resolution to @zanewgray issue? I have ran into the same problem. The is after I have enabled virtualization in the Windows 11 VM


training mode/config should be set via functions not class decorators

Currently the class decorator determines the training mode (e.g. local vs. distributed).
@kubeflow.DistributedTraining(worker_count=3, ps_count=1, namespace='kubeflow')
class MyModel(object):
    def train(self):
         ....

The downside of this approach is that the user has to change the class annotation in order to change the mode of training. I think it would be preferable to be able to change how it runs just with parameters to the train function e.g
config = LocalConfig()
myModel.train(config)

config = DistributedConfig(....)
myModel.train(config)

Fixed by #64
/close


Suggestion

https://github.com/LennartHennigs/ESPRotary/blob/59d5476a53ce227e44117792483318e8be908e75/src/ESPRotary.cpp#L47
This function may change the current position. I wonder if there should be a call back.
E.g.
if (p > upper_bound) {
last_position = upper_bound * steps_per_click;
} else {
last_position = (lower_bound > p) ? lower_bound * steps_per_click : p;
}
direction = 0;
if (position != last_position) {
position = last_position;
if (change_cb != NULL) change_cb (*this);
}

Good point! Added it, too. (You had a run, didn't you.) Thanks again!


RPi still mentioned

The final paragraph states this page is about raspberry pi. An artefact of adapting old material perhaps.

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

ID: e8e7c7d8-9e2e-a23b-35e6-489650473909
Version Independent ID: 5861e5ab-fb35-02a6-c848-6d8680501901
Content: Connect a DevKit device to your Azure IoT Central application
Content Source: articles/iot-central/howto-connect-devkit.md
Service: iot-central
GitHub Login: @dominicbetts
Microsoft Alias: dobett

@cdomotor Thanks for the feedback and reporting this.
@dominicbetts Could you please check this and update?

@cdomotor I have created a PR to address this issue.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Add support code block  and code highlight

Can ankivalenz create code blocks  and highlight  code to be used in Anki ?
e.g. inline code with single backticks  `ls -l`   or  code block with three backticks.
```sql
SELECT InvoiceDate, Total
```

I have tried the following minimal example and the code block does not render.
---
title: "My Document"
format:
  ankivalenz-html: default
---

## Types

- Prokaryotic ?:: does not contain a nucleus
- Eukaryotic ?:: contains a nucleus

- How to add SQL code block  ?::

```sql
SELECT InvoiceDate, Total

FROM Invoice
```

Hi, this probably has to do with Quarto not generating truly minimal HTML (see #8). I will have to look into that. Thanks for reporting it!


Details on Russia?

Hi! Could you please think about adding details on Russian regions?
Consider looking at a repo where I do my best to keep the data up to date in JHU CSSE format. It can't be called a reliable source, unfortunately.
https://github.com/grwlf/COVID-19_plus_Russia

One solution may be to use my python code for fetching data from Yandex which is a good source of data. Its entry point is here https://github.com/grwlf/COVID-19_plus_Russia/blob/master/python3/src/covid19ru/fetch.py#L286

Thanks for reaching out, I will try to integrate Russia data.
Let me figure out how to use your code for collecting data first.


Some models in Draco format do not display correctly

Description
I tried to display a model in Draco format with the latest version of PlayCanvas.
However, some Draco format models do not appear to display correctly.
For example, when I try to view the model in Draco format below, it looks like a strange texture is pasted.
https://rawcdn.githack.com/cx20/jsdo-static-contents/33ab7250/models/gltf/2.0/Itokawa/glTF-Draco/Itokawa.glb
Current result:
PlayCanvas + Itokawa.glb Draco format result:

Expected result:
PlayCanvas + Itokawa.glb Binary format result:

fixed in #2016, thanks for reporting @cx20


Azure Resource Explorer: SQL Data Warehouse is categorized as SQL Database

Issue Type: Bug
In Azure Resource Explorer, SQL Data Warehouse is categorized as SQL Database.
Azure Data Studio version: azuredatastudio 1.2.4 (1ebfd0235690ad044ed2874a02e65188f5fea01c, 2018-11-02T21:50:52.634Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.87GB (4.67GB free)

Process Argv
C:\Program Files\Azure Data Studio\azuredatastudio.exe

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

pastetheplan
dre
0.2.0

sql-dw
Mic
0.0.1

@kevinvngo these are coming back from the ARM API. Is this different in Cloud Explorer / Server explorer in Visual Studio? If not I'd be inclined to keep as-is.

Looked further into this today, and concluded that 'SQL Data Warehouses' are categorized correctly under 'SQL Databases' as they also do in Azure Portal.
We've introduced sections for 'Azure Synapse Analytics' and 'Dedicated SQL Pools' separately in #21471, but traditional SQL Data Warehouses are still inclusive to 'SQL Databases' list as they're received as-is from ARM API.
Closing this as not planned.


Add university domain file

@JinchengHeRyan I am sorry, the domain ucsc.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Is there a way to render using AME?

I know it is one of the features in the 2.0 release but is there a way I can use the AME to render using the current release? Maybe using a custom jsx script?
Thanks!

Hey @atitkothari
Yeah, technically there is!
https://github.com/inlife/nexrender/issues/83#issuecomment-580838407
Please try this out, and check if it does work for you :)
Cheers!


Display Speed Calc results

Speed total is modified by choice scarf and coloured in blue (to mark an item modifying speed total).
FIRST is displayed if the pokemon attacking is faster than the other one.
LAST is displayed if the pokemon attacking is slower (or equal : speed tie) than the other one.
This time you should properly see the diffs.

@Kiru4 do you have any intent on squashing?

I would like the modifications to be integreted into the trunk.

Your code doesn't fit our code style, and I really don't understand what this is supposed to change. Can you describe the change?

I did not change your "code style" added function where you added yours etc.
The change allow the user to know which pokemon is faster than the other which is really important.
Plus a pokemon taking an item that changes the value of its statistics display the new statistics values and their display are modified to let the user know the changes.

I'm talking about how you do things like
if ( STATS[i] == "sp" )
{

but our code style would be
if (STATS[i] == 'sp') {

@Kiru4 the speed is already displayed in battle on PS, I think this PR is kind of pointless

If the "{" is not placed properly you could easily change it.
@AustinXII I have done it for scarf user and for people building their team to be faster than specifics mons and for people playing on console.

Having looked at this more closely, it doesn't seem like it implements this very efficiently. The UI also seems kind of crude. There's a spot to the right of the stat boost that could be used to represent boosted stats.
Since it would need to be rewritten from scratch before I'd accept it anyway, I'm closing this.

Ok, hopefully you will do it properly (taking care of the boost + and -), just wanted to help and add features that I needed.


foregroundServiceTypes missing

I've just upgraded to version 6.4.0 of the library and now the option to define 'foregroundServiceTypes' is missing. Is this expected behaviour?

Version 6.4.0 uses all flags specified in the manifest attribute without specifying the foregroundServiceType on the dart side.


Hibernate All Wakeups Teensy 3.2 & 3.6

Apologies if this has already been covered, but I couldn't find a definitive answer:
Working on old computer: Arduino 1.8.9, Teensy Loader 1.46 , Snooze 6.3.2
Not working on new computer: Arduino 1.8.12, Teensy Loader 1.51 , Snooze 6.3.6
What is the latest combination of software that works please?

Can you download the latest one here. https://github.com/duff2013/Snooze/releases/tag/v6.3.6

The latest should work can you explain what exactly you are seeing?

With Arduino 1.8.12, Teensy Loader 1.51, and Snooze 6.3.6 (downloaded yesterday) , Teensys go to sleep, but don't wake up on timer.  I haven't tested other wakeup modes.
Are there any tests I could make, or logs to send?  (Nothing too hard please - I'm just a noob...)

I tested again today with  Arduino 1.8.12, Teensy Loader 1.51, and Snooze 6.3.6 and its working on both Teensys.
I think I must have had a confusion of Snooze versions due to copying some files from old to new computers - said I was a boob...
Looks like this issue can be closed.  Thanks for your prompt reply, and excellent software.

I found the reason for my problem.  The latest Teensyduino has an old version of Snooze; however even if you load a new version of Snooze (as a .Zip), Arduino still uses the old Teensyduino version.
The solution of course is to delete Snooze from:
C:\Program Files x86)\Arduino\hardware\teensy\avr\libraries
before you add the load the new version of Snooze.


Async version for asuswrt

Description:
This is a new async-version for asuswrt.
It will hopefully fix a lot of other errors with duplicate ssh-channels as well
Related issue (if applicable):
fixes #13723, fixes #17063 fixes #16887 fixes #13757 fixes #13351 fixes #10568
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
[x] New dependencies are only imported inside functions that use them ([example][ex-import]).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.

Could you extract it into a small lib that we can depend on instead?

Yes I might be able to, do you mean a smaller ssh-lib or a small asuswrt-lib? @balloob

I don't think that redundant checks if data is returned is needed, the simpler the better ;)

I added all issues that are related to this as a possible fix for it, the lib issues should not be here anyway ;)

amazing!


Add JUnit formatter

Some CI tools expect test results to be formatted as JUnit XML. It would be interesting to support this for rubocop Cop results so we can add a step in the pipeline to check for rubocop offenses.
Solution
Include a JUnit formatter in rubocop

What would be an example of such a CI tool?

not to say it's the only format supported but Jenkins can be configured to
use it
On Thu, 22 Aug 2019 at 05:37 Andreas Bühmann<EMAIL_ADDRESS>wrote:

What would be an example of such a CI tool?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubocop-hq/rubocop/issues/7303?email_source=notifications&email_token=AAOVFKRAOUMAJQYSFD7CTGTQFYJXZA5CNFSM4IONV7V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD433HOQ#issuecomment-523744186,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOVFKVX3GZ2CU4TQTCEC23QFYJXZANCNFSM4IONV7VQ
.

Same for AppVeyor: https://www.appveyor.com/docs/running-tests/#uploading-xml-test-results

This issue has been closed by #7701.


UserModel related hooks, decorators, and settings

Description

New Django User related features!

reactpy_django.hooks.use_user can be used to access the current user.
reactpy_django.hooks.use_user_data provides a simplified interface for storing user key-value data.
reactpy_django.decorators.user_passes_test is inspired by Django's user_passes_test decorator, but works with ReactPy components.
settings.py:REACTPY_AUTO_RELOGIN will cause component WebSocket connections to automatically re-login users that are already authenticated. This is useful to continuously update last_login timestamps and refresh the Django login session.

Checklist:
Please update this checklist as you complete each item:

[x] Tests have been developed for bug fixes or new functionality.
[x] The changelog has been updated, if necessary.
[ ] Documentation has been updated, if necessary.
[x] GitHub Issues closed by this PR have been linked.

By submitting this pull request you agree that all contributions comply with this project's open source license(s).

@rmorshea I need your opinion on use_user_data interface I'm constructing in this PR. To save you some time, here's the short and sweet summary:
use_user_data allows you to store or retrieve data specific to the connection's User object. This user_data is persistently stored within the database and can be accessed like such:
from reactpy import component, html
from reactpy_django.hooks import use_user_data

@component
def my_component():
    user_data, set_user_data = use_user_data()

    async def on_submit(event):
        if event["key"] == "Enter":
            key = str(len(user_data.current))
            merged_data = user_data.current | {key: event["target"]["value"]}
            set_user_data(merged_data)

    return html.div(
        html.div(f"Data: {user_data.current}"),
        html.div(f"Loading: {user_data.loading | set_user_data.loading}"),
        html.div(f"Error(s): {user_data.error} {set_user_data.error}"),
        html.input({"on_key_press": on_submit}),
    )

To get the conversation started, here's a few questions/concerns I have:

Right now user_data.current returns a dict... Should we instead replace this with some kind of manager API?
Does splitting the interface into user_data, set_user_data feel appropriate?
Is the set_user_data interface clear and logical? Specifically the fact that it has loading, reset, and error properties (identical to use_mutation).
Is the user_data interface clear and logical? Specifically the fact that it has current, loading, refetch, and error properties. This is slightly different than the equivalent use_query interface since I wanted to rename the data attribute to current.

I'll try and take a look early next week.

Would you have time to look at the interface proposed in the above comment this weekend?
This PR is fairly bulky and has a lot of Django-only jargon, so a PR review won't be needed.

Sure. I'll make time today or tomorrow.

My take is that the marginal UX improvements made by creating special wrappers for the query and mutation objects may be outweighed by requiring the user to learn something new. It seems easier to explain to the user that use_user_data returns a tuple with a query and a mutation.
To address some of the usability concerns in a slightly simpler way, we could consider adding a __call__ method to mutations and returning a named tuple so usage would be
user_data = use_user_data()

# access data
user_data.query.data

def some_callback():
    new_user_data = user_data.query.data | {...}
    user_data.mutation(new_user_data)

Agreed, will implement soon.


Both Nuget and Npm package restore for ASP.NET Webapi project

I have an ASP.NET Webapi project with Nuget pacakges for C# and Npm packages for Angular2.
Kudu can't deploy them both by default, only Nuget for ASP.NET projects and Nmp for Node.js projects from what I understand.
I created a custom deployment script to do both, but I wonder if this configuration will eventually be supported by kudu "out of the box" so I don't have to do a customization for deployment.
I thought this is becoming a common pattern for ASP.NET projects as scripting packages (including Typescript) are shifting towards using Npm. If that is not the case,  what are best practice for dealing with this kind of projects?

Could you share a sample repo that does this, per these steps? Also, I'd like to better understand the user steps that lead to this situation, to help determine how common vs custom the scenario is.

Hi @davidebbo
I can create a custom public repo to exemplify this, the one we use is private.
 We currently have about 9 Azure sites with ASP.NET MVC/Web APi and Kudu out of the box deployment and they work fine.
We recently introduced Angular 2 in one of the projects and had to use NPM packages for that.
Here is some of the content of the package index files in that project.
Let me know if the repo sample is still needed, I will create one.

}

Same issue. Sample repo includes a deploy.cmd that I pieced together from a custom node deploy and custom aspWAP deploy.

@davidebbo Any thoughts on this?

@watashiSHUN can you take a look at this one?

In my sample repo I ultimately want to allow for AOT compilation for my angular application within kudo

The deployment logic in Azure is straight forward:
if it's a dotnet core project:
      run "dotnet restore"
      run "dotnet publish"
else if it's a node project,
      run "npm install --production"

Although your project needs to run both commands, this can still be accomplished in Azure (without using a custom deployment script....that's just too much work):
Both node and dotnet provide event hooks that let you run scripts at different building stages, so in theory you have two options:

deploy as node project, then run dotnet commands as post-install scripts (in "package.json")
deploy as dotnet project, then run npm commands as prepublish scripts(in "project.json"/".csproj")

But since if else statement gives dotnet core project precedence in Azure, you need to use the second option:

if you are using dotnet cli preview2 toolings ("project.json" + ".xproj"), you can add the following code to your "project.json" file

  "scripts": {
    "prepublish": [ "npm install",... ]
  }

if you are using dotnet cli preview3 toolings or later (".csproj"), you can add the following code to your ".csproj" file

  <Target Name="manageNodePackages" BeforeTargets="BeforePublish">
      <Exec Command="npm install" />
  </Target>

Does this apply to projects that are not dotnet core?

Yes, if its a ASP.NET web app, once you created it in VS, you can navigate to its ".csproj" file and you will see the following:
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->

Won't that slow down the dev builds of the project?

when you say "dev build" do you mean project build speed during development cycles?
Of cause, you don't want to run npm every time you build your project locally, you need something other than <Target Name="BeforeBuild">
if you look at this line in your deploy.cmd, you can see that msbuild is running two targets subsequently: /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder
adding the following lines to your ".csproj" will ensure commands are ran only when you deploy to Azure:
  <Target Name="MyTarget" BeforeTargets="pipelinePreDeployCopyAllFilesToOneFolder">
	<Exec Command="npm install" />
  </Target>

Added the target (and removed the deploy.cmd in favor of default and get the following errors:

Command: deploy.cmd
Handling .NET Web Application deployment.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin'.
All packages listed in packages.config are already installed.
D:\Program Files (x86)\Microsoft SDKs\TypeScript\2.0\lib.es2015.core.d.ts(17,14): error TS2300: Build:Duplicate identifier 'PropertyKey'. [D:\home\site\repository\angularmvc\angularmvc.csproj]
D:\home\site\repository\angularmvc\app\components\todolist\todolist.component.ts(1,25): error TS2307: Build:Cannot find module '@angular/core'. [D:\home\site\repository\angularmvc\angularmvc.csproj]
D:\home\site\repository\angularmvc\app\components\todolist\todolist.component.ts(2,25): error TS2307: Build:Cannot find module '@angular/forms'. [D:\home\site\repository\angularmvc\angularmvc.csproj]
...
...
D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets(214,5): warning : No compiler log specified, 'Clean' won't work. [D:\home\site\repository\angularmvc\angularmvc.csproj]
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\repository\angularmvc\angularmvc.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Temp\8d435ed00169d42";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="D:\home\site\repository.\"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\59.51212.2600\bin\Scripts\starter.cmd deploy.cmd

It does not appear to be running the install command

  <Target Name="BeforeBuild" Condition=" $(Configuration) == 'Release'" >
	<Exec Command="npm install" />
  </Target>

should work for you (see pull request)
  <Target Name="MyTarget" BeforeTargets="pipelinePreDeployCopyAllFilesToOneFolder">
	<Exec Command="npm install" />
  </Target>

Can sometimes be used, it all depends on when you want to run npm install: for my test case I used angular-cli to manage my frontend (since we only have angular2 template for dotnet core preview2) and dotnet core webAPI for backend
Because the build of frontend and backend are independent of each other, it does not matter when I invoke npm and ng build, but for your repo you are building them together (".ts" + ".cs") you need to run npm install to restore packages before build

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


fix: Remove Public API Link which is on sale #1557

Fixes #1557  as https://uinames.com/ domain is on sale.

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is ordered alphabetically
[x] My submission has a useful description
[x] The description does not end with punctuation
[x] Each table column is padded with one space on either side
[x] I have searched the repository for any relevant issues or pull requests
[x] Any category I am creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Thanks


Look into using S2VXTestScene's scheduler instead of making our own clock for tests

As a developer, I want to use the test scene's scheduler instead of manipulating our own clock so that we can visually see changes in the test GUI.

A little off-topic but I looked at how osu! does their visual tests for sliders (ref: TestSceneSliderInput.cs) and it looks like they utilize their replay system to compare frames with what they expect to happen. Pretty neat.

Experimenting with using the built-in clock and scheduling actions rather than using our own clock. I observe these weird behaviors and I have no explanation as to why this is happening:

The scheduled action would repeat itself endlessly even though repeat is not set to true This occurs if there is a press without a release
The scheduled action would be way earlier than anticipated (ranging from 800-1000ms)

I have found the discrepancy. The Time.Current used in AddNote is Story's Time, which is NOT the same as the TestScene's Time.

Changing the latter to Story.Time.Current fixes this. However, due to the nature of Update(), there will be some error.

osu! does not do real-time testing because of the imprecision of Update() but rather the replay frame state comparison as mentioned previously.
I'm satisfied with the results and propose we move forward with the way we are doing it now with our own clock + adding [HeadlessTest] to tests which are not actually testing anything Visual.