Should I automatically see types when using JS?

Great initiate here, thank you.
Question - I'm using JS and followed the docs, but can't see any types suggestion in vscode. Here what I've done:
const mailerAPI = new OpenAPIClientAxios({
    definition: path.join(__dirname, '../openapi.json'),
  });
  await mailerAPI.init();
  mailerAPI.{expected to see methods here but nothing from openapi operations appear here}

Should I run typegen manually? What is the workflow for JS scenario (not TS) given that most IDE knows to conclude d.ts file definitions even when coding with JS?

Hi @goldbergyoni -- I'm not the maintainer but I figured I'd answer since I just did this myself.
You do need to run typegen yourself, and store the file somewhere it's accessible to your source code.
Then your snippet becomes this:
import { Client as MyApiClient } from './path/to/generated/typefile'

const clientGenerator = new OpenAPIClientAxios({
  definition: path.join(__dirname, '../openapi.json'),
});
const mailerAPI = await clientGenerator.getClient<MyApiClient>();
mailerAPI.{now you see methods here}

The constructor for the main class can't be typed with your custom types, unfortunately. Even if you pass it when you call init(), that custom typing won't be saved that way. The answer is to keep a reference to the instance it returns, which is associated with your custom types.
getClient() is the better way to go than init(), though, because it still calls init under the hood for an instance that hasn't been initialized yet, but the returned instance is a singleton -- so if you ever call it again, you're getting the same object back without re-initializing.
Hope this helps!

@goldbergyoni,
you should give a help to you hinting tool how to resolve client type.
Example using jsDoc:
pet.types is pet.types.d.ts generated by typegen tool
example.js
import { OpenAPIClientAxios } from './openapi-client-axios'

/** @type {() => import("./pet.types").Client } **/
const getMyOACA = () => {
    const clientInstance = new OpenAPIClientAxios();
    return clientInstance;
}

const client = getMyOACA();
client.updatePetById()

and hints il work


Capture system architecture (64/32 bit) along with install data

The Issue
Right now, we don't capture 64/32 bit architecture data with install data. Internal APIs will need to support this new field.  Capture this data from https://github.com/lbryio/lbry/issues/1856 and pass with the install/new call.
System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

We are no longer building for 32bit.

We are no longer building for 32bit.


Replace PNG badges with lovely SVG

Not much to it, Code Climate is broken because Code Climate is broken today: http://status.codeclimate.com/

Thanks for that.


Switch TraitGen to openassetio b1 release

What
Re-instate the dependency on openassetio now its been released, and enable missing CI matrix platforms

See https://github.com/OpenAssetIO/OpenAssetIO-TraitGen/pull/51/files#diff-27c5febcc9ce93e8e5341f263b7d68962733b8a2a86c583723d025a1db39d7a3R7

Done in #54


Add exclusion criteria for sample without collection date

In the ENA dataset we found 105 samples that have an empty collection date. These were processed otherwise properly and they have mutations called.
We want to add an exclusion criteria for new samples coming in from both datasets and apply this exclusion retroactively

Remains to be filtered from the databases


Convert to app router

This updates the laravel/breeze-next starter to using the new App Router routing syntax. I am not a nextjs expert so it is very possible that I'm missing better ways to do this.
This also bumps the nextjs version to nextjs 14
Benefits to changing- App Router is the "new" way of doing routing in nextjs applications so this modernizes this starter kit.
Technically, the pages style routing is still valid so we could offer both types in separate branches or just convert to the new direction.

Seems to work pretty well. A couple of questions:

The Nunito font doesn't seem to be rendering.
Can you link me to some docs explaining what the "@" sign does when naming directories, for example in "@header".

Please mark as ready for review when answered.

So here are the docs on the "@" sign- They are called parallel routes and I'm not actually sure if this is the best spot for them. - https://nextjs.org/docs/app/building-your-application/routing/parallel-routes
When I imagine the 'dashboard' route I think of the user doing something like having a structure similar to this where posts would be nested in the dashboard route. Something like /dashboard/posts
dashboard
  @header
    page.js
  page.js
  layout.js
  posts
    layout.js
    page.js

In this case that @header would apply to all nested routes so it would be impossible to override the "Dashboard" in the posts route. Instead you could do something like this-
dashboard
  (main)
    @header
      page.js
    page.js
    layout.js
  posts
    @header
      page.js
    layout.js
    page.js

that would allow you to update the header section on each nested route like dashboard/posts in this instance. The other option is to just ditch the parallel routes and colocate a Dashboard component in the dashboard directory similar to the way I added the logo in the auth routes. Which would you prefer? (PS, I'm dropping the layout in the @header and just inlining that code in the @header > page.js regardless since it seems unnecessary now that I'm looking at it again

If I was building an app that had "posts", I'm not sure I would nest it under dashboard. I would imagine having /posts.

In that case it might be fine the way it is

@allenjd3 it seems strange to me that @header would be tied to the dashboard directory though? You would likely want to use that basic header on lots of pages?

Yeah what's odd about parallel routes is that they don't support nesting- Here is a discussion that talks about this limitation: https://github.com/vercel/next.js/discussions/48927 - In this case it would be nice to have the slot in the layout one level above the dashboard and then ideally you could override it in nested routes. But it currently requires the @header to be in the same directory and it would be inherited by all children. So in the case we were discussing earlier if you had-
(app)
  page.js
  layout.js
  @header
    page.js
  dashboard
    etc...
  posts
    etc...

Then /dashboard and /posts would both have the exact same @header-
Perhaps in this case a wrapping component still makes more sense?

I went ahead and simplified it by recreating the DashboardLayout component. Feel free to walk that commit back if you want to keep the other way of doing it!

Alright I finally figured out how to do the @header the proper way... Sorry for all the back and forth 😅
Looks like you can do this-
(app)
  @header
    dashboard
      page.js
  dashboard
    page.js
    layout.js
  layout.js

where the root route has the reference to the header and the header names routes that are "parallel" to the ones that you create using the normal routing. Makes sense now that I get it.

@allenjd3  Nice work. There is one thing we need to look into. How to prevent a flash on login page when say someone is visiting it from an authenticated area? Not sure how you would approach this with Next 14 and this Breeze starter kit. Any tips?

I put in a possible solution to the flicker- I'm researching how to do this using the new Suspense api. I'll update this if I can figure it out!

I think middlewares might be one way
Ali Gajani
Founder at Mr. Geek
www.mrgeek.me
www.aligajani.com
On Sat, Dec 23, 2023 at 3:28 PM James Allen @.***>
wrote:

I put in a possible solution to the flicker- I'm researching how to do
this using the new Suspense api. I'll update this if I can figure it out!
—
Reply to this email directly, view it on GitHub
https://github.com/laravel/breeze-next/pull/39#issuecomment-1868315746,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANGRWXXI6AWP6ZJRKREIG3YK32DHAVCNFSM6AAAAABAP5EWMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGMYTKNZUGY
.
You are receiving this because you commented.Message ID:
@.***>

I got  Error: Hydration failed because the initial UI does not match what was rendered on the server. on login page.

If you have something like lastpass enabled on the page it will inject divs that don't play well with nextjs in dev mode


Appstudio purge hacbs-test-project-orpy

Pipelines as Code configuration removal

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-orpy-on-pull-request-
creating pipelinerun hacbs-test-project-orpy-on-pull-request- in namespace rhtap-demo-ahmv-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-orpy-on-pull-request-
creating pipelinerun hacbs-test-project-orpy-on-pull-request- in namespace rhtap-demo-licv-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request


Automated cherry pick of #8525

Cherry pick of #8525 on release-5.38.
/cc  @AGMETEOR

/release-note-none


ImportError: DLL load failed  &  ImportError: No module named '_pywrap_tensorflow_internal'

Dear friends：

import tensorflow as tf
Traceback (most recent call last):
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_intern
al.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "D:\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 906, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: 找不到指定的模块。

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", l
ine 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_intern
al.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_intern
al.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "D:\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "D:\Python35\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "D:\Python35\lib\site-packages\tensorflow\python_init_.py", line 51, i
n
from tensorflow.python import pywrap_tensorflow
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", l
ine 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_intern
al.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "D:\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 906, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", l
ine 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_intern
al.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "D:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_intern
al.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "D:\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_st
arted/os_setup.md#import_error
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

previous trying:

installing Microsoft Visual C++ 2015 Redistributable Update 3 (x64 version);
check the env variables path of CUDA and cudnn is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5 and D:\software\caffe\caffe-installer\cuda;
C:\Windows\System32 has MSVCP140.dll;

Environment info
Operating System: win7 + python3.5
install tensorflow command is

python35 -m pip install --upgrade D:\downloads\tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl

Installed version of CUDA and cuDNN:
CUDA 7.5
cuDNN 7.0
Thand you very much:-)

Can you try upgrading to CUDA 8.0? We don't support CUDA 7.5 in TensorFlow 1.0.

Dear Mr. mrry, you perfectly solved my problem, thank you very very much!

You're welcome, and I'm glad to hear it!

@ry I also met the same problem "No module named pywrap_tensorflow_internal".
I cannot update CUDA7.5 to 8.0 due to some reasons. Hence, have to install with sources. I have done everything as this Page say. However, when i import tensorflow I have this. Can I install TF1.0 or solve this problem?
Really appreciate for any advises!

but if I didn't install gpu version of tensorflow why this error happens
https://www.tensorflow.org/install/install_linux says we don't require cuda if don't install tensorflow gpu version

anyway I have 8, but it still gives that error

+1 installing cpu only version gives me the same issue.

Happens to me as well. Any solutions?

Hi folks! We've posted a script that you can run, and it will give you some suggestions about how to fix your TensorFlow on Windows installation. It's available here:
https://gist.github.com/mrry/ee5dbcfdd045fa48a27d56664411d41c

Hi Mrry,
i am NOT using GPU version on windows 7.
Then WHY am i getting these error related to CUDA??
Is my system not compatible to run tensorflow??
Please update.
awaiting ur respose..

Hi Mrry,
i am NOT using GPU version on windows 7.
Then WHY am i getting these error related to CUDA??
Is my system not compatible to run tensorflow??
Please update.
awaiting ur respose..

I have the same errorss as @nwertzberger . I also have these errors related to Anaconda that keep coming up during a Windows installation with the latest version of CUDA on Windows 10. From writing source activate envname because (activate tensorflow-gpu won't work) it prompts me with the other command, I get this trace:
Traceback (most recent call last):   File "C:\Program Files\Anaconda3\Scripts\conda-script.py", line 5, in <module>     sys.exit(conda.cli.main())   File "C:\Program Files\Anaconda3\lib\site-packages\conda\cli\main.py", line 15                                  4, in main     activate.main()   File "C:\Program Files\Anaconda3\lib\site-packages\conda\cli\activate.py", lin                                  e 160, in main     prefix = prefix_from_arg(sys.argv[3], shelldict=shelldict)   File "C:\Program Files\Anaconda3\lib\site-packages\conda\cli\activate.py", lin                                  e 60, in prefix_from_arg     prefix = locate_prefix_by_name(context, arg.replace('/', os.path.sep))   File "C:\Program Files\Anaconda3\lib\site-packages\conda\base\context.py", lin                                  e 538, in locate_prefix_by_name     raise CondaEnvironmentNotFoundError(name) conda.exceptions.CondaEnvironmentNotFoundError: Could not find environment: envn                                  ame . You can list all discoverable environments with conda info --envs.
I get this trace when running in python shell import tensorflow as tf
Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "C:\Users\XXXX\AppData\Roaming\Python\Python36\site-packages\tensorflow\__init__.py", line 24, in <module>     from tensorflow.python import *   File "C:\Users\XXXX\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\__init__.py", line 47, in <module>     import numpy as np
Thoughts on how to fix? I always seem to have problems with Anaconda, whether on Mac or PC.

@mrry any thoughts? It seems to be a common problem with the roaming Python error. I also tried using other pip installs to no avail: https://stackoverflow.com/questions/44991377/trouble-installing-tensorflow-on-windows-10-error-trace-related-to-anaconda

Hi all,  I just want to thank this thread that save the day!  My env is Windows 10x64 with tensorflow-gpu version,  downgrading cuDNN from V6.0 to V5.1 did the job exactly!  I

same problem in Anaconda
Traceback (most recent call last):
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 35, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 30, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\imp.py", line 242, in load
_module
return load_dynamic(name, filename, file)
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\imp.py", line 342, in load
_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_
init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython_init_.py", line 51, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 35, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 30, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\imp.py", line 242, in load
_module
return load_dynamic(name, filename, file)
File "C:\Users\shivam\Anaconda3\envs\tensorflow\lib\imp.py", line 342, in load
_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_probl
ems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

ile "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 35, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 30, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\imp.py", line 242, in load
_module
return load_dynamic(name, filename, file)
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\imp.py", line 342, in load
_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_
init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython_init_.py", line 51, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 35, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\p
ython\pywrap_tensorflow_internal.py", line 30, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\imp.py", line 242, in load
_module
return load_dynamic(name, filename, file)
File "C:\Users\xxx\Anaconda3\envs\tensorflow\lib\imp.py", line 342, in load
_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_probl
ems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

@shivam04 Did you try running this script to diagnose common issues?
https://gist.github.com/mrry/ee5dbcfdd045fa48a27d56664411d41c
If it doesn't point to a solution, please open a new issue with the details!

@mrry  hi
after installing the DLL file still im getting the error

I have installed Anaconda + tensor flow + CUDA on my system
Anaconda version installed : Anaconda3-4.2.0-Windows-x86_64
tensorflow for gpu is installed using pip install command.
Cuda version installed as: cuda_9.0.176_win10 and its patch is also installed
Then files from cudnn like bin, include, lib copied to installation path
The graphics card is NVIDIA GeForce 820M
but when I run simple python scsript
import tensorflow as tf
with tf.device('/gpu:0'):
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
with tf.Session() as sess:
print (sess.run(c))
This error appears:
runfile('C:/Users/rituraj/Desktop/New folder/check.py', wdir='C:/Users/rituraj/Desktop/New folder')
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/rituraj/Desktop/New folder/check.py', wdir='C:/Users/rituraj/Desktop/New folder')
File "C:\Users\rituraj\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile
execfile(filename, namespace)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/rituraj/Desktop/New folder/check.py", line 17, in
print (sess.run(c))
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 895, in run
run_metadata_ptr)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1128, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1344, in _do_run
options, run_metadata)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1363, in _do_call
raise type(e)(node_def, op, message)
InvalidArgumentError: Cannot assign a device for operation 'MatMul_9': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device.
[[Node: MatMul_9 = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/device:GPU:0"](a_9, b_9)]]
Caused by op 'MatMul_9', defined at:
File "C:\Users\rituraj\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 223, in
main()
File "C:\Users\rituraj\Anaconda3\lib\site-packages\spyder\utils\ipython\start_kernel.py", line 219, in main
kernel.start()
File "C:\Users\rituraj\Anaconda3\lib\site-packages\ipykernel\kernelapp.py", line 474, in start
ioloop.IOLoop.instance().start()
File "C:\Users\rituraj\Anaconda3\lib\site-packages\zmq\eventloop\ioloop.py", line 162, in start
super(ZMQIOLoop, self).start()
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tornado\ioloop.py", line 887, in start
handler_func(fd_obj, events)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tornado\stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 440, in _handle_events
self._handle_recv()
File "C:\Users\rituraj\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 472, in _handle_recv
self._run_callback(callback, msg)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tornado\stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 276, in dispatcher
return self.dispatch_shell(stream, msg)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 228, in dispatch_shell
handler(stream, idents, msg)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\ipykernel\kernelbase.py", line 390, in execute_request
user_expressions, allow_stdin)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\ipykernel\ipkernel.py", line 196, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\ipykernel\zmqshell.py", line 501, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2717, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2827, in run_ast_nodes
if self.run_code(code, result):
File "C:\Users\rituraj\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('C:/Users/rituraj/Desktop/New folder/check.py', wdir='C:/Users/rituraj/Desktop/New folder')
File "C:\Users\rituraj\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile
execfile(filename, namespace)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/rituraj/Desktop/New folder/check.py", line 12, in
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\ops\math_ops.py", line 2022, in matmul
a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_math_ops.py", line 2799, in _mat_mul
name=name)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 3160, in create_op
op_def=op_def)
File "C:\Users\rituraj\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1625, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'MatMul_9': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device.
[[Node: MatMul_9 = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/device:GPU:0"](a_9, b_9)]]
It is not detecting the gpu.
Please suggest solution for it.

i had similar problem
343, in load_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
why if i use cpu tensor i need cuda etc?
By the way,i tryed to install cuda and cudnn and nothing changed


Refactor plugin impls to be generic; implement ndim convolution (no grad for now); fix conv tests.

This algo performs a fairly simple, probably slow, inplace convolution over n-dimensional input. While cleaning up the tests, I ran into issues where trait impls aren't implemented on generic types, which is desired to combat code duplication, so I've fixed that. While Cuda is limited to f32 && f64, this algo can run over any type that implements (mainly) Add and Mul.
Note that this PR depends on https://github.com/autumnai/rust-cudnn/pull/23, so accept that one first.

There were the following issues with your Pull Request

Commit: 19df0f2d2c3aba6436b738d168d5a0611e9c9e6e

Commits must be in the following format: %{type}/%{scope}: %{description}

Commit: 2d2d88f37a51c852bf3a223d4d33482c63bf459f

Commits must be in the following format: %{type}/%{scope}: %{description}

Commit: e9460838e1e8ad0e60711dc2a963c92ecbebf23c

Commits must be in the following format: %{type}/%{scope}: %{description}

Guidelines are available at https://github.com/autumnai/collenchyma-nn/blob/master/CONTRIBUTING.md#git-commit-guidelines

This message was auto-generated by https://gitcop.com

It's late here, so I'll fix the gitcop issues tomorrow.

There were the following issues with your Pull Request

Commit: fe0258b9b8b00492b6f1b30771d8b778830604e4
Your commit message body contains a line that is longer than 100 characters

Guidelines are available at https://github.com/autumnai/collenchyma-nn/blob/master/CONTRIBUTING.md#git-commit-guidelines

This message was auto-generated by https://gitcop.com

I've fixed the gitcop issues.


Attach is not working

Flask-Mailman version: 0.2.0
Python version: 3.9
Operating System: win10

There is some error
<env-path>\Lib\site-packages\flask_mailing\msg.py
    async def attach_file(self, message, attachment: t.List["FileStorage"]):
        """Creates a MIMEBase object"""
        for file, file_meta in attachment:
            if file_meta and "mime_type" in file_meta and "mime_subtype" in file_meta:
                part = MIMEBase(
                    _maintype=file_meta["mime_type"], _subtype=file_meta["mime_subtype"]
                )
            else:
                part = MIMEBase(_maintype="application", _subtype="octet-stream")

            part.set_payload(file.read())
            encode_base64(part)

            filename = file.filename

            try:
                filename and filename.encode("ascii")
            except UnicodeEncodeError:
                if not PY3:
                    filename = filename.encode("utf8")

            filename = ("UTF8", "", filename)

            part.add_header("Content-Disposition", "attachment", filename=filename)
            if file_meta and "headers" in file_meta:
                for header in file_meta["headers"].keys():
                    part.add_header(header, file_meta["headers"][header])
            self.message.attach(part)

attachment is list of FileStorage, so " for file, file_meta in attachment:" will never work

Wrong project. this code is from
https://github.com/marktennyson/flask-mailing/tree/development/flask_mailing
Should be closed.


[Bug] post_center_limit_range for custom dataset

Prerequisite

[X] I have searched Issues and Discussions but cannot get the expected help.
[X] I have read the FAQ documentation but cannot get the expected help.
[X] The bug has not been fixed in the latest version (dev-1.x) or latest version (dev-1.0).

Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmdetection3d
Environment
sys.platform: linux
Python: 3.7.10 (default, Feb 26 2021, 18:47:35) [GCC 7.3.0]
CUDA available: True
MUSA available: False
numpy_random_seed:<PHONE_NUMBER>
GPU 0: NVIDIA GeForce RTX 3090 Ti
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 11.1, V11.1.105
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.9.0
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) oneAPI Math Kernel Library Version 2021.2-Product Build 20210312 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v2.1.2 (Git Hash 98be7e8afa711dc9b66c8ff3504129cb82013cdb)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 11.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_37,code=compute_37
CuDNN 8.0.5
Magma 2.5.2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.1, CUDNN_VERSION=8.0.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.9.0, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,

TorchVision: 0.10.0
OpenCV: 4.9.0
MMEngine: 0.10.3
MMDetection: 3.3.0
MMDetection3D: 1.4.0+
spconv2.0: False
Reproduces the problem - code sample
I am training model with custom dataset and have changed the point cloud range and voxel size. Does that mean post_center_limit_range also needs to be changed and how those values are calculated.
Reproduces the problem - command or script
python tools/train.py configs/centerpoint/centerpoint_pillar02_second_secfpn_8xb4-cyclic-20e_custom-3d.py
Reproduces the problem - error message
How to change/modify post_center_limit_range?
Additional information
No response

This looks to me same as point_cloud_range, let me know if that is not the case.  Thanks!

As i mentioned above, setting pcl range would be fine. So closing this issue.


Do you want to have the enhancement of existing game ? 😀 Describe yourself..
Title: Add Reset Button to Catch The Star Game
Description: Enhance the existing "Catch The Star" game by adding a reset button that allows players to restart the game. The reset button is positioned at the bottom center of the game screen for easy access.
Enter a brief description about the enhancement you need:
This enhancement adds a reset button to the game interface. The reset button, placed at the bottom center of the screen, allows players to restart the game at any point, resetting the time, score, and stars. This feature improves user experience by providing an easy way to replay the game without refreshing the browser.
Thank you for considering this enhancement!
Describe the solution you'd like
Describe the solution you'd like:
I would like to enhance the "Catch The Star" game by adding a reset button that allows players to restart the game at any point. This reset button will be placed at the bottom center of the game screen for easy accessibility. When clicked, it will reset the time, score, and remove all current stars from the screen, effectively restarting the game without requiring a page refresh.
Steps to solve it:
Update HTML:
Add a reset button to the HTML file within the game container.
html
<button class="btn" id="reset-btn">Reset Game</button>
Update CSS:
Style the reset button to be positioned at the bottom center of the screen.
#reset-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

Update JavaScript:
Add an event listener for the reset button.
Define a function to handle the reset logic: clear the interval, reset the time and score, hide the message, and remove all existing stars from the game container.
javascript
const reset_btn = document.getElementById('reset-btn');

reset_btn.addEventListener('click', resetGame);

function resetGame() {
    clearInterval(interval);
    seconds = 0;
    score = 0;
    timeEl.innerHTML = 'Time: 00:00';
    scoreEl.innerHTML = 'Score: 0';
    message.classList.remove('visible');
    screens[0].classList.remove('up');
    const stars = document.querySelectorAll('.star');
    stars.forEach(star => star.remove());
}

By following these steps, the reset button will be added to the game, providing players with the ability to restart the game easily, enhancing the overall user experience.
I am contributing from open source GSSoc24
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @NAVJOT-786 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Firewall problem with Telegram voice call

Hello
My servant is using centos 7 operating system and I want to connect to voice calls and I use pytgcalls, but the system firewall prevents sending and receiving media. How do I solve the problem? Does it have a specific port and IP range?

No. tgcalls uses unspecified destinations over UDP.


Make qMRLab an official BIDS App

Why would we do that? to gain visibility
More info on BIDS App --> https://bids-apps.neuroimaging.io/

I think our biggest hurdle is that we can't dockerize MATLAB software, can we? Or at least, there's something finicky about asking the users to manually find the license file and give permission to the Docker container to use it.
This might be more feasible for pyqmrlab, if I or one of Nikola's future students continue developing it.
Unless we make the BIDS app fully Octave, but then the processing time may not be up to par with what users expect.

We can, an we actually are doing that automatically at each release:
The app is compiled with GUI as entrypoint, compiled app is pushed to Standalone/Ubuntu folder on osf with the release tag, and docker images are built & pushed to DockerHub.
The only missing link to achieve this for BIDS was having a CLI interface, which now we do with the latest major changes made in release v2.5.0b. We will have another release pipeline that uses main BIDS CLI interface as the entrypoint.

Ah right, I forgot about the compiled versions you released! Thanks for clarifying Agah!


fix - increased (doubled) the timeout for the test of the task easypackage

I faced some issues with Travis builds where the timeout was just too low.

:ok: 944774fdc93e7bc7935dd7aa02dd896b2084fa2e is fine for me


Fix debug tool registration

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
no

License
MIT

What's in this PR?
Fixes the bundle in production mode.
Why?
In production mode (and when debug mode is disabled) debug tools should not be registered in the clients, otherwise we get weird service not found errors.

good job, looks right to me. did you try it out?
wonder if we could (not in this PR, but in general) add integration tests for both dev and prod mode to make sure we don't break this again.

Yes we should, along with this: https://github.com/php-http/HttplugBundle/issues/95

didn't this PR fix that the toolbar is enabled in prod mode?

$toolbar = is_bool($config['toolbar']['enabled']) ? $config['toolbar']['enabled'] : $container->hasParameter('kernel.debug') && $container->getParameter('kernel.debug');
This is the code that decides whether we have a toolbar or not

The problem was that this configuration was not applied in all cases when some debug service was registered/linked.


Erroneous mimetypes invalidated, not thrown

Task linked: QF-2490 When QFieldCloud does not recognize the mimetype of the uploaded file, just invalidate the field, do not crash

The same idea could be used for upload_project_thumbail.

I am no able to reproduce the CI error locally. Tests pass A-OK here.

For what it's worth: Use Literal instead.
ImageMimeType = Literal["image/svg+xml", "image/png", "image/jpeg"]

For what it's worth: Use Literal instead.
ImageMimeType = Literal["image/svg+xml", "image/png", "image/jpeg"]

Enums are fine. The name and the value are distinct, and consumed differently.


Update icons-mfd-png to 1.2.1

https://github.com/ioBroker/ioBroker.icons-mfd-png/issues/10#issuecomment-1869151806

1.2.1 created 7.12.23
800 user
OK


Partition string into matches and non-matches

Describe your feature request
It would be great if there was a partition method that returned an iterator over non-matches and an iterator over matches of a regex.
My use case is to partition a string into two disjoint groups knowing only the regex for one group. For example, this method would allow to partition the string "123abcdef456ghj789" into the partitions ["abcdef", "ghj"] and ["123", "456", "789"] using a separator regex \d+.
Currently, one can can use split for the non-matches and find_iter for the matches. This doesn't express the disjoint groups as they need to be assembled separately.

I don't think this is a good fit for this crate at this time. I think the use case is a bit too niche and the API design space is quite large. For example, you suggested here returning two iterators, but that isn't particularly optimal and isn't the most flexible. I think a better approach would be to return partitions, where each partition is labeled as non-match and match. Like this:
use regex::Regex;

#[derive(Debug)]
enum Partition<'t> {
    Match(&'t str),
    NonMatch(&'t str)
}

#[derive(Debug)]
struct PartitionIter<'r, 't> {
    it: regex::Matches<'r, 't>,
    last_match_end: usize,
    text: &'t str,
    next_match: Option<&'t str>,
}

impl<'r, 't> PartitionIter<'r, 't> {
    fn new(re: &'r Regex, text: &'t str) -> PartitionIter<'r, 't> {
        PartitionIter { it: re.find_iter(text), last_match_end: 0, text, next_match: None }
    }
}

impl<'r, 't> Iterator for PartitionIter<'r, 't> {
    type Item = Partition<'t>;

    fn next(&mut self) -> Option<Partition<'t>> {
        if let Some(next_match) = self.next_match.take() {
            return Some(Partition::Match(next_match));
        }
        let m = self.it.next()?;
        if m.start() > self.last_match_end {
            let non_match = &self.text[self.last_match_end..m.start()];
            self.last_match_end = m.end();
            self.next_match = Some(m.as_str());
            Some(Partition::NonMatch(non_match))
        } else {
            self.last_match_end = m.end();
            Some(Partition::Match(m.as_str()))
        }
    }
}

fn main() {
    let re = Regex::new(r"\d+").unwrap();
    let text = "123abcdef456ghj789";
    for part in PartitionIter::new(&re, text) {
        dbg!(part);
    }
}

Playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=faabeeca32a571dd595c12b59142f67a


[idf.py] 'flash' command does not support Flash Encryption (Release) Mode, just soft bricks device (IDFGH-8923)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v4.4.3-215-g9f3f82f54b
Operating System used.
macOS
How did you build your project?
Command line with idf.py
Related Issues
esptool.py: https://github.com/espressif/esptool/issues/809
VSC Extension: https://github.com/espressif/vscode-esp-idf-extension/issues/853
What is the expected behavior?
idf.py flash should detect when your chip in Secure Download Mode and help the user flash an encrypted binary.
What is the actual behavior?
idf.py flash flashes the binary as plaintext, causing the device to not boot.
My Suggested Behavior
Goal: idf.py flash should be a 1 line command that can flash a device despite the state of Flash Encryption.
idf.py flash should detect when your chip has Flash Encryption enabled using esptool.py get_security_info and force you to specify a flag --host-generated-key-file /path/to/key.bin, or --force-flash-raw otherwise return an error.
Note: --host-generated-key-file flag would do nothing unless Flash Encryption was detected. This way, when specified, we'll have a 1 line command that can alway flash a device despite the state of Flash Encryption.
Note: idf.py encrypted-flash does not support release mode and returns an error when tried. IMO, encryption should be supported in the normal idf.py flash command too. We need a single command that aways works.
To automate further, we could have a KConfig for specifying the location of the keyfile, similar to custom partition tables. A keyfile_path.txt will then be written into the build folder.idf.py flash would then consult this file, when it detects it needs to apply encryption. This would make idf.py flash work seamlessly despite the mode of the device.
Steps to reproduce.

Enable Flash Encryption (Release)
burn all relevant device fuses
use 'idf.py flash'

If that was true, it should be simple to detect when flash encryption is enabled, and return an error asking to specify a keyfile.

That won't help in the 1st workflow I described in my earlier comment. So idea here is that, once "release" mode of the flash enc is enabled (and it happens on the manufacturing line), only way remains to update the firmware is over the OTA update channel. If we are really need a way to update the firmware over UART DL mode then I think that can always happen using "Development" mode of the flash enc feature.

Right, for the 1st workflow it would still report an error, telling you to specify a keyfile (which you do not have). or a --force-flash command, to flash anyway (which would hard brick the device).
This still seems like a big improvement. Especially for the 1st workflow, where you do not have the key and could ruin your device.
Use Case:  Of course "Development" Mode (3rd workflow...), is the most ideal for development. But I want to produce beta devices for users that use Release Mode (development mode is not secure), and want to retain the ability to fully update them over UART (bootloader, partition table, etc, if I need to.). For this, the current idf.py tools  are not ergonomic.

@chipweinberger

Use Case 2: Not hard bricking device in 1st workflow. Am I wrong in saying that for the 1st workflow, accidentally calling idf.py flash will ruin your device without warning? I have never tried...

Yes. We have now added a fix for this in the esptool through https://github.com/espressif/esptool/commit/0be5fcd903bdcad5bcb4d16dd13321787ad0a59c
Please check once, and it that looks good then probably we can close this ticket (implementing the host key based encryption can be handled in the project specific IDF extension, as I had commented earlier)

That PR looks wonderful!
Thank you for circling back and fixing this. That's a great improvement.

"WARNING: Detected flash encryption and "
"secure download mode enabled."
"Flashing plaintext binary may brick your device! "
"Use --force to override the warning."

I would say:
"

"WARNING: Detected flash encryption and "
"secure download mode enabled."
"Flashing plaintext binary may brick your device!"
"Use --force to override this warning after you've ensured the binary is pre-encrypted with host generated keys."

I will put this feedback internally. Interim, docs have bit more information with dedicated section for this: https://docs.espressif.com/projects/esptool/en/latest/esp32/esptool/basic-commands.html#encrypted-flash-protection
Thank you for your feedback and suggestions :+1:
CC @Harshal5

question - why does secure download mode matter? I would expect we just check for flash encryption release mode. Perhaps that is how we check for release vs development mode?

Yes, the change primarily detects if encrypted writes are still supported through UART DL mode or not. In case, they are supported then potentially device could be recovered, irrespective of the FLASH_CRYPT_CNT state.


Backup-DbaDatabase with -CopyOnly is not working the way it should.

Bug Report
Backup-DbaDatabase with -CopyOnly is taking Full backup. Its not taking CopyOnly Backup.
General Troubleshooting steps

[X] Verified running the latest release of dbatools?
[X] Verified errors are not related to permissions?

Version Information

Operating System (Name|Version): Windows Server 2016
PowerShell Version: 5.1.14393.206
SQL Server (Edition|Version): SQL Server 2016 Stand. SP2

My Problem
Backup-DbaDatabase -SqlInstance $i -Database DBA_Test -BackupDirectory I:\SQLBackups -CopyOnly
The backup which I'm getting with this command is a full backup..  Not a Copy only backup.. I ran a RESTORE HEADERONLY against the backup file which I got by using this command and got
IsCopyOnly 0
This should show 1 if the backup taken is a copy_only.
Am i writing the command wrong or is this some kind of a bug?

##This solved my problem
Backup-DbaDatabase -SqlInstance $i -Database DBA_Test -BackupDirectory I:\SQLBackups -Type Full -CopyOnly
By adding -Type Full.
I'm not looking for a full backup so I didn't mention that in my command.. turns out that parameter should be mentioned..


Force state expanded to bottom sheet dialog

Proposed changes
Fix collapsed behavior into landscape forcing it into STATE_HALF_EXPANDED
Based on https://medium.com/@OguzhanAlpayli/bottom-sheet-dialog-fragment-expanded-full-height-65b725c8309
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[x ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have added necessary documentation (if appropriate)
[x ] Any dependent changes have been merged and published in downstream modules

Further comments

This does not serve a generic use case


Scrape memes from reddit

Aim

Write a Script to Scrape memes from reddit !!

Details

Create a Script that can download all pictures of memes from any of these subreddits r/deepfriedmemes, r/surrealmemes, r/nukedmemes, r/bigbangedmemes, r/wackytictacs, r/bonehurtingjuice using Web Scrapping and store them in your Local System.
Languages

I can do this!

I can do this using praw, pandas and urllib. ^^

@Kreateer Sure.... Go ahead


Add mTLS authentication support

Adds support for specifying TLS options for mTLS authentication during workflow client creation.
Tested against mTLS-enabled server @ 1.10.5 and mTLS-disabled server @ 1.7.0.
For SSLContext reference, see grpclib mTLS client example
Related to #7
Changes:

Adds TLSOptions dataclass
Adds tls_options kwarg to WorkflowClient.new_client method
If TLSOptions provided, creates SSLContext
If SSLContext created, provides SSLContext to grcplib.client.Channel

Minimal config example:
from temporal.service_helpers import TLSOptions
from temporal.workflow import WorkflowClient

client = WorkflowClient.new_client(
    host="temporal.local",
    port=7233,
    tls_options=TLSOptions(
        ca_cert="/path/to/ca-cert",
        client_cert="/path/to/client-cert",
        client_key="/path/to/client-key",
    )
)

We're using temporal-python-sdk and monkey patching in something similar.  This would fit our use case if it is accepted 👍


Make it easier to migrate from Jupyter Notebook to Metaflow Steps

Most data scientist do their development in Jupyter Notebooks. Recommendation would be to use something like Kale to be able to tag cells in Jupyter Notebook and for them to be automatically turned into Metaflow steps to make the Notebook to Metaflow Steps process easier.
This idea was really taken from this article.

Thanks for the links @jimmycfa. We have been thinking about the topic of a long time. While technically grabbing code from cells is quite doable, it is less clear how one should version control the code, define a complex DAG, resume executions etc.
Metaflow is definitely meant to be used in conjunction with notebooks. At Netflix, we use notebooks to inspect results using the Client API. We have also a @notebook decorator internally, which we are planning to open-source, which automatically executes notebooks when a Metaflow step finishes.
Long story short, this idea is on our radar. Stay tuned!

Hi! Has there been any further thinking on this? We're in a similar position to @jimmycfa and it would be really useful to have some way of more easily moving code from notebooks into Metaflow.

We currently have hundreds of tasks on our platform that require bulk updates. Managing them solely through commands makes it difficult to integrate with other systems. Is it possible to address this issue in the next version? Introducing a class and directly invoking a specific method within the class to initiate a Flow would be a significant enhancement.

@jixianyihao good feedback. There are various ways to do such updates today. Can you share more details about what you need to update: Parameters, decorators, business logic, or something else?

There's a nice notebook integration available now with NBRunner


Attach objects to helm for deletion

Hi,
I am not sure if the following scenario is possible or not, with helm:
I have a kubernetes operator that will create some service objects while the system will be running. This system was originally installed in k8s cluster using helm. Now, is it possible that I can add some information to these newly created (via k8s operator) service objects, so that they will be deleted when helm uninstalled in called.
I found a similar thread here , which says it was not possible. So, just want to confirm if it is still the case or otherwise?
Regards,
Prateek

The SO answer is correct. Helm maintains a list of installed resources, stored in this "manifest". Which is what Helm uses to delete. And Helm expects that only "upgrading" the chart will result in manifest changes (loosely).
Perhaps (as a guess) resource ownership https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/ might be a better pattern here for your operator.

Thanks @gjenkins8 for the update.


Move more functions into generic

This PR moves the following Tensor functions into the generic directory:

mean/meanall are extended to all tensor types
clamp to all tensor types
cross to all tensor types
cmin/cmax to all tensor types
std/stdall to float/half/double tensors
var/varall to float/half/double tensors
norm/normall to float/half/double tensors
renorm to float/half/double tensors
lerp to float/half/double tensors

Required refactoring a lot of float specific code into .cuh files.
Test Plan:

updated unit tests to compare using new tensor types

Moving into #530


[GO_ROUTER] Rebuild parent Screen on navigation to Child Screen if Parent Screen not const

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
Using the code provided in CODE SAMPLE. If In router configuration Detail screen i put const, When i click to go to child Screen it will not rebuild Detail. Without const, it will rebuild detail screen on navigation to child Screen
Expected results
BUILD HOME
BUILD DETAIL
Build CHILD
Actual results
BUILD HOME
BUILD DETAIL
Build CHILD
BUILD DETAIL
Code sample
Code sample
void main() => runApp(const MyApp());

/// The route configuration.
final GoRouter _router = GoRouter(
  routes: <RouteBase>[
    GoRoute(
      path: '/',
      builder: (BuildContext context, GoRouterState state) {
        return const HomeScreen();
      },
      routes: <RouteBase>[
        GoRoute(
            path: 'details',
            name: "details",
            builder: (BuildContext context, GoRouterState state) {
              // var value = state.uri.queryParameters["id"]!;
              return DetailsScreen();
            },
            routes: [
              GoRoute(
                  path: 'child',
                  name: "child",
                  builder: (BuildContext context, GoRouterState state) {
                   return const ChildDetail();
                  })
            ]),
      ],
    ),
  ],
);

/// The main app.
class MyApp extends StatelessWidget {
  /// Constructs a [MyApp]
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerConfig: _router,
    );
  }
}

/// The home screen
class HomeScreen extends StatelessWidget {
  /// Constructs a [HomeScreen]
  const HomeScreen({super.key});

  @override
  Widget build(BuildContext context) {
    print("BUILD HOME");
    return Scaffold(
      appBar: AppBar(title: const Text('Home Screen')),
      body: Center(
        child: ElevatedButton(
          onPressed: () => context.goNamed('details'),
          child: const Text('Go to the Details screen'),
        ),
      ),
    );
  }
}

/// The details screen
class DetailsScreen extends StatelessWidget {
  /// Constructs a [DetailsScreen]
  // final String value;

  const DetailsScreen({super.key});

  @override
  Widget build(BuildContext context) {
    print("BUILD DETAIL");
    return Scaffold(
      appBar: AppBar(title: const Text('Details Screen')),
      body: Center(
        child: ElevatedButton(
          onPressed: () => context.pushNamed('child'),
          child: Text("Go to child Screen"),
        ),
      ),
    );
  }
}

class ChildDetail extends StatelessWidget {

  const ChildDetail({super.key,});

  @override
  Widget build(BuildContext context) {
    print("Build CHILD ");
    return const Placeholder();
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

Hi @alessandroToninelli. Thanks for filing this. I can reproduce this on the latest master and stable channels.
flutter doctor -v

[✓] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-arm64, locale
    en-NG)
    • Flutter version 3.13.9 on channel stable at
      /Users/damilolaalimi/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (2 days ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/damilolaalimi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)

[!] Android Studio (version unknown)
    • Android Studio at /Users/damilolaalimi/Downloads/Android Studio
      Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] VS Code (version 1.83.1)
    • VS Code at /Users/damilolaalimi/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (3 available)
    • Damilola’s iPhone (mobile) • 00008110-001964480AE1801E • ios            •
      iOS 17.0.2 21A351
    • macOS (desktop)            • macos                     • darwin-arm64   •
      macOS 14.0 23A344 darwin-arm64
    • Chrome (web)               • chrome                    • web-javascript •
      Google Chrome 118.0.5993.117

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.16.0-18.0.pre.63, on macOS 14.0 23A344 darwin-arm64, locale en-NG)
    • Flutter version 3.16.0-18.0.pre.63 on channel master at /Users/damilolaalimi/fvm/versions/master
    ! Warning: `flutter` on your path resolves to /Users/damilolaalimi/sdks/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/damilolaalimi/fvm/versions/master. Consider adding /Users/damilolaalimi/fvm/versions/master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/damilolaalimi/sdks/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/damilolaalimi/fvm/versions/master. Consider adding /Users/damilolaalimi/fvm/versions/master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eba149fcc3 (73 minutes ago), 2023-10-27 12:04:07 +0300
    • Engine revision bedc49efc8
    • Dart version 3.3.0 (build 3.3.0-56.0.dev)
    • DevTools version 2.28.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/damilolaalimi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[!] Android Studio (version unknown)
    • Android Studio at /Users/damilolaalimi/Downloads/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] VS Code (version 1.83.1)
    • VS Code at /Users/damilolaalimi/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (3 available)
    • Damilola’s iPhone (mobile) • 00008110-001964480AE1801E • ios            • iOS 17.0.2 21A351
    • macOS (desktop)            • macos                     • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)               • chrome                    • web-javascript • Google Chrome 118.0.5993.117

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

This is WAI, the navigation in go router will trigger all GoRoute to rebuild, we don't guaranteed how many time build will be called in a frame.
In your case the const Widget rebuild will be ignore if nothing change, so this is expected


Implement syscall.Setgid/syscall.Setuid

One thing that has stopped me from running soft-serve is the fact that it doesn't support binding to port 22 and then dropping the root privileges required to do so, from what I found. Please correct me if I might have overlooked something in the documentation.
It would be nice if there was a way to make soft-serve start as root, open the port and then drop to a different user (e.g. git) in order to run the actual service.

Hey! I'd love to learn more about this. Do you know if this has been done with other projects using the crypto/ssh package? I'm thinking that's where I might want to start looking. If you wouldn't mind sharing any examples of other go projects that do this it would be great to take a look and share with the team

lol I totally missed the whole syscall part of the title 😂

@bashbunni check this issue for some examples on the syscall.Setgid/.Setuid topic. It seems as if this could be done in Go, however, what I haven't validated yet is whether this implementation would work on e.g. OpenBSD as well (where I tried to run soft-serve in first place).

Hi @mrusme this is very doable with the current version of soft-serve. I've created a PR to add an example of doing so, could you please try non-root/main.go


Create microservice for registration (new user)

Watch the YouTube guide and create an exemplary service for creating a new user.
Attributes in DB:

Unique ID
First name
Last name
Nickname
Link nickname (unique) (as in Twitter/Instagram)
Email (unique)
Phone
Photo (not required)
Second email (not required)
Date of birth
IP
Country
Created date
Update date

Deadline 23.02.2023

But I must do roles and interactions between users. Deadline will be 25.02


[persistState] - local storage replaced by initial state after page refresh

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

I use persistState to persist store state through page refreshs (i.e auth token). After first page refresh, store state gets loaded correctly in memory (store), but local storage is replaced by store initial state. After a second refresh, both memory and local store contains initial state.
Expected behavior

State in local storage remain over multiple pages refreshs
Minimal reproduction of the problem with instructions

Source code here
Environment

Angular version: 5.2.6

Browser:
- [X] Chrome (desktop) version 67.0.3396.99 (64 bits)
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 8.11.1
- Platform:   Linux Mint

Thanks for the report. I will check it soon.

A new version is on the way; please let me know when you test it. Thanks.

:tada: This issue has been resolved in version 1.2.2 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:

Very good. It's working! Thank you!

I like your code. By the way, you can do this:
favorites$ = this.selectAll({ filterBy: l => l.isFavorite })).pipe(distinctUntilChanged(isEqual));

instead of:
favorites$ = this.selectAll().pipe(map(lines => lines.filter(l => l.isFavorite)), distinctUntilChanged(isEqual));

Also, you gave me inspiration for the regular stores. Updated the CLI. Regular stores didn't output a model file and added create initial state function for them.


[HUDI-244] : Hive sync should escape partition field name

now supports field names beginning with '_' for e.g

@firecast fyi

@vinothchandar I don't think this will work. Because there is code before that to escape it.
List<String> partitionFields = new ArrayList<>();
    for (String partitionKey : config.partitionFields) {
      String partitionKeyWithTicks = tickSurround(partitionKey);
      partitionFields.add(new StringBuilder().append(partitionKey).append(" ")
          .append(getPartitionKeyType(hiveSchema, partitionKeyWithTicks)).toString());
    }

    String partitionsStr = partitionFields.stream().collect(Collectors.joining(","));

lets see if this passes.. (which it should). thanks for the bug report @firecast !

@vinothchandar : Tests passed. Going to add this to RC1


Change settings.xml to net format

see https://kodi.wiki/view/Add-on_settings_conversion

Solved with v1.0.1


Require good and bad channels when creating a SpectrumArray object

Failure reported today:
import numpy as np
from mne.datasets import sample
from mne.io import read_raw
from mne.time_frequency import SpectrumArray
from numpy.testing import assert_allclose

fname = sample.data_path() / "MEG" / "sample" / "sample_audvis_raw.fif"
raw = read_raw(fname, preload=False).pick("eeg").load_data()

spectrum1 = raw.copy().crop(0, 10).compute_psd()
spectrum2 = raw.copy().crop(10, 20).compute_psd()

# make sure you have the same freqs!
assert_allclose(spectrum1.freqs, spectrum2.freqs)

# array of shape (n_channels, n_freqs)
data1 = spectrum1.get_data()
data2 = spectrum2.get_data()
data = np.array([data1, data2])  # array of shape (n_spectrum, n_channels, n_freqs)
data = np.average(data, axis=0)

# recompute the Spectrum object
spectrum = SpectrumArray(data, spectrum1.info, spectrum1.freqs)
spectrum.plot()

Raises IndexError: index 59 is out of bounds for axis 0 with size 59 in spectrum.plot, i.e. the plotting functions expects the good and bad channels. And indeed, spectrum1 or spectrum2 include the bads, i.e. the underlying array as shape (60, ...).
Now, if instead you include the bad channels:
data1 = spectrum1.get_data(exclude=())
data2 = spectrum2.get_data(exclude=())

It will also raise but this time in the creation of the SpectrumArray: ValueError: The number of channels in data(60) must match the number of good data channels ininfo (59).
There is a clear inconsistency in what SpectrumArray expects and BaseSpectrum.plot expects. I think the cleaner fix is to have SpectrumArray require the good and bad channels; matching the behavior obtained by Spectrum when running inst.compute_psd(...).

This one looks real:
FAILED mne/time_frequency/tests/test_spectrum.py::test_spectrum_array_errors - AssertionError: Regex pattern did not match.
 Regex: 'number of channels.*good data channels'
 Input: 'The number of channels in `data` (4) must match the number of good + bads data channels in `info` (5).'


Detected jammy on amd64. Attempting to install dotnet from apt
(!) No full or partial for package "dotnet-sdk" (resolved: "") match found in apt-cache for "6.0" on OS ubuntu jammy (amd64).
Continuing to fallback method if available
Failed to find requested version.

APT_DOTNET_VERSION =6.0.116-0ubuntu1~22.04.1
DOTNET_PACKAGE dotnet-sdk-6.0-source-built-artifacts
Installing 'dotnet-sdk-6.0-source-built-artifacts=6.0.116-0ubuntu1~22.04.1 '...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  dotnet-sdk-6.0-source-built-artifacts
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2873 MB of archives.
After this operation, 2917 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-sdk-6.0-source-built-artifacts amd64 6.0.116-0ubuntu1~22.04.1 [2873 MB]
Fetched 2873 MB in 4min 51s (9885 kB/s)
Selecting previously unselected package dotnet-sdk-6.0-source-built-artifacts.
(Reading database ... 64171 files and directories currently installed.)
Preparing to unpack .../dotnet-sdk-6.0-source-built-artifacts_6.0.116-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-sdk-6.0-source-built-artifacts (6.0.116-0ubuntu1~22.04.1) ...
Setting up dotnet-sdk-6.0-source-built-artifacts (6.0.116-0ubuntu1~22.04.1) ...
./install.sh: line 234: dotnet: command not found
./install.sh: line 236: dotnet: command not found
Done!

which leads to a non existant dotnet binary

Hi 👋
Thanks for reporting!
@alexander-smolyakov can you help investigate the issue? Thanks!

Hey @KIC, I have managed to reproduce the issue. At the moment, I'm trying to determine the root cause of it. As the temporal fix, could you please set the installUsingApt option to false for the dotnet feature?
"ghcr.io/devcontainers/features/dotnet:1": {
            "version": "6",
            "installUsingApt": false
        },

Related doc: https://github.com/devcontainers/features/blob/main/src/dotnet/README.md#options

It seems the issue is related to picking the wrong dotnet distribution from the packages repo. We have two distributions in the jammy repo:
dotnet-sdk-6.0 (6.0.116-0ubuntu1~22.04.1) [universe] [security]
  dotNET 6.0 Software Development Kit
dotnet-sdk-6.0-source-built-artifacts (6.0.116-0ubuntu1~22.04.1) [universe] [security]
  Internal package for building dotNet 6.0 Software Development Kit

For some reason feature picks dotnet-sdk-6.0-source-built-artifacts when it should pick dotnet-sdk-6.0. I will investigate how we can adjust feature behavior.


Maximal using IComparable && more Function/PrimitiveTest 'factories' in Language

Don't merge this yet - I got the create delegate logic wrong

Working now


chore: dependency upgrade and adjustments due to major version changes

Hey made a dependency upgrade for Angular 15.x
Also did some adjustments to fix gulp/sass issues

What gulp sass issues? That lib is only for test purposes.
I'll do some checks and fix it myself if necessary.

gulp does not include sass anymore after upgrade. Maden an upgrade of all dependencies

hi @BernhardBehrendt I just released V15! Cheers!


new icon for memorial

as the current one is more suited for grave yard.
Maybe use current monument icon for memorial and make another one for monument.

Am 22.05.2015 um 09:35 schrieb nebulon42<EMAIL_ADDRESS>Maybe use current monument icon for memorial and make another one for monument.

the monument icon is too monumental for memorials IMHO

May be the case, but I'm having no other ideas just yet, will think of it some more. Do you have an opinion on the "current memorial icon looks like grave yard" observation?

current memorial icon looks like grave yard

IMHO it is true.


Add pagination for pickups

Closes #952
What does this PR do?
Adds pagination for GroupPickups.vue

Links to related issues
https://github.com/yunity/karrot-frontend/issues/952
Checklist

[x] added a test, or explain why one is not needed/possible...

I can't find an existing test for the GroupPickups.vue page, so I'm not sure if it was intentionally omitted. ( I'll be glad to add one if not though 😄 )

[x] no unrelated changes
[x] asked someone for a code review
[x] joined #karrot-dev channel at https://slackin.yunity.org
[x] added an entry to CHANGELOG.md (description, pull request link, username(s))

Hi @ang-zeyu, welcome! Nice work :)
One thing I noticed is that the filter count becomes misleading: it shows "10/10", whereas it's rather 30 entries on 3 pages.

I wonder if we should move pagination into PickupList?

Hi @tiltec , thanks for looking through this!

I wonder if we should move pagination into PickupList?

I realised less than 10 entries may show too actually, in addition to it being misleading, which isn't ideal.
Should we add an additional label of some sort beside the filter count to clarify what it shows, in addition to moving pagination into PickupList?
E.g.
Perhaps something like 1-10 out of 23 results for <filter name> ( from amazon )
Issue being internationalisation is needed, which's workflow I'm not too familiar with. ( is full internationalization usually pushed together with a feature here? )

Issue being internationalisation is needed, which's workflow I'm not too familiar with. ( is full internationalization usually pushed together with a feature here? )

No, we use https://www.transifex.com/ for that so you don't need to worry about that - just make sure text is in English.
I actually wondered if this would be better and more consistent as an infinite scroll (as we use that pattern elsewhere).
I would also be happy with it as seperate pages though as it is here, just with the "1-10 out of 23 results" bit implemented.

Sorry for the late update!

I actually wondered if this would be better and more consistent as an infinite scroll (as we use that pattern elsewhere).

Went with this, think its more consistent as well :+1:


Linking failing when compiling for wasm32-wasi

error: linking with `rust-lld` failed: exit code: 1
  |
  = note: "rust-lld" "-flavor" "wasm" [...] "-l" "stacker" "-l" "psm_s"
  = note: rust-lld: error: unable to find library -lstacker
          rust-lld: error: unable to find library -lpsm_s

Huh, the CI actually even runs tests for the wasm32-wasi target as added in #40.

Please do provide more information either way.

cc @alexcrichton

This was the error I was getting before #40, can you confirm that you're using versions with #40 in them?

With psm 0.1.11 and stacker 0.1.10 it works fine.


Does skywalking 5.0.0 GA require springboot version

Please answer these questions before submitting your issue.

Why do you submit this issue?
[x] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
Does skywalking 5.0.0 GA require springboot version?

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.

Requirement or improvement

Please describe about your requirements or improvement suggestions.

We didn't require. Maybe some plugins need.


🔧 Suggestion for recommended extensions

resolves #2577
Suggested recommended extensions, with some personal recommendations such as rainbow-brackets 🌈

dbaeumer.vscode-eslint
stylelint.vscode-stylelint
esbenp.prettier-vscode
editorconfig.editorconfig
redhat.vscode-yaml
unifiedjs.vscode-mdx
deque-systems.vscode-axe-linter
styled-components.vscode-styled-components
aaron-bond.better-comments
seatonjiang.gitmoji-vscode
usernamehw.errorlens
donjayamanne.githistory
ms-vsliveshare.vsliveshare-pack
davidanson.vscode-markdownlint
ionutvmi.path-autocomplete
2gua.rainbow-brackets
jock.svg
github.vscode-pull-request-github

Did you test the extensions with Gitpod? Got "Couldn't find branch and path for chore/MIM-2577-extensions-recommendations in repo equinor/design-system."

@nilsml How did you test it?
I tested using the link provided by gitpod in the "checks" on this PR. Works fine.


Add proper tests for all functions

Right now, we only use a smoke test, i.e., ensure that running the examples does not crash. We should have proper tests that verify each function separately and also validate the results.

Partially fixed by #17. Still missing are unit tests for all the bootstrapping functionality.


Check remote refs instead of local refs when applying/pushing changes

With recent changes to use sparse checkout in our release steps, the assumption that all remote refs will be downloaded to the local git state no longer holds. This updates our git branch push script to check for pre-existing branches via git ls-remote instead, and additionally constrains the git fetch command to only fetch relevant refs.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

Template pipeline: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=922280&view=logs&j=3209e245-f6ba-5d50-799f-1562c2eae04f&t=37ce2dc7-5e9f-573b-8bc7-a6f98ce6968f
Right now that pipeline exercises the script against a full checkout, since the java repo reverted the sparse checkout. Testing for the latter scenario will gate https://github.com/Azure/azure-sdk-for-java/pull/21912.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


[kuttl] Mount ceph secrets to manila share

/retest

@gouthampacha #193 is blocked due to kuttl failures because #49 merged before this one. We need to rebase and merge this one to unblock CI

@gouthampacha FYI I rebased this patch because the probes PR broke CI (/cc @vhariria)

Kuttl passed but somehow we've lost OCP API during must-gathering.

/test manila-operator-build-deploy-kuttl

go build -o bin/manager main.go
+ oc new-build --binary --strategy=docker --name manila-operator --to=quay.rdoproject.org/openstack-k8s-operators/manila-operator:3f0f1f57aba0f2941451d988a02152f8732ba33b --push-secret=push-quay-secret --to-docker=true
    * A Docker build using binary input will be created
      * The resulting image will be pushed with Docker to "quay.rdoproject.org/openstack-k8s-operators/manila-operator:3f0f1f57aba0f2941451d988a02152f8732ba33b"
      * A binary build was created, use 'oc start-build --from-dir' to trigger a new build

--> Creating resources with label build=manila-operator ...
    buildconfig.build.openshift.io "manila-operator" created
--> Success
+ oc set build-secret --pull bc/manila-operator pull-docker-secret
error: failed to patch secret  etcdserver: request timed out

/retest-required

/test manila-operator-build-deploy-kuttl


Request: change EPA CEMS variable descriptions

Below I've listed the current variable descriptions for each of the EPA CEMS variables, as well as my proposed change. I think these changes are helpful because they're sometimes more correct (e.g. plant_id_eia vs facility_id) or are more precise about units.
For some variables, particularly steam_load_1000_lbs, facility_id, and unit_id_epa, I'm a little unsure what to write.
CC: @cmgosnell and @gschivley

id

Current: PUDL-issued surrogate key.
Proposed: Unique PUDL-issued plant-unit-hour key (may change between PUDL versions).

state

Current: State the plant is located in.
Proposed: no change

plant_id_eia

Current: EIA Plant Identification number. One to five digit numeric.
Proposed: The unique six-digit facility identification number, also called an ORISPL, assigned by the Energy Information Administration.

unitid

Current: Facility-specific unit id (e.g. Unit 4)
Proposed: no change

operating_datetime_utc

Current: Date and time measurement began.
Proposed: Date and time measurement began (UTC).

operating_time_hours

Current: Length of time interval measured.
Proposed: no change

gross_load_mw

Current: Power delivered during time interval measured.
Proposed: Average power in megawatts delivered during time interval measured.

steam_load_1000_lbs

Current: Total steam pressure produced by a unit or source in any calendar year (or other specified time period) produced by combusting a given heat input of fuel.
Proposed: Not sure, but should be specific to the hour, not the year

so2_mass_lbs

Current: Sulfur dioxide emissions in pounds.
Proposed: no change

so2_mass_measurement_code

Current: Identifies whether the reported value of emissions was measured, calculated, or measured and substitute.
Proposed: no change

nox_rate_lbs_mmbtu

Current: The rate at which NOx in was emitted in pounds per million BTU.
Proposed: no change

nox_rate_measurement_code

Current: Identifies whether the reported value of emissions was measured, calculated, or measured and substitute.
Proposed: no change

nox_mass_lbs

Current: Nitrogen oxide emissions in pounds.
Proposed: NOx emissions in pounds.

nox_mass_measurement_code

Current: Identifies whether the reported value of emissions was measured, calculated, or measured and substitute.
Proposed: no change

co2_mass_tons

Current: Carbon dioxide emissions in short tons.
Proposed: no change

co2_mass_measurement_code

Current: Identifies whether the reported value of emissions was measured, calculated, or measured and substitute.
Proposed: no change

heat_content_mmbtu

Current: The measure of utilization that is calculated by multiplying the quantity of fuel by the fuel's heat content.
Proposed: The energy contained in fuel burned, measured in million BTU.

facility_id

Current: The unique six-digit facility identification number, also called an ORISPL, assigned by the Energy Information Administration.
Proposed: New EPA plant ID.

unit_id_epa

Current: Unique EPA identifier for each unit at a facility.
Proposed: New EPA unit ID.

hey @karldw ! Lots of these changes look great to me. I'm also unsure about those three fields, but for implementation you can to add these directly into the models for now on the master branch. I'm able to regenerate the metadata for the data packaging based on the current state of the database and I'll probably keep that functionality until the actual switch over date... which is probably still two weeks out. Until then, you can change the comments in models and after that you'll be able to modify the metadata in pudl/src/pudl/package_data/meta/data_package/datapackge.json.

gross_load_mw
Current: Power delivered during time interval measured.
Proposed: Average power in megawatts delivered during time interval measured.

delivered might imply to the grid or a final consumer. Maybe Average gross power in megawatts produced during the time interval measured?

heat_content_mmbtu
Current: The measure of utilization that is calculated by multiplying the quantity of fuel by the fuel's heat content.
Proposed: The energy contained in fuel burned, measured in million BTU.

Worth noting that it is calculated using CO2 measurements rather than measuring fuel inputs?

facility_id
Current: The unique six-digit facility identification number, also called an ORISPL, assigned by the Energy Information Administration.
Proposed: New EPA plant ID.
unit_id_epa
Current: Unique EPA identifier for each unit at a facility.
Proposed: New EPA unit ID.

Does new mean that they were created in PUDL?

plant_id_eia
Current: EIA Plant Identification number. One to five digit numeric.
Proposed: The unique six-digit facility identification number, also called an ORISPL, assigned by the Energy Information Administration.

Worth noting that in rare cases the plant id is different in EIA data?

I didn't know heat content was calculated from CO2. That's interesting.

facility_id
Proposed: New EPA unit ID.

Does new mean that they were created in PUDL?

No, they're from EPA, not generated by PUDL. The "new" part of that was only because they don't go all the way back to the oldest CEMS data. How about "EPA plant ID" and "EPA unit ID"?

From the plain english guide to Part 75.. F-factors are provided in Appendix F of Part 75.

Hey @karldw! I started pulling these in changes into the metadata. I embellished a bit on the facility_id and the unit_id_epa to make them more descriptive, but you know these fields better than I do so feel free to change them.

Hey @cmgosnell, I didn't write a PR! I think the facility_id and unit_id_epa (called FAC_ID and UNIT_ID in the original EPA CSV) are not assigned by EIA. I assume they're assigned by EPA, though I'm not sure what system they refer to. Would it be helpful if I made a PR with this change?

Maybe worth noting: there are a lot of different plant ID systems. For example, here's a listing for the Rathdrum plant in Idaho: https://ofmpub.epa.gov/enviro/fii_query_detail.disp_program_facility?pgm_sys_acrnm_in=EIA-860&pgm_sys_id_in=7456
The corresponding facility_id is 966 with unit IDs 3118 and 3119.

Hey some of these changes seem to have not come through for some reason so I'm going to re-open this just to keep track of the need to update them....


IPAM should not allocate the first IP address and last address!

In my environment,  configuration is as follows, In availableIPAddresses the first address <IP_ADDRESS> and the last address <IP_ADDRESS> should not be allocated, but it does.
root@localhost ~]# netctl net inspect vlan-66
{
"Config": {
"key": "default:vlan-66",
"encap": "vlan",
"gateway": "<IP_ADDRESS>",
"networkName": "vlan-66",
"nwType": "data",
"pktTag": 66,
"subnet": "<IP_ADDRESS>/24",
"tenantName": "default",
"link-sets": {
"EndpointGroups": {
"default:epgA": {
"type": "endpointGroup",
"key": "default:epgA"
}
}
},
"links": {
"Tenant": {
"type": "tenant",
"key": "default"
}
}
},
"Oper": {
"allocatedAddressesCount": 11,
"availableIPAddressesCount": 243,
"allocatedIPAddresses": "<IP_ADDRESS>-<IP_ADDRESS>, <IP_ADDRESS>-<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>",
"availableIPAddresses": "<IP_ADDRESS>, <IP_ADDRESS>-<IP_ADDRESS>, <IP_ADDRESS>-<IP_ADDRESS>, <IP_ADDRESS>-<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>",
"networkTag": "vlan-66.default",
"numEndpoints": 7,
"pktTag": 66
}

IPAM doesn't allocate first/last ip address.

In my env , it appeared.
My resolve solution is :
In netutils.go    modify NextClear method as bellow:
// NextClear wrapper around Bitset to check max id
func NextClear(allocMap bitset.BitSet, idx uint, subnetLen uint) (uint, bool) {
maxHosts := uint(1 << (32 - subnetLen))
for {
value, found := allocMap.NextClear(idx)
if found && value == 0 {
idx = value + 1
continue
}
	if found && value >= maxHosts-1 {
		return 0, false
	}

	return value, found
}

}


Error - November 417 Silver Sunrise

Description of the issue
I have problem start BLACKOUT with Core Map + gamemode: heavy and heroes.
When start game show me error - November 417 Silver Sunrise :(
PS: Can I change the value of life? gravity? duration and size of zones?
Thx Fix My Problem! Very Good Job and your WORK! :)
Do I want to contribute to fix it?
None
Something else?
No response

When you say "heavy and heroes", are you talking about using that in the configs?
self.force_blackout_gametype = "warzone_heavy_metal_heroes";

Because it can be that you wrote warzone_heavy_metal, without the heroes it's a bug with the mode itself.
Also no, I didn't add things like that

Hi! Yes! I'm talking about : self.force_blackout_gametype = "warzone_heavy_metal_heroes";
I enter everything as above :( and.. SHOW ERROR!

Show Me Critical Error, number :<PHONE_NUMBER>

any solution? :)

sorry I was busy with cw, I'm checking that right now

Ach... :) ok! I'm waiting... Please tell me if I can do the following in blackout: control zone? or set game time?
Thank You very much! Thx for WORKS! Sorry my english :)

It should be fix.
About the zones or the game time, you don't have such options in this mod, but you can ask the guys on this discord server: https://discord.gg/FUbGY8T
They're doing a lot of Blackout

New problem, when I do injection, I get the following message: The index exceeded the limits of the array

T7/T8 Compiler version <IP_ADDRESS>, by Serious
Checking client version... (our version is<PHONE_NUMBER>006)
223 ms compile time (excluding irony)
-- 198,9998 ms to build the structure.
-- 24,0002 ms to commit to binary.

This one is an error with the latest version of the compiler itself.

Is there any way to fix this?

I sent the error to serious, he’ll probably fix it soon


[FEAT] Add CD process with Heroku

Transfer our current mock/cache server process into our new repo (Use same Heroku app and URL)

Server is  running on https://Anyway-mock-server.herokuapp.com


Integration/E2E tests for Mint, Upgrade and Upload transactions

Context
Unlike Script and Create transactions, we can't create the above transaction types using the SDK. Mint transactions are created by the block producer, and Upgrade/Upload transactions represent network state transitions.
We have unit tests for these transaction types however they only validate the bytes produced by the coders. Meaning any change to the underlying encoding specification that is not reflected in the transaction coders will mean a false positive in our test suite. We require an integration/E2E test to validate that the transaction bytes are correct as those expected by the client.
#2354 attempted to solve for this by testing against hardcoded transaction IDs on devnet that are known to be of the above transaction types. The concern here is that these tests remain tied to a specific version of the network.
We should solve for the above problem but ideally the complete solution would supported different versions of the network in tandem, via multi-version E2E test infrastructure.
Problems

Integration/E2E tests for Mint, Upgrade and Upload transactions
Multi version E2E test infrastructure, encapsulating multiple network versions and wallet addresses

Could we have integration tests for these using a local node?

@arboleya For a Mint TX yes, but unfortunately, no for Upgrade / Upload TX.
Since the TS SDK does not support submitting them, there won't be a simple way to have these 2 TX types exist in a local node.

An additional problem here is that we'll have devnet/testnet/mainnet, which will be different versions of fuel-core (and possibly forc), so we'll have to run the e2e tests with sdk versions compatible with those networks (e.g. via release tags).

Could we submit Upgrade / Upload using the Rust SDK?

Yes we could, but we'd have to have a separate rust app that we'd build+run for these tests, which isn't ideal but might be the only approach we have currently. I think it would be worthwhile to investigate this avenue.

We already got e2es for Mint TX via:

https://github.com/FuelLabs/fuels-ts/pull/2505

The rest may not be necessary for a long time, so I updated the issue title/desc/priority accordingly.


Regular customer details information gets stored

I am online to accept the PR just do it ASAP

@HarshwardhanPatil07 please assign the issue to me
and provide more description about the issue

@harshsharma-11 those who shop and visit website regularly those information
I am assigning but i need it within 2 days or the assign gets removed
Thank you!

you haven't provide any info how to setup it locallly so i am unassigning me

NW bro better luck nxt time to get project "on which you can work on"
Thanks!


Add support for Triodos

please add support for triodos
mutations20201230172942.zip

I figured it out myself https://github.com/DanielsWrath/YNABGoingDutch/pull/40


Unchain all variables after running extensions

When the configuration.config.keep_graph_on_report flag is turned on, the computational graph created by the updater is kept and seems not to be released in current implementation.
I added the unchain_backward() after all extensions are executed.

Why don't you implement this feature as an Extension?

Thank you for your recommendation, I just didn't reach this idea.
I will re-implement as an Extension and commit.


usage of (... histogram)in (value = typeof _ === "function" ? _ : constant(_), histogram) in histogram.value()

I am learning d3-array by reading both doc and src. histogram.value's doc is very detailed but still quite vague for me to grasp. The source code helps make more sense of doc, but I am still not very sure I understand the logic probably.
Here is what I understand about histogram.value(value):

purpose of this code is to set value using, identity or other functions;
if no arg is given, using identity function
if arg is given and arg is a function, then use this function
if arg is not a function, then set value to be  constant(_) in which _ stands for the arg; but this part of code is  constant(_), histogram, I don't understand why these is histogram, nor constant() seem do anything meaningful to the arg _.

I don't understand why there is a histogram inside (value = typeof _ === "function" ? _ : constant(_), histogram).  Could you explain a little more?  Could you make another simpler example setting values for histogram.value, histogram.domain, histogram.thresholds without using scaleLinear?
by the way, is constant(_), histogram a use of comma operator ?  If it is, what does this line of code mean?
Thanks

Hi @EmbraceLife. I appreciate your curiosity, but alas I am on vacation and won’t be able to explain the code in further detail. You might try Stack Overflow tag d3.js or the d3-js Google group if you want help understanding this code. Good luck!

Thank you @mbostock I will do that