How to use SkypeAuthException for creating Tkinter messagebox.showerror ?

Hello once again :)
I'm trying to create a message box that will display information about the wrong login/password in my Tkinter GUI.
The problem is, I need to manifest this information window only when this particular type of error occurs.
If I understand it correctly the error name is: SkypeAuthException.
Account type
Live (Microsoft) account.
My code posted below is a part of the definition that is linked to the button that allows sending messages in my GUI. The action of the "sending messages" button needs login and pass to skype.
def submit_offers_to_selected_clients():

    """
    Because I need a login and a password to access
    the Skype platform before sending messages to clients,
    I need to confirm that these are proper. If they aren't I need to create
    the error message box
    """
    try:
        tk.messagebox.showerror("We can’t sign you!", "Your login or password is not correct. Try to fix it.")

#    except SkypeApiException:
    except SkypeAuthException:
         tk.messagebox.showerror("We can’t sign you!", "Your login or password is not correct. Try to fix it.")

Problem: When I place proper login and pass and try to send messages(offers) the tk.messagebox.showerror is activated, because another error raised.
This "another error" should be ok ( I have an except module for it and things related to this one needs to stay as they are). Because of that "another error" issue, I've tried to create try except statements to activate tk.messagebox.showerror only when SkypeAuthException appears.  But neither SkypeAuthException nor SkypeApiException seems to work. I assume that tk.messagebox.showerror catch every error (this is at least one problem. I couldn't find any info on how can I set it in such a way so it will react only on one type of error). If I knew how to do this I would. But, I don't know and because of that, I tried to use the try except statements, also, without a success.
If you need more info on why I did some except modules for another exceptions:
I have a list of users in an excel file (two columns: one for username, one for group username).
Sometimes I have a user that is also in some group ( then he is in two columns). But, in many cases, I have just a user login. Then the column of "group username" is empty. Because my code tries to send messages from every cell in every row, when it discovers NaN then it throws an error. Another case is when I have two users from one company, so I place one of them into the first column and another one in to "group username" column. My code handles the situation wherein group chat column there is a need to send a "single message" by sk.contacts[LOGIN].chat, but in this case, also, the error is raised ( because it can't send the message via sk.chats.

I'm not really clear on how the problem relates to SkPy -- based on this:

the tk.messagebox.showerror is activated, because another error raised.

...you're saying your code is throwing a non-SkPy error?  You haven't provided any details on what this error is, but ultimately this seems like a question on how to handle errors in Tkinter, which doesn't belong here.  Consider asking a more general Python community for help, such as /r/LearnPython or Python Discord.

ok. maybe I will ask in another way:
Let's suppose that I've written bad login or pass to skype and the console gave me this output:
    raise SkypeApiException(errMsg, resp)
skpy.core.SkypeApiException: ("That Microsoft account doesn't exist. Enter a different account or get a new one.", <Response [200]>)

Now I want to use this error. If I need to use try...except statement with this error posted above, what should I write?
When I write:
    try:
        #something
    except skpy.core.SkypeApiException:
         tk.messagebox.showerror("We can’t sign you!", "Your login or password is not correct. Try to fix it.")

... I get information that the skpy is not defined. When I write except core.SkypeApiException, then core is seen as a name not defined. When I write except SkypeApiException, then SkypeApiException is not defined. So what should I write to be able to use this error in try...except statement?


Set default idle timeouts on the session and transaction to prevent idle connection accumulation

What does this PR do?
Sets reasonable idle connection and transaction timeouts for connections coming from the Agent. The Agent uses connection pooling and long-lived connections to ensure that it has visibility when incidents happen and it's unable to establish new connections to the database. The problem comes in when customers have many databases because Postgres requires a one-to-one connection to a database. These conservative timeouts should prevent super long lived idle connections on seldom used databases while still maintaining connections that are actually used with some frequency.
Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

idle_session_timeout is only supported on PG14 and above, we will likely need to implement this functionality client-side.

Closing this PR since it's still a draft, feel free to re-open it if needed 🙂


Resolved dark-mode persist issue

Hey @sk66641 ,
issue closes #223
I have resolved the issue to persist the dark mode preference across page refreshes using localStorage.
The changes ensure that the user's selected mode (dark or light) is maintained even after the page is refreshed.
Changes made are as follows :
Added functionality to check "localStorage" for the user's dark mode preference upon page load and set the initial state accordingly.
Updated the event listener for the toggle switch to save the dark mode preference in localStorage whenever the user changes the mode.
Now, Whenever user will refresh or log in the page again, The selected mode preference will be the same as chosen.
Please take a look and review it.
Also, please add the labels.

you make it good kindly provide me sourcecode

@Tejashri-Taral
There is an issue like, while opening it for the first-time, it comes with lightMode and we need to toggle the theme button twice to switch to darkMode. I have attached a video for the reference, focus on the theme button.
https://github.com/sk66641/Random-Disco-Light-Simulator/assets/145834771/8bd4a7f6-5096-4d3a-a8cf-d28464f5157c

@sk66641 , I will work on that. Thanks for clarifying.

Hey @sk66641 ,
issue closes #235
I have resolved the issue to persist the dark mode preference across page refreshes using localStorage.
The changes ensure that the user's selected mode (dark or light) is maintained even after the page is refreshed.
Please take a look and review it.

@Tejashri-Taral
Nice


Solar Panels Energy Meter

I'me using one channel of Shelly EM to measure the production of a solar panel system.
But i'm getting the following error:
[10/30/2021, 4:53:34 PM] [homebridge-3em-energy-meter] This plugin generated a warning from the characteristic 'Consumption': characteristic was supplied illegal value: number -34.14 exceeded minimum of 0. See https://git.io/JtMGR for more info.
It makes sense that eve app needs to have positive values, any change that you include in a config like a solar panel flag that transforms the value in positive? so it can show in the app?

I can set all output to absolute values, so that the error goes away.
However, there will be no indication in Homekit if the shown value is positive or negative (i could note in the logs).
If you want this it's not too difficult to do and I can implement it within next week,

Version V1.1.2 does return only absolute values, so no errors anymore. Please test.

I'm running it since yesterday, and its stable, and the values are correct.
Thanks very much for the addition, i can now have all the information about consumption :)


Teleport delay on finish course

Done a bit of testing on this....the 'delay' itself works fine, the problem is that during the 'delay' the player can/will move across the finish block(s), so the 'onPlayerMove' listener is triggering multiple playerFinish events.  This causes multiple 'player finshed course' messages to appear and the prize (e.g.1 diamond) is  given to the player multiple times.

My apologies I didn't test this scenario, quick fix just needed to remove the player from the playing list.
Fixed. Thanks again! :)


"You are now leaving Find MoJ data" transitionary page

User story
As a user I want to be notified when I am leaving Find MoJ data to another gov.uk design pattern styled website.
Context
Other govuk services we link to eg data.gov.uk have very similar styling. This makes it hard for the user to notice that they have left the service.
Ideas
Make a transitionary page which informs users they are leaving FMD

check for moj design system component

This design as is with an auto redirect is bad for accessibility. I have reached out to the design slack channel in gov digital slack
https://ukgovernmentdigital.slack.com/archives/C062GAGLW/p1733825790263679
If we want to keep it we likely need to add a second click rather than automatically redirect

Comments and recommendation left in PR conversation.
TL:DR – don't implement a transitionary page for external links and monitor the issue in future UR sessions.

Comments and recommendation left in PR conversation.
TL:DR – don't implement a transitionary page for external links and monitor the issue in future UR sessions.
What are your thoughts @LavMatt? I think you came to same reasoning last time we discussed in on stand-up?

Yeah totally agree with your comments Joe. If it continues to be a problem arise in future UR, we should explore solutions other than creating a transitionary page around design and stronger brand identity within our service.
I shall close the PR


Zunimassa DR

Hi!
I tried to compare Zuni and HT with PTR version and noticed that damage reduction of Zuni 4pc is calculated with 2% per fetish in the Defence section.
Item Effects (middle)
...
Zunimassa's Haunt – 4 pieces
Include in stats
Damage Reduction: 69%
Defense (right)
Armor8,949
...
Damage Reduction 46.00%.
Same trouble is on live version too.

Fixed.


simple examples

I am a little confused by the examples. Is there a simple analogue to the Makefile
foo: bar
baz
That is, I have a file named bar which can be consumed by a shell command baz to generate another file foo.
I think the very simplest hello world example assumes that what I'm doing is compiling a c or c++ file, and the next simplest , the generator example, uses the DefRule mechanism, which, if I understand correctly, is a "EZ" layer over the unit script mechanism to extend the language - something analogous to a Makefile pattern rule like this:
%.tab.c %.tab.h: %.y
bison -d $<
Is there an example of merely declaring a single DAG node?

Are you looking for custom actions, if you could take a look at the simple generator example:
https://github.com/deplinenoise/tundra/tree/master/examples/generator-simple
It uses the DefRule to make a node. This node can then be passed as an input to a unit.
The resource compiler is also a nice little hook that uses the register_impicit_make_fn function to do actions based on file extensions.
https://github.com/deplinenoise/tundra/blob/master/scripts/tundra/tools/win32-rc.lua
If you want to have more control you can write entirely custom units. You can take a look at some of these scripts for inspiration but it's not very often you need to go there. The .NET tool chain syntax support can be found here:
https://github.com/deplinenoise/tundra/blob/2fdc03128da946f975a175b4f6e58cff25b46d6b/scripts/tundra/syntax/dotnet.lua
I think it's a good example because it's limited to just a few actions.

Thanks!
I suppose what I'm asking is: What is the most direct correspondence to the makefile syntax 'foo: bar\n\tbaz'? Is it DefRule, or is it more like make_node{InputFiles={'bar'}, OutputFiles={'foo'}, Action={'baz'}}?

I'm not particular good at Makefiles so I can't swear that this is right but I'm guessing it's something like this...
Program {
  Name = "target",
  Depends = {
    --dependencies goes here
    ...
  },
}

The action in this case (or system command) is defined elsewhere.
What DefRule allows you to do is that it allows you to create a new unit Program is a unit. Which does something else, for example, invoke a system command.
@deplinenoise made a presentation about Tundra 1.0 at Revision 2011 (https://files.scene.org/view/parties/2011/revision11/misc/seminars/rev11_dep_the_tundra_build_system_sat_h264.mp4), it explains some internal stuff that I think is relevant to a large degree today still. I don't think that you should get at the DAG right away, it really only necessary for writing new and custom units.

Closing as I don't think there's any real issue here.


Throw type error while working with reflect-metadata.

Bug Report
🔎 Search Terms
metadata, decorator, reflect-metadata
🕗 Version & Regression Information
Import reflect-metadata.
Decorate a class by a function returns an object.
TS allows decorator returns any value. When Reflect.decorate defined by reflect-metadata, TS will use this function to define metadata instead of TS implements. Reflect.decorate couldn't process un-class return value returned by a class decorator.
⏯ Playground Link
💻 Code
import 'reflect-metadata'

function Deco(){
  return {}
}

@Deco()
class Foo{}

🙁 Actual behavior
Throw type error by reflect-metadata.
🙂 Expected behavior
No error thrown and class decorated correctly.
https://github.com/rbuckton/reflect-metadata/issues/139

According to decorator stage 3, class decorator must return a class constructor.

Class decorators receive the class that is being decorated as the first parameter, and may optionally return a new class to replace it. If a non-constructable value is returned, then an error is thrown.

Is there any plan for decorator api in the future?

TS allows decorator returns any value.

Class decorators should return either a function or void/undefined. Returning an object isn't supported and results in compiler errors:

The TypeScript __decorate helper avoids some runtime checks that the compiler detects at build time as errors to reduce the size of the helper. The Reflect.decorate helper in reflect-metadata does not avoid those runtime checks.


Fix StrictMode warnings

Description
When wrapping the app with <StrictMode>, there are warnings coming from internal react native components. They need to be updated to stop using the legacy context api and unsafe methods like  UNSAFE_componentWillReceiveProps.
Also, I believe this is a prerequisite for Concurrent Mode support.

Environment
Environment
React Native Environment Info:
System:
OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
Memory: 33.30 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.4 - /usr/local/bin/node
Yarn: 1.10.1 - ~/.yarn/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
Build Tools: 23.0.1, 23.0.3, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.2, 28.0.3
API Levels: 19, 22, 23, 24, 25, 26, 27, 28
IDEs:
Android Studio: 3.2 AI-181.55<IP_ADDRESS>14246
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmGlobalPackages:
react-native-cli: 2.0.1

Will be working on this over the weekend.

Opened two PRs for ScrollView and AnimatedComponents/Touchables:

https://github.com/facebook/react-native/pull/24214
https://github.com/facebook/react-native/pull/24218

@Jyrno42 I see this is marked as help wanted. A few friends and I, Computer Science students, would love to help with this issue. Please let us know!

@ConnorSBrady Feel free to grab the ScrollView/VirtualizedList - I am currently only working on createAnimatedComponent.

This is still valid, at least those 2 internal components are using unsafe hooks:

AnimatedComponent
ScrollViewStickyHeader

It looks like ScrollViewStickyHeader was converted to a function component at some point, but this has been reverted and I am not sure why.

Found another one:

findHostInstance_DEPRECATED was passed an instance of TouchableNativeFeedback

Indeeded findHostInstance_DEPRECATED is imported and used in TouchableNativeFeedback.js

AnimatedComponent and ScrollViewStickyHeader are now StrictMode compatible.
AnimatedComponent resolved by https://github.com/facebook/react-native/commit/5e863fc42c8a2b27f4a785766eb643de9a243b2d
ScrollViewStickyHeader resolved by https://github.com/facebook/react-native/commit/925e81ab86c9807b66d405d914e857b978b194fd

@sammy-SC I am still getting warnings while using animated component in my react-native app while in StrictMode
react-native: 0.70.7
react: 18.1.0


mod mechanics question

is it possible to create and should we expect additions to the mod in the form of searching for objects in all chests and highlighting the chest where the thing is located - like in a search chest

I don't plan on adding a feature to automatically locate chests, but you can expect other additions like searching for potion effects or enchantments.


Errors in original sentences :correct

sent_id = reviews-257296-0002 "superintendant" :correct "superintendent"
sent_id = answers-20111108105400AASqPIh_ans-0007 "performance" :correct "perform"
sent_id = reviews-106150-000 "and looks" :correct "and he looks"
sent_id = reviews-275919-0010 missing period before"How". Should be two sentences.
sent_id = reviews-275919-0010 missing "fast your" :correct "fast do your"
sent_id = email-enronsent13_01-0092 "and the Para. 13" :correct "and Para. 13"

So trying to correct grammatical errors gets dicey as there are often subjective calls and multiple ways to fix the problem. So far we've corrected misspellings and added a missing grammatical word that was necessary for the whole structure to work (missing 2nd "as" in comparative).
I suppose we could do a few more listed here, but I just want to point out that it can be a can of worms.

sent_id = reviews-257296-0002 "superintendant" :correct "superintendent"

already has :correct in the data

sent_id = reviews-275919-0010 missing period before"How". Should be two sentences.

fixed in 39fc24e

sent_id = answers-20111108105400AASqPIh_ans-0007 "performance" :correct "perform"

If we're correcting grammatical forms of words then "hospital" in this sentence should be "hospitals" as well right?

Yes, I missed hospital. I understand it's a can of worms, and I'm happy to recant.

If correcting

How fast your support queries get answered ?

should we also correct

Billing takes 15 minutes and backoffice jobs takes 1 day's training

? They're consecutive sentences from the same document, so possibly the same author, though we can't be sure.

Yes


Add arguments while opening inventory

Hi. Is possible to add args while opening inventory? If not, can be this feature added? Thanks.

Hi, you can achieve this by adding fields to your InventoryProvider and passing them in the constructor, for example:
public static SmartInventory getInventory(Player player) {
        return SmartInventory.builder()
                .provider(new MyProvider(player)) // Here MyProvider will store the Player as a field, so you can use it inside the init/update methods.
                .size(3, 9)
                .title("Inventory of " + player.getName())
                .build();
}


Create ServiceManager Class

Create the ServiceManager Class that has the following functionality: …
*Start/Stop/Restart a Service
*Enable/Disable a Service
*Get the List of services
*Get a specific service token
Pull in two functions from pcbsd-utils into sysadm-general:
*GetConfFileValue
*SetConfFileValue
which are used to modify /etc/rc.conf
Switch sysadm-firewall over to using ServiceManager

You appear to have conflicts with the master branch right now.
Please update your branch with "git pull", resolve any conflicts, and update the pull request.


popup: EntryList empty state

The EntryList component should show an empty state when there are no rows.

Would you like to have something like this?

Yep! The favorites page should have its own as well. And the message should be different depending on if it's empty due to searching or because there are actually zero items.

Yeah! My discord username is tph.
And what I mean in my previous comment is the message should be something like "no items found" if it's empty due to a search.


Set the current timestamp with attribute!

This allows setting the attribute to the current timestamp using a
shorter syntax, which could make a snippet such as this possible:
current_user.posts.each(&:delete!)

Rather than writing out the full form:
current_user.posts.each { |post| post.delete = true }

Ping @calebthompson. Any thoughts on this?


rss-bridge: add config option

Description of changes

This allows managing rss-bridge's config with nix. Config options are listed at
https://rss-bridge.github.io/rss-bridge/For_Hosts/Custom_Configuration.html
This change should be backwards compatible, only setting the /var/lib/rss-bridge/config.ini.php symlink if actually using the new config option (similar to the whitelist option).
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] 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

[ ] 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/)
23.05 Release Notes (or backporting 22.11 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

[x] Fits CONTRIBUTING.md.

(first contribution, open for improvements)

Having the config file in /etc would be nice, but i don't see it as necessary, I'd rather have this merged soon, since the current way of whitelisting doesn't work anymore.


Add UITKforKSP2 depends for SpaceWarp

Unfortunately since their capitalization is weird, this warning will never go away...

Unfortunately since their capitalization is weird, this warning will never go away...

What does that mean exactly?

Unfortunately since their capitalization is weird, this warning will never go away...

What does that mean exactly?

UITKforKSP2 (the identifier in CKAN) and UitkForKsp2 are not the same string.


Devise Gem for Authentification?

Hi, I'm curious why you did not use devise gem to handle authentication?

I haven't figured it out yet to make it work with my current setup. Devise defaults require 1 unique identifier only. I need two of those.
These are the fields I need to authenticate a user:

Account ID - A unique identifier of each account.
Email - A unique identifier of each user in an account.
Password

This setup enables an email address to be linked on multiple accounts with different credentials


CentOS 9 support

Changes required to work on a fresh CentOS 9 system. I'm guessing similar changes may be necessary for version 9 of other RedHat-like releases (RHEL, Alma, Rocky), but I've not checked those systems.

Thank you, Matthew.


Navigate by Index

any way to select image by its index id ? or know which image index is displayed
some thing like this
updateCallback: (index) {
        setState(() {
          _selectedImgIndex = index;
        });
      },

thanks @TuanAnhNguyen69


Fire effect doesnt work?

Hi i just noticed th at fire effect doesnt work..i mean the led lights up but its only white color plain. No red or any other color with effect
Anyone else having same issue with fire effect?

The fire is a yellow-like color for me. It could do with adding a bit of variance with more reds and oranges etc. I will try to edit the code and see if I can get this to work for me, then send a pull request

Yes.  But mine just lights up once and then stays out.  It's like it "starts" but never continues.


fix(ui): Redirect landing page buttons to new UI

Description
Clicking on these landing page buttons will open up the current UI rather than our rebuilt components; this PR amends that behaviour
In the future, we'll seek to re-add these components, but it makes more sense to keep within our own flow for now

Checklist

[ ] npm test runs as expected.
[ ] npm run build runs as expected.
[ ] (If applicable) JSDoc comments have been added or updated for any package exports
[ ] (If applicable) Documentation has been updated

Type of change

[x] 🐛 Bug fix
[ ] 🌟 New feature
[ ] 🔨 Breaking change
[ ] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

Fixing here instead:
https://clerkinc.slack.com/archives/C076A87HCM6/p1721136457685309?thread_ts=1721135307.131459&cid=C076A87HCM6


Multiple Model Endpoint support

Feature request
Hello, My question is that if/how we support multiple models selection by a single api endpoint. For example, I have gte, bge etc. and I can deploy them together with the same url and switch easily among these model?
Motivation
support multiple models
Your contribution
Something like the fastchat controller register

I don't think that's something we want to do in this repo:

If you have enough requests per second, you will saturate the GPU with one model. Adding other models on the same GPU will only slow things down
It is already easy to launch multiple processes of TEI on the same GPU and add a routing layer on top of it

For example:
volume=$PWD/data

# Create a network that the containers will share
docker network create tei-net

# Start 2 models on the same GPU in detach mode

docker run --gpus '"device=0"' --net tei-net --name tei-uae -v $volume:/data --pull always --rm -d ghcr.io/huggingface/text-embeddings-inference:1.2 --model-id WhereIsAI/UAE-Large-V1
docker run --gpus '"device=0"' --net tei-net --name tei-mxbai -v $volume:/data --pull always --rm -d ghcr.io/huggingface/text-embeddings-inference:1.2 --model-id mixedbread-ai/mxbai-embed-large-v1

# Create nginx.conf file

tee -a nginx.conf <<EOF
upstream uae {
    server tei-uae;
}

upstream mxbai {
    server tei-mxbai;
}

server {
    location /uae {
        proxy_pass http://tei-uae/;
    }
    location /mxbai {
        proxy_pass http://tei-mxbai/;
    }
}
EOF

# Start nginx container
docker run -v $PWD/nginx.conf:/etc/nginx/conf.d/default.conf:ro  -p 8080:80 --net tei-net nginx

# Curl first model
curl <IP_ADDRESS>:8080/uae     -X POST     -d '{"inputs":"What is Deep Learning?"}'     -H 'Content-Type: application/json'

# Curl second model
curl <IP_ADDRESS>:8080/mxbai     -X POST     -d '{"inputs":"What is Deep Learning?"}'     -H 'Content-Type: application/json'

Without being able to load multiple models in a single instance, TEI cannot be used as an OpenAI compatible embedding server.


Unresolved imports in Counter example

Hello, I been encountering some strange issues with floem, to be specific floem::IntoView and floem:::views::ButtonClass do not seem to exist. To be honest, I feel like I am literally the only one with this issue, because if I look at all the countless examples, it seems not logical to me why it does not work for me.
I got it to compile one time successfully but after that the issues occurred I described.
I can not guarantee that the steps to reproduce will work on your system.

add floem with the version 0.1.1 to your cargo.toml
build the project
watch the error happening.

here are some screenshots of proof.

so if you are working with this crate and experience similar issues, I would kindly ask you to write it down in the comments I can't be the only one :c
anyway, if thats useful, here are my specs

Ryzen 5 4500
Rx 5700xt
Asus rog strix b550-a
32 gb | 3200mhz | Corsair vengeance rgb
OS: macOS Monterey (12.7.4)

You used examples from main which is untagged floem and added floem in version 0.1.1. You should be using examples from that version if you want it to work.

Ohh, my bad I didn't even realize, thank you so much 😭


A way to add suggestions to the existing list of vanilla suggestions

Please describe your suggestion
In addition to "overrideSuggestions", it might be useful to have something like .addSuggestions() or something, that adds your suggestions to the list of existing suggestions that are typically provided by vanilla.

Implemented in 2be9fec6dc6d99956edb63f487bceb697c509369 for version 6.0.0.


issue with GCP HPA

Hi
We have the following metric query:
avg:gcp.pubsub.subscription.num_undelivered_messages{project_id:HIDDEN,subscription_id:HIDDEN}.rollup(30)
Working fine in datadog (notebook here):

however, we keep getting errors on our HPA:
unable to get external metric default/datadogmetric@default:bt-olympus-inventory-svc-num-undelivered-messages/nil: unable to fetch metrics from external metrics API: Internal error occurred: DatadogMetric is invalid, err: Outdated result from backend, query: avg:gcp.pubsub.subscription.num_undelivered_messages{project_id:oHIDDEN,subscription_id:HIDDENt}.rollup(30)
our datadog metric:
kind: DatadogMetric
metadata:
  name: $CIRCLE_PROJECT_REPONAME-num-undelivered-messages
  namespace: $CLUSTER_NAMESPACE
spec:
  query: avg:gcp.pubsub.subscription.num_undelivered_messages{project_id:HIDDEN,subscription_id:HIDDEN}.rollup(30)

and our HPA:
kind: HorizontalPodAutoscaler
metadata:
  name: $CIRCLE_PROJECT_REPONAME
  namespace: $CLUSTER_NAMESPACE
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: $CIRCLE_PROJECT_REPONAME
  minReplicas: 2
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 70
  - type: External
    external:
      metric:
        name: datadogmetric@$CLUSTER_NAMESPACE:$CIRCLE_PROJECT_REPONAME-num-undelivered-messages
      target:
        type: AverageValue
        averageValue: 10

What we are trying to do is get the current average undelivered messages (averaged by number of pods) and then scale if we go above a given threshold.
Any help is appreciated. :-)

okay so it seems like it's actually a correct query, but it's only valid while there is messages in the subscription.
Is there a way to make it return "0" if the query is not returning anything, so the HPA is always valid?

Hey @marklonquist,
The issue is probably because the metrics you're using is coming from GCP Crawlers. You'll need to extend the max age to match this. Change the external_metrics_provider.max_age variable to 600 (default value is 120, in seconds).


approx_percentile_cont panics because array is not ordered

Describe the bug
approx_quantile_cont panics, complaining that the input to TDigest is not ordered:
panicked at 'unsorted input to TDigest'
I have done some digging to understand what happens and it seams to have something to do with a corruption of indexes whithin the arrow Array.
I added a simple check to see if the array is ordered, and if not to print it in the update_batch function
    fn update_batch(&mut self, values: &[ArrayRef]) -> Result<()> {
        let values = &values[0];
        let v = downcast_value!(values, Int64Array);
        let sorted_values = &arrow::compute::sort(values, None)?;
        let a_down = downcast_value!(sorted_values, Int64Array);

        let mut is_sorted = true;
        for i in 0..sorted_values.len() -1 {
            if a_down.value(i) > a_down.value(i+1) {
                is_sorted = false;
                break;
            }
        }
        if !is_sorted {
           for i in 0..sorted_values.len() {
            println!("s: {}, b: {}", a_down.value(i), v.value(i));
        }
        }
        let sorted_values =
            ApproxPercentileAccumulator::convert_to_ordered_float(sorted_values)?;
        self.digest = self.digest.merge_sorted_f64(&sorted_values);
        Ok(())
    }

The output is surprising, we see that in seemingly every case, the first value of the sorted array "s" should be at the end of the array.
For intance on this array :

The weird thing is that if I recreate the array, the sort works properly and the panic goes away.
    fn update_batch(&mut self, values: &[ArrayRef]) -> Result<()> {
        let values = &values[0];
        # If I just recreate the array before the sorting, the problem goes away
        let v = downcast_value!(values, Int64Array);
        let values: Int64Array = v.iter().map(|d| d.clone()).collect();
        let values = Arc::new(values) as ArrayRef;
        let values = &values;
        let sorted_values =
            ApproxPercentileAccumulator::convert_to_ordered_float(sorted_values)?;
        self.digest = self.digest.merge_sorted_f64(&sorted_values);
        Ok(())
}

This makes me think that their may be some kind of index corruption within the array buffer.
I had this bug while performing an approx_percentile_cont on a GROUP BY, whithout the GROUP BY it works fine.
To Reproduce
Steps to reproduce:

Download the parquet file: percentile_cont_bug.zip

Execute this function

fn percentile_cont_bug() ->Result<(), ()>{
    let ctx = SessionContext::new();
    let pq_path = "...path to the provided parquet file";
    ctx.register_parquet("example", pq_path, ParquetReadOptions::default())
        .await
        .map_err(|e|())?;

    let q = format!("
        SELECT
            country,
            approx_median(age) as median_age,
        FROM example
        group by
            country
    ");
    let df = ctx.sql(&q).await
    .map_err(|e| println!("err: {:?}", e))?;
    // execute and print results
    df.show().await;
    Ok(())
}

Additional context
datafusion version: 14.0.0
arrow version: 26.0
platform: WSL (ubuntu)

Also, I only have this issue if I use approx_percentile_cont on an INT64 column

Thank you @the-mousaillon for reporting the bug. We will debug it carefully.
Also, welcome to contribute your fix to Datafusion!

I can reproduce the bug printed here.

cc @tustvold, could you please take a look?

I can add it to my list, although I'm not familiar with the code in question. Perhaps @domodwyer or @crepererum may have some ideas

I've tested again and @tustvold I guess you are right.

Yeah I don't remember doing anything with NULL masks when I wrote this.

Hi @domodwyer, could you please to fix this?

BTW, the estimate quantile algorithm doesn't follow the paper, any reason for this?
https://github.com/apache/arrow-datafusion/blob/df8aa7a2e2a6f54acfbfed336b84144256fb7ff8/datafusion/physical-expr/src/aggregate/tdigest.rs#L523-L524

Hi @HaoYang670,
I do not have time to fix this in the short term as I am working on a project. I can take a look in a few weeks - feel free to fix this yourself if you need it sooner :+1:


If Chocolatey has just been installed yet its env variable is missing…

…, force refresh PS and chocolatey environments.
This relates to an unusual problem @gaelcolas and I were discussing in January. When FIPS encryption must be set (as it will for US government installations) for Chocolatey to work, after FIPS is successfully set, and chocolatey packages are successfully pushed, a subsequent DSC push without an intervening refreshenv or reboot will fail.
But a refreshenv, with a refresh of the chocolateyprofile fixes that. @gaelcolas thought it would be bad (I agree) to call refreshEnv every time any chocolatey resource was called. I eventually narrowed down where the problem was occurring, and made a test that will only trigger the refreshenv when the DSC push is about fail for want of the refreshenv. Therefore, it doesn't waste time on unneeded refreshenv's.
Note: I added a Write-Verbose right before my code to announce what was happening. If that is too "chatty", it can certainly be removed.

Gael,
Is there now a 0.0.80 version out … somewhere? I naively tried “Install-Module Chocolatey” on a fresh server, and still get 0.0.79, dated March 3.
Kevin Weinrich
Vision Technologies Inc.
Contractor to ORD
Automation and Scripting Engineer
706-255-2973
From: Gael @.>
Sent: Friday, April 2, 2021 9:37 AM
To: chocolatey-community/Chocolatey @.>
Cc: Weinrich, Kevin @.>; Author @.>
Subject: Re: [chocolatey-community/Chocolatey] If Chocolatey has just been installed yet its env variable is missing… (#43)
@gaelcolas approved this pull request.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fchocolatey-community%2FChocolatey%2Fpull%2F43%23pullrequestreview-626987309&data=04|01|Weinrich.Kevin%40epa.gov|b04adc37837a442e66b708d8f5dc94d2|88b378b367484867acf976aacbeca6a7|0|0|637529677890220335|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=HeMJJGfgF%2FxZLOK6IEU15fLqGD9aSyzkIoOH%2BDqVN7k%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABACT25AXCBRGTO4HRMMNS3TGXCBFANCNFSM4ZNAXQ5A&data=04|01|Weinrich.Kevin%40epa.gov|b04adc37837a442e66b708d8f5dc94d2|88b378b367484867acf976aacbeca6a7|0|0|637529677890230290|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=J7kl7eMVjZgp8RCj94BxNijCX1qKaOjOgilAlQZlx2Y%3D&reserved=0.


[DRAFT][example] Switching to main branch name

This is an example of what we would need to do in order to switch to using the main branch name.

I think it's an important clarification that this will not fully switch things over -- this is what's needed to add main as a valid name and to make HEAD point at main. We will (essentially forever) need to maintain a master branch in parallel.

Closing as "not useful anymore"


DoomFist Visual Bug: The Slam Damage Counter Colour - Useless Fix

Created by: DpsDoomMain
• Currently the slam damage counter’s numbers are solely white.
• Previously the slam damage counter’s numbers would be the same as the reticle colour.

moved from ow1_emulator_backup#493


Running the quickstart guide

Per your recommendation, i followed the quick start guide to run the "heartbeat" example.
Initially,  got the following error after executing "python heartbeat.py" in python virtual environment.
"ERROR   | job0    | syn          | 0   | File ../third_party/pdks/virtual/freepdk45/libs/nangate45/r1p0/lib/NangateOpenCellLibrary_typical.lib was not found"
It looked like the "third_party" directory was missing in the "venv/lib/python3.6/site-packages" folder.  Then, i copied the "third_party" directory over the ./site-packages" folder to keep things running (this was not part of the guide).
After running syn, floorplan, placement and cts steps, the execution stopped after giving out the following error
"[ERROR STA-0406] global_route positional arguments not supported. Error: sc_route.tcl, 36 STA-0406"
Am I missing something in the guide?

For the first problem, that's a good workaround! The intended solution is to clone the repo and then create an environment variable SCPATH that points to <path-to-repo>/siliconcompiler. Sorry this wasn't stated in the documentation, I'll add it and leave this issue open till then.
For the second problem, I imagine it's an OpenROAD version issue. Which one do you have installed? (openroad -version)

Thanks!!  The openroad version that I have is "v2.0-1644-g438dbb4".

From: Noah Moroze @.>
Sent: Friday, May 20, 2022 3:49 PM
To: siliconcompiler/siliconcompiler @.>
Cc: Nigussie, Theodros B CIV USARMY DEVCOM ARL (USA) @.>; Author @.>
Subject: [URL Verdict: Neutral][Non-DoD Source] Re: [siliconcompiler/siliconcompiler] Running the quickstart guide (Issue #1022)
All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.

For the first problem, that's a good workaround! The intended solution is to clone the repo and then create an environment variable SCPATH that points to /siliconcompiler. Sorry this wasn't stated in the documentation, I'll add it and leave this issue open till then.
For the second problem, I imagine it's an OpenROAD version issue. Which one do you have installed? (openroad -version)
—
Reply to this email directly, view it on GitHub < Caution-https://github.com/siliconcompiler/siliconcompiler/issues/1022#issuecomment-1133272864 > , or unsubscribe < Caution-https://github.com/notifications/unsubscribe-auth/AZFXTR2OPNPIX5QJCF6UDKLVK7UDPANCNFSM5WF6TA2A > .
You are receiving this because you authored the thread.Message ID: @.***>

Yep, that's it! The minimum version our scripts support is v2.0-3394-gd19162e82, so you'll need to upgrade.
By the way, I'd also recommend upgrading to the most recent version of SC (which we just published), since it's been a while since we've made a public release and there have been many changes since (including automated version checking!)
pip install --upgrade siliconcompiler

great thanks!

From: Noah Moroze @.>
Sent: Friday, May 20, 2022 4:39 PM
To: siliconcompiler/siliconcompiler @.>
Cc: Nigussie, Theodros B CIV USARMY DEVCOM ARL (USA) @.>; Author @.>
Subject: [URL Verdict: Neutral][Non-DoD Source] Re: [siliconcompiler/siliconcompiler] Running the quickstart guide (Issue #1022)
All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.

Yep, that's it! The minimum version our scripts support is v2.0-3394-gd19162e82 < d19162e829fdc1f683870ee4057cea9046fb8aae > , so you'll need to upgrade.
By the way, I'd also recommend upgrading to the most recent version of SC (which we just published), since it's been a while since we've made a public release and there have been many changes since (including automated version checking!)
pip install --upgrade siliconcompiler
—
Reply to this email directly, view it on GitHub < Caution-https://github.com/siliconcompiler/siliconcompiler/issues/1022#issuecomment-1133346461 > , or unsubscribe < Caution-https://github.com/notifications/unsubscribe-auth/AZFXTR7OKJ4W3M5WNBPCP6TVK7Z6LANCNFSM5WF6TA2A > .
You are receiving this because you authored the thread.Message ID: @.***>

Docs issue updated in #1037. Feel free to open an issue if any other trouble arises!


Add rhel7

jenkins test this please

Merging this as is since the CI failure is related to another PR. We are currently looking into this. It should be fixed in https://github.com/ceph/ceph-ansible/pull/1430


"scripts\npm.bat install" fails to install v8-profiler

Trying to build and run vscode using the steps defined here
It fails with the error:
npm

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

npm ERR!      C:\Users\Admin\.npm-electron\_logs\2017-06-01T15_28_09_719Z-debug.log

Attached the log file
2017-06-01T15_28_09_719Z-debug.log.txt

@hun1ahpu May I know on which platform are you trying to build ?

It's on Windows 10.
Here is some addition info from the log:

gyp ERR! System Windows_NT 10.0.16200
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.6.1

I cannot reproduce on my Windows 10.
@hun1ahpu what node and npm version?

<EMAIL_ADDRESS><EMAIL_ADDRESS>

@hun1ahpu does it repro with npm 4?

upgraded to<EMAIL_ADDRESS>and it works! Thanks.

@bpasero actually it seemed like it worked with 5.0.2 but then it was missing some modules when running scripts\code.bat.
Downgrading to npm v4.6.1 resolved any issues.
Do you think it's worth adding a warning to https://github.com/Microsoft/vscode/wiki/How-to-Contribute ?

@hun1ahpu I think if it works with latest NPM now, we are good.

@bpasero It actually didn't work for me with the latest npm. Compilation worked fine but then code.bat failed with some missing modules.

@hun1ahpu I cannot reproduce with npm 5.0.3 and node 6.9.4 on Windows 10. Just tried.

same here. cannot repro it anymore even with 5.0.2
you can close the bug i guess.


Building in Ubuntu 16.04 + Nvidia OpenGL

I have tried compiling LightGBM for several times and failed. The error message is the following:
[ 91%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/voting_parallel_tree_learner.cpp.o
[ 92%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/data_parallel_tree_learner.cpp.o
CMakeFiles/lightgbm.dir/src/treelearner/gpu_tree_learner.cpp.o: In function `LightGBM::GPUTreeLearner::InitGPU(int, int)':
gpu_tree_learner.cpp:(.text+0x834e): undefined reference to `clCreateCommandQueueWithProperties'
CMakeFiles/lightgbm.dir/src/treelearner/gpu_tree_learner.cpp.o: In function `boost::compute::detail::meta_kernel::compile(boost::compute::context const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
gpu_tree_learner.cpp:(.text._ZN5boost7compute6detail11meta_kernel7compileERKNS0_7contextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN5boost7compute6detail11meta_kernel7compileERKNS0_7contextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3b7): undefined reference to `clSetKernelArgSVMPointer'
collect2: error: ld returned 1 exit status
CMakeFiles/lightgbm.dir/build.make:773: recipe for target '../lightgbm' failed
make[2]: *** [../lightgbm] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/lightgbm.dir/all' failed
make[1]: *** [CMakeFiles/lightgbm.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

ping @huanzhang12
it seems you are missing OpenCL

@gimaik , could you please check the library that you are linking? it is probably that you building and linking to the different version of openGL

Either OpenCL is missing or you are linking to the wrong OpenCL (you might have multiple OpenCL files, make sure to define the correct one in cmake parameters).


Question: will go2hx support *.d.ts?

question: will go2hx support *.d.ts? or support haxe extern?
that's may be fun if go2hx support *.d.ts to compile js.

Hey @sonygod go2hx will not support *.d.ts , I want to improve *.d.ts support for Haxe and I will do that through contributing to dts2hx.
As for Haxe externs go2hx could support generating Go externs to link to Haxe as well as Haxe code.
It should be possible to use both dts2hx and go2hx on the javascript target once it has more testing.
If I'm missing anything from the question let me know.

thank you for your reply .no more questions are current.


Is the content library tool capable of cleaning up, if the content library is spanned across multiple drives.

[Enter feedback here]
SCCM Version 1710.
We get this error "System.IO.DirectoryNotFoundException: Could not find a part of the path ..." and it looks for the FileLib folder but is unable to find it.
This is understandable as and the path specified has PkgLib and DataLib and the FileLib is actually on a different drive. Does the cleanup tool work in this scenario?

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

ID: 15d31569-af98-8c15-a224-f68b83827caa
Version Independent ID: cd2099fe-d6c5-0983-948c-45617a6c0e11
Content: The content library cleanup tool - Configuration Manager
Content Source: sccm/core/plan-design/hierarchy/content-library-cleanup-tool.md
Product: configuration-manager
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Thanks @nmn25 for sharing this question, and sorry to hear you're having problems.
This article will update very soon with more information pulled from https://cloudblogs.microsoft.com/enterprisemobility/2013/10/29/understanding-the-configuration-manager-content-library/. Check that out and let me know if it helps answer your question.
Otherwise, I want to make sure your question gets to the right people that can help. There are a couple of options available to provide the best level of support for this:

Post on Configuration Manager forums. These are moderated by our community MVPs who are very experienced, knowledgeable, and helpful.
Use Microsoft Support to search for the issue, or open a case with professional support.
Contact your Microsoft Premier team, such as a Premier Field Engineer or Technical Account Manager.

I'm closing this issue, given the updates pending for 1806. If there's anything actionable to change in the docs when you resolve your problem, please reopen this issue or file another.


Support CA Pinning

Moxie Marlinspike's implementation supports N pins (we only need one pin, rest achieved through or()) and is GPLv3 licensed.
Also consider a Java version of the pin creation tool, since Windows users are unlikely to have Python installed.

I created a java based SSL pin creator that's compatible with OKhttp 2.1+ pinning support. https://github.com/scottyab/ssl-pin-generator

@scottyab Very cool! I'll play with this and will link to it from this repo's documentation once I get it working. Many thanks!

Also see https://www.cigital.com/blog/ineffective-certificate-pinning-implementations/

Closing as now being off-topic. I have migrated all my networking stuff to cwac-netsecurity, focusing mostly on a backport of the Android 7.0 network security configuration code.


UI Updating on Struct Change

HI @woutdp
I am building a full stack app performing crud. I  have a page that I am pulling data from the db well its a table  updates on the table also happen on the same page however when the rcords updated this is not reflected on the ui is there a way around this

{#if owners.length > 0}

{#each owners as owner}

			{owner.full_name}

		{owner.phone_number}

			{owner.email}

		{#if owner.agent_agreement}
			View
		{:else}
			-
		{/if}

			<button
				on:click={editOwner(owner.id)}
				class="text-blue-600 hover:text-blue-900">Edit</button
			>

{/each}

{:else}

That is on the svelte side and here is my phoenix  side
  def mount(_params, %{"user_id" => user} = _session, socket) do
    manager = Manager.get_manager_by_user_id(user)
    owners = PropertyOwner.list_property_owners_by_manager_id(manager.id)
    {:ok, assign(socket, manager: manager, owners: owners)}
  end

  def render(assigns) do
    ~H"""
    <.svelte name="property_owner/PropertyOwnerList" props={%{owners: @owners}} socket={@socket} />
    """
  end

def handle_event("save", %{"value" => value}, socket) do
    IO.inspect(value)
    value = Jason.decode!(value)

    manager = socket.assigns.manager

    case register_owner_from_data(value, manager.id) do
      {:ok, _user} ->
        {:noreply,
         socket
         |> put_flash(:info, "Owner Added Successfully")}
    end

    {:noreply,
     socket
     |> put_flash(:info, "manager added successfully")}
  end

There is a form and a modal for creating new owners on my example above... the prop is however not reactive when added kindly help

I don't think this is LiveSvelte specific, because the bug will still be there even if you use LiveView without LiveSvelte.
What's missing is that you're not assigning the owner in the handle_event. You need to do something like:
{:noreply, assign(socket, owners: new_owners)}

Just like you do in the mount.

my mistake thanks again


Update default AWS instance types

Use more appropriate AWS instance types. Jobs of the CF are well suited for AWS T2 bursty instance type. Runners use r3 instance with sustained performance and more memory capacity for apps. This update also decreases running cost for default AWS deployment.
small:  c3.large -> t2.small
medium: c3.large -> t2.medium
large:  m3.large -> t2.large
runner: m3.large -> r3.large
router: c3.large -> t2.medium
compilation:  c3.large -> t2.medium
small errand: c3.large -> t2.medium
large errand: c3.xlarge -> c4.xlarge

T2 medium instance receives 1 hour 100% CPU load burst upon creation, making it also suitable for compilation and errands.

Hi @mtekel, We frequently evaluate which instances we choose as the default and in our exploration we discovered that the network performance of the T2 instance types is severely degraded. While you can certainly overwrite these instance types in your own manifests we have found that in our staging and production deployments the T2 instances are unable to sustain medium to heavy load and therefor cannot be recommended as defaults.
Thanks,
@zaksoup and @medvedzver, CF Release Integration

I'd like to add that you can view the progress of these stories for looking into cheaper instances types on our tracker: https://www.pivotaltracker.com/story/show/103821782

Hi Zak,
it's not quite obvious that 'small' instance type should be able to sustain heavy load. Most of the small/medium jobs just spend time sitting idle. In case you need high performance, you can deploy multiple instances, or override them. Or perhaps change instance type of the job that requires high performance to larger (e.g. from medium_z1 to large_z1). c3.large for everything is overkill...


pack o bot uploads duplicate packs

My pack o bot finds a pack and uploads many records of it

Can you please provide the following:

Platform: PC or Mac?
Your Achievements.log file with a pack in it that was sent multiple times by pack-o-bot.
Your cards.json file in your pack-o-bot user settings.

Thanks!

Im on windows, I do not know how to locate the files you need

Thanks! Here are the file locations:
2. C:\Program Files (x86)\Hearthstone\Logs\Achievements.log
3. %USERPROFILE%\AppData\Roaming\pack-o-bot\packs.json

New folder.zip.zip
Uploading New folder.zip…

There are no packs in either of those files. Are you still seeing the pack upload multiple times?

Maybe open the first 1 or 2 and make sure that it's uploading them to pitytracker.com.

The issue was that multiple folders of Pack-o-bot were downloaded, even though only one application was open and running, it seems that each folder was creating a record in pity tracker. after deleting all folders but 1, it now uploads only 1 pack

It's possible multiple applications were running. We have a ticket open to fix that. Thanks for reporting this, glad you were able to get it working.


fix: add chainImages type WalletConnectModalConfig

Breaking Changes
The QrModalOptions type uses Pick to get the type in WalletConnectModalConfig, but the chainImages type doesn't seem to exist in WalletConnectModalConfig.
So I modified it as below. If I misunderstood, you can close the pr.
Changes

feat:
fix:add chainImages type WalletConnectModalConfig
chore:

Associated Issues
closes #...

WalletConnectModal does not support any chain switching views (that is a feature of Web3Modal), hence this option was not picked.

@0xAsimetriq
Currently I am using wagmi. EthereumProvider is used when connecting Walletconnect in wagmi, and chainImages type is used by using Pick in Web3ModalConfig type in QrModalOptions type of the package, but chainImages type does not exist in Web3ModalConfig type.
If that's the intention, shouldn't the part that uses Pick in the EthereumProvider package to get the chainImages type also need to be modified?
Add an image of the code for better understanding.

There are 2 types of modal:
WalletConnectModal
https://docs.walletconnect.com/2.0/web/walletConnectModal/installation
This one is very basic modal experience for when you only need to connect via WalletConnect, it is used in ethereum-provider. You can use this with wagmi's WalletConnectConnector
Web3Modal
https://docs.walletconnect.com/2.0/web/about-web3modal
This is a managed offering that includes things like account view, chain switching, extension wallets etc. It uses wagmi, but disables modal from WalletConnectConnector.


Update Posts “license”

Automatically generated by Netlify CMS

👷 Deploy Preview for compassionate-almeida-a2aa5b processing.
🔨 Explore the source changes: 3e317c9bbb893b1f20ecbf44bd8e973e7e8c4b2f
🔍 Inspect the deploy log: https://app.netlify.com/sites/compassionate-almeida-a2aa5b/deploys/61a91b6e055bbb00083877d7


Refactor markup render system

This PR removes (almost) all path tricks, and introduces "renderhelper" package.
Now we can clearly see the rendering behaviors for comment/file/wiki, more details are in "renderhelper" tests.
Fix #31411 , fix  #18592, and maybe more problems. (ps: fix #32608 by the way)

Move the render under models seems wired. Since only repo_model.Repository has been dependent. Maybe we can create a repository interface and move these render codes to modules/renderer package? We can also extend gitrepo.Repository interface to have more methods.

Move the render under models seems wired. Since only repo_model.Repository has been dependent. Maybe we can create a repository interface and move these render codes to modules/renderer package? We can also extend gitrepo.Repository interface to have more methods.

There are enough comments, that's the only choice due to the legacy problematic code structure.


SearchContext initialised on every navigation to /

I don't know if that's a feature, but as a user, I would expect that by going back to the home screen from the results page, I would see the same locations I used as search params.
This is because SearchContext is initialised whenever we navigate to the home page, so we lose previous state by going back.

I suppose this is for web only?
Go to kiwi.com, search, click the back button in the browser. Your search is lost. I think this is quite normal on web.

Fair enough. I guess I would not want to reconfigure dates, etc. But we can leave as it is for now since the same behaviour happens on kiwi.com. Thanks!


Win32/Contebrew.A!ml found in Loader.exe

Trojan found one day after playing on server ServerName by Windows Defender
(Screencap translated with Yandex Translate)

Known issue. Its a false positive, and there isn't a whole lot I can do about it really.
For reference any detections that end in !ml are machine learning based heuristics rather than actual signature-matches for malware.
Feel free to pass the exe through virus total if you want, you'll see that nothing else flags it. The code is also publically available for you to read/build yourself if you wish. The loader code is tiny.


-side is not working as expected & sometimes throws an error

I'm getting this error whenever I use -side & search while on an empty buffer or a Startify buffer.
Error detected while processing function <SNR>134_on_exit[4]..<SNR>134_finish_up[49]..<SNR>134_side[1]..<SNR>134_side_create_window:
line   33:
E484: Can't open file <empty>
Press ENTER or type command to continue

But if I run the same command on a non-empty buffer it opens this instead. Which is the Quickfix & the side buffer but at the bottom of the window

This is my grepper settings
command!  I'll alter the doc to make this point clearer.
Use something like this instead:
nnoremap \ :silent! packadd vim-grepper<cr><bar>:Grepper -side -noprompt -tool rg -grepprg rg -H --vimgrep --no-heading --hidden<space>

This fixes the mapping but is quite long. You might want to remove the -nompromt and use Grepper's prompt instead. (And maybe even let g:grepper.simple_prompt = 1 for an even shorter prompt.)

I think :packadd already sources plugin/grepper.vim, so an alternative would be:
nnoremap \ :silent! packadd vim-grepper<cr><bar>let g:grepper.rg.grepprg .= ' --hidden'<bar>Grepper -side -tool rg --query<space>

HTH

I fixed the doc. Thanks for bringing this up! ✨

Thanks, I tried both but it seems the second one deosn't work
nnoremap \ :silent! packadd vim-grepper<cr><bar>let g:grepper.rg.grepprg .= ' --hidden'<bar>Grepper -side -tool rg --query<space>

All I get back is this in the command bar at the bottom
:silent! packadd vim-grepper

I found the issue, you missed the : before the let :) works fine, thanks again.


How to add Specific Route in Phantomjs Webserver?

Hi
I am using webserver to listen request on particular host. I write ipaddress:port to listen request. But I want to add specfic route into it. for e.g -<IP_ADDRESS>:8080/test  How I do that please help me?

I think you'll have to parse the request.url part to see which path is being requested by the client and then handle it yourself.
However, the web server module was never intended as a fully featured web server, so it only has basic functionality, but enough for most simple communication needs. What I'm trying to say is that if you need to handle different routes and have middleware, you're better off creating a proper Express server with Node.js and then interfacing that with PhantomJS.

We apologize for not responding to this issue sooner.
Ricardo is correct.  There is no built-in support for routing in the webserver module, you have to do everything by hand.
In addition, the webserver module really only exists because the WebDriver protocol uses HTTP.  It has a number of serious technical problems and we discourage its use.
Finally, as a matter of project policy: This issue tracker primarily serves as the tool to report and track bugs, defects, and development tasks.
For general question, code review request, build problem, or other related discussion, please post it to either:

the official PhantomJS users mailing-list
Stack Overflow (with phantomjs tag)

If you have not read it yet, please check also a few tips on Effective Q&A.


Move default args to CMD

https://github.com/docker-library/official-images/pull/4404#issuecomment-408252085

@jewome62 Yes, I think we should only have 1 example showing how to pass your own options to varnishd. No need for separate examples for port number, VCL path, cache size, etc.


USHIFT-1457: copy entire rpm source to local repo

Do not assume that the RPM source being copied is the result of a
local build, and copy everything we find. This ensures that if someone
points the script to a directory full of RPMs it can create a repo out
of them.
This partially reverts 75609ae5a251772e4d72e0c0ba9dd123d5ac02a1
/assign @ggiguash @jogeo

/lgtm


Fullscreen after cancelling exit

Have to click the fullscreen button twice when I want to get back into fullscreen-mode after having cancelled my exit. This is shouldn't be the case.

Thank you very much. I fixed the issue.


Add GITHUB_OUTPUT support

Fixes #232.
Adds support for a new output: github, that emits the following outputs for use in GitHub actions:

badge: the URL for the badge
line_rate: The line rate in percent (two decimal places)
branch_rate: The branch rate in percent (two decimal places)
complexity: The complexity (two decimal places)
health: a health indicator emoji

Let me know what you think or what should be improved!

@irongut can you take a look?

Thanks, stale bot, I am not the one stalling on this PR...

Bump

bump
Wondering if this action has been abandoned? No commits in 2 years.


ReadOnly mode takes precedence over Normal/Edit Mode if a user has perms for both

Currently in Auth.cs, the following logic exists:
// Also validating App Roles, but only if any of relevant setting is set
var allowedAppRoles = settings.AllowedAppRoles;
var allowedReadOnlyAppRoles = settings.AllowedReadOnlyAppRoles;

if (allowedAppRoles != null || allowedReadOnlyAppRoles != null)
{
    var roleClaims = principal.FindAll(settings.RolesClaimName);

    bool userIsInAppRole = roleClaims.Any(claim => allowedAppRoles != null && allowedAppRoles.Contains(claim.Value));
    bool userIsInReadonlyRole = roleClaims.Any(claim => allowedReadOnlyAppRoles != null && allowedReadOnlyAppRoles.Contains(claim.Value));

    // If user belongs _neither_ to AllowedAppRoles _nor_ to AllowedReadOnlyAppRoles
    if (!(userIsInAppRole || userIsInReadonlyRole))
    {
        throw new DfmUnauthorizedException($"User {userNameClaim.Value} doesn't have any of roles mentioned in {EnvVariableNames.DFM_ALLOWED_APP_ROLES} or {EnvVariableNames.DFM_ALLOWED_READ_ONLY_APP_ROLES} config setting. Call is rejected");
    }

    // If current operation modifies any data, then validating that user is _not_ in ReadOnly mode
    if (operationKind != OperationKind.Read && userIsInReadonlyRole)
    {
        throw new DfmAccessViolationException($"User {userNameClaim.Value} is in read-only mode");
    }

    return userIsInReadonlyRole ? DfmMode.ReadOnly : settings.Mode;
}

As a result of the final ternary expression in the return statement of this block, if a given user possesses both Read permissions and Normal permissions (Write/Edit permissions?) as I did in my testing, then this function returns DfmMode.ReadOnly.
Is this the intended behavior of the tool? My assumption based on similar situations in other systems would be that if a user has Write/Edit and Read permissions for a given resource, they would be able to write/edit to that resource without needing to revoke their own read permissions on that resource first.
If it is the intended behavior, then perhaps a callout in the configuration documentation would be appropriate.
Thank you very much for this tool, by the way. Cool as heck 🦾

Hi @newOnahtaN , and thanks for your feedback!

Is this the intended behavior of the tool?

I'd say - yes. More restrictive policies should always take precedence - that's the philosophy behind.
As a bit of a context, DFM_ALLOWED_READ_ONLY_APP_ROLES was added long after DFM_ALLOWED_APP_ROLES, and the goal was not to introduce any breaking changes.
But I agree, it might appear contra-intuitive. Will clarify the docs.

Interesting. Okay, I will take effort not to assign read only access to anyone who also has write access then.

Done:

Closing this, but please open more issues, if anything else is not right.


Ticket #25115  -- Fix admindocs view bookmarklet to reverse URL rather than hardcode it

See ticket #25115.

buildbot, add to whitelist.

merged in 915ef79b08862680e82d6a772d6ead22735e9a2f, thanks.


Add background entitlement + basic stay-alive features

In iOS15, any background activity really kills all networking.
https://developer.apple.com/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/extending_your_app_s_background_execution_time
https://stackoverflow.com/questions/43853812/prevent-websocket-connection-to-drop-when-entering-background-state-ios-swift

Implemented the baseline on main


Create-react-native-app Cannot read property 'find' of undefined

Description
I am getting error while starting the new app with
npm start or npm run ios
Expected Behavior
What action did you perform, and what did you expect to happen?
create-react-native-app nav-app
cd nav-app
npm start
Observed Behavior
What actually happened when you performed the above actions?

If there's an error message, please paste the full terminal output and error message in this code block:
7:18:38 PM: (node:6449) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 685): SyntaxError: TransformError: /Users/parm/Documents/learning/expo/nav-app/node_modules/expo/src/Expo.js: /Users/parm/Documents/learning/expo/nav-app/node_modules/expo/src/Expo.js: Cannot read property 'find' of undefined

Environment
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>node v7.0.0
npm 4.4.1
watchman 4.7.0
macos 10.12.3
iphone 6 simulator (SimulatorApp-726.7)

+1

+1

I'm having the same issue

+1

+1

+1

+1

+1

+9

+1

+1

Hi! Thanks for the report. I'm looking into this now. If you're also experiencing this issue, please refrain from leaving '+1' comments.

having the same issue with the same versions of all the packages, but on ubuntu and with the android simulator.

Hi everyone! It looks like there were a few upstream dependencies that changed in the last day or so (yay semver!) and I'm looking into which may be the source of the issue here.

I've identified the likely cause of the error (will file a report soon on the open issue). Doing a little more testing and then I'll push out a release of CRNA.

This has been resolved, you should be able to create a new project and have it work again.
Since this affected so many people, here's a brief breakdown of what went wrong:

babel-plugin-module-resolver released 2.6.0 last night.
babel-preset-expo, which is a dependency of the Expo SDK and is used in CRNA to transform local asset requires for the client app, depended on "babel-plugin-module-resolver": "^2.3.0", which allowed the new 2.6.0 version to be pulled into new projects.
The module resolver plugin seems to have introduced a new bug which breaks it for our use case. I'm planning to create a minimal reproduction for them sometime soon so they can resolve this.
After reproducing myself using<EMAIL_ADDRESS>(which I released yesterday), I attempted to reproduce with previous scripts packages, since none of the changes I released in 0.2.6 should have affected module resolution or code transformation. I was able to reproduce with two previous versions of the scripts package, leading me to believe there was an issue with a transitive dependency and its semver bound.
I investigated a number of recent package changes, and found that babel-plugin-module-resolver worked at 2.5.0, but broke at 2.6.0.
Discussed with @brentvatne, and he released a new babel-preset-expo version (1.0.1) which pins the module resolver plugin to 2.5.0, and subsequently released a new expo version (15.1.3) which depends directly on the new preset. All new CRNA projects should pull this in by default.

I'm closing this issue, but if you run into this error again and have confirmed use of expo 15.1.3 or babel-preset-expo 1.0.1, please comment here so that I can look into it.

Hi,
The previous issue got resolved. Thanks for the quick response.
I think I am getting a related issue:
Unable to resolve module<EMAIL_ADDRESS>from<EMAIL_ADDRESS>Module does not exist in the module map or in these directories:
  /Users/adnaan/code/expo/projects/galllery/node_modules/@expo/vector-icons/glyphmaps

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start --reset-cache`.

ABI15_0_0RCTFatal
ABI15_0_0RCTSetFatalHandler
ABI15_0_0RCTSetFatalHandler
<redacted>
<redacted>
_dispatch_main_queue_callback_4CF
<redacted>
<redacted>
CFRunLoopRunSpecific
GSEventRunModal
<redacted>
UIApplicationMain
Exponent
<redacted>

I had that too @adnaan but following the suggestions of the stacktrace solved it (for me before this bug), and anyhow I think it is unrelated
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start --reset-cache`.

@vikkio88 I tried that before. At your suggestion tried it again. It works! I am ashamed. Sorry for the noise.

@adnaan so glad you were able to resolve it!

Thanks @dikaiosune for the quick response/fix! Great job guys, loving this project 🥇

If you're still hitting the Entypo issue with Expo v16, it's a known issue and there's a fix here:
https://github.com/tleunen/babel-plugin-module-resolver/issues/167


Tests fail to build without extra configuration

Due to the component test, it is currently not possible to simply clone and build the repository without additional setup. Building that test requires midlrt to be on PATH, which then in turn requires cl to be on PATH as well. Luckily, this part is easy to debug and fix. However, midlrt does not set any include directories by default, and relies on the INCLUDE environment variable or command line arguments to be set. Without those set, it only searches for winrtbase.idl in the working directory, and cryptically errors out when it can't find it.
Note that the Windows SDK installer doesn't set any of these environment variables globally.
The build script for component should probably do some extra work to set up the environment variables appropriately, or at least issue an error message when INCLUDE isn't set.

Hi @Muon, an easy way to get unblocked here is to fire up a Visual Studio Developer Command Prompt (or by calling C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat), modifying the path as needed.

Yes, in order to run all tests you need to use a Visual Studio developer command prompt. I'm working on eliminating the need for these tools entirely, but we're not quite there yet.

So, um, where is that documented?


ignore tags that don't match the prefix

Currently versioneer expects (all?) tags in the repository to match the given (tag_prefix).
If (the latest?) tag does not match that prefix, versioneer will not be able to derive a version.
I have a repo, in which i maintain mulltiple packages. This is waiting for a fix to https://github.com/warner/python-versioneer/issues/38 (dup: https://github.com/warner/python-versioneer/issues/109) anyway, but i noticed, that that won't be enough. I want to use separate tag prefixes for the different packages, but it seems like if i add a tag with a new prefix, the "previous" package does not get a version anymore, because it fails on the wrong prefix of the more recent tag.
Proposed fix: If a tag does not match tag_prefix, just ignore the tag.

Hm.. so you've got multiple tags (like foo-1.2 and bar-4.7) in a single repository, with some subdirectories or packages that want to pay attention to foo-* and others that want to pay attention to bar-*?
As far as I know, git describe only tells us about the most recent tag: there's no way to say "please find the most recent tag that matches the pattern foo-* and give me a description based upon that". Let's see.. to do that, I think we'd have to stop using git describe and instead write code that walks the list of tags, filters for the prefix, filters again for ones that are ancestors of HEAD, then for each one it would build a list of revisions between that tag and HEAD (git rev-parse $TAG..HEAD), count the number of revisions, then return the one with the shortest list, then build the equivalent of git describe's output based upon that tag.
It wouldn't work at all for git archive tarballs, but I think normal in-between-tags versions don't work there either.

You're right. I also found, that you can use git rev-list --count <range> to have git count the number of revisions in <range>. Hope that helps.

This has been supported for a while.


Make the API to use a javaGetter neater

Describe the feature you request
As of now in Java you can use getters to set a value as specified on the documentation.
    Order actual = sut.giveMeBuilder(Order.class)
            .set(javaGetter(Order::getOrderNo), "1")
            .set(javaGetter(Order::getProductName), "Line Sally")
            .minSize(javaGetter(Order::getItems), 1)
            .sample();

I think that it´s to verbose and not as neat as Kotlin where you can just do .setExp(Order::orderNo, "1").
I suggest to be a similar syntax as well for Java users.

@esfomeado
Thanks for the suggestion.  Do you have any good ideas?
Do you want an API that looks like this?
Order actual = sut.giveMeBuilder(Order.class)
    .setExpGetter(Order::getOrderNo, 1)
    .sample();

That looks good to me.

@esfomeado
Hello, thank you for waiting.
Finally, 1.1.0 has been released. Please check it out!


Fix paymaster deploy docs #961

What :computer:

First thing updated with this PR : Fix the error in obtaining the contract address.

Why :hand:

Reason why first thing was added to PR: The way to obtain the address of a deployed contract is problematic.

Evidence :camera:

Notes :memo:
Is it possible that other sample codes may also have issues with obtaining the contract address?

This will be included in #914


Ensure that fe-proxy-cm is not modified

After updating the fe-proxy-cm, although reconciliation was triggered, the CM was not reset to its original state.

done in v1.8.0


Net5 RC2/GetPhysicalAddress

Issue Title
Net5 RC2/GetPhysicalAddress Not Get PhysicalAddress In Ubuntu18.04
General
The function of obtaining the physical network card address is normal on windows, but the physical address of the network card cannot be obtained on ubuntu18.04. Please help to find out the reason;

public static void DisplayTypeAndAddress()
{
IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
Console.WriteLine("Interface information for {0}.{1}     ",
computerProperties.HostName, computerProperties.DomainName);
foreach (NetworkInterface adapter in nics)
{
IPInterfaceProperties properties = adapter.GetIPProperties();
Console.WriteLine(adapter.Description);
Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length, '='));
Console.WriteLine("  Interface type .......................... : {0}", adapter.NetworkInterfaceType);
Console.WriteLine("  Physical Address ........................ : {0}",
adapter.GetPhysicalAddress().ToString());
Console.WriteLine("  Is receive only.......................... : {0}", adapter.IsReceiveOnly);
Console.WriteLine("  Multicast................................ : {0}", adapter.SupportsMulticast);
Console.WriteLine();
}
}

The functions above windows are normal. This is a normal screenshot

Duplicate of https://github.com/dotnet/runtime/issues/42870 ?

Thank you very much for your reply;
I have checked the problem in the connection you gave, his problem may be that he detected the network card name wrong, and all did not get the mac address of the network card;
Mine is to traverse all the network cards, and then print the network card address, but the network card address is not displayed;
The version of my .net5 is: 5.0.100-rc.2.20479.15
@omajid
public static void DisplayTypeAndAddress()         {             IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties();             NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();             Console.WriteLine("Interface information for {0}.{1} ",             computerProperties.HostName, computerProperties.DomainName);             foreach (NetworkInterface adapter in nics)             {                 IPInterfaceProperties properties = adapter.GetIPProperties();                 Console.WriteLine(adapter.Description);                 Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length, '='));                 Console.WriteLine(" Interface type .......................... : {0}", adapter.NetworkInterfaceType);                 Console.WriteLine(" Physical Address ........................ : {0}",                 adapter.GetPhysicalAddress().ToString());                 Console.WriteLine(" Is receive only.......................... : {0}", adapter.IsReceiveOnly);                 Console.WriteLine(" Multicast................................ : {0}", adapter.SupportsMulticast);                 Console.WriteLine();             }         }


Instead of the table displays the variables of the layout ({pager}{items})

The problem appear after moving to a new server.
For every instance of gridview I get the variables of the layout ({pager}{items}{pager}).
I run requirements.php and all is OK (no warnings, no errors).
Yii version  2.0.3
Intl installed (Version 3.0.0)
ICU version 57.1
PHP version 5.4.45

please provide more information about the problem. what do you do, what do you see and what did you expect to see instead?

On the old server everything worked.
Admins moved our site to a new webserver and after that all tables on pages are not displayed. I.e. in place of gridview I see this text: "{pager}{items}{pager}"

if it works on one server and not on the other the problem is very likely not inside of yii, but your server environment.


Crop doesn't return equal images

I'm trying to get all the images the same height and width. My settings are:
$('#test .image').cropper({
    viewMode: 1,
    dragMode: 'move',
    restore: false,
    guides: false,
    highlight: false,
    cropBoxMovable: true,
    cropBoxResizable: false,
    width: 800,
    height: 1200
});

// Then I crop with this:
var result      = $('#test .image').cropper('getCroppedCanvas', {
     width: 800,
     height: 1200,
});

Im cropping with two different images:
3888 x 5184 after crop: 800 x 1066
1168 x 1653 after crop: 800 x 1132
What I don't understand is that the images are far bigger than the requested width and height, so why does the cropper doesn't return me two images of the same with and height?

Just because:
For image with size 3888 x 5184:
800 / 1066 === cropBox.width / cropBox.height
800 / 1200 !== cropBox.width / cropBox.height

For image with size 1168 x 1653:
800 / 1132 === cropBox.width / cropBox.height
800 / 1200 !== cropBox.width / cropBox.height

Just set the aspectRaio option to 800/1200 if you want to get an expected result.


Upgrade to Gradle 4.0.2

Still wrapping my head around api vs implementation, but decided to submit this early. Would love some input on this.

Oops sorry I updated to 4.1 in another PR. Do you want to rebase the configuration name changes?

@JakeWharton sure, can do!

The CI log looks weird, I quickly googled what 137 means, and it looks to be memory-related. Any ideas?

The inner Gradle invocation for the integration test failed. I retried it and it succeeded.

Nice!


Adding cheatsheets of libraries

Hello, I think to extend this repo by not only having cheatsheets of programming languages , but also of famous libraries. How about this idea , can I get on this?

Too hard to maintain unfortunately.


Linked WorkItems not Shown

Hi,
The linked work items are not displayed on TFS work item if the linking is done using following ways:

If we try linking work items using Visual Studio Team Explorer for GIT code development then those commits are not linked with TFS work item
If we use git-commit command and include work item id in the comment like "Changes for #xxxx" even then the commits are not linked with TFS work item.

Please suggest why the commits are not getting linked with TFS work item for GIT using above mentioned ways.

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

ID: 3167d770-e6d3-dde7-2a9f-89967fb49c58
Version Independent ID: 66c7f3b8-6de6-47ad-c1fa-94fb98bdac69
Content: Link work items to support traceability - VSTS & TFS
Content Source: docs/work/track/link-work-items-support-traceability.md
Service: unspecified
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@KathrynEE Please loop me in on this one if you need - have you seen this before?
@sawhneyapurva When linking a work item to a commit, the link isn't added until the commit is pushed, just as a quick check, is the link to the work items not showing up after you push the commit?

Yes, I have pushed my commits and still they are not linking.

Having the same issue here.
Addin #ID to the commit message or linking the work item on the Team Explorer does not reflect on linked items section of the VSTS's backlog item.

We're also having this issue...

Found it!
Navigate to:
Project Settings > Code > Repositories > %Your repository% > Options
Now enable Work item management

@Allendorf231 This worked for me too!
Thank you very much for sharing the solution.


Missing phpDoc arguments for certain formatters

In the phpDoc for the Faker\Generator class some formatters are missing. For now I'm missing the secondaryAddress and state formatters, but more might be missing.

That's because only the formatters expected to be found in all languages are included. Otherwise, your IDE would suggest methods that don't exist for your locale.

Ah alright, that makes sense. Thanks for the quick reply!


Handling pre-installed data

Currently, the table creation script is being run on database startup (https://github.com/bgruening/docker-galaxy-stable/blob/master/compose/galaxy-postgres/init-galaxy-db.sql.in). How does this work with pre-loaded data? e.g. Preloaded workflows etc.
Do we have to consider a solution like the one below:
https://www.3pillarglobal.com/insights/how-to-initialize-a-postgres-docker-million-records?cn-reloaded=1
Or can we extend the postgres image to have pre-installed data, and have it push it out to the target volume?

We are importing a db dump on startup, which is performing adequately. So closing.


Direct messages in MS Teams do not include new lines (\n)

System Information

SDK Language: Node.js
SDK Version: 3.8.4
Development Environment: localhost

Issue Description
Direct messages in MS Teams do not include new lines, it uses spaces instead of \n, maybe it happens the same in channel conversations, haven't tested there yet.
Code Example
  lib.dialog('/', (session, args) => {
    builder.Prompts.text(session, "This is a test question?")
  }, (session, result) => {
    console.info(result.response)
  })

Expected Behavior
console.info(result.response) => "'This\nis\na\nmulti\nline\ntext"
Actual Results
console.info(result.response) => "'This is a multi line text"
If that's the expected behavior, the session.message includes a html markup (there's a sample below) that I can parse, saying that, is there a parser to do that?
attachments:
   [ { contentType: 'text/html',
       content: '

This

is

a

multi

line

text

' } ]

Can you please try with "\n\n" and see if that works for you?

@JasonSowers sorry if I wasn't clear, the issue is what I get from botframework when a user enters a message with more than 1 line, the bot gets a string with spaces instead of \n or , so i don't have a way to know if the user entered new lines or not.

I see, can you please elaborate on your use case, someone may have a workaround that may help you.

@RichMoeMSFT thoughts?

@santiagodoldan This is a feature, not a bug. MS Teams chat interface does not support rich-text advanced formatting.

Maybe someone could find this useful, we extracted 2 middlewares from our bot app and created a new package to fix this limitation, this is the repo https://github.com/suttna/botbuilder-markdown, adding the middleware will transform the markup that Teams sends to the bot into new lines like \n.


added nginx information for php apps

After asking in https://github.com/dmathieu/sabayon/issues/48
i finally figured it out how to make the redirect with nginx.
So i added it to the readme.
Disclaimer: i am not the best at configuring nginx, especially in heroku context, but this worked for me.

Thank you!


[Windows] Terminal resizing leads to line duplication

Which operating system does the issue occur on?
Microsoft Windows [Version 10.0.17134.345] with artifacts cppfq2ivrp591l4w
Completely default yaml

This also happens on conpty (https://github.com/jwilm/alacritty/pull/1762).


Add Astan92 to contributors list

Add Astan92 to contributors list

@Astan92, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added Facebook share and tweet feature to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


Is there any post build hook? Want to use one for upx

Like this, :arrow_down: so I can utilize that for upx
https://goreleaser.com/customization/build/?h=hook#build-hooks

No but sgtm to add this. Keep you in touch.

Thank you


Attr tracking

Closes #132

Implements within file attribute tracking.
Tags raster attributes from candidate and benchmark to an attributes df along with agreement map.
Uses attributes df schema
Implements tests.
Creates attribute tracking accessor method.
Implements attribute tracking within continuous and categorical compare accessor methods.

Made some changes as apparently it wasn't passing linting. Great use of automation!

Ready to review @GregoryPetrochenkov-NOAA pending successful CI builds and tests.


[BUG] Unable to Write to OpenSearch 2.16.0 using Spark 3.5

What is the bug?
Using Spark 3.5 Streaming Job reading data from Kafka but while writing to OpenSearch giving following error. Checked _cluster/heath response through same endpoints are working fine.
curl -kgu username:'somepassword' http://xxx-opensearch:9200/_cluster/health?pretty
{
"cluster_name" : "opensearch2x-cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 2,
"discovered_master" : true,
"discovered_cluster_manager" : true,
"active_primary_shards" : 21,
"active_shards" : 42,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
Here are my spark configurations:
opensearch.nodes
xxx-opensearch
opensearch.port
9200
opensearch.nodes.wan.only
true
opensearch.batch.size.bytes
10mb
opensearch.index.auto.create
true
opensearch.batch.size.entries
100
opensearch.net.http.auth.pass
somepassword
opensearch.net.http.auth.user
someusername
opensearch.batch.write.refresh
false
"Exception in storing in elasticorg.opensearch.hadoop.OpenSearchHadoopIllegalArgumentException: Cannot detect OpenSearch version - typically this happens if the network/OpenSearch cluster is not accessible or when targeting a WAN/Cloud instance without the proper setting 'opensearch.nodes.wan.only'
Spark Code:
JavaOpenSearchSpark.saveJsonToOpenSearch(map, "{kafka_topic}" + "-" + date);
Versions:
OpenSearch: <IP_ADDRESS>
Connector: opensearch-hadoop-1.2.0.jar
Spark: 3.5
How can one reproduce the bug?
Steps to reproduce the behavior.

Linux, Deployed OpenSearch on Kubernetes,
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.

There should in theory be a more detailed exception about the specific request that failed following the initial couldn't determine version exception, can you please check the logs?
In general that particular error (assuming you're not using Amazon OpenSearch Serverless) is usually caused by some variety of connection or authentication issue.

same configurations are working perfectly with OpenSearch <IP_ADDRESS> and all versions lower than this. When I am upgrading the OpenSearch to 2.16.0 version it is getting this issue.


Debugger Throw notify may be re-entered recursively

See https://github.com/svaarala/duktape/issues/1378#issuecomment-283548123. In short:

Throw notify handling does property reads which have arbitrary side effects (can invoke a Proxy, a getter, or a finalizer).
Those side effects allow re-entry into the Throw notify handler while existing message is still being written.
It's also possible some error handling may be clobbered if an error is thrown within a side effect.

In addition to property reads, similar side effects may exist for string coercion (even when using duk_safe_to_string()) which may similarly cause Throw notify to be reinvoked.
When Throw notify is enabled, this may happen also from other debugger commands: e.g. Eval does a duk_safe_to_string() coercion for its result. If that causes a Throw notify, it will get processed within the Eval handler. For Eval this is actually not an issue because the reply is written at the very end, after the coercion. But for example Status and GetCallStack would actually be affected.

The root cause is that the Throw handler can very easily get invoked from any (code execution) side effect; making every relevant code path secure against that is a bit difficult because it affects so many places.
This is actually why when I initially added e.g. a 'Gc' notify (indicating a Gc run started) I ended up removing them quite quickly. It's quite difficult to ensure they never happen from a place where the debugger message writing would actually cause harm (e.g. another message has been half written). Also buffering the messages is awkward from a memory usage and state handling perspective. So, I ended up with only sending stuff from the debugger handling code itself which already has a mechanism to prevent re-entry.
I'm not sure what to do about the Throw notify which has issues similar to the (removed) Gc notify. To fully solve the issue:

Throw itself shouldn't cause a re-entry.
Any other place in the debugger code (especially during message writing) would need to be secure against entering the Throw handler via any execution side effect.


Update tutorials.md

Small wording changes.

@pgray-hiro : Could a take a look into my PR? Thanks.

@sabbyanandan: Please review my changes. Thanks.

@sabbyanandan Can I go ahead and merge this PR?

Closing this PR per Sabby's comment and work as part of #78