[Bug]: 'automationName' Can't Be Blank

Description
Regardless of what I do, I cannot get passed "'automationName' Can't Be Blank".  I have been working for hours trying to get passed this problem since every library involved claims the problem is fixed, but nope, it's not.  I am at a complete stand still until properly fixed, or a bypass solution can be found.  If I understand the logs, dontnet-client library is where the problem lies.
Environment

.NET client build version or git revision if you use some snapshot: 5.0.0 Beta 4 (downloaded 5 times, latest 10 minutes ago)
Appium server version or git revision if you use some snapshot: 2.0.0, installed using NPM
Desktop OS/version used to run Appium if necessary:  Windows 10 Professional
Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe:  20.4.0
Mobile platform/version under test:  N/A
Real device or emulator/simulator:  Real device
WebDriver and Webdriver.Support version 4.10.0

Details
dotnet-client is self compiled using version 5.0.0 beta 4.  An already compiled version can't be found, so I compiled my own.  I could be compiling the wrong code, hence why I looked for an already compiled version.  Would be a good ide to provide a compiled download to avoid potential mistakes by someone trying to compile, especially when a nuget for a needed version isn't available.  GitHub Actions can easily take care of compiling and adding to the release/prerelease artifacts.
I can't find anything that shows how to properly use Appium along with this library, only old samples not yet updated.  Code is pieced together from old examples and errors I receive during runtime.
Code To Reproduce Issue [ Good To Have ]
internal void CreateWebDriver(string windowhex)
{
if (string.IsNullOrEmpty(windowhex)) throw new ArgumentNullException(nameof(windowhex));
        AppiumOptions appCapabilities = new AppiumOptions();
        appCapabilities.AddAdditionalAppiumOption("AutomationName", "windows");
        appCapabilities.AddAdditionalAppiumOption("platformName", "Windows");
        appCapabilities.AddAdditionalAppiumOption("DeviceName", "WindowsPC");
        appCapabilities.AddAdditionalAppiumOption("appTopLevelWindow", windowhex);
    }

I also used the following lines trying to fix with no success:
appCapabilities.AddAdditionalAppiumOption("automationName", "windows");  - I get told to use "AutomationName" instead.
appCapabilities.AddAdditionalAppiumOption("appium:automationName", "windows"); - get told "appium:automationName" is already added.
Exception stack traces
https://gist.github.com/wizzbangwa/58bc8655e944ca5cd6498662cc5d56de
Link to Appium logs
Where are the logs located?  I can't find any useful information on this and your generated bug report helper doesn't say where to look.
Below is what is shown in the command prompt window.
[Appium] Could not parse W3C capabilities: 'automationName' can't be blank
[debug] [AppiumDriver@63fa] Event 'newSessionStarted' logged at<PHONE_NUMBER>630 (00:34:50 GMT-0700 (Pacific Daylight Time))
[debug] [AppiumDriver@63fa] Encountered internal error running command: InvalidArgumentError: 'automationName' can't be blank
[debug] [AppiumDriver@63fa]     at processCapabilities (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\basedriver\capabilities.js:345:13)
[debug] [AppiumDriver@63fa]     at parseCapsForInnerDriver (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\lib\utils.js:139:40)
[debug] [AppiumDriver@63fa]     at AppiumDriver.createSession (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\lib\appium.js:251:49)
[debug] [AppiumDriver@63fa]     at commandExecutor (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\basedriver\driver.ts:107:18)
[debug] [AppiumDriver@63fa]     at AppiumDriver.executeCommand (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\basedriver\driver.ts:124:15)
[debug] [AppiumDriver@63fa]     at processTicksAndRejections (node:internal/process/task_queues:95:5)
[debug] [AppiumDriver@63fa]     at defaultBehavior (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\lib\appium.js:680:16)
[debug] [AppiumDriver@63fa]     at AppiumDriver.executeWrappedCommand (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\lib\appium.js:774:16)
[debug] [AppiumDriver@63fa]     at AppiumDriver.executeCommand (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\lib\appium.js:696:17)
[debug] [AppiumDriver@63fa]     at asyncHandler (C:\Users\blaze\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\protocol\protocol.js:393:19)

@wizzbangwa Did you try the below code?
AppiumOptions desktopCapabilities = new AppiumOptions();
desktopCapabilities.App = "Root";
desktopCapabilities.DeviceName = "WindowsPC";
desktopCapabilities.AutomationName = "Windows";
var desktopSession = new WindowsDriver(serverUri, desktopCapabilities);

Thanks for the fast reply.  That got me going in the right direction, but I am still not up.
First, I see the following in my command prompt output:
[WindowsDriver@012e] The following capabilities were provided, but are not recognized by Appium:
[WindowsDriver@012e]   deviceName
Appium and WebAppDriver are way too complicated to get going.  Right now I am stuck at Appium not being able to contact WebAppDriver.  I don't think WebAppDriver doesn't like providing statuses.  THis is in the log after WebAppDriver is started.
[WindowsDriver@012e (197d4e76)] Spawning 'C:\Program Files\Windows Application Driver\WinAppDriver.exe' with args: ["4724/wd/hub"]
[debug] [WindowsDriver@012e (197d4e76)] Matched '/status' to command name 'getStatus'
[debug] [WindowsDriver@012e (197d4e76)] Proxying [GET /status] to [GET http://<IP_ADDRESS>:4724/wd/hub/status] with no body
[debug] [WindowsDriver@012e (197d4e76)] Windows Application Driver listening for requests at: http://<IP_ADDRESS>:4724/wd/hub
[debug] [WindowsDriver@012e (197d4e76)] Press ENTER to exit.
[debug] [WindowsDriver@012e (197d4e76)] ==========================================
[debug] [WindowsDriver@012e (197d4e76)] GET /wd/hub/status HTTP/1.1
[debug] [WindowsDriver@012e (197d4e76)] Accept: application/json, /
[debug] [WindowsDriver@012e (197d4e76)] Accept-Encoding: gzip, compress, deflate, br
[debug] [WindowsDriver@012e (197d4e76)] Connection: keep-alive
[debug] [WindowsDriver@012e (197d4e76)] Content-Type: application/json; charset=utf-8
[debug] [WindowsDriver@012e (197d4e76)] Host: <IP_ADDRESS>:4724
[debug] [WindowsDriver@012e (197d4e76)] User-Agent: appium
[WindowsDriver@012e (197d4e76)] Got response with status 500: {"status":13,"value":{"error":"unknown error","message":"An unknown error occurred in the remote end while processing the command."}}
[debug] [W3C] Matched W3C error code 'unknown error' to UnknownError
Is this something I should report somewhere else?

Did you used as followed?
desktopCapabilities.DeviceName = "WindowsPC";

I sure did.
AppiumOptions desktopCapabilities = new AppiumOptions
{
     App = "Root",
     DeviceName = "WindowsPC",
     AutomationName = "Windows"
};
desktopCapabilities.AddAdditionalAppiumOption("appTopLevelWindow", windowhex);
_ticketNetworkSession = new WindowsDriver(new Uri(WindowsApplicationDriverUrl), desktopCapabilities);

Looks like WinAppDriver threw an error. This isn't surprising as it hasn't been maintained for many years. Unfortunately the only solution might be to complain to Microsoft in order to help convince them to update WAD.

@wizzbangwa, looks like you are trying to run on the Windows Application Driver which is not W3C compatible for a while now.
The only option you have currently is to run on the appium server using [Appium Windows Driver] a(https://github.com/appium/appium-windows-driver) which is used as a proxy to WinAppDriver.
I need to add a section for this on the Repo README.MD
See:
https://github.com/appium/dotnet-client/issues/487

I found the problem: I was using both App and appTopLevelWindow.  Only one can be used.  Thanks for the suggestions and extra information.
I am looing into Appium Windows Driver.


Support for rails 5?

I'm testing this with Rails 5. I've added the gem to the Gemfile and I get the following error: (also set connection_pool_class but still get the error)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) wrong number of arguments (1 for 2)
	at RUBY.establish_connection(.../activerecord-bogacs-0.5.0/lib/active_record/bogacs.rb:61)
	at RUBY.establish_connection(.../activerecord-5.0.2/lib/active_record/connection_handling.rb:61)
	at RUBY.block in Railtie(.../activerecord-5.0.2/lib/active_record/railtie.rb:125)

Not sure why establish_connection is expecting more than one parameter. Anyway i'm going to dive in a bit further but thought I would bring it up in case someone else knows a quick fix.

Yea looks like Rails 5 changed how they are calling establish_connection on it's connection handler.
Rails 4.1.x: https://github.com/rails/rails/blob/v4.1.16/activerecord/lib/active_record/connection_handling.rb#L57
Rails 5.x: https://github.com/rails/rails/blob/v5.1.0.rc1/activerecord/lib/active_record/connection_handling.rb#L58
I'll play around with this and see if there are more issues that arise.

Here's what I got working for Rails 5. Also it directly replaces the ConnectionPool class in ActiveRecord so it removes an extra layer of monkey patching. (Since AR uses autoloading this works fine)
https://gist.github.com/cha55son/2486a6b10374f12387e2a4e9a1e194c4

hey! there's probably several issues - AR-JDBC might be an issue as well (not supporting AR 5 well enough).
would be great to have a back-wards compatible patch to run smoothly with AR 5 - thus patching is required.


Implement StackOverflow reply UI for replying to messages within streams

One of my favorite features of StackOverflow's chat rooms is being able to reply to a particular message, such that the writer of the message gets pinged, and the reply contains a way to jump to the message being replied to.
The "Quote and reply" option doesn't really cut it. It is "hard" to discover (as in, it is part of a drop-down), and while it quotes the message in the reply, it is not possible to jump from the reply to the quoted message easily.
OTOH, StackOverflow's chat makes this trivial. At the beginning of a reply there is a ↰ character - this means the message is a reply to another message:

If you hover the mouse over the message, the message being replied to gets highlighted:

Clicking on the ↰ brings you to the reply. Hovering a message reveals a ↳ character at the end of the message:

Clicking on the ↳ starts a reply to that message.
This is a super simple API that is super useful. It particularly eliminates the need of quoting messages, because everything is hyperlinked, and people can easily reply and jump to replies.

even whatsapp has it

Yes, whatsapp + telegram both have this and it is great.

(That said, I still think quoting is useful as part of the UI -- I'd just like to have a link to the thing that was quoted.)


Feature/localisation

You can find localization messages in src/data/messages in JSON format.
Please look at the header component as a usage example.
More at https://react.i18next.com/
P.S. @pnhepw  I have utilized Local storage instead of url paths as it comes with react-intl18next package out of the box, but we can discuss it still.

@OrionT I think it's not very important now.
But it seems to me it's better to use url because in such way user will be able to share site in proper language.

@OrionT I think it's not very important now.
But it seems to me it's better to use url because in such way user will be able to share site in proper language.

@rss-maksim Ok, let's discuss it on a meeting and decide whether a new task is needed.


Does monotone_constraints work when boosting_type = 'rf'?

Does monotone_constraints work when boosting_type = 'rf'?
Thank you.

@CharlesAuguste , can you also help to answer this question?

Hello @flippercy, as far as I understand, monotone constraints should work for random forests. Monotone constraints should be independent from the boosting type, because the constraints are enforced on the tree level, and when you sum positively weighted monotone trees, you end up end up with a monotone result. If you think you found a case where this is not working, please post an example that can be reproduced, or the set of parameters you are using for your training, so we can investigate. Thanks


Implement rvalue constructors, rvalue assignment and the move function for all container classes

To avoid unnecessary copy operations those functions should be implemented for all container classes

Normally the compiler optimizes uses copy elision where possible.
The move constructor +assignment are implicitly defined if you define no special members at all, so it should work out like it is.
Did you have a specific line in mind where an unnecessary copy happens?

Yes, there are a few cases where it would be safer to provide a manual implementation:

class variables are pointers
constructors that currently take as param a bitset which then gets copied on assignment - provide a constructor that specifically takes a rvalue as well

Instead of explicit overloads, we can use perfect forwarding to take care of all kinds of references.
void f(X const &x) { doSomethingConst(x); }
void f(X &&x) { doSomethingNonConst(std::move(x)); }

turns into
template<class U>
void f(U&& x) { doSomething(std::forward<U>(x)); }

If we want to move a value away, we call f(std::move(myArg)), if we want to keep using it, we call f(myArg).
For example:
Bitset<uint8_t> b(100);
// ...
RankSelect r(std::move(b));  // `r` steals `b`

Here, the RankSelect constructor will choose the rvalue overload and std::forward the given Bitset into its members.
(implemented in branch variant-bitset)

https://en.cppreference.com/w/cpp/utility/forward


Error in auto-generated code

Hi -
I have a form that is linked to a query in the Kitchen GUI (query name): findpersonsquerygetdata.
This gives me the following line in validateForm:
Findpersonsquery.update({ _id: t.data.findpersonsquerygetdata._id }, { $set: values }, function(e) { if(e) errorAction(e); else submitAction(); });
Now, the app reports an error from the above line occasionally on my local environment. If I then restart the app, the error goes away.
But if I deplay the app on meteor.com (meteor deploy ...), the error is there all the time.
The error is that t.data.findpersonsquerygetdata is undefined which is really strange.
What could be the reason?

@xauxatz strange. Is controller properly subscribed to that query? (do you have Meteor.subscribe("findpersonsquerygetdata"); in controller isReady function?).
Does your query requires parameters (and maybe those params are not set?). Please show me publish and subscribe code for that query.

Yes, isReady in the controller has this:
var subs = [
Meteor.subscribe("findpersonsquerygetdata")
];
The data() function has this:
return {
params: this.params || {},
findpersonsquerygetdata: Findpersonsquery.findOne({}, {})
};
(Could it be due to the "findOne"?)
Here's the publish code:
Meteor.publish("findpersonsquerygetdata", function() {
return Findpersonsquery.find({}, {});
});

How this happened? Meteor Kitchen should produce findOne both server and client-side (if "find_one": true is set in query definition).
Anyway, this code should work. Maybe your Findpersonsquery is empty?

(btw, just an andvice, it would be more readable if you name your collection find_persons_query - kitchen will produce FindPersonsQuery, especially your query: findpersonsquerygetdata is hard-to-read :) )

Thanks, and I finally figured it out by now.
First time I run the app, the collection for the form is empty. Updating
it will not work then, since there is no prior data to update.
I had the form set to "insert" at that time. Later I switched to
"update" for the form and since there was data in the collection, it
worked well.
Then at a point I reset the mongo database, and of course the collection
was now empty and updating the form would not work...
On 14-Oct-15 09:50, Petar Korponaić wrote:

(btw, just an andvice, it would be more readable if you name your
collection |find_persons_query| - kitchen will produce
|FindPersonsQuery|, especially your query: |findpersonsquerygetdata|
is hard-to-read :) )
—
Reply to this email directly or view it on GitHub
https://github.com/perak/kitchen-site/issues/153#issuecomment-147965570.

In that case, you need upsert form (insert if empty, otherwise update). That is not supported by kitchen (yet). Do you need that? Or... is data in your form fixed? (in that case, you can insert data inside server.startup if collection is empty - or insert some default data, that user can modify - and create just update form).
However, is this issue fixed now and can be closed?

Yes, I think I can manage it on my own without you implementing "upsert" :-)
Thanks, you can close it
On 14-Oct-15 11:28, Petar Korponaić wrote:

In that case, you need |upsert| form (insert if empty, otherwise
update). That is not supported by kitchen (yet). Do you need that?
Or... is data in your form fixed? (in that case, you can insert data
inside |server.startup| if collection is empty - or insert some
default data, that user can modify - and create just update form).
However, is this issue fixed now and can be closed?
—
Reply to this email directly or view it on GitHub
https://github.com/perak/kitchen-site/issues/153#issuecomment-147988735.

:+1:

Hi Perak
I could actually well use the "upsert" form option now as my code is
becoming quite messy, trying to handle this situation.
Thanks.,..
On 14-Oct-15 11:28, Petar Korponaić wrote:

In that case, you need |upsert| form (insert if empty, otherwise
update). That is not supported by kitchen (yet). Do you need that?
Or... is data in your form fixed? (in that case, you can insert data
inside |server.startup| if collection is empty - or insert some
default data, that user can modify - and create just update form).
However, is this issue fixed now and can be closed?
—
Reply to this email directly or view it on GitHub
https://github.com/perak/kitchen-site/issues/153#issuecomment-147988735.

--
Claus Skaaning
Adm. direktør / CEO
Sales on Tap
http://www.sales-on-tap.com Th. Staunings Vej 48
http://maps.google.com/maps?q=Th.+Staunings+Vej+48%2CAalborg+DK-9210%2CDenmark&hl=en
Aalborg DK-9210 Denmark
Mobile: +45 20690771
Email<EMAIL_ADDRESS><EMAIL_ADDRESS>Professional Profile http://dk.linkedin.com/pub/claus-skaaning/0/53/503


Unable to benchmark hadoop on k8s-cluster

I have deployed HDFS on k8s-cluster following the HDFS repo readme. I have used OpenEBS for the HDFS volumes. All components are running fine.
Now I want to benchmark hdfs. I tried using TeraGen, I exec inside hdfs client pod, went to path /opt/hadoop-2.7.2/share/hadoop/hdfs and run this command: hadoop jar hadoop-hdfs-2.7.2-tests.jar TestDFSIO -write -nrFiles 1 -fileSize 1000 . But it didn't worked and the folowing output.

root@my-hdfs-client-544d894fc7-vnljw:/opt/hadoop-2.7.2/share/hadoop/hdfs# hadoop jar hadoop-hdfs-2.7.2.jar TestDFSIO -write -nrFiles 1 -fileSize 1000
Exception in thread "main" java.lang.ClassNotFoundException: TestDFSIO
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:214)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

I don't khow how to proceed. I didn't found any steps or reference docs on the official github repo.

Hello shashank855  .
How about Benchmark hdfs on K8s now ? I'm try to benchmark it ...

Hello shashank855  .
How about Benchmark hdfs on K8s now ? I'm try to benchmark it ...


Replaced the Angular ToDo sample

Q
A

Bug fix?
no

New feature?
no

New sample?
no

Related issues?
n/a

What's in this Pull Request?
Replaced the Angular ToDo sample. The latest version of the sample doesn't use ngOfficeUIFabric which collides with Office UI Fabric used by the SharePoint Framework. Instead all CSS styles are embedded in the web part.

I do not understand this code, can you please explain it,

As I read it it does sequentially:

Create Promise
Find todo by ID
2A. delete item
2A. resolve Promise
or
2B. reject Promise
return Promise

If it is meant to be an Angular example, the above code is totally different from  the Angular documentation:
// perform some asynchronous operation, resolve or reject the promise when appropriate.
  return $q(function(resolve, reject) {

  });
}

What does SPFx do with Promises that we have to use this pattern?

It's just a different way of working with Angular promises. In this particular example, using promises is not necessary, as the web part uses a static data set, but in case you would replace the static data with data from SharePoint you could easily replace the piece of code responsible for retrieving the data and reuse everything else.

So with SPFx one does not need the Angular notation ?
  return $q(function(resolve, reject) {

  });

You can use $q in two ways: either using the promise-like convention you mentioned or using deferred like I did. SPFx doesn't infer any limits in this case.
For more information see https://docs.angularjs.org/api/ng/service/$q which shows both conventions.

Cool!
So this functions returns the Promise at the start of execution?
Never imagined Promises could work that way
But why is the return deferred.promise; at the end of the Function then?

When working with $q the same way you work with promises, all of the code is wrapped in the promise. When working with deferred, that's not the case, so if you would return the promise from deferred immediately, none of the code would be executed. This is why returning the promise is the last line of code in the function.

So the resolve or reject execute before the promise is returned?
Danny Engelman http://www.engelman.nl/
<EMAIL_ADDRESS>http://www.LinkedIN.com/in/dannyengelman
► 365Cooperatie.nl
► bikeswap.org - borrow a motorcycle, loan a motorcyle
Learn from the past
Live in the present
Believe in the future
2017-03-12 14:08 GMT+01:00 Waldek Mastykarz<EMAIL_ADDRESS>
When working with $q the same way you work with promises, all of the code
is wrapped in the promise. When working with deferred, that's not the case,
so if you would return the promise from deferred immediately, none of the
code would be executed. This is why returning the promise is the last line
of code in the function.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-fx-webparts/pull/152#issuecomment-285943531,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADOduYyf_xDadeorat6F0PiVrcql5Qp_ks5rk-5KgaJpZM4MZk0o
.

If you reject or resolve a deferred object before returning its promise, then the promise will be returned finished already and the code following the promise will execute immediately. If you return the promise before resolving/rejecting it, then the code following the promise will wait until the promise is resolved/rejected.

I get it now!!... its kinda like Promises inside Promises
If the example confuses me.. I must be stupid
I would do it something like this pseudo code.
    public deleteTodo(todo: ITodo, matchingKey: String = 'id'): ng.IPromise<{}> {
        return $q((resolve, reject) => {
            const lengthBeforeDelete = this.items.length;
            this.items = this.items.filter((item:ITodo) => {
                return item[matchingKey] !== todo[matchingKey];
            });
            this.items.length < lengthBeforeDelete ? resolve() : reject();
        });
    }
```

No, I still don't get your code...
you return the deferred (which is already resolved) at the end of your function
I can't get it how this can work as Promise.. where the Promise is returned first and the resolve executes later.
The Angular page you refer to uses setTimeout

As I mentioned before: in this particular example using promises has no point since the returned data is already available and the promise is resolved before it's returned. If you would however want to retrieve the data from SharePoint or another API, then you would first return the promise and resolve it later, like: https://github.com/waldekmastykarz/demo-sharepoint-todo-angular/blob/db9bdcea16051f061e16cbe7b935a2b74c618e04/app/data.service.js#L15-L43

Now we are there... "Then you would First return the Promise"
So the current code is, in your words, an example,
and uses the wrong pattern to do Promises.. since then the code needs to
return the Promise first..
Certainly one of the more intriguing examples I have seen in a long time...

I'm afraid you drew a wrong conclusion. Imagine the following scenario: you have an Angular service that retrieves data from an API and caches it for subsequent requests. The first time the promise is returned and is being resolved with a delay after the data from the remote API has been retrieved. The second time around, when the data is already available in the cache, the returned promise would already be resolved without any delay.

So how does that apply to your function:
The only line it returns a Promiseis 89
That means 73 - 87 always execute prior to the Promise being returned.
It is a sync function,
the only way to turn this into a Promise is to wrap it in a return $q
that means your ng Promise example code is missing a (rather vital) statement

As you've noticed yourself: the last line does return a promise. Even if you would wrap the whole code block in $q the result would be the same: a promise.
Promises can be returned from sync functions. The case of a service caching data, that I mentioned previously, is a perfect example of working with promises both in sync and async flows. To methods using the service it doesn't matter if the flow inside the method they are calling is sync or async. In either case they receive a promise and continue once it's resolved. When the flow is async, the promise is resolved after a slight delay. In a sync flow the promise is resolved immediately.


Better error handling

When i do:
try {
  $("#your_div_id_result").pptxToHtml({
    ...
  });
} catch (ex) {
}

it does not seem to catch the error.
I must use:
window.addEventListener("error", function(event) {}, false);

Maybe pptxToHtml can return a Promise?

@def00111  Thanks for all your comments ... I'm currently in the process of fixing bugs, and in the future I plan to change and add more features :)


Simplified Week View

Greetings calendar master.
Your api is great, but I wonder if it is possible a special week view where there are no days. Of course with Events. I mean like this,

Hi @rogeliohoyos, thanks for your feedback.
How do you expect the events to be displayed in this view? do you have in mind something like this https://antoniandre.github.io/vue-cal/#ex--timeless-events in day view?
I am not sure if it is a good thing to mix the events of a whole week in one cell, and you won't have the time information obviously. But if this is what you want here is what I suggest you could do:

get all the events from vue-cal current view on view change
display the events in a container outside of vue-cal and show it on top of vue-cal when current view is week
clicking an events goes to vue-cal day view (optional)

I created a demo for you here https://codepen.io/antoniandre/pen/gNeKmY.
Let me know if something is not clear or if you need more assistance.

Closed for inactivity.


Add TO Client refreshing cookie on auth fail

Fixes #1523

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/643/
Test PASSed.

SUCCESS
No test results found.
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/600/

FAILURE
No test results found.

SUCCESS
No test results found.
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/650/
Test PASSed.

FAILURE
No test results found.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/607/

FAILURE
No test results found.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/608/

Fixed merge conflicts

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/655/
Test PASSed.

SUCCESS
No test results found.
Test PASSed.

FAILURE
No test results found.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/613/

SUCCESS
No test results found.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/615/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/657/
Test PASSed.

SUCCESS
No test results found.
Test PASSed.


Implement default loadouts

Allow the user to choose gear and assign that gear to categories.
These categories can be synergized with the synergyDefinitions to suggest loadouts based on the user-specified items.

User can freely choose weapons that are sorted into rows by their weapon type.
Weapons can be synergized via the following properties:

Ammo Type
Weapon Type
Damage Type

(Later Version) Users should be able to freely choose gear, such as ghosts and armour, this includes mods too.
Gear will be sorted into its respective column/row on the UI by its type.

All Gear Items should be sorted by properties, in this order: (Using properties were applicable)

Item Rarity
Item Power Level
Item Total Stat Counter

Progress has been made on the default loadouts menu.
The information that I am using currently does not show all weapons on the users accounts.

Progress has been made on the default loadouts menu.
The information that I am using currently does not show all weapons on the users accounts.

Correct gear is being shown in the default loadouts iframe, however, a design is for default loadouts is much needed.

Create 3 categories

kinetic
energy
power

Sort the weapons into their categories
Sort contents of each category by rarity then power level
Make the items draggable into the left panel and save the items via some solution

Weapons are sorted into their categories and are draggable.
Left hand side panel must be able to "catch" whatever the user drops and sorts it into the respective container and arrays.
Save to localStorage or indexedDB.

Closing this issue for now.
https://github.com/brendanprice2003/D2-Synergy/issues/61


Switching transparency default to “opaque”

The GoogleCalendar API is returning no 'transparency' property for busy events. According to the docs, opaque is considered the default.

Looks good, thanks!


(RE)Pull Request

Double checking on whether pull requests were sent properly

Looks like the first request was merging commits form your repo branch to my branch. This one looks good! 👍 🏆


Blocking Sublime Text async thread while waiting the language server to answer

Related to:
https://github.com/tomv564/LSP/issues/255 python-language-server hanged Sublime Text by several seconds on file close event

Also a duplicate of https://github.com/tomv564/LSP/issues/146?
Again, investigate the language server or include logs if you think LSP is doing something wrong


Avoinding reallocations when doing a cartesian product

I have some code that looks like this:
playground
use rayon::prelude::*;

#[derive(Debug)]
struct BigStruct {
    a: u128,
    b: u128,
    c: u128,
    d: u128,
    e: u128
}

impl BigStruct {
    fn new(x: u64, y: u64) -> Self {
        BigStruct {
            a: x.into(),
            b: x.into(),
            c: x.into(),
            d: y.into(),
            e: y.into(),
        }
    }
}

fn main() {
    const X: u64 = 5;
    const Y: u64 = 5;
    let pairs: Vec<BigStruct> = (0..X)
        .into_par_iter()
        .flat_map(|x| (0..Y).into_par_iter().map(move |y| (x, y)))
        .map(|(x, y)| BigStruct::new(x, y))
        .collect();

    pairs.iter().for_each(|b| println!("{:?}", b));
}

When I went to profile it, with a very large X and Y I found that most of my execution time was spent on malloc. The natural next step, then, was to try and preallocate the Vec to have the correct size, as this at least means no calls to realloc. I learned about collect_into_vec() and decided to try and use it:
playground
use rayon::prelude::*;

#[derive(Debug)]
struct BigStruct {
    a: u128,
    b: u128,
    c: u128,
    d: u128,
    e: u128,
}

impl BigStruct {
    fn new(x: u64, y: u64) -> Self {
        BigStruct {
            a: x.into(),
            b: x.into(),
            c: x.into(),
            d: y.into(),
            e: y.into(),
        }
    }
}

fn main() {
    const X: u64 = 5;
    const Y: u64 = 5;
    let mut pairs: Vec<BigStruct> = Vec::with_capacity((X * Y) as usize);
    (0..X)
        .into_par_iter()
        .flat_map(|x| (0..Y).into_par_iter().map(move |y| (x, y)))
        .map(|(x, y)| BigStruct::new(x, y))
        .collect_into_vec(&mut pairs);

    pairs.iter().for_each(|b| println!("{:?}", b));
}

This, however, fails due to there not being collect_into_vec() for ParallelIterator, and the call to flat_map() I think converts the IndexedParallelIterator into a plain ParallelIterator.
error[E0599]: no method named `collect_into_vec` found for struct `rayon::iter::map::Map<rayon::iter::flat_map::FlatMap<rayon::range::Iter<u64>, [closure@src/main.rs:32:19: 32:66]>, [closure@src/main.rs:33:14: 33:43]>` in the current scope
  --> src/main.rs:34:10
   |
34 |         .collect_into_vec(&mut pairs);
   |          ^^^^^^^^^^^^^^^^ method not found in `rayon::iter::map::Map<rayon::iter::flat_map::FlatMap<rayon::range::Iter<u64>, [closure@src/main.rs:32:19: 32:66]>, [closure@src/main.rs:33:14: 33:43]>`
   |
   = note: the method `collect_into_vec` exists but the following trait bounds were not satisfied:
           `rayon::iter::map::Map<rayon::iter::flat_map::FlatMap<rayon::range::Iter<u64>, [closure@src/main.rs:32:19: 32:66]>, [closure@src/main.rs:33:14: 33:43]> : rayon::iter::IndexedParallelIterator`

I'm kind of at a loss with how to correctly create an iterator over the cartesian product of two ranges and then collect it into a preallocated vector. The only solution I can see is to implement cartesian() for IndexedParallelIterator so that I can retain the indices instead of losing them in the flat_map(). This, of course, would have to be done inside rayon, but I am hoping there are other solutions.
What is the right way to get an IndexedParallelIterator that's the cartesian product of two IndexedParallelIterators?

the call to flat_map() I think converts the IndexedParallelIterator into a plain ParallelIterator.

Yes, since flat_map only has to return some IntoParallelIterator type, it doesn't have to be indexed, so we don't have any idea how to offset each parallel flat_map invocation. Actually, even if we did have a variant that required the inner part to be IndexedParallelIterator, we still wouldn't know each of their lengths ahead of time -- there's nothing to say they even have to be the same!

The only solution I can see is to implement cartesian() for IndexedParallelIterator so that I can retain the indices instead of losing them in the flat_map(). This, of course, would have to be done inside rayon, but I am hoping there are other solutions.

I think that's possible, and it doesn't have to be part of rayon if you do it as your own extension trait. We made iter::plumbing public exactly to allow third party iterators. It won't be trivial to handle splits at possible odd boundaries, but not insurmountable.
If we do add something like this to rayon, it would be nice to model it after Itertools::cartesian_product for feature parity.
PS - I hope you have more than simple initialization to do in parallel -- I expect once we solve pre-allocation, your example would quickly run into a barrier of memory bandwidth when you try to scale up. It might not be much better than serial code.


--site-dir has precedence over --no-site-dir, order should be swapped

@bdbaddog requested this ticket
Currently, if you run scons --site-dir=xyz --no-site-dir, SCons will ignore the --no-site-dir flag due to the order of the code below:
if options.site_dir:
    _load_site_scons_dir(d.get_internal_path(), options.site_dir)
elif not options.no_site_dir:
    _load_all_site_scons_dirs(d.get_internal_path())

However, I think it makes sense to reverse these and let --no-site-dir take precedence. That way, you can specify an arbitrary --site-dir using SCONSFLAGS or a shell alias, but still override that if needed. Currently you can override one site-dir with another by appending a second flag, but there is no way to disable the site-dir once it is on the command line.
The one reverse argument is if you had SCONSFLAGS='--no-site-dir' and appended a site-dir locally, it would not get read in. I would expect that to be an extremely uncommon situation, since it would be easier to just rename the local site-dir to something other than site_scons and avoid needing the --no-site-dir flag at all.

It should be based on order in the command line, the current oddity is it's treated as two different variables during options processing, more logically the same variable would be updated, that way you easily get "last one wins".

The attached diff illustrates what I'm thinking of.
3904.txt

That was similar to what I was thinking, but I wasn’t certain if multiple options could store to the same variable or not. If they can then yes that is the easiest way to go for sure.

Yes, optparse allows multiple options to have the same variable to store to.  It's not cumulative unless you use action="append", which is sometimes useful, though doesn't seem to be required here.


add s3 client model download

Let's move to #51 as it is base on newer codebase with no conflicts (i twas easier to move this code amnually that mergin/repasing)


Capacitor v4 support

Capacitor v4 has been released and it would be great for this plugin to support v4.
The required change is actually quite small. An example migration can be found here: https://github.com/capacitor-community/http/pull/275/files
If you have no time to do so I will create a PR for it. But currently I don't have any time either.

https://github.com/NePheus/capacitor-android-shortcuts/pull/6

Oh wow, that was fast 😄 Thank you @NePheus!


required assets in Rails5

In order to run properly in Rails5 you need to add
Rails.application.config.assets.precompile += %w( country-4x3/* )
Rails.application.config.assets.precompile += %w( country-squared/* )

in initializers/assets.rb
Please tell me if I am wrong

1.0.0-beta3 fixes this and is complete. Will release when back to civilization.

Give 1.0.0-beta3 a try, and if borks out for any reason, c'mon back.

Yes, looks good. Thank you!

🍻
On Mon, Apr 24, 2017 at 6:14 PM Jan<EMAIL_ADDRESS>wrote:

Closed #10 https://github.com/steakknife/svg-flags-rails/issues/10.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/steakknife/svg-flags-rails/issues/10#event-1055802453,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AANsMJgXRbgrarSDeU6Bvp3tIhXuQxh6ks5rzUjpgaJpZM4NFpBa
.


About Training Dataset

Thanks for this work. And which dataset is employed to train two provided models, the original PrIMuS or Camera PrIMuS ?

Hi,
The provided models were trained with PrIMuS, but the scripts can be executed for training with Camera-PrIMuS.

Thanks. Another question: Do you consider to support multiple-voice polyphonic staves in near future?

Of course, that's an ongoing line of research but I don't know when I might get some results.


[Feature] In paimon catalog, add partition  query and cache

Search before asking

[X] I searched in the issues and found nothing similar.

Motivation
In the OLAP scenario, it is necessary to obtain the maximum partition of the table.Currently, the partition is obtained through createReader, which takes about 500ms. Therefore, it is necessary to add partition query and cache in paimon catalog
Solution
No response
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

+1

good feature
+1


TypeError in floatToGoString in utils.py

When one PureStorage array controller is failed it reports None value for metric purefa_network_interface_performance. The function floatToGoString fails because it cannot handle None value.
I added two lines in my local copy of "utils.py" to make this function work, so it replaces None value with 0 (zero).
Instead of:
def floatToGoString(d):
   d = float(d)

I use:
def floatToGoString(d):
    if d is None:
        d = 0
    d = float(d)

Below is the error message:
File "/home/pure_exporter/venv/lib/python3.7/site-packages/prometheus_client/utils.py", line 9, in floatToGoString
d = float(d)
TypeError: ("float() argument must be a string or a number, not 'NoneType'", Metric(purefa_network_interface_performance, FlashArray network interface performance, gauge, , [Sample(name='purefa_network_interface_performance', labels={'interface': 'ct0.eth5', 'dimension': 'rx_bytes'}, value=None, timestamp=None, exemplar=None),

That may work for your case, but I am not sure it is behavior we want in the library. Do you know how a value of None was set in that metric? That seems like a bug in the collector, or maybe elsewhere in this library. If anything I would expect None to translate to NaN not 0.


[SPARK-36288][DOCS][PYTHON] Update API usage on pyspark pandas documents

What changes were proposed in this pull request?

Update api usage examples on PySpark pandas API documents.
Why are the changes needed?

If users try to use PySpark pandas API from the document, they will see some API deprication warnings.
It is kind for users to update those documents to avoid confusion.
Does this PR introduce any user-facing change?

No
How was this patch tested?

make html

Can one of the admins verify this patch?

Merged to master and branch-3.2.


Unable to use drop-down

I am unable to use drop-down as the menu won't drop down on click.

I'm sorry for raising this issue. I forgot to add js.


Db project: "Go to definition" for a stored procedure/function should open the file where the proc/function is defined

I am using Azure Data Studio 1.27.0 with the SQL Database Projects plugin v 0.7.1 on macOS Catalina 10.15.7.
Within a database project created from a database (.sqlproj), I open a file where one of my stored procedures is declared (e.g. MySchema1/StoredProcedures/MyStoredProcedure1.sql).
This stored procedure calls another stored procedure that I want to see the definition for and edit:
EXEC MySchema2.MyOtherStoredProcedure ....
Describe the solution or feature you'd like
If I right-click the name MyOtherStoredProcedure and choose "Go to definition", I would expect Azure data studio to open the file where I have defined that stored procedure that belongs to my database project, e.g.  MySchema2/StoredProcedures/MyOtherStoredProcedure.sql
This is how it works when working in SQL projects using SSDT in Visual Studio 2019.
Additional context
In Azure data studio, however, I get an message "No definition found for 'MyOtherStoredProcedure'"
If I connect the tab with MyStoredProcedure1.sql to the database from which the project was created, and choose "go to definition", Azure data studio opens up a temporary file /var/folders/v5/c7jw5z0n2cbbv4y54wp6vd280000gn/T/mssql_definition_202104081356548398/MySchema2. MyOtherStoredProcedure.sql that contains the definition for the stored procedure, but this is not what I want as I want to see/edit the file in my sql project.

similar to enhancement request in https://github.com/microsoft/azuredatastudio/issues/13976

I would say that that #13976 covers this plus more. The ability to Go-to-Definition should cover all objects, tables, views, UDFs, triggers, etc in addition to stored procedures.
This is currently possible in VS 2022, but not supported in ADS.


Improving semantics around reference objects on the validation schemas

I'd like to propose a suggestion for improving some of the semantics around reference objects as expressed on the various specs' JSON schema documents.
If this would sound compelling, I'd happily contribute an appropriate PR.
Please raise any concerns that pop up! 🙏🏻
So far we've been using such solution beneficially for a while here on Rapid to improve validation experience.
Consider for instance the current Reference object definition from the v3.0 schema:
https://github.com/OAI/OpenAPI-Specification/blob/24088857068802d5fd4e4f8bef3f95ef06fa8830/schemas/v3.0/schema.json#L54-L65
It specifies the $ref property as a general URI-formatted string.
What I'd like to propose is a change that would help verify that the type of destination a local reference object is pointing to - is actually the correct kind of definition it's expected to reference - for example, be able to detect as an error a case where a local reference object in place that is expected to reference a response is in fact referencing a schema.
We should be able to implant these semantics inherently in the JSON schemas by splitting the current sole Reference object definition into several more specialized definitions corresponding to every kind of reference we could have in a given specification version (e.g responses, request bodies, parameters...) - all of which will basically resemble the current existing one, except each's $ref property will be enhanced by an extra pattern keyword with some carefully crafted regex. The regex will ensure that, for the case of a reference of a response for example - the pointer string will have to be in a form that can refer only to locations where response definitions could actually be found.
This could something like this for start, replacing the current generic Reference definition:
"ResponseReference": {
  "type": "object",
  "required": [
    "$ref"
  ],
  "patternProperties": {
    "^\\$ref$": {
      "type": "string",
      "format": "uri-reference",
      "pattern": "{{{ a regex for strings in the form #/components/responses/* }}}"
    }
  }
},

"RequestBodyReference": {
  "type": "object",
  "required": [
    "$ref"
  ],
  "patternProperties": {
    "^\\$ref$": {
      "type": "string",
      "format": "uri-reference",
      "pattern": "{{{ a regex for strings in the form #/components/requestBodies/* }}}"
    }
  }
},

"SchemaReference": {
// ...

/*
  (of course, each pattern will be made to also cleanly pass for ANY file or remote references,
  as for these we obviously cannot statically determine the destination type)
*/

And respectively with this, every place across the entire schema that is currently defined as "X or possibly a reference" - would be edited into sort of a "X or possibly a response/parameter/example*|...-reference", and so on, by mentioning any of the specialized reference types illustrated above.
Even though this improvement can only benefit local references and not external ones - the former are so basic and frequent enough that the common mistakes and misunderstandings this could save should make it worth something.
Thanks for reading! How appropriate or feasible does this sound like? :)

I get the enhancement you're shooting for here, but using regexes sounds complex to maintain and potentially brittle. Currently $refs are allowed to point anywhere in the document or subdocument, and subdocuments don't even have to be structured like an OpenAPI document. External $refs are common and complex. How would this be achievable in practice?

This use case will be addressed by the OAS compliance parser project (which does not currently have its own repository).  See Appendix D in that document for the currently funded scope for work in 2023.
Semantic validation technologies are better suited for this sort of relational enforcement than JSON Schema.


How to use this strategy in a Flutter module?

Integrating is as simple as adding 1 line to your main target in your projects Podfile

How to use this in a module? ( flutter create -t module ... ): Those don't have a Podfile themselves
For production, I suppose you could add it to a Podfile of every app that depends on the module.
For dev, I suppose you can modify the module's .ios/ dir, even though it is ephemeral.
Both of those can be somewhat inconvenient when you try to create an easy-to-use module:
Would it be possible to apply firestore-ios-sdk-frameworks's prebuild strategy from the .podspec of a plugin ( flutter create -t plugin ...) that the module depends on in addition to cloud_firestore? i.e. if firestore-ios-sdk-frameworks itself was a plugin you depended on in pubspec.yaml.
Or would one have to fork cloud_firestore and related plugins and have them themselves ship prebuilt frameworks in order to get that to work?

Unfortunately CocoaPods only supports this kind of override thing at the Podfile level, Podspecs don't support this - I tried originally to do this for cloud_firestore but in the end this repo + adding to Podfile was the only viable solution.
If this is applied in a users Podfile it overrides any podspec that is using Firestore so it should still in theory already apply to any other custom flutter modules that are using Firestore. If the users of your module are already using cloud_firestore then this seems ok to me?

Ok, thanks for the reply!
We happen to not use cocoa pods in a particular app that uses the module. We use flutter build ios-framework and drop in the frameworks in the app (programmatically) as per the add to app guide. Haven't found a way for that command to just build App.framework to speed up consecutive runs though, so it is always rebuilding everything and Firestore takes forever as usual, hence looking at your repo (using it in another regular Flutter project with great results). (Maybe I'll try a local mod of cloud_firestore & co next, to somehow only include the dart parts on consecutive runs of flutter build ios-framework)
Do you know whether FirebaseExtended/flutterfire are considering going down the prebuilt route themselves?


Add plot-area-overlay to cartesian chart with overflow visible

I've come across many use-cases where I would like to permit overflow of some components within the plot area but not others e.g. hidden for series, visible for decorated line annotations. I would propose adding a new plot-area located on top of the existing one with exactly the same API.

With our d3v4 we will no longer have a cartesian chart - see https://github.com/d3fc/d3fc-element instead.


[Question]: lightweight colbert rerank installation

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
At this moment llama-index-postprocessor-colbert-rerank import requires torch and his nvidia-* dependencies. Is there any way to avoid these download/import in order to make the build time smaller and decrease packages size? Thanks

Since the llamaindex application is inside a flask environment, is there any way to not recreate a instance of the rereranker model for any request?


Feat/expr combinators

Closes #6

Documentation needs doing, but might as well merge down and make a preliminary release.


Fix compatibility issue for python3

this should not be necessary (auto converted by 2to3), if you want to remove the prionts, they should be warnings or logged as warnings #363 !!

It should be, but it wasn’t automatically converted for some reason. But yes, it should indeed be logged and not printed. Will change that.


Change loops conditions to make zero loop risk more obvious.

Fixes openssl#18073.
I compiled libcrypto.so with flags: linux-x86_64, no-asm and generated ASM for the modified functions looks to be the same with and without these changes. And the changes increases readability a bit.

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

Merged.


Add service image build example

- What I did
Added an example of a Docker App that has service images that can be built.
- Description for the changelog
N/A

https://github.com/docker/app/tree/master/examples/voting-app is already such a docker app build sample, maybe it should have better documentation to make it visible ?


POP-WILDFIRE - HazardArea limitations

Harmonisation Project in which this issue occurred
POP WILDFIRE
Tool used
NA
Description
The Natural Risk Zone theme, feature type HazardArea limitations.  For the purpose of this user case, the output could potentially provide relevant information regarding not only the likelihood of occurrence or the intensity but also regarding the different individual factors that create the hazard. Those limitations can only be solved by extending the INSPIRE schema.
Type of issue
Select what type of issue you've encountered. Use one of the following types:

other issue: Limitations with the destination schema

Workflow
Describe the concrete workflow steps that led to the problem.
Impact
Need to extend the destination schema to accommodate the data processed.
Related issue(s)
If this issue is related to one or multiple issues described in other repositories, such as the hale studio repo, please link to it.

Hi David,
thanks for the issue.
Type of issue
Please explain more detailed what kind of limitations you've found regarding the destination schema within section "Type of Issue" and mention the destination schema resp. provide a URL to the specification.
Workflow
Please provide a description of the workflow that led to the problem
Do you have a test data set mapped based on  INSPIRE Hazard Theme which you could upload here and explain the limitations based on that ?
Impact
Do you have an extension concept ? If yes, please attach this to this issue


Pass price_estimates and time limit into main solver method

async fn solve(&self, orders: Vec<Liquidity>, gas_price: f64) -> Result<Vec<Settlement>>;

should become something like
async fn solve(&self, orders: Vec<Liquidity>, gas_price: f64, price_estimates: HashMap<H160, Ratio<BigInt>>, deadline: Instant) -> Result<Vec<Settlement>>;

Since price estimates (spot prices of baseline liquidity before the batch) are relevant for computing the objective value (in particular to normalize surplus across different tokens) it makes sense to pass them into the solver directly. At the moment the SellVolumeFiltering1InchSolver and the MIP solver requery price estimates themselves.
Moreover, since solver futures will be cancelled if not finished in time (and cause an error to be logged) it makes sense to also make the solvers aware of the concrete deadline. This way solvers that know they might time out (e.g. the 1Inch solver) can cancel their internal futures just before and swallow the time out error. It also allows for more sophisticated logic when deciding how many more orders can be solved before the timeout is hit.

Deadline has already been added. Price estimates could still be added (since they are part of the optimisation criterion which uses them to normalize the surplus in different tokens)


MP4 download using GetObjectRequest results in a corrupted file

Hi,
I'm using the following code for downloading a public MP4 video file from an S3 bucket to my local disk.
The downloaded file size looks OK but the file is corrupted for some reason.
What am I doing wrong?
Aws::Client::ClientConfiguration config;
config.scheme = SCHEME;
config.connectTimeoutMs = TIMEOUT_MILLIS;
config.requestTimeoutMs = TIMEOUT_MILLIS;
config.region = REGION;
std::shared_ptr<Aws::S3::S3Client> s3Client = Aws::MakeShared<Aws::S3::S3Client>(ALLOCATION_TAG, config);

Aws::S3::Model::GetObjectRequest getObjectRequest;
getObjectRequest.SetBucket(BUCKET_NAME);
getObjectRequest.SetKey(MP4_FILE_NAME);
getObjectRequest.SetResponseStreamFactory(
	[]() {
	return Aws::New<Aws::FStream>(ALLOCATION_TAG, LOCAL_MP4_PATH, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
});
auto getObjectOutcome = s3Client->GetObject(getObjectRequest);

I think you forgot the std::ios_base::binary flag
Sent from my iPhone

On Jul 2, 2016, at 5:42 AM, ofirlessel<EMAIL_ADDRESS>wrote:
Hi,
I'm using the following code for downloading a public MP4 video file from an S3 bucket to my local disk.
The downloaded file size looks OK but the file is corrupted for some reason.
What am I doing wrong?
// Create a client
Aws::Client::ClientConfiguration config;
config.scheme = SCHEME;
config.connectTimeoutMs = TIMEOUT_MILLIS;
config.requestTimeoutMs = TIMEOUT_MILLIS;
config.region = REGION;
std::shared_ptrAws::S3::S3Client s3Client = Aws::MakeSharedAws::S3::S3Client(ALLOCATION_TAG, config);
Aws::S3::Model::GetObjectRequest getObjectRequest;
getObjectRequest.SetBucket("mashapp-inventory");
getObjectRequest.SetKey(MP4_FILE_NAME);
getObjectRequest.SetResponseStreamFactory(
{
return Aws::NewAws::FStream(ALLOCATION_TAG, LOCAL_MP4_PATH, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
});
auto getObjectOutcome = s3Client->GetObject(getObjectRequest);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I did! Thanks!


Don't remove completed tracks from AudioManager

This will also apply to samples, which currently rely in this behaviour to avoid existing forever.

Yeah this needs to be made into a local settable field if anything imo... I don't like tracks not always being removed either as that causes more pressure on the audio thread/more calls to BASS.


Fatal Python error: Aborted when running mnist.py example

Hi there! I've been trying to get familiar with the library by running some examples in the examples/ folder. My environment was set up according to the instructions on https://github.com/google/jax#installation and https://github.com/deepmind/dm-haiku#installation.
On running the mnist.py example with TensorFlow 2.1.0, a Fatal Python error: Aborted occurs. The full error message is as below:
2020-05-11 20:08:28.772679: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib64
2020-05-11 20:08:28.772772: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib64
2020-05-11 20:08:28.772790: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
I0511 20:08:29.945827<PHONE_NUMBER>80224 dataset_info.py:361] Load dataset info from /home/tedmund/tensorflow_datasets/mnist/3.0.1
I0511 20:08:29.947907<PHONE_NUMBER>80224 dataset_info.py:401] Field info.citation from disk and from code do not match. Keeping the one from code.
I0511 20:08:29.948163<PHONE_NUMBER>80224 dataset_builder.py:283] Reusing dataset mnist (/home/tedmund/tensorflow_datasets/mnist/3.0.1)
I0511 20:08:29.948284<PHONE_NUMBER>80224 dataset_builder.py:479] Constructing tf.data.Dataset for split train, from /home/tedmund/tensorflow_datasets/mnist/3.0.1
I0511 20:08:30.869276<PHONE_NUMBER>80224 dataset_info.py:361] Load dataset info from /home/tedmund/tensorflow_datasets/mnist/3.0.1
I0511 20:08:30.870402<PHONE_NUMBER>80224 dataset_info.py:401] Field info.citation from disk and from code do not match. Keeping the one from code.
I0511 20:08:30.870607<PHONE_NUMBER>80224 dataset_builder.py:283] Reusing dataset mnist (/home/tedmund/tensorflow_datasets/mnist/3.0.1)
I0511 20:08:30.870710<PHONE_NUMBER>80224 dataset_builder.py:479] Constructing tf.data.Dataset for split train, from /home/tedmund/tensorflow_datasets/mnist/3.0.1
I0511 20:08:30.915239<PHONE_NUMBER>80224 dataset_info.py:361] Load dataset info from /home/tedmund/tensorflow_datasets/mnist/3.0.1
I0511 20:08:30.916428<PHONE_NUMBER>80224 dataset_info.py:401] Field info.citation from disk and from code do not match. Keeping the one from code.
I0511 20:08:30.916637<PHONE_NUMBER>80224 dataset_builder.py:283] Reusing dataset mnist (/home/tedmund/tensorflow_datasets/mnist/3.0.1)
I0511 20:08:30.916740<PHONE_NUMBER>80224 dataset_builder.py:479] Constructing tf.data.Dataset for split test, from /home/tedmund/tensorflow_datasets/mnist/3.0.1
2020-05-11 20:08:32.182307: E external/org_tensorflow/tensorflow/stream_executor/cuda/cuda_blas.cc:236] failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED
2020-05-11 20:08:32.182349: F external/org_tensorflow/tensorflow/compiler/xla/service/gpu/gemm_algorithm_picker.cc:113] Check failed: stream->parent()->GetBlasGemmAlgorithms(&algorithms)
Fatal Python error: Aborted

Current thread 0x00007f712fd8f740 (most recent call first):
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jaxlib/xla_client.py", line 156 in compile
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jaxlib/xla_client.py", line 576 in Compile
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jax/interpreters/xla.py", line 197 in xla_primitive_callable
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jax/interpreters/xla.py", line 166 in apply_primitive
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jax/core.py", line 199 in bind
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jax/lax/lax.py", line 626 in dot_general
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jax/lax/lax.py", line 564 in dot
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/jax/numpy/lax_numpy.py", line 2484 in dot
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/haiku/_src/basic.py", line 161 in __call__
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/haiku/_src/module.py", line 155 in wrapped
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/haiku/_src/basic.py", line 120 in __call__
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/haiku/_src/module.py", line 155 in wrapped
  File "mnist.py", line 41 in net_fn
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/haiku/_src/transform.py", line 271 in init_fn
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/haiku/_src/transform.py", line 106 in init_fn
  File "mnist.py", line 112 in main
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/absl/app.py", line 250 in _run_main
  File "/home/tedmund/anaconda3/envs/tf2/lib/python3.6/site-packages/absl/app.py", line 299 in run
  File "mnist.py", line 131 in <module>
Aborted (core dumped)

One solution I've found to this is a more commonplace solution when using TensorFlow, by inserting the code:
from tensorflow.compat.v1 import ConfigProto, InteractiveSession

config = ConfigProto()
config.gpu_options.allow_growth = True
config.gpu_options.per_process_gpu_memory_fraction = 0.7
sess = InteractiveSession(config=config)

However, this kind of defeats the purpose if one is simply trying to use JAX/NumPy instead of TensorFlow. Not sure what else I can provide to help, please do let me know!

2020-05-11 20:08:32.182307: E external/org_tensorflow/tensorflow/stream_executor/cuda/cuda_blas.cc:236] failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED

This error is indicating that CUDA didn't initialize properly.
As you point out, one cause of this might be that many processes are concurrently trying to reserve GPU memory. Do you get this error when there are no other processes using your GPU? (Can be seen with nvidia-smi.)
The JAX equivalent of the above TF configuration can be found here:
https://jax.readthedocs.io/en/latest/gpu_memory_allocation.html
One other thing that might be worth trying is encasing all the TFDS logic in a with tf.device('cpu'): to make sure the TF executor & XLA aren't fighting in your setup.
I'm fairly confident that this is a configuration issue; the folks in google/jax may be more able to pinpoint the problem than me.

Following the configuration instructions in https://jax.readthedocs.io/en/latest/gpu_memory_allocation.html worked.
Thank you! Will keep note of such a requirement in future. I don't have concurrent processes running so this may just be an internal system setup on my side.


Activate new rules and options updating to v1.12.0

The decision for how far to indent the clause keywords was made using a poll:


Stuck mixer sliders

If presets are clicked too quickly, the ambient track sliders get stuck

fixed getting stuck forever but visual glitch where slider background is #DDD remains


Lutron Appliance Module support

Hi there. I hope I'm not breaking rules posting a feature request here, but I haven't seen any traction on the following feature request at the HA community forum and thought this might be my best avenue.
https://community.home-assistant.io/t/lutron-appliance-module-support-for-the-lutron-caseta-integration/297499
:)

Do you have one? The appropriate name needs to be added to this list: https://github.com/gurumitts/pylutron-caseta/blob/dev/pylutron_caseta/init.py#L9-L12

I do have one. I am not entirely sure of the precise name. Perhaps something like 'PlugInAppliance'. Photo attached.
I'm happy to test for you.
Also, here is the spec sheet if that's any help.

If you enable debug logging I think it will come out there.
How to configure logging in Home Assistant: https://www.home-assistant.io/integrations/logger/
If you enable debug logging for pylutron_caseta.leap it should come out for sure, but I think pylutron_caseta.smartbridge will also log it, and maybe in an easier to recognize format and with less noise. You're looking for "DeviceType" or "type".

Is this what you're looking for?
[pylutron_caseta.smartbridge] Requesting zone information from {'device_id': '4', 'current_state': -1, 'fan_speed': None, 'zone': '2', 'name': 'Counter_Coffee Machine', 'type': 'PlugInSwitch', 'model': 'RR-15APS-1-XX', 'serial': 67958053}

Yes. PlugInSwitch should be added to the switch section in that Python file.

Great. I don't have Write access to the referenced file. It would also be my first Commit. Is this something you can do for me please?

I merged #76 and released 0.11.0 to PyPI. If you want to get it running in Home Assistant without waiting for a new release or switching your whole house over to a nightly build, I think you can manually install a copy of it into config/deps/lib/python3.8/site-packages and restart Home Assistant. On my system it looks like this:

Since pylutron_caseta 0.11.0 will advertise the device as a switch it should get picked up by Home Assistant and appear as a device without requiring any other changes.

I had to create lib/python3.8/site-packages since /deps was empty.
I dropped 'pylutron-caseta-0.11.0' into there and restarted, but no luck. What am I missing?

The dist-info folder has the version number on it, but the main folder with the library files in it does not. I don't know if you need the dist-info folder. If you need that stuff you should be able to pip install the package to there with the -t option.

Thank you so much for your help. I'm very appreciative for all your Github guidance as well


The deviceready event does not fire in a developer app built locally from master

I'm building phonegap-app-developer from source so I can add a few plugins that my app needs. When I build from source, the app starts up fine but the deviceready event never appears to fire for the app that it loads. I do not see this issue when I use the iOS app available in the App Store.
To reproduce, first build and run the developer app:
$ cd phonegap-app-developer/
$ npm install
$ npm run phonegap -- run ios

Next, use the PhoneGap CLI to initialize a new app:
$ cd ~/workspace/temp/
$ phonegap create my-app-2
$ cd my-app-2/
$ phonegap serve

Next, connect to the local server using the developer app (I used <IP_ADDRESS>:3000 since I was running on the iOS Simulator).
Result:
The deviceready event never appears to fire [0].
Environment:

OS X 10.10.5
Xcode 7.1.1
iPhone 6 iOS 9.1 Sim
node v0.12.2
npm 2.13.3
PhoneGap CLI 5.3.7

[0]

Hi @blefebvre, we were also seeing this issue yesterday and have already begun to investigate.

Hi @surajpindoria any news on this issue? I'm having same problems...
Thanks for helping.

This has been resolved on the latest dev branch @blefebvre


Investigate a possibility to reuse code in cairo fork hint locals

Raised in https://github.com/software-mansion-labs/cairo/pull/43.
It may be good to check if we can write some reusable code for the hint local code in https://github.com/software-mansion-labs/cairo/blob/e4b3f34146727682ee5556cc7fb40ea7f9384da7/crates/cairo-lang-casm/src/hints/mod.rs so we could be able to parse the arguments in a better way.

I think it's not worth adding the complexity + effort to investigate implementing this
cc @MaksymilianDemitraszek


Typo on README.md

Installation
- npm add react-rough
- npm add roughjs

npm doesn't use add command, it should be yarn instead.
I have submitted a PR #267  with the typo fixed like this:
Installation
Install using a package manager npm or yarn
yarn add react-rough roughjs

Closing this since the PR is merged.


Sre crash when it build in some locales

When I build sre from my laptop, it crash when load rule file.
I checked it and found the action file load earlier than base file, which will cause crash here.
https://github.com/Speech-Rule-Engine/speech-rule-engine/blob/cc46b71d739bc0104c36e8147e0d91a5acffa06d/ts/rule_engine/speech_rule_engine.ts#L820-L826
I found lib/mathmaps was createad by makefiles
https://github.com/Speech-Rule-Engine/speech-rule-engine/blob/cc46b71d739bc0104c36e8147e0d91a5acffa06d/Makefile#L71-L86
it should be noticed that for in loop in bash not guarantee alphabetical order, it depends on locale.
in my case, when LANG was set to zh_CN.UTF-8, the merged json file order will cause crash.
"base/rules/clearspeak_base_actions.min"
"base/rules/clearspeak_base.min"

and when set LC_COLLATE to C, it will has same order with released file.
"base/rules/clearspeak_base.min"
"base/rules/clearspeak_base_actions.min"

add this env to makefile will help.

Thanks for reporting this. I was not aware of the bash feature.


Docs/test test

Testing new release flow. DO NOT MERGE. (not draft bc local is now hosed, checking Netlify server build)

Broken build bc canceled on Netlify server. Merge not needed, PR existed only to test on Netlify.


how to clear the search box text

I type something in the search input box and click on the close or done button. If I want to select it again the previously searched text is already there.  How can I clear this up?
@srivastavaanurag79

I will fix it and let you know

@somya-wittybrains  please upgrade to v0.3.7

Thanks @srivastavaanurag79 it works perfectly now.


Update editor description property flag

Fixes #49648
I updated the property flag for editor_description to be the same as text from Label. It fixed the problem, but maybe it's not a valid flag to use?

Thanks!

Not sure why the property stopped working, but originally it was stored inside meta (check e.g. gizmo extents in Position2D). The reason was that it's an editor-only property and we usually don't store such properties normally.

Not sure why the property stopped working, but originally it was stored inside meta

Do you think this PR is avoiding an underlying bug with how meta data is stored?

This was changed from meta to a normal property by @reduz in 083aa9b95e6. The commit message doesn't say why, I guess he thought that's a better approach.


Update Regtest setup / define Regtest

As a new user coming from the infosec side of things, 'Regtest' is usually thought as dynamic brute force analysis not the actual definition of regression testing. While writing an API binding for lbrycrd I was under impression using testnet was what I needed to use for unit tests to see if my code would work, not break. There is currently no highlight to point newbie devs to lbrycrd's useful feature and it would help others like myself
Tom edit:
This should also include an update of https://lbry.tech/resources/regtest-setup to include latest install instructions / orchestrate.

hey @binaryflesh, thanks for opening the issue. I'll edit this to also include updating regtest instructions(may be out of date per my comment on the other issue).

regtest setup instructions need an update...
https://lbry.tech/resources/regtest-setup
Several broken links to deleted repositories meaning getting a working env isn't possible.


Error on unmounting a table with columns declared with property

Overview of the problem
When trying to unmount a table in any way, an error occurs if the columns are specified via the :columns="" property.
Oruga version: [0.5.5]
Vuejs version: [3.2.33]
OS/Browser: macOS Monterey 12.3/Chrome 103.0.5060.114
Description
Demo: https://codesandbox.io/s/oruga-table-unmount-bug-nn7kox
Turn off the switch at the top. You should get an error:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'type')
Steps to reproduce

Add the OTable component
Describe any columns vie the :columns property
Unmount the table at runtime. For example using v-if

Expected behavior
The table should unmount without any errors
Actual behavior
An error occurs: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'type')

https://github.com/oruga-ui/oruga/issues/344


Womanium Final Assignment - Punyaporn Onpeang

Add file Punyaporn_Onpeang_hw4.ipynb for Assignment submission for 6.12 Advanced Algorithms Design of Punyaporn Onpeang for Womanium Quantum+AI program 2024
PR Description

Assignment for Womanium Quantum+AI program 2024 6.12 Final Assignment: Advanced Algorithms Design

[ ] file assignment : Punyaporn_Onpeang_hw4.ipynb
[ ] Implement of Quantum walk operator for the case of a line with 16 nodes
[ ] Utilize the Python code from class Classiq notebook:

[ ] quantum_walk_circle_example.py

Assignment for Womanium Quantum+AI program assignment 6.12

You have errors in states 0 and 15. Consider the boundary condition to understand the options at the edges.
Score: 6/10.


Remove ExportTableToFileOperator in 1.5.0 release

Please describe the feature you'd like to see
A clear and concise description of what problem feature solves or what use-case it would enable.
e.g. "I really wish I could ...", "I'm sad that I can't..."
Describe the solution you'd like
A clear and concise description of what you want to happen, if possible with code examples.
Are there any alternatives to this feature?
Is there another way we could solve this problem or enable this use-case?
Additional context
Add any other context about the feature request here.
Acceptance Criteria

[ ] All checks and tests in the CI should pass
[ ] Unit tests (90% code coverage or more, once available)
[ ] Integration tests (if the feature relates to a new database or external service)
[ ] Example DAG
[ ] Docstrings in reStructuredText for each of  methods, classes, functions and module-level attributes (including Example DAG on how it should be used)
[ ] Exception handling in case of errors
[ ] Logging (are we exposing useful information to the user? e.g. source and destination)
[ ] Improve the documentation (README, Sphinx, and any other relevant)
[ ] How to use Guide for the feature (example)

If this was in a release, we should not remove it until 2.0

If this was in a release, we should not remove it until 2.0

unfortunately, yes, we released ExportTableToFileOperaotr 1.3.1 on 14th December 2022 and again deprecated it in 1.4.0 on 12th Jan 2023. We have mentioned in our release notes explicitly while deprecating that we will remove this in 1.5.0 but not sure if we can remove this or not in 1.5.0

@pankajastro should we remove it as part of 2.0? WDYT?

@kaxil suggested that we can't remove it before 2.0.0


undefined method `keys'

pry(main)>require 'simplify_rb'
=> false
[7] pry(main)> points = {x: 51.5256, y: -0.0875}
=> {:x=>51.5256, :y=>-0.0875}
[8] pry(main)> SimplifyRb.simplify(points, 1)
NoMethodError: undefined method keys' for [:x, 51.5256]:Array from /home/v/.rvm/gems/ruby-2.0.0-p247/gems/simplify_rb-0.1.0/lib/simplify_rb.rb:8:in block in simplify'

Gemfile.lock:  simplify_rb (0.1.0)

Hi @vinnyglennon the error is because 'points' needs to be an array:
points = [{x: 51.5256, y: -0.0875}]
Sorry the readme was unclear about this (I've updated it now with a clearer example).


exp is in the past while testing on IOS, chrome and safari

hello
i get exp is in the past
while testing on IOS, after login
any ideas ?
thanks

Check the clocks -- they need to be synch'd within 5m.

the clock of the client and the clock of the server ?
they are synch`d +/- timezone

Any update?

this only happen when i debug in browserstack.com
might be related to that

having the same issue now (on Safari/Chrome on Mac) and I think I've found the reason - the regional settings on the Mac are different (GMT-7) than on the IdentityServer (GMT+2) and as such the Date.now() running on the client is giving the WRONG time (basically in the past when compared), since Date.now() (depending on the browser) returns the timeoffset including daylight savings (at least on Mac, maybe a Bug?!).

Date.now is supposed to return UTC: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now

So now I know the issue was the Mac's configuration - he was basically running in a different timezone but manually set the time when flying over (instead of changing the timezone) causing Date.now() to really return something in the past - which obviously means this has nothing to do with IdentityServer ;)  Resetting everything to run automatically (time & timezone) solved the issue.
Thanks for your reply!


Add deal()

This would be fun. For indexed data types.
deal(amountEach, totalGroups)
totalGroups defaults to infinite.
deal(3)([1,2,3,4,5,6,7,8,9,10])
// [[1,2,3],[4,5,6],[7,8,9],[10]]

deal(1)([1,2,3,4,5])
// [[1],[2],[3],[4],[5]]

deal(1,3)
// [[1,4],[2,5],[3]]

deal(3,3)([1,2,3,4,5,6,7,8])
// [[1,4,7],[2,5,8],[3,6]]

Released in v0.37.0


[Feature] A way to specify response status-codes with void response

Problem description
Specifically for status code 204, the general convention is to have an empty body. There is no way canonical way to represent this in the fern definition. One can use optional, or string. But then the generated sdk or server skeleton is showing incorrect meaning.
Describe the solution (optional)
A void/empty response type. So we can say
response:
  type: void
  status-code: 204

Same use case here, this would be a great to have!


Create internal_list_and_watch so it can be mocked

What this PR does / why we need it:
Make change to device plugin service to add internal_list_and_watch so we can provide mocked kube_interface to test the list_and_watch.
With original code, we cannot mock kube_interface and had to hard-coded test code to build unhealthy devices using #[cfg(not(test))]/#[cfg(test)].  The new internal_list_and_watch function provide an entry point to inject mocked kube_interface
Special notes for your reviewer:
If applicable:

[ ] this PR has an associated PR with documentation in akri-docs
[ ] this PR contains unit tests
[x] added code adheres to standard Rust formatting (cargo fmt)
[x] code builds properly (cargo build)
[x] code is free of common mistakes (cargo clippy)
[x] all Akri tests succeed (cargo test)
[ ] inline documentation builds (cargo doc)
[x] all commits pass the DCO bot check by being signed off -- see the failing DCO check for instructions on how to retroactively sign commits

/add-same-version-label


Add rebase rule for cert manager to remove caBundle for legacy clusters

Signed-off-by: Marjan Alavi<EMAIL_ADDRESS>What this PR does / why we need it
Add rebase rule for cert manager to remove insecure flag for legacy clusters with cabundle
Which issue(s) this PR fixes

Fixes: #
Describe testing done for PR
Tested in a kind cluster while simulating a legacy cluster having caBundle and then deployed the modified metrics server package bundle and noticed caBundle was removed

LGTM for legacy TKR upgrade case in TKGS. We will have to remember to drop this rebase rule when caBundle is plumbed.


Page is requesting 'bundle.js' which isn't being provided

https://github.com/Sxw1212/ReDash/blob/master/webpack.config.js
Install webpack and run it to build bundle.js

ah that makes more sense


fix: prevent potential arithmetic operation against nil

Hi thanks for patching things up with the length parameter; sorry to bother one last time but I believe there was a small bug in the latest commit that would cause an error saying there was an attempt to perform arithmetic on a nil value. Should be fine with this commit

lol, thanks


WIP: Add travis (fix #15)

21 builds and counting ;)

Great work. ^^
Why colorlinks=true ? Because of menukeys we should load hyperref without colorlinks option.

Btw, you can change the Makefile and add a make install now :)

Why colorlinks=true ? Because of menukeys we should load hyperref without colorlinks option.

Rebase error, it is now fixed ;)

Btw, you can change the Makefile and add a make install now :)

Indeed :)

Ok. That's finally it :)


read_raw_brainvision stim channel not properly imported to annotations

I'm not sure where there is a sample brainvision raw file, but if you read it in:
raw = read_raw_brainvision(f,preload=True)
Then the annotations aren't showing up with the data that was contained by the stim channel before:
raw.annotations only gives New Segment/ (1) and Time 0/ (1) whereas this should contain stim channels.

raw.annotations
<Annotations  |  2 segments : New Segment/ (1), Time 0/ (1), orig_time : 2019-02-19 19:39:42.681951>

I should add that this the annotations are properly imported in 0.17.1.

@massich can you look into it?

it is weird that our test suite does not capture this. @alexrockhill can you share the file with me? (or even better do you have an MWE that replicates the problem that we can ship with our testdata?)

In the MNE-sample-data set, I don't see any .vhdr files. If you point me to one, I can make a MWE. Otherwise, I'll send you a file and a gist shortly.

yes I don't find a .vhdr file with annotations in our test suite either. We have the annotations in the .vmrk. See:
https://github.com/mne-tools/mne-python/blob/194e2e3dc98dd3b545421d5750eff458263c25e7/mne/io/brainvision/tests/test_brainvision.py#L25-L54
We should definitely fix this. But meanwhile:

can I see what you executed in master and what did you execute in 0.17.1
can you try to run read_annotations(vhdr_file)

In both versions, I just read in the raw file with read_raw_brainvision and then printed to output raw.annotations, I'll check on the read annotations.

This passes in master
    sfreq = 1000.0
    raw = read_raw_brainvision(vhdr_path, preload=True)
    assert raw.annotations.orig_time ==<PHONE_NUMBER>.794231
    expected = np.array([0, 486., 496., 1769., 1779., 3252., 3262., 4935.,
                         4945., 5999., 6619., 6629., 7629., 7699.]) / sfreq
    description = ['New Segment/',
                   'Stimulus/S253', 'Stimulus/S255', 'Stimulus/S254',
                   'Stimulus/S255', 'Stimulus/S254', 'Stimulus/S255',
                   'Stimulus/S253', 'Stimulus/S255', 'Response/R255',
                   'Stimulus/S254', 'Stimulus/S255',
                   'SyncStatus/Sync On', 'Optic/O  1']
    assert_array_almost_equal(raw.annotations.onset,
                              expected, decimal=7)
    assert_array_equal(raw.annotations.description, description)

@alexrockhill you mentioned that this works in 0.17.1 - do you get the issue with the current master?

I apologize, I didn't record my versions earlier and now with mne 0.18.dev0 I am not able to replicate the same issue, the event markers are coming out fine. I'm not sure why that happened before. If I figure it out I will reopen, sorry!


RePlAce not able to place macros

I am trying to place two macros: a picorv32a core and a 2kB SRAM. However the Nesterov Solver never finishes placing the design and eventually errors out with the following error:
[ERROR GPL-0305] RePlAce diverged at newStepLength.
Dimensions of picorv32a: around 0.7 x 0.7 mm2
Dimensions of 2k SRAM: around 0.7 x 0.4 mm2
I set an absolute die area of 2 x 2 mm2, which I think should be good enough
I set the following macro placements:
cpu    500.000 500.000 N
RAM<PHONE_NUMBER>.00  S
Please let me know if I am doing something wrong here. I also tried some other placements like
cpu      100 100 N
SRAM  100 1000 N
I have attached the reproducible as well.
Thanks,
openroad_issue_reproducible.tar.gz

set following variable in config.tcl and try
set ::env(PL_BASIC_PLACEMENT) 1

Thanks for helping @vijayank88. I actually debugged the issue to be overlapping macros, and placing them correctly removed this error. Could you please elaborate what "basic placement" means exactly and what decides when to enable or disable it? I guess we can resolve this issue after that.


Update npm and pypi installation commands in README docs

Looks good! But why the change from pip to pipx? Honestly I always forget the difference and I'm not sure why I used pipx in the first place.

It works with pip, pipx and poetry. pip is python inbuilt/default package installer, pipx needs to be installed first separately before using pipx cli commands I guess. For beginners to keep it simple I changed it to pip 🙂. pipx is fine too if you want to retain it

I think I used pipx because on MacOS with Homebrew, pip doesn't work, and it's a common configuration. I changed it back to pipx. Otherwise looks good!

Okay 🙂


无法配置 networkingMode Nat

Windows Version
10.0.22635.2700
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-1
Distro Version
Ubuntu 22.04.21 LTS
Other Software
No response
Repro Steps
I update windows, and open Ubuntu 22.04.21 LTS, show

Expected Behavior
i can access ubuntu
Actual Behavior
error in termial
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x80070424
Diagnostic Logs
No response

same with #10755


Updated server scripted dashboard to include telegraf data

If you have telegraf data for a server (specifically cpu, mem, system, and diskio) you will now get some new graphs when you click on the server graph.  If you do not have telegraf data for the cache then you will get empty graphs.
Also fixed an issue where connections were getting multiplied by 1000.
The new graphs that show are CPU usage, Memory Usage, Load Average, and Read/Write time.

This closes #1555


Unable to Start webdriver-manager start getting events.js:170

C:\Users\bharat.bh>webdriver-manager start
[17:12:33] I/config_source - curl -oC:\Users\bharat.bh\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[17:12:33] I/config_source - curl -oC:\Users\bharat.bh\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases
events.js:170
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT <IP_ADDRESS>:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1088:14)
Emitted 'error' event at:
at Request.onRequestError (C:\Users\bharat.bh\AppData\Roaming\npm\node_modules\protractor\node_modules\request\request.js:881:8)
at ClientRequest.emit (events.js:198:15)
at TLSSocket.socketErrorListener (_http_client.js:397:9)
at TLSSocket.emit (events.js:193:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
Also, how can i setup proxy?

I had the same problem

What version of webdriver-manager are you using? webdriver-manager start making a curl call hasn't been a thing for a year or two.


feat: replace SECURITY_ENFORCED to USER_MODE

What does this PR do?
Spring 23 enforced User Mode data operations This PR specifically replaces WITH SECURITY_ENFORCED  with WITH USER_MODE for query operations.
What issues does this PR fix or reference?
Enforces security via the User Mode Data operations for all the SOQL.
#
The PR fulfills these requirements:
[ ] Tests for the proposed changes have been added/updated.
[ ] Code linting and formatting was performed.
Functionality Before
<insert gif and/or summary>
Functionality After
<insert gif and/or summary>

Codecov Report

:exclamation: No coverage uploaded for pull request base (prerelease/spring23@e3d5fbf). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@                  Coverage Diff                   @@
##             prerelease/spring23     #391   +/-   ##
======================================================
  Coverage                       ?   94.40%
======================================================
  Files                          ?       58
  Lines                          ?     1965
  Branches                       ?        0
======================================================
  Hits                           ?     1855
  Misses                         ?      110
  Partials                       ?        0

Flag
Coverage Δ

Apex
94.40% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Badge round corners

Round corners look nicer to me (and sync with the pypi badge). WDYT?

I agree that it is not consistent. IMO squared looks more modern, but no strong feelings

Can also do all square. So poll:
round = https://github.com/unit8co/u8timeseries/tree/30966f86a566994af347a69fd3951b5cc0c1a89a
square = https://github.com/unit8co/u8timeseries/tree/da3bd0000a0dbca118174cd2afc7d6c631f25e27
Cast your votes:
round = 0
square = 1

I think the square ones look very clean and modern, but the sharp corners don't match the logo very well. I'm team round.


Backspace, arrows keys, etc. not working in diff comment box

I tried to make a comment on src/TerminalLine.ts (A) in xterm.js PR 1632, I can type out text fine but backspace and arrows don't work. Enter, space, alpha, number keys work.

Closing the comment box and trying again yields the same result. Closing the file and opening again also doesn't fix it. Reloading the window fixed it.

This was using v0.0.18

There weren't any errors in devtools.

Possibly related: https://github.com/Microsoft/vscode/issues/23687
Are you able to consistently repro this? I haven't been able to yet on my machine

I only saw it that one time, fixed after reloading.

Closing this issue since there have been no further reports of this and I haven't been able to repro it


support new widgets on landing page

[x] Pipeline Widget to list the pipelines that belongs to a user/team
[x] Data Quality Widget to list summary of DQ tests belongs to a user/team

Backed :

Wanted pipelineStatuses data in the Search API for ingestion_pipeline_search_index,  https://github.com/open-metadata/OpenMetadata/issues/15886

PR for it https://github.com/open-metadata/openmetadata-collate/pull/426


Create JSON format for websocket traffic allowing for more targeted traffic.

Currently the mod only sends minecraft chat JSON messages. This doesn't allow for more information like timestamps, server information or other non minecraft messages to the webclient.
So I want to create specific JSON format for websocket traffic. Where minecraft chat JSON messages would be wrapped in.
Something along the lines of
{
    timestamp: 1234,
    server: "servername",
    type: "chatMessage",
    minecraftVersion: "future proofing, won't do anything right now",
    payload: {},
}

Thinking about it a bit more below the format worked out to a degree (not at a pc where I can do actual development).
{
    "timestamp":<PHONE_NUMBER>, // Integer, epoch in milliseconds (UTC)
    "server": {  // Object containing server information
        "name": "tildes", // String, human-readable server name
        "identifier": "tildes-nore-gg-something-something" // String, unique server identifier probably based on name and host.
    },
    "type": "chatMessage", // String, based on enum most likely, for example "chatMessage", "modVersion", "playerList"
    "minecraftVersion": "1.21.1", // Semantic version string, future-proofing for stuff like message history.
    "payload": {} // Object, array, or string, content varies by "type" allows some flexibility in this message format as being too strict in the typing here is probably overkill.
}

/**
 * @typedef {Object} ServerInfo
 * @property {string} name - Human-readable server name
 * @property {string} identifier -  // String, unique server identifier probably based on name and host.
 */

/**
 * @typedef {"chatMessage" | "modVersion" | "playerList"} MessageType
 */

/**
 * @typedef {Object} WebChatMessage
 * @property {number} timestamp -  Integer, epoch in milliseconds (UTC)
 * @property {ServerInfo} server - Server information
 * @property {MessageType} type - Type of the message, enum most likely, for example "chatMessage", "modVersion", "playerList"
 * @property {string} minecraftVersion - Semantic version string, future-proofing for stuff like message history.
 * @property {Object|Array|string} payload - Content varies by message type
 */

java object
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.time.Instant;
import java.time.Clock;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WebChatMessage {
    private long timestamp;
    private ServerInfo server;
    private MessageType type;
    @SerializedName("minecraftVersion")
    private String minecraftVersion;
    private Object payload;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ServerInfo {
        private String name;
        private String identifier;
    }

    public enum MessageType {
        @SerializedName("chatMessage")
        CHAT_MESSAGE,
        @SerializedName("modVersion")
        MOD_VERSION,
        @SerializedName("playerList")
        PLAYER_LIST
    }

    // Convenience constructor that sets timestamp automatically.
    public WebChatMessage(ServerInfo server, MessageType type, Object payload) {
        // Instant.now should be UTC. But making it more explicit using UTC clock for timestamp generation
        this.timestamp = Instant.now(Clock.systemUTC()).toEpochMilli();
        this.server = server;
        this.type = type;
        this.payload = payload;
    }
}

Things to figure out:

[ ] Unique server identifier generation and validaton.
[ ] ???

You should use a literal string type for "messageType", ex: a type of 'chatMessage'. Then have different type definitions for each message structure. That will allow TypeScript to understand the structure of the payload once you've checked that field.
For example:
if (message.messageType === 'chatMessage') {
  // message.payload's structure is known here
}

// message.payload's structure is ambiguous here


feat: add more settings extension

Thank you for submitting a pull request!
Description
Please describe what you changed briefly.
Type of Pull Request

[x] Adding a feature
[ ] Fixing a bug
[ ] Maintaining documents
[ ] Adding tests
[ ] Others ()

Verify the followings

[x] Code is up-to-date with the develop branch
[x] No build errors after pnpm build
[x] No lint errors after pnpm lint
[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check
[x] Make sure all the existing features working well

Changesets

[ ] If your PR makes a change under packages folder that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Refer to CONTRIBUTING.MD for more information.

I added more settings to the PageData and are now accessible using the $page store
Below are some of the changes:

Separated the settings into sub categories as the main geohub category has a lot of settings

As CI was failing because of installing a very recently released version of pnpm, npm i -g pnpm I downgraded the pnpm in Dockerfile npm i -g<EMAIL_ADDRESS>to make the docker build OK


Fix Android 14 Post Permission Bug

AndroidManifest.xml: Error: When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS permission (usage from com.bumptech.glide.request.target.NotificationTarget) [NotificationPermission]

https://github.com/bumptech/glide/issues/4940