Error in using set_starting_point()

Hi there seems to be an error in setting starting solution for cp optimizer. I first obtain a solution the the restricted version of my original problem. I query the solutionResult and store it in msol. Then I generate CpoModelSolution variable by calling msol.get_solution(). But when I try to set starting point using this solution variable by calling mdl.set_solution(msol.get_solution()) (suppose my model is mdl), I get the following error:

TypeError                                 Traceback (most recent call last)
 in ()
1 fullcp = gen_pure_cp(tM, dM)
2 fullcp.set_starting_point(msol.get_solution())
----> 3 msol_pure_cp = fullcp.solve(TimeLimit = 300, LogVerbosity = 'Verbose')
4 with open('../log/full-cp40.txt', 'a') as pure_cp_log:
5     pure_cp_log.write(msol_pure_cp.get_solver_log())
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/model.py in solve(self, **kwargs)
890             :class:~docplex.cp.utils.CpoException: (or derived) if error.
891         """
--> 892         solver = self._create_solver(**kwargs)
893         msol = solver.solve()
894         solver.end()
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/model.py in _create_solver(self, **kwargs)
1306             New solver properly initialized.
1307         """
-> 1308         solver = CpoSolver(self, **kwargs)
1309         for l in self.listeners:
1310             solver.add_listener(l)
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/solver/solver.py in init(self, model, **kwargs)
429
430         # Determine appropriate solver agent
--> 431         self.agent = self._get_solver_agent()
432
433         # Add solver listener for environment
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/solver/solver.py in _get_solver_agent(self)
886         if is_string(alist):
887             aname = alist
--> 888             agent = self._create_solver_agent(alist)
889         else:
890             # Search first available agent in the list
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/solver/solver.py in _create_solver_agent(self, aname)
952
953         # Create agent instance
--> 954         agent = sclass(self, sctx.params, sctx)
955         return agent
956
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/solver/solver_local.py in init(self, solver, params, context)
127
128         # Convert model into CPO format
--> 129         cpostr = self._get_cpo_model_string()
130
131         # Encode model
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/solver/solver.py in _get_cpo_model_string(self)
253         stime = time.time()
254         cplr = CpoCompiler(self.model, params=self.params, context=self.context.get_root())
--> 255         cpostr = cplr.get_as_string()
256         self.expr_map = cplr.get_expr_map()
257         self.process_infos[CpoProcessInfos.MODEL_COMPILE_TIME] = time.time() - stime
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/cpo_compiler.py in get_as_string(self)
172         # Print the model into a string
173         out = StringIO()
--> 174         self.write(out)
175         res = out.getvalue()
176         out.close()
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/cpo_compiler.py in write(self, out)
272             out.write(u"startingPoint {\n")
273             for var in spoint.get_all_var_solutions():
--> 274                 self._write_starting_point(out, var)
275             out.write(u"}\n")
276
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/cpo_compiler.py in _write_starting_point(self, out, var)
353             self._compile_interval_var_starting_point(var, cout)
354         else:
--> 355             raise CpoException("Internal error: unsupported starting point variable: " + str(var))
356         # Write variable starting point
357         out.write(self._get_expr_id(var) + u" = " + u''.join(cout) + u";\n")
~/anaconda3/envs/opt/lib/python3.6/site-packages/docplex/cp/solution.py in str(self)
452     def str(self):
453         """ Convert this expression into a string """
--> 454         return self.get_name() + ": (" + ", ".join([v.get_name() for v in self.lvars]) + ")"
455
456
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Hi oriontang,
In fact, only integer_var(s) and interval_var(s) are allowed in a starting point. To bypass the problem, I recommand that you create a new CpoModelSolution just with this elements.
For the future, I will enhance documentation to precise this.
Moreover, because you are using a solution that may contain other elements, I will change the code to just ignore what is not integer_var(s) and interval_vars().
Thanks a lot to have informed us about this problem.

Hi ooudot, thanks for the reply. To create a new CpoModelSolution variable with those elements, do I do the following: (say I have a CpoSolveResult var called msol and starting point var called start)
for sol in msol.get_all_var_solutions():
    if isinstance(sol, CpoIntVarSolution) or isinstance(sol, CpoInervalVarSolution):
        start.add_var_solution(sol)

Thanks!

Yes, sounds good, except typo in CpoInervalVarSolution :-)

Thanks a lot ooudot. Another thing I is when I tried to modify the source code under docplex/cp, it seems my change is not taking effect? For example if I comment out certain parts of conditional statement, the code still produces the same error as before. Do I need to recompile things to make python API change accordingly?
Thanks again.

What do you mean by "modify the source code under docplex/cp" ?
Otherwise, normally Python is recompiling automatically when source has been changed.

Closing this issue since there is no changes for more than 6 months. Feel free to open a new issue if needed.


AttributeError: module 'sqlalchemy' has no attribute 'all'

I can't figure out how to solve this issue, it was working fine until it wasn't.
2023-01-26 21:06:40   File "/usr/src/app/server/src/main.py", line 106, in <module>
2023-01-26 21:06:40     app = init_app_without_routes()
2023-01-26 21:06:40   File "/usr/src/app/server/src/main.py", line 54, in init_app_without_routes
2023-01-26 21:06:40     db = SQLAlchemy(app)
2023-01-26 21:06:40   File "/usr/local/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py", line 720, in __init__
2023-01-26 21:06:40     _include_sqlalchemy(self, query_class)
2023-01-26 21:06:40   File "/usr/local/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py", line 74, in _include_sqlalchemy
2023-01-26 21:06:40     for key in module.__all__:
2023-01-26 21:06:40 AttributeError: module 'sqlalchemy' has no attribute '__all__'

I added SQLAlchemy==1.2.19 to requirements.txt in the root folder and the /server/src folder and was able to build successfully.

Thank you! that fixed the issue. I'm super confused because I was able to run it without this missing dependency and then it didnt work

thank you for reporting @mikeki, and thank you for sharing the solution @carlozt03! this was caused by the release of SQLAlchemy 2.0.0 a couple days ago and SQLAlchemy only being included in Trotto as an indirect dependency, now fixed with https://github.com/trotto/go-links/pull/195.

for key in module.all:
AttributeError: module 'sqlalchemy' has no attribute 'all'. Did you mean: 'file'?
kindly please help


Error in cMake step

Hi,
Thanks for the tutorial. Kindly check the error which I am getting while running make
Error log

It seems an error related to a compiler without support for C++11
#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
We tested on the three major OSes, so it should be a configuration issue. Can you share some info on your platform?

Thanks @unosviluppatore
System settings are as follows:
Ubuntu 16.04.6 LTS
Memory: 16GB```

According to C++ Standards Support in GCC you need at least GCC 4.8.1 to have C++11 support. The base version installed on Ubuntu 16.04 is less than that. What is the version you have installed on your system?
As a solution you can try to replace these lines (194-196) in the file CMakeLists.txt:
if (APPLE)
  set(CMAKE_CXX_FLAGS "-Wdeprecated -std=c++11" )
endif()

with these lines:
if (NOT WIN32)
  set(CMAKE_CXX_FLAGS "-Wdeprecated -std=c++11" )
endif()

Then you should repeat the cmake command.


wilderness is not checking for block-break + other flags seem to work but no messages on deny

GP 597
Sponge 3105
Forge 2655
https://luckperms.github.io/verbose/?xqrj731ulV/
(user sucessfully breaks a grass block)
/claiminfo
http://prntscr.com/jq2g7f
Flags:
http://prntscr.com/jq2hs5
There is only one wilderness file with the file name that matches the world uuid and uuid in /claiminfo. So that should be ok.
Placing is denied, but without a message:
https://luckperms.github.io/verbose/?xLPCFcXlwP
Block-break handling in basic and admins claims is working.

Can confirm broken here too
SpongeForge 1.12.2-2705-7.1.0-BETA-3136
GP <IP_ADDRESS>7
LuckPerms 4.2.20
GPDebug done with Block-Break default set FALSE in Wilderness, and ClaimFlagDebug ON
https://griefprevention.github.io/debug/?bIBjBTlAPJ


Recommend workflow?

A question asked in #15 was about the recommended workflow. Is it easiest to fork the repository of the Standard for Public Code, make changes, and then make a pull request towards this repository? Or is there some other way that we believe would be easier?
Either way, we should probably describe in the README what might be a good way of doing it, noting that we are not prescriptive in how it is being done.

I consider this resolved by #33


Router crashed while attempting to add queue through console

2017-09-05 15:18:53.738899 +0000 SERVER (info) Accepted connection to <IP_ADDRESS>:5672 from <IP_ADDRESS>:45234
*** Error in `/sbin/qdrouterd': double free or corruption (fasttop): 0x00007f4208072ab0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x791bb)[0x7f4215d5a1bb]
/lib64/libc.so.6(+0x8282a)[0x7f4215d6382a]
/lib64/libc.so.6(cfree+0x4c)[0x7f4215d6725c]
/usr/lib/qpid-dispatch/libqpid-dispatch.so(qd_hash_remove_by_handle+0x29)[0x7f42162ecbd9]
/usr/lib/qpid-dispatch/libqpid-dispatch.so(qdr_core_remove_address+0x1f)[0x7f421630593f]
/usr/lib/qpid-dispatch/libqpid-dispatch.so(+0x3ca72)[0x7f4216301a72]
/usr/lib/qpid-dispatch/libqpid-dispatch.so(router_core_thread+0x14e)[0x7f421630620e]
/lib64/libpthread.so.0(+0x773a)[0x7f42160ae73a]
/lib64/libc.so.6(clone+0x3f)[0x7f4215de8e0f]
router_failure.txt

Some time after this failure I saw infinite looping when trying to create a queue named "queue" using the console
router_loop_on_create_queue.txt
ragent_loop_on_create_queue.txt

router-failure2.txt
Another failure, again while adding queues through the console.  Subsequent to the router failure the same inifnite looping behaviour was observed

Caused by https://issues.apache.org/jira/browse/DISPATCH-820


Is it possible to change icons?

No, these are drawn programmatically. So to add more icons, new icons have to be coded.


os: Readdir swallows partial results if it fails to Lstat any file in the listing

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.10.1 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOHOSTOS="linux"
What did you do?
Test program here
https://play.golang.org/p/Xgvoi1GQGUv
It is hard to reproduce but when using fuse sometimes the mount point becomes disconnected. In this case when you try to do a lstat() of it you get "transport endpoint is not connected" (Google for that to see that it is a common thing). Anyway the issue is really that when a directory contains a disconnected mount point like this, then Golang's readdir variants (os.Open + Readdir and ioutils.ReadDir()) break out of the loop as soon as they can not Lstat one of the files in the directory and this either returns no results in the case of ioutils or randomly less results in the case of os.Open + Readdir.
This is very surprising and leads to weird program failures because an external event (unclean mount point) suddenly causes the entire directory listing to fail in Go programs. The directory is fine for e.g. ls - you can see how /bin/ls shows it:
$ ls -l /
ls: cannot access '/mnt': Transport endpoint is not connected
total 2235132
drwxr-xr-x   2 root root      12288 Aug 24 07:35 bin
drwxr-xr-x   3 root root       4096 Aug 30 06:38 boot
...
drwxr-xr-x   2 root root       4096 May  3 15:48 lib64
drwx------   2 root root      16384 Sep 26  2017 lost+found
drwxr-xr-x   5 root root       4096 Feb  9  2018 media
d?????????   ? ?    ?             ?            ? mnt
drwxr-xr-x   4 root root       4096 Jun 28 12:41 opt
dr-xr-xr-x 362 root root          0 Jun 27 23:02 proc
...
-rw-------   1 root root<PHONE_NUMBER> Dec 17  2017 swapfile
dr-xr-xr-x  13 root root          0 Sep  1 01:28 sys
drwxrwxrwt  89 root root     102400 Sep  1 01:51 tmp
drwxr-xr-x  14 root root       4096 Dec 29  2017 usr

The issue is in os/dir_unix.go exiting out of the loop in case of an lstat error.
A more robust implementation is possible by copying out the code from dir_unix.go and modifying it (https://play.golang.org/p/UFvrro7cqqu) so maybe this is a valid workaround but IMHO almost every user of ioutil.ReadDir() expects to get some results back - it is unexpected to just have the entire directory listing fail because someone has put a fuse mount inside it.
Semantically to me at least, when I call ReadDir on a directory (say "/"), then any error that I get back should relate to the directory itself. I was surprised that I was unable to ReadDir("/") when a subdir of "/" was actually un-stat'able. The error does not seem to relate to the thing I was calling the function on.
What did you expect to see?
I expected partial results with all the results that could be stat'ed. Maybe add an empty FileInfo for the bad mount point or omit it.
What did you see instead?
ReadDir() returns an error and no results - weird since I can totally do an "ls -l /" and this works fine.

Just spent 2+ hours debugging a problem around this bug. It should not happen!
In our project we needed to reimplement ReadDir() ourselves to work around this bug
https://github.com/Velocidex/velociraptor/blob/master/utils/file_linux.go#L28
But there was an odd place where ioutils.ReadDir() was used instead of our fixed version.
We should not need to reinvent parts of the standard library - please consider fixing this for good. It is extremely frustrating to spend time chasing bugs in standard libraries - resorting to very careful analysis of strace output to notice that getdents64 returns 82 entries but we only have 52 newfstatat() calls!
This is a high severity bug it should get more attention.

I don't know what the right thing to do is here.  What should happen if there is more than one error calling lstat?

Just hit the same bug again with macos. Turns out there is a standard file on MacOS that can not normally be stat'ed meaning the entire directory can not be listed:
[DEBUG] 2021-12-03T17:06:14+10:00 Globber.ExpandWithContext: lstat /var/db/DifferentialPrivacy: operation not permitted while processing /var/db

I suspect it is therefore impossible to list /var/db/ on macos.

I don't know what the right thing to do is here. What should happen if there is more than one error calling lstat?

Now that errors.Join is a thing, maybe it can be used to handle multiple errors?

I don't think it's going to make sense for a function like os.File.Readdir to return a list of errors.
That said, as of Go 1.16 we now have os.File.ReadDir (the only difference is that a d changed to a D) which on Linux with most file systems won't call lstat at all.  So people encountering this problem today should switch to that.
Looking at the code that does call lstat, if lstat returns ENOENT we just ignore the error and don't return the file.  Perhaps we should do the same for ENOTCONN.


finish cl_abap_zip implementation

start added in https://github.com/open-abap/open-abap/pull/359
somewhat possible, needed for both abapGit and abap2xslsx unit testing

Wouldn't it make more sense to implement this in js? I assume it's possible, not really sure.
I'm sure you can implement deflate and ZIP headers in ABAP, but sounds like a lot of work, and pretty dumb

zip can call https://github.com/open-abap/open-abap/blob/main/src/cl_abap_gzip.clas.abap#L31
so its "just" sorting out all the header stuff
open-abap is meant for ABAP developers, so as much of it possible should be ABAP, as such
plus I'd like to avoid adding js dependencies from npm

not needed in this case, but I implemented deflate in all ABAP some years ago = https://github.com/larshp/zazlib


npm ERR! code E404

Hello,
Cloning the master from this repo gives me an NPM error while trying to run npm install.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "path:\\to\\nodejs\\node.exe" "path:\\to\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.5.0
npm ERR! npm  v3.7.1
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/foundation-emails
npm ERR! 404
npm ERR! 404  'foundation-emails' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'foundation-emails-template'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Obviously it states that it can't find the foundation-emails package in the npm registry. I noticed this reference in the package.json:
  "dependencies": {
    "foundation-emails": "2.0.0-rc.1"
  }

What does this package do and where can it be found? Thanks in advance!

Foundation for Emails 2 is being open-sourced on Thursday (shhh!)—this template was updated today to prepare for that. Until then, it's not quite fully operational, because we haven't published the foundation-emails package to npm yet. So stay tuned! :)

Thanks, curious to see it then!


I got error after php artisan hook:install generate-migrations-hook

Hi! How could I solve this problem?
php 7.4
laravel 5.6 or laravel 6
ErrorException  : Undefined index: generate-migrations-hook
at vendor/laravel/framework/src/Illuminate/Support/Collection.php:1924
1920|      * @return mixed
1921|      */
1922|     public function offsetGet($key)
1923|     {

1924|         return $this->items[$key];
1925|     }
1926|
1927|     /**
1928|      * Set the item at a given offset.

Exception trace:
1   Illuminate\Foundation\Bootstrap\HandleExceptions::handleError()
vendor/laravel/framework/src/Illuminate/Support/Collection.php:1924
2   Illuminate\Support\Collection::offsetGet()
vendor/larapack/hooks/src/Hooks.php:235

Hey @devig
What composer version are you using?

Composer version 1.9.3

I have same issue.
Composer version: 1.6.3-1.
Laravel version: 7.x
Laravel Voyager version: 1.4


No help it Telegram bot

There no help in bot on telegram. Also it will be more usable with buttons menu.

This option was invented. Implemented by v1.2.3
Regard's, Jerry.


Update CI rules for Jazzy

Description
This PR sets up the Jazzy CI to only run jobs on Jazzy, like was done with the Humble branch.
Complementary PR to https://github.com/moveit/moveit2/pull/3142.
Checklist

[ ] Required by CI: Code is auto formatted using clang-format
[ ] Extend the tutorials / documentation reference
[ ] Document API changes relevant to the user in the MIGRATION.md notes
[ ] Create tests, which fail without this PR reference
[ ] Include a screenshot if changing a GUI
[ ] While waiting for someone to review your request, please help review another open pull request to support the maintainers

Seems like the coverage failure here may just require some cache clearing...

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 46.02%. Comparing base (f7f91be) to head (85af762).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           jazzy    #3141       +/-   ##
==========================================
+ Coverage       0   46.02%   +46.02%
==========================================
  Files          0      483      +483
  Lines          0    40631    +40631
==========================================
+ Hits           0    18697    +18697
- Misses         0    21934    +21934

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


NPTicket parser

LittleBigPlanet gives us tickets in an interesting format, this will need a parser to work. There exists one in lighthouse and refresh has a library for it, these should serve as good examples of what we need

Completed in 95d3660


[docs] Fix typo in grid.md

Fixed typo (contraints --> constraints)

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

A side note, GitHub picks the commit message when there is only one commit, not the PR's title:

@oliviertassinari Ah, gottcha. I will edit it to the title when merging a PR with one commit next time.


Fix typos in Safeguard and Spend pages

This PR fixes a few typos present in safeword.md and spend.md

interenet -> internet
suceptible -> susceptible
you -> you're
breif -> brief

Thank you


refactor(eslint): remove unnecessary eslint rule

The welcome screen does use an alert. Wouldn't removing this cause linting to fail?

Sorry. I was looking at the wrong repo. This makes perfect sense.

Thanks for catching this!


Add serverless verify to github action

Description
Changes proposed in this pull request:

Add lint check for serverless as github action
Add unit tests for serverless as github action

Related issue(s)
https://github.com/kyma-project/test-infra/issues/9463

/test all

/test all

/test all

/test all

/test pre-serverless-operator-build


[Feature request] Fullscreen-mode/setting size, position and "pinned" state of the widget

Is your feature request related to a problem? Please describe.
I cannot get my widget in true fullscreen mode - the top center navigation bar is blocking my manual resize actions and the title bar of the widget itself prevents it from getting sized to the full height of the screen.
Describe the solution you'd like
#1 Add an option "Fullscreen"
#2 Use Z order to keep the top center menu above everything else but please dont block other windows
#3 An API for setting the widget size and pinned state
Describe alternatives you've considered
Bytepatching 'TryResizeWindowAsync', manual setting the height and width by getting a reference from the private member variable of the 'XboxGameBarWidget' instance.

Changed type

Hi slize26,
Thank you for the feedback.
Full screen
We currently don't support full screen widgets for both technical and security reasons.  We may be able to support this in the future with some technical changes we hoping to make as well as exploring some security mitigations (such as user consent).
We have opened a tracking workitem internally for this though:
VSO Task: 31952018
Widget size
As you already mentioned, we do have an API for this already:  TryResizeWindowAsync.  It lets you resize within the bounds you've specifed for your min/max height/width.   But yes, you can't size larger than the space available to you without occlusion from the Home Bar.
Widget pinned state
Pinning is something we only allow users to control based on our current design.  We have opened an internal task to consider programmatic support.
VSO Task: 31953225
Thanks,
Ben


Fix test.py

missing call to utf-8 decode, otherwise Id get error:
Object of type bytes is not JSON serializable

hey @lucataco, great to see you here :D
thanks for this!  I wonder why I never experienced this error before, but I'm happy it'll be working for everyone now :pray:


nix-prefetch-git: set deepClone if leaveDotGit is set

Without deepClone, things like "git describe" doesn't work. To make
leaveDotGit more useful, this commit enables deepClone if leaveDotGit is
set.
You can still disable deepClone by adding --no-deepClone after the
--leave-dotGit flag. No such option exist for fetchgit though, but I
think there is little reason to skip the deepClone if you have
set leaveDotGit.
Update the hash of libcouchbase, the only package in nixpkgs that uses
leaveDotGit.

Now I think it would be better to leave defaults alone, and instead expose a new deepClone parameter in fetchgit. (Closing this PR.)


Update hdinsight-hadoop-use-pig-ssh.md

Changed spelling of "Putty" to "PuTTY."

Hi @ShawnJackson, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (v-shawja). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


Create QueueImplementationByOm.java

Problem Statement:
Implement a basic queue using an array in Java with a fixed capacity. The queue should support the following operations:
Enqueue: Insert elements into the queue.
Dequeue: Remove elements from the front.
Display: Show the current elements in the queue.
Front: Display the front element of the queue.
The implementation should handle cases where the queue is full (when adding) and empty (when removing or displaying).

Hello , i would like to solve the issue please assign it to me


Enhanced interactive and visually appealing experience

Description
This project is a modified version of the classic Tic Tac Toe web game. The changes enhance user interaction, visual appeal, and add new gameplay features to improve the overall experience. The primary updates include the addition of a turn indicator, score tracking, and visual feedback for winning combinations. Moreover, the game has been optimized for mobile responsiveness, allowing a seamless experience across different devices.
Summary of Changes
The updated game provides a more interactive and visually engaging experience, with a better indication of the current state of play. These changes were made to make the game more user-friendly and engaging.
Tech Stack and Dependencies
Frontend Technologies: HTML, CSS, JavaScript
Libraries/Frameworks: Google Fonts (for custom fonts)
Dependencies: No external libraries, except for Google Fonts for aesthetic improvements
Type of Change

[X] New Feature
[ ] Bug Fix

Issue Number
Issue: #32 (Example placeholder)
Checklist

[X] I have included a README.md file for my project clearly explaining its purpose, functionality, and usage instructions.
[X] My code adheres to the style guidelines outlined by this project.
[X] I have thoroughly reviewed my code to identify and address any potential errors or inconsistencies.
[x] I have added clear and concise comments to my code, especially in sections that might be challenging to understand at first glance.
[X] I have reviewed and followed the project's Contributing Guidelines to ensure my contribution aligns with the project's requirements.

Key Changes

Turn Indicator:

Added a dynamic turn message to display whose turn it is (X or O).
The message updates after every move, helping players follow the game flow more intuitively.

Score Tracking:

Implemented a score tracker that updates after each game.
The score for both X and O is displayed on the screen, ensuring players can see who has won more games.

Winning Highlight:

Added a visual highlight (green background and pulse animation) to the winning combination of buttons.
This makes it easier for users to identify the winning line when the game is over.

Improved Mobile Responsiveness:

Enhanced layout and button sizing for better user experience on mobile devices.
Dynamic font sizes and button dimensions based on viewport size ensure readability and ease of play across different devices.

New Game and Restart Options:

Added a new game option and a restart button that refreshes the board for a new match without reloading the page.
These buttons allow players to continue playing without reloading the game, improving the flow and user experience.

Thank you @Sayanjones


add support for privately hosted git repositories

This removes the exception about unsupported sites
Any git repository hosted anywhere can be used
Remove existing directory before clone when ran with --force

I'm aware that there's no test for this... Not sure how it should be done without relying on someone's private git server.

A welcome feature :)

@repomaa
I ran tests locally and everything seemed to work. I also updated the version and tested that it seems to work.
But these tests are worrying: https://github.com/tiged/tiged/pull/7/checks?check_run_id=2051135208
  2) degit
       bitbucket
         bitbucket:Rich_Harris/degit-test-repo:
     Error: Command failed: node /home/runner/work/tiged/tiged/dist/bin.js bitbucket:Rich_Harris/degit-test-repo .tmp/test-repo -v
! could not fetch remote https://bitbucket/Rich_Harris/degit-test-repo
> Command failed: git ls-remote https://bitbucket/Rich_Harris/degit-test-repo
fatal: unable to access 'https://bitbucket/Rich_Harris/degit-test-repo/': Could not resolve host: bitbucket

Could that be due to your change?
I also tried to run this locally
~/projects/tiged-fix >>> node /home/runner/work/tiged/tiged/dist/bin.js bitbucket:Rich_Harris/degit-test-repo .tmp/test-repo -v
~/projects/tiged-fix >>> node dist/bin.js bitbucket:Rich_Harris/degit-test-repo .tmp/test-repo -v
! could not fetch remote https://bitbucket/Rich_Harris/degit-test-repo
> Command failed: git ls-remote https://bitbucket/Rich_Harris/degit-test-repo
fatal: unable to access 'https://bitbucket/Rich_Harris/degit-test-repo/': Could not resolve host: bitbucket

> using cached commit hash e62cde59d847e4b20a4be6ef6438fd179e04a4fb
> /home/nake89/.degit/bitbucket/Rich_Harris/degit-test-repo/e62cde59d847e4b20a4be6ef6438fd179e04a4fb.tar.gz already exists locally
> extracting /home/nake89/.degit/bitbucket/Rich_Harris/degit-test-repo/e62cde59d847e4b20a4be6ef6438fd179e04a4fb.tar.gz to .tmp/test-repo
> cloned Rich_Harris/degit-test-repo#HEAD to .tmp/test-repo

I think my tests didn't fail because degit was able to get it from the cache.
Reverting for now.

ah i see. I didn't realize there was a cache. Is it possible to disable the cache for the tests (except for those that test the cache :))

@nake89 say hi to my home town vantaa for me :)


Use default self-issued value for OpenID issuer field

OCP4 OAuth OpenID provider has a new field dubbed "issuer".
Meanwhile the field is mandatory and not empty.
Using the "self-issued" value allows creation.
fixes https://github.com/fusor/cpma/issues/413
https://bugzilla.redhat.com/show_bug.cgi?id=1755865

@gildub do you think that putting "https://self-issued.me" is safe? I mean it may be better to ask a person to fill this field in the resulting CR.
Also, does ocp4 use this field in any functional way, e.g. trying to connect/verify/whatever with the issuer?

@arapov, sorry I was updating the description with more details in the meantime.
The field is mandatory but we can certainly feed it a different value.

@arapov, I can see unknown security implications.
So let's use an example dummy value for now and at same time provide message to user when OpenID is handled.


ntr: increased/decreased protein cleavage product PMID:15329725

under
FYPO:0001327	increased protein level during vegetative growth
suggested def
A cell phenotype observed in the vegetative growth phase of the life cycle in which the amount of a protein cleavage product is higher than normal. Total protein or a specific protein may be affected.
Comment recommend noting the protein, yada yada...

I would much rather do this using FYPO:0001327 with a PR:nnn ID extensoin for the specific product assayed.

If you do insist on a separate ontology term, (a) we'll need a more precise definition of "protein cleavage product", and (b) I suspect that the "total protein" part of the usual definition wouldn't make sense.

closing.
https://sourceforge.net/p/pro-obo/term-requests/108/

I am now checking and in  a previous paper I did this as
abolished proteolysis during vegetative growth (assayed_using :gene)
instead  of
increased protein level during vegetative growth (assayed using  PR:cleavage product)
Which way do we think is best?
With the first option, I don't need to go for PRO IDs (although if we get them I can use them)

I wouldn't object to either. I suspect I'd go for a proteolysis term unless I had some specific reason to think the product level assay could reflect anything else going on.

OK, I think I'll go for the proteolysis term, easier. I don't  know why I did it this way this time....


[Help] How to reset/refresh columns state?

So I have some columns that I need to toggle between editable and non-editable. I also have a state variable that toggles between true/false which is set to the enableEditingMode on the columns definition. The problem is that whenever call setState to reload the table and the columns, the columns stays the same and don't toggle between editable and noneditable. I tried to call resetCurrentState  and  notifyListeners but it doesn't seems to work.

I think you can use the callback PlutoColumnCheckReadOnly instead of setting readOnly true in the constructor.  I found this by looking at the readOnly argument in the plutoGrid source code.
https://github.com/bosskmk/pluto_grid/releases/tag/2.7.0


Integrations Logic fix + Copy mechanism for payloads

Correct how events select which device-mode destinations to run against
Move logic for device-mode destinations data to Segment.io destination plugin
Add a new API to allow manually enabling destinations (useful for destination plugins with no Segment tie-ins)
Add a new API to allow copying payloads with ease

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@b65247c). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage        ?   47.40%
  Complexity      ?       12
=======================================
  Files           ?        7
  Lines           ?      810
  Branches        ?       84
=======================================
  Hits            ?      384
  Misses          ?      397
  Partials        ?       29

Continue to review full report at Codecov.

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


⚠ Bofrost.lu has degraded performance

In 8590ed9, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1353 ms

Resolved: Bofrost.lu performance has improved in d807847 after 1 hour, 52 minutes.


Fix g_application_id_is_valid Gtk warning.

Sorry, left my janitor there removing whitespaces. To the point PR: https://github.com/AvaloniaUI/Avalonia/pull/2006


can i have an information on the nature of the client connection  (tcp or ws) in the server side at runtime ?

Describe your question
I created an mqtt server using asp core c# application that supports tcp and websockets connections . But in the server side i need an information that indicates the nature of the client connection (tcp/ws).
Can I have this information when i subscribe to the "ValidatingConnectionAsync "event or how can I find a way to have this information.
Which project is your question related to?

Server

The information you need is available at the "ChannelAdapter" property in the event args of the connection validator. You may need to cast it according to your used transport layer.

I assume this question is answered.


gx: update go-cid, go-multibase, base32

Depends on:

https://github.com/libp2p/go-testutil/pull/12
https://github.com/libp2p/go-libp2p-conn/pull/15
https://github.com/libp2p/go-libp2p-connmgr/pull/5

This PR with gx updates has been created using gx-workspace: https://github.com/ipfs/gx-workspace

Coverage remained the same at 80.0% when pulling d2450c2eb907b35c43ff4a7d622648677e10aa25 on gx/update-4ruucc into 80284432e5746b66d28f959239b0355c74c58662 on master.


If being used for Groq, skip OpenAI-Organization header

I've looked at using groq via langchain -> ruby-openai and was seeing a warning about me not setting OpenAI-Organization. If I run .compact on the headers, the warning seems to go away.

^ is this CI failure something I can fix?

@drnic no, I think I broke something. Will try and fix. Thanks for this PR!

^ is this CI failure something I can fix?

I may have fixed this, if you push another change let's see

Thanks again @drnic - released in v7.1


EFCore thinks Nullable SQLite numeric columns are Not Nullable

For each entity in my data model, I'm reaching into my DbContext.Model to discover the data model for that entity.  (I use this in a controller that renders the entity's data model as JSON for consumption in my web application to automatically build forms and perform front-end data validations.)
This has worked well using SQL Server.  However, I've run into a problem with SQLite.  It seems that if a column is a numeric type (at least non-text), then the Model builder thinks that it is non-nullable, even if it is set to be nullable.
Not sure if it matters, but another difference with what I'm doing now is that previously with SQL Server I was using a Database-first approach.  In this case, I'm using SQLite in a code-first approach and performing migrations from VS2017.
I do not use DataAnnotation attributes in my entity classes.  Normally, if I want a field to be required or non-nullable, I will do this in my DbContext with the Fluent API:
       protected override void OnModelCreating(ModelBuilder modelBuilder) {             modelBuilder.Entity<EntityClassName>(entity => {                 entity.Property(e => e.PropertyName)                     .IsRequired();              });          };
The Create Table SQL statement in the migration from VS2017 set these columns to be nullable with the following column specification in the SQLite Create Table statement:

"[ColumnName] [DataType] NULL,"

So everything I see in my DbContext, Entity Classes, and the SQLite schema seem to indicate that columns should be nullable.
When debugging in my controller, and checking the collection of Properties for each EntityType in the model, this is the case for any text field that was set this way, with the Property.IsNullable is found to be true as expected.
But, the Property.IsNullable appears to be false for any column that has a SQLite type of Integer or Real.
Any ideas?    Is this a known issue, or might I be missing something?
Environment:
SQLite 3.24.0
EF Core version: 2.0.3
IDE: Visual Studio 2017 15.5.2

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.

Update - I think my original problem was because I forgot to declare my nullable fields as "int?" or "float?" with the ending "?" character to indicate they were nullable.  This resulted in EFCore applying the default for these types, which is to make them required.


not copy the files in node v 6.0.0

This is my plugin configuration:
new CopyWebpackPlugin([
   { from: 'src/image', to: 'image' },
   { from: 'src/vendor', to: 'vendor' }
])

It works fine with node v 5.8.1 but it does not copy any file with node v 6.0.0.
Webpack shows 'ERROR in Path must be a string. Received undefined' in the console.

Hi, I used 1.1 version before. I just tested with the newest version 2.1.3, still get the same problem.

This is because we use gulp to build underneath, which has an underlying issue: https://github.com/gulpjs/gulp/issues/1571

I guess in the meantime it would be good to warn people in the readme of this issue (that the plugin is not compatible with node v6) - and/or additionally providing a meaningful error message in the webpack output (e.g. "CopyWebpackPlugin is not yet compatible with Node v6"). Nailing down the issue of why my relatively complex webpack build was failing due to this plugin was really not a quick one...

any news with this bug?

This should be resolved in v2.1.4

I am using node v 6.0.0 and not getting major issues. I have not fully got what I needed fixed with an error like Cannot read property 'glob' of undefined but this isnt all the time...

I am using node 0.12 & I am having this issue

any news with this issue?
same on node v8.0

Same here on v8.10.0

@christopherallanperry can you create new issue and create minimum reproducible test repo?

@evilebottnawi in the process of creating the repo, I was able to resolve whatever was causing the problem, though I'm unsure how. Apologies for any inconvenience caused.


doesn't break, but only half works :D

Purpose
Briefly describe the purpose of the change, and/or link to the ticket for context
Approach
Explain how your code addresses the purpose of the change
Learning
Any tips and tricks, blog posts or tools which helped you. Plus anything notable you've discovered
Checklist

[ ] I have performed a self-review of my own code
[ ] I have added relevant logging with appropriate levels to my code
[ ] I have updated documentation where relevant
[ ] I have added tests to prove my work
[ ] The product team have tested these changes

Superseded by PR 109

Superseded by PR 109


Compilation of yield test

In yieldto-tests.scala, there is an issue with the last test, "should drain ... another coroutine."
The test compiles and passes when running sbt test.
However, the problem is apparent when one tries to mimic the test inside the REPL. Specifically, the issue is when rube is compiled separately from another.
> console
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.11.4 (OpenJDK 64-Bit Server VM, Java 1.8.0_72).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import org.coroutines._
import org.coroutines._

scala> :paste
// Entering paste mode (ctrl-D to finish)

val another: ~~~>[String, Unit] = coroutine { () =>
      yieldval("uh-la-la")
    }

// Exiting paste mode, now interpreting.

another: org.coroutines.~~~>[String,Unit] = org.coroutines.package$$tilde$tilde$tilde$greater@7015be93

scala> :paste
// Entering paste mode (ctrl-D to finish)

val anotherInstance = call(another())

    val rube: (Int, Int) ~> (Int, Unit) = coroutine { (x: Int, y: Int) =>
      yieldval(x)
      yieldval(y)
      yieldto(anotherInstance)
      yieldval(x * y)
    }

// Exiting paste mode, now interpreting.

<console>:13: error: wrong number of type parameters for method coroutine2$mIc$sp: [T1, T2, R](b: org.coroutines.Coroutine._2[T1,T2,Int,R])org.coroutines.~>[(T1, T2),(Int, R)]
           val rube: (Int, Int) ~> (Int, Unit) = coroutine { (x: Int, y: Int) =>

This is some bug in specialization manifesting itself in the REPL, possibly due to the use of nested classes which specialization behaves poorly with. It has nothing to do with yieldto, though. You can do this:
console> :paste

val rube: (Int, Int) ~> (Int, Unit) = org.coroutines.coroutine2[Int, Int, Int, Unit](coroutine { (x: Int, y: Int) =>
  yieldval(x)
})

console> :paste

val rube: (Int, Int) ~> (Int, Unit) = org.coroutines.coroutine2[Int, Int, Int, Unit](coroutine { (x: Int, y: Int) =>
  yieldval(x)
})

<console>:38: error: wrong number of type parameters for method coroutine2$mIc$sp: [T1, T2, R](b: org.coroutines.Coroutine._2[T1,T2,Int,R])org.coroutines.~>[(T1, T2),(Int, R)]
       val rube: (Int, Int) ~> (Int, Unit) = org.coroutines.coroutine2[Int, Int, Int, Unit](coroutine { (x: Int, y: Int) =>

Surprisingly, at this point, you can do (note that I removed the specialized yield parameter on the coroutine2 method):
val rube: (Int, Int) ~> (Int, Unit) = org.coroutines.coroutine2[Int, Int, Unit](coroutine { (x: Int, y: Int) =>
  yieldval(x)
})

And things just magically work.
This is out of scope of coroutines, so it's a won't fix. Closing for now.


NLog third-party logging library crashing because of NATS library logger arguments

Observed behavior
Nats debug log in NatsJSConsume.ctor crashes NLog when trying to parse {@Config}. It is possible that<EMAIL_ADDRESS>is used also in other places in the library. I haven't checked.
NATS.Client.JetStream.Internal.NatsJSConsume.ctor
      if (this._debug)
        this._logger.LogDebug(NatsJSLogEvents.Config, "Consume setup {@Config}", (object) new
        {
          maxMsgs = maxMsgs,
          thresholdMsgs = thresholdMsgs,
          maxBytes = maxBytes,
          thresholdBytes = thresholdBytes,
          expires = expires,
          idle = idle,
          _hbTimeout = this._hbTimeout
        });

System.AggregateException: An error occurred while writing to logger(s). (Input string was not in a correct format. Failure to parse near offset 15. Expected an ASCII digit.)
 ---> System.FormatException: Input string was not in a correct format. Failure to parse near offset 15. Expected an ASCII digit.
   at System.Text.ValueStringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ReadOnlySpan`1 args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ReadOnlySpan`1 args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at NLog.Internal.LogMessageStringFormatter.FormatMessage(LogEventInfo logEvent)
   at NLog.LogEventInfo.CalcFormattedMessage()
   at NLog.LogEventInfo.SetMessageFormatter(LogMessageFormatter messageFormatter, LogMessageFormatter singleTargetMessageFormatter)
   at NLog.LoggerImpl.Write(Type loggerType, TargetWithFilterChain targetsForLevel, LogEventInfo logEvent, LogFactory logFactory)
   at NLog.Logger.WriteToTargets(Type wrapperType, LogEventInfo logEvent, TargetWithFilterChain targetsForLevel)
   at NLog.Logger.Log(Type wrapperType, LogEventInfo logEvent)
   at NLog.Extensions.Logging.NLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)
   --- End of inner exception stack trace ---
   at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions)
   at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
   at NATS.Client.JetStream.Internal.NatsJSConsume`1..ctor(Int64 maxMsgs, Int64 thresholdMsgs, Int64 maxBytes, Int64 thresholdBytes, TimeSpan expires, TimeSpan idle, NatsJSContext context, String stream, String consumer, String subject, String queueGroup, Func`3 notificationHandler, INatsDeserialize`1 serializer, NatsSubOpts opts, CancellationToken cancellationToken)
   at NATS.Client.JetStream.NatsJSConsumer.ConsumeInternalAsync[T](INatsDeserialize`1 serializer, NatsJSConsumeOpts opts, CancellationToken cancellationToken)
   at NATS.Client.JetStream.NatsJSConsumer.ConsumeAsync[T](INatsDeserialize`1 serializer, NatsJSConsumeOpts opts, CancellationToken cancellationToken)+MoveNext()
   at NATS.Client.JetStream.NatsJSConsumer.ConsumeAsync[T](INatsDeserialize`1 serializer, NatsJSConsumeOpts opts, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
   at Nats.NatsV2ConsumerProcessor`1.CreateProcessor(NatsConsumerMessageProcessorOptions`1 options)

Expected behavior
Not to crash
Server and client version
nuget client: 2.0.0
Host environment
MacOS Sonoma
Steps to reproduce

register NLog as logger factory

    builder.Host.UseNLog(new NLogProviderOptions
    {
        IncludeScopes = true,
        CaptureMessageProperties = true,
        ShutdownOnDispose = true
    });

Initialize NatsConnectionPool with

 builder.Services.AddNats();

try to create a consumer

What version of NLog.Extensions.Logging-nuget-package are being used? Does it also fail with latest version of NLog.Extensions.Logging ?
The idea is that NLog.Extensions.Logging should recognize the use of {@Config}, and avoid using string.Format or Microsoft.Extension.Logging but use NLog's own message-template-formatter.

NLog - 5.2.6
NLog.Extensions.Hosting - 5.3.5
NLog.Extensions.Logging - 5.3.5

Have tried to reproduce the issue, but failed. Are you able to make a small example project where this fails:
    builder.Host.UseNLog(new NLogProviderOptions
    {
        IncludeScopes = true,
        CaptureMessageProperties = true,
        ShutdownOnDispose = true
    });
    var host = builder.Buid();
    var programLogger = host.Services.GetService<Microsoft.Extensions.Logging.ILogger<Program>>();
    programLogger.LogDebug(42, "Consume setup {@Config}", (object) new { Name = "Bob", Age = 42 });

And attach to this issue, without dependencies on anything except:

NLog - 5.2.6
NLog.Extensions.Hosting - 5.3.5
NLog.Extensions.Logging - 5.3.5

would it be easier for us to just list all variables rather than using an object? I can make sure we don't use the @ placeholder if this may cause issues with different loggers.

I think this will ensure compatibility for all, indeed.

Notice passing anonymous object (Ex. new { Name = "Bob", Age = 42 }) using "Consume setup {Config}" will also print all properties, since default ToString-implementation does the job.
But still interested how @robertmircea has configured NLog, because it should not fail.


expose ReactFlowContext to be able to access ReactFlowInstance in class components

Please describe the feature that you want to propose
expose ReactFlowContext, currently with only useReactFlow, we can only access ReactFlowInstance in function components.
but there are situations where class components are requried/used.
currently, it can only be achived by wrapping useReactFlow in a function component wrapper with custom context holding ReactFlowInstance

Thanks for the idea here but this is not planned. The solution you described is a good workaround already.


Allow experiments table to sort by last run started

Closes: RHOAIENG-7715
Description
Added new column in Experiments table for last run started.

How Has This Been Tested?
Go to Experiments page and you can find the new column added.
Test Impact

Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[x] Included any necessary screenshots or gifs if it was a UI change.
[x] Included tags to the UX team if it was a UI/UX change (find relevant UX in the SMEs section).

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

@yannnz

I've included the last_run_created_at field for the sorting in this PR. Also I've noticed that this field has been added to the experiment schema in the backend PR, so I've modified the previous functionality, which calculated the last run  using the usePipelineRunsByExperiment function, to now directly use the experiment.last_run_created_at field.
Till the backend PR is merged, Last run started column will only show "Just now".

@Gkrumbach07 should we mark on this on hold, till RHOAIENG-7692 merges?

@dpanshug Looks like it merged. i am testing this with the changes

tested and works. there is one thing we may or may not need to handle. the backend will return "1970-01-01T00:00:00Z" on a new experiment. So we may have to handle this edge case, or they may fix it. regardless on an invalid param can you make the value -

OK update from backend. Lets render "1970-01-01T00:00:00Z" and "" (empty string) as -. otherwise render as date


feat(#5): --tokens

closes #5

PR-Codex overview
The focus of this PR is to enhance the GitHub repository miner tool.
Detailed summary

Updated toJson function to handle file writing asynchronously
Modified package.json to include executable binary
Added api.js for dynamic GraphQLClient import
Implemented tokens.js to fetch tokens from a file
Improved tests for token fetching and JSON file creation

The following files were skipped due to too many changes: src/index.js

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@h1alexbel Oops, I failed. You can see the full log here (spent 6s)
+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 1060
+ echo '2.0-SNAPSHOT BUILD'
2.0-SNAPSHOT BUILD
+ date
Wed May 22 12:52:29 UTC 2024
+ uptime
 12:52:29 up 0 min,  0 users,  load average: 1.44, 0.36, 0.12
+ cat
.rultor.yml in h1alexbel/home doesn't allow h1alexbel/ghminer to use its assets (there are 2 friends), see http://doc.rultor.com/reference.html#assets
+ exit -1
'cid' file is absent, most probably the Docker container wasn't started correctly

@rultor try to merge now

@rultor try to merge now

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor try to merge now

@h1alexbel Oops, I failed. You can see the full log here (spent 8min)
Reading .gitattributes ...
Reading .github/workflows/pdd.yml ...
Reading .github/workflows/test.yml ...
Reading .github/workflows/xcop.yml ...
Reading .gitignore ...
Reading .npmignore ...
Reading .pdd ...
Reading .rultor.yml ...
Reading Gruntfile.js ...
Reading LICENSE.txt ...
Reading README.md ...
Reading node_modules/@dprint/formatter/LICENSE ...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading node_modules/@eslint/eslintrc/LICENSE ...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading node_modules/@eslint/js/LICENSE ...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
Reading node_modules/@eslint-community/eslint-utils/LICENSE ...
Reading<EMAIL_ADDRESS>...
Reading<EMAIL_ADDRESS>...
ERROR: ERROR<EMAIL_ADDRESS>PDD::Error at node_modules/@eslint-community/eslint-utils/index.js:674: TODO found, but puzzle can't be parsed, most probably because TODO is not followed by a puzzle marker, as this page explains: https://github.com/cqfn/pdd#how-to-format
If you can't understand the cause of this issue or you don't know how to fix it, please submit a GitHub issue, we will try to help you: https://github.com/cqfn/pdd/issues. This tool is still in its beta version and we will appreciate your feedback. Here is where you can find more documentation: https://github.com/cqfn/pdd/blob/master/README.md.
Exit code is 1
container 97f067bae82ebbdbc0738aed2bab170b16349c3ca5314cc14dc56414bed06a11 is dead
Wed May 22 13:07:35 UTC 2024

@rultor merge

@rultor merge

@rultor merge

@h1alexbel Can't merge this pull requests, because the file .rultor.yml was modified. This is a security threat. Make a separate pull request with the modification of this particular file and ask project architect to merge it manually.


Does not support routes with more than 2 elements

I've tried a couple different formats, but Flancy never seems to register a route with more than 2 levels.
Get '/configurations/document/{target}' { ... }
or
Get '/configurations/document/3' {  ... }
Flancy responds to http://localhost/configurations/document/ but not http://localhost/configurations/document/3. The latter throws a 404.

I must have had something stuck in cache. This doesn't seem to be a problem.


Fix on_colors example

There was a syntax error in the documentation, or at least the given example broke my syntax highlighting.

thank you!


[Device Support Request] TS011F _TZ3000_c7nc9w3c

Is your feature request related to a problem? Please describe.

It detects 3 switches (for the 3 outlets) but these switches will turn on/off all outlets at once, not seperate.
It also does not report the current and consumption correctly. It shows a whopping 1.587 A, which is most likely supposed to be 1587 mA (1.58A) and crazy 54,0 kWh.
Describe the solution you'd like
I would really like to have a working support for this smart power strip.

Device signature
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x010a",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0702",
        "0x0b04",
        "0xe000",
        "0xe001"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "2": {
      "profile_id": 260,
      "device_type": "0x010a",
      "in_clusters": [
        "0x0004",
        "0x0005",
        "0x0006",
        "0xe001"
      ],
      "out_clusters": []
    },
    "3": {
      "profile_id": 260,
      "device_type": "0x010a",
      "in_clusters": [
        "0x0004",
        "0x0005",
        "0x0006",
        "0xe001"
      ],
      "out_clusters": []
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZ3000_c7nc9w3c",
  "model": "TS011F",
  "class": "zigpy.device.Device"
}

Diagnostic information
Paste the diagnostic information here.
Don't remove the extra line breaks outside the ``` marks.

Additional logs
nothin

Additional context

Is a 3 AC outlet device or 4 AC outlet? (the image don't match the description)
Do the device have also any USB port? For the device signature I will say that don't have.
Can you add any link to the manufacturer or vendor product?

It is a 4 AC outlet but only 3 can be toggled. It has 2 USB ports.
https://www.aliexpress.com/item/4000372097774.html?spm=a2g0o.order_list.0.0.3abd5c5fGRpxIp&gatewayAdapt=glo2deu

That is my proposal for your device:
class Plug_4AC_2USB_Metering(EnchantedDevice):
    """Tuya Tuya 4 outlet + 2 USB with power metering."""

    signature = {
        MODEL: "TS011F",
        ENDPOINTS: {
            1: {
                # "profile_id": 260,
                # "device_type": "0x010a",
                # "in_clusters": ["0x0000","0x0003","0x0004","0x0005","0x0006","0x0702","0x0b04","0xe000","0xe001"],
                # "out_clusters": ["0x000a","0x0019"]
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Identify.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    OnOff.cluster_id,
                    Metering.cluster_id,
                    ElectricalMeasurement.cluster_id,
                    TuyaZBE000Cluster.cluster_id,
                    TuyaZBExternalSwitchTypeCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                # "profile_id": 260,
                # "device_type": "0x010a",
                # "in_clusters": ["0x0004","0x0005","0x0006","0xe001"],
                # "out_clusters": []
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    OnOff.cluster_id,
                    TuyaZBExternalSwitchTypeCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                # "profile_id": 260,
                # "device_type": "0x010a",
                # "in_clusters": ["0x0004","0x0005","0x0006","0xe001"],
                # "out_clusters": []
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    OnOff.cluster_id,
                    TuyaZBExternalSwitchTypeCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [],
            },
            4: {
                # "profile_id": 260,
                # "device_type": "0x010a",
                # "in_clusters": ["0x0004","0x0005","0x0006","0xe001"],
                # "out_clusters": []
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    OnOff.cluster_id,
                    TuyaZBExternalSwitchTypeCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [],
            },
            5: {
                # "profile_id": 260,
                # "device_type": "0x010a",
                # "in_clusters": ["0x0004","0x0005","0x0006","0xe001"],
                # "out_clusters": []
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    OnOff.cluster_id,
                    TuyaZBExternalSwitchTypeCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [],
            },
            242: {
                # "profile_id": 41440,
                # "device_type": "0x0061",
                # "in_clusters": [],
                # "out_clusters": ["0x0021"]
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }
    replacement = {
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Identify.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaZBOnOffAttributeCluster,
                    TuyaZBMeteringCluster,
                    TuyaZBElectricalMeasurement,
                    TuyaZBE000Cluster,
                    TuyaZBExternalSwitchTypeCluster,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaZBOnOffAttributeCluster,
                    TuyaZBExternalSwitchTypeCluster,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaZBOnOffAttributeCluster,
                    TuyaZBExternalSwitchTypeCluster,
                ],
                OUTPUT_CLUSTERS: [],
            },
            4: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaZBOnOffAttributeCluster,
                    TuyaZBExternalSwitchTypeCluster,
                ],
                OUTPUT_CLUSTERS: [],
            },
            5: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_PLUG_IN_UNIT,
                INPUT_CLUSTERS: [
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaZBOnOffAttributeCluster,
                    TuyaZBExternalSwitchTypeCluster,
                ],
                OUTPUT_CLUSTERS: [],
            },
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

You will need to enable the local quirk in your instalation. There is a guide about enabling custom quirks:

https://github.com/zigpy/zha-device-handlers/discussions/693#discussioncomment-857274

Copy in your local quirk folder the current ts011f_plug.py file and put the suggested quirk in the bottom of file:

https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts011f_plug.py

Restart HA, remove and pair you device again.
Check that the device is loading the quirk and that the device signature has changed.

Thank you very much. I added your snippet to the ts011f_plug.py: https://gist.githubusercontent.com/1zun4/c430ef5797bde2364c05aa39fd5de0e1/raw/f1aa8bac245e9a27aac64846b1d961f549429284/ts011f_plug.py and placed it into my custom_quirks folder

and enabled custom quirks in the configuration.yaml

but somehow it is not being picked up your custom quirk for the device.

and still shows the data wrong. Is there anything I have done wrong?

Thank YOU VERY MUCH!

I have done a edit to your snippet. I noticed that the signature has no endpoint number 4 and 5, so I decided to remove them. Now it is being detected correctly.
https://gist.githubusercontent.com/1zun4/18f6f4c687d5084792a924bc05eb601a/raw/22e05c6ff9890094ef68d5e3e076e970992dda35/ts011f_plug.py

Thank you very much. I added your snippet to the ts011f_plug.py: https://gist.githubusercontent.com/1zun4/c430ef5797bde2364c05aa39fd5de0e1/raw/f1aa8bac245e9a27aac64846b1d961f549429284/ts011f_plug.py and placed it into my custom_quirks folder

My bad. The copy&paste always leads me to some error. I have fixed the proposed code.

I noticed that the signature has no endpoint number 4 and 5, so I decided to remove them. Now it is being detected correctly.

But you will only control the firsts 3 outlet, don't you?
Maybe the new version fix it.

Thank you very much. I added your snippet to the ts011f_plug.py: https://gist.githubusercontent.com/1zun4/c430ef5797bde2364c05aa39fd5de0e1/raw/f1aa8bac245e9a27aac64846b1d961f549429284/ts011f_plug.py and placed it into my custom_quirks folder

My bad. The copy&paste always leads me to some error. I have fixed the proposed code.

I noticed that the signature has no endpoint number 4 and 5, so I decided to remove them. Now it is being detected correctly.

But you will only control the firsts 3 outlet, don't you? Maybe the new version fix it.

Yes. Only the 3 first outlets are able to be controlled. All others are always on by design.

Only the 3 first outlets are able to be controlled. All others are always on by design.

Now I understant the device behavior. It would be better if I could understant from the beginning.
That picture is most illustrative:

If the device is working as expected, could you create a PR with the new quirk?
You can edit the file from the web and just follow the instructions.

Yes, sure. I make a pull request later this day.

@1zun4 & @javicalle
Hello. My name is Tristan, and I have a humble request for You both;
Would You care to take a look at my two Device Requests linked below?
They are both "zigbee in wall switch" used behind outlets and ordinary wall switches. One has power metering and the other does not. The issue I am facing is that they randomly turn off. One thought is that they do this when the voltage abruptly changes.
I don't have the knowledge to even try to build the code necessary to remedy these issues, but I have understood that You know at least how to create quirks for ZHA.
I can step by step give You all the data needed and I would greatly appreciate you helping me (and others) out.
https://github.com/zigpy/zha-device-handlers/issues/1904
https://github.com/zigpy/zha-device-handlers/issues/1905
Best regards
Tristan


Add first storage implementation

What type of PR is this?
/kind feature
What this PR does / why we need it:
This adds a generic key value storage trait and a default implementation
based on the sled crate. This way we can exchange the implementation if
required. The default storage does automatic de-/serialization, which
can be used to store any arbitrary time in which supports serde.
Which issue(s) this PR fixes:

None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

Added generic key value based storage trait and default implementation based on sled

This is ready for review. PTAL @mrunalp
Two main changes beside the additions:

Moved MyImage and MyService into Service to only have one structure owning the storage
Renamed sock-path to run-path which now will be used as root for the storage as well as the socket.

Had to rebase to resolve the conflict.

Had to rebase to resolve the conflict.

Ready for review again, PTAL @mrunalp

/lgtm


Added Image Registry and ChaosHub docs

Signed-off-by: Amit Kumar Das<EMAIL_ADDRESS>
What this PR does / why we need it:
This PR adds:

ChaosHub docs
Image Registry docs

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Checklist:

[ ] Fixes #
[ ] Signed the commit for DCO to be passed
[ ] Labelled this PR & related issue with documentation tag

Have made the requested changes! Thanks for the review @Saranya-jena @vanshBhatia-A4k9


variables in property names?

I'm trying to write a mixin that lets me dynamically set a property based on a mixin argument. Here's what I'm trying to do:
.round-corner (@corner, @radius){
   `'border-' + "@{corner}" + '-radius'` : @radius;
}

//example use
.round-corner(top-left, 20px); ---> border-top-left-radius: 20px;
.round-corner(top-right, 10px) ---> border-top-right-radius: 20px;

I've tried a number of ways, above is using JavaScript (ticks) but it doesn't work. Is this supported?

Would be a great improvement to allow variables in properties names


feat: increase report coverage

--one-time and the git enabled report now feature more information.
Revamp data collection from the dask bag.
Introduce plots with factors to group by.

Codecov Report

Merging #91 into develop will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           develop   #91   +/-   ##
=====================================
  Coverage       83%   83%
=====================================
  Files            8     8
  Lines          306   306
  Branches        62    62
=====================================
  Hits           254   254
  Misses          47    47
  Partials         5     5

Impacted Files
Coverage Δ

memote/__init__.py

memote/suite/reporting/reports/__init__.py
100% <0%> (ø)

Continue to review full report at Codecov.

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


Strange avatar is displayed for GitHub Enterprise

Extension version:  v0.27.0
VSCode Version:  Code 1.57.0
OS: Win10 1909
GitHub Enterprise version:  GitHub Enterprise Server 3.0.4

The avatar of the Pull Request in GitHub Enterprise is strange in "GitHub" and "GitHub Pull Request" tab, as shown in the picture below:

Looks like it is because in the following postion,  this.pullRequestModel.userAvatarUri is used instead of new vscode.ThemeIcon('github')
https://github.com/microsoft/vscode-pull-request-github/blob/565d4e6ca5215dfe4b3201f2cbc9d97bd404bbd0/src/view/treeNodes/pullRequestNode.ts#L266-L269

@alexr00 , I've tested the nightly build,

"GitHub" tab now can display correct avatar

For "GitHub Pull Request" tab,  still shows the strange avatar

In the Pull Request Description page:

For the Pull Request created by myself, sill shows the strange avatar

For For the PR created by other people,  correct avatar is displayed.

Thanks for testing this @think120. I've found the source of the bug for the other avatar locations. There will be a new nightly build on Monday. If you could test again with that upcoming build and comment back here about whether the bug is fixed that would be very helpful!

@alexr00, I've upgraded the nightly build of this extension to v2021.6.19263, but the issue 2 and 3 still exist.  Does that build include your fix? Many thanks!

Yes, that build has the fix. Thanks for testing this out.

@alexr00 , many thanks for your quick fix! Now, only the "delete branch" operation can't display the avatar of the user, but it is good enough for me!

@alexr00 , I just found this issue https://github.com/microsoft/vscode-pull-request-github/issues/416, looks like  #416 has the same problem as I have.

The weird avatars were a purposeful fallback choice for the enterprise integration. The icon was generated from the Gravatar service since unauthenticated requests to the GHE avatar service is likely disabled for most. If your GHE email didn't exist in the Gravatar service, the default was set to the "retro" generated default.
Perhaps I should have implemented this feature behind a feature flag, but now we've regressed back to having no avatars for enterprise, which make me sad.

I've also seen the 404 image shown in example 4. These usually come from DOM updates to the webview instead of a full refresh, so some action is inserting a DOM image node that likely assumes a GitHub.com repo instead of GHE.

And that 404 image is only for "delete branch" operation.

@kabel are you saying that even for enterprise users who have an avatar we now show the wrong thing? If that's the case, I'll just revert the changes I made, call it a day, and not touch enterprise again.

@kabel , @alexr00, I think may be better to make the feature of using Gravatar configurable. Like in my company, no one use Gravatar and I don't think they will use company email to register Gravatar.  And I think the default octocat icon is nicer than the green "retro" icon 😄

@alexr00

are you saying that even for enterprise users who have an avatar we now show the wrong thing?

Yes.
0.27.1:

0.28.0:

@think120

And that 404 image is only for "delete branch" operation.

Not only, but certainly one of the instances of the webview templates making the wrong assumption about the avatar URL to use. Another example is when I add a reviewer or the rendered PR comments on the Description view:

I think may be better to make the feature of using Gravatar configurable.

I agree, so I'll see if I can implement that feature (for the privacy conscious and anti-gravatar folks). I had originally planned to use the SVG icon as the Gravatar fallback instead of the "retro", but couldn't find a publicly hosted version that their proxies could access.

@kabel ,
https://github.com/microsoft/vscode-pull-request-github/blob/8870a3c77cb09c5cfd0cf3d277b8793fcf418164/webviews/components/user.tsx#L10-L17
This part?

@kabel sorry about the enterprise avatar regression, and thank you for your interest in making Gravatar use configurable. I would love to accept a PR for that.


Migrate to .NET 8.0

Currently it uses .net6 and .net 7 for CLI - source seems compatble with .net 8

Hi @totocaca123, thanks for the report.
I think I have this fixed in CLI release 0.7.1.
I tested on linux (easier to uninstall/reinstall versions) and the latest StateSmith.Cli version 0.7.1 works well if I only have net6 or only net8. I didn't test net7.
Mind giving it a try? You should only need to run dotnet tool update StateSmith.Cli --global to get the latest 0.7.1.


Ahhh I may know the issue. I think you've misunderstood the settings. They are separate settings. The individual files setting lets you specify specific files to load, providing paths from the root of your vault. The folder settings allows you to specify a folder containing your scripts and it will just load all js files in that folder.
So my guess is that if you just clear the individual files setting then you'll stop seeing the error 😁

Aha! Thank you for the clarification.


feat: Add th1nkk1d.xyz into the webring

Hi, I added the webring icon between the contact section and the footer of my portfolio https://th1nkk1d.xyz. Same for both desktop and mobile layouts.

@Th1nkK1D Thanks, and welcome to the webring!


Limit instance type flexibility to some ceiling of requested resources

Currently, a pod with 100m could potentially run on a 96 core machine, this is unnecessary (and pollutes the logs). We should consider something along the lines of a 3x resource ceiling for instance type selection.

I'm not sure a resource ceiling is a good thing to add to Karpenter.  Currently, Karpenter uses the lowest-N instance types (N is 20 today) based on sorted vcpus and memory of all instance types.
If we added a resource ceiling, we would artificially constrain the set of instance type options and still have to (/should) fallback in the case of lower bound requests (rather than limiting the request, getting ICE'd, and then retrying in the worst case... or in spot's case, getting an instance that will be interrupted much sooner with no fallback).
In the case of a single pod w/ a 100m vcpu request, if we set a ceiling at 3x, then we'd be looking for instance types w/ 300m vcpu, inevitably rounding that up to 1 vcpu which would give us 3 instance type options for x86 and 9 for arm64.  For spot, this type of artificial limit makes a bigger difference because we're using capacity-optimized. The more instance type options we give capacity-optimized, the better chances we have of getting an instance that stays around for a while.
The ceiling actually works almost equivalently to using a lowest-N approach for moderate to large instance type requirements. But the lowest-N is more resilient and simpler code than using a ceiling calculation. I don't think log polluting is enough to warrant this change, we could just change the log to show the first 2 or so instance types and say "8 more". We only log the instance type options at the Debug level anyways.

Ok I'm sold. WDYT about moving the lowest-N to the vendor neutral code (packer.go?)

Yeah, we should definitely move lowest-N to packing. Sharing is caring :)  I can close this issue out and open a new one for moving lowest-N to packing.  Did you want to target v0.3.0 for that move as well (I can own it)?

I went ahead and created a new issue and labeled w/ v0.3. I'll go ahead and close this one out. Feel free to reopen for further discussion.

Great thank you!


License?

@Guilhem74 You guys should put a license file ;)
You should probably pick MIT/BSD or GPL, discuss the choice with @Gnu-Bricoleur. Of course, you can also dual-license it at well!
Edit: Also "Author: Mayeul" - LOL. I give you guys a copyright attribution for whatever I wrote in this old codebase. @JeanninM ?

Thanks @MayeulC


As a logged-in user, I want to see my own profile / some statistics to see how I performed in the previous games.

Development task:
Acceptance Criteria:

[x] #53
[x] #54

done as the acceptance criteria has been met and the tasks have been implemented


Getting Started Page for Code Editor

Is your feature request related to a problem? Please describe.
Yes, the problem is that new users of the code editor may find it challenging to understand and utilize its various features and functionalities. This can lead to a steep learning curve and potentially hinder the user experience.
Describe the solution you'd like
I propose the addition of a “Getting Started” page to the code editor. This page would serve as an introductory guide for new users, providing a list of various features and functionalities of the code editor.
The “Getting Started” page could include the following sections:

Introduction: A brief overview of the code editor, its purpose, and its main features.

Feature List: A comprehensive list of the code editor’s features, with brief descriptions of each.

Basic Operations: A tutorial on how to perform basic operations in the code editor, such as creating a new file, saving a file, and editing a file.

Advanced Features: An overview of the code editor’s advanced features, such as key-bindings, code completion, syntax highlighting, and potentially version control integration.

Troubleshooting: A list of common issues that users might encounter and their solutions.

Resources: Links to additional resources, such as detailed documentation and Github repo link for new contributors.

This would make the code editor more user-friendly, particularly for new users, and enhance the overall user experience.

I assume you mean it kinda like the Visual Studio Code's welcome tutorial, right?

Yes. But this code editor should retain it's original style and minimalism in getting started page too.


iOS Dylib support

Is their documentation or any method to easily use .dylib files in ios projects?

Using dylibs is easy. You need to open your app's Xcode project in platforms/ios and add the dylib to the Link and Embed phases as you would a Cocoa framework. In order for NativeScript to be able to discover the APIs in the library, you need to place a module.modulemap file alongside the library's headers with the following content:
module MyLibrary {
    umbrella "MyLibrary.h"
    explicit module * {
        export *
    }
}

and make sure the Xcode project's Header Search Paths build setting contains the path to the folder that contains the headers.

Awesome, this gave me the basic info I needed to figure it out.   My sqlite wrapper is now at least loading on IOS now.
My module map doesn't use umbrella; or explicit -- My module.map file also had to reside in the ~/projectname/platform/ios folder so that it was in the clang processing path for the project.
We might want to think of easier way to have multiple module.map files and/or some common way to build the module.map file from installed node_modules.    Or have clang check the platform/ios/.../app/* folders that it generates from your app folder for any module.map files in the sub-folders.

We support multiple module map files, but they have to be in separate folders. Clang looks for module maps in the include directories, or Header Search Paths as Xcode calls them. You can edit the Header Search Paths build setting in the Xcode project to add other folders that contain module maps.
The way Swift projects interface with Objective-C and C libraries is very similar to the way NativeScript does - they have the Module Search Paths build setting, which is akin to Header Search Paths. During build, the Swift toolchain looks for module maps and frameworks with embedded module maps in the directories specified by Module Search Paths. The rule of thumb is that if Swift can find a module, so can NativeScript.
The idea behind the nascent plugin support in NativeScript is that plugin authors will be able to describe transformations on the Xcode project, so that things like compiler and linker flags can be set. This means that you'll be able to use the new plugin infrastructure to instruct Xcode to look for headers and module maps in more places without having to edit the project file by hand.

Well, then I'm totally looking forward to the plugin support; because I know documenting how to use the sqlite on IOS is going to be a pain point for any of the users using my module.   On android it is totally seamless.

As part of the plugins mechanism dependencies to dylib that come from the SDK should be representable in the npm packages. Either as entry in the package.json or xcconfig files that would be part of the package. This is somewhat related to #62, however #62 is mostly about 3rd party libraries and framework while this one is more about describing dependencies to SDK libraries.


Set font for giscus

Hello.
i speak persian too. My website language is persian. i use persian version of giscus
how to set a persian font for giscus?

@KagamiChan yep, thanks!

It's so difficult to change the font, even if I served data-theme with my own cdn and modified css file, nothing changed.

PRs are welcome.


refactor!: remove unused backrefs [APE-1287]

BREAKING CHANGE
What I did
When running PackageManifest.schema(), an error was being raised about needing to run update_forward_refs for ContractType against the ABI classes. Realized that we didn't need these within ethpm_types at all, also checking for downstream impact
fixes: #83
How I did it
Removed contract_type members from abi.py and backref updates in contract_type.py
How to verify it
Tests pass, validate downstream impact
Checklist

[ ] Audit downstream usage of this feature
[x] Passes all linting checks (pre-commit and CI jobs)
[x] New test cases have been added and are passing
- [ ] Documentation has been updated
[x] PR title follows Conventional Commit standard (will be automatically included in the changelog)

CAN'T BE A BUG IF IT DOESN'T EXIST

NOTE: Was added in https://github.com/ApeWorX/ethpm-types/pull/39 to resolve an issue with StarkNet

Closed in favor #85


OSD-5077 Lock registry image in 4.5

What type of PR is this?
(bug/feature/cleanup/docs/design/test/chore/refactor..)
Bug
What this PR does / why we need it:
Openshift-registry introduced a breaking change in 4.6 in their docker image, locking img tag in 4.5
Which issue(s) this PR fixes(can be a reference to existing issue or jira/bz):
OSD-5077

/lgtm


Magisch: Watch cookieclicker3.com

Magisch requests the watch of the watch_keyword cookieclicker3\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

cookieclicker3\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Makyen in Charcoal HQ


Compile with cmake face_landmark_detection to see landmark numbers

I changed your face_landmark_detection.cpp file to a bare minimum for better overview and I only want to have an output of the first image where not lines or circles are the overlay landmarks but rather the numbers of the landmarks themself. I trained successfully with the 194 features the shape predictor with the helen dataset which works perfectly on my changed version of your webcam_face_pose_ex.cpp.  But I'm unable to compile the face_landmark_detection.cpp with this additional dependency:
#include <opencv2/imgproc.hpp>

needed to print numbers instead of lines or circles. My changed face_landmark_detection.cpp:
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt

#include <iostream>
#include <opencv2/imgproc.hpp> // <------------ Makes linker problems
#include "dlib/opencv.h"
#include "dlib/image_processing/frontal_face_detector.h"
#include "dlib/image_processing.h"
#include "dlib/gui_widgets.h"
#include "dlib/image_io.h"

using namespace dlib;

int main(int argc, char** argv)
{
    try
    { // ../faces/helen/100032540_1.jpg
        frontal_face_detector detector = get_frontal_face_detector();
        shape_predictor sp;
        deserialize("../faces/helen/helen_shape_predictor_194_face_landmarks.dat") >> sp;

        image_window win;
        for (int i = 0; i < argc; ++i)
        {
            std::cout << "processing image " << argv[i] << std::endl;
            array2d<rgb_pixel> img;
            load_image(img, argv[i]);
            pyramid_up(img);

            std::vector<rectangle> dets = detector(img);
            std::cout << "Number of faces detected: " << dets.size() << std::endl;
            std::vector<full_object_detection> shapes;

            for (unsigned long j = 0; j < dets.size(); ++j)
            {
                full_object_detection shape = sp(img, dets[j]);
                std::cout << "number of parts: "<< shape.num_parts() << std::endl;
                std::cout << "pixel position of first part:  " << shape.part(0) << std::endl;
                std::cout << "pixel position of second part: " << shape.part(1) << std::endl;
                shapes.push_back(shape);

//----------------------Code i need #include <opencv2/imgproc.hpp> for with source:-----------------------------------------------------
                cv::Mat buff_img = dlib::toMat(img); // https://stackoverflow.com/questions/36711905/dlib-train-shape-predictor-ex-cpp/37880450#comment94164497_37880450

                for (int k = 0; k < 194; ++k) {
                  cv::putText(buff_img, std::to_string(k), cv::Point(shape.part(k).x(), shape.part(k).y()), cv::FONT_HERSHEY_COMPLEX_SMALL, 0.5, cv::Scalar(255, 255, 0), 1, cv::LINE_AA);
                }

                save_png(img, "outImage.png");
            }
        }
    }
    catch (std::exception& e)
    {
        std::cout << "\nexception thrown!" << std::endl;
        std::cout << e.what() << std::endl;
    }
}

The compiler output for cmake .. && cmake --build . --config Release is:
Scanning dependencies of target face_landmark_detection_ex
[ 92%] Building CXX object CMakeFiles/face_landmark_detection_ex.dir/face_landmark_detection_ex.cpp.o
[ 93%] Linking CXX executable face_landmark_detection_ex
CMakeFiles/face_landmark_detection_ex.dir/face_landmark_detection_ex.cpp.o: In function `cv::Mat::~Mat()':
face_landmark_detection_ex.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x81): undefined reference to `cv::Mat::deallocate()'
face_landmark_detection_ex.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x70): undefined reference to `cv::fastFree(void*)'
CMakeFiles/face_landmark_detection_ex.dir/face_landmark_detection_ex.cpp.o: In function `main':
face_landmark_detection_ex.cpp:(.text.startup+0x26db): undefined reference to `cv::putText(cv::_InputOutputArray const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
face_landmark_detection_ex.cpp:(.text.startup+0x29d6): undefined reference to `cv::fastFree(void*)'
face_landmark_detection_ex.cpp:(.text.startup+0x2c13): undefined reference to `cv::Mat::updateContinuityFlag()'
face_landmark_detection_ex.cpp:(.text.startup+0x2f17): undefined reference to `cv::Mat::deallocate()'
face_landmark_detection_ex.cpp:(.text.startup+0x35f8): undefined reference to `cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)'
collect2: error: ld returned 1 exit status
CMakeFiles/face_landmark_detection_ex.dir/build.make:104: recipe for target 'face_landmark_detection_ex' failed
make[2]: *** [face_landmark_detection_ex] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/face_landmark_detection_ex.dir/all' failed
make[1]: *** [CMakeFiles/face_landmark_detection_ex.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I know this is a standard problem and I googled a lot to figure this out but I cannot resolve it on my own :(

It looks like you are not properly linking the opencv shared library.
You need to make sure you add the library .so files in addition to the header files.
https://docs.opencv.org/3.1.0/db/df5/tutorial_linux_gcc_cmake.html
I would recommend just using the native functions in dlib for visualization:
https://stackoverflow.com/a/37563733
http://dlib.net/imaging.html

Your first link made me realize that instead of
  add_ex_link(face_landmark_detection_ex ${EXTRA_LIBS} ${OpenCV_LIBS})

I had
  add_ex_link(face_landmark_detection_ex ${EXTRA_LIBS})

in my CMakeLists.txt. I'm almost embarrassed how trivial this error was. Thank you very much!


Deletion/Unregister Task

This library has been great for scheduling & modifying tasks in Windows Scheduler, but I've run into a problem that I could not find a method for, it may not exist in your library.  How can a previously created and registered task be deleted or unregistered from Windows Scheduler?  I wanted to offer an option to clear out their previously created task, but am having trouble figuring out how to do this.
The TaskService only appears to offer AddTask methods, but not RemoveTask.  I do see that there is a DeleteTask method in the TaskFolder class, but I'm not 100% sure how to utilize this since I was not using any particular folders when I originally implemented scheduling.
Originally posted: 2014-02-08T16:01:24

You found it. Removing a task is done through the TaskFolder.RemoveTask method. If a folder has not been specified when registering a task, then it will be found in the root folder. TaskService has a RootFolder property to expose this. See this link for an example: https://taskscheduler.codeplex.com/wikipage?title=Examples&referringTitle=Documentation#editor.
Originally posted: 2014-02-10T09:19:52

Perfect.  Figured this out a bit before you posted, but thanks for confirming!
Originally posted: 2014-02-10T18:26:45


Dp 998

Integrate new lambdas for reloading a data product and resyncing a data product

note to self, these lambdas are manually triggered so I don't need to change the deployment triggers for the API


[swift-3.0-preview-1-branch][stdlib] Fix the definition of nextUp and nextDown for floating point

Explanation: fix a bug in nextUp and nextDown on floating point types.

Scope of the issue: advanced uses of floating point.

Risk: low.

Reviewed by: @gribozavr.

Testing: new regression tests.

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@swift-ci Please test


qemu/qmp: implement function for hotplug network

Implement function to hotplug and delete a network device to QEMU
Signed-off-by: Ruidong Cao<EMAIL_ADDRESS>

Coverage decreased (-1.8%) to 73.83% when pulling 88656d2af50f1718c066c913cebe043896d22fb4 on caoruidong:master into db7e149611c526606efddd6f0582f800af38aa9e on intel:master.

LGTM! Thanks @caoruidong!

LGTM

@amshinde @caoruidong we need a follow up PR about passing file descriptors in order to support MACVTAP here. We want to be able to hotplug some MACVTAP interface by passing the file descriptors out of band, and QMP has some mechanisms for this.


Create CODE_OF_CONDUCT.md

While these values themselves appear to be positive, we should address the massive security and reliability risk that code introduces, as Code Is A Liability.


[Engineering] Investigate using yarn and alternative monorepo tooling

Edit:
Alternatives to rush and pnpm may involve some sort of combination of yarn and another tool, especially as Yarn 2 now contains desired functionality we would obtain by using rush and pnpm.
Yarn 2 stable release blog post
GitHub repository for Yarn 2: https://github.com/yarnpkg/berry

Original post (Out of date):
Historically we've experienced difficulties with using lerna. This is a tracking item for investigating the use of rush and pnpm.
Path to success

[ ] Test branch with rush and pnpm configured
[ ] Functional Pipeline that contains rush and pnpm tasks

[enhancement]

FYI - there is a branch with this: https://github.com/christopheranderson/botbuilder-js/tree/chrande/rush
We've opted to focus on CLI repo for now since it is less busy to test rush there.
Overall, perf is really nice, especially on local machine with higher number of cores.

Add Workspaces and Workspace Depdencies

The work is currently being done on this branch: josh/yarn

The josh/yarn branch has yarn installed, and I believe the workspace configuration setup. I'd have to do a little more testing/wait for yarn2 documentation to get more fleshed out. It does not have workspace constraints or portals setup.

Closing via https://github.com/microsoft/botbuilder-js/pull/2984, let's follow up on any additional pieces of work in new issues.