Setting busy_timeout

I'm having issues using sqlite with multithreading. In particular I'm receiving a [SQLITE_BUSY] the database file is locked (database is locked) error.
I'm using sqlite-jdbc <IP_ADDRESS> on redhat 6.3.
I'm trying to set busy_timeout with no success. I'm using slick 3.1.0-RC2 for this.
I tried both using a simple query sqlu"pragma busy_timeout=10000" and from configuration like:
properties {
  busy_timeout=10000
}

In both approaches querying sqlite from the same thread and connection I get busy_timeout=0
I can successfuly set journal_mode = wal with this approach, I expected it to be the same with busy_timeout.
So I have 2 questions:

Is busy_timeout=0 a reasonable default?
Am I doing something wrong?

I believe #158 is related. Are you running in a VM?
This may be an old issue, but I believe it is still relevant. We see this quite often in our project.

Closing this as it's very old. Comment if necessary.


Force Network Manager to scene root if DDOL

DDOL is only valid for scene root objects.  Sometimes users try to "organize" their scene by putting things under empty elements with names like folders.  This forces the Network Manager object to scene root before calling DontDestroyOnLoad.

didn't we have this / remove this before?
sounds familiar

didn't we have this / remove this before?
sounds familiar

You may be thinking of the change we did to get NetMan out of DDOL when going to offline scene?


⚠ Bofrost.de has degraded performance

In 83ec4cd, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2472 ms

Resolved: Bofrost.de performance has improved in f237426 after 6 minutes.


Disconnected Network errors in aggregation

In tracking down #6, I found that ~34 flowlines in VPU01 are disconnected from the network.
These include:
[1]   695  2256  4671  4677  4792  4890  5288
[8]  5618  5951  6115  8856  8912  9230  9421
[15]  9976 10432 11572 12114 12131 12132 13970
[22] 14388 14686 15241 15346 15363 15914 16354
[29] 16676 16838 17798 18119 18147 18331

example:

This is occurring in collapse_headwaters

New result for above area:

Following this, there are 5 remaining disconnected IDs:
These are:
7725 12169 18727 22814 23489

Example:


Add RABIT_DLL tag to definitions of rabit APIs.

@ShvetsKS Could you try -DHIDE_CXX_SYMBOLS=ON again with this patch enabled?
Related: https://github.com/dmlc/xgboost/issues/5666#issuecomment-629182660

Thanks for fast investigation. Unfortunately I still have this undefined symbol error on 3220a69.
I fetch your changes for rabit repo, and used docker build:
sudo tests/ci_build/ci_build.sh gpu_build docker -it --build-arg CUDA_VERSION=10.0 tests/ci_build/build_via_cmake.sh -DOPEN_MP:BOOL=ON -DHIDE_CXX_SYMBOLS=ON

@ShvetsKS I will come back to this next week.  It's weird as now our pip package is by default built with hidden symbols.  Also I tried to docker build last week ..

some remark: if I use 1.1.0RC2/RC1 I can run my benchmark and there is no such error (undefined symbol: RabitGetRank). But if I try docker build with -DHIDE_CXX_SYMBOLS=ON I get error.
It's a little bit confusing if 1.1.0RC2/RC1 was built with -DHIDE_CXX_SYMBOLS=ON

@ShvetsKS RC2 should be built hidden symbols as it was to fix a bug where dmlc-core from xgboost clashes with dmlc-core from tvm.
Could you try running objdump -t libxgboost.so | grep "Rabit" and see what symbols are exported?

Sorry, my bad.  Rebased onto master.

It should work now.

Closes https://github.com/dmlc/rabit/issues/137 .


Only release automatically on Major, minor, or vuln fix PRs

Is your feature request related to a problem?
Yes, Currently our automated release process on actions releases after every merge to main. This could create more noise than necessary. For example if its only a documentation related update or dependabot PR than we don't really need to create a release for that.
Related OSPO Tool
automatic-contrib-prs GitHub Action, cleanowners GitHub Action, contributors GitHub Action, evergreen GitHub Action, internal-contribution-forks GitHub App, issues-metrics GitHub Action, stale-repos GitHub Action
Describe the solution you'd like
We should only create a release for major, minor, and vulnerability fixes.
Describe alternatives you've considered
No response
Additional context
No response

Initial thought is label detection but not clear on how to detect labels on the last merge to main from GitHub Actions.  Still researching this.  We can either always do the release and then mark no-release label on ones we don't want a release or vice-versa, add release label for when we want the automated release to fire.  Can even auto label with release when it is CVE/Security or major/minor related. 🤔

Looks great!!

I'm not finding a way to detect the last pull request's labels when a merge to the default branch occurs.  May have to rethink our release workflow 🤔

Wohoo!


Reachability analysis: optimize resolution of reflective proxies.

These optimizations were guided by a flame graph analysis.

Actually I have, and although it made this method disappear from the flame graph, it increased the overall clock time back to what it is after the first commit. I pushed it here if you want to have a look:
https://github.com/sjrd/scala-js/tree/analyzer-proxy-lookup-no-async-loop
I suspect that the async loop discharges the "main thread", allowing other stuff to happen in the meantime. But that explanation is probably bogus, because the async loop calls back into futures that must happen on the main thread, so :man_shrugging:

I managed to make the loop synchronous after several other changes. See #4813. The changes there build on top of this PR anyway.

Squashed everything, except the refactoring commit, because it provides a better diff, IMO.
Regarding comments at #4813:

It seems we have a trade-off here in how lazy we should be: We're now always calculating the whole ancestor chain, even if we don't use it. IIUC this depends on how "reflective proxy heavy" a codebase is.
Have you considered using a Stream / LazyList? IIUC if we get comparable performance on the Scala.js test suite, we're pretty sure it'll be at least as good on less reflective call heavy codebases.

If we compute ancestorsInReflectiveTargetOrder for a given class, we also compute proxyCandidates for that class (the converse is not always true). Computing the latter should dwarf the computation of the former, so I don't think being more lazy here can win anything.

With this refactoring, is the unrolling of the loop done in https://github.com/scala-js/scala-js/commit/195090eced050090990713d013942a4580d97ebf still justified?

That's now squashed away.

At this point, you don't need the handrolled loop anymore, right? (this is just a "get the first Some in an iterator").
Does it make sense to drop the first commit of #4811?

Sort of squashed away, although there's still a handrolled loop as findFirstNonEmptyCandidates. Reverting that one to
      val candidates = ancestorsInReflectiveTargetOrder
        .iterator
        .map(_.findProxyCandidates(proxyName))
        .find(!_.isEmpty)
        .getOrElse(Nil)

causes a 10-35% slowdown, though. So I think we should keep findFirstNonEmptyCandidates as it is.


Run systems concurrently

It would be cool to run our Updates concurrently, so we can. Something like https://github.com/Workiva/go-datastructures might be useful for concurrent-safe data structures.

Would this require that all Components have to be adjusted for this change?
A simple (maybe inferior) solution could be to use a double buffer for all systems that need to run on the primary thread.

I'd prefer not to use a library for this. Concurrent data structures are trivial to implement in Go and I'd prefer just adding locks where needed vs pulling in an entirely new dependency.

Thinking about this more @Noofbiz is my understanding correct that the OpenGL stuff must be executed on the main thread?
If so, it seems there could be three different goroutines here for parallelization:

The main goroutine that handles rendering
The "update" goroutine that handles updating the scene (this is mostly just updating the ecs.World, no?)
The "physics" goroutine which handles collision detection and any other physics work (such as box2d the box2d extension).

We need to be careful though because some things do need to be synchronized.

I'd prefer not to use a library for this. Concurrent data structures are trivial to implement in Go and I'd prefer just adding locks where needed vs pulling in an entirely new dependency.

my experience with 'lets use this executor concurrency library' has always resulted in 'lets remove that stupid library'.

The way I'm thinking about it would rely heavily on interfaces. We'd redo systems so that they just accept an interface, then we just implement the interface on the entities. For example, the RenderSystem right now uses SpaceComponent and RenderComponent. But all we really use on it are View(), Texture(), Height(), Width(), and Position(), and even these are just Reads in the case of the RenderComponent, we don't even need to alter values. So why do we need the whole SpaceComponent? We could just have an interface with all the stuff the RenderSystem needs for it's update, and accept that interface. Then in Update, we'd only call those interface functions. No need for casting or much runtime costs at all. The other great part of doing it this way is that the Read-Write interface functions, like Move() could contain locks within them already, making race conditions easier to account for and fix in one place. It would definitely be a 2.0 change, however.


Layer DESTROY event doesn't fire

Version
3.50.0
Description
Create a Layer game object. Add a listener to its DESTROY event. Destroy the layer. Listener is not called.
Example Test Code
https://codepen.io/samme/pen/vYXezqw
Nothing is logged to console.
Additional Information
In Layer#destroy listeners are removed too early.
Addendum
Docs should clarify that destroying a layer does not destroy its children.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Also now destroys all children.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Also now destroys all children.


Small interface error neet to fix

https://github.com/TapiocaFox/Daijishou/assets/165854589/a59ebcf6-ef03-4bbe-97b2-27f7b284f450
it's my firat time to use the app
i'm happy because it's easy to use
and the interface looks awesome

Might be do to an Arabic (?) locale error. Doesn't Arabic (?) typically align text to right-to-left? If so something that's something Daijishou doesn't seem to consider thus breaking the UI
This would need to be something @TapiocaFox would need to look at eventually when they have time

I am not quite sure about the error. Do you mean RTL is not preferred.


Weird SHAP value on nonsense features

Here is a reproducible example:
import shap
import lightgbm as lgb
import numpy as np
from sklearn.model_selection import StratifiedKFold
from sklearn import datasets

iris_data = datasets.load_iris()
X = iris_data.data
y = iris_data.target
columns = ["SpealLength", "Spealwidth", "PetalLength", "Petalwidth"]

skf = StratifiedKFold(n_splits=5, shuffle=True, random_state=2)
for train_index, test_index in skf.split(X, y):
    X_train, X_test = X[train_index], X[test_index]
    y_train, y_test = y[train_index], y[test_index]
    X_test[:, 3] = -1
    gbm = lgb.LGBMClassifier()
    gbm.fit(X_train, y_train)

    explainer = shap.TreeExplainer(gbm)
    shap_values = explainer.shap_values(X_test)
    shap_values = np.mean(np.abs(np.array(shap_values))[0], 0)
    feature_sv = sorted(zip(columns, shap_values), key=lambda x: x[1], reverse=True)
    print(feature_sv[:10])

And the results show:
[('PetalLength', 4.858092780782831), ('Petalwidth', 0.0012865959831269906), ('Spealwidth', 3.8665361772338584e-05), ('SpealLength', 0.0)]
[('Petalwidth', 2.655228940497153), ('PetalLength', 2.421352212484698), ('Spealwidth', 0.5307075601481597), ('SpealLength', 0.0037697507681040774)]
[('PetalLength', 2.173101023727372), ('Petalwidth', 2.057670109460788), ('Spealwidth', 0.7979735129785577), ('SpealLength', 0.024708537502171113)]
[('PetalLength', 2.867789710676412), ('Petalwidth', 1.9952776618118169), ('Spealwidth', 0.4509510975472647), ('SpealLength', 0.0013865223007028945)]
[('Petalwidth', 2.8352003391762564), ('PetalLength', 2.4441519324102843), ('Spealwidth', 0.4346696659994451), ('SpealLength', 0.020631343251965934)]
What happens?? Since Petalwidth has been set to -1 in X_test which is a nonsense value and never appears in training set before, why it still has such a large shap value?

And there is an exception if I pass X_train to shap.TreeExplainer:
Exception: Additivity check failed in TreeExplainer! Please ensure the data matrix you passed to the explainer is the same shape that the model was trained on. If your data shape is correct then pleas
e report this on GitHub. This check failed because for one of the samples the sum of the SHAP values was -8.478234, while the model output was -8.813882. If this difference is acceptable you can set c
heck_additivity=False to disable this check.

I have a similar issue with both training and test data. I am getting the following exception with scikit-learn=0.23.2 and shap=0.37.0
Exception: Additivity check failed in TreeExplainer! Please ensure the data matrix you passed to the explainer is the same shape that the model was trained on. If your data shape is correct then please report this on GitHub. Consider retrying with the feature_perturbation='interventional' option. This check failed because for one of the samples the sum of the SHAP values was 0.626204, while the model output was 0.710000. If this difference is acceptable you can set check_additivity=False to disable this check.

I have a similar issue with both training and test data. I am getting the following exception with scikit-learn=0.23.2 and shap=0.37.0
Exception: Additivity check failed in TreeExplainer! Please ensure the data matrix you passed to the explainer is the same shape that the model was trained on. If your data shape is correct then please report this on GitHub. Consider retrying with the feature_perturbation='interventional' option. This check failed because for one of the samples the sum of the SHAP values was 0.626204, while the model output was 0.710000. If this difference is acceptable you can set check_additivity=False to disable this check.


Use Lombok

[ ] Getters and setters
[ ] Loggers
[ ] Constructors (???)
[ ] Anything else, e.g. any synchronized usages on methods? Any builders?

After looking through the code, using Lombok doesn't really save much code. A few classes could use @Slf4j. Several could use @AllArgsConstructor but they would still need their other, less-than-all-args constructors, so having them mixed-and-matched may be more confusing. And we could eliminate a few getter/setter pairs in ConsulFactory, but the majority need to stay as-is b/c of the original design which uses Optional as the type of the field and as the return type of the "getter" methods. Again, sprinkling a few Lombok @Getter and @Setter in with the non-standard Optional-returning "getter" methods and "setter" methods that accept a value and wrap with an Optional, would probably end up more confusing than leaving it all alone.
So, I am closing this as "Won't Do".


Weathermap issue NOT resolved in v3.8

unable to reopen existing issue - but have updated with compose.yml and other information (
https://github.com/danielbrendel/hortusfox-web/issues/306#issue-2666325957 )

Hi, I just looked into it and you're right. This is a weird thing, but it
will happen in like 1 in 3 time zones. The ones across the globe I tested
them with coincidentally worked, but the others won't. I will provide a fix
within the next version. However, this will take at least until next month
or maybe even the new year.
Notes:

There are different base times depending on the time zone, which is
either 1:00, 2:00 or 3:00. Also examine depending behaviour for DST.
Completely refactor the forecast algorithm

Thanks for looking into it - apologies for being a pain, but this is an (annoying) part of an otherwise fantastic app! Thanks for your time, and no worries on a fix - but thought it was important that I update you as I was trying it anyway. On the upside - Im a dab hand at spinning up instances now ;)

No worries! I appreciate the responses. Sometimes features are a bit hard to test in call cases, but this is really helpful!

I've just published an update. Does it now work for you?

I can confirm this now works perfectly, as intended!

A personal note of preference - I would prefer it to be a bit less spaced out, so I can see a full day in one screen, but that is just an observation. Thank you for taking the time to resolve this and improving an already good app even further! 👍

Resolved.


[Solved] Misc (Donation Machine, Streak) not changeable

So when opening a save file the program allows me to "tweak" the values for those parameters such as Donation Machine, Greed Machine, and Win Streak, however, those changes will never save.
If after changing the Donation amount you hit "Unlock all Secrets/Items/Challenges" OR you select a character on the Completion Marks screen (just selecting not even toggling a Completion Mark will do the trick), the value will return to its starting value again.
As such, it's impossible to alter the Eden Tokens or Donation amount.
Here's a video of what I am talking about: https://imgur.com/a/Az8XVJ6
It would be really sick if you were able to fix this hiccup.

Try pressing enter after you enter the value. I have tested those before and they worked for my so I'm not sure why it wouldn't be working for you.

Holy smokes I was hoping for a reply without a day or so but 2 minutes?!?
And yes, it's the case. You have to input Enter for it to change the value...


Review command line options and argument descriptions

Before releasing to the public, I'd like to do one final group review of the command line options to make sure they make as much sense as possible, and have as good descriptions as possible, to a brand new user.

This has been done


Standalone json output not working on arcguard scanner cli all 2.2.2

Describe the bug
Standalone output in json is not working as of now post upgradation to 2.2.2. The same command works with 2.1.5.
java --add-opens=java.base/java.nio=ALL-UNNAMED -jar /Users/jayghiya/Documents/unoplat/scanner_cli-2.2.2-all.jar --with-function-code --path=/Users/jayghiya/Documents/unoplat/textgrad/ --output=json --language=python --output=arrow --depth=10

Env (please complete the following information):

OS: Macos
Env: Local Dev
Browser Not applicable
Version [e.g. 22]

To Reproduce
Run the command for python codebase for https://github.com/zou-group/textgrad and it does not work.
Expected behavior
Ideally 0_Codes.json should be having all the metadata but in this case it creates an empty file. 2.1.5 works fine.

@JayGhiya thanks for feedback, already fixed it, try 2.2.3

@phodal thanks :) much appreciated! tried and it worked


refactor: make sure add all runtime globals when process_runtime_requirements

Summary
https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/Compilation.js#L3509-L3513
set can insert when iterating it

Test Plan

Require Documentation?

[ ] No
[ ] Yes, the corresponding rspack-website PR is __

!bench

!eco-ci

!diff


Adds link to CHAOSS, makes a few content tweaks

Signed-off-by: Elizabeth Barron<EMAIL_ADDRESS>

Ugh, I found another mistake. Closing this PR! Sheesh.


community: updated openai prices in mapping

Description: there are january prices update for chatgpt https://openai.com/blog/new-embedding-models-and-api-updates, also there are updates on their website on page https://openai.com/pricing
Issue: N/A

How about updates for the new gpt4 and embeddings pricings? Any plan to fix those?


New FAM DDL - update data model

Based on a discord convo:
While we are at it, the "name" field should be unique on other tables as well: fam_group, fam_role, fam_forest_client,
And there should be a unique key on fam_user for user_type/user_name combo
And we decided that we need fam_user.user_guid to be nullable for MVP (since we aren't doing a lookup yet at IDIM)
And we flubbed the multiplicity of the relationship between fam_application_client and fam_application. It was supposed to be many fam_application_client to one fam_application. We have it the other way around.
And renaming app_fam.group (name) to app_fam.group (group_name), so to use a consistent naming convention across the model. E.g. : role, client, application have columns named "role_name", "client_name", "application_name" .....
AC:
put migration into repo; pipeline run into DEV goes smoothly

Completed. Merged into dev branch and successfully deployed to the database.


"Tigveni" is listed in the drop-down menu

Description:
When user writes "Tigveni" the location appears in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Tigveni"

Expected results
The location appears in the drop-down menu as "Comuna Tigveni, ARGEȘ"


tools/install-powershell.ps1 installs Win32 build on ARM64 Windows PC

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
VERBOSE: About to download package from
'https://github.com/PowerShell/PowerShell/releases/download/v7.0.2/PowerShell-7.0.2-win-x86.msi'
^C

Expectation is it would install PowerShell-7.0.2-win-arm64.msix instead.

Unfortunately the script does not support installing msix but only MSI. The script at https://github.com/PowerShell/PowerShell/blob/master/tools/install-powershell.ps1 needs to be updated for supporting installing via msix
Thanks for reporting! We would appreciate if you could take a crack at it.


Calling a non-existing contract adds a value into the witness

If a message is sent to a non-existing address, the execution will not happen, but this address will be "touched", which means that it ends in the list of keys, and eventually in the witness.
There is currently a sanity check to ensure this doesn't happen, and a panic is raised.
The correct behavior would be not touch the address until is it confirmed that the address exists.
In state_transition.go:343:
if st.evm.StateDB.GetCodeSize(*targetAddr) != 0 {
  statelessGasDest := st.evm.Accesses.TouchTxExistingAndComputeGas(targetAddr.Bytes(), msg.Value().Sign() != 0)
  if !tryConsumeGas(&st.gas, statelessGasDest) {
    return nil, fmt.Errorf("%w: Insufficient funds to cover witness access costs for transaction: have %d, want %d", ErrInsufficientBalanceWitness, st.gas, gas)
  }
}

This issue serves as a reminder to

try the above code
check that calling an EoA will touch the addresses but will not panic (i.e. write a test to this effect)
check that calling an existing contract will still work

This is fixed and has been tested on the last few testnets.


DO NOT MERGE! Fast Forward stable to 685455cc638473da2b0442e6f69d5356cbca45ec.

This PR will be merged automatically once checks are successful.

This change is

Jenkins job istio/mixer-pr-stable passed


Option to set file timestamp to download date rather than server/published date

Before going further

[x] I assure that my problem is NOT with youtube-dl
[x] I've verified and I assure that I'm running youtube-dl-gui 0.3.8
[x] I assure that i am using the latest version of youtube-dl
[x] Searched bugtracker

What is the purpose of your issue?

[ ] Bug during the download process (encountered problems after hitting the Download button)
[ ] Bug other (encountered other problems with youtube-dl-gui)
[x] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Description of your issue, suggested solution and other information. Please make sure the description is worded well enough to be understood.
In both windows and linux version, after downloading, the timestamp of the file (last modified time is the most commonly used parameter) is set as the publishing date or the video's original timestamp on server. That causes a problem of hiding away recent downloads down the pile if their publish date was not recent. In windows I can at least set the folder's sorting to file creation time, which then brings the files up. But in my lubuntu pcmanfm file manager i have no choice. As a user this causes me trouble especially if I have multiple videos to download - I have to keep on changing the download path to  a new folder just make sure I don't lose latest videos.
I can also understand there would be valid use cases where the user would want the file timestamp to be same as the publish date. But can we not have both options since this is a GUI? I suggest adding this option (set timestamp to download time instead of server time) under the "Filesystem" tab in the options window. Alternatively, please advise what to put in command line arguments to make this happen.

please advise what to put in command line arguments to make this happen.

The option you're looking for is
--no-mtime
              Do not use the Last-modified header to set the file modification time

As nodiscc said you can add the --no-mtime flag under the Options>Commands tab.
Also, if you use the new GUI this option is available under Options>Extra tab ("No mtime").

awesome, thanks! I'm using this on lubuntu / ubuntu .. any hint on how to get the new GUI? Or I can wait till the feature comes in the main repo etc.

You can test the new GUI by running the following commands in a terminal window:
git clone https://github.com/MrS0m30n3/youtube-dl-gui/ -b new_layout
cd youtube-dl-gui
python -m youtube_dl_gui

Note that the new_layout branch is not stable, if you find any bugs please let us know.


[#107186966] Return countersigned framework agreements to suppliers

See: https://www.pivotaltracker.com/story/show/107186966
The first batch of countersigned framework agreements from CCS have now been uploaded to S3.
This story allows suppliers to access their countersigned agreement from their framework dashboard page if it has been uploaded.  The page checks for the existence of a countersigned agreement for the supplier in S3, and displays a link to it if it finds one.
This is how the page will look once the countersigned agreement has been uploaded (OK'd by @ralph-hawkins ):

Once they have their countersigned agreement then suppliers should no longer be able to contact CCS from the question box:

:+1:


UnidentifiedImageError when reading in Nanostring CosMx Data

Hi,
I am receiving the error below when I am loading in Nanostring data. And I found that if I delete the imge folder ("CellComposite", "CellOverlay") and only keep the exprMat, matadata and fov CSV files, the CosMx data loads successfully. But in this way, images are missing. What is causing this issue? Is there anyway to fix it?
Thank you so much for help!
nanostring_dir = "E:/CosMx Data/CosMx_bone_small_full/1117small/20231118_015620_S1"
sample_dir = nanostring_dir + "/CellStatsDir"
adata = sq.read.nanostring(
    path=sample_dir,
    counts_file="S0_exprMat_file.csv",
    meta_file="S0_metadata_file.csv",
    fov_file="S0_fov_positions_file.csv",
)

UnidentifiedImageError                    Traceback (most recent call last)
Cell In[4], line 4
      1 nanostring_dir = "E:/CosMx Data/CosMx_bone_small_full/1117small/20231118_015620_S1"
      2 sample_dir = nanostring_dir + "/CellStatsDir"
----> 4 adata = sq.read.nanostring(
      5     path=sample_dir,
      6     counts_file="S0_exprMat_file.csv",
      7     meta_file="S0_metadata_file.csv",
      8     fov_file="S0_fov_positions_file.csv",
      9 )

File D:\Software\anaconda3\Lib\site-packages\squidpy\read\_read.py:260, in nanostring(path, counts_file, meta_file, fov_file)
    258 fov = str(int(pat.findall(fname)[0]))
    259 try:
--> 260     adata.uns[Key.uns.spatial][fov]["images"][kind] = _load_image(path / subdir / fname)
    261 except KeyError:
    262     logg.warning(f"FOV `{str(fov)}` does not exist in {subdir} folder, skipping it.")

File D:\Software\anaconda3\Lib\site-packages\squidpy\read\_utils.py:61, in _load_image(path)
     60 def _load_image(path: PathLike) -> NDArrayA:
---> 61     return np.asarray(Image.open(path))

File D:\Software\anaconda3\Lib\site-packages\PIL\Image.py:3309, in open(fp, mode, formats)
   3307     warnings.warn(message)
   3308 msg = "cannot identify image file %r" % (filename if filename else fp)
-> 3309 raise UnidentifiedImageError(msg)

UnidentifiedImageError: cannot identify image file 'E:\\CosMx Data\\CosMx_bone_small_full\\1117small\\20231118_015620_S1\\CellStatsDir\\CellComposite\\._CellComposite_F028.jpg'

hi @keiven-kun , I think the nanostring reader has been having issues, possibly due to bugs or new releases of the spec, there are other issues related to it. Unfortuantely, I don't have time to look at it, and would suggest to use https://github.com/scverse/spatialdata-io to read n the data

Hi @giovp , thank you for responding, I will try to use https://github.com/scverse/spatialdata-io to read the data


fix: narrowed session type passed to fetch session hook

The return value of requireUserSession is guaranteed to have the user component defined.
Previously, the return type was changed to reflect that fact but the session type passed to the fetch hook was not.
(It was not immediately clear to me, but the result of requireUserSession is passed into the fetch hook)
This fixes that and should avoid users to do an unnecessary check when hooking into fetch
Previously:
export default defineNitroPlugin(() => {
  sessionHooks.hook('fetch', (session, event) => {
    // session.user is possibly undefined, so we add a guard
    if (!session.user)
      // Do something

    // Do what you actually wanted to do with 'session.user'
  });
});

With this PR:
export default defineNitroPlugin(() => {
  sessionHooks.hook('fetch', (session, event) => {
    // session.user is defined so you can immediately do things without the need for a check
  });
});

Also, ActiveUserSession is not exposed because the type is completely defined by UserSession and User.

Thanks!


Need to update apollo-codegen-core

Intended outcome:
There should be no error message when I run npm ls -g --depth=0.
Actual outcome:
node -v
v10.13.0
npm ls -g --depth=0
/Users/mynamehere/.nvm/versions/node/v10.13.0/lib
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>
npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0, required by<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>|| ^0.13.0, required by<EMAIL_ADDRESS>
Versions
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>
Current version of apollo-codgen-core is v0.32.5 and graphql-cli is using 0.20.1.
Is it possible to upgrade to the current version?

I am getting this error, as well.
I'm aware that it says
deprecated<EMAIL_ADDRESS>The 'apollo-codegen' command has been replaced with the more-powerful 'apollo' CLI. Switch to 'apollo' to ensure future updates and visit https://npm.im/apollo#code-generation for more information.

But apollo's version of graph-cli's get-schema is not the same and does not work for my purposes.

Any updates on this?

Currently we have new structure for GraphQL CLI and in the new alpha version 4.0.0-alpha.0 .
We use GraphQL Code Generator for codegen command to generate typings and code from schema using various plugins of it.
Checkout new instructions and we will be happy to hear your feedback. Feel free to contact us using our Discord channel;
https://discord.gg/xud7bH

We have just released a new structure for GraphQL CLI in new alpha versions track -  4.0.0-alpha.XXX!
We use GraphQL Code Generator as the default package for the codegen command to generate typings and code from schema using it's various plugins.
Checkout new instructions and the migration guide and we will be happy to hear your feedback.
Feel free to contact us by opening an issue or using our Discord channel;
https://discord.gg/xud7bH
You can still change the default package for codegen from GraphQL Code Generator to Apollo's codegen.
If you want to keep using Apollo codegen and don't know how to do that, please open a new issue so we can track it and make sure it works and that it's documented properly.

I've posted the wrong Discord link, this is the correct one: https://discord.gg/xud7bH9


Memory usage over time (many prompts)

Hi,
thanks a lot for this useful package.
I'm building an interactive app (not using asyncio) involving large lists and jumping back and forth instantiating new prompts on the way; it is intended to run for a while.
I noticed memory usage keeps growing and very little being released over time.
Am I right in assuming on event.app.exit() the prompt should exit and tear down entirely? Is there anything else I can/should do to reset/clean up?
Python 3.10.2 on windows (tags/v3.10.2:a58ebcc, Jan 17 2022, 13:59:55) [MSC v.1929 32 bit (Intel)]
inquirerpy==0.3.3
prompt-toolkit==3.0.28

Here's a simple demo to highlight the issue:
import time, random
from InquirerPy import inquirer
from pynput.keyboard import Key, Controller
from mem_top import mem_top

def makeChoices():
	for i in range(1000):
		words = "The value that should be presented to the user prior/after selection of the choice. This value is optional, if not provided, it will fallback to the string representation of value.".split()
		random.shuffle(words) # not needed to reproduce
		yield " ".join(words)

def getChoices():
	choices = []
	for choice in makeChoices(): choices.append(choice)
	return choices

def _prompt(i):
	inquirer.select(message="Testmem prompt" if i > 0 else "Press enter to start test", choices=getChoices(),
		default=None, show_cursor=False).execute()
	if (i < 100): # this runs in the next iteration
		for i in range(1000):
			keyboard.press(Key.down)
			keyboard.release(Key.down)
		keyboard.press(Key.enter)
		keyboard.release(Key.enter)

keyboard = Controller()

i = -1
while i < 100:
	i += 1
	time.sleep(0.5)
	_prompt(i)

print(mem_top())

"""
refs:
9093    <class 'prompt_toolkit.filters.base._AndCache'> {(~Condition(<function is_done at 0x03BE0FA0>), Condition(<function BaseComplexPrompt.__init__.<loca...
4001    <class 'prompt_toolkit.formatted_text.base.FormattedText'> FormattedText([('class:pointer', '❯'), ('class:marker', ' '), ('[SetCursorPosition]', ''), ('class:p...

types:
202428   <class 'dict'>
169534   <class 'prompt_toolkit.key_binding.key_bindings.Binding'>
155551   <class 'tuple'>
118098   <class 'list'>
59785    <class 'function'>
35636    <class 'frozenset'>
34023    <class 'prompt_toolkit.styles.base.Attrs'>
27188    <class 'cell'>
8699     <class 'collections.deque'>
8389     <class 'prompt_toolkit.cache.SimpleCache'>
"""

Hi @robot3498712 ,
Thanks for raising. You are correct that event.app.exit() should kill the app entirely, I'm not too sure if there's another way/entry point to cleanup. Since the entire application is built around prompt_toolkit Application, it might be beneficial for you to raise it in their repository directly and see if they can advise on the memory usage or other mechanics to cleanup.
Thanks,
Kevin


Make this project executable

I think it is proper to make the project into a single file. So I can put it under the $PATH.
And maybe the config file can put under the $HOME/.config directory.

Close issue due to out of project goal.
Implement in my fork


FEAT Local Hugging Face model support

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

We have a few downloaded Hugging Face models and we would like to use PyRIT for AI red teaming. I didn;t find any Prompt Target fits this case. Any support for local HF model would be great.
Describe the solution you'd like

We would like to have a prompt target and Score engine for local Hugging Face model for a chatbot setup. The model is already downloaded and stored, it can be loaded by Hugging Face transformers and the dataset can also be loaded from Hugging Face.
An example model can be https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3
Describe alternatives you've considered, if relevant

Additional context

@EricXQiu that's a great idea, thanks for the suggestion! We have lots of examples of how to write targets so anyone should be able to pick this up. If you want you could try it yourself (please comment here if you intend to do so, otherwise there may be duplication). We'll obviously provide feedback and guidance along the way.
FWIW this is something we hear regularly and want to have support for it at some point although I don't have a specific timeline at this point.

No need to wait. It's yours!

Update: We've had this before and removed it, but want it back with modifications. There is some context that I should share and I will, but probably only tomorrow. We will need to hash out what this should look like... obviously happy to receive a proposal from you @KutalVolkan if it's of interest to you.

Update: We've had this before and removed it, but want it back with modifications. There is some context that I should share and I will, but probably only tomorrow. We will need to hash out what this should look like... obviously happy to receive a proposal from you @KutalVolkan if it's of interest to you.

Hello Roman,
Once I have a better understanding of the requirements, I'll be happy to propose a detailed plan and start working on it.
Looking forward to your input!

This is the PR that removed the old target: https://github.com/Azure/PyRIT/pull/120
We removed it because we couldn't run the notebook which used the HuggingFaceChat target because the model took a long time to import.
IMO This probably boils down to two cases:

a tiny model that can run on a fairly normal machine
medium-to-large models (think anywhere from 10B+ to several hundred billion parameter models) that will not run on a normal machine but you need a huge GPU cluster somewhere (which essentially means cloud).

The former seems reasonable to support. The old target code may be a good starting point, although it's worth noting that targets have evolved a little since then (async, retries, to name a few) and adjustments will be required.
The latter is already supported via our Azure ML Target (where one can deploy HF models fairly seamlessly) BUT one could certainly add a HF target for talking to the endpoint in their cloud.
Work Required:

See if we can make it run faster for test scenarios. Are there small models that load reasonably fast? [hint: phi3 or similar maybe? I have not tried...]
There are also things we can probably do to refactor and make it maintainable. As you can see in the old code there was functionality to detect strings like "ASSISTANT" and then parse out responses. Hopefully, there are easier ways to separate out messages by now, but I haven't checked.
Re-Include a notebook in our jupyter notebooks for this new target.
tests: can we mock the import portion while testing the other code?

Adding @rdheekonda to add to this since he's looked into it before, similarly @rlundeen2.
@KutalVolkan feel free to play around with this and let us know what you think. We're pretty open to suggestions here.


🧼 0.2.0 updates

Summary:
This PR cleans up a couple of things in anticipation of another btrfsutils release.

Sets the edition to 2021
Updates btrfsutils-sys to the latest version (1.3.0)
Updates the public-facing API with any changes from btrfsutils-sys or from the edition change.
Updates the example to work with the new (and old?) API
Migrates from Travis to GitHub Actions for pre-release checks and tag-based releases
Updates the README and other docs with updated/more accurate instructions.
Adds me as an author (let me know if that's too presumptuous on my part, @cezarmathe).

@cezarmathe thanks for the approval! I don't have permission to merge this or adjust repo settings to get around the (failing and required) Travis CI checks, so you might need to still hit that merge button.


Getting error when calculating entropy for each images in the batch in the input tensor in a custom layer in tensorflow/Keras.

I am working on a problem in which I have to create a custom layer in keras, which takes, output of a conv layer of a pre-trained model as an input. This custom layer work is to select K best feature maps based on shannon entropy for each images in that input tensor and then outputs the final tensor with k feature maps or each images. So that this output tensor is passed to other conv layer in the model.
Let input tensor from a conv layer has shape = (None, 224,224, 128) and I want to take 64 best feature maps out of 128 based on shannon entropy . So the output tensor shape should be = (None, 224,224, 64).

System Informations:
python version = '3.9.12'
tensorflow version = '2.10.0'
Platform = Windows 11
Running on CPU
Below is the code snippet :
`
          class select_k_fmap(tf.keras.layers.Layer):
                def __init__(self):
                    super(select_k_fmap, self).__init__()

                def build(self, input_shape):
                    pass

                def call(self, inputs):
                    """
                    tensor shape = (batch_size, img_height, img_width, no. of filters)
                    """
                    shape = tf.shape(inputs)
                    batch_size = shape[0]
                    print('batch size **** ', batch_size)
                    num_filters = shape[-1]
                    img_height = shape[1]
                    img_width = shape[2]

                    k = 4 # no. of best feature maps to select

                    def k_best_fmap(image):
                        """
                        returns k best feature maps of an image having n feature maps
                        """
                        def shannon_entropy(feature_map):
                            """
                            returns entropy of a image in a input batch
                            """
                            value_ranges = [0.0, 1.0]
                            nbins = 256
                            histogram_bin_indexes = tf.histogram_fixed_width_bins(image, value_ranges, nbins)
                            _, _, count = tf.unique_with_counts(histogram_bin_indexes)
                            prob = count/tf.reduce_sum(count)
                            prob = tf.cast(prob, tf.float32)
                            entropy = (-tf.reduce_sum(prob * tf.math.log(prob)))/(tf.math.log(2.0))
                            return entropy

                        final_image = tf.zeros_like(image) #shape = (img_height, img_width, no. of filters)
                        entropy = []
                        num_featuremaps = tf.shape(image)[-1]
                        for j in range(int(num_featuremaps)):
                            image_ith_filter = image[:,:,j]
                            image_ith_filter_entropy = shannon_entropy(image_ith_filter)
                            entropy.append(tf.get_static_value(image_ith_filter_entropy).item())

                        entropy_array = tf.argsort(entropy, direction='DESCENDING')
                        k_best_entropy_sort_index = tf.get_static_value(entropy_sort_index[:k]).tolist()

                        for index, element in enumerate(k_best_entropy_sort_index):
                            final_image[:,:,index] = image[:,:,element]

                    output_tensor = tf.map_fn(fn=k_best_fmap, elems=inputs)

                    return output_tensor`

But when I ran this code I got error :

I have tried many solutions available on the internet. But nothing worked.
I think this error is due to the shape of input tensor having None as first value in its shape (None, 224,224, 128). But I am unable to resolve this error. I want to wok on dynamic batch tensor as input .
It would be a great help for me if anyone of you could assist me. Thanks in advance.

@DeveshS215,
I tried to execute the mentioned code and it was failing due to SyntaxError: invalid syntax. Kindly find the gist of it here and provide the complete code or the colab gist you are using. Thank you!

@tilakrayal,
Thank you.
I have provided the full code and remove that syntax error. The collab gist is here.

@DeveshS215,
Apologies for the delay.Thank you for opening this issue. Development of keras moved to another repository.
Could you please post this issue on keras-team/keras repo.
To know more please refer:
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999
Thank you!

@tilakrayal
I have posted on keras repo.

@DeveshS215,
Could you please feel free to move this issue to closed status, so that we can track the issue there. Thank you!


Fix issues we found at Cosin

[ ] Explain syntax more gracefully
[x] Explain structs and methods on structs
[ ] Community: Participating, easy issues etc.
[ ] Explain some more of the benefits of Rusts guarantees
- Safe Zero-Copy interfaces
- No segfaults (coredumps :wink: )

Link to Slides and Examples


404s do not raise X::NotFound

it seems when the x API returns a resource not found error, x-ruby simply returns the JSON-parsed error response body as if the request were successful. e.g.
client.get("users/by/username/doenotexist827")
{
  "errors" => [
    {
      "value"         => "doenotexist827",
      "detail"        => "Could not find user with username: [doenotexist827].",
      "title"         => "Not Found Error",
      "resource_type" => "user",
      "parameter"     => "username",
      "resource_id"   => "doenotexist827",
      "type"          => "https://api.twitter.com/2/problems/resource-not-found"
    }
  ]
}

ah... seems this is an issue with X not returning the correct status code 😞
<- "GET /2/users/by/username/doenotexist827 HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.twitter.com\r\nContent-Type: application/json; charset=utf-8\r\nUser-Agent: X-Client/0.11.0 ruby/3.1.4 (aarch64-linux)\r\nAuthorization: OAuth oauth_consumer_key=\"[redacted]\", oauth_nonce=\"5897d928b2af85a623d38382f6050ff3\", oauth_signature=\"P%2F83t65bgYu5NFgq4I3io5J1w%2B0%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1698967170\", oauth_token=\"[redacted]\", oauth_version=\"1.0\"\r\nConnection: close\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "date: Thu, 02 Nov 2023 23:19:30 UTC\r\n"
-> "perf:<PHONE_NUMBER>\r\n"
-> "server: tsa_p\r\n"
-> "set-cookie: guest_id_marketing=v1%3A169896717030328954; Max-Age=63072000; Expires=Sat, 01 Nov 2025 23:19:30 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None\r\n"
-> "set-cookie: guest_id_ads=v1%3A169896717030328954; Max-Age=63072000; Expires=Sat, 01 Nov 2025 23:19:30 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None\r\n"
-> "set-cookie: personalization_id=\"v1_OTPJHQ5lmfGf0f7NOMs+BA==\"; Max-Age=63072000; Expires=Sat, 01 Nov 2025 23:19:30 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None\r\n"
-> "set-cookie: guest_id=v1%3A169896717030328954; Max-Age=63072000; Expires=Sat, 01 Nov 2025 23:19:30 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None\r\n"
-> "api-version: 2.78\r\n"
-> "content-type: application/json; charset=utf-8\r\n"
-> "cache-control: no-cache, no-store, max-age=0\r\n"
-> "content-length: 195\r\n"
-> "x-access-level: read-write-directmessages\r\n"
-> "x-frame-options: SAMEORIGIN\r\n"
-> "content-encoding: gzip\r\n"
-> "x-transaction-id: 33c32b7ef25e8e1b\r\n"
-> "x-xss-protection: 0\r\n"
-> "x-rate-limit-limit: 900\r\n"
-> "x-rate-limit-reset:<PHONE_NUMBER>\r\n"
-> "content-disposition: attachment; filename=json.json\r\n"
-> "x-content-type-options: nosniff\r\n"
-> "x-rate-limit-remaining: 895\r\n"
-> "strict-transport-security: max-age=631138519\r\n"
-> "x-response-time: 34\r\n"
-> "x-connection-hash: 473de5a578b1ee1a98ea5cb08954055fe522354259788295f2c511c275bf79ee\r\n"
-> "connection: close\r\n"
-> "\r\n"
reading 195 bytes...
-> "\x1F\x8B\b\x00\x00\x00\x00\x00\x00\x00l\x8E\xCB\n\xC20\x10E\x7F%dm\e\xE8F\xC9Vt\xE9\x0FH\x91\xD8Li \xED\x84d\xE2\x83\xD2\x7Fw\xE2\x03\x14\xDC\r\xF7q\xE6\xCE\x12b\xC4\x98\xA4>\xCE\xF2b|\x06\xA9\xA5E\x98\x90\xE0\xE6\x12m\x9A\xB5\\I\vd\x9Cgg\x8B\xD9[\xC1\xA6\xE8\xDDdEN\x10\xC5\xD5\xD1\xF0\xBC&3\x82\x16\xC7\xDFv[s\x9F\x1C\xF9\x02>pq\x8F\x99\x9B\xBB\xF2\x95\x9D\b\ts\xEC\xE0D\xF7P\x12\x85\xC3r0\x91a\xC4\xF7K*\xE8\xEF\xB4\xB3\xFFf\xBE\x19\x03QHZ)\x13\\M\xBC\x8E1u\x87\xA3jT\x88x\xF60&\xF5\x01U\f\xA8\xFA\xB2H.\xED\xF2\x00\x00\x00\xFF\xFF\x03\x00t\x1Ds\xD5\r\x01\x00\x00"
read 195 bytes
Conn close

according to support:

V2 implementation is different from V1.1.

In V2 response payload you will need to refer to the details and it wont return 404.

🤔

🤝

Hey @jakeonfire, thanks so much for your sponsorship! I’m looking into this issue now.

Thank you for brining this odd API behavior to my attention. In my opinion, this is quite a bad API design, but it’s what we have to work with.
Here are my initial thoughts about the best way to address this, but I’d love your feedback:
X::NotFound would be the parent class of X::Error::NotFound (HTTP status code 404) and X::Problem::ResourceNotFound (HTTP status code 200, as you describe above). This way you can rescue X::NotFound or a more specific error or problem if you prefer and existing code would not need to change (backward compatible). X::NotFound would continue to inherit from X::HTTPError, which itself inherits from X::Error (which inherits from StandardError). X gem users could rescue at any of these levels.
Similar Twitter::Problem classes would be defined for all of the documented problems.
What do you think of this approach?

i think this is a good approach. i guess the hairy part is for multi-resource requests where some of the requested resources have a "problem" and some do not. do you think it works in this case as well?
fwiw this case doesn't concern our particular usage.

here is the documentation on it: https://developer.twitter.com/en/support/twitter-api/error-troubleshooting (see second section: "Partial errors").
examples:
client.get("tweets?ids=1721704226525466834,1821704226525466834")
{
  "data"   => [
    {
      "edit_history_tweet_ids" => [
        "1721704226525466834"
      ],
      "id"                     => "1721704226525466834",
      "text"                   => "24h je suis ici, w’Allah j’ai déjà vécu des moments de fou"
    }
  ],
  "errors" => [
    {
      "value"         => "1821704226525466834",
      "detail"        => "Could not find tweet with ids: [1821704226525466834].",
      "title"         => "Not Found Error",
      "resource_type" => "tweet",
      "parameter"     => "ids",
      "resource_id"   => "1821704226525466834",
      "type"          => "https://api.twitter.com/2/problems/resource-not-found"
    }
  ]
}

client.get("users?ids=1299823560156942342,1399823560156942342")
{
  "data"   => [
    {
      "id"       => "1299823560156942342",
      "name"     => "🌼",
      "username" => "user48993"
    }
  ],
  "errors" => [
    {
      "value"         => "1399823560156942342",
      "detail"        => "Could not find user with ids: [1399823560156942342].",
      "title"         => "Not Found Error",
      "resource_type" => "user",
      "parameter"     => "ids",
      "resource_id"   => "1399823560156942342",
      "type"          => "https://api.twitter.com/2/problems/resource-not-found"
    }
  ]
}

@jakeonfire Thank you for providing those example responses. Given that they contain the requested data, in addition to errors, I don’t believe that raising an exception is appropriate. How would you expect this library handle these cases?

i agree when there is successful response data and an error that no error should be raised. i'm disappointed in X's decision to do something similar when either the only requested resource returns just the error, and less so when all requested resources for multi-resource requests return errors:
begin; client.get("users?ids=1399823560156942342,1399823560156942342"); rescue => e; puts e.response.body; end
{
  "errors" => [
    {
      "value"         => "1399823560156942342",
      "detail"        => "Could not find user with ids: [1399823560156942342].",
      "title"         => "Not Found Error",
      "resource_type" => "user",
      "parameter"     => "ids",
      "resource_id"   => "1399823560156942342",
      "type"          => "https://api.twitter.com/2/problems/resource-not-found"
    },
    {
      "value"         => "1399823560156942342",
      "detail"        => "Could not find user with ids: [1399823560156942342].",
      "title"         => "Not Found Error",
      "resource_type" => "user",
      "parameter"     => "ids",
      "resource_id"   => "1399823560156942342",
      "type"          => "https://api.twitter.com/2/problems/resource-not-found"
    }
  ]
}

if i were designing this API i would return 404 when a single resource is requested and not found. not sure what you think about handling just that case and raising X::NotFound? i leave it to your discretion, since it is quite the exceptional case (pun intended).

maybe a less opinionated way to do it would be to allow some option to #get like raise_on_not_found? but then does it return 200 for code? ugh the perfectionist in me hates this.

I agree, the API designers’ decision to return 200 when a single resource is requested and not found is questionable. That said, I don’t want to get into the business of redesigning the API to my taste. This gem is intended to be a lightweight wrapper around the API, warts and all. If the API returns 200, raising an exception seems unwarranted, and would be unexpected to those familiar with the behavior of API v2.0.
Maybe instead of changing the code, we instead add some documentation, like a “Upgrading from API v1.1” guide or a “Gotchas” doc that highlights issues like this?

up to you. i agree with your assessment. thanks for looking into this!


Export equivalent circuit Q3D/Q2D

Export equivalent circuit Q3D/Q2D
@maxcapodi78 @MaxJPRey @Samuelopez-ansys
there's a part of the method ExportCircuit not implemented.
It's the include Chip Package Control (include_cpp bool), I couldn't get my head around how to extract this info and apparently is not even accessible so I left it False. Maybe we should state it somewhere.
I'm going to open a defect in tfs for this.

@MaxJPRey Would you know why so many of my edits were ignored? Most of them are just to bring the text up to what our standards are for docstrings.

@PipKat I think on my side I approved all your suggestions :)

@gmalinve Maybe? I see them as pending here on this page and on the Files page. Usually, there are no remaining comments.

@PipKat @gmalinve Everything seems ok. I can see the modifications in the main branch.


Clean up OpenSearch plugin build

Is your feature request related to a problem? Please describe.
The OpenSearch plugin's Gradle build applies the opensearch.build Gradle plugin.
apply plugin: 'opensearch.build'

This plugin is applying various OpenSearch constraints and requirements to this build. As a result, this build file is very unique from the other Data Prepper plugins. Some of the implications:

The whole project cannot update the Gradle version
The opensearch project manually forces all versions rather than inherit versions from Data Prepper
Dependabot updates to this project are not always straightforward
It appears to cause issues with using JUnit 5

Describe the solution you'd like
Solution 1
Ideally, Data Prepper would not have any sub-projects which apply the opensearch.build Gradle plugin. The two plugins that the opensearch plugin really need are:
apply plugin: 'opensearch.testclusters'
apply plugin: 'opensearch.rest-test'

However, opensearch.rest-test requires opensearch.build. There is a standalone rest-test plugin, but it attempts to create the test target itself and thus doesn't work well with the Java plugin.
I've tried to use only the opensearch.testclusters plugin, but the integration tests fail with some Lucene-related tests.
Solution 2
An alternative may be to split the opensearch plugin into two projects:

opensearch
opensearch-integration-test

The opensearch-integration-test project could still use the opensearch.build plugin. But, the opensearch plugin would be a normal Data Prepper plugin. This can at least keep runtime dependencies in sync. And unit tests could use JUnit 5. But, the Data Prepper build would still be forced to Gradle 6.
Solution 3
The approach to testing the OpenSearch sink can change. Only one test requires the OpenSearch test framework.
https://github.com/opensearch-project/data-prepper/blob/cbf1082c88acab85f6d7dbac71c6cd6f5932a8d0/data-prepper-plugins/opensearch/src/test/java/com/amazon/dataprepper/plugins/sink/opensearch/OpenSearchSinkIT.java#L71
Data Prepper could run OpenSearch in a Docker container similar to how the end-to-end tests work.

I suggest implementing Solution 2 proposed above. OpenSearch is now supporting Gradle 7 (see #662 for more information). Thus, Data Prepper can move to Gradle 7 even with an OpenSearch Gradle plugin dependency. This solution should also be easier to implement than Solution 1. This solution only requires moving the integration tests into a different project which is used only for integration tests. Data Prepper would continue to use the same opensearch.testclusters project to facilitate testing.

I resolved this issue with Solution 3 from the description. The Gradle build for opensearch no longer uses any Gradle tools from the OpenSearch core project. None of the tests inherit from OpenSearchRestTestCase.
The downside to this is that a developer must run OpenSearch manually to run the opensearch integrationTest tasks. This is how our GitHub Actions CI works anyway - and it facilitates testing against multiple versions.


Fix CI: wait for mysql/postgres to sync ... more

Codecov Report

Merging #1199 (fe3a266) into master (1d47da6) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #1199      +/-   ##
==========================================
- Coverage   49.38%   49.31%   -0.08%
==========================================
  Files          88       88
  Lines        6615     6615
==========================================
- Hits         3267     3262       -5
- Misses       3153     3158       +5
  Partials      195      195

Impacted Files
Coverage Δ

cmd/agent/agent.go
0.00% <0.00%> (ø)

server/logging/log.go
48.83% <0.00%> (-5.82%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Strange now it seems to work for most pipelines again.


Add userEmailValidated to status fields

To allow support-frontend to check if a user has been email verified

👍 yep go for it!

Closing this PR as the functionality will be available after #1571 in identity and #1960 in support-frontend are merged.


More improvements

Installation instructions
Extend tests

Codecov Report

Merging #9 (cf1d0da) into master (6e29d78) will increase coverage by 30.00%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master       #9       +/-   ##
===========================================
+ Coverage   40.00%   70.00%   +30.00%
===========================================
  Files           2        2
  Lines          10       10
===========================================
+ Hits            4        7        +3
+ Misses          6        3        -3

Impacted Files
Coverage Δ

src/CYHypersurfaces/constructors.jl
50.00% <0.00%> (+50.00%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Add Section 3

There are two template files in this project because there are two xml formats. They are called UseCase.mustache and UseCaseRepository.mustache. They need to be updated so that the fields relevant to Section 3 are populated in the output.
Preferably this will be achieved without editing xml2md.py.

I completed the issue on branch "voelker".
I think most of the file is converted correctly. But the actor description often has controll characters included such as  which can not be recognized in MD.
Should i just remove them or try to replace them with the euqivalent MD controll characters?
Additionally i found no example xml with a link property for references. I just assumed it will be called .

The MD is not the final form that we are going to use. It will be input for Markus' webserver. I think that we should ignore the control characters for now because they may be useful for the website.
I have no idea if the link attribute is called link, it's not a bad guess.
Passing the missing ActorLibrary in is the right thing to do.
Do you want to do sections 4 and 5 in the same branch?

I modified the templates to recognize sections 4,5 and pushed the changes to the branch "voelker".
In case there was no example for an attribute in the provided example xml's i left the respective field filled with "---".
Similar to section 3 there are fields with a lot of control sequences. They sometimes break the formatting of the MD file but since MD is not the final form i ignored them.

Thanks achim. If you still have time you can do sections 6 to 8 too.

I tried to create Section 6 to 8 and ran into some problems.
Section 6:

For UseCaseRepository.mustache i found no examples with Requirements except the elering-1 example. This example however is somehow broken. The dict structure is not as assumed. I think it is related to the fact, that the UseCaseLibrary contains only a single UseCase. I tried to somehow fix this example by adding another empty UseCase but was still not able to create Sections 1-5 with for elering-1.

For UseCase.mustache the only known example with Requirements is the offis-2 example. In this example, the requirements are only listed as an attribute of an InformationObject. It only contains the properties "id" and "requirementCategoryId".
The "id" is already printed in Section 5. So I'm not really sure what to display here

Section 7:

I found the "CommonTermLibrary" attribute only for UseCaseRepository.mustache examples but they are always empty.

Section 8:

I can't find any example for either case.

Can i find some more examples somewhere? Or is there a complete description of the standard somewhere?

Hi achim,
I have fixed the problem with elering-1 example but it's not checked in yet.
Just check in what you have working for now, I will go check over each section.
Thanks for your help with this!
Richard

I pushed my current state. But for section 6,7,8 there are only ideas and nothing tested since i had no working examples.
Is there anything else to do for me right now?
If u push the fix for the elering-1 example i can check section 6 myself.
If you can provide me more examples i can also create section 7,8

I have commited the fix for elering-1 so you can look at section 6.
I don't have any more examples, but you can ask Markus if he does.

I tested section 6 for UseCaseRepository.mustache and the results loook good.
For UseCase.mustache i'm still not sure what to display and how. In the examples the requirements exists only in the InformationObject which is already displayed in section 5.
I found a link in the offis-2 example in which the requirement list template should be defined but i'm not able to access it even when accesing from the RWTH network. https://webstore.iec.ch/publication/22349
Section 7,8

Thank you for doing this work.
The changes in xml2md.py need to be modified slightly. You have changed the indentation of the block under
with open(filename) as xmlfile:
        usecase = None
        xmlobj = xmltodict.parse(xmlfile.read())

if 'UC:UseCaseRepository' in xmlobj:
....
xmlfile.close()

The problem that is introduced by this change is that the xmlobj could still look like valid from a previous iteration of the loop. Or, if the file has failed to read on the first attempt then xmlobj might not have been initialised and we will get an error on reading it. Finally the close() function will not be called the correct number of times. Python has garbage collection but it is good practice to close a file each time you open it.
Please put the indentation back how it was, and write a function for all of the assignments:
usecase[x] = xmlobj['UC:UseCaseRepository'][x]
so that we don't have two identical blocks of code. Finally, remove any extra print lines that you added.
Thanks!
Richard Marston

Thanks! I have merged this work into master now.


Spot name does not save unless unfocusing the text input.

Describe the bug
When changing the spot name if the user simply selects another spot without unfocusing the text input, the new name will not save.
To Reproduce
Are you able to reproduce the problem in a new project after restarting the app?
Yes
Steps to reproduce the behavior:

Go to  a spot
Click on name
Change name
Select another spot or close the notebook

Expected behavior
Spot name saves when changed
Screenshots
If applicable, add screenshots to help explain your problem.

StraboSpot Version 1.0.0

Additional context
Add any other context about the problem here.

fixed with commit 7b50829ef9bc37e13c98f20216c8d3fe0a5c2e40


Can you either make Evil Wizard Health correlate to the # of bubbles to hit him or tell me how it correlates.

Bubbles currently don't equal health

Should be resolved as a result of #219


Add Almond kernels to Jupyterhub

This PR adds Almond version for Scala 2.11 and 2.12, to get Scala kernels on Jupyterhub.
I confirm that I have added:

[x] A comment to every Dockerfile with information about target repository and tag (version).
[x] Filled in readme on dockerhub and in this repo about how to build the image if some extra steps should be done.

current image is built here https://github.com/VerveWireless/verve-group-infrastructure/blob/master/oci/images/all-spark-notebook/Dockerfile

I fixed the requirements by not requiring hashes, but now it fails on install google cloud sdk. it seems google has updated the installation method.

deleting this PR as it is redundant now


File transfers should occur one-by-one not concurrently.

Also, execute all pending transactions whenever any one changes

Un-necessary since #3


net: Interface.MTU is an int, but on 32-bit windows the MTU size can be >2 GiB

What version of Go are you using (go version)?
go version go1.17 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/yourok/.cache/go-build"
GOENV="/home/yourok/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/yourok/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/yourok/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3437785326=/tmp/go-build -gno-record-gcc-switches"

In net.Interface MTU int, but in windows 32 bit the mtu size is sometimes more than 2 gb on loopback and the MTU value is negative.
https://github.com/golang/go/blob/3bbc82371eb801ce489f77359f0badc8e469c26d/src/net/interface.go#L33

CC @neild
I suspect there isn't really much we can do about this. MTU probably shouldn't have been an int if this case is possible, but I don't think it's possible to change it now, to follow the Go 1 backwards compatibility guarantee.

Time to add an MTU64 field? 🤷♂


Help wanted

Hello Ertugrul.  Is there any way to disable page bouncing when tapped to AdvStoryTray?

Hello, if you mean opening animation which is a slide transition there is no way to change that using AdvStory constructor. You can use AdvStory.player to customize animation, this constructor allows story view without tray list, so you need to create a tray list. Look at example project to see basic usage.

Thank you.


TypeScript example

Can you show me how you would use this with TypeScript?
I created a project here:
https://github.com/joshski/ars-test
Following the example mentioned in the readme, I get:
➜  ars-test git:(main) NODE_OPTIONS="--enable-source-maps --loader ts-node/esm"  ./node_modules/.bin/ars ./exploratory.test.ts
(node:27800) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:27800) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
/Users/josh/ars-test/exploratory.test.ts:1
import { test } from 'assert-raisins'
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:77:18)
    at wrapSafe (node:internal/modules/cjs/loader:1290:20)
    at Module._compile (node:internal/modules/cjs/loader:1342:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
    at Module.load (node:internal/modules/cjs/loader:1212:32)
    at Module._load (node:internal/modules/cjs/loader:1028:12)
    at cjsLoader (node:internal/modules/esm/translators:359:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:308:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)

Node.js v21.6.0

What else do I need to do to get this working with TypeScript?

Adding "type": "module" in package.json fixes it.

To load an ES module, set "type": "module" in the package.json or use the .mjs extension.


Can't run demo on iOS10

Hi Chris,
when I try to run the demo on iOS 10 I get the following:
** BUILD SUCCEEDED **

Project successfully built
Successfully deployed on device with identifier '5A1FACAB-7756-4085-A8F4-D9473C975661'.
Sep 20 12:10:13 Dans-iMac demo[4800]: objc[4800]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11e1e7910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11e011210). One of the two will be used. Which one is undefined.
Sep 20 12:10:14 Dans-iMac demo[4800]: assertion failed: 15G1004 14A345: libxpc.dylib + 62597 [37A9DF49-35C1-3D93-B854-B35CACF0100F]: 0x7d
Sep 20 12:10:15 Dans-iMac demo[4800]: 1   0x1078bb379 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
Sep 20 12:10:15 Dans-iMac demo[4800]: 2   0x107f2851e ffi_closure_unix64_inner
Sep 20 12:10:15 Dans-iMac demo[4800]: 3   0x107f28ed2 ffi_closure_unix64
Sep 20 12:10:15 Dans-iMac demo[4800]: 4   0x1061b14a0 -[UIViewController view]
Sep 20 12:10:15 Dans-iMac demo[4800]: 5   0x10607b045 -[UIWindow addRootViewControllerViewIfPossible]
Sep 20 12:10:15 Dans-iMac demo[4800]: 6   0x10607b796 -[UIWindow _setHidden:forced:]
Sep 20 12:10:15 Dans-iMac demo[4800]: 7   0x10608f0a9 -[UIWindow makeKeyAndVisible]
Sep 20 12:10:15 Dans-iMac demo[4800]: 8   0x107f28d2d ffi_call_unix64
Sep 20 12:10:15 Dans-iMac demo[4800]: 9   0x1217b3550
Sep 20 12:10:15 Dans-iMac demo[4800]: file:///app/pages/map/map-view-model.js:17:55: JS ERROR Error: Could not find module 'nativescript-background-geolocation-lt'. Computed path '/Users/daniel_rochelle/Library/Developer/CoreSimulator/Devices/5A1FACAB-7756-4085-A8F4-D9473C975661/data/Containers/Bundle/Application/D6E2A290-8835-4847-A583-AF5B65FB5778/demo.app/app/tns_modules/nativescript-background-geolocation-lt'.
Sep 20 12:10:15 Dans-iMac SpringBoard[3359]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
Sep 20 12:10:15 Dans-iMac com.apple.CoreSimulator.SimDevice.5A1FACAB-7756-4085-A8F4-D9473C975661.launchd_sim[3342] (UIKitApplication:com.transistorsoft.backgroundgeolocation.nativescript[0xfae4][4800]): Service exited due to Segmentation fault: 11

I've updated nativescript and the associated modules:
┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component        │ Current version │ Latest version │ Information │
│ nativescript     │ 2.3.0           │ 2.3.0          │ Up to date  │
│ tns-core-modules │ 2.3.0           │ 2.3.0          │ Up to date  │
│ tns-android      │ 2.3.0           │ 2.3.0          │ Up to date  │
│ tns-ios          │ 2.3.0           │ 2.3.0          │ Up to date  │
└──────────────────┴─────────────────┴────────────────┴─────────────┘

The reason I'm testing the demo app again is that my own app has started to crash when the plugin is started since updating to iOS 10. I can't test wether this is caused by the plugin or not as I can't get the demo app to run. Any ideas?

I've been busy with Cordova and React Native the last few weeks.  There hasn't been much action for NativeScript yet.
I haven't booted this demo app in a while.  However, see this issue:
https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/189

I'm building the sample app.  I see issues.

I've got the demo running on nativescript-2.3.0
Pull latest.  uninstall / reinstall.

install from Github master -- not npm.

I'm not sure I understood you instructions.
Here's what I did:
Downloaded the package.
$ npm install
$ npm run setup

This gives the following in console...
rm: ../../lib/iOS/TSLocationManager.framework: No such file or directory
npm WARN continuing anyway<EMAIL_ADDRESS>uninstall: `rm -r ../../lib/iOS/TSLocationManager.framework`
npm WARN continuing anyway Exit status 1
<EMAIL_ADDRESS>node_modules/nativescript-background-geolocation-lt
Successfully installed plugin nativescript-background-geolocation-lt.

$ cd demo
$ tns plugin remove nativescript-background-geolocation-lt

This gives the following in console...
m: ../../lib/iOS/TSLocationManager.framework: No such file or directory
unbuild<EMAIL_ADDRESS>npm WARN continuing anyway<EMAIL_ADDRESS>uninstall: `rm -r ../../lib/iOS/TSLocationManager.framework`
npm WARN continuing anyway Exit status 1
Succsessfully removed plugin nativescript-background-geolocation-lt

$ tns plugin add https://github.com/transistorsoft/nativescript-background-geolocation-lt.git
$ tns platform add ios

Added my signing identity to the Xcode project (build will fail without this in iOS10)
$ tns run ios
Which throws the same Segmentation fault: 11 error I had earlier.

Sorry, been busy posting new versions for Cordova and React Native.  I'll have a look at this tonight / tomorrow.

New version coming today.

Try latest from master after a fresh clone of the repo.
See new Demo setup instructions

Hi Chris,
I get the following error when following the new setup instructions:
Fetching podspec for `nativescript-background-fetch` from `../../node_modules/nativescript-background-fetch/platforms/ios`
[!] No podspec found for `nativescript-background-fetch` in `../../node_modules/nativescript-background-fetch/platforms/ios`
Processing node_modules failed. Error: Command sandbox-pod failed with exit code 1

From fresh clone?
On Sunday, September 25, 2016, 3rror404<EMAIL_ADDRESS>wrote:

Hi Chris,
I get the following error when following the new setup instructions:
Fetching podspec for nativescript-background-fetch from ../../node_modules/nativescript-background-fetch/platforms/ios
[!] No podspec found for nativescript-background-fetch in ../../node_modules/nativescript-background-fetch/platforms/ios
Processing node_modules failed. Error: Command sandbox-pod failed with exit code 1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/transistorsoft/nativescript-background-geolocation-lt/issues/10#issuecomment-249440605,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA6l_xHwB0xSmeczWc-nWBDJbxYQpYNks5qtsjLgaJpZM4KBgaR
.

--
Snet form Gmail Mobile

Yeah. Just pulled it down now.

You sure you did npm install; follow steps exactly?
On Sunday, September 25, 2016, 3rror404<EMAIL_ADDRESS>wrote:

Yeah. Just pulled it down now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/transistorsoft/nativescript-background-geolocation-lt/issues/10#issuecomment-249441359,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA6l18Ath8ntQmXj2WixdkIT5mppawkks5qtsvfgaJpZM4KBgaR
.

--
Snet form Gmail Mobile

Yep. Just tried again to double check.
I noticed that there is an error during npm run setup:
rm: ../../lib/iOS/TSLocationManager.framework: No such file or directory
npm WARN continuing anyway<EMAIL_ADDRESS>uninstall: `rm -r ../../lib/iOS/TSLocationManager.framework`
npm WARN continuing anyway Exit status 1
<EMAIL_ADDRESS>node_modules/nativescript-background-geolocation-lt
├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>Successfully installed plugin nativescript-background-geolocation-lt.

The same error is repeated during npm run demo.ios. Not sure if this is relevant?
I've attached the whole log.
demo-install-log.txt

It's normal.  The plugin has an uninstall script to remove its framework
from iOS lib folder to ensure the plugin gets the updated
TSLocationManager.framework when you upgrade in future.
On Sunday, September 25, 2016, 3rror404<EMAIL_ADDRESS>wrote:

Yep. Just tried again to double check.
I noticed that there is an error during npm run setup:
rm: ../../lib/iOS/TSLocationManager.framework: No such file or directory
npm WARN continuing anyway<EMAIL_ADDRESS>uninstall: rm -r ../../lib/iOS/TSLocationManager.framework
npm WARN continuing anyway Exit status 1
<EMAIL_ADDRESS>node_modules/nativescript-background-geolocation-lt
├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>Successfully installed plugin nativescript-background-geolocation-lt.
The same error is repeated during npm run demo.ios. Not sure if this is
relevant?
I've attached the whole log.
demo-install-log.txt
https://github.com/transistorsoft/nativescript-background-geolocation-lt/files/491855/demo-install-log.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/transistorsoft/nativescript-background-geolocation-lt/issues/10#issuecomment-249442143,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA6lzZmX0TZH6BAHktWNTIcjiEx703Jks5qts7wgaJpZM4KBgaR
.

--
Snet form Gmail Mobile

I'll try another fresh clone. Was working last night for me using 2.30
On Sunday, September 25, 2016, 3rror404<EMAIL_ADDRESS>wrote:

Yep. Just tried again to double check.
I noticed that there is an error during npm run setup:
rm: ../../lib/iOS/TSLocationManager.framework: No such file or directory
npm WARN continuing anyway<EMAIL_ADDRESS>uninstall: rm -r ../../lib/iOS/TSLocationManager.framework
npm WARN continuing anyway Exit status 1
<EMAIL_ADDRESS>node_modules/nativescript-background-geolocation-lt
├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>Successfully installed plugin nativescript-background-geolocation-lt.
The same error is repeated during npm run demo.ios. Not sure if this is
relevant?
I've attached the whole log.
demo-install-log.txt
https://github.com/transistorsoft/nativescript-background-geolocation-lt/files/491855/demo-install-log.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/transistorsoft/nativescript-background-geolocation-lt/issues/10#issuecomment-249442143,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA6lzZmX0TZH6BAHktWNTIcjiEx703Jks5qts7wgaJpZM4KBgaR
.

--
Snet form Gmail Mobile

Just did a fresh clone, worked.
XCode v8.0

$ tns info
┌──────────────────┬─────────────────┬────────────────┬───────────────┐
│ Component        │ Current version │ Latest version │ Information   │
│ nativescript     │ 2.3.0           │ 2.3.0          │ Up to date    │
│ tns-core-modules │ 2.3.0           │ 2.3.0          │ Up to date    │
│ tns-android      │                 │ 2.3.0          │ Not installed │
│ tns-ios          │ 2.3.0           │ 2.3.0          │ Up to date    │
└──────────────────┴─────────────────┴────────────────┴───────────────┘

$ tns plugin list
Dependencies:
┌────────────────────────────────────────┬─────────┐
│ Plugin                                 │ Version │
│ nativescript-background-geolocation-lt │ file:.. │
│ nativescript-fonticon                  │ ^1.1.0  │
│ nativescript-google-maps-sdk           │ ^1.3.13 │
│ tns-core-modules                       │ 2.3.0   │
│ zone.js                                │ ^0.6.12 │
└────────────────────────────────────────┴─────────┘
Dev Dependencies:
┌─────────────────────────────┬─────────┐
│ Plugin                      │ Version │
│ babel-traverse              │ 6.15.0  │
│ babel-types                 │ 6.14.0  │
│ babylon                     │ 6.11.2  │
│ filewalker                  │ 0.1.3   │
│ lazy                        │ 1.0.11  │
│ nativescript-dev-typescript │ ^0.3.2  │
│ typescript                  │ ^2.0.3  │
└─────────────────────────────┴─────────┘
$ node -v
v6.3.1

$ pod --version
1.0.1

demo $ ls -al node_modules/nativescript-background-fetch/platforms/ios
total 24
drwxr-xr-x  6 chris  staff  204 24 Sep 11:02 .
drwxr-xr-x  3 chris  staff  102  8 Aug 16:42 ..
-rw-r--r--  1 chris  staff  279  8 Aug 16:42 Info.plist
-rw-r--r--  1 chris  staff  111  9 Aug 13:14 Podfile
drwxr-xr-x  7 chris  staff  238 24 Sep 11:02 TSBackgroundFetch.framework
-rw-r--r--  1 chris  staff  511  8 Aug 16:44 nativescript-background-fetch.podspec  <-- podspec

In the root of the repo:
$ ls -al demo/app/app.js
-rw-r--r--  1 chris  staff  2529 24 Sep 11:36 demo/app/app.js

If you don't see that app.js was generated:
$ tsc -p demo

app.js should now exist and the app should boot.

OK. So the pod issue seems to have been something to do with the version of Node I had installed. I've upgraded from 4.x to 6.3.1 and that is now working fine.
Typescript will not create the .js files. Running tsc -p demo doesn't seem to do anything. No errors. No files generated. I'm running typescript 2.0.3
If I run the NativeScript typescript template ($ tns create my-app-name --template typescript) the .js files are generated fine.
Any ideas?

What happens when you:
$ cd demo
$ tsc

$ tsc --version
Version 1.8.10

tsc in the demo folder also gives no .js files.
I just ran tsc in the root folder to see what would happen. It did create the .js and .js.map files from from the .ts files in that folder. It just doesn't seem to want to work in the demo folder.
My tsc version is 2.0.3

Downgraded TypeScript to version 1.8.10 and it's working! Wow, I was really starting to pull my hair out there.

ok, I'll have to update tsc to 2.0.3 and see what's up.

Seems similar this this issue.  I can find no solution for using 2.0.3 currently.


Bug: grep_CWORD not finding relevant results for word when used in PHP synatx

RTFM Checklist

[X] I have searched exisiting issues / discussions
[ ] I have read the Wiki including the Advanced section
[ ] I have read man fzf / I am well versed in shell fzf

Operating system
Nixos
Shell
zsh
Neovim version (nvim --version)
NVIM v0.7.0
Fzf version (fzf --version)
0.30.0
Output of :lua print(os.getenv('FZF_DEFAULT_OPTS'))
nil
Is the problem reproducible with mini.sh?

[ ] My issue is reproducible with mini.sh
[ ] My issue IS NOT reproducible with mini.sh
[ ] I have not tested with mini.sh (not relevant, requires LSP, Windows, etc)

Fzf-lua configuration
local fzf = require('fzf-lua')
  opts = fzf.config.normalize_opts(opts, fzf.config.globals.git)

Describe the bug / steps to reproduce
If I use :FzfLua grep_cWORD I don't see the expected results if it's to search the word under the cursor being MappingProductMeta.
If I enable regex mode it seems to look for the following:
(^|\s)MappingProductMeta($|\s)
This does not seem to find results if is used in PHP code like new ExtraTypes\MappingProductMeta();.

M.grep_cWORD = function(opts)
  if not opts then opts = {} end
  opts.no_esc = true
  -- match neovim's WORD, match only surrounding space|SOL|EOL
  opts.search = [[(^|\s)]] .. utils.rg_escape(vim.fn.expand("<cWORD>")) .. [[($|\s)]]
  return M.grep(opts)
end

Seems to work by instead just doing
  opts.search =  utils.rg_escape(vim.fn.expand("<cWORD>"))

This isn’t a bug but rather by design, the fact there isn’t a backspace before the start of the searched word makes it so the regex won’t match, this was a compromise that works for 99% of the cases to mimic the behavior of grep_cword which uses word boundaries with \b<word>\b (which would similarly fail in your case).
Both grep cword/cWORD are simple synonyms to grep with the regex set as the search term, if you don’t want to use the regex delimiters set your key map to this instead:
:lua require'fzf-lua'.grep({ search = vim.fn.expand("<cWORD>") })


chore: bump sbt-tpolecat from 0.5.0 to 0.5.1

About this PR
📦 Updates org.typelevel:sbt-tpolecat from 0.5.0 to 0.5.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (0.5.0).
You might want to review and update them manually.
examples/zio-ecosystem/build.sbt
website/package-lock.json

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "sbt-tpolecat" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.typelevel", artifactId = "sbt-tpolecat" }
}]

labels: sbt-plugin-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, old-version-remains, commit-count:1

Superseded by #455.


Different answer and context tokens described in the documentation

Hi! Thank you for the great work on this model and accompanying code!
I've noticed that the model's page on huggingface contains instructions on preparing the input text. The description indicates that two special tokens, answer_token and context_token, have to be used before the answer and the context respectively, but after browsing the code I've noticed that the question generation logic uses <answer> and <context> tokens. After initial tests it seems that in fact those <answer>/<context> tokens work correctly when used in generation.
What are the correct tokens for the pretrained model available on huggingface?

Hi, the values of the context token and answer token are <context> and <answer> respectively as shown in the source code. You can check the special token values with:
from transformers import T5Tokenizer
tokenizer = T5Tokenizer.from_pretrained("iarfmoose/t5-base-question-generator")
print(tokenizer.get_added_vocab())

which should print the tokens and their ids like this:
{'<answer>': 32100, '<context>': 32101}

I'll update the model card on the huggingface hub to make it more clear.

Thank you!


Incomplete Sentence

Hi, an incomplete sentence "You can also register a new version of a dataset at" there at the end of the section of "Register a dataset version" should be fixed. Thanks.

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

ID: 25c2aa0c-1266-6713-944f-ba28cba3fa3d
Version Independent ID: 240918a9-eca7-f698-5323-9e70bb5a35de
Content: Dataset versioning - Azure Machine Learning
Content Source: articles/machine-learning/how-to-version-track-datasets.md
Service: machine-learning
Sub-service: core
GitHub Login: @MayMSFT
Microsoft Alias: sihhu

@Derek1101 Thanks for pointing this out. @MayMSFT Could you please check and correct the document to the correct content at this location?

@Derek1101, thanks for your report! I've taken a look and it was a typo left by the author. I've removed the sentence. You should see the changes live in a few hours #please-close


DO NOT MERGE! Fast Forward stable to 650ab3091b31cc36b2829c3309bb21e7e5ea74d9.

This PR will be merged automatically once checks are successful.

Jenkins job manager/postsubmit passed


GH-39996: [Archery] Fix Crossbow build on a PR from a fork's main branch

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Closes: #39996

I've checked that _clone_arrow_and_crossbow works locally but I'm not sure how to exercise this PR for real. @kou Any thoughts?

How about adding the following to this PR only for testing?
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index<PHONE_NUMBER>..c8d3bdd1ec 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -113,3 +113,25 @@ jobs:
       - name: Run Merge Script Test
         shell: bash
         run: pytest -v dev/test_merge_arrow_pr.py
+
+  crossbow:
+    name: Crossbow
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Arrow
+        uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
+        with:
+          path: arrow
+          # fetch the tags for version number generation
+          fetch-depth: 0
+      - name: Set up Python
+        uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
+        with:
+          python-version: 3.8
+      - name: Install Archery and Crossbow dependencies
+        run: pip install -e arrow/dev/archery[bot]
+      - name: Handle GitHub comment event
+        env:
+          ARROW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        run: |
+          archery crossbow submit ...

Or I think that we can merge this to main and try because you've already checked this on your local.

Ah, thanks, I will add your suggestion.

Your suggestion didn't work. We would need to call archery trigger-bot, but that in turn requires an actual Github event...

Ah, the changed code is for trigger-bot. Sorry.
How about merging this?

How about merging this?

Fair enough, let's do it.

@github-actions crossbow submit conda-clean

Ok, so this didn't work on the original PR:
Cloning into bare repository '/tmp/tmp10_wjydg/arrow_bare'...
From https://github.com/apache/arrow
 ! [rejected]            refs/pull/39878/head -> main  (non-fast-forward)
ERROR:archery:Command '['git', '-C', '/tmp/tmp10_wjydg/arrow_bare', 'fetch', 'origin', 'pull/39878/head:main']' returned non-zero exit status 1.


Document ways pf-next should be used by downstream consumers

The various ways pf-next can be used by downstream consumers should be documented. A separate story to add a npm package will also be added to support these downstream consumers.
SCSS compilation, variable use should be covered as well as if a user wants to just take the compiled css (will that exist?) for a simple use case.

Closed by #52


providers: add okta

Could still use some tests.  Lemme know if you have any specific rules about contributing and I'm happy to comply.

This is very much needed!

@abraithwaite Nice!

See issue #428

@abraithwaite Validation does not work. Specifically request to /oauth2/v1/userinfo returns a 400 Bad Request. The reason is that the access_token is passed as a GET argument rather than using the Authorization: Bearer ... header. At a glance, it seems like ValidateSessionState  needs to be implemented (see https://github.com/bitly/oauth2_proxy/blob/a9c55bd6d1caeaa7ba20236b2e85129c8219b865/providers/facebook.go#L78 for an example).

Thanks.  I'll try and look at it when I have time, otherwise if someone else beats me to it please close this PR!


Nested form is not updated

Hi,
I create a form with Reform 2.0.5 like this :
class OrderForm < Reform::Form
  property :email

  collection :line_items, populate_if_empty: LineItem do
    property :color_id
  end
end

And I have this code :
order = Order.find(id)
@form = OrderForm.new(order)
@form.validate(params)
p @form.line_items.count

In this code, params is :
<EMAIL_ADDRESS> "line_items_attributes"=>
  {"0"=>{"color_id"=>2 },
   "1"=>{"color_id"=>2}}}

order.line_items.count is five and it's normal, I have five line items in the order I want to update. Before form.validate, form.line_items.count its five because it takes the line items of the order. After form.validate, form.line_items.count still five which is not what I expect. I think it should be two.
The email address is updated correctly.
How can I update the number of line items of the form ?
Thanks.

I have the same with issue with the master branch.

It's maybe a naming problem. Your collection is named line_items and I think you should pass an array named line_items instead of line_items_attributes.

The name line_items_attributes is OK since you have Rails support included in your form (which maps the weird Rails name to the attribute name @Titinux refers to).
You are using :populate_if_empty which will only be called when your form object doesn't have a nested line items form for the incoming item. You need to use another populator that overwrites your original collection. http://trailblazer.to/gems/reform/populators.html

@Titinux, I change line_items_attributes for line_items and I have NoMethodError: undefined method has_key?' for #Array:0x0000000a1a0158`.
@aptonick, I included include Reform::Form::ActiveModel, I removed all prepopulation and I have the same behaviour. I tried to add a populator lambda and it's never triggered.
Any idea?

@GCorbel When you add populator: it will be called for every item, always. Maybe you're passing in the wrong key? Are you in a Rails environment?

@apotonick , you were right. I did a mistake somewhere but it works now. Thanks for your help.


Supervisor Meeting - 2024/11/14

Date and Time
2024/11/14
Attendance

[x] Ayman Akhras
[x] Kelly Deng
[x] Nathan Luong
[x] Patrick Zhao
[x] Reza Jodeiri

Questions to Ask

AI bias
what pre trained model suits us better to fine tune?
What sort of approach should we do? Eg transfer learning, transformer based approach, autoencoders, diffusion models?
What is the difficulty level of each approach? And how long would it take us for each to implement?
Learn about imagenome  dataset and what should we do with it?

Closed. Since done.


unable to update pod ... resource name may not be empty, retrying...

This happens for the kube-dns pod which exists before cilium is started
time="2017-09-21T00:05:09Z" level=warning msg="k8s: unable to update pod kube-system:kube-dns-2425271678-mk9x9 / endpoint 33115 with \"cilium.io/identity\" annotation: resource name may not be empty, retrying..."

@tgraf how to replicate this one? cilium logs don't have anything like that on fresh minikube cluster install on versions 1.6, 1.7 and 1.8.

how to replicate this one? cilium logs don't have anything like that on fresh minikube cluster install on versions 1.6, 1.7 and 1.8.

We saw this on a majority of runs but I'm not seeing it either anymore. I think we can close this.


fix: accept user consent code for advanced power actions

PR Checklist

[ ] Unit Tests have been added for new changes
[ ] API tests have been updated if applicable
[ ] All commented code has been removed
[ ] If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Anything the reviewer should know when reviewing this PR?
If the there are associated PRs in other repositories, please link them here (i.e. open-amt-cloud-toolkit/repo#365 )

:tada: This PR is included in version 3.20.3 :tada:
The release is available on:

GitHub release
v3.20.3

Your semantic-release bot :package::rocket:


gradle build works once, fails on second attempt

Not sure if I'm doing something wrong, but here's a simple project to reproduce this behaviour.  "./gradlew build" works on the first run, but fails when run a second time because it cannot find the generated class.
/home/paul/projects/generated-sources-error/src/main/java/Test.java:1: error: package schema does not exist
import schema.Action;
             ^
/home/paul/projects/generated-sources-error/src/main/java/Test.java:5: error: cannot find symbol
        System.out.println(Action.VALUE_1);
                           ^
  symbol:   variable Action
  location: class Test
2 errors

FAILURE: Build failed with an exception.

generated-sources-error.zip

Thank you for an issue, I'll look into it today

Inspiration struck me overnight, I bet this is because of the way I'm
specifying the source schema files.  Someone had mentioned this to me here
before, which I promptly forgot about and I didn't take that advice, and I
bet that's the problem :-).  I will update this tonight.
On Tue., Jul. 27, 2021, 02:13 Arseny Nasokin, @.***>
wrote:

Thank you for an issue, I'll look into it today
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jsonschema2dataclass/js2d-gradle/issues/147#issuecomment-887240047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEYRWPWWWAQCS3HKG2FJHMDTZZFAPANCNFSM5BBKKOUQ
.

No it turns out that wasn't the problem.  I changed this:
source = files("${sourceSets.main.output.resourcesDir}/schema")
to this instead:
source.setFrom files("${project.rootDir}/src/main/resources/schema")
But I still have the same problem, the first gradle build succeeds and subsequent ones fail (until clean/build again).

Thank you for an investigation, I'll add a test for it

Same for me with a Spring Boot application.

Upgraded plugin to 3.2.1, still working on the issue