profile
viewpoint
Karmanyaah Malhotra karmanyaahm Beachwood High School TX sux https://karmanyaah.malhotra.cc random student hacker on the internet

issue openedUnifiedPush/specifications

Data should be bytearray not string

Messages should be passed around as byte arrays not strings. Encoding encrypted bytes to UTF-8 results in garbage decoding.

This was recently discussed in #unifiedpush-devs:matrix.org with relation to https://github.com/binwiederhier/ntfy/issues/101

created time in 25 minutes

issue commentbinwiederhier/ntfy

Binary UnifiedPush messages should not be converted to attachments

https://stackoverflow.com/a/9098905/8919142 :thought_balloon:

binwiederhier

comment created time in 11 hours

issue commentbinwiederhier/ntfy

Binary UnifiedPush messages should not be converted to attachments

So I tested out the android app, and it didn't seem to work with flutter's byte decoding things, so I made this commit to ntfy for debugging: https://github.com/karmanyaahm/ntfy-android/commit/f96fec2ff36c342c9b22538e4cc3f1bda8f5385f

After that, I sent messages with dd if=/dev/urandom bs=8 count=1 | curl -d @- http://localhost/upABC?up=1

and monitored the logs printed by the above commit by running adb logcat | grep Ntfy2.

There, I could see something like the following

01-17 20:50:26.144  3617  3678 D Ntfy2   : [85, 27, -63, -2, -93, 62, 98, 113]
01-17 20:50:26.144  3617  3678 D Ntfy2   : [85, 27, -17, -65, -67, -17, -65, -67, -17, -65, -67, 62, 98, 113]

The output from the base64 array print was the correct (albeit signed) bytes, while the output after encoding into a string and decoding was the second weird one. The second output was also the same as what up-flutter-example saw when decoding the string to bytes.

So, this makes it seem like converting the byte array derived from base64 into a string is causing some corruption of the data. The effects are also inconsistent based on the input (random) data, so different characters are being processed differently.

I have no idea why any of this is happening, or whether it is even reproducible on different devices.

binwiederhier

comment created time in 11 hours

push eventkarmanyaahm/ntfy-android

Karmanyaah Malhotra

commit sha f96fec2ff36c342c9b22538e4cc3f1bda8f5385f

testing decode

view details

push time in 11 hours

PR opened UnifiedPush/android-example

Allow unencrypted HTTP traffic

This would be nice to have for debugging

+1 -0

0 comment

1 changed file

pr created time in 12 hours

push eventkarmanyaahm/android-example

Karmanyaah Malhotra

commit sha ef9422a92e2abcd7391f09db033478e349d52fd1

Allow unencrypted HTTP traffic

view details

push time in 12 hours

push eventkarmanyaahm/flutter-connector

dependabot[bot]

commit sha 5a73a7dab1e8017faba624edb21e66c8baa0c77a

Bump gradle from 7.0.2 to 7.0.4 in /example/android Bumps gradle from 7.0.2 to 7.0.4. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>

view details

dependabot[bot]

commit sha 21cb366a9749ebf4b8ab705afc28513c0607e2ab

Bump gradle from 7.0.2 to 7.0.4 in /android Bumps gradle from 7.0.2 to 7.0.4. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>

view details

S1m

commit sha 4bf184f02f9159d968076aa36923f4bace0df541

Merge remote-tracking branch 'origin/dependabot/gradle/android/com.android.tools.build-gradle-7.0.4' into dev

view details

S1m

commit sha 91c6850ecf2f7a47e493b352dcab53b0c8ccb642

Merge remote-tracking branch 'origin/dependabot/gradle/example/android/com.android.tools.build-gradle-7.0.4' into dev

view details

S1m

commit sha bd9a78dc1bb6b959875e9a76332170b42184398b

Add .pubignore

view details

S1m

commit sha aecd572dd8c82ee0727c6ab9d3cbf8b3738bd927

Remove unused files

view details

S1m

commit sha 29bc6900d4124f75bdfd7bd91d4fa35bb7f2bc8c

Update dependencies

view details

S1m

commit sha 1257747f1b18c3c64728af13152ec09fd696eeb5

3.0.1

view details

S1m

commit sha d6368acddb86ffe3ba984d121633901fe0ceadbd

Move example to example-singleInst-callback

view details

S1m

commit sha b0dcf0460a1d9a8bcd916444b0f65e53bf02dde0

Create single instance example with receiver

view details

S1m

commit sha b8fd4b4ef63a0928ef8956f21cfec99b376c8b2d

Use receiver for the example

view details

S1m

commit sha 854513025da2e076216113b1daa977a273af68d1

Create multi instance example with callback

view details

S1m

commit sha 2c2d3c6d71e565c050f9e6f0802f2b9efb70a600

Create multi instance example with receiver

view details

S1m

commit sha ee0d7b5e49046e90020bf2d36be9d7f1be1f3822

Link example to singleInst-callback

view details

S1m

commit sha 60748f1ed1179c528d633ef71b4e1a029926d579

Fix workflow

view details

push time in 17 hours

push eventkarmanyaahm/flutter-connector

dependabot[bot]

commit sha aacd722c57086e90812438f4260908d981213044

Bump android-connector from 1.2.2 to 1.2.3 in /android Bumps [android-connector](https://github.com/UnifiedPush/android-connector) from 1.2.2 to 1.2.3. - [Release notes](https://github.com/UnifiedPush/android-connector/releases) - [Commits](https://github.com/UnifiedPush/android-connector/compare/1.2.2...1.2.3) --- updated-dependencies: - dependency-name: com.github.UnifiedPush:android-connector dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>

view details

dependabot[bot]

commit sha 50176f176a93b61e1ca19a73c92b5929e08966bd

Bump gradle from 7.0.2 to 7.0.4 in /android Bumps gradle from 7.0.2 to 7.0.4. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>

view details

dependabot[bot]

commit sha 9f2c104de2ac8447d3b23baff2a027bc03fcc4dc

Bump gradle from 7.0.2 to 7.0.4 in /example/android Bumps gradle from 7.0.2 to 7.0.4. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>

view details

S1m

commit sha dc2999c00b5995f544e7093b1da0bd4eecf20611

Add .pubignore

view details

S1m

commit sha 6643ecab8f2affd4d54eb25a2de732101547bb7a

Remove unused files

view details

S1m

commit sha d5c4ac83305d7a6324cb8bd00b0dc242e3d0df3a

Update dependencies

view details

S1m

commit sha 19dee0161e9a82224df6958a2bc94811a38a21e9

3.0.1

view details

S1m

commit sha d136dae30270af9047b1c6b4db2ca3e0dd78b827

Move example to example-singleInst-callback

view details

S1m

commit sha 15412f574cc8cd599a7aaceb758e5bb555bd227d

Create single instance example with receiver

view details

S1m

commit sha 873dc21e49498540baa8163fb0235ce9d7c4db02

Use receiver for the example

view details

S1m

commit sha d0ee948258b02621bef1c06498c8ae69d880363e

Create multi instance example with callback

view details

S1m

commit sha eceebb78ce7298684f9a8e168463d38073b2bb27

Create multi instance example with receiver

view details

S1m

commit sha ff77c1c76770a5b3ecabbfa451dc5c041daad74a

Link example to singleInst-callback

view details

S1m

commit sha 1e0128ac1116b03ec2efc9a8f3a00d916d7eac1a

Fix workflow

view details

push time in 17 hours

PR opened hakobe/paranoidhttp

Support ipv6 in README
+1 -5

0 comment

1 changed file

pr created time in 4 days

push eventkarmanyaahm/paranoidhttp

Karmanyaah Malhotra

commit sha 699f39269b970e9f4a2160d2b75b5a63e303c1c4

Update README.md

view details

push time in 4 days

issue commentbinwiederhier/ntfy

UnifiedPush Linux distributor

Just want to let you know I've been really busy the past few weeks, but I'll get back to this soon.

binwiederhier

comment created time in 5 days

issue openedperturbedpingu/projectwhiteboard_html5_optimized

[feature request] add robot object

Just like MoGos are objects that can be 'balanced' onto a platform, having a draggable robot object instead of a separate button would be very nice. Also, it would be really really helpful if there was a feature where MoGos could be 'attached' to the robot object, in a way that moving the robot object also moves the MoGo(s). The MoGo attachment mechanism could probably just be like the green area thing, where if a MoGo is placed on top of a robot, it'll get attached until it is removed by touching the MoGo.

These would be incredibly useful features for demonstrating and sharing a game plan.

created time in 8 days

pull request commenthakobe/paranoidhttp

Add IPv6 support

😄 This just reminded me the readme should be updated. It says that this library only supports v4.

karmanyaahm

comment created time in 10 days

push eventUnifiedPush/documentation

Karmanyaah Malhotra

commit sha 253a3673865658c4e52422558dafa997bc879513

Fix links in FAQ change links from relative to absolute on FAQ page

view details

Karmanyaah Malhotra

commit sha 2418d8e269a6297d510d6ff189fe530ade59bcd6

Add 'what are push notifications' hints Added an asterisk after the word 'push notifications' linking to the meaning of push notifications

view details

push time in 10 days

PR merged UnifiedPush/documentation

Minor links and definition hints
  • Fix links in FAQ
  • Add 'what are push notifications' hints
+4 -4

1 comment

3 changed files

karmanyaahm

pr closed time in 10 days

pull request commentUnifiedPush/documentation

Minor links and definition hints

I'll merge w/o review this since it just has minor bugfixes and push notification hints which were agreed upon here

karmanyaahm

comment created time in 10 days

PR opened UnifiedPush/documentation

Minor links and definition hints
  • Fix links in FAQ
  • Add 'what are push notifications' hints
+4 -4

0 comment

3 changed files

pr created time in 10 days

create barnchkarmanyaahm/documentation

branch : patch

created branch time in 10 days

push eventkarmanyaahm/documentation

Karmanyaah Malhotra

commit sha 0af2d1fe11bf2f2feca5653d0be14d95c1eae7ee

Nextpush stable and f-droid

view details

Karmanyaah Malhotra

commit sha 03c9c7f825abe1e8b20d5b201eb3d8a4b932e842

Merge pull request #42 from UnifiedPush/karmanyaahm-patch-1 Nextpush stable and f-droid

view details

UP Github Action

commit sha 9af51326aebba5de1f137e05f46821e4ceb63bcd

Spec Update Thu Dec 30 12:34:09 UTC 2021

view details

S1m

commit sha 159961f987975e9f2c8903980ae033337ab943e7

Add doc about Ntfy Make it first class one Create FAQ to clear the index

view details

S1m

commit sha 53b4ac48283cbc3a1523d29991eb9d6703cd5eb0

Small fixes

view details

Karmanyaah Malhotra

commit sha 6edf8e9718d6229f20af148cc4aa566e1b1ea613

minor grammar etc changes

view details

push time in 10 days

push eventvex-76513/code

Karmanyaah Malhotra

commit sha 392210d16d7da0764449641835fcb5fcb0e0e46e

pros update

view details

Karmanyaah Malhotra

commit sha dbcc4735f3674d98fd602ec31724e5730c32a942

good slew and pid yay

view details

Karmanyaah Malhotra

commit sha a895d50a958a6bc1ee5891ac7cc54f76d8900d54

reset piston to old way bc apparently air leaks at high pressure when it's reversed in hardware

view details

Karmanyaah Malhotra

commit sha fed6acd7dab92a4872d2695537f52cadbd502dcc

helper methohds for auton movements with speed

view details

Karmanyaah Malhotra

commit sha 2111944ac481a2921a175416b7ab858b50d0b6e1

back piston

view details

push time in 13 days

issue commentUnifiedPush/specifications

switch from token to instance ?

Not sure for D-Bus messages. We could mandate to check messages origin to be equals to the distributor ID

I previously looked at that since would help remove the app id from 'Register', but I don't think there's any straightforward way of achieving it.

But then is it really simpler :) ?

I agree, probably not.

MatMaul

comment created time in 15 days

issue commentUnifiedPush/specifications

switch from token to instance ?

On linux side, it is a bit different, the distributor and the connector are meant to be run by the same user. So the token can't be secret

As flatpak and other isolation mechanisms start to become more popular, and linux becomes more similar to android, having a secret token will probably make sense for the same reasons as android.

MatMaul

comment created time in 15 days

CommitCommentEvent

push eventkarmanyaahm/documentation

Karmanyaah Malhotra

commit sha a98c61a34f3c8b48ee9558d4bad537aee71c5eb3

minor grammar etc changes

view details

push time in 15 days

pull request commentUnifiedPush/documentation

Add doc about Ntfy

Can you check out these changes? https://github.com/karmanyaahm/documentation/commit/068ba25d6f3cd8d517ce493fda7f71e693705cee Also, I feel like the What are push notifications? FAQ should probably be kept on the home page because it'll hugely simplify the first experience people who don't know anything about push technology will have when looking at UnifiedPush. They won't have to go around on multiple pages just to understand what UnifiedPush is.

p1gp1g

comment created time in 15 days

CommitCommentEvent

create barnchkarmanyaahm/documentation

branch : ntfy

created branch time in 15 days

issue commentUnifiedPush/specifications

switch from token to instance ?

The 3 implications you suggested are indeed good things, imho. However, unregister on DBus doesn't know about what app (or appName) originated the request. This change (non-unique tokens) would require adding an app name parameter to unregister (like the one register has). This is probably not a big deal since we're doing a 2.0 release anyway for #18 or #17. That could be batched together with this change into one big release.

MatMaul

comment created time in 15 days

more