text:
allow sudo or run as USER root

Thanks for this very useful Docker image!  I need to add some dependencies on top of this image for some projects, but it runs as USER gopher, so it can't install packages.   This image could either be switched to run as root, or include sudo with the gopher user having sudo access.

thanks, I didn't think it would be useful for anyone else. Adding sudo SGTM. You wanna send a PR for it?

works for me

FYI, I ended up needing to make my own Docker image for this.  Here's mine for anyone who wants a Docker image designed around the GitLab CI use case:
https://gitlab.com/eighthave/ci-image-gomobile/container_registry
It is used like this:
android:
  image: registry.gitlab.com/eighthave/ci-image-gomobile
  script:
    - export src=$GOPATH/src
    - mkdir -p $src/git.torproject.org/pluggable-transports
    - mkdir -p $src/github.com/keroserene
    - mkdir -p $src/gitlab.com/$CI_PROJECT_NAMESPACE
    - ln -s $CI_PROJECT_DIR $src/git.torproject.org/pluggable-transports/snowflake
    - ln -s $CI_PROJECT_DIR $src/git.torproject.org/pluggable-transports/snowflake.git
    - ln -s $CI_PROJECT_DIR $src/github.com/keroserene/snowflake
    - ln -s $CI_PROJECT_DIR $src/github.com/keroserene/snowflake.git
    - ln -s $CI_PROJECT_DIR $src/gitlab.com/$CI_PROJECT_PATH
    - ln -s $CI_PROJECT_DIR $src/gitlab.com/${CI_PROJECT_PATH}.git

    - cd $src/github.com/keroserene/snowflake/client
    - git checkout -B $CI_COMMIT_REF_NAME origin/$CI_COMMIT_REF_NAME # force to a branch for `go get -u`
    - go get -d -u ./...
    - git -C $src/github.com/keroserene/go-webrtc fetch https://gitlab.com/eighthave/go-webrtc.git
    - git -C $src/github.com/keroserene/go-webrtc reset --hard FETCH_HEAD
    - cp $src/github.com/keroserene/go-webrtc/webrtc-android-armeabi-v7a.pc
         $src/github.com/keroserene/go-webrtc/webrtc-linux-arm.pc  # cgo uses both on Android :-/
    - export CGO_CXXFLAGS=-D_GLIBCXX_USE_CXX_ABI=1
    - export CGO_CFLAGS="-fsanitize=address"
    - export CGO_LDFLAGS="-fsanitize=address"
    - gomobile bind -v -x -target=android github.com/keroserene/snowflake/client

authors: eighthave mpl


text:
lombok processor could not be initialized.

Short description
click "build Project", it the Lombok processor could not be initialized.
Expected behavior
can not run the project
Version information
IDEA Version:
IntelliJ IDEA 2019.3 (Community Edition)
Build #IC-193.5233.102, built on November 28, 2019
Runtime version: 11.0.4+10-b520.11 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
Registry: debugger.watches.in.variables=false
Non-Bundled Plugins: Lombook Plugin, com.poratu.idea.plugins.tomcat, in.1ton.idea.spring.assistant.plugin, org.sonarlint.idea
JDK Version:
jdk8
OS Type & Version: Are you on Mac/Windows/Linux? Provide as much information as possible about versions
Lombok Plugin Version:
0.29 2019.3
Stacktrace
If you are experiencing an issue and IntelliJ throws an error please provide the stacktrace.
Warning:(28, 8) java: lombok.javac.apt.LombokProcessor could not be initialized. Lombok will not run during this compilation: java.lang.IllegalArgumentException: com.sun.tools.javac.main.DelegatingJavaFileManager$DelegatingSJFM extends com.sun.tools.javac.main.DelegatingJavaFileManager implements javax.tools.StandardJavaFileManager
at lombok.javac.apt.LombokFileObjects.getCompiler(LombokFileObjects.java:130)
at lombok.javac.apt.InterceptingJavaFileManager.(InterceptingJavaFileManager.java:40)
at lombok.javac.apt.LombokProcessor.placePostCompileAndDontMakeForceRoundDummiesHook(LombokProcessor.java:164)
at lombok.javac.apt.LombokProcessor.init(LombokProcessor.java:85)
at lombok.core.AnnotationProcessor$JavacDescriptor.want(AnnotationProcessor.java:87)
at lombok.core.AnnotationProcessor.init(AnnotationProcessor.java:140)
at lombok.launch.AnnotationProcessorHider$AnnotationProcessor.init(AnnotationProcessor.java:69)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.(JavacProcessingEnvironment.java:686)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:786)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:881)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1222)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1334)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:147)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:207)
at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:486)
at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:338)
at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:263)
at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:216)
at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1328)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:1006)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1073)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:967)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:796)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:378)
at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:178)
at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:140)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:297)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:130)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:232)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

This is a javac part problem, please repost this issue at: https://github.com/rzwitserloot/lombok/issues

Try to update your lombok.jar dependency or ask here https://github.com/rzwitserloot/lombok/issues if it dowsn't help.

source: gharchive/issue

authors: NekoCaffeine mplushnikov slandge

repo: mplushnikov/lombok-intellij-plugin

license_type: permissive

license_source: bigquery


text:
Problem starting the module mod_gcm for host localhost

Hi Doctor,
I've setup ejabberd in Elixir/Phoenix application. Mix.exs has {:ejabberd, "~> 17.9"}. I've also copied mod_gcm.erl in src folder and put the following entry in ejabberd.yml.
mod_gcm:
gcm_api_key: "key"
While starting the phoenix app application stops with following error:
[warn] module 'mod_gcm' doesn't export mod_opt_type/1
[error] Problem starting the module mod_gcm for host localhost
options: [{gcm_api_key,<<"key">>}]
error: undef
[{mod_gcm,start,
[<<"localhost">>,
[{gcm_api_key,<<"key">>}]],
[]},
{gen_mod,start_module,4,[{file,"src/gen_mod.erl"},{line,200}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
{gen_mod,start_link,0,[{file,"src/gen_mod.erl"},{line,79}]},
{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,365}]},
{supervisor,start_children,3,[{file,"supervisor.erl"},{line,348}]},
{supervisor,init_children,2,[{file,"supervisor.erl"},{line,314}]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]
[error] ejabberd initialization was aborted because a module start failed.

Any particular code that needs to be changed in order to make this work for later versions? I'll try fixing it if I can.

license: mit


text:
Update pr_update_changelog.py

aaa

/review

source: gharchive/pull-request

license_source: github-api


text:
Make PWA

Allow the website to be installed in a browser, and work offline (progressive web app).
Load all resources with a service worker and cache them

See https://dev.to/wtho/custom-service-worker-logic-in-typescript-on-vite-4f27 on how to write the service worker in TypeScript

See vite-plugin-pwa for a plugin that auto-configures service workers for use with Vite

The website can now be installed as a standalone app in Chrome:

license: MIT


text:
Switchbots don't work from time to time

The question
-ble.0
2023-04-23 09:42:33.402	error	[botAction] max. retries (5) reached. Giving up ...
switchbot-ble.0
2023-04-23 09:42:33.402	warn	[botAction] error while running 'up' for SwitchBot Bot (c4:39:35:44:9f:d2): Discover deviceList is empty!: Discover deviceList is empty!
I raised the retries to 25 meanwhile. This error happens from time to time. Any idea?
Thank you.
Additional information
No response

@zoulhh

This error happens from time to time

How often does this happen?

@zoulhh

This error happens from time to time

How often does this happen?

Several times a day even though I don't switch too often. Maybe 10 times a day. Happens with different Switchbots.
Thank you.
Mick

@zoulhh
Do you have another application running on the same system that is also using Bluetooth?

@zoulhh
Do you have another application running on the same system that is also using Bluetooth?

No.

@zoulhh
If you're using the GitHub version please try the latest version via npm (v0.4.5)

@zoulhh
If you're using the GitHub version please try the latest version via npm (v0.4.5)

Thanks for the response. I am not very familiar to linux. Can you please explain what to do? Thank you.

@zoulhh
Open a terminal on your system where ioBroker is installed.
Change to the ioBroker installation directory. On most systems, this should be /opt/iobroker.
cd /opt/iobroker

Note: If your installation directory is different, change the path accordingly.
Install the adapter from npm using the following command:
npm install iobroker.switchbot-ble

@zoulhh
Did it work?


text:
Mrc 371 Create users db

Eventually there will probably be some other stuff in here, but for now we just need a sql db to save our users in.

I was kind of assuming we'd have the db in its own repo like with Montagu. I guess it doesn't have to be but it might make CI nicer - with this setup we'll end up re-building the db images every time the Kotlin app changes and conversely, running all the java tests every time we add a new migration. I know we're doing that with OW (and the OW CI logic is a bit of nightmare) but my feeling is the de-coupled pattern is better. What do you think?

I think you're right, I dithered a bit about which to do. It was probably easier to get it basically working all in one repo, but I'll make a new repo, hint-db and move everything from the db folder into that.

Created a new ticket for using Libsodium, mrc-377

repo: mrc-ide/modelserver


text:
CORS support

I have deployed this to app engine and just using it as a minifier for my other websites, how do i enable CORS support for the script?

I think CORS support is beyond the scope of Minify, but you could put something like this in config.php:
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
  // return only the headers and not the content
  // only allow CORS if we're doing a GET - i.e. no saving for now.
  if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']) && $_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'] == 'GET') {
    header('Access-Control-Allow-Origin: *');
    header('Access-Control-Allow-Headers: X-Requested-With');
  }
  exit;
}

From https://remysharp.com/2011/04/21/getting-cors-working

Better: remove the X-Requested-With header from the requests.

as with pre-flight, you may also want to specify ttl of the OPTION requests, etc
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

authors: glensc mrclay sheldon-sminq

repo: mrclay/minify


text:
fix predict() argument in 2

Hello. I am Inyong.
I just started taking classes anew.
I got an issue during watching and practicing the 79th lecture.
So while I was trying to fix and looking at the colab notebook in this repo, I found that the argument of model_3.predict() had y_test, not X_test.
Therefore, I make this merge request.
I'm enjoying the lecture :)

@mrdbourke Could you please take a look?

I modified it with PyCharm and created a lot of diffs. I will delete this MR and leave it as an issue.

repo: mrdbourke/tensorflow-deep-learning


text:
Clear cookes not on the Whitelist when exiting Firefox.

There always seem to be a few non whitelisted cookies that never get deleted for some reason.  An option to clear all non whitelisted cookies when exiting Fx would probably handle this.

It's probably cause you had a site or a subdomain still open relating to that cookie. You can try going into the popup -> Cookie cleanup (Ignore open tabs) and see if that helps.

Also, currently there's no way to set an extension to do something on exit with current WebExtension APIs, so it would have to be on browser start up.

Failling to clear github cookies with the addon.

open github page and log in
click "clean all cookies: ignore open tabs"
reload
Still logged.
try closing all tabs github related
Still logged
:(

@labors89 Have you used any other Cookie Extension before by any chance?
Try these troubleshooting steps:

Clear all your cookies (start with a clean slate)
Reset settings other cookie extensions might have made in about:config -> restore default of all network.cookie.* preferences

Try these troubleshooting steps:

Clear all your cookies (start with a clean slate)
Reset settings other cookie extensions might have made in about:config -> restore default of all network.cookie.* preferences

Did the above but github cookies still present, same problem happens in chrome, even with a new profile with only ublock origin and cookie-autodelete enable..

@labors89 That's weird cause I don't have this issue. Can you go into your developer tools and click Browser Console (Contol + Shift + J) on Firefox and see what appears when you click Cookie Cleanup in the options.

Hmm, for some weird reason it didn't worked with firefox , chrome or chrome + new profile. Just tried to create a new profile with firefox and now everything is gold.
I really have no clue about how to analyse the console output, sorry I cannot pinpoint the cause. But thank you anyway :)

@labors89 Yeah I figured a new profile would help since legacy extensions like to leave a lot of crud that doesn't get cleared until you make a new profile.

authors: labors89 mrdokenny streetwolf

repo: mrdokenny/Cookie-AutoDelete


text:
Screen flickering issue when flipping between DMA buffers

hi @mrfaptastic @vortigont ,
wondering if this related to the library but i notice high speed flickering. i havent go thru which part causing this but just to come out with some question regarding the double buffer and display synchronization.

somecodes are running fast in a cycle and the next cycle will be a bit slow due to some function processing, probably due to font processing. how the frequency and the double buffer sync to each other when the loop speed is inconsistent?
is there a wait to process clock or how to configure clocking latch delay per display feed. look like the switch buffer is slow to swap in my case. happens even no display changes where the swap cant keep up with the loop cycle or actually the previous swap came first before the function finish printing all details.
is there a way to confirm swap did full flush before running a new swap?
is there a way to detect last clock, if same keep swap and if have changes do swap?

my guess is my code are not consistently running and swapping printing the display. but just to see how i could improve based on the library behavior or flow.
thanks!
ts

https://user-images.githubusercontent.com/75555993/129705701-56410b9b-bc98-4082-93ba-4413e47069c9.mp4
sample video as above.

I take it you have flipDMABuffer and showDMABuffer on a never ending loop right?
The speed and frequency that this occurs is completely managed by the ESP32 SoC and the library has no control over performance whatsoever. If you are using multiple perhiphals, WiFi, Bluetooth etc - all of these may generate interrupts which slow down the performance of the ESP32 flipping from one buffer to another.
I try avoid flipping buffers unless necessary. I suspect you might also be doing a clearscreen() somewhere which is causing flicker, because flipping buffers will NOT cause flicker unless one buffer is a black screen, and the other isn't.

For example, this is the double buffer example without any delay.
Red goes into the background of one buffer
Blue into another
It'll flip so fast between buffers you should see a seamless yellow. So if you're experiencing flicker you'll need to look at your code.
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>

/*
 * Below is an is the 'legacy' way of initialising the MatrixPanel_I2S_DMA class.
 * i.e. MATRIX_WIDTH and MATRIX_HEIGHT are modified by compile-time directives.
 * By default the library assumes a single 64x32 pixel panel is connected.
 *
 * Refer to the example '2_PatternPlasma' on the new / correct way to setup this library
 * for different resolutions / panel chain lengths within the sketch 'setup()'.
 *
 */

MatrixPanel_I2S_DMA *display = nullptr;

const byte row0 = 2+0*10;
const byte row1 = 2+1*10;
const byte row2 = 2+2*10;

void setup()
{

  // put your setup code here, to run once:
  delay(1000); Serial.begin(115200); delay(200);

  Serial.println("...Starting Display");

  HUB75_I2S_CFG mxconfig;
  mxconfig.double_buff = true; // Turn of double buffer

  // OK, now we can create our matrix object
  display = new MatrixPanel_I2S_DMA(mxconfig);

  display->begin();  // setup display with pins as per defined in the library
  display->setTextColor(display->color565(255, 255, 255));

  // Buffer 0 test
  display->fillScreen(display->color565(128, 0, 0));
  display->setCursor(3, row0);
  display->print(F("Buffer 0"));
  display->setCursor(3, row1);
  display->print(F(" Buffer 0"));
  Serial.println("Wrote to to Buffer 0");
  display->showDMABuffer();
  delay(1500);

  // Buffer 1 test
  display->flipDMABuffer();
  display->fillScreen(display->color565(0, 128, 0)); // shouldn't see this
  display->setCursor(3, row0);
  display->print(F("Buffer 1"));
  display->setCursor(3, row2);
  display->print(F(" Buffer 1"));

  Serial.println("Wrote to to Buffer 1");
  display->showDMABuffer();
  delay(1500);

}

void loop() {

  // Flip the back buffer
  display->flipDMABuffer();
  display->showDMABuffer();
  display->flipDMABuffer();
  display->showDMABuffer();

}

Finally, changing stuff on the display using drawing routines (i.e. AdaFruit GFX) and flipping DMA buffers, are totally independant operations.
From my limited experience, both can seemingly occur at the same time on the ESP32. Perhaps RTOS allows one to change data in a buffer whilst another process will change what buffer the hardware DMA 'pumps out' to the GPIOs.

display->fillscreen(xxx)
display->flipdmabuff
display->showdmabuff

1 and 2&3 might could execute at the same time.
So you'll need to write your own syncronisation code, not sure how. Perhaps put a delay() after a big drawing routine just to make sure it's completed before flipping a buffer, or implementing a callback routing in whatever gfx code you have to then call the dma buffer flip operation.
This isn't an issue with this library.

Agreed, flickering comes when you clear the screen. If you check the examples for sinus wibble effect - it could run flickerless even without double buffer. The idea is that it updates buffer pixel by pixel slowly, not synced but w/o clearing the screen.

hi @mrfaptastic delay is a bit expensive operation since the codes run in main thread and i need to sync the display up to 200ms to make sure clock updates are consistent. so i guess the lib does not control on race and concurrency.
i guess

The idea is that it updates buffer pixel by pixel slowly,
only possible to update when display are updated by part of the display that change. or it is kind of a shader/grads that lit the display gradually? we have this in the library?

i remember that on other issue mentioning that clearScreen only now clearing the back buffer. supported by the comment here:
    /**
     * A wrapper to fill the entire Screen with black
     * if double buffering is used, than only back buffer is cleared
     */
    inline void clearScreen(){ updateMatrixDMABuffer(0,0,0); };

so it do effecting the display on the main display buffer?
basic question, what happen to back buffer after the flip operation? safe to draw without clear the buffer using clearScreen()?
thanks!
TS

update: removing clearScreen() confirm to fix the flickering issue, but the issue is my display are all now mixed up and not refreshing.

Hi @tsctrl. I can't fault your persistence on trying to find a solution here  :-).
I've made a change to the library in the git - I have no idea if this will work...
loop(){
      display->flipDMABuffer();      // set active buffer to back buffer
      while(!display->clearScreen());  // wait for true to wipe the back buffer

  // do some graphic updates here..

  delay(1); // Do this anyway for sync, see if it makes a difference
  display->showDMABuffer();

  }

No idea if it'll help

This might be a dumb question, but you have definately enabled double buffering? because calling flip/showDMABuffer won't actually do anything otherwise, it'll just use the one buffer.

yes, i have enable double buffering

hi @mrfaptastic ,
should have this:
    bool clearScreen() {
      return display->clearScreen();
    }

here:
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/blob/3b13645e7ff4427694a8daa448e66d77882d5f92/ESP32-VirtualMatrixPanel-I2S-DMA.h#L82

Can you just make the change locally and confirm if it helps or not with the flicker? If not i'll revert the changes I've made entirely.

yup, the changes work with delay(1);
without delay is still flickering.

So it's solved? I don't have any other solution as this isn't really an issue with the library per say.

it solved, but hope to have other solution then adding delay(1) to the main loop though
thanks @mrfaptastic

Unfortunately I'll have to leave it to you to find a plausable solution here as if a 1ms delay isn't acceptable then potentially you may need to do some larger refactoring.
try various values into delayMicroseconds()
Perhaps just having any form of 'delay' helps the CPU/DMA/Thread/RTOS/dma flip get 'synced' - not sure. I'm going to remove the true/false return code from clearscreen from the library as that doesn't fix it.

https://community.particle.io/t/delay-timer-in-function-without-delaying-main-loop/23789/2
Write code like this to check the system nanosecond time.... only flip to new buffer a few ms after completing GFX updates to buffer.

hi @mrfaptastic how to know GFX done updates to buffer?

possible to expose one callback for LAT timing? not sure lat or oe

nope. some callback on latch won't solve your issue

re-write your sketch to use its own pixel buffer and when finished then iterate through every row and column and write to the dma matrix

I've replaced the double buffer example with a better one, and we've made a change to the library and got rid of the 'showDMABuffer' function.
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/tree/master/examples/SmoothDoubleBuffer
Not sure if it'll help

authors: mrfaptastic tsctrl vortigont


text:
fix(highlight): remove previous highlights before applying new ones

Resolves #10

Just failing on Stylua, please reformat as shown, then I'll merge:


text:
fix(completion): no space after cursor

https://github.com/mrjosh/helm-ls/issues/118

PR Reviewer Guide 🔍
Here are some key observations to aid the review process:

🎫 Ticket compliance analysis ✅
118 - Fully compliant
Fully compliant requirements:

Consistent autocompletion behavior for .Values.

Not compliant requirements:

None

⏱ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review
Code RefactoringThe refactoring in NestedNodeAtPositionForCompletion might affect existing functionalities. Ensure that the changes do not introduce regressions or alter the expected behavior of the method.
Error HandlingThe new error message in GetTemplateContext includes the point range, which is more informative. However, ensure that this change aligns with the overall error handling strategy and does not expose sensitive data.

authors: CodiumAI-Agent qvalentin

repo: mrjosh/helm-ls


text:
fix rendering of only top half filled sections

For old versions (before 1.13 "The Flattening") sections that contain only data in upper half are not rendered anymore.
Fix is just to check all Blocks in that Section to judge if it contains data (not lower half) . . .
( fixes #280 )

GitHub has changed windows-latest to "Windows Server 2022".

repo: mrkite/minutor


text:
Nowe telewizje do wtyczki Mrknow !!!

Propozycja Nowych telewizji do wtyczki Mrknow:
http://www.amigostv.eu/
http://seb-tv.pl/#

Super pomysl !!!
jebac platna premium telewizjade !!!

http://www.kreskowkazone.pl/ MrKnow poprosze o to - tutaj jest mnóstwo dla dzieci :) Masza Rulzzz

@plumers sasiedzi rules!!! :100: %

Fajna strona,jestem tez za dodaniem do wtyczki

Wersja 2016.05.28.1
- nowa telewizja amigos.tv
Kreskówka - w tym tygodniu

Super dzieci beda mieli co ogladac :)

Na amigos tv cos malo kanalow
Warto dodawac?

Widze ze amigos juz dodane

dodałem - to 15 minut roboty. Bajki dodam w sobotę (taki mam przynajmniej plan)

A dalo by rade dodac
http://www.kreskoweczki.pl
Jest na sd-xbmc ale mi cos niedziala a jest tam duzo bajek dla dzieci

http://pol-xtv.blogspot.com z okazji dnia dziecka niebawem :) pozdrawiam - jest więcej ale wolałbym MrKnow pisać do ciebie na Priv a za bardzo nie mam jak :) wtedy tylko byś dodawał nazwy np TV ONLINE 1  - a link nie byłby aż tak widoczny dla innych , dłużnej pośmiga  - pozdrawiam
TVN player dalej ciężko z kodowaniem ?? :)

@plumers super pomysl

http://www.kreskowki.tv
http://mytvlive.me/   cos tam działa  :) pozdrawiam
kiedy telewizja live com tutaj smiga najwiecej :) ??

http://telewizja-online.pl

pozdrowienia dla plumers!
http://telewizja-online.pl/
http://telewizja-live.com/
http://tvzafree.pl/

MrKnow  kreskówki nie działa połowa , bo trzeba się zalogować na konto - jeśli możesz dodaj tę opcję w USTAWIENIACH pozdrawiam  :)

http://canlitvxl.blogspot.com/p/free-polska-vlc-tv.html --- śmiga :) pozdro

@plumers - dzisiaj postaram się aby wszystko tam działało. Zabieram się do roboty ...

looknij.in - też dodam ale do wtyczki  MrknowTV

Mam taka propozycje moze na youtube masz jakies konto gdzie mozna cos czasami napisac zapytac ,bo to bylo trudno znalesc i jakos malo widoczne to forum?

A wiec tak jakas aktualizacja byla wlasnie ? Mam pytanie czy na mrknow tv zeby cos obejrzec trzeba miecz premium wykupione zeby cos ogladac czy wystarczy zalozyc konto w tych serwisach z tv ?  Myslalem ze sie cos zmieni po aktualizacji tej zwyklej mrknow ale dalej nic nie idzie! Niewiem co jest przyczyna czy box czy moze cos innego --- wtyczka jest pozatym super dzieki , kawal dobrej roboty  .

Mrknowtv musisz miec premium konta do tych serwisow

Oczywiscie konto premium do serwisu ktory chcesz ogladac nie do mrknowtv
Mrknowtv jest za darmo

Znow pisze sory ale dziwnie to napisales dobrze rozumiem musze miec wykupione premium i loguje sie wtedy z haslem na mrknow takim jak w serwisie?  A jaka jest mozliwosc ze na zwyklym mr know bedzie cos dzialac bo niestety naczytalem sie ze jest to nielegalne jak komus zaplacisz za ogladanie takiego serwisu, a co innego jak ogladasz takie darmowe!

Glupot sie naczytales ogladanie TV online jest legalne nie wazne czy zaplaciles czy nie
Nie legalne jest streamowanie tv

borys76 uświadomię Cię - jeżeli płacisz za oglądanie TV - premium - to jesteś współsprawcą kradzieży sygnału --- poczytaj :) oglądanie streamu nie jest złem ale płacenie już tak :) ok MR czekam pozdro

Dalej twierdze ze ogladanie jest legalne night  nie slyszalem zeby kogos ukarali za ogladanie

Plumers dokladnie masz racje pytalem sie kumpla ktory mial rozprawe za to doszli po tym ze zaplacil mieli w sadzie wszystko jego dane z konta i komu co zaplacil a tego serwisu juz niema. Kara 5 tysiecy.

Dlatego wlasnie wole wtyczki darmowe

Pokazcie mi jeden artykul ze kogos ukarali za ogladanie.
Ogladanie nielegalnej tv online jest legalne

Ogladanie nielegalnej tv online jest legalne - przeczytaj co napisałeś i się zastanów.
Poszukaj w internecie - porada prawna u radcy 50zł ... lepiej wiedzieć niż potem siedzieć ... nieznajomość prawa nie zwalnia z jego przestrzegania -- koniec tematu bo tutaj jest NOWE WTYCZKI a nie NOWE PORZĄDKI z PITBULLA :)

http://pol-xtv.blogspot.com
Jak mozesz to wrzuc ta telewizja darmowa smiga super.
Te co sa aktualnie tylko wizja czasem chodzi.

http://pol-xtv.blogspot.com
Jak mozesz to wrzuc ta telewizja darmowa smiga super.
Te co sa aktualnie tylko wizja czasem chodzi.

http://pol-xtv.blogspot.com
Jak mozesz to wrzuc ta telewizja darmowa smiga super.
Te co sa aktualnie tylko wizja czasem chodzi.

http://pol-xtv.blogspot.com
Jak mozesz to wrzuc ta telewizja darmowa smiga super.
Te co sa aktualnie tylko wizja czasem chodzi.

http://pol-xtv.blogspot.com
Jak mozesz to wrzuc ta telewizja darmowa smiga super.
Te co sa aktualnie tylko wizja czasem chodzi.

http://pol-xtv.blogspot.com
Ta telewizja smiga jak mozesz to dodaj bo tylko Wizja z darmowych czasem chodzi. Dzieki

http://pol-xtv.blogspot.com
Ta telewizja smiga jak mozesz to dodaj bo tylko Wizja z darmowych czasem chodzi. Dzieki

koladka nie spamuj....z uwagi na to ,że wiecej tutaj dzieci niż normalnych userów darmowe strony z tv online szukajcie sobie już sami ---- pozdrawiam i THX MR za wkład włożony.... nikt prawie nie daje Ci na dotacje -- robisz to za free ale ten wolny czas trzeba jakoś znaleźć kosztem czegoś a jakby parę złotówek wpadło , to by wypełniło tę lukę ... pozdrawiammmmmmmmmmmmmmmmmm

authors: Crisever borys76 koladka lluuppoo mrknow plumers xxcriticxx

repo: mrknow/filmkodi


text:
Finish portfolio logic

[x] Add transactions form modal
[x] Tx Calculation logic

Most functionality complete, next todo

New portfolios functionality
Calculate profit/loss etc.

repo: mrmendoza-dev/cryptotracker


text:
TypeError: ast.remove is not a function

Environment

VSCode Version: 1.18.1
OS Version: macOS 10.13.1

Actual behavior
An error that occurs when "eof-newline": false.
Expected behavior
...
Steps to reproduce
...
Config
// Paste your configuration here.

Hello, @PleaseDont,
This is a bug of CSSComb. We use latest version of CSSComb and it can be reproduced with CSSComb as CLI. You can create issue in the CSSComb repository and after bump CSSComb version I'll update my plugin 👍

@mrmlnc thx

Fix is already pull requested: https://github.com/csscomb/csscomb.js/pull/552
Just waiting for it to be merged in...

authors: PleaseDont mrmlnc ryanbowden

repo: mrmlnc/vscode-csscomb


text:
Some optimisations in pom.xml

Set to use a different compiler configuration via execution directive when compile test source code, thus enables the source code remains in Java 1.6 compatible while test source is in Java 1.8 compatible.
Credit goes to: http://stackoverflow.com/questions/1213897/different-maven-compiler-versions-for-test-and-main
A new profile is added for handy activation/deactivation of the test goals.

Thanks a lot!

authors: jackygurui mrniko

repo: mrniko/redisson


text:
🐛 Tap to Focus Doesn't work on Android

What's happening?
Whenever I try to call focus function  I get the following error message in the catch statement "session/camera-not-ready: [session/camera-not-ready] The Camera is not ready yet! Wait for the onInitialized() callback!]" . Although Camera is ready onInitialized is actually triggered
Reproduceable Code
const device = useCameraDevice('back');
....
    const touchToFocus = async (event) => {
        if (!device.supportsFocus || !isCameraFocusReady.current) return;
        let point = {
            x: Math.round(event.pageX - camLocation.x),
            y: Math.round(event.pageY - camLocation.y)
        };
        try {
            isCameraFocusReady.current = false;
            await cameraRef?.current?.focus(point);
            setTimeout(() => {
                isCameraFocusReady.current = true;
            }, 200);
        } catch (error) {
            console.log(error)
        }
    };
.....
    <Camera
      format={format}
      isActive={!paused}
      photo={true}
      orientation={'portrait'}
      focusable={true}
      ref={cameraRef}
      enableHighQualityPhotos={true}
      fps={fps}
      preset='photo'
      enableZoomGesture={true}
      onLayout={handleCameraLayout}
      device={device}
      zoom={device.neutralZoom}
      style={{ flex: 1 }}
       onTouchEnd={(x) => touchToFocus(x.nativeEvent)}
     />

Relevant log output
session/camera-not-ready: [session/camera-not-ready] The Camera is not ready yet! Wait for the onInitialized() callback!]

Camera Device
{"sensorOrientation":
"landscape-right",
"hardwareLevel": "full",
"maxZoom": 8,
"minZoom":1,
"supportsLowLightBoost":false,
"neutralZoom":1,
"physicalDevices":["wide-angle-camera"],
"supportsFocus":true,
"supportsRawCapture" true,
"isMultiCam":false,
"name":"BACK(0)",
"hasFlash" true,
"has Torch" true,
"position":"back",
"id":"0"}

Device
OnePlus 5T, Android version 10
VisionCamera Version
3.6.11
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information

[X] I am using Expo
[ ] I have enabled Frame Processors (react-native-worklets-core)
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

I am having the same issue.

Same issue, works fine on ios

Has someone found any solution for this?

Here is the the answer from @mrousavy in another issue: #2003

Yea - duplicate of https://github.com/mrousavy/react-native-vision-camera/issues/2003.

authors: M4Tdev NuraQ karel-suchomel-ed mrousavy nemmtor

repo: mrousavy/react-native-vision-camera


text:
💭 Correct way to chain frame processors?

Question
I have the output from rn-fast-tflite. What is the correct way to send the data to the next (custom) frame processor? If I do the below, it causes a 4+ second delay even without any code in the filterDetections plugin. If I try to send 'output' from tflite directly I get an unsupported type error.
What I tried
export function filterDetections(frame: Frame, data) {
  'worklet'
  if (plugin == null) {
    throw new Error('Failed to load Frame Processor Plugin!')
  }
  return plugin.call(frame, data)
}

  const frameProcessor = useFrameProcessor(
    (frame) => {
      'worklet'
      if (model.state !== 'loaded') {
        return
      }
        const resized = resize(frame, {
          scale: {
            width: inputSize,
            height: inputSize,
          },
          pixelFormat: 'rgb',
          dataType: dataType,
        })
        const output = model.model.runSync([resized])

        const filteredDetections = filterDetections(frame, { boxes: output[1], masks: output[2] })
    },
    [model]
  )

VisionCamera Version
beta 6
Additional information

[X] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

You could parallelize it using runAsync

authors: jslok mrousavy


text:
How to add location exif data to photo❓

Question
Hi,
We are currently using the react-native-camera library and are planning/hoping to replace it with this.
In react-native-camera it is possible to add the location to the photo exif data (see for example this https://github.com/react-native-camera/react-native-camera/pull/2573#issuecomment-575427945). This is something we need for our usage.
Is that possible to do also in react-native-vision-camera? If so, how can I achieve it?
Many thanks!
What I tried
No response
VisionCamera Version
2.12.0
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

Hi! Take a look at the PhotoFile's metadata property. Just run the example to find out how it looks on iOS/Android

Hi @mrousavy! Thanks for the quick reply.
I already saw that property, but it looks like this is a read-only property containing the information that is in the photo when it is taken. Unless I am misstaken?
Location data is not automatically included in photos (at least for iOS, they strip it for privacy reasobs), so it wouldn't be included  in the exif meta data.
To have it included, it has to be added manually in one's own app code. In react-native-camera this is done with the writeExif prop as shown in the issue I linked above.
Is there some similar functionality in this lib? Or am I perhaps misunderstanding this and it already exists?

Hey @jaltin, no I am not doing this in VisionCamera yet.
I'm also not quite sure if this should be handled by VisionCamera, I will think about it. Either VisionCamera has a prop for this, or provides an easy API to access Exif data so you can write location yourself.

@mrousavy, in my opinion a good approach would be for this package to allow writing of the location exif data into the image (similar to how react-native-camera does in my link in the initial post).
This package should not be concerned with the location access requests that are needed before an app can get the location data from the os, as this is rather complicated and can take many different paths, and depends on each individual apps needs. It would be messy to maintain that logic here.
It would be great if you would this functionality, as at the moment that is blocking us from migrating over from react-native-camera. I suspect that it would be a functionality many others would benefit from too.
Thanks!

Sure. As a workaround you could write to the File directly, I believe there are Exif writers.

Hi @mrousavy
Any update for this?

Hi, no

Hi @mrousavy, to follow up on your last comment.

Hi, no

Do you have any idea/guesstimate of if/when you would add exif write possibility? Asking so I can have a realistic view of what my alternatatives are going forward.

Hi @jaltin. VisionCamera is a project I maintain for free for other people in my very limited free time, and it's hard to support features that I personally do not use myself, so features I would build entirely for other people, in my free time, for free.
VisionCamera is used in a lot of production apps out there, and I use it in ~4 different apps already (1 is mine, 3 are clients of Margelo).
Since this feature is quite complex and the immediate solution we discussed above (prop to include location data) should not be part of VisionCamera in my opinion, I do not have any plans to support those props in takePhoto(). In my opinion, this just makes everything messy and eventually we will end up like react-native-camera where everything is deprecated and it barely works and isn't maintainable anymore. I have a different philosophy with my libraries; everything should stay as lean as possible. Just like react-native core.
I did however make some experiments with an Image HostObject library (react-native-jsi-image) which will allow you to do any modifications in-memory, that will be separate from VisionCamera, will be very lean and extremely extensible (again, separate libs, different goals, but interoperability and extensibility is a core motivator).
So in short; I will not implement this feature now unless someone pays me to do so, but I will do further experiments with the Image HostObject lib I created and we will potentially have an even better solution to in-memory writing than we had with react-native-camera.

@jaltin did you found a way to add gps location to write exif into image before saving it to camera roll or another path?
i am using react-native-image-picker lib and there is also the same problem when you taking photo there is no gps location in the exif metadata..
did you found a solution?

@jaltin did you found a way to add gps location to write exif into image before saving it to camera roll or another path? i am using react-native-image-picker lib and there is also the same problem when you taking photo there is no gps location in the exif metadata..
did you found a solution?

@alexg-93 No I haven't done any further work on this yet, been busy with other things. If/when I look into it I will share my findings here.

So in short; I will not implement this feature now unless someone pays me to do so, but I will do further experiments with the Image HostObject lib I created and we will potentially have an even better solution to in-memory writing than we had with react-native-camera.

@mrousavy Thanks a lot for clarifying your position and philosophy on this, it makes it much clearer.
Cheers!

I'm also interested in the requested feature. @mrousavy, how much do you want to build the feature? @jaltin, @Pakile, @alexg-93 - are you also interested in contributing? Let's get it built.

I'm not sure how long it would take to implement the feature, and I'm not sure how I want the feature to be implemented.
Location Data could be written in a separate library, since all the Camera specific stuff is already being written in VisionCamera, I'd have to take a look at performance.
I'd love to take a look at this issue through my app development agency with our discounted open-source consulting rate, since my free time at the moment is very unpredictable and I don't want to waste any money here.
What size of financial contributions are you guys thinking?

@mrousavy I concur. Writing location data via the library seems to be outside of the project scope. What I'm suggesting is allowing the user to pass a prop that maps to location metadata the same way you're passing additional props:
this.camera.current.takePhoto({
  ...options,
  location: {
    latitude: '',
    longitude: '',
  }
});

this.camera.current.startRecording({
  ...options,
  location: {
    latitude: '',
    longitude: '',
  }
})

Thoughts?

Hi @mrousavy and @elirichey,
Sorry for my late response on this.
We are having to replace react-native-camera since it is deprecated (as is the case for many other users I suspect). As that repo suggested, we looked at this repo as an alternative and that is where we started to evaluate what was missing and if it is feasible to make the switch.
The location exif data is one of the blockers for us. And in principle we would be willing to co-sponsor work to get it implemented.
However, at the moment we feel that there are too many outstanding issues in this repo and too little activity for us to feel comfortable in attempting the switch.
Don't take me wrong here, we really appreciate the effort by @mrousavy with this package, but we just don't feel that it is mature enough for us to try the switch yet.
I'll leave this issue open as it is still a relevant feature request, but feel free to close it if that is more suitable.

@elirichey I finally got a solution that uses base64 and an external lib to write the location to the image

@elirichey I finally got a solution that uses base64 and an external lib to write the location to the image

@Pakile Awesome! Mind sharing the solution?

@elirichey after taking the image, I get the base64 of the image and use piexifjs to write the location to the picture. it works but is not the most optimal method

@Pakile If it works, it works! Thanks for sharing!

expo-camera does this by exposing an additionalExif option when taking photo like this:
const { coords, timestamp } = location
const picture = await cameraRef.current.takePictureAsync({
  exif: true,
  additionalExif: {
    GPSLatitude: coords.latitude,
    GPSLongitude: coords.longitude,
    GPSAltitude: coords.altitude,
    GPSSpeed: coords.speed,
    GPSTimeStamp: timestamp,
    UserComment: 'blah blah'
  },
})

Where location is the object from expo-location (or some other library). Not sure how hard is this to implement to this library 😄

@elirichey @Pakile: I'm trying to write the GPS data with piexifjs, but having trouble — if you could share a code sample it would be much appreciated.

VisionCamera is not a location library and will not support that, you can add that later on with an EXIF lib

Hey all, I noticed an example never got posted so I wanted to share how we are doing this in our app.
https://gist.github.com/glisom/5889b8fb52352d46278694d8ea83b268

@glisom the issue with piexifjs is that the entire image blob traverses the bridge twice:

tje first time to read it into javascript space
the second time to write it back (with exif tags added) into native storage

although less than ideal, it's probably the only way at the moment

Yeah, I think the only way to avoid would be a native module. Interesting there isn't an exif library already out there for react native specifically.

We have started to implement a native module solution as an open-source package here:
https://github.com/inaturalist/react-native-exif-reader
The package allows reading and writing of EXIF data.
Our main specific use-case is to take photo with vision-camera and write location into the EXIF data.

@mrousavy been using expo-camera but we came to a point where we need to switch to this package for performance and other needs. I've created a native Exif reader/writer to fix the only blocking feature of this package here:
https://github.com/lodev09/react-native-exify
Hoping this helps other people as well.
PS: not to overshadow @jtklein here but we needed a way to write exif to a local file image and not into an asset/camera roll image 🙏

@lodev09 nice work man! That library is really useful, I might use it for ShadowLens.
On another note, I think I'll add location tags to VisionCamera though after a lot of consideration. I'll do that in V4

Thanks @mrousavy! That would be awesome. We'll be using this lib until then. It has been a fun journey learning native ios/android this past few days ✨

Working on a PR for GPS Location here: https://github.com/mrousavy/react-native-vision-camera/pull/2665 :)
Pretty complicated on iOS, but I got it running! 😅

Working on a PR for GPS Location here: #2665 :)
Pretty complicated on iOS, but I got it running! 😅

Thanks for your dedication @mrousavy. I'm trying to access the output of location in the ['EXIF'] prop in photoFile interface, but I can't access it this way. Could you tell me how to access the location data, please?

hi @mrousavy  i   and trying to set the locationtags in my camera but i am getting this  error _NativeCameraModule.CameraModule.getLocationPermissionStatus is not a function (it is undefined)  any idea??

authors: Arun1989ninja Pakile alexg-93 elirichey f3rnandorj glisom jaltin jbrodriguez jtklein lodev09 mrousavy stevengoldberg


text:
Any reason for changing the syntax adding a space?

I'm wondering if there's a rationale for adding the space after the exclamation mark.

"!" serves as the keyword for omnibox (address bar of browser). This is how the browser knows that it has to pass the search term to the extension instead of going with default search. And, the keyword must be followed by space in order for this to work.
Also, I cannot associate multiple keywords like "!yt", "!mdn", "!ddg" with a single extension.

Ah, I see. That's pretty clever actually, even if I have to change my habits :D

authors: marcelklehr mrpandey

repo: mrpandey/omnibang


text:
compute_val_loss parser action to store_true

Either the argument should be named "--no-val-loss" or something like this and have a store_false action, or be named "--compute-val-loss" and have a store_true action. Second option is more coherent with the fact that providing a validation set is optional.
See this issue

Thank you! But could you change the PR to pull to fizyr/keras-retinanet? :P

@hgaiser oopsie, my bad, I change this

authors: hgaiser mrtgenet

repo: mrtgenet/keras-retinanet


text:
Voices gets lower when text contain "--"

Some quests text contain "--" as a separator. I believe the AI interpret this as the voice should be lowered, which results in the NPC whispering the longer the conversation goes.

Thanks for reporting this. I'm taking this into account and have inserted it into my plans as something to solve.

authors: anderskruger mrthinger

repo: mrthinger/wow-voiceover

license: Unlicense


text:
BooleanField filter as a dropdown too

BooleanField are not shown as a dropdown.
Am I doing wrong ?
my model :
visible = models.BooleanField(blank=True, null=True)
my admin :
list_filter = [ ('visible', DropdownFilter),]

Currently the filter appears only when there are more than 3 choices:
https://github.com/mrts/django-admin-list-filter-dropdown/blob/master/django_admin_listfilter_dropdown/templates/django_admin_listfilter_dropdown/dropdown_filter.html#L5
So, you are not doing anything wrong, this is intended behaviour.

authors: moccand mrts

repo: mrts/django-admin-list-filter-dropdown


text:
🛑 Student Information System is down

In 574a649, Student Information System (https://filemaker.oca.ac.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Student Information System is back up in 83e47ad.

repo: mrvinceo/ocaUptime


text:
CNN dataset and traning

can u send the link of characters dataset for training CNN  and also commands used to train it

I am sorry. I lost it. But i guess you can find a lot of them on google.
Just search for vietnamese license plate dataset.
On Sun, Jun 4, 2023, 15:14 janice fernandes @.***>
wrote:

can u send the link of characters dataset for training CNN and also
commands used to train it
—
Reply to this email directly, view it on GitHub
https://github.com/mrzaizai2k/License-Plate-Recognition-YOLOv7-and-CNN/issues/6,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJYP3LYEHU4WFAOO75ET65LXJQ7XTANCNFSM6AAAAAAYZZKQJQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>


text:
Does this body of work consider SharePoint ACLs?

Hi there team!
I couldn't find a reference in the codebase here that considers SharePoint File ACLs. Authorization, users, groups, and the object model in SharePoint We have multiple customers wanting to use this workaround; however, we need to ensure that when a User logs on to use the Chat interface, they are not seeing content from files they are not supposed to have access to.
Please advise.
Thanks!

@sethsteenken see above when you get a chance. Hit me up for details. Thanks!

Hey @jharbieh-microsoft - currently this solution does not support the ACLs from Sharepoint. It will monitor a given List in Sharepoint and have documents and pages in that list indexed into Azure AI Search. It is assumed users searching against that index are able to view and search those items.
The ACLs create very tricky barriers when attempting to filter results from AI Search. There may be options around storing a form of ACLs on the individual indexed items and then filtering on those per search, but that's a complexity that may be outside the scope of this project. I would LOVE to explore that path, but it's not something that's being pursued here.

Thank you for the clarification on this item. I agree. How to comply with SharePoint ACLs when the File/Object has left the building. Thanks @sethsteenken

authors: jharbieh-microsoft sethsteenken


text:
unable to use 2 way data binding

hi,
i know 2 way data binding is not a great idea but still your plugin does not work with it - angulars change detections is always one action behind real value.
ill provide a plunker in few hours

Oh, thanks for the bug report. I was able to reproduce it, actually. I'll see if I can fix it.

hey,
sorry i didnt provide plunkr, didnt find time. im happy to work on the fix and provide it as pull request if your willing to share .ts sources

Sure, the Angular 2 integration source code is here, specifically, this file.
I should probably add a direct link to the source code along with the installation instructions :)
By the way, I think I'm getting close to a fix. Here's what I have so far (work in progress):
import {
  conformToMask,
  convertMaskToPlaceholder,
  adjustCaretPosition
} from '../../../core/src/index'

import {Directive, ElementRef, Input, EventEmitter, Output} from 'angular2/core'
// import {NgModel} from 'angular2/common';

@Directive({
  selector: 'input[text-mask]',
  host: {
    // '(input)': 'change($event.target.value)'
    '(input)': 'ngModelChange.emit(conformToMask($event.target.value))',
  }
})
export default class MaskedInput {
  private inputElement: HTMLInputElement
  private previousValue = ''
  private conformToMaskResults = {output: ''}
  private currentCaretPosition: number = null

  @Input('text-mask') textMaskConfig = {mask: ''}

  @Input() ngModel: any
  @Output() ngModelChange = new EventEmitter()

  constructor(el: ElementRef) {
    this.inputElement = el.nativeElement
  }

  change(value) {
    console.time('foo')
    this.ngModelChange.emit(this.conformToMask(value))
    console.timeEnd('foo')
  }

  ngOnInit() {
    this.ngModelChange.subscribe(this.adjustCaretPosition.bind(this))
  }

  conformToMask(userInput = '') {
    this.conformToMaskResults = conformToMask(userInput, this.textMaskConfig.mask)
    this.currentCaretPosition = this.inputElement.selectionStart

    return this.conformToMaskResults.output
  }

  adjustCaretPosition() {
    console.time('adjustCaretPosition')
    const caretPosition = adjustCaretPosition({
      previousInput: this.previousValue,
      conformToMaskResults: this.conformToMaskResults,
      currentCaretPosition: this.currentCaretPosition
    })

    this.previousValue = (
      this.conformToMaskResults.output ||
      this.previousValue
    )

    this.inputElement.setSelectionRange(caretPosition, caretPosition)
    console.timeEnd('adjustCaretPosition')
  }
}

export {
  conformToMask,
  convertMaskToPlaceholder,
  adjustCaretPosition
} from '../../../core/src/index'

The problem that I'm trying to solve now is that the old value flashes in the input before it gets updated.

@papajuras I fixed the issue and published an update to npm. There's a breaking change in the API. text-mask attribute has been renamed to textMask. (Not sure if Angular 2 normalizes these names)
Anyway, the fix turned out to be different from the code I posted above. You can see it in the PR.
Again, thanks for reporting this bug!

authors: msafi papajuras

repo: msafi/text-mask


text:
🛑 Do53 Roost IPv6 TCP is down

In 694e115, Do53 Roost IPv6 TCP (http://107.189.10.142:9205) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Do53 Roost IPv6 TCP is back up in 8776af5 after 18 minutes.

repo: mschirrmeister/upptime-loopx


text:
add required field validation in mdl select

i needed that the select field stay marked as obrigatory when the user still not have any value added, i did the changes and added an exemple on a demo version.

Coverage increased (+0.03%) to 96.277% when pulling 550397f875f47b514233017839a371199e236e9e on aluis0608:select-required-validate into 0b8f55939e2e84886e5eeebcd553473a400c25be on mseemann:master.


text:
how to syu without dying?

How to update repos when msys2 runtime must update?

Does it not work?

well Syu kills the runtime... then the docker shuts down... no?

authors: Kreijstal lazka


text:
No upload into the Duplicate folder

Hi there,
I succeded in running the script, but unfortunately this does not move the duplicates into the Album created, so I cannot remove the files.
Any idea to fix?
Thank you!

same here.
only folder got created.

This was a side project I unfortunately did not have time to finish. Apologies for the confusion, I have updated the README: https://github.com/mtalcott/google-photos-deduper-python/commit/958bbacefc2b7293138a1317832b33854c2e7d67

authors: mtalcott sid8840 wynstep

repo: mtalcott/google-photos-deduper-python


text:
🛑 mtbn.fr is down

In 6304ef1, mtbn.fr (https://mtbn.fr) was down:

HTTP code: 503
Response time: 1979 ms

Resolved: mtbn.fr is back up in 9c209fd.

repo: mtauban/parcelle-uptime


text:
🛑 https://detulkarm.edu.ps is down

In 6525de1, https://detulkarm.edu.ps (https://detulkarm.edu.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://detulkarm.edu.ps is back up in 5e84668.

repo: mtitservice/site


text:
🛑 https://www.pncecs.plo.ps is down

In ae9ec5a, https://www.pncecs.plo.ps (https://www.pncecs.plo.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://www.pncecs.plo.ps is back up in 531ac81.


text:
🛑 https://minfo.ps is down

In 2223c98, https://minfo.ps (https://minfo.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://minfo.ps is back up in 4c4f911.


text:
🛑 https://911.ps is down

In a5329d7, https://911.ps (https://911.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://911.ps is back up in 68d9da1.


text:
🛑 https://palpro.ps is down

In 70a8f64, https://palpro.ps (https://palpro.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://palpro.ps is back up in 7a94a03.


text:
🛑 https://gcc2.mtit.pna.ps is down

In 12cc86f, https://gcc2.mtit.pna.ps (https://gcc2.mtit.pna.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://gcc2.mtit.pna.ps is back up in 4fc7f1d.


text:
🛑 https://mtit.pna.ps is down

In f0c069d, https://mtit.pna.ps (https://mtit.pna.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://mtit.pna.ps is back up in 231f47d.


text:
Ability to create a connection without database name (cross-database query)

Is your feature request related to a problem? Please describe.
Explicit title: As we can't create a connection without a database name, we can't execute cross-database query
Use case: I have 20 databases on the same MySQL server. There's no workaround to run the same query 20 times, the only way is to create a connection for each database even if it's on the same server.
Describe the solution you'd like

Ability to create a connection without giving a database name
Ability to run a request without a given database name

Describe alternatives you've considered
No workaround is available for now except running the cross-database request using another software

Related to #727

When you connect to your MySQL server does the tree show all 20 databases, with the one you named in the connection being first, followed by the other 19 in alpha order?
When you run a SELECT in which you prefix the table name(s) with databasename. do you get the data from the expected place?

For now the workaround has been to create a connection using "mysql" as database name (config database) ... I'm able to see all databases afterwards

repo: mtxr/vscode-sqltools


text:
Ability to forward heartbeats to official wakatime api

This way both wakapi and official version can be used together at the same time.

Hi @alanhamlett, thanks for that feature request. Great idea! I'm definitely going to add something like a "Wakatime proxy" soon.
Apart from that, also thanks a lot for your efforts on Wakatime and the open-source clients! :wink:

authors: alanhamlett muety

repo: muety/wakapi


text:
Tab key does not focus controls in date picker

Environment

Tech
Version

@material-ui/pickers
3.0.0

material-ui
4.0.0

React
16.8.6

Browser
Chrome 74

Peer library
date-fns 2.0.0-alpha.27

Steps to reproduce

Open a datepicker on the demo page (https://material-ui-pickers.dev/demo/datetime-picker)
Press the tab key

Expected behavior
The tab key should move between the toolbar controls and days of the month, like in version 2 of material-ui-pickers.
Actual behavior
The tab key does not seem to focus anything.
Live example
https://material-ui-pickers.dev/demo/datetime-picker

Another keyboard issue- pressing Enter on the input does not open the picker (does not open the modal or inline picker on the demo page). This is seemingly also a regression since version 2.
Optimally the picker should be able to open, select a date, select a time, and close using only the keyboard so that it is accessible to keyboard-only and screenreader users.

Ideally for accessibility is to use only keyboard mode. And even make aria-hidden on open picker button.
We will fix not focusing, but also I suppose I will make a guide of accessibility’s

Thanks, I'll try using the keyboard picker and set aria-hidden on the input adornment.
It'd be great if tab could focus the hour & minute options for the time picker as well- is there anything against that or it is just low priority?

Will be fixed in nearest release

Hi @dmtrKovalenko, we have a use-case where it's not feasible to display a text input. Our application allows for user-specified formatted dates (e.g. YYYY-mm-DD, MMM dd, YYYY, etc.) to be used on every page, and currently this library does not support arbitrary masks for inputs. Additionally, we have controls where from a UX perspective it only makes sense to open a date picker instead of a text input.
Keyboard accessibility for the picker is a must-have, and text inputs don't fill every scenario.

In the latest release, tabbing now moves between controls, though the Enter key is not captured in the datepicker, only pressing Space. Is that expected?

I would expect both Enter and Space, when focused in the input, to open the dialog.

authors: bjm904 dmtrKovalenko justisb repl-sean-heintz

repo: mui-org/material-ui-pickers


text:
When will be available v4 for date pickers ? not a alpha version

When will be available v4 for date pickers ? not a alpha version

As long as it takes to handle the breaking identified. Likely between 6 and 12 months. Autocomplete would have been 16 months in unstable state for instance. It didn't stop it to gain massive adoption.


text:
TextField multiline duplicate text with Japanese Character in IOS cordova app

[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
With japanese character can input normally, not duplicate when having newline.
Current Behavior

Input in textfield with Japanese character, when enough character, textfield will have  a new line
It will have duplicate all text which i inputted.
NOTE:
That issue only happens with Japanese Character, not  English Character.
That issue only happens in IOS, not in Android.

Steps to Reproduce (for bugs)

Input Japanese util having newline
2.In Textfield will have duplicate text

<TextField>
underlineShow={false}
            fullWidth
            multiLine
            rowsMax={4}
</TextField>

Your Environment

Tech
Version

Material-UI
0.19.4

React
15.6.2

ios
IOS 11

cordova
6.5

Please help me to check that issues, I guess problem come from TextField have the function to increase newline automatically.
Thanks!!!!

We have the similar issue for English characters at Android device. It is reproducible both at android and cordova.
Material UI version is 0.20

It looks like it is connected to this PR: https://github.com/mui-org/material-ui/pull/7006
After I commented input.setSelectionRange(cursorPosition, cursorPosition); it is not reproducible anymore.

Here is an example of issue:

We have been porting the component on the v1-beta branch. We have reimplemented it from the ground-up.
We encourage people starting with Material-UI to go with v1-beta. The master branch is in a low maintenance mode. We don't plan any work on it. However, we still do our best to review and merge pull requests that fix bugs on this branch.

repo: mui-org/material-ui


text:
Docs: wrong anchor link used for CSS API

Basically, all the components have links to the CSS API for the component, where the anchor part is #css-api. This doesn't correlate with the actual anchor link, whose name is #css.

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Steps to Reproduce 🕹

Go to https://material-ui.com/api/input/
Press the highlighted "CSS API" link in the classes prop
Observe that nothing happens, except the url changing to https://material-ui.com/api/input/#css-api
Verify that the actual anchor is #css by clicking the CSS title further down on the page.

@fatso83 This bug was fixed in https://next.material-ui.com by #14554.

A bit confusing that something was fixed 2 weeks ago, but still present, but then I realized it means doc fixes are not back-ported. Which is fine, I just didn't understand it at first.

@fatso83 v3.9.2 might be the last release of v3. We are full steam on v4 now.


text:
Better typescript declaration of withWidth

Currently the typescript declaration of withWidth (from withWidth) does not seem to work well. The resulting type still has the WithWidthProps required.
How about aligning that to the declaration of withStyle? We don't need additional typing as with withStyle, so this should be fairly simple
export default function withWidth(options?: WithWidthOptions):
  <P>(component: React.ComponentType<P & WithWidthProps>) => React.ComponentClass<P>;

Your Environment

Tech
Version

Material-UI
1.0.0-beta.21

React
15.6.1

Typescript
2.5.3

I believe it is fixed via https://github.com/mui-org/material-ui/pull/9125, not yet released.

Yes you are right. Didn't search the PRs only the issues :-)

authors: stunaz thomasletsch


text:
[Slider] Update SliderClassKey types

Stop showing error for ts projects when adding thumbIcon and thumbIconWrapper classes, which does already have support.
https://material-ui.com/lab/api/slider/#css-api

👍

authors: guiihlopes oliviertassinari


text:
[Popover] Don't stick upon click with openOnHover prop

[x] I have followed (at least) the PR section of the contributing guide.

The upgrade fixes bugs and adds this prop to turn off.

Seems to work fine.

adds this prop to turn off.

There's no prop exposed to control this behavior?

There's no prop exposed to control this behavior?

Not currently but there could be. @vladmoroz

I wouldn't want to add a prop unless necessary—is there a typical design where it makes sense to keep it open on click?

I wouldn't want to add a prop unless necessary—is there a typical design where it makes sense to keep it open on click?

Back when I was developing tippy.js, the "stick" behavior was actually the requested default (awhile ago, 2019), and it wasn't configurable. I didn't hear of complaints. It's also the default in Floating UI now (working better with the recent fixes).

authors: atomiks michaldudak vladmoroz

repo: mui/base-ui


text:
Typography does not support color "success"

General summary
I would like to be able to set the color props for the Typography element to "success", this code does not color the text color
Current Behavior 😯
The Typography component does not have a color props with the "success" value
Expected Behavior 🤔
I would like to be able to set the color props to "success" and for this to work correctly
Steps to Reproduce 🕹

Create CRA with Typography with color = "success" props

Sandbox issue here
Context 🔦
I want to get the "success" text color of Typography in a short way without creating unnecessary entities
My Environment 🌎
  System:
    OS: Linux 5.4 Linux Mint 20.1 (Ulyssa)
  Binaries:
    Node: 14.18.0 - /usr/bin/node
    Yarn: 1.22.10 - /usr/bin/yarn
    npm: 6.14.15 - /usr/bin/npm
  Browsers:
    Chrome: 94.0.4606.81
    Firefox: 93.0

You can use any color in the theme using the system syntax. For example:
<Typography color="success.main" /> - https://codesandbox.io/s/black-wave-vj8xo Take a look at https://mui.com/system/palette/#color

I am closing this one because it is not a bug (we don't have any docs that mention about <Typography color="success" />

Yes, is not a bug, I just don't know about this, thank you for help my

It's a bit tricky. primary & secondary works without .main, but the other colors in the palette doesn't.

@RemyMachado I also think that this is not completely logical, but it still works, which means corrections are optional)

+1 for the non-essential improvement

It's a bit tricky. primary & secondary works without .main, but the other colors in the palette don't.
<Typography color="error" />  works without .main also. A default to .main may be desirable for info, warning, success, error. The expectation may come from the implementation of colors from the Bootstrap framework.

It is inconsistent with the icons, which has got me very frustrated today. I thought I wasn't using the API right, it got me wasting time experimenting with the MuiTheme before I figured out that Typography and Icons behave differently:

<Circle color="success" /> works :heavy_check_mark:
<Circle color="success.main" /> fails ❌
<Typography color="success" /> fails ❌
<Typography color="success.main" /> works :heavy_check_mark:

So while I agree it is non essential, it is kinda annoying.

I made a PR to fix this: #34444

I solved this issue by creating a helper function that concatenates the type and contrast values. Here is the code for the helper function:
const contrastColorsArray = ['main', 'light', 'dark', 'contrastText'];

export const typeColorsContrast = (type: string, contrast: string = 'main') => {
    // Check if contrast is a valid index or a string that matches a contrast color
    let contrastIndex = contrastColorsArray.indexOf(contrast);
    if (contrastIndex === -1) {
        // If the contrast is not found in the array, default to 'main'
        contrastIndex = 0;
    }

    return `${type}.${contrastColorsArray[contrastIndex]}`;
};

Usage
To use the helper function, you can apply the generated color to your Typography component like this:
const MyComponent = () => {
    const successColor = typeColorsContrast('success');

    return (
        <Typography color={successColor}>
            This is a success message.
        </Typography>
    );
};

Explanation
The typeColorsContrast function generates the appropriate color string by combining the type and contrast values.
This allows you to easily apply the "success" color to the Typography component without creating additional CSS classes.
Conclusion
This approach allows for a short and effective way to apply the "success" color to the Typography component. I hope this helps others facing the same issue.

I know this was closed years ago, but the docs to indeed say that using "success" is supported. https://mui.com/material-ui/api/typography/

authors: EtienneStn IgnatLomkov RemyMachado cleverocheck dsatfire dwanderton emlai mnajdova paulintrognon siriwatknp

repo: mui/material-ui


text:
If 'Select' component is expanded, I can't use scroll wheel.

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/reverent-kalam-il3sck
Steps:

Expend 'Select' component.
Try to move the scroll wheel. It's not working.
The problem here is that 'AutoComplete' component works well.

If I force to move, the expanded element is attached to screen.
And this can be understood in the video below.
https://user-images.githubusercontent.com/50368758/231832704-33b02aff-1529-4f30-a803-aa5cb0ca2ba7.mp4
Current behavior 😯
If 'Select' component is expanded, I can't use scroll wheel.
In this situation, if I force to move, the expanded element is attached to screen.
Expected behavior 🤔
The scroll wheel need to be movable even if the 'Select' component is extended.
It also has to stick with the input field.
Context 🔦
Just wanted to make it completely.
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Duplicate of #17353

authors: michaldudak mihilt


text:
[material-ui][Tabs] Improbe TabContext, TabList, and TabPanel documentation

The TabContext, TabList, and TabPanel are "mentioned" on the Tab docs in a single demo. These components could use more explanation.
It's also weird that it's so high up on the docs page but have no further explanation and are not mentioned again, this can be very confusing for users.
Issue comes from docs-feedback
Search keywords:

@samuelsycamore where are we storing docs-improvement issues?


text:
[Grid2] Rollout plan

Summary
We recently made Grid v2 stable, #43054 so now it's time to look at the rollout plan, effectively to get completely get rid of the old one.
A possible action plan:

[ ] 1. Update the h1 in https://next.mui.com/material-ui/react-grid/ to mention deprecated, so Google and Algolia search results are clear
[ ] 2. ~Reexport Grid v2 from @mui/system/Grid2 getting one step closer to move everyone imports from @mui/material to mui/system #40594~
[ ] 3. Migrate all the MUI codebase to the Grid v2
[ ] 4. Introduce a deprecation warning when using Grid v1 #42259
[ ] 5. In the next major swap the implementation for the Grid namespace, put the deprecated Grid v1 into the exported GridLegacy namespace and deprecate Grid2 imports
[ ] 6. In the major after that next major, remove Grid2 and GridLegacy.

Motivation
Simplicity

The plan looks good overall, @oliviertassinari 👌🏼
The only step I'm not sure of is:

Reexport Grid v2 from @mui/system/Grid2 getting one step closer to move everyone imports from @mui/material to mui/system

I don't know the long-term vision for the system package, and we need to solve that before setting the goal of moving everyone to import Grid from it. This is not the issue to discuss this. @aarongarciah and @colmtuite should probably lead the discussion.

@DiegoAndai Alright, I have removed that step.

I have tried to help a bit with step 3. in https://github.com/mui/mui-private/pull/685. I have struggled a bit, we could really improve the DX:

[ ] a. There is no clear warning when doing <Grid2 item>. It says:

I think we need a custom prop type instead, that clearly explain that this is a Grid v1 prop, that you can now remove the prop.

[ ] b. There is no clear warning when doing <Grid2 xs={12}>. The attribute gets silently applied to the DOM:

[ ] c. I got the impression that the migration guide was started but not finished: https://mui.com/material-ui/migration/migration-grid-v2/. I couldn't rely a lot on it. The problems I saw:

It doesn't talk about what to do with the xs, sm, etc. props.
It references older version of Material UI before newer ones, isn't the order inverted?
It doesn't have a full set of step to go from Grid to Grid2 when using Material UI v6
In https://mui.com/material-ui/migration/migration-grid-v2/#why-you-should-migrate we could list the value of not using negative margins: e.g. https://github.com/mui/mui-private/pull/685

authors: DiegoAndai oliviertassinari


text:
[Checkbox] Remove duplicated classes

Related to #34502

[x] I have followed (at least) the PR section of the contributing guide.

The PR is using this test #35143

We're discussing the implementation of the fix in #35136.

authors: iamxukai michaldudak


text:
On landing page, highlight that Toolpad is a pro-code tool now.

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
With Toolpad becoming pro-code now, we should highlight this new information through a visual in the hero section.
May be something like this can help:

(It is just an example for discussion, we can use better images)
More changes:

[ ] Show npx create toolpad app in the hero section, next to Get Started CTA.
[ ] Put email form out of hero section.
[ ] From usecases section, link docs section that shows showcase (3-5). Feature examples is something that we are keeping here: https://github.com/mui/mui-toolpad/tree/master/examples
[ ] gif update @prakhargupta1
[ ] change Alpha -> Beta

Examples 🌈
https://interval.com/
https://www.airplane.dev/
https://trigger.dev/

Design Draft 1

Please review the design draft — loom for contextual walkthrough; figma for specifics
@prakhargupta1 I had already done some exploration around the use cases by the time you updated your comment in #1445, so it's still included in here.
In figma, I added two types of sticky notes throughout:

yellow = notes from me about the design
red = content needed from others. @Janpot  I'm hoping you will be able to shed some light on the lingering questions around what are the most relevant examples/code snippets to show in the mockup.

Loom walkthrough
Figma

repo: mui/mui-toolpad


text:
DLB certificates issue after initial apply

Hi guys,
I encountered an issue where after successfully deploying a DLB with certificates, every subsequent terraform plan/apply will re-apply the ssl_endpoints settings despite no changes were made.
The following code reproduces the issue:
resource "anypoint_dlb" "dlb" {
  org_id = var.bg_id
  vpc_id = "vpc-XXXXXXXXXXXXX"
  name = "sample-dlb"
  state = "started"
  ip_whitelist = ["0.0.0.0/0"]
  http_mode = "off"
  tlsv1 = false
  ssl_endpoints {
    public_key_label = "tf-public-key-name"
    public_key = ""
    private_key_label = "tf-private-key-name"
    private_key = ""
    verify_client_mode = "off"
    mappings {
      input_uri = "{app}/"
      app_name = "{app}"
      app_uri = "/"
    }
  }
}

Additionally every subsequent plan/apply also detects a drift in state: ~ state                = "STARTED" -> "started". This one seems to be just a case-sensitive matter.

Can someone pick this up, please? I see that issue as major adoption obstacle for our customers?
Ramzi Choueri
MuleSoft

@soufi as discussed

Hi @ccortinhas-pmi,
This issue is related to the following issue on Terraform.
It is very tricky to handle list-type attributes diff. I'm trying to find a way where the DLB current structure wouldn't be affected. Any suggestions are welcome.

authors: RamziChoueri2903 ccortinhas-pmi soufi


text:
Update mongodb-connector-reference.adoc - FindDocuments Default value to retrieve the complete document

In Documentation, it wasn't mentioned what is the default value to retrieve the complete document.
Fields a| String | Comma-separated list of fields to return from each document. To retrieve full document use comma ",".|

Thanks @bharathChamala for your contribution!

authors: bharathChamala martinpaoloni

repo: mulesoft/docs-connectors


text:
KProducer add Header

Summary
Add an option to set Kafka message headers within the KProducer
Motivation
The Kafka messages in our system contain headers to specify the schema that should be used for deserialization. In order to test that behaviour we need to create such messages, but lack the option to set the header.
Describe alternatives you've considered
We checked if there is a way for our system to configure defaults for missing headers per Kafka topic, but only one default that is valid for all topics is supported by spring-kafka. Thus, this is not an option because we need to deserialize topics with different schemata.
Additional context

As we have refactored our Kafka handling, we no longer require this functionality

This issue is relevant again, @MaxRuenz and me would love to use that feature as the default spring producer writes headers regarding class information in case of multi schemas on the same topic.
The integration tests would need to mimic that producer behaviour, but can't do so currently.

authors: MaxRuenz romeoro

repo: munichbughunter/SevenFacette


text:
Add support to disable parts of reportdata and other modules

In munkireport v2 i managed to disable parts of the module  "report data" and other modules that had parts i didnt want/need becuase of privacy concerns, but i v3 when i use the same method it causes a problem that clients cant connect.
Q: What are you trying to accomplish?
A: Not getting unwanted or not needed information into MunkiReport because of privacy concerns.
The way i used to do it in v2 was this way but that stopped working i v3 :confused: can i disable them in the config.php file?
// $this->rs['console_user'] = '';
// $this->rs['long_username'] = '';
// $this->rs['remote_ip'] = '';
A user named tuxedo gave me this solution, but a supported solution built into MunkiReport-PHP would be better.
// Remove serial_number from mylist, use the cleaned serial that was provided in the constructor.
unset($mylist['serial_number']);
    unset($mylist['console_user']);
    unset($mylist['long_username']);
    unset($mylist['remote_ip']);

I think the best way to handle this is to prevent the uploading of sensitive data on the client. To accomplish that, a filtering function could be build into the process method inreportcommon.
This would require that the admin puts filtering config on the clients that need it.

yes that would probably be even better since no unwanted or sensetive data ever leaves the client machine

Something changed in version 4.3.x so now the  "unset($mylist['console_user']);" dont work anymore is it possible to add exceptions to what you want imported in the .env file or do you have to change it in the vendor --> MunkiReport --> Machine --> machine_model.php file like before ?
I cant seem to figure out how to to it at least but i wanted to log less info them it set by default.

You could hack the submit script and set console_user and long_username to an empty string:
https://github.com/munkireport/munkireport-php/blob/master/public/assets/client_installer/submit.preflight#L45-L46

I have tried doing that with
Original
report_info['console_user'] = "%s" % osutils.getconsoleuser()
report_info['long_username'] = reportcommon.get_long_username(report_info['console_user'])
Modified:
report_info['console_user'] = ""
report_info['long_username'] = ""
But i must be doing something wrong or not doing it in the correct places.
The modules i am using is munkiinfo, munkireport, managedinstalls and the defualts modules that might always be active.
I looked in the folder munkireport-php/vendor/munkireport/machine and the sub files to see if i could understand what file i might need to modifie.
I also looked into https://github.com/munkireport/munkireport-php/tree/master/public/assets/client_installer - Postflight, preflight and submit.preflight without any luck with getting the information i want completely removed to be removed.

If you change the sources, you need to send a new package to your clients with the modified code. Or you could just send a patched file to your clients with Munki (which may be easier to do)

authors: bochoven lifeunexpected

repo: munkireport/munkireport-php


text:
Reduced cognitive complexity of the function: setup() -> True. Locati…

…on: homeassistant/components/emoncms_history/init.py.py

Breaking change

Proposed change

Type of change

[ ] Dependency upgrade
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New integration (thank you!)
[ ] New feature (which adds functionality to an existing integration)
[ ] Deprecation (breaking change to happen in the future)
[ ] Breaking change (fix/feature causing existing functionality to break)
[x] Code quality improvements to existing code or addition of tests

Additional information

This PR fixes or closes issue: fixes #
This PR is related to issue:
Link to documentation pull request:

Checklist

[ ] The code change is tested and works locally.
[ ] Local tests pass. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the development checklist
[ ] I have followed the perfect PR recommendations
[ ] The code has been formatted using Black (black --fast homeassistant tests)
[ ] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated for www.home-assistant.io

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

[ ] The manifest file has all fields filled out correctly.
Updated and included derived files by running: python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt.
Updated by running python3 -m script.gen_requirements_all.
[ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
[ ] Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

[ ] I have reviewed two other open pull requests in this repository.

Code smell: Reducing cognitive complexity of a function
Why is this code smell/issue relevant?
A function with higher cognitive complexity is difficult to understand. If a developer wants to make any changes to a function with higher complexity, they would take a lot of time to understand the function. The function will be less readable, and it will take more effort to maintain, debug, and test. Hence, the function's cognitive complexity should be reduced to make it more understandable and easier to maintain and debug, saving time and effort.
How the code smell/issue is resolved?
The cognitive complexity of a function can be resolved by breaking down the function into smaller components, simplifying logic (reducing the usage of if-else statements and loops), using meaningful variable names.
In this PR, I have reduced the cognitive complexity of the function by breaking down the function into smaller components and simplifying the logic of the function

The changes to not change complexity. Many changes simply puts code that was before spread over several lines for readability into one line.

repo: munterkalmsteiner/core


text:
chore(main): release 1.0.2

:robot: I have created a release beep boop
1.0.2 (2024-10-30)
Features

Implement missing player methods (8a58122)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.0.2
:sunflower:

repo: music-assistant/client


text:
Cannot connect to samba share as a guest

As title says, connecting to a Samba share using Filesystem (remote share) option as a guest (without a password) does not work, the app throwing this error in a pop-up:

Connection failed for the given details: replace() argument 1 must be str, not None

Connecting with valid credentials is working as expected.
Using Music Assistant add-on version 2.0.0.

Sorry, I just saw this is the companion app. I will repost the bug to the appropiate repository.

repo: music-assistant/companion


text:
Spotify errors since core 23.1.4 update

What version of Music Assistant has the issue?
2022.12.1
The problem
I noticed some errors in my log since the core 2023.1.4 update. I’m still able to play music from Spotify though.
But when starting music there are errors lifted as well.
How to reproduce

Relevant log output
two errors after the update:
Logger: music_assistant.music.spotify
Source: runner.py:120
First occurred: 15:02:40 (1 occurrences)
Last logged: 15:02:40

me/following - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/me/following?type=artist&limit=50&market=from_token&country=from_token')

And
Logger: music_assistant
Source: /usr/local/lib/python3.10/site-packages/music_assistant/mass.py:232
First occurred: 15:02:40 (1 occurrences)
Last logged: 15:02:40

Job [Library sync for provider Spotify] failed with error 'NoneType' object is not subscriptable.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/music_assistant/models/music_provider.py", line 402, in sync_library
    async for prov_item in self._get_library_gen(media_type)():
  File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/spotify/spotify.py", line 145, in get_library_artists
    for item in spotify_artists["artists"]["items"]:
TypeError: 'NoneType' object is not subscriptable

Then when I started a playlist, the same error popped up again:
This error originated from a custom integration.

Logger: music_assistant.music.spotify
Source: custom_components/mass/websockets.py:929
Integration: Music Assistant (documentation, issues)
First occurred: 15:06:46 (2 occurrences)
Last logged: 15:07:55

me/following - 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://api.spotify.com/v1/me/following?type=artist&limit=50&market=from_token&country=from_token')

Followed by another error:
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/mass/websockets.py:929
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 15:06:46 (2 occurrences)
Last logged: 15:07:55

[547420392320] Error handling message: Unknown error (unknown_error) from 192.168.178.27 (Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2022.10.1 (io.robbie.HomeAssistant; build:2022.424; iOS 16.2.0) Mobile/HomeAssistant, like Safari)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/mass/websockets.py", line 114, in async_get_mass_func
    await orig_func(hass, connection, msg, mass)
  File "/config/custom_components/mass/websockets.py", line 929, in websocket_browse
    await mass.music.browse(msg.get("path")),
  File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music.py", line 224, in browse
    return await prov.browse(path)
  File "/usr/local/lib/python3.10/site-packages/music_assistant/models/music_provider.py", line 338, in browse
    items=[x async for x in self.get_library_artists()],
  File "/usr/local/lib/python3.10/site-packages/music_assistant/models/music_provider.py", line 338, in <listcomp>
    items=[x async for x in self.get_library_artists()],
  File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/spotify/spotify.py", line 145, in get_library_artists
    for item in spotify_artists["artists"]["items"]:
TypeError: 'NoneType' object is not subscriptable

Additional information

What version of Home Assistant Core are your running
Core 2023.1.4
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

Maybe the start of these errors after the core-2023.1.4 update was a coincidence. Saw a similar issue with Spotify in core:
https://github.com/home-assistant/core/issues/85833

I have same problem....
2023-01-16 10:38:55.983 ERROR (SyncWorker_5) [spotipy.client] Max Retries reached
2023-01-16 10:50:56.004 ERROR (SyncWorker_7) [spotipy.client] Max Retries reached
2023-01-16 12:58:26.264 ERROR (SyncWorker_3) [spotipy.client] Max Retries reached

@lukbe
@smarthomefamilyverrips
I guess your remarks in this thread are not music assistant related!
If so please continue to post them in the original core issue:
https://github.com/home-assistant/core/issues/85833
I just referenced that core issue, because the root cause can be the same.
Best Eric

@erkr OK will keep this for the other post 👍🏻

Seems resolved after I updated to core 2023.1.5 today!

authors: erkr lukbe smarthomefamilyverrips

repo: music-assistant/hass-music-assistant


text:
Browser view duplication / formatting issues

What version of Music Assistant has the issue?
2.0.2
What version of the Home Assistant Integration have you got installed?
2024.5.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
I noticed a bunch of browser issues on but my PC ( chrome) and iPhone (safari). It mainly concerns duplications in the listings.
How to reproduce
I described a flow in discord: https://discord.com/channels/753947050995089438/1098939316861935698/1239299611990954067
Music Providers
Spotify and TuneIn
Player Providers
Na
Full log output
No related log
Additional information
No response
What version of Home Assistant Core are your running
2024.5.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

2.0.4 should fix the weird items listings

Not properly fixed yet. Still have to test on my PC tonight, but on my iOS app radio stations take a very long time to load (20+ seconds) and then still duplicates:

Just pulled the 2.0.4 server, and seems to have fixed the duplicate entries issue I had.

For me 2.0.4 only fixed duplicate enties for Spotify, not for Tune-in Radio
The weird pathnames are stiull three (also for Spofity)
Showing the radio stations via the browser takes a long time, ca 25 seconds). Via the radio tab , this is instantly!
I tested on iOS companion, PC chrome and Edge
Example radio browser with weird path and double entries:

On the mobile you don't see the path part.
There are no related errors in the log file

I can confirm the duplication for tunein

Confirming this appears fixed in 2.1.0b4

authors: OzGav erkr jonwaland marcelveldt