add application initialization check

Add application initialization check.

:+1:

:+1:

I would cache the RuntimeHelper instance and check for it instead of firstRun boolean. Just to avoid this line
new RuntimeHelper(this).initRuntime();
which looks unnatural to me.
like so:
if (runtimeHelper == null) {
runtimeHelper = new RuntimeHelper(this).initRuntime();
}

Guys, this PR is not ready yet. I've made it for an issue that @atanasovg has and I wanted to make sure that tests pass. I'll ping you when it is done as usual.

This pull resolves the original issue as well. @slavchev I suggest we close the pull?


Suggestion: Add a button to disable diseases.

Describe the Suggestion
I would like to disable the Deadly Diseases in this game.
Is this feasible?
I don't have any issues with illness due to pollution or not enough water in settlements.

CaptainOfCheats_DiseaseCheat.zip
Want to test it out and let me know how it works for you? Every day change, it checks if the population has a disease, if so, it removes the disease from the population, which mimics what happens when a disease normally expires. It cannot prevent disease, it can only remove it once it happens. This was one of the few implementation options I saw that made sense to implement this in the way COC implements cheats.

Note: This will not prevent general population decline due to low health, it will only remove active diseases.

I'll probably just push this out and see if anyone complains about it not working right, seems okay from my usual amount of testing I do, which is at least like C+ effort. :)


Bcc extension for multiple addresses

Hello, I’m using sendgrid-actionmailer gem and I need to use the bcc extension to send copies of an email to multiple recipients; however I'm not sure of how to do it since the documentation only shows the object for a single recipient:
mail(to<EMAIL_ADDRESS>subject: 'email subject', body: 'email body', mail_settings: { bcc: { enable: true, email<EMAIL_ADDRESS>}})
So, for multiple recipients should I use an array of strings, something like:
mail(to<EMAIL_ADDRESS>subject: 'email subject', body: 'email body', mail_settings: { bcc: { enable: true, email<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>}})
Or maybe just a string made of comma-separated addresses, something like:
mail(to<EMAIL_ADDRESS>subject: 'email subject', body: 'email body', mail_settings: { bcc: { enable: true, email<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>}})
Or maybe an array of objects. Well, I hope you can help me, thanks.

Hey @RubenGram, that's definitely confusing.  mail_settings should be used for configuration options passed to the initializer or mail object.   The ability to pass a bcc address to mail_settings probably exists for the purpose of globally bccing an address.
For more, flexible sending options, such as BCCing multiple people, use personalizations. The following should get you there.
mail(subject: 'default subject', 'email body', personalizations: [
  { bcc: [{ email<EMAIL_ADDRESS>}]},
  { bcc: [{ email<EMAIL_ADDRESS>}]}
])

use personalizations, not mail_settings. mail_settings


[BUG] Simple Example fails due to together import

Describe the bug
A fresh install in a colab notebook of the most recent swarms:
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-23-14444884eff9>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from swarms import Agent
      2
      3 agent = Agent(
      4     agent_name="Stock-Analysis-Agent",
      5     model_name="gpt-4o-mini",

8 frames
[/content/swarms/swarms/__init__.py](https://localhost:8080/#) in <module>
     11
     12 # Import telemetry functions with error handling
---> 13 from swarms.telemetry.bootup import bootup  # noqa: E402, F403
     14 from swarms.telemetry.sentry_active import (  # noqa: E402
     15     activate_sentry,

[/content/swarms/swarms/telemetry/bootup.py](https://localhost:8080/#) in <module>
      4 from concurrent.futures import ThreadPoolExecutor
      5
----> 6 from swarms.telemetry.auto_upgrade_swarms import auto_update
      7 from swarms.utils.disable_logging import disable_logging
      8

[/content/swarms/swarms/telemetry/auto_upgrade_swarms.py](https://localhost:8080/#) in <module>
      2 import subprocess
      3
----> 4 from swarms.utils.loguru_logger import initialize_logger
      5 from swarms.telemetry.check_update import check_for_update
      6

[/content/swarms/swarms/utils/__init__.py](https://localhost:8080/#) in <module>
     14 )
     15 from swarms.utils.markdown_message import display_markdown_message
---> 16 from swarms.tools.prebuilt.math_eval import math_eval
     17 from swarms.utils.parse_code import extract_code_from_markdown
     18 from swarms.utils.pdf_to_text import pdf_to_text

[/content/swarms/swarms/tools/__init__.py](https://localhost:8080/#) in <module>
     23 from swarms.tools.openai_tool_creator_decorator import tool
     24 from swarms.tools.base_tool import BaseTool
---> 25 from swarms.tools.prebuilt import *  # noqa: F403
     26 from swarms.tools.cohere_func_call_schema import (
     27     CohereFuncSchema,

[/content/swarms/swarms/tools/prebuilt/__init__.py](https://localhost:8080/#) in <module>
      1 from swarms.tools.prebuilt.math_eval import math_eval
----> 2 from swarms.tools.prebuilt.code_executor import CodeExecutor
      3
      4 __all__ = [
      5     "math_eval",

[/content/swarms/swarms/tools/prebuilt/code_executor.py](https://localhost:8080/#) in <module>
      2 import subprocess
      3 from loguru import logger
----> 4 from swarm_models.tiktoken_wrapper import TikTokenizer
      5
      6

[/usr/local/lib/python3.10/dist-packages/swarm_models/__init__.py](https://localhost:8080/#) in <module>
     39 from swarm_models.sam_two import GroundedSAMTwo
     40 from swarm_models.utils import *  # NOQA
---> 41 from swarm_models.together_llm import TogetherLLM
     42 from swarm_models.lite_llm_model import LiteLLM
     43

[/usr/local/lib/python3.10/dist-packages/swarm_models/together_llm.py](https://localhost:8080/#) in <module>
      3 import loguru
      4 from dotenv import load_dotenv
----> 5 from together import Together
      6
      7 load_dotenv()

ImportError: cannot import name 'Together' from 'together' (/usr/local/lib/python3.10/dist-packages/together/__init__.py)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

The code I was running:
from swarms import Agent

agent = Agent(
    agent_name="Stock-Analysis-Agent",
    model_name="gpt-4o-mini",
    max_loops="auto",
    interactive=True,
    streaming_on=True,
)

agent.run("What is the current market trend for tech stocks?")

This looks to be a bug in
https://github.com/The-Swarm-Corporation/swarm-models/blob/737cf8f1115664bfabf311b9a5f3f9f89fd065fd/swarm_models/together_llm.py
Opening issue there also.

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

Will need to be fixed by https://github.com/The-Swarm-Corporation/swarm-models/issues/11

This looks resolved in 6.4.9 Closing.


[release-4.18] OCPBUGS-45347: Reconcile SecretProvider for CNCC on ARO HCP

What this PR does / why we need it:
This PR is a manual cherrypick of:

https://github.com/openshift/hypershift/pull/4903
https://github.com/openshift/hypershift/pull/5216

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes OCPBUGS-45347
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/retest

/retest


Adding custom conditions to snip mate snippets

Is there any way to apply conditions to snip mate snippets?
I.e. is there a way to do the following but as a snip-mate snippet?
s({ trig = "@a", condition = tex.math_mode }, t("\\alpha")),

No, not really, but you can do
ls.parser.parse_snipmate({ trig = "@a", condition = tex.math_mode }, "\\alpha"),

Do you think this would be a feature worth implementing? Either by extending the snipmate syntax (probably a lot of work) or by adding a parameter to the snip-mate/vscode loader.

TBH, I don't think so.
Writing the snippet-body in snipmate is very comfortable, and defining all the options to the snippets in lua is great because we don't need custom parsing/don't need to think about how to define all these operators.
The only minor downside is that one may have to create a second snippet-collection, but that's pretty simple with the lua-loader :)


Suppress udpnet-service debug log

When debug.tags log is udp, udpnet-service logs are appeared too much.
CONFIG proxy.config.diags.debug.tags STRING udp

debug log
[Nov 28 08:39:55.610] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (1 slots): behind by -40935 ms
[Nov 28 08:39:55.684] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (3 slots): behind by -40881 ms
[Nov 28 08:39:55.756] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40869 ms
[Nov 28 08:39:55.829] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40876 ms
[Nov 28 08:39:55.901] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (3 slots): behind by -40884 ms
[Nov 28 08:39:55.972] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40873 ms
[Nov 28 08:39:56.050] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40875 ms
[Nov 28 08:39:56.121] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (3 slots): behind by -40884 ms
[Nov 28 08:39:56.194] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40871 ms
[Nov 28 08:39:56.267] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40878 ms
[Nov 28 08:39:56.341] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (3 slots): behind by -40884 ms
[Nov 28 08:39:56.415] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40870 ms
[Nov 28 08:39:56.498] Server {0xb0018000} DEBUG: <P_UDPNet.h:222 (advanceNow)> (udpnet-service) Advancing by (4 slots): behind by -40867 ms

[approve ci autest]

[approve ci autest]


feat(codegen): Add a flag to force field generation as pointers to make validations work

See #259 for details

Nice job ! I'll merge it right away !
Thanks for the PR ☺


Using iterators with state  in sol

Hi, in OSRM project a change from luabind to sol2  revealed a regression https://github.com/Project-OSRM/osrm-backend/issues/3452

My lua code :
print("way id : ", way:id());
for node in way:get_nodes() do
print("  node id  : ", node:id())
end
The error exception :
way id : 	5203906
TBB Warning: Exact exception propagation is requested by application but the linked library is built without support for it
terminate called after throwing an instance of 'tbb::captured_exception'
what():  lua: error: profile.lua:677: attempt to call a userdata value
Abandon (core dumped)

The current PR changes a usertype to a table https://github.com/Project-OSRM/osrm-backend/pull/3468
but it is just a fall back to stateless iterators and requires use of ipairs
for _, node in ipairs(way:get_nodes()) do
  print("  node id  : ", node:id())
end

Is there a way in sol2 to support old luabind-like behavior?

Iterators and pair/ipairs calls are entirely funky based on which version of Lua you use. Seeing as OSRM looks to support Lua 5.1, 5.2, and 5.3, you're in for a bit of a bad time trying to write code that's agnostic to all three when it comes to iterating over something.
For a brief overview of why, see this issue and the information about container serialization.
I do not have a good solution to the problem. Lua 5.2 and 5.2 added mechanisms directly to solve this problem and have stateful iterators. Lua 5.1 does not respect any of the metamethods for doing so and typical iteration functions do not respect the index or newindex metamethods either.
Your recourse would be to tell people to iterate in a specific way by letting them manually get 2 iterators and then walking those manually with a for or while loop, or some other third scheme. There's lots of ways to iterate, but Lua 5.1 is going to tie your hands at every opportunity (the language just isn't there).
I pray one day that LuaJIT becomes entirely Lua 5.3 friendly in its next big update, and we can leave the older design flaws of Lua 5.1 behind permanently as people have no reason to go backwards to 5.1, but... well.
Wishful thinking and all.
Let me know if there's any way to help.

If I ever do find a good way to do iteration with Lua 5.1, I will almost 100% implement it in sol2 so people don't have problems with it anymore...

@ThePhD to be clear: We could get this behavior if we drop Lua 5.1. support?
I don't have any real objections to that from the OSRM side.

@TheMarex Try to hook up the __pairs and __ipairs methods (or define proper iterators with begin and end as well as value_type and other container typedefs on the object returned from obj:nodes()) and then hook it up to Lua using sol2. You should see the code work in Lua 5.2 and Lua 5.3, but break in 5.1.
Again, you can simply expose a obj:nodes_table() method or something to offer an alternative, or you can drop Lua 5.1 and just keep the regular for loop and pairs/ipairs syntax.
Remember that dropping Lua 5.1 generally means losing LuaJIT support. I don't know who your userbase is, but I would imagine that might not be the best?

@ThePhD thank you for the insights. 👍
In our use-case we have already discouraged LuaJIT for a while now and in our production deployments we run on Lua 5.2. LuaJIT gave us a 15-30% speedup, but ultimately wasn't worth the hassle since the scripting enabled part of our processing is only a small fraction of the overall computation time.

Sounds like a plan. Well, good luck!


BaseVideo: add lengthSeconds field

closes #49

I'm a fool and missed duration

Video and LiveVideo extends BaseVideo, Video has duration, LiveVideo doesn't. BaseVideo supposed to not have duration

Ah I see, getVideo returns Video | LiveVideo | undefined. How can I work with just Video?

You can narrow type using if else like this
import {Client, Video, LiveVideo} from "youtubei";

const youtubei = new Client();

const video = await youtubei.getVideo("abc");
if (video) {
    if (video instanceof Video) {
        // video is instanceof Video
        console.log(video.duration); // no error
    } else {
        // video is instanceof LiveVideo
        console.log(video.duration); // error
    }
}

TS Playground
I also added generic type on .getVideo to easily narrow down type, although less safe
import {Client, Video} from "youtubei";

const youtubei = new Client();

const video = await youtubei.getVideo<Video>("abc");
console.log(video.duration); // no error

ah the generic is perfect. thanks


Changes to styling of assets list and details pane.

Just a few changes that hopefully you think look a little cleaner.
Spaced out the assets a little, giving them breathing room.
Before:

After:

Moved title / name of asset with the details of the asset below image.
Before:

After:

Hey, just here to say that it appears you've done your changes quite a while ago now.
The asset title being below the images might not work as well with all the changes I've made to the UI recently.
I would recommend building main first to see the changes to the UI and check if they might interfere with your commits.
And then merge or rebase from main.
✌

Thanks! No worries, I will do that. ☺
On Thu, Dec 12, 2024, 2:43 AM Philipp @.***> wrote:

Hey, just here to say that it appears you've done your changes quite a
while ago now.
The asset title being below the images might not work as well with all the
changes I've made to the UI recently.
I would recommend building main first to see the changes to the UI and
check if they might interfere with your commits.
And then merge or rebase from main.
✌
—
Reply to this email directly, view it on GitHub
https://github.com/AchetaGames/Epic-Asset-Manager/pull/301#issuecomment-2537670100,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIS622ONBJG626V5D4BHQ232FDZ35AVCNFSM6AAAAABTOOR36KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZXGY3TAMJQGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I would also hold of on this view alltogether... while I will adopt some of the code for the FAB view it will get some major rework.

No worries, it gives me time to learn a bit more rust and play around with gtk-rs binding:)

Hey, just here to say that it appears you've done your changes quite a while ago now. The asset title being below the images might not work as well with all the changes I've made to the UI recently. I would recommend building main first to see the changes to the UI and check if they might interfere with your commits. And then merge or rebase from main. ✌

I really like the changes you've made to the UI and anyone else that contributed, it's looking much cleaner :-)


Implement Publish auth (user/passwd)

https://www.ffmpeg.org/ffmpeg-protocols.html#rtmp
equivalent to rtmp://[username:password@]server[:port][/app][/instance][/playpath]

will implement next

thank you

how do i setup this?, also is there a IP whitelist auth alternative?


error reading values after eot

i'am getting errors when trying to compile(please correct me if this is not the right term) sass to css
here are my dev Dependencies:
"devDependencies": {
  "browser-sync": "^1.3.7",
  "gulp": "^3.8.8",
  "gulp-autoprefixer": "1.0.0",
  "gulp-jade": "^1.1.0",
  "gulp-sass": "^0.7.3"
},

What is wrong? any ideas how to fix it?

@sysTemz- Hi! Yes, compiling Sass to CSS is the right term.
Is this an issue with Bourbon, or maybe just Sass in general? If the latter, Stack Overflow would be a better forum to get answers.
What are the error you are getting?

@tysongach i'am not sure if its sass or compass
but after @import -ing bourbon i get this msg.
assets/_sass/0-tools/bourbon/helpers/font-source-declaration:22 error: error reading values after eot

@sysTemz- Have you tried updating gulp-sass? The version you list above is quite out of date and probably wraps a very old version of LibSass that we don’t support; the latest is 2.0.4.

@tysongach You are a hero! thanks. damn i thought this repo had the newest versions, i'll have more focus on version next time. thanks again

@sysTemz- Ha! No worries at all. Really happy I could help out!
All the best.


CocoaPods

What about CocoaPods?

Hi Igor, see #7 and #26 for the answer.

You should really reconsider this. Regardless of what the final fate of Cocoapods is, its by a massive margin the defacto standard, and its a royal pain in the neck having to constantly diff this library for changes against a locally copied version

You don’t have to maintain a local copy of this library. All you have to do is to maintain a custom podspec for the library which is pointing to this repository. You can even publish that podspec and share it with others. I’m not using Cocoapods and it would be a huge pain to setup an environment and test it inside after each release.


react-app-rewired build does not terminate on error

Environment

name
version

node
12.16.1

npm
6.14.8

react-app-rewired
2.1.6

Issue
When run react-app-rewired build on a project with a missing dependency (is required in code but does not exist in package.json) the script shows an error but does not exit. This is a problem since it leads to never ending build pipelines in my CI/CD.
Steps to reproduce

Require a missing dependency in code to be build
run react-app-rewired build

Expected: Script exits on error
Actually: Script displays error but keeps running
Console output
Failed to compile.

./src/components/Component.tsx
Cannot find module: 'package-name'. Make sure this package is installed.

You can install this package by running: npm install package-name.

[Expected to exit here]

Any solution for this issue ?

I am not able to duplicate this and suspect that there is a combination of libraries in use that is contributing to the problem, as with essentially a clean create-react-app project with react-app-rewired added it does not occur.
Example repository used: https://github.com/dawnmist/react-app-rewired-test-520
Steps taken:

yarn install
delete directory node_modules/web-vitals
modify the build script in package.json to use react-app-rewired instead of react-scripts
try running react-app-rewired build through yarn, through npm, and directly.

Result: Every run exited once the run failed due to the missing web-vitals package.
Tested with both nodejs versions 10.23.3 and 12.20.2 in case it was a version issue with nodejs, running on Debian 10 'Buster' version of linux.
username@host (master *)> ./node_modules/.bin/react-app-rewired build
Creating an optimized production build...
Failed to compile.

./src/reportWebVitals.tsx
Cannot find module: 'web-vitals'. Make sure this package is installed.

You can install this package by running: yarn add web-vitals.

PWD: ~/src/react-app-rewired-test-520
username@host (master *)> yarn build
yarn run v1.22.5
$ react-app-rewired build
Creating an optimized production build...
Failed to compile.

./src/reportWebVitals.tsx
Cannot find module: 'web-vitals'. Make sure this package is installed.

You can install this package by running: yarn add web-vitals.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PWD: ~/src/react-app-rewired-test-520
username@host (master *)> npm run-script build:rar

><EMAIL_ADDRESS>build /home/username/src/react-app-rewired-test-520
> react-app-rewired build

Creating an optimized production build...
Failed to compile.

./src/reportWebVitals.tsx
Cannot find module: 'web-vitals'. Make sure this package is installed.

You can install this package by running: yarn add web-vitals.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `react-app-rewired build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/username/.npm/_logs/datetime-debug.log

I will need more information on what is going on to be able to take this any further, particularly OS (and shell used if Windows) and if possible an example repository that reproduces/demonstrates the problem.
I'd also ask if someone who is experiencing the issue please test this on the example repository I posted above using the same set of steps listed above on their machine to see if my example repository demonstrates the issue on their machine as well, to narrow down whether it is something specific to the project that experiences this verses occurring on all projects on that machine.

@dawnmist Thank you for you effort. I'll test the repository you provided in our infrastructure and let you know if I have any news.


bold reset = double underline

apparently nobold is inconsistent, sometimes treated as double underline. will have to go back to using reset everywhere, or maybe normalintensity
affects at least: kitty, gnome-terminal, xterm, termite, xfce4-terminal

Also reproducible using xterm, termite, or xfce4-terminal.

Also reproducible using xterm, termite, or xfce4-terminal.

fixed w/ https://github.com/aeosynth/bk/commit/48786a80c2f96afd9a935688015ffd5da1cbfeb0


run_tests_TARGET dependency on tests

Invoking catkin_make run_tests eventually evaluates to a dependency on the tests target (see this line), but invoking catkin_make run_tests_<project> doesn't (see this line).
Is there a reason for this? The result is that, for instance, rostest builds the gtest executable when invoking run_tests but not for run_tests_<project>, because it adds the dependency to the tests target. I don't see some other way to work around it from rostest's perspective, so I'm filing an issue here.

My naive answer (without looking at the code) is that the target tests applies to all projects, and therefore the run_tests target, which is also for all projects, can depend on it. However, it does not make sense for a project's specific run_tests target to depend on tests since there is no project specific version of tests.
Instead, each of your test targets (which are aggregated by run_tests and ultimately by tests) should have a target dependency on anything it uses for its tests (executables, libraries, downloaded or generated test data, etc).

I'm not sure where the solution belongs (in catkin's run_test code or in rostest). @dirk-thomas will probably have a clearer understanding of the situation than me.

Apologies, I didn't look at rostest kinetic-devel close enough and didn't realize that add_rostest_gtest already does add a dependency on ${target}, fixed half a year ago. run_tests_<project> will thus also build the gtest. Maybe I'm using an older version or something. In that case, the lines that add a dependency from tests can probably be removed.
I guess with this, in theory you don't really need a project-specific tests from the user's point of view. If the user is adding a test through add_rostest, they can add DEPENDENCIES arguments; if add_rostest_gtest or catkin_add_gtest, they can use add_dependencies on the target.
Feel free to close the issue if there's nothing else to be said.

Since this was addressed in ros/ros_comm#830 I will close the issue for now. Any rostest version including and after 1.12.3 (which is available in ROS Kinetic) will have that fix.


fix(location AFURLRequestSerialization.m): Fix implicit conversion ch…

Fix implicit conversion changes signedness when build with Xcode 11.0

Thanks for the PR, but this has been fixed by #4409.


Assignment  1

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
answer homework
What did you learn from the changes you have made?
tried my best but 3 and 4 needed help
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
no
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
yes, 3 and 4
How were these changes tested?
vs code
A reference to a related issue in your repository (if applicable)
Checklist

[X] I can confirm that my changes are working as intended

Closing this PR. Please review our Assignment Submission Guide 🚨 for detailed instructions on how to format, branch, and submit your assignment.

Hi,
Need help getting this homework approved and not sure if it is or not...
please help. Here is the screenshot:
[image: image.png]
On Thu, Sep 26, 2024 at 9:07 PM HX @.***> wrote:

Closed #101
https://github.com/UofT-DSI/applying_statistical_concepts/pull/101.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/applying_statistical_concepts/pull/101#event-14424191555,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKRJBU6UOGSUWDJZ46UTBQLZYSVW5AVCNFSM6AAAAABO55TWOCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGQZDIMJZGE2TKNI
.
You are receiving this because you modified the open/close state.Message
ID:
<UofT-DSI/applying_statistical_concepts/pull/101/issue_event/14424191555@
github.com>


Shared.imageCache.removeAll() not working ?

I'm using Shared.imageCache.removeAll() to delete all memory&disk cache
But not working. Image should't show on UIImage because I'm delete that image from server.
Thank you.

Did you find anything about this topic? I have the same issue when i try to remove all images.

I'm try to remove cache from NSURLCache and now my problem is resolved.


huggingface: Save tokenizer

Codecov Report

Merging #194 (17805e7) into master (a56d68f) will decrease coverage by 0.15%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #194      +/-   ##
==========================================
- Coverage   92.27%   92.12%   -0.16%
==========================================
  Files          19       19
  Lines         466      457       -9
==========================================
- Hits          430      421       -9
  Misses         36       36

Impacted Files
Coverage Δ

dvclive/huggingface.py
100.00% <100.00%> (ø)

dvclive/lightning.py
94.28% <0.00%> (-0.59%)
:arrow_down:

dvclive/data/base.py
90.62% <0.00%> (-0.29%)
:arrow_down:

dvclive/live.py
98.00% <0.00%> (-0.08%)
:arrow_down:

dvclive/data/scalar.py
100.00% <0.00%> (ø)

dvclive/data/image_pil.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


[Education]: Fact / Quiz Interactive Mode 3.22.20

See wireframe

[x] Component 1: Upfront logo + text-based logo

[x] Component 2: Two-button
Left: “Fact Mode” -- make red
Right: “Quiz Mode” -- make blank

[x] Component 3: Instructions
Left: “Fact Mode” -- make red
Right: “Quiz Mode” -- make blank

[x] Component 4: Flash Cards
“Flash card” like visualization with cards “stacked on top of one another (maybe make it look like there’s 3-4 with the top one being locked in place once you swipe the top one away)
The card has a few elements
https://github.com/oliviertassinari/react-swipeable-views

Main goal to gameify education

Adding these rough drafts here for the fact/quiz format button
https://github.com/johnemurphy1/Corona-tracker/blob/master/EducationTwoButton.css
https://github.com/johnemurphy1/Corona-tracker/blob/master/EducationTwoButton.js

ok, i'm not going to do a PR on the fact/quiz button. latest version that @Tanvez posted has it working...

Excellent work the both of you! We couldn't have reached V1 without your help.


redis 4.6.0 spits warnings in puma.log

we're seeing these in our puma logs after upgrading the redis gem to 4.6.0
[2102591] + Gemfile in context: /var/local/app/app.d/110/Gemfile
Pipelining commands on a Redis instance is deprecated and will be removed in Redis 5.0.0.

redis.pipelined do
  redis.get("key")
end

should be replaced by

redis.pipelined do |pipeline|
  pipeline.get("key")
end

(called from /var/local/app/app.d/110/vendor/bundle/ruby/3.0.0/gems/flipper-redis-0.23.1/lib/flipper/adapters/redis.rb:133:in `docs_for'}

it seems like this was recently fixed in sidekiq for example

Great! Thank you!!

Looking forward to the release @jnunemaker .  Thanks for all your hard work!


Update SamplerQNN docs

Summary
Improved the documentation for SamplerQNN: updated comments on the interpret callable usage and output shape guidelines.
Fixes https://github.com/qiskit-community/qiskit-machine-learning/issues/773.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 90.637%

Totals

Change from base Build<PHONE_NUMBER>4:
0.002%

Covered Lines:
4366

Relevant Lines:
4817

💛  - Coveralls


Getting native mongodb driver from mongojs

db.collection.insertMany (is returning null) is failing ..
insertMany is present in original driver : https://www.npmjs.com/package/mongodb#inserting-a-document
Hence looking for native mongoDb drive from mongojs
Want to keep most of the stuff on native drivers incase need to migrate.

You can use insert in mongojs to insert an array of docs into mongodb.
dB.collection.insert([docs]...


Get-DbaDbUser: new parameters to filter by User and Login

Type of Change

[ ] Bug fix (non-breaking change, fixes # )
[x] New feature (non-breaking change, adds functionality, fixes #7969 )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[ ] Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[x] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Unit test is included
[x] Documentation
[ ] Build system

Purpose

Minor change to allow filtering by user or login.
Approach

Simple approach to filter the users returned.
Commands to test

See the new additions to the pester tests and the command examples.

Thank you so much 💯 !

Thank you so much!!!


[NO QA] Remove up unused Timing key

Details
Simply removes a deprecated timing key that was not previously cleaned up. The related dashboard is also being removed.
Fixed Issues
N/A, this is simply deleting a key.
Tests

Run the app
Switch report
Ensure no errors show in the console

QA Steps
N/A -- see above
Tested On

[x] Web
[ ] Mobile Web
[ ] Desktop
[ ] iOS
[ ] Android

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging in version: 1.0.36-1🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Update concurrent-queue to 2.0

And also remove the unused async-task dependency.

I misinterpreted the other skip entries as I was thinking about it :V
This PR now updates our dependency on concurrent-queue to 2.0.

async-channel version 1.8.0 has been published using concurrent-queue 2.0.

The async_task version was specifically pinned in #6509, as we're reliant on one of the APIs exposed on it.

@devil-ira could you read async-task? This should be good to merge after

bors r+


Add quota support into local-dev setup

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

@cuahsimarko here you are
@pkdash and @Maurier  could you please take a look on your VM system
@sblack-usu  I add a new option for you to configure nginx port
@hyi  please try on Ubuntu 16.04 but with the newest docker-ce and not inside any VM system
Thanks all,
Phuong

@zhiyuli if you have a chance, please take a look, thanks!

@cuahsimarko
yes, it's moved to scripts/templates/local-dev.yml.template. You do need to run local-dev-first-start again

@phuongdm I am still unable to switch branches, switch back and continue to work. The reason is because when you return to this branch, the local dev setup is in gitignore. There's no rush on this, so whenever you figure out a way to work on this branch, switch to another branch, launch, then switch back and not have to redo setup or manually copy files each time, then we should be good.

@cuahsimarko I will look into the issue later however please approve, there is another bug fixed in this branch. Thanks!

@phuongdm I can't approve, this will break/confuse local developer environments for everyone. Please put the work into a separate Pull Request.

Oops, OK

I can confirm resource creation takes too long. We can't merge this PR until we find the problem and remediate.

Running local setup creates a difference in the source. Will this just be first-time or does a second file need to be adjusted?
git diff:
--- a/local-dev.yml
+++ b/local-dev.yml
@@ -118,7 +118,7 @@ services:
depends_on:
- hydroshare
ports:

 - "8080:80"

 - "80:80"

sorry, forgot to update on local-dev.yml.template. I changed to default port from 80 to 8080 because most of Windows laptop already has a printer server running on port 80. My Mac is also using Apache on this port :)


⚠ 366.ru has degraded performance

In 1fe0e80, 366.ru (https://366.ru) experienced degraded performance:

HTTP code: 200
Response time: 5888 ms

Resolved: 366.ru performance has improved in c26c18d.


1.19.2 Crash upon Startup

Like mentioned by one of the previous guys on curse, the mod crashes in 1.19.2 when trying to start it up.
I hope you'll be able to fix it, as I'd really like to use your mod!
latest.log

Fixed in c466ab2
Will upload to curseforge and modrinth now (will take time for them to verify the file though I expect)


Enforce pre-declaration

Currently a block like this doesn't require pre-declaration of func(). It should
int
main()
{
	int *i;
	int *j;

	i = func();
	j = *i;		/* ERROR: unjusitified indirection */

	return 0;
}

int *
func()
{
	int *p;
	p = malloc(1);
	free(p);	/* p dangling */

	return p;	/* return dangling ptr */
}

implemented as part of #32


Fixes incorrect attributes for technologies when adding them to the profile matrix

Fixes: #756

Are you happy that this works as expected? If so, I think it's fine to push simple changes like this straight to master without needing a review. Unless you want a second opinion of course, in which case you can always create a PR.
(I did test it, seems to work just fine :+1:)

Great! Well, I just create a PR to be sure that somebody has also seen it (i.e. is aware that something changed eventhough it's something little). It's not really about the second opinion (unless you have a really strong one).
I could from now on just merge small things like this directly into master. Can imagine that it might be disruptive of your workflow to look at something this small.


Package Updates

version update
cleanup
minor fixes

sudo dpkg -i mivisionx_1.9.5-local_amd64.deb
Selecting previously unselected package mivisionx.
(Reading database ... 272297 files and directories currently installed.)
Preparing to unpack mivisionx_1.9.5-local_amd64.deb ...
Unpacking mivisionx (1.9.5-local) ...
Setting up mivisionx (1.9.5-local) ...


[Feature request]Remove eval()

Is your feature request related to a problem? Please describe.
When npm run dev or npm run build, the console will report eval warning, which does not affect the operation, but affects the development experience, you can refer to
https://github.com/feathersjs/feathers/issues/588

@I can solve it

[Feature request]Remove eval() #237
In short, the solution to delete Eval is as follows: Using the new function syntax feature.
Sample processing：
1、Data analysis
 let data = eval('(' + result.data + ')');
for
let data = new Function("return " + result.data )();
2、Involving the execution of functions
eval('data.splice(' + st_i + ', 0, ' + arr.join(",") + ')');
for
new Function("return " + 'data.splice(' + st_i + ', 0, ' + arr.join(",") + ')')();

Great solution!


Auth related BatchElementError codes

What
Why
"This is a precursor to having something more fleshed out, but just putting the error codes in gives managers and hosts an option in the meantime, and it's super simple." - Dr David Feltell, Manchester, 18th April 2024.

What!?

Think about this, could be a source level data break for non exhaustive switches.


support complex filter types

Possible solution for #1 and https://github.com/Turfjs/turf/issues/215.
I think we'll want to discuss and narrow down on what we want the API to be, but I wanted to provide some options for discussion. If you take a look at the test file, you can see the 3 different styles of filtering that are supported

@morganherlocker @tmcw any thoughts here? The plus of this kind of approach is that it avoids loosely defined filter syntax (such as parsing strings like "year >= 2000", or array formats like ["year", ">=", 2000])


[SP-5722] Backport of PDI-18881 - Calculator Step : Absolute value AB…

…S( A ) function in the step does not output the right result (9.0 Suite)
cherry-pick of #7678
@pentaho-lmartins @smmribeiro

:white_check_mark: Build finished in 36m 18s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core,engine

:ok_hand: All tests passed!
Tests run: 4842, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message


Taddeimania tables

Oh snap, alarm alarm!
The PR is destined for the master branch :(

Hi @taddeimania - I merged your added tests from #305 into the develop branch, thanks a lot!
Hope I didn't ring those alarms too loudly, it wasn't meant as a discouragement, and there wasn't any serious merge conflicts since you had contributed new code only.

Coverage increased (+1.2%) to 44.581% when pulling 9f5b4a8a25b5351190bdfdb03384551070120f78 on benjaoming:taddeimania-tables into c2ff9180816dd8cf67a1b026cdf08add55733e8d on xhtml2pdf:develop.

Previous commit message indicates that I fixed a broken test, that wasn't the case.. I fixed the code to match the case since I had previously touched this code to deliberately make it fail.


Create bids only from vehicles with status "available"

Thanks you for your help :heart:
What is this project?
DAV (Decentralized Autonomous Vehicles) is a new foundation working to build an open-source infrastructure for autonomous vehicles (cars, drones, trucks, robots, and all the service providers around them) to communicate and transact with each other over blockchain.
The specific project you are looking at is Mission Control. It is the brain in charge of orchestrating missions between DAV users and autonomous vehicles.
How you can help
Mission Control comes with a built in simulation environment which generates and controls simulated vehicles, allowing developers to start developing without investing in costly hardware first.
When a request for a delivery is raised by the user, vehicles will participate in the bidding. Right now bidding is done by all the vehicles, including the ones not available.
What you can do
Modify bids.js to only create bids from vehicles that have a status of available.
Contributing to Mission Control

[ ] Make sure no one has commented below that they are starting to work on this already.
[ ] Comment in this issue that you would like to do it.
[ ] Fork the repository from the Mission Control GitHub page.
[ ] Clone a copy to your local machine with $ git clone git@github.com:YOUR-GITHUB-USER-NAME/missioncontrol.git
[ ] Refer to contributing.md for project setup instructions.
[ ] Make your changes.
[ ] Run npm test to verify that all the tests pass.
[ ] Once you've made sure all your changes work correctly and committed all your changes, push your local changes back to github with $ git push -u origin master
[ ] Visit your fork on GitHub.com (https://github.com/YOUR-USER-NAME/missioncontrol) and create a pull request for your changes.
[ ] Make sure your pull request describes exactly what you changed and references this issue (include the issue number in the title like this: #6)
[ ] Get hooked on open source!

Asking for help
We appreciate your effort in taking the time to work on this issue and help out the open source community and the foundation. If you need any help, feel free to ask below or in our gitter channel. We are always happy to help 😄

@koutron and @mym1990 Hey I'd love to take a stab at this-- are the both of you still working on this?

Hey @koutron - maybe we can let @bicep take this one?
Also please let us know if you'd like to help in any other way.
@bicep Please go ahead and take this - thanks!

Hey @srfrnk, I get that bids are each autonomous vehicle offering a price for their service (?). Could you give me a brief overview of what a need and what needs.js does?

Sure @bicep - you're exactly right - a Need is the "request" that comes from the client application (e.g. an end user that needs a drone delivery) - this is then sent to autonomous vehicles who in turn send their bids for supplying the need. Does that make sense now?


[Build/Tests] Investigate tests failures

Example: https://github.com/gdt050579/GView/actions/runs/9069995073/job/24922910987

The cause was from the missing binaries from the submodule AppCUI


Use def_delegators instead of module_eval for delegation code

Refer to https://github.com/svenfuchs/i18n/blob/master/lib/i18n.rb#L27

Is there any performance consideration we need to have? For example, I18n.locale is likely called a lot on all Rails apps, could we introduce any performance penalty by using def_delegators, or are we gaining anything? Thanks for the suggestion.

OK, I suggest this too early :P
https://gist.github.com/sstelfox/15e1b500264c75636069

Thanks for sharing the bench :+1:

Maybe it's worth mentioning in code with comment? :P

Well, maybe... however if someone accidentally removes that, at least one test would fail, perhaps that's good enough?

I mean the reason of using module_eval instead of def_delegators

Ah yeah, I got confused between the two issues :smile:, sounds fine yeah.


[BUG] {Streams have duplicate name 'detections'}

Describe the bug
I'd like to use my OAK camera with ros2 for yolo detection, so I tried to run the yolo example launch file. I get the error that Streams have duplicate name 'detections'.
I installed from ros binaries on humble, and am working with ubuntu 22.04.
The following work without any issues:

stereo_inertial_node in depthai_examples
camera in depthai_ros_driver

ros2 launch depthai_examples yolov4_publisher.launch.py
[INFO] [launch]: All log files can be found below /home/frederike/.ros/log/2024-01-17-14-49-40-066898-frederike-Yoga-115126
[INFO] [launch]: Default logging verbosity is set to INFO
Default resources path..............
/opt/ros/humble/share/depthai_examples/resources
[INFO] [robot_state_publisher-1]: process started with pid [115136]
[INFO] [yolov4_spatial_node-2]: process started with pid [115138]
[robot_state_publisher-1] [INFO] [1705499380.317633749] [oak_state_publisher]: got segment oak-d-base-frame
[robot_state_publisher-1] [INFO] [1705499380.317717707] [oak_state_publisher]: got segment oak-d_frame
[robot_state_publisher-1] [INFO] [1705499380.317724640] [oak_state_publisher]: got segment oak_imu_frame
[robot_state_publisher-1] [INFO] [1705499380.317729169] [oak_state_publisher]: got segment oak_left_camera_frame
[robot_state_publisher-1] [INFO] [1705499380.317733687] [oak_state_publisher]: got segment oak_left_camera_optical_frame
[robot_state_publisher-1] [INFO] [1705499380.317737865] [oak_state_publisher]: got segment oak_model_origin
[robot_state_publisher-1] [INFO] [1705499380.317743295] [oak_state_publisher]: got segment oak_rgb_camera_frame
[robot_state_publisher-1] [INFO] [1705499380.317747704] [oak_state_publisher]: got segment oak_rgb_camera_optical_frame
[robot_state_publisher-1] [INFO] [1705499380.317751651] [oak_state_publisher]: got segment oak_right_camera_frame
[robot_state_publisher-1] [INFO] [1705499380.317755518] [oak_state_publisher]: got segment oak_right_camera_optical_frame
[yolov4_spatial_node-2] terminate called after throwing an instance of 'std::invalid_argument'
[yolov4_spatial_node-2]   what():  Streams have duplicate name 'detections'
[ERROR] [yolov4_spatial_node-2]: process has died [pid 115138, exit code -6, cmd '/opt/ros/humble/lib/depthai_examples/yolov4_spatial_node --ros-args --params-file /tmp/launch_params_q5o9psju --params-file /tmp/launch_params_4uibd0_0 --params-file /tmp/launch_params_t7pp0qds --params-file /tmp/launch_params_vruddidf --params-file /tmp/launch_params_4xq62zeo --params-file /tmp/launch_params_as6uoun3 --params-file /tmp/launch_params_rvilgxsx'].

I get the same error
[yolov4_spatial_node-2]   what():  Streams have duplicate name 'detections'

launching in the luxonis/depthai-ros:humble-latest Docker image

@FrederikeDurow Have you tried the latest build from sources humble branch?
ros2 launch depthai_examples yolov4_publisher.launch.py camera_model:=OAK-D-LITE spatial_camera:=false
is working for me after building from the humble sources (over Ubuntu 22.04 in Docker on Raspberry Pi 5)

It work now! It seems like the newer version of the package solved the issue.

Yes, it works with the newest build from source, thanks!


Dependencies License check

We are currently not checking our dependencies licenses, however per CNCF guidelines we should ask governing board for approval of dependencies not using allowed licenses.
I made a quick license audit of our dependencies and found two that should require approval from CNCF:

opcua crate is under MPL license
mock_interval crate is under 0BSD license

Tools like cargo-deny (used by kube-rs for example) exists to enforce this kind of requirements on dependencies.

Since opcua and mock_interval are not used by the platform itself, this might be a good reason to move the discovery handlers into their own repos.

Ah, gotcha. In that case, arguing for an exception seems better unless there's a differently licensed mocking library that's worth the migration.


After selecting an option on md-select it does not adjust width while resizing window

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Once the user selects a value on md-select and the browser window is resized the md-select element should adjust its width accordingly. md-input works fine.
What is the current behavior?
The md-select width is not adjusted correctly when the browser window is re-sized.
Full Size window:

Resized window:

What are the steps to reproduce?
Plunker: http://plnkr.co/edit/DiPQWnqp76znq27BmXuj?p=preview

If we try resizing the preview window without choosing any options on both "Select Option 1" and "Select Option 2", it should work fine.
Choose an option for  "Select Option 1" and "Select Option 2" and then try to resize. The select element does not adjust its width automatically like it did when none of the options were selected.

What is the use-case or motivation for changing an existing behavior?
The field alignment for md-select is thrown off when the user tries to resize the page.
Which versions of Angular, Material, OS, browsers are affected?
Angular Material (SHA 899f190)
Browser: Chrome

+1

@jelbourn I created a quick PR for that, see #6684
I wrote an explanation on why and how

At a quick glance, this seem to be related to #5298


Having Trouble in login

When i log in with the family name, it starts a download of a file with extension .gz which i am not able to open and not the page with the dashboard.

What is the family name?
What is the URL that it redirects to when you login?

Hi,
The family name is gecad and it redirects to
https://cloud.internalpositioning.com/view/dashboard/gecad. With this URL
it is started a download of gecad.gz
2018-07-13 17:09 GMT+01:00 Zack<EMAIL_ADDRESS>
What is the family name?
What is the URL that it redirects to when you login?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#issuecomment-404879049, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx85sndzK3GGYznICJMMXvvjVEg3xkks5uGMYpgaJpZM4VPJFT
.

Great, thanks.
Something went wrong with your DB, here's the error:
runtime error: index out of range
/usr/local/go/src/runtime/panic.go:505 (0x435758)
/usr/local/go/src/runtime/panic.go:28 (0x43459d)
/usr/local/work/src/github.com/schollz/find3/server/main/src/api/analysis.go:377 (0x7c0f93)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:278 (0xa27f0a)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:325 (0xa2a003)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/gin-gonic/gin/recovery.go:47 (0xa08ee9)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:1065 (0xa2f07c)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/gin-gonic/gin/gin.go:359 (0xa01005)
/usr/local/work/src/github.com/gin-gonic/gin/gin.go:326 (0xa00852)
/usr/local/go/src/net/http/server.go:2694 (0x6abd0b)
/usr/local/go/src/net/http/server.go:1830 (0x6a7ec0)
/usr/local/go/src/runtime/asm_amd64.s:2361 (0x4627c0)

I'll look into it later this weekend.

Ok, Thanks for Helping
A Sex, 13 de jul de 2018, 17:25, Zack<EMAIL_ADDRESS>escreveu:

Great, thanks.
Something went wrong with your DB, here's the error:
runtime error: index out of range
/usr/local/go/src/runtime/panic.go:505 (0x435758)
/usr/local/go/src/runtime/panic.go:28 (0x43459d)
/usr/local/work/src/github.com/schollz/find3/server/main/src/api/analysis.go:377 (0x7c0f93)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:278 (0xa27f0a)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:325 (0xa2a003)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/gin-gonic/gin/recovery.go:47 (0xa08ee9)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:1065 (0xa2f07c)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/gin-gonic/gin/gin.go:359 (0xa01005)
/usr/local/work/src/github.com/gin-gonic/gin/gin.go:326 (0xa00852)
/usr/local/go/src/net/http/server.go:2694 (0x6abd0b)
/usr/local/go/src/net/http/server.go:1830 (0x6a7ec0)
/usr/local/go/src/runtime/asm_amd64.s:2361 (0x4627c0)
I'll look into it later this weekend.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#issuecomment-404883350, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx88AZViZk6CSUJvSTZmf9E3A5Zb9bks5uGMnqgaJpZM4VPJFT
.

Hi,
Did you look into those errors this past weekend? Do you know their origin?
Best Regards
2018-07-13 17:29 GMT+01:00 David Silva<EMAIL_ADDRESS>
Ok, Thanks for Helping
A Sex, 13 de jul de 2018, 17:25, Zack<EMAIL_ADDRESS>escreveu:

Great, thanks.
Something went wrong with your DB, here's the error:
runtime error: index out of range
/usr/local/go/src/runtime/panic.go:505 (0x435758)
/usr/local/go/src/runtime/panic.go:28 (0x43459d)
/usr/local/work/src/github.com/schollz/find3/server/main/src/api/analysis.go:377 (0x7c0f93)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:278 (0xa27f0a)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:325 (0xa2a003)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/gin-gonic/gin/recovery.go:47 (0xa08ee9)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/schollz/find3/server/main/src/server/server.go:1065 (0xa2f07c)
/usr/local/work/src/github.com/gin-gonic/gin/context.go:108 (0x9f9502)
/usr/local/work/src/github.com/gin-gonic/gin/gin.go:359 (0xa01005)
/usr/local/work/src/github.com/gin-gonic/gin/gin.go:326 (0xa00852)
/usr/local/go/src/net/http/server.go:2694 (0x6abd0b)
/usr/local/go/src/net/http/server.go:1830 (0x6a7ec0)
/usr/local/go/src/runtime/asm_amd64.s:2361 (0x4627c0)
I'll look into it later this weekend.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#issuecomment-404883350, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx88AZViZk6CSUJvSTZmf9E3A5Zb9bks5uGMnqgaJpZM4VPJFT
.

@djbs291 Something weird is going on with your database, I've not seen before.
What did you use to submit fingerprints - the app, the command line tool, or something else?

I used the app FIND3 Scanner in a Huawei P8 2017
2018-07-16 15:11 GMT+01:00 Zack<EMAIL_ADDRESS>
@djbs291 https://github.com/djbs291 Something weird is going on with
your database, I've not seen before.
What did you use to submit fingerprints - the app, the command line tool,
or something else?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#issuecomment-405260710, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx82yGeSJQJwtLyQbhwjZbywj93QlAks5uHJ8igaJpZM4VPJFT
.

@djbs291 It will take some time to figure out.
In the meantime can you try making a new database (new family name) and try learning again? I'd like to know if this is reproducible.

Hi,
I changed the family name to "pesta", but the same problem keeps happening
(it downloads a file named pesta.gz). Is it possible to be a compatibility
problem on the device which i am doing the scanning?
I tested the first version of FIND, and it works without problems.
Best regards.
2018-07-16 17:49 GMT+01:00 Zack<EMAIL_ADDRESS>
@djbs291 https://github.com/djbs291 It will take some time to figure
out.
In the meantime can you try making a new database (new family name) and
try learning again? I'd like to know if this is reproducible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#issuecomment-405312202, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx85F-HwJx3gNiGii1w3THN-Bofl-bks5uHMQxgaJpZM4VPJFT
.

https://github.com/schollz/find3/commit/ffdb18d0287fde892c4137bfd0bf2af28786c218 Should fix it.
The cloud server will restart in about an hour, try it again then and see if it works.

Hello, I encounter a similar problem after I pulled your new code.
In my case, the server cannot produce the corresponding .find3.ai file with the family name contains '-' (my project's family name is 'exp-d')

Can you share your log file or database?

Here is the data storage server's log data.
2018-07-20 12:32:43 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:40125 GET /ws?family=exp-d&device=xphone 552.763µs
2018-07-20 12:33:16 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:52666 POST /data 84.100491ms
2018-07-20 12:33:16 [ERROR] [PID-18312] analysis.go AnalyzeSensorData:222 unable to analyze: could not find '/home/ubuntu/go/src/github.com/schollz/find3/server/main/data/CSzF2cs.find3.ai'
2018-07-20 12:33:28 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:52666 POST /data 16.400923ms
2018-07-20 12:33:28 [ERROR] [PID-18312] analysis.go AnalyzeSensorData:222 unable to analyze: could not find '/home/ubuntu/go/src/github.com/schollz/find3/server/main/data/CSzF2cs.find3.ai'
2018-07-20 12:33:38 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:52666 POST /data 17.15747ms
2018-07-20 12:33:38 [ERROR] [PID-18312] analysis.go AnalyzeSensorData:222 unable to analyze: could not find '/home/ubuntu/go/src/github.com/schollz/find3/server/main/data/CSzF2cs.find3.ai'
2018-07-20 12:33:48 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:52666 POST /data 11.768425ms
2018-07-20 12:33:48 [ERROR] [PID-18312] analysis.go AnalyzeSensorData:222 unable to analyze: could not find '/home/ubuntu/go/src/github.com/schollz/find3/server/main/data/CSzF2cs.find3.ai'
2018-07-20 12:34:39 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:52666 POST /data 20.050462ms
2018-07-20 12:34:39 [ERROR] [PID-18312] analysis.go AnalyzeSensorData:222 unable to analyze: could not find '/home/ubuntu/go/src/github.com/schollz/find3/server/main/data/CSzF2cs.find3.ai'
2018-07-20 12:34:49 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:54435 POST / 806.929µs
2018-07-20 12:34:49 [WARN] [PID-18312] server.go 1:205 No learning data available
2018-07-20 12:34:49 [WARN] [PID-18312] server.go 1:210 could not get LastCalibrationTime
2018-07-20 12:34:49 [WARN] [PID-18312] server.go 1:215 could not get AccuracyBreakdown
2018-07-20 12:34:49 [WARN] [PID-18312] server.go 1:220 could not get AlgorithmEfficacy
2018-07-20 12:34:49 [WARN] [PID-18312] analysis.go GetByLocation:355 missing deviceFirstTime for xphone
2018-07-20 12:34:49 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:54435 GET /view/dashboard/exp-d 14.414003ms
2018-07-20 12:34:49 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:52666 POST /data 9.990957ms
2018-07-20 12:34:49 [ERROR] [PID-18312] analysis.go AnalyzeSensorData:222 unable to analyze: could not find '/home/ubuntu/go/src/github.com/schollz/find3/server/main/data/CSzF2cs.find3.ai'
2018-07-20 12:34:49 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:54436 GET /ws?device=all&family=exp-d 191.583µs
2018-07-20 12:34:57 [INFO] [PID-18312] server.go func1:1068 <IP_ADDRESS>:52666 POST /data 12.876033ms
2018-07-20 12:34:57 [ERROR] [PID-18312] analysis.go AnalyzeSensorData:222 unable to analyze: could not find '/home/ubuntu/go/src/github.com/schollz/find3/server/main/data/CSzF2cs.find3.ai'

And, how would you like me to share my database?

@heathcliffYang join the slack channel and you can add it there.
I don't think its a problem with your family name "exp-d" it must be something else.

Hi,
The system is working! Thank you for your help
Best Regards
2018-07-20 14:19 GMT+01:00 Zack<EMAIL_ADDRESS>
Reopened #105 https://github.com/schollz/find3/issues/105.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#event-1744782363, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx8zW596shso1NakQ2aR1PhiNa_Ca_ks5uIdjIgaJpZM4VPJFT
.

Great @djbs291 , thanks.
@heathcliffYang could you open a new issue for your problem?

Good Morning,
I am unable to access this link
https://cloud.internalpositioning.com/view/location/gecadpesta/p8, in
order to verify my device activity.
It results the error "unable to locate image for 'p8' for 'gecadpesta' ".
May you verify this issue, please?
Best Regards.
2018-07-20 15:45 GMT+01:00 Zack<EMAIL_ADDRESS>
Closed #105 https://github.com/schollz/find3/issues/105.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#event-1744975374, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx8-fFBkjyqLIj2Gk9gCEk0p8BEl-Rks5uIez4gaJpZM4VPJFT
.

Calibrate first -> https://cloud.internalpositioning.com/view/dashboard/gecadpesta

The same error keeps happening
2018-08-08 15:54 GMT+01:00 Zack<EMAIL_ADDRESS>
Calibrate first -> https://cloud.internalpositioning.com/view/
dashboard/gecadpesta
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#issuecomment-411434947, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx80oDtLaqUXPQrd1gyU-9LmFcgq1tks5uOvuIgaJpZM4VPJFT
.

I have already calibrated
2018-08-08 16:02 GMT+01:00 David Silva<EMAIL_ADDRESS>
The same error keeps happening
2018-08-08 15:54 GMT+01:00 Zack<EMAIL_ADDRESS>
Calibrate first -> https://cloud.internalpositioning.com/view/dashboard/
gecadpesta
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/schollz/find3/issues/105#issuecomment-411434947, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AnSx80oDtLaqUXPQrd1gyU-9LmFcgq1tks5uOvuIgaJpZM4VPJFT
.

@djbs291 Should be working now


tt-rss: upgrade to 2022-08-01

Description of changes
Pick up a year's worth of changes from upstream.
I've got an instance of this running, apparently without problems. But there was a database migration of two versions involved, and I didn't have any data to migrate, so I have no idea if this aspect is OK. I also had some trouble cloning the repo until I did nix-prefetch-git at various points - the upstream repository is cgit in a configuration which I think just doesn't serve tarballs? - but eventually nixpkgs-review was happy; and for some reason the feed update daemon didn't start (nor were there any obvious errors) until I rebooted my machine, whereupon it came up happily.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1058

please make the commit messages follow contributing.md

Ah, I was going to squash them down.

Apologies to anyone I break this way!

Thanks for your PR. I rebased and updated it here: https://github.com/NixOS/nixpkgs/pull/198748


Feature/load env from url

resolves #840
Follow-up from #795 and based on top of it
Allows to specify the env vars at URL
Usage example:
/with_fmf_parameter:
    summary: This is a plan with vars provided by fmf
    environment-file-url:
      - https://some-url-to-secrets/.env
      - https://some-url-to-secrets/.env.yaml

from cli:
tmt run --environment-file-url https://some-url-to-secrets/.env

Question1: Is this intended to overwrite current ENV? Like f.e. if it redefines PATH, or .
Question2: Is the host ENV affected as well (during discover f.e.)? I'm no expert, but I suspect it can have some security implications.

@pvalena

Question1: Is this intended to overwrite current ENV? Like f.e. if it redefines PATH, or .

not. The test https://github.com/psss/tmt/pull/841/files#diff-019717de60a805cd16ce2a5e22b9000840e9949566a3e09691cbb9e512a7dc9fR73 covers this case

Question2: Is the host ENV affected as well (during discover f.e.)? I'm no expert, but I suspect it can have some security implications.

Env vars loaded to the main python process where the tmt runs. It is not updating the host environment. Moreover the plan related env vars are cleaned at the end of each plan

@pvalena

Question1: Is this intended to overwrite current ENV? Like f.e. if it redefines PATH, or .

not. The test https://github.com/psss/tmt/pull/841/files#diff-019717de60a805cd16ce2a5e22b9000840e9949566a3e09691cbb9e512a7dc9fR73 covers this case

Great!
Sorry, I couldn't tell from the test case.

Env vars loaded to the main python process where the tmt runs. It is not updating the host environment. Moreover the plan related env vars are cleaned at the end of each plan

Right, which runs on the host. This should be hopefully mostly covered by my first question. Please just note that there are ENV variables which are considered dangerous:
https://tldp.org/HOWTO/Secure-Programs-HOWTO/environment-variables.html

I can't however tell if that can be somehow used to escape/gain control of the python process; or some shell created by it.

Do we need another option? Why not just allowing URI in --environment-file (http, https, file and path (absolute and relative)

Do we need another option? Why not just allowing URI in --environment-file (http, https, file and path (absolute and relative)

Agreed, plus one for this approach.

OK, I'll solve it under the same parameter

closing this MR in favour of #795


Linux build-runtime compilation error

OS: Manjaro Linux x86_64
NOTE:  For some reason I don't have the command 'arch' installed so I replaced it with 'uname -m' in build-runtime.sh.  Doesn't seem to be related to the error, but I thought I should mention it anyway.
$ sh build-runtime.sh

///////////////////////////////////////////////
// Build IL2C.Runtime (gcc-linux-$Platform-$Configuration)

-- The C compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/Desktop/IL2C/IL2C.Runtime/build.cmake/gcc-linux-x86_64-
[1/62] Building C object src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj
FAILED: src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj
/usr/bin/cc -D_LIB -I../../cmake/../include -I../../src -I../../src/../include -pipe -g2 -Wall -Werror -Wstrict-prototypes -Wno-unused -fdata-sections -ffunction-sections -Wl,--gc-sections -O0 -D_DEBUG -pipe -g2 -Wall -Werror -Wstrict-prototypes -Wno-unused -fdata-sections -ffunction-sections -Wl,--gc-sections -O0 -D_DEBUG -MD -MT src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj -MF src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj.d -o src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj -c ../../src/Platform/no-threading.c
../../src/Platform/no-threading.c:1:10: fatal error: il2c_private.H: No such file or directory
    1 | #include <il2c_private.H>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
[14/62] Building C object src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/strings.c.obj
ninja: build stopped: subcommand failed.

@0x0015 Thanks your reports, I feel it's a bit mistake indicated line '.H' extension :)
Could you fix with extension '.h' and try to build?

Okay, replacing i2lc_private.H to .h it builds now.   So I have the IL2C folder in the bin of my c# project(just the getting started sample), so how do I want to build it?  The getting started only explains v++, with visual studio.

Thanks your suggestion, I applied it.
And yes, the getting started contains only VC++, and I feel it's very bad situation too...
(I'm switching linux on mainly my development environment rather than windows in between few days. I was an old unix man in lives Sun OS generation :)
Would you try to build manually only uses with gcc?
The runtime builder made libil2c-gcc-linux-x86_64-Debug.a in IL2C.Runtime/lib, so we have to do:

Includes subdir runtime headers pointed at IL2C.Runtime/include
Links subdir runtime library pointed at IL2C.Runtime/lib/libil2c-gcc-linux-x86_64-Debug.a

If it can do, we can use cmake scripts at IL2C.Runtime/cmake next, but it's not tested well on linux environment.

@0x0015 I fixed cmake scripts for Calculator sample code inside samples directory. Could you try to it?

I just pulled the devel branch, ran bulid-runtime.sh and build.sh in the calculator demo, and it worked!  Thanks for the help.


Deferred loading with multiple pages loaded at start

I'm currently experimenting with deferred loading and I've found a pretty limiting fact: at page load I can only output one page worth of rows, if I output more they just get added to the first page, even if the length is let's say 10 and I output 100 of them.
The point of using deferred loading is to use less server resources, if I have a table with 100k rows maybe I don't need them all at once, but since I cannot output N pages of rows at page load without asking the server for any page which is < N I'm actually using many more server resources in this, I believe, pretty common use case:
Let's say there's a website that provides each of their registered users with a table for managing images they uploaded, the vast majority of the users will have a pretty limited amount of uploads, in this case it will be better to ask the server for data just once, hence outputting the first N pages worth of results. But it's not possible to always output all results because in few limited cases some users uploaded a considerable number of images. Basically if we enable deferred loading we get way to many requests to the server, if we output all results the page will take forever to load, if not crash, for a few users. An hybrid approach is needed.
I suggest it to be working this way: if the length per page is set to 10 and I output 50 results than only the first 10 of them will be showed in the first page. We already have the data for showing pages 2, 3, 4 and 5 so we'll not ask the server. If a custom ordering or a search occur and we don't already have all the rows we'll send a request to the server.
This will unlock another pretty powerful feature: if the total numbers of rows is equal to the rows we are outputting at page load we don't even need to contact the server at all, not even for searching or ordering.
Of course one could choose to use deferred loading or not on the basis of how many rows there are, but it will be nice to have this integrated into DataTables.

You can use pipelining as shown in this example if you want to load more rows that required.
In future, please post future support requests in the DataTables forums. I'm trying to built it up to be a searchable resource for DataTables information instead of having it split between here and there.

Thanks for the suggestion, but I'd like to point out that the point of my reasoning was to not make any ajax call after page load if we already displayed the results, not asking the server again for those N pages and then caching them.
In which way 128 lines of custom code and an ajax call is better than just using the rows we already have? Btw I would argue that outputting a few pages worth or results just means changing a number in the LIMIT portion of a SQL query, which is undoubtedly easier then 128 lines of javascript.
If you're still not convinced this is an issue worth fixing I'd like to also highlight that reading Showing 1 to 10 of 1000 entries when there are 50 entries displayed doesn't like quite right.

Showing 1 to 10 of 1000 entries when there are 50 entries displayed doesn't look quite right.

Can you give me a link to a page showing issue please.

Sure, here you go.

Thanks.
I would actually consider that a misconfiguration. If you display 50 rows in the HTML you should set the page length to be 50 in initialisation.
Yes DataTables could possibly detect that automatically, so it could be considered a bug, but at the moment I think its a misconfiguration.

Ok, in case you'll ever consider that a great way of saving 128 lines of javascript, an ajax call and the fix of an issue let me know.

One of the reasons I don't want to include it in the core is that it is just moving the 128 lines of Javascript into the core library, so people who don't want it will need those extra 128 lines. Indeed, server-side processing is used only in the minority of use cases, so this would just be dead code for the most part.
As such, I believe this should live in a plug-in which can be assigned to the ajax parameter.

I think I've said everything I had to, but really, why don't you remove server side processing support all together then? Because If somebody uses it in a non trivial way and he/she is not stupid I don't see any reason why he/she would like to waste time in, at best, an ajax request... without considering the amount of time needed just to understand how that pipelining thing works.
I have the feeling that either I'm seeing too much value in issues like this and #811 or you have never used DT in big enough ajax-backed tables. Having been using search throttling for years instead of debouncing drives me towards the latter, but don't get me wrong, for the most part I appreciate all the work that has been done.

I think providing support for server-side processing would be quite difficult to do as a plug-in since the core has be be aware of the fact that it only has a subset of the rows that are actually available (which is not the case when client-side processing).
Having said that, the goal is to have DataTables more modular so you could make a build without server-side processing if you don' want it.
With regarding to pipelining specifically, in my experience when working with millions of rows of data, you typically want to use filtering and sorting more often than paging and for those actions any client-side cache is immediately invalidated. It absolutely can be useful to help speed up paging and reduce requests to servers, but I don't think it is a fundamental feature needed for server-side processing.
I will however try to get the pipeling code into its own plug-in and include it on the CDN alongside the 1.10.12 release.


Provide profile preview

As a first step to provide the profile viewer, we should implement the preview feature. It will

be activated by $ generator --preview command
render the preview using koa and react frameworks (simple react app, not flux, redux)
be provided with browser-sync + livereload

other details
directory structure

src -> [generator | viewer]/src
test/spec -> [generator | viewer]/test
build/[src | test] -> build/[viewer | generator]/[src | test]

Another thought: What if we use yeoman?
While we providing a basic template to render oh-my-github.json, (e.g yo-omg-basic)
other contributors can create their own templates. (e.g yo-omg-awesome-visual)


Add the keywords search in PowerToys Run

Description of the new feature / enhancement
The PowerToys Run can not list the software without setup. Hope that when I input a keyword, it could show the app which I set related to the words before.
Maybe a  function with adding an APP path relate to the keyword.
Scenario when this would be used?
Some APPS I used without setup can not search in PowerToys Run
Supporting information
No response

/dup #3600


Failed to setup player upon joining

When a player joins, HamsterAPI says
[HamsterAPI] Failed to setup (player name)! Reason: Tried to access field from a null object
This started happening from version 0.1.6 - there was no issue on 0.1.5
Using Paper-400
This can be reproduced when the only plugin is HamsterAPI.

Same here, and it looks like a lot of people are having the same issue.

Same here, and it looks like a lot of people are having the same issue.

If the plugin doesn't fail in the next injection, ignore the problem. It will almost always fail in the first try.

If the plugin doesn't fail in the next injection, ignore the problem. It will almost always fail in the first try.


Sampling decoding

Hello, I am trying to use a sampling decoding strategy rather than beam search. It is not totally clear to me how to implement this from the documentation, however it seems like it is supported by this or the keras-wrapper library. What function should be used to do this (rather than predictBeamSearchNet())? Would I set 'sampling' to 'multinomial' in params_prediction? I am trying to move away from beam search decoding. Thanks!

The models defined here are meant to be used with beam search, as they are autoreggressive (see Sec. 2 of this paper).
Of course, the keras-wrapper library supports regular sampling  (sample from a distribution probability, given by a model), as done for example by a classifier.
Non-autoreggressive NMT is not implemented here. If you want to use it, you should modify the models and implement something similar to the paper above.
If you want to stick to autoreggressive NMT, simply generating the most-likely token (or a token sampled from the model's distribution), you can set the beam size to 1. Moreover, if that's you use case, you can create some sort of predictGreedySearchNet function, that doesn't require all the beam search logic. PRs are welcome :)


feat: Enable external root certificate usage

Description
What?
This change adds the option to get an intermediary root certificate from an external provider instead of self signing.
Why?
This will allow users to use an existing CA that they already use for vault, which makes integration into their ecosystem easier.
Where?
This change can be used by deployments of the vault-k8s charm that have another charm that implements the certificates interface as a provider.
How?
On initial configuration, the charm will check if there is a tls-certificates-access relation available. If it is, it will create a CSR and request a new CA certificate, and proceed to initialize the charm regularly.
When a certificate-available event fires, the charm will invalidate its self-signed root certificate and the certificates it has signed, replace the root certificate, and reconfigure all of the units to use the new certificate.
On a certificate-expiring event, it will request a new certificate with the same options.
On a certificate-invalidated or all-certificates-invalidated event (when relation is broken for example) the charm will reconfigure itself back to a self-signed certificate.
When?
This change will be released on the next version of the charm, revision 51.
Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[X] I have added tests that validate the behaviour of the software
[X] I validated that new and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules

I decided to look into how the Vault KV relation works today, and I realized that the CA certificate for the relation is only set from the peer relation, which will not be valid once the TLS certificate relation connects. I've updated configure to make sure to send the ca certificate to any KV requirers, but this will need some time to write into the integration tests that we have.

Closes #130


Duplicate KeyUp events are raised for arrow keys

Describe the bug
When an arrow key is pressed and released, the KeyUp event is raised twice
Steps to reproduce the bug
        public MainWindow()
        {
            this.InitializeComponent();

            grid.KeyDown += Grid_KeyDown;

            grid.KeyUp += Grid_KeyUp;
        }

        private void Grid_KeyDown(object sender, KeyRoutedEventArgs e)
        {
            Debug.WriteLine($"KeyDown: {e.Key}");
        }

        private void Grid_KeyUp(object sender, KeyRoutedEventArgs e)
        {
            Debug.WriteLine($"KeyUp: {e.Key}");
        }

Press and release the "Up" arrow key. It then prints:
KeyDown: Up
KeyUp: Up
KeyUp: Up

Expected behavior
The KeyUp event should only be raised once. i.e.
KeyDown: Up
KeyUp: Up

Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.0: 1.5.240227000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response

Repro available here:
https://github.com/molesmoke/WinUITestApp/tree/keyup

It looks like CXamlIslandRoot::PreTranslateMessage() results in delivering an CXamlIslandRoot::OnIslandKeyUp(), which gets handled as a normal key up, and then the standard key input still gets delivered to CXamlIslandRoot::OnIslandKeyUp(), causing it to be processed again. Something needs to change so only one or the other gets delivered/processed.

@codendone Maybe related if you're looking into this one, key down events are not raised for some combinations: #9399

Still present in v1.5.240607001

This is fixed in 1.6.240701003-experimental2.


Output when running tests

I've been going through these for a few weeks, and I have struggled with getting basic text outputted when running the test suite. If I put a IO.puts number_i_want in the tests or the program file, I would expect to see some text come out somewhere. Might there be another way to get a similar benefit?

Hmmm, this sounds like it should work. Can you post your code so I can get a better picture of what's happening? My initial idea is maybe there's some pattern matching happening and the function you think is being called isn't actually being called, but I can't tell for sure unless I can see the code.

Hi @approaching236
I'm curious if perhaps the output is coming out, but just not where you expect. For instance, when I run the pig-latin specs and add the following:
    test "word beginning with a" do
      IO.puts "****************"
      IO.puts "HI I'm up here!!!"
      IO.puts "****************"
      assert PigLatin.translate("apple") == "appleay"
    end

I get the following output:
Excluding tags: [:pending]

PigLatinTest
  * test first letter and ay are moved to the end of words that start with consonants word beginning with k (skipped)
  * test ay is added to words that start with vowels word beginning with i (skipped)
  * test first letter and ay are moved to the end of words that start with consonants word beginning with q without a following u (skipped)
  * test ay is added to words that start with vowels word beginning with u (skipped)
****************
  * test first letter and ay are moved to the end of words that start with consonants word beginning with yHI I'm up here!!!
****************
  * test first letter and ay are moved to the end of words that start with consonants word beginning with y (skipped)
  * test first letter and ay are moved to the end of words that start with consonants word beginning with x (skipped)
  * test some letter clusters are treated like a single consonant word beginning with ch (skipped)
  * test ay is added to words that start with vowels word beginning with a (2.0ms)

  1) test ay is added to words that start with vowels word beginning with a (PigLatinTest)
     pig_latin_test.exs:13
     Assertion with == failed
     code:  PigLatin.translate("apple") == "appleay"
     left:  nil
     right: "appleay"
     stacktrace:
       pig_latin_test.exs:17: (test)

  * test phrases are translated a whole phrase (skipped)
  * test some letter clusters are treated like a single consonant word beginning with qu (skipped)
  * test some letter clusters are treated like a single consonant word beginning with th (skipped)
  * test some letter clusters are treated like a single vowel word beginning with xr (skipped)
  * test ay is added to words that start with vowels word beginning with o (skipped)
  * test ay is added to words that start with vowels word beginning with e (skipped)
  * test some letter clusters are treated like a single consonant word beginning with thr (skipped)
  * test some letter clusters are treated like a single consonant word beginning with sch (skipped)
  * test first letter and ay are moved to the end of words that start with consonants word beginning with p (skipped)
  * test some letter clusters are treated like a single vowel word beginning with yt (skipped)
  * test some letter clusters are treated like a single consonant word beginning with qu and a preceding consonant (skipped)
  * test ay is added to words that start with vowels word beginning with a vowel and followed by a qu (skipped)

As you can see, confusingly, the output gets mixed up with the output of skipped tests. This is an issue with ExUnit.
Could you please try changing the line at the top of the test file that says:
ExUnit.configure exclude: :pending, trace: true

to
ExUnit.configure exclude: :pending

This cleans up the output a bit. I now get:
Excluding tags: [:pending]

****************
HI I'm up here!!!
****************

  1) test ay is added to words that start with vowels word beginning with a (PigLatinTest)
     pig_latin_test.exs:13
     Assertion with == failed
     code:  PigLatin.translate("apple") == "appleay"
     left:  nil
     right: "appleay"
     stacktrace:
       pig_latin_test.exs:17: (test)

@parkerl Thanks, that was totally the issue. I was outputting things, but they were being appended to other lines without a line break. I must have done the same thing more than a few times too because I was just convinced that my output was being routed to a different stream or something. Janky output is more than enough for what I was looking for.
Removing the trace: true also cleaned that up quite a bit. Thanks you guys so much!


[ZEPPELIN-3773] add check permission on write

What is this PR for?
Sometimes when drawing the result of a paragraph, a call is made commit paragraph. And if the user does not have permission on write paragraph a window appears with a warning.
This PR fix it.
What type of PR is it?
Bug Fix
What is the Jira issue?
ZEPPELIN-3773
Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

It is necessary to refine


General Issue: ADVFQ Research

Background Information
Look through the ADBCVA datasets on ophthalmology studies to which you have access. Please leave comment(s) here detailing ophthalmology-related:
common derivations (that maybe take a lot of repetitive code)
custom macros
common variable derivations
common endpoint derivations
common derived parameters
Aim is to find out what functions/code we can provide in {admiralophtha} to streamline the production of an ADBCVA dataset in R. Then we can make issues for each piece of programming work and start implementing it!
Definition of Done
No response

Adding @ritika-aggarr to gather info about Novartis approach to Ophtha questionnaires.

Assigning subscale categories to parcat2
recoded results based on parameters
deriving subscale scores


S2 updates

Proposed changes
Updating deafrica_datahandling/load_ard and deafrica_bandindices to work with the shiny new S2 data.  Corresponding notebooks have also been updated to reflect the changes.

@NMoghaddam

I've now remapped the B01, B02 etc band names to match their aliases blue, green etc inside the band_indices function.  This should handle the case where a user loads data without specifying measurements.

Your RGB problem has to do with not specifying the bands=[] to RGB when trying to plot

I can't replicate the issue with 'SCL', as the notebook works for me.

I'm getting an error when trying to load SCL through load_ard(... measurements=['red','green','blue', 'SCL']). Not sure why though...

@fangfy this is possibly because load_ard dumps the pixel-quality band by default after its done the masking. I will have a look at this again tomorrow.

@fangfy This issue has been resolved now, turns out there was an errant line near the end of the function that shouldn't have been there  - the 'data bands' were re-assigned by mistake and thus removed any pq bands.

@cbur24 @NMoghaddam the band used are in the script but I think it will indeed be very useful if we can update the notebook with a table, that lists index name, band1 and band2 (with a header explaining index is (band1-band2)/(band1+band2)


Notify robots that goal was scored

Via the message sent by supervisor

@Adman Is there a particular usecase in which this would be valuable? I don't seem to see it and so I am pretty sure I must be missing something :)

In real robocup, the teams mostly turn off their robot/program when the goal is scored in order to reset stuff and run the program from beginning. This might be the case here as well, so teams want to re-initialize some variables and so forth.
Of course it's possible by checking the x,y position of the ball, but it's not a nice way how to do it :)


Trying to run worker rush returns "sc2.protocol.ProtocolError: ['A game has not been started yet']"

Hi,
I'm trying to run the worker rush example and get this error. Happens with all other example bots I try. Happens when I try different maps too.Not sure myself what the error means.
PS C:\Users\Matt\Google Drive\Python\Starcraft 2> python QuilBot.py
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:sc2.controller:Creating new game
INFO:sc2.controller:Map:     FrostLE
INFO:sc2.controller:Players: Bot(Race.Zerg, <main.WorkerRushBot object at 0x000001B4D79AEF98>), Computer(Race.Protoss, Di
fficulty.Medium)
INFO:sc2.protocol:Client status changed to Status.init_game (was Status.launched)
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:root:Player id: 0
INFO:sc2.sc2process:kill_switch: Process cleanup
INFO:sc2.sc2process:Cleaning up...
INFO:sc2.sc2process:Cleanup complete
Traceback (most recent call last):
File "QuilBot.py", line 16, in
], realtime=True)
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 187, in run_game
_host_game(map_settings, players, **kwargs)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py", line 467, in run_until_complete
return future.result()
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 115, in _host_game
result = await _play_game(players[0], client, realtime, portconfig, step_time_limit, game_time_limit)
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 87, in _play_game
result = await _play_game_ai(client, player_id, player.ai, realtime, step_time_limit, game_time_limit)
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 29, in _play_game_ai
game_data = await client.get_game_data()
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\client.py", line 110, in get_game_data
upgrade_id=True
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\protocol.py", line 56, in _execute
raise ProtocolError(f"{response.error}")
sc2.protocol.ProtocolError: ['A game has not been started yet']
Any help appreciated. Thanks.

I Have exactly the same problem. I run the script, starcraft tries to start up for 2s, but crashes every time with every script ive tried.
I tired with spyder(anaconda py.3.6) and just plain py3.6. Neither of them worked.

I too am getting the same issue:
"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe" "D:/AI Project/StarCraft2_bot/scBot.py"
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:sc2.controller:Creating new game
INFO:sc2.controller:Map:     CactusValleyLE
INFO:sc2.controller:Players: Bot(Race.Terran, <main.SC2Bot object at 0x0000020D5D161EB8>), Computer(Race.Terran, Difficulty.Easy)
INFO:sc2.protocol:Client status changed to Status.init_game (was Status.launched)
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:root:Player id: 0
INFO:sc2.sc2process:kill_switch: Process cleanup
INFO:sc2.sc2process:Cleaning up...
 A friend of mine had that too, I suggested him to reinstall to some simple folder path, e.g.
C:\Python36\

and it suddenly worked for him. He also got a long error about Connect call failed.
For him, it might have been either the spaces in the folder name or he installed it somewhere where he didn't have admin rights.

Thanks for the advice. Reinstalled python and tried again but still returns the same error.
PS C:\Users\Matt\Google Drive\Python\Starcraft 2> python QuilBot.py
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:sc2.controller:Creating new game
INFO:sc2.controller:Map:     FrostLE
INFO:sc2.controller:Players: Bot(Race.Zerg, <main.WorkerRushBot object at 0x044FBFB0>), Computer(Race.Protoss, Difficulty
.Medium)
INFO:sc2.protocol:Client status changed to Status.init_game (was Status.launched)
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:root:Player id: 0
INFO:sc2.sc2process:kill_switch: Process cleanup
INFO:sc2.sc2process:Cleaning up...
INFO:sc2.sc2process:Cleanup complete
Traceback (most recent call last):
File "QuilBot.py", line 16, in
], realtime=True)
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 187, in run_game
_host_game(map_settings, players, **kwargs)
File "C:\python36\lib\asyncio\base_events.py", line 468, in run_until_complete
return future.result()
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 115, in _host_game
result = await _play_game(players[0], client, realtime, portconfig, step_time_limit, game_time_limit)
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 87, in _play_game
result = await _play_game_ai(client, player_id, player.ai, realtime, step_time_limit, game_time_limit)
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\main.py", line 29, in _play_game_ai
game_data = await client.get_game_data()
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\client.py", line 110, in get_game_data
upgrade_id=True
File "C:\Users\Matt\AppData\Roaming\Python\Python36\site-packages\sc2\protocol.py", line 56, in _execute
raise ProtocolError(f"{response.error}")
sc2.protocol.ProtocolError: ['A game has not been started yet']

Had the exact same problem, so my solution may help you as well.
The issue that caused this error for me was that the map the bot was trying to load was in fact corrupted, which led to the game instance crashing at startup.
If you had downloaded the map packs from the official API, you have to make sure they were properly extracted - the zip files are password protected. You can find the password under the Downloads section on this page - Blizzard/s2client-proto.
Hope this helps.

Thanks mate. That was exactly the problem for me.

Thanks for bnvl's comment, I solve this problem by correctly typing password while extracting those map zip files (If you don't type password, it'll just let you extract map files, but it mean you didn't accept the protocol). Don't forget the protocol.  - Blizzard/s2client-proto

I don't have anything productive to say but HOW ON EARTH DOES THE MAP JUST CORRUPT.
WE SPENT AN ENTIRE WEEK TRYING TO FIX THIS.
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH


reason on flowtype codebase?

Based on this https://twitter.com/sseraphini/status/1007244891435491328
I think supported new features in Reason would make it easier to contribute to flowtype codebase

Hmm, what would you suggest?

I think @sibelius is talking about converting the flow codebase to reasonml which is designed to make ocaml more approachable for JS devs. Converting the code is actually a one liner using refmt, but I think the blocker is that the Flow team like ocaml syntax and don't feel a need to change.

Oh! Interesting proposal. Unfortunately it'd also mean loosing all the blame history, unmerged PRs, and depending on the Reason.ml team + whatever changes they make. The core flow team are long-time OCaml developers too, so they might probably be skeptic of the change 😅
I'm personally quite a reason fan, but although the learning curve is minimal it's still just gaining traction. Let's see where it goes in the future!