[WIP] feat(Placeholder): add component

Codecov Report

Merging #3172 into chore/update-sui will increase coverage by <.01%.
The diff coverage is 100%.

@@                 Coverage Diff                  @@
##           chore/update-sui    #3172      +/-   ##
====================================================
+ Coverage             99.92%   99.92%   +<.01%
====================================================
  Files                   163      168       +5
  Lines                  2746     2780      +34
====================================================
+ Hits                   2744     2778      +34
  Misses                    2        2

Impacted Files
Coverage Δ

src/elements/Placeholder/PlaceholderHeader.js
100% <100%> (ø)

src/elements/Placeholder/PlaceholderImage.js
100% <100%> (ø)

src/elements/Placeholder/PlaceholderParagraph.js
100% <100%> (ø)

src/elements/Placeholder/PlaceholderLine.js
100% <100%> (ø)

src/elements/Placeholder/Placeholder.js
100% <100%> (ø)

Continue to review full report at Codecov.

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


get all users currently inside the live, instead of just the top viewers

more a question then an issue:
is it possible to get all users currently inside the live, instead of just the top viewers?
the roomUser event currently only gives the total count, and an array of topViewers.
I want to get a list of all viewers to do some statistics on how long a user stayed after joining. But for that
I need a list of all the users as there is a big discrepancy between top viewers and all viewers.
in one live there were 16 top viewers bis over 100 viewers.

Unfortunately the roomUserSeq  does not send stats often (check #15) and from my knowledge there is no method to get all users.
I will look into it since i also need such a stat.

@ZmoleCristian There isn't a way to get "All users".
I did just check the webpage, and when you click the button "Top Viewers" above the chat, it shows a list of the top 100? viewers.
Checking Network-tab in dev-menu, this seems to be doing a call to https://webcast.tiktok.com/webcast/ranklist/online_audience/ (though I'm not sure we're able to access this without signed tokens etc.)

I assumed as much, but this is a bit of a bummer :\ the only alternative for me, would be to compare timestamps from when a user joined, to the time he last commented something. But not every user is actively commenting inside a live. But if there is nothing that could be done that's just how it is.
Thanks so much for looking into it anyway


Use PlotlyLight.jl to build document

hopefully it's faster

It doesn't work. Try PlotlyDocumenter next.

PlotlyDocumenter's precompilation fails. Try an old version of PlotlyLight.

Try an old version of PlotlyLight.

It works, but it's a bit complicated for me so I'm putting it aside.


unable to write 'Hello World' file in nano server image.

I did Step 1. docker run -it mcr.microsoft.com/windows/nanoserver:ltsc2022 cmd.exe, and when I did Step 2. I received "Access is Denied".
I then followed StefanScherer's recommendation to use servercore instead of nano, and I was able to complete Step 2.

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

ID: 0a1c4c54-7721-58ce-f77d-be0ef0c687bf
Version Independent ID: 70e52446-1c7b-78ff-67f2-1f6c0d058788
Content: Run your first Windows container
Content Source: virtualization/windowscontainers/quick-start/run-your-first-container.md
Product: windows-server
Technology: windows-containers
GitHub Login: @v-susbo
Microsoft Alias: viniap

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


MapStateToProps as a class method

Hi everyone.
I suggest to put mapStateToProps, mapDispatchToProps and mergeProps as a class methods for wrappedComponent.
Motivation
First time I come up with this idea when faced an issue during project unit testing when i was unable to test those 3 functions
// My code at that time.
@connect(function mapStateToProps(){/***/},function mapDispatchToProps(){/***/})
class A extends Component{/***/}

Here I had 2 options to test functions mapStateToProps and mapDispatchToProps.

Defining our functions atop of class A and exporting from module which is not a really good solution

export const mapStateToProps = function(){/***/}
export const mapDispatchToProps = function(){/***/}

@connect(mapStateToProps, mapDispatchToProps)
class A extends Component{/***/}

Defining our functions as class method and put them as an argument in connect

@connect(A.mapStateToProps, A.mapDispatchToProps)
class A extends Component{
  static mapStateToProps(){/***/};
  static mapDispatchToProps(){/***/}
  /***/
}

With this feature we can just implement our functions in our class since they are part of our class
more convient and intuitively.

Defining our functions atop of class A and exporting from module which is not a really good solution.

Could you explain more why that's not a good solution? This is purely an organizational concern. They don't get any special powers by being put as statics on a class. So other than moving some things around in the same file, I'm not sure what the disadvantage is.

@timdorr thanks for an answer!
You are right this is purely organization concern but it doesn't mean that's not enough for example I believe redux-thunk also just a for organization concern but it still got wide usage and greatest feedback from community.
I think there is several reasons why it's not good.

We will need to export 2 varablse from module just for ~nothing~ testing purposes.
Those variables will be split from the component in case they are only related to the component.

I've seen wrappers around connect that do this.  Personally, I think it's rather pointless.  There's nothing wrong with writing mapState as a separate function and exporting it.
While it may technically work, we don't recommend using connect as a decorator, and I recommend against inlining mapState into connect because it's less readable.
We definitely have no plans to change the API to support this officially.

@markerikson thanks for your answer.


[SYMFONY62] Deprecated MessageHandlerInterface and MessageSubscriberInterface

These interfaces from symfony/messenger are deprecated in Symfony 6.2 in favor of the AsMessageHandler attribute.
See https://github.com/symfony/symfony/pull/47068

This should probably be a custom rule as we will be removing a interface with a attribute more info: https://symfony.com/blog/new-in-symfony-5-4-messenger-improvements


#92 Multi color text and multi color stroke

Works good but I found that the imagettfbbox doesn't consider spacing for the next letter.  Had to add an (optional) parameter to the text method called "letter_spacing" which will bump the x-position a little bit ahead so the letters aren't all crammed side by side.

:+1:

This is a solid PR, thanks. Only thing I noticed is that the example outputs butterfly-multi-color-text-with-stroke.jpg in just one text color:

Otherwise, looks great :)

I think you pulled from a previous commit?  The filenames changed a few times but ended up here c2bc518c5905c7f2514e262ae452cbf5edeaac59.  Should be named like this:
butterfly-text-with-stroke-multi-colored-text.jpg
butterfly-text-with-stroke-multi-colored-stroke.jpg
The reason why I named them that is for ordering.  Goes something like this in the folder:
text, multi colored text, stroke, multi colored stroke

Had to commit a change.  PHP was throwing a warning in the background.

Yep, think I pulled the wrong commit. Works fine. Thanks for the PR!


Browse: examine/define UX (was editable metadata)

I don't like having the metadata display by default as form fields. I'd prefer something along the double-click-to-edit model.
If not that, the save buttons should at least be moved up above the sample data.

My concern about inline editable text is that folks have to learn how to use it. What is your concern re: form fields? That it's harder to read? (Given that this is the edit page, I wonder if that's not better addressed by not making this the place people go to read it.)
Def. agree re: 2nd row of buttons.

(a) I think that the general idea of editable text is not all that foreign to people
(b) the problem may be more with overloading features on the 'edit' page. The difference between what you see in 'browse' and what you see in 'edit' is minimal and the reason for the import status being only on the edit page isn't clear.
I don't care all that much about editable text per se so maybe this is better thought of as "examine UX of browsing data sets" but I don't know if I can change the title of this ticket and don't feel like making a new one right now ;-)

I totally agree that we need a visual indicator of import status on the browse page. Will update ticket title.

My inclination would be to diverge presentation on "edit" and "browse" pages, and go with straight form fields on the "edit" page.

@ryanpitts Unless I'm misunderstanding you, that presentation has already diverged, right? Or do you mean something more than what we have now?

I'd like to talk further about this -- maybe w/ Ryan and Chris?

I believe this has been addressed by the splitting of the dataset stuff into read-only and edit pages. Closing this out. Please reopen if I've missed anything.


When a TimeoutError is raised and Atomicpuppy sleeps, it fails on Python 3.5

In the current implementation we use the function _set_result_unless_cancelled which was moved from the loop instance to the futures module in Python 3.5.
The result is that it fails with the following exception:
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 321, in fetch
    loop=self._loop
  File "/usr/lib/python3.5/asyncio/tasks.py", line 390, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "src/main.py", line 25, in <module>
    loop.run_until_complete(ap.start())
  File "/usr/lib/python3.5/asyncio/base_events.py", line 337, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 111, in start_consuming
    yield from self.consume()
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 142, in consume
    yield from self.seek_on_page(subscription.uri)
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 164, in seek_on_page
    yield from self.seek_to_last_read(js)
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 212, in seek_to_last_read
    yield from self._walk_from_last(prev)
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 171, in _walk_from_last
    r = yield from self._fetcher.fetch(uri)
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 341, in fetch
    yield from self.sleep(s)
  File "/usr/lib/python3.5/site-packages/atomicpuppy/atomicpuppy.py", line 295, in sleep
    self._sleep._set_result_unless_cancelled,
AttributeError: 'Future' object has no attribute '_set_result_unless_cancelled'
Exception ignored in: <generator object Queue.get at 0x7f5dd3661f10>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/queues.py", line 170, in get
  File "/usr/lib/python3.5/asyncio/futures.py", line 227, in cancel
  File "/usr/lib/python3.5/asyncio/futures.py", line 242, in _schedule_callbacks
  File "/usr/lib/python3.5/asyncio/base_events.py", line 447, in call_soon
  File "/usr/lib/python3.5/asyncio/base_events.py", line 456, in _call_soon
  File "/usr/lib/python3.5/asyncio/base_events.py", line 284, in _check_closed
RuntimeError: Event loop is closed

does that means we should only use python 3.4?

No, that means there's a bug and we should fix it :) can you send a snippet
of code that reproduces the issue?
On Sun, 27 Nov 2016, 13:48 Poule Dodue<EMAIL_ADDRESS>wrote:

does that means we should only use python 3.4?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/madedotcom/atomicpuppy/issues/8#issuecomment-263123131,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKC9-Z80MimK6KirhrD_aILT37RDXyIzks5rCYpKgaJpZM4Hv-Zz
.

@fpighi and @pouledodue #26 should fix this issue.


more timings

Adds a whole bunch more timings to Choo; allows for better profiling of startup time.
Breaking change b/c choo.route and choo.router timings are swapped.

Hmm, looking over this again, I thinking it might be a bit excessive to time render, prerender and router. They're all pretty much just calling each other, so what's really being timed is the timers themselves, right? And that at the cost of creating wrapping functions which themselves add to compute time.

You mean in Node? That has sorted itself out for me in later versions of Node.

I just heard something about timings api breaking, but yeah I figured it would be sorted out.  yeah this is fine


Clarify units of measurement for zones, surface, etc.

From andrew.hankinson on June 20, 2012 09:53:31
Currently we assume that a number in the @ulx, @-uly, etc. is expressed in pixels. It would be nice to support either:
a) specifying the unit of measurement in the field, e.g., ulx="100px", "uly=20cm", etc.
or
b) specifying the unit of measurement globally or contextually (all child tag inherit a unit specification) , e.g., "
Original issue: http://code.google.com/p/music-encoding/issues/detail?id=73

From<EMAIL_ADDRESS>on June 20, 2012 09:02:03
In att.measurement we define @unit for this very purpose. att.measurement is used by elements like <dimension>, <extent>, <gap> (among others). The @ulx style attributes are defined in att.coordinated. As att.measurement doesn't define other attributes, what about making att.coordinated a member of att.measurement? Everything with those coordinates would inherit @-unit as well…

From andrew.hankinson on June 20, 2012 12:56:00
Copy and Paste Perry's e-mail (to keep track of the discussion):
It wouldn't be a huge problem in this particular case, but in general many layers of inheritance make me a little nervous --  it sets up dependencies that have to be resolved/disentangled later.  So, as an alternative, I suggest that we make the members of att.coordinated (currently, there are only 3) members of att.measurement too.
However, I'm not sure this completely addresses Andrew's need.  If I understand correctly, Andrew was also looking for a list of appropriate values.

From andrew.hankinson on June 20, 2012 13:35:21
I don't know if this is a big deal, but that means that we can only ever have one @-unit on an element. So if we wanted to mix our units -- say pixels and points in different attributes on the same element, we can't. Doing it the HTML way seems to get around that by specifying the unit type in the field itself.
This might not be an issue -- I don't know. But Perry is right, it would also be nice to have an open-ended enumerated list of default measurement types and maybe even record a decision about the default unit if it is not specified.
I vote for pixels, but there may be compelling reasons to vote for centimetres or points...

From<EMAIL_ADDRESS>on June 22, 2012 04:07:00
I would vote for points, which seems to be the more 'neutral' to me - does it make any sense?

From<EMAIL_ADDRESS>on June 22, 2012 04:16:22
I wouldn't specify a default unit in the Guidelines, especially not points. Points are a typograhic unit, and there is almost no natural connection to music typesetting. If we want a natural unit, I'd prefer centimeters (or maybe inches). But then again, one should be able to specify a resolution for digital units (expressed in dpi). But again, all that seems like an unnecessary hassle, I would just suggest some units and leave it to the encoder to specify the one he's using. We just can't stop people from doing dumb things with MEI, no matter how hard we try…

From<EMAIL_ADDRESS>on June 22, 2012 04:21:53
Good, we have three votes with three different opinions ;-) A fourth one?

From<EMAIL_ADDRESS>on June 22, 2012 04:27:46
For facsimile elements, TEI always assumes pixels. Those points are supposed to refer to digital images, there are other elements to deal with real manuscript objects and I definitely see the value of keeping things separated. So I'd keep pixels.
Other elements that express some form of measurement (tei:space, tei:measure, etc.) there is a dedicate class att.dimensions http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-att.dimensions.html It allows to specify any @-unit (there's a recommended list).

From<EMAIL_ADDRESS>on June 22, 2012 08:15:23
Let's adopt the TEI method. I'll add an open value list for @-unit that includes
in = inches
mm = millimeters
cm = centimeters
px = pixels
pt = points
Any others that should be on the list?  Since it's an open list additional values can be used ad hoc.
Can we "bump up" this feature request to bug status and include it in 2012?

From andrew.hankinson on June 22, 2012 10:44:48
Sure, I think we can bump this to a bug report. It's not added functionality, just clarifying existing functionality.
The only other unit for "absolute" values specified in the CSS3 documentation is 'picas.' It might also be useful to include the following in a note or documentation:
‘cm’	centimeters
‘mm’	millimeters
‘in’	inches; 1in is equal to 2.54cm
‘px’	pixels; 1px is equal to 1/96th of 1in
‘pt’	points; 1pt is equal to 1/72nd of 1in
‘pc’	picas; 1pc is equal to 12pt

From<EMAIL_ADDRESS>on June 22, 2012 10:49:17
Labels: -Type-Enhancement -Milestone-Release2013 Type-Bug Milestone-ReleaseNext

From<EMAIL_ADDRESS>on June 22, 2012 11:52:19
Status: Started

From<EMAIL_ADDRESS>on June 22, 2012 14:55:56
Owner<EMAIL_ADDRESS>

From<EMAIL_ADDRESS>on June 25, 2012 01:22:19
Why would you define the 'size' of a pixel? This is resolution dependent, and it will always be 1/96 of 1in.

From<EMAIL_ADDRESS>on June 25, 2012 06:02:47
We're not talking about defining the size of a pixel, only units of a measurement. '103' doesn't tell you anything until you say it's pixels you're counting and not picas. Are you objecting to documenting the definition of inches, pixels, etc.?

From<EMAIL_ADDRESS>on June 25, 2012 06:07:16
Yes, I am objecting the definitions. The definition for 1in is OK. But for pixels, I think it is wrong to say that 1px is 1/96th of a 1in - it can be, but not necessary. I don't know about points and picas.

From andrew.hankinson on June 25, 2012 06:18:23
Before changing it, it's perhaps helpful to look at the CSS3 documentation for this. It's specifying a 'reference pixel,' http://www.w3.org/TR/css3-values/#lengths They admit that the reason for the reference pixel definition is because this differs from earlier CSS definitions and changing it would break older content.
Since displays are starting to vary widely in pixel densities (all of the 'retina' displays from Apple have different pixel densities) and more are likely on their way, it might be nice to have the pixel defined in terms of a physical measurement -- we can use 1/96th of an inch, or we could use 0.26mm.

From<EMAIL_ADDRESS>on June 25, 2012 06:53:21
OK, this make sense for CSS. If we have a physical measurement defined by default for a pixel, I think it would be useful to be able to specify a custom resolution. For example, if the surface is in a image at 300dpi, then we need to be able to specify it. Is there something like this in TEI? I did not see anything in the att.dimensions class

From andrew.hankinson on June 25, 2012 07:39:37
I don't think we do need to specify it. A 2000 x 3000 pixel image will always be 2000 x 3000 pixels, regardless of the DPI. If I'm on a "standard" 1/96in per pixel monitor, I will need at 21" monitor to display it in full width. If I'm on a "retina" display at 1/326in per pixel, I will only need a 7" monitor to display it at full width.
It's up to image software to render and figure out if it wants to honour the DPI tag in an image or not. Usually they don't unless you're working in a DTP application; in which case it will handle the pixels / inch conversion for displaying on the users' monitor anyway.

From<EMAIL_ADDRESS>on June 25, 2012 08:03:25
I find it problematic. Specifying pixels is not only for display it on monitors - and assuming that the default pixel size is at 96dpi is specific to monitors. If you want to render (e.g., print it) what is given in the encoding at its real size, you would need to look up at the dpi within the image file even if you don't necessary what to display the image. And if you don't and assume 96dpi, it will appear mon the 3 time larger that the original on your print. So if we specify a default dpi (which is what is done with the definition), we need to provide a way to overwrite it.

From<EMAIL_ADDRESS>on June 27, 2012 13:06:10
This issue was closed by revision r580 .
Status: Fixed

From<EMAIL_ADDRESS>on June 28, 2012 01:46:55
Sorry to insist, but I am not very confortable with the fixed definition of the pixel size. CSS (and monitors) is only one case where dpi are involved.
As I tried to suggest (sorry for the typos), either we do not say anything about it, or we provide a way to redefine it. Why not adding a @-resolution in order to be able to overwrite it?

From<EMAIL_ADDRESS>on June 28, 2012 03:27:34
I agree with Laurent, the current solution has very nasty side effects. If trying to measure a 300dpi image, one could think the image is more than three times as large as it is. If we want to keep this sentence in the documentation, we definitely need @res / @-resolution as well. Removing the fixed definition is at least equally good.
As there seems to be need for further discussion, I reopen the ticket.
Status: Started

From<EMAIL_ADDRESS>on June 29, 2012 14:41:31
How about for the time being we simply remove the documentation in att.measurement; that is, the stuff in parentheses?  This doesn't solve the problem of defining the size of a pixel, but it doesn't supply an "incorrect" definition either. It simply bypasses the problem.
Also, I'll make the list in att.measurement "semi" and remove my klugey att.unitized class.

From<EMAIL_ADDRESS>on June 30, 2012 04:50:02
Sounds good to me. We can keep in mind that we can one day add a @-res, but I don't think it is necessary right know.

From<EMAIL_ADDRESS>on July 19, 2012 11:51:52
This issue was closed by revision r602 .
Status: Fixed


Add techmap_autopurge attribute

Fixes #1381

@clairexen Would you consider adding this to the techmap doc? In solving #3775 I (once again) re-discovered a need for this, only to find to find out this wasn't the first time...!

@eddiehung Which doc? The attribute is described in the techmap help, is techmap also documented elsewhere that we need to update?

@eddiehung Which doc? The attribute is described in the techmap help, is techmap also documented elsewhere that we need to update?

I'm so sorry! I completely missed that it was. I didn't see it in this pull request and expected my squishy brain to have spotted it after skimming those exact docs. The only other place I might expect to see if would be https://github.com/YosysHQ/yosys#verilog-attributes-and-non-standard-features but there are likely many other attributes missing from that list. Sorry again for the noise!!

No worries! It is actually in this pull request too but somehow I also only noticed it on the third look...
I don't know if the techmap features should go in the general verilog frontend feature description, IMO that should be a separate section somewhere so that there's no confusion with what goes into user input designs. I'll put it on the list of all the things that should be changed or added when we overhaul the manual.


Replace Quick Brown Fox text (and several other suggestions)

Hi, I have a suggestion for a feature.
Let's say my brand not only wants to specify the heading and paragraph fonts, but also wants to specify the type for its name. Instead of saying "The Quick Brown Fox..." I should be able to enter my own text: "text": "Brand Name"
` ` `
{
    "headings": [60,48,36],
    "color": "#231f20",
    "font": "Open Sans",
    "tracking": 10,
    "weight": 300,
    "text": "Brand Name"
}
` ` `

(I put spaces between the backticks because apparently backslash doesn't work as an escape character in markdown on GitHub.com)
Also, displaying the name of the font would be very useful. Right now I'm just making it a heading:

But instead of having a heading above that says "Open Sans", I'd love to have the ability to just display it in the paragraph.
One other suggestion is to display the other typography info such as tracking. I have tracking set to 10, but it's not displayed below:

Lastly, is there a way to customize the theme? I'd love to replace the default colors and type on the page itself with my brand's, but it doesn't seem like I can.
Thank you in advance, and looooove this project, will be using this for many more to come : )

One more idea: quick copy buttons for the colors

Also, if you'd like me to mockup examples of what I mean or explain the utility in adding them, I can : )


Only last configured elevator behaves

With the following code below:
{
    init: function(elevators, floors) {
        for (var f = 0; f < floors.length; f++) {
            var floor = floors[f];
            floor.on("up_button_pressed", function() {
               // Maybe tell an elevator to go to this floor?
                for (var e = 0; e < elevators.length; e++) {
                   var elevator = elevators[e];
                   if (elevator.destinationDirection() == "stopped"){
                       console.log("selected elevator:" + e);
                       elevator.goToFloor(floor.floorNum());
                       return
                   }else if (e == elevators.length - 1){
                    var random = Math.floor(Math.random() * elevators.length);
                    console.log("Random FLoor: " + random);
                    elevators[random].goToFloor(floor.floorNum());
                }
            }
        });

        floor.on("down_button_pressed", function() {
            // Maybe tell an elevator to go to this floor?
            for (var e = 0; e < elevators.length; e++) {
                var elevator = elevators[e];
                if (elevator.destinationDirection() == "stopped"){
                    console.log("selected elevator:" + e);
                    elevator.goToFloor(floor.floorNum());
                    return
                }else if (e == elevators.length - 1){
                    var random = Math.floor(Math.random() * elevators.length);
                    console.log("Random FLoor: " + random);
                    elevators[random].goToFloor(floor.floorNum());
                }

            }
        });
    }

    for (var e = 0; e < elevators.length; e++) {
        var elevator = elevators[e];
        elevator.on("floor_button_pressed", function(floorNum){
            elevator.goToFloor(floorNum);
        });

        elevator.on("idle", function(){
            elevator.goToFloor(0);
        });

        elevator.on("stopped_at_floor", function(){
            console.log("Stopped at floor");
            elevator.goToFloor(0);
        });
    }

},
update: function(dt, elevators, floors) {
    // We normally don't need to do anything here
}
  }

I'm just learning everything right now - but to my understanding this should configure each of the elevators.  However, it only seems to ever work with the final elevator in the array.  Any elevators configured first will go straight to the top floor and stay there.
Is there something I am not understanding about javascript or the setup?

use let instead of var

actually i think its the code up above it in the hall buttons presses, you use the elevator variable, that will only be the last elevator from the loop below setting it. changing it to a let would just make elevator above undefined and throw an exception


bo3 export: internal error

Everytime I try to export a structure with /exportbo3 <name> --includeair --includetileentities I get an error saying An internal error occured while attempting to perform this command.
If I only include air - everything is working just fine. Same with only exporting the bo3 with /exportbo3 <name>. As soon as I try to include tileentities it fails.
I checked my world settings in multiverse: generator is set to TC. If I do the /tc check command it says its enabled. I tried generating a new world, nothing.
Here is the error I get in console:
[http://pastebin.com/2baYLLAy]
About my plugins etc.:

CraftBukkit version git-Spigot-9797151-301db84 (MC: 1.10.2) (Implementing API version 1.10.2-R0.1-SNAPSHOT)
AsyncWorldEdit v3.4.0
TerrainControl v2.8.2-SNAPSHOT
Essentials v2.0.1-b403
Multiverse-Core v2.5.0-SNAPSHOT-b722
WorldEdit v6.1.4-SNAPSHOT;3596-b9801eb
BO3Tools v1.5

I don't get any error messages on startup.

Well, I guess I should post it on the bo3tools bug tracker ;) Sorry!


ginga 4.0.1 ImageViewCanvas

hcam-finder version: 1.2.1
Python version: 3.9.2
Operating System: debian 11 amd64

Description
Updating from ginga-3.4.2 to ginga-4.0.1 breaks ufinder/usfinder/hfinder with...
from ginga.tkw.ImageViewTk import ImageViewCanvas
ImportError: cannot import name 'ImageViewCanvas' from 'ginga.tkw.ImageViewTk' (/usr/local/lib/python3.9/dist-packages/ginga/tkw/ImageViewTk.py)
as it looks like ImageViewCanvas has been deprecated from newer versions of ginga.
Regards
Paul.

Thanks @paulkerry1
I’ll look into this on Thursday.

fixed by #36


Cannot find native module ExpoGooglePlacesAutocomplete

I had this issue popping constantly and i decide to check the package folder, i noticed an error which i corrected and it's working now.
After Installation, i noticed this export in ExpoGooglePlacesAutocompleteModule.js

export default requireNativeModule("ExpoGooglePlacesAutocomplete",) as ExpoGooglePlacesAutocompleteModule;

I removed the comma and everything works fine. The final export is:

export default requireNativeModule("ExpoGooglePlacesAutocomplete") as ExpoGooglePlacesAutocompleteModule;

Thanks! Fixed and published

I still see this error installing it from npm, was it published there?


Object[]'s toString() used in wrapping

In this build.gradle I am generating OSGi manifests for both the rsyntaxtextarea and its autocomplete. Unfortunately when I tried to change the org.fife.ui symbolic name of RSyntaxTextArea, I got symbolic name like: [Ljava.lang.Object;@69c8b868.
When I tried similar thing to change the version of things to wrap, I got also a toString of an Object array (so I had to find already OSGified versions of it).

That's strange. I will fix as soon as possible. Thanks for reporting.

Closed by accident, sorry.


Errors from 'Object' folder

Windows 11
.NET: v6.0.1
VS Code: v1.62.2
Extensions: C# v1.23.16 | .NET install Tool for Extension Authors v1.4.0 | NuGet Package Manager GUI for VSCode v1.1.9
I ran dotnet new console -o newApp via command prompt
From VSCode I open a terminal and run dotnet run
The code runs as expected, but VSCode also shows 22 Problems and I cannot find any information to clear them

I was provided the following document https://github.com/dotnet/cli-lab/releases to download the .msi tool for uninstalling .NET sdk and runtimes.
I ran dotnet-core-uninstall remove --all-but-latest --sdk and removed the following sdks

Once those were removed, I restarted VSCode and now have 0 errors.

@dsplaisted is there anything with the SDKs that could be causing these errors? The only thing I could think here is that there was a global.json on the directory tree somewhere setting the version to a lower version given the dotnet --info command was not ran on the project directory on the screenshot above.

Yes, it sounds like it might be something with global.json.  Not sure though.
@DustinCampbell to route as appropriate.

I was helping him troubleshoot this. We checked dotnet --info, everything pointed to 6. The command line was totally fine. If there was any global json, it could have been only in something omnisharp picked up. We tried installing vscode-insiders for a clean start (same issue). Tried a lot of things, then recommended he clean up because I saw an older sdk from the --info output.
If I were a betting man, I wouldn't have thought a sdk cleanup would have fixed that issue. (Nothing else changed, so I don't know how a global.json would have caused that) - and the cross contamination to fresh insiders build was also sus.

After rebooting my pc, I didn't work on this issue yesterday. When I fired up VSCode today the errors resurfaced.
I tested everything in Windows Sandbox and it all worked without fail.
I uninstalled .NET, removed the C# extension, deleted the files I was working with previously.
Downloaded .NET again, created new folders, and ran
dotnet new console -o newAPP
Next, I ran
cd newApp
Then
code .
From VSCode, I opened a terminal and ran
dotnet run
Everything ran as expected and no errors appeared, but I never got the prompt to install the C# extension.
I went in and installed the C# extension and the errors reappeared.
I removed the extension again and the errors disappeared.

Adding @JoeRobich for the C# for VS Code issue.

@johndrosa Can you please share the OmniSharp log from the Output pane from the environment that reproduces this issue?

OmniSharp is using your install Visual Studio 2019 which does not support .NET 6 SDK. As a workaround you tell O# to only use the packaged MSBuild by adding an "omnisharp.json" file either in your project folder or, if you want it to apply to all projects, to your windows User folder that contains the following:
{
    "msbuild": {
        "UseBundledOnly": true
    }
}

That's so interesting it would try VS by default, even on a fresh install, especially on a path that is using .NET6 (or any other version). You would think it should be the opposite. Really good to know. And knowing is half the battle. 📚

@JoeRobich I was already in the process of removing VS 2019 when I got your message. Here is the updated log and the error has cleared.


Adding options for Indices match length and full string search

I've been working on a project where I found these two new options to be useful. Please see the descriptions in the readme and let me know if you think these changes fit your aim/what you'd like to see done before bringing them over.

I like this. Good stuff @austinmoffa


Lack of documentation for migration from js to js_interop

With the recent beta release of wasm for flutter i wanted to try compling my application to the new target. As (somewhat) expected i ran into some js interop issues.
I tried to switch to the new package import 'dart:js_interop'; but struggled to get it working as there seems to be very litte documentation on how to do the migration.
Old code
@JS('mapboxgl')
library mapboxgl.interop.ui.control.navigation_control;

import 'package:js/js.dart';
import 'package:mapbox_gl_dart/src/interop/interop.dart';

@JS()
@anonymous
class NavigationControlOptionsJsImpl {
  external bool get showCompass;
  external bool get showZoom;
  external bool get visualizePitch;

  external factory NavigationControlOptionsJsImpl({
    bool? showCompass,
    bool? showZoom,
    bool? visualizePitch,
  });
}

@JS('NavigationControl')
class NavigationControlJsImpl {
  external NavigationControlOptionsJsImpl get options;

  external factory NavigationControlJsImpl(
      NavigationControlOptionsJsImpl options);

  external onAdd(MapboxMapJsImpl map);

  external onRemove();
}

Diff
diff --git a/lib/src/interop/ui/control/navigation_control_interop.dart b/lib/src/interop/ui/control/navigation_control_interop.dart
index 985a203..0257ce2 100644
--- a/lib/src/interop/ui/control/navigation_control_interop.dart
+++ b/lib/src/interop/ui/control/navigation_control_interop.dart
@@ -1,7 +1,7 @@
 @JS('mapboxgl')
 library mapboxgl.interop.ui.control.navigation_control;

-import 'package:js/js.dart';
+import 'dart:js_interop';
 import 'package:mapbox_gl_dart/src/interop/interop.dart';

 @JS()

The error i am getting is Error: The '@JS' annotation from 'dart:js_interop' can only be used for static interop, either through extension types or '@staticInterop' classes.
I found some documentation in https://dart.dev/interop/js-interop/usage
e.g.
import 'dart:js_interop';

@JS('Date')
extension type JSDate._(JSObject _) implements JSObject {
  external JSDate();

  external static int now();
}

Before converting all the code in my dart js warper i would like to be sure that this is the correct approach. It would be great if you could also provide some concrete side by side examples of old js vs new js_interop code in the documentation.
Config
Flutter 3.21.0-1.0.pre.2 • channel beta • https://github.com/flutter/flutter.git
Framework • revision c398442c35 (3 weeks ago) • 2024-03-12 22:26:24 -0700
Engine • revision 0d4f78c952
Tools • Dart 3.4.0 (build 3.4.0-190.1.beta) • DevTools 2.33.1

CC @srujzs @MaryaBelanger

Is there any update on this? It seems nearly impossible to use wasm without more documentation on this.

I think Marya has been working on an interop tutorial first and then this, but feel free to ask me questions in the meantime on how to port specific lines of code.
The general model is similar to package:js and we dive into some of the major differences here: https://dart.dev/interop/js-interop/past-js-interop#package-js.

Looking at the OP edits:

Error: The '@JS' annotation from 'dart:js_interop' can only be used for static interop, either through extension types or '@staticInterop' classes.

This is mildly covered on that webpage, but there are two @JS annotations - one from package:js (which is meant for package:js classes and can be unsound) and one from dart:js_interop (which is meant for extension types and is sound).

Before converting all the code in my dart js warper i would like to be sure that this is the correct approach.

In general, you should move code from classes to extension types on JSObject. external members can be more or less copied over to the extension type, with the caveat that the types you can use on such a member are restricted: https://dart.dev/interop/js-interop/js-types#requirements-on-external-declarations-and-function-tojs. The above code seems to only use primitives and interop types, so the migration would be rather simple (assuming MapboxMapJsImpl is also migrated to an interop extension type):
@JS('mapboxgl')
library mapboxgl.interop.ui.control.navigation_control;

import 'dart:js_interop';

import 'package:mapbox_gl_dart/src/interop/interop.dart';

// No need for `@JS` if not renaming, and no need for `@anonymous` as you can
// write an external constructor with named parameters directly (as shown below).
extension type NavigationControlOptionsJsImpl._(JSObject _) implements JSObject {
  external bool get showCompass;
  external bool get showZoom;
  external bool get visualizePitch;

  external factory NavigationControlOptionsJsImpl({
    bool? showCompass,
    bool? showZoom,
    bool? visualizePitch,
  });
}

@JS('NavigationControl')
extension type NavigationControlJsImpl._(JSObject _) implements JSObject {
  external NavigationControlOptionsJsImpl get options;

  external factory NavigationControlJsImpl(
      NavigationControlOptionsJsImpl options);

  external onAdd(MapboxMapJsImpl map);

  external onRemove();
}

Following the example with extension types, I can now no longer implement my own interface.
extension type JavascriptXHROptions._(JSObject _) implements JSObject, XHROptions
Which will give me an error saying XHROptions is not a supertype of JSObject. But I use my own interface for dependency inversion throughout my code. How can I with this new approach implement my own interfaces so my other project won't break?

What is XHROptions here? A package:js class? If so, the error makes sense: the representation type is not a subtype of XHROptions. Interop extension types are not supposed to compose package:js types so changing the representation type to XHROptions won't work either (you'll get a compile-time error saying JavascriptXHROptions is not an interop extension type now).
Instead, if you want to still reuse the interface of XHROptions, use a cast:
extension type JavascriptXHROptions._(JSObject _) implements JSObject {}
...
final javascriptXHROptions = ...;
(javascriptXHROptions as XHROptions).someMethod();

Note that package:js can't be used anywhere in your program when compiling to Wasm. If you make XHROptions an interop extension type, you can implement it like you have.

XHROptions is my own custom abstract class that serves as an interface only.
abstract class XHROptions {
  XHROptions({
    required String method,
    required Map<String, String> headers,
    required bool withCredentials,
  });

  String get method;
  set method(String value);

  Map<String, String> get headers;
  set headers(Map<String, String> value);

  bool get withCredentials;
  set withCredentials(bool value);
}

I just took it as an example as I have many of these interfaces. But my point was that before with package:js I was able to implement that interface like so
@JS()
@anonymous
class JavascriptXHROptions implements XHROptions {

But with the new approach
extension type JavascriptXHROptions._(JSObject _) implements JSObject, XHROptions
This now seems like it's no longer possible. Because XHROptions is not a super type of JSObject, and I don't want it to be. I want the interace to be separated from any js related coupling. Instead I use it for dependency inversion in my other applications to avoid situations like this where the underlying api changes. But now it seems I cannot implement it anymore with this new approach.

I see, you're just using it as an interface. Extension types by design do not allow virtual/dynamic dispatch, so you can't have an interop extension type implement an unrelated Dart class. One option to make this work (that will be slower) is a wrapper class:
extension type JavascriptXHROptions._(JSObject _) implements JSObject {
  // whatever interop members you might need
  JavascriptXHROptions({String method});
  external String method;
}

class JavascriptXHROptionsImpl implements XHROptions {
  late final JavaScriptXHROptions _options;

  JavascriptXHROptionsImpl({required String method}) {
    _options = JavascriptXHROptions(method);
  }

  String get method => _options.method;
  set method(String value) => _options.method = value;
}

The irony, the very thing extension types would solve is the very thing they can't solve in a way.
IMO most people would never couple their project tightly to javascript code as flutter is a multi platform framework and in general dependency inversion is very commonly used in the flutter ecosystem. So the new extension type mostly just adds more boilerplate code for framework users. Where the old way of doing it with the js package likely has similar performance to this approach.

Maybe. :) package:js classes disallowed you from having non-external members, so if you needed to do anything besides just directly call the JS member (with the same name as the interface API since you couldn't do renaming), you'd likely need to use a wrapper class anyways.
I've mostly seen that approach with more granular APIs that call a number of JS members and handle the results, so you need a wrapper class regardless in that case. However, in the case where you just need a set of options, like XHROptions, I can definitely see it being worse to use extension types.

In most cases we don't need to have non-external members on a JS class. Also wouldn't you be able to write extensions for the package:js classes, it seems to work for me? I'm still not seeing the advantage of using an extension type for this, but perhaps I'm overlooking something.

Sorry, my comment might have been confusing - it was in reference to specifically implementing a shared interface.

Also wouldn't you be able to write extensions for the package:js classes, it seems to work for me?

Right, but that's the same as extension types in that the non-external methods wouldn't have virtual dispatch since they're extension methods. So, they couldn't be used to implement an interface, but if the external JS members directly implement the interface you need, you don't need the non-external members, and therefore the package:js class would be better.

I'm still not seeing the advantage of using an extension type for this, but perhaps I'm overlooking something.

For dependency inversion, there isn't an advantage. I was mostly pointing out that it might not be worse than package:js classes depending on the use case.

Nice! Yeah, I expect the change in what types are allowed will be the bigger lift than the change to extension types.

The bigger issues i faced showed up as i tired to run the code after it was complied to wasm as suddenly the JS - dart interface becomes much stricter so any existing issue in the interface suddely start throwing errors. If you just complie to JS many issues don't show up. Managed to fix them tho.

Can you elaborate what you mean by this? Do you mean you saw errors going from package:js to dart:js_interop or going from compiling to JS to compiling to Wasm? With dart:js_interop, we should hopefully have the same errors around restricted types regardless of whether you compile to JS or Wasm.

Looking at the code again it seems that all (most?) issues where with the js object container layer not with the interop itself.

Ah I see, this is partially a change in imports from dart:js_util to dart:js_interop. We don't have any errors on the JS backends telling users to use dart:js_interop instead because the old JS interop libraries are not deprecated yet. There's a lint request to add that and in turn encourage migration, though. Thanks for sharing!

This is concerning, when the team recommends migrating from on package to another and no migr
ation guide is provided, ideally we shouldn't assume that everyone knows how to do it :(
How do I migrate this? my code is pretty similar
@JS('mixpanel')
library mixpaneljs;

import 'package:js/js.dart';

@JS('init')
external void init(String token, Object? config);

@JS('set_config')
external void set_config(Object config);

@JS('has_opted_out_tracking')
external bool has_opted_out_tracking();

@JS('opt_in_tracking')
external void opt_in_tracking();

@JS('opt_out_tracking')
external void opt_out_tracking();

The documentation on js_interop refers to globalThis which maybe was replaced by globalContext, but in either case does not seem to allow dynamic property setting as shown.  Can globalContext be used for anything directly?

The use of globalThis in the documentation (e.g. here) is within the scope of a JS program to illustrate setting and referring to properties. globalContext is the rough Dart equivalent to globalThis. I say rough because it may be self or some other slightly different way to refer to the global scope due to legacy reasons, but practically speaking, it'll make no difference in the vast majority of cases and you can treat it like globalThis. So, you can use it however you would with globalThis.
Dynamic property setting can be handled using dart:js_interop_unsafe. Preferably, you should use static interfaces where possible, but we still allow you to access, set, and call arbitrary properties.

For anyone else who would benefit from a more complete example: I have just implemented a full (typescript) scripting extension mechanism in my Flutter for web project using js_interop.  It involves bindings for not-completely-trivial types and function calling both ways as well as evaluation of scripts in the browser environment via calling out to eval.   code on github


rtsp or rtmp address

I don't know what to enter the addresses of rtsp and rtmp.
Is the IP address of the Android phone or the server on the desktop? And what should be set as “live” and “app” on the back of the port and the port...?
There is an error message
"Connection failed. Connect error, failed to connect to /<IP_ADDRESS>(port5554) from /<IP_ADDRESS>(port 39700) after 5000ms: isConnected failed: ECONNREFUSED(Connection refused)
Thx

Hi,
You should write something similar to this:
RTMP:
rtmp://<IP_ADDRESS>:1935/live/testing
RTSP:
rtsp://<IP_ADDRESS>:554/live/testing
Where:
<IP_ADDRESS> -> IP of your mediaserver.
1935 or 554 (it is default port in each protocol but you can set anyone if you configure it in your server) -> Port used for your server.
live -> Application name used by your server. By default usually is live or app
testing -> Stream name. Normally this could be any string.

Thank you so much
But,
I already did that, but it doesn't work. I am trying to link with a laptop, can I use the laptop Ip address as the Ip address? Where can I set the port?
As a beginner, I am still inexperienced.

First of all. You need get both devices (phone and laptop) in the same network.
Also if you are using firewall or something similar disable it to avoid problems with that.
After that you should use laptop IP (local IP if you are in a local net) like I told you.
About the port this depend of mediaserver installed in your laptop (not all server use same ports) so I recommend you go to your server documentation and check it. If you can tell me server used. Maybe I can help you.

Hmm.. okay!!
Actually, I am trying to connect with Python, using the OS.
I have disabled using firewall

I think you don't understand this library porpouse.
It seems that you don't have a mediaserver installed in your laptop.
This library is for stream video and audio to a media server.
Here is a list of mediaserver tested if you want install one:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/wiki/Media-servers-tested

rtmp://<IP_ADDRESS>:1935/live/testing
I had the same problem. My rtmp service is fine, pushing the stream normally using OBS software, but showing a connection error on Android

Hello,
Please, if possible open a new issue instead of write in a closed one. You can link this issue if it is relevant for the case.
About the error, which one? can you share error connection?
Are you sure that your device has connection with your server? (if OBS works it is not relevant if you are using different devices) You can download a ping app and do a ping to your server
Are you sure that your device is in the same network? check your IP in settings > device info > IP address (this could change depend of device model, you can download an app if necessary)


[WIP] Fix runconfig Config/HostConfig regressions from engine removal

Some Config/HostConfig fields suffer from a regression where previously
(<1.7.0) it was possible to just pass a string (via remote API) in json
and be adapted to be a string's slice (old engine GetenvList behavior).
As of now it isn't possible anymore cause we are directly decoding into []string.
This patch fixes these regressions and add a deprecation notice on
affected fields for this behavior.
close #14338

[x] Add docs
[ ] Fix tests
[x] Fix panic on win janky

Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>

As this patch is using stringutils.StrSlice, two tests are failing because of this
#15567 was opened to fix this behavior I suppose
ping @duglin @cpuguy83 @shishir-a412ed

Tests are green locally by applying diff from #15567 from @shishir-a412ed tho

@runcom as I mentioned in irc, I might be missing some aspects of this but here's my current thinking...

I'm not thrilled with the new StrSlice stuff - it feels like a hack
the api/types/types.go structs should be exactly what we want people to see in the json - likewise, since those structs are used by the --format code for things like docker inspect the JSON and the structs need to match, exactly - meaning no special serialization code and no mapping of field names.  See #15567
the internal structs (like runconfig stuff) should be exactly what we want to store on disk - if they're saved. IOW, we shouldn't do anything special in there just because of the on-the-wire JSON serialization.
the two structs (api/types vs internal) should (obviously) be related but its ok if they don't match exactly - we should have mapping code that moves data between the two structs - giving each the freedom to "do what's right" w/o worrying about the other.  I think #15567 is headed this way for some of this.

Now, that's all nice but then how do we solve this issue - meaning, how do we allow for a string when the struct is expecting a []string ?
One option is to have the code that deserializes the JSON examine the []string fields afterwards and see if they're empty. If they are then it could be due to the JSON having a string instead.  For each empty []string we could look at the interface{} version of the JSON and see if there's a string for that field - and if so, convert it to a []string.  By interface{} version of the JSON I mean, use something like:
var m interface{}
dec := json.NewDecoder(reader)
dec.Decode(&m)

I'm not thrilled with the new StrSlice stuff - it feels like a hack

me neither, it seems to be so invasive

the api/types/types.go structs should be exactly what we want people to see in the json - likewise, since those structs are used by the --format code for things like docker inspect the JSON and the structs need to match, exactly - meaning no special serialization code and no mapping of field names. See #15567

the internal structs (like runconfig stuff) should be exactly what we want to store on disk - if they're saved. IOW, we shouldn't do anything special in there just because of the on-the-wire JSON serialization.

Totally agree, we should do exactly what we're doing with types.ContainerJSON  and daemon.Container so the behavior here is consistent with the container one - --format flag is formatting types.ContainerJSON not daemon.Container

the two structs (api/types vs internal) should (obviously) be related but its ok if they don't match exactly - we should have mapping code that moves data between the two structs - giving each the freedom to "do what's right" w/o worrying about the other. I think #15567 is headed this way for some of this.

We already have code mapping internal to external struct in daemon/inspect.go iirc so this will be needed for sure.
That said, while I like the interface thinghie cause it will eventually be supported for just two releases (as per deprecation policy), it still sounds hacky but if it's the only thing left to do I'll go for it.

Ping @runcom: what do we do with that?

@icecrime this patch depends on https://github.com/docker/docker/pull/15567 so that should be merged first (maybe) but it still needs some eyes to be merged. After that, this is free to be reviewed.

@icecrime @runcom For #15567 I am waiting on maintainers to agree on the solution. (Possibly a versioned API to solve that). Once we have an agreement, I ll be happy to make the changes.

@shishir-a412ed thanks, I left a comment there with a possible solution and some thoughts, @icecrime if you have some time/thoughts you may want to have a look there

I'm gonna rework this and resubmit because too many things have changed in master and it's a mess to rebase


Unable to run android_ndk_perf on Nexus 9

Following the instructions here: https://google.github.io/fplutil/android_ndk_perf.html. I run the following command:
cd liquidfun/Box2D/Testbed android_ndk_perf --apk bin/testbed-debug.apk record -o output/perf.data
This produces the following error:
WARNING: Nexus 9 is not in the list of supported devices. It is likely that the
performance counters don't work so you may need to try a different device.
run-as: exec failed for /data/local/tmp/perf: Permission denied
243
chmod: /data/data/com.google.fpl.liquidfun.testbed/perf.data: No such file or directory
1
0
Unable to make /data/data/com.google.fpl.liquidfun.testbed/perf.data readable.

Hi Don, are you sure the perf binary was copied to the device?  It looks
like adb push failed.
On Tue, Apr 12, 2016 at 2:24 PM, Don Turner<EMAIL_ADDRESS>wrote:

Following the instructions here:
https://google.github.io/fplutil/android_ndk_perf.html. I run the
following command:
cd liquidfun/Box2D/Testbed
android_ndk_perf --apk bin/testbed-debug.apk record -o output/perf.data
This produces the following error:
WARNING: Nexus 9 is not in the list of supported devices. It is likely
that the
performance counters don't work so you may need to try a different device.
run-as: exec failed for /data/local/tmp/perf: Permission denied
243
chmod: /data/data/com.google.fpl.liquidfun.testbed/perf.data: No such file
or directory
1
0
Unable to make /data/data/com.google.fpl.liquidfun.testbed/perf.data
readable.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/google/fplutil/issues/5

Running android_ndk_perf with --verbose I can see that it's the following command which fails:
/usr/local/bin/adb "shell" "run-as com.google.fpl.liquidfun.testbed /data/local/tmp/perf"
With the error: run-as: exec failed for /data/local/tmp/perf: Permission denied
This is strange because /data/local/tmp/perf is world executable:
adb shell ls -al /data/local/tmp/perf -rwxrwxrwx shell    shell     2599416 2016-04-12 22:02 perf

I did find that you can do adb shell cp /data/local/tmp/perf /data/data/com.google.fpl.liquidfun.testbed/perf in order to copy the perf binary into the package folder. It can then be executed using run-as from there.

I have an internal patch for this, haven't tested all command but in general it looks like perf may have issues with Android N anyway.


General TODO List

Just sharing the last state of my todo list here,
in case somebody wants to play around with something:
If something of this list is especially important for you,
let me know in the respective issue (if there isn't one, feel free to create one)
list in prioritized order (top item = most important):

[ ] some bugs from https://github.com/steffengy/tiberius/pull/25
[ ] TLS

[ ] channel bindings (NTLMv2, SQL server doesn't seem to care)
[ ] generic backend

[ ] several more data type impls (prepare, query)

[ ] Text
[ ] Image
[ ] DatetimeOffsetn
[ ] BigVarBin / BigBinary / BigChar
[ ] NChar / NText
[ ] Xml

[ ] more documentation
[ ] tests
[ ] timeouts (TCP)
[ ] named pipes, shared memory
[ ] (proper) support for <TDS 7.4
[ ] sspi/ntlm auth (Negotiate, Kerberos in winauth)
[ ] Evaluate Readv/iovec insteadof 2 read system calls for header&packet body  (likely not possible)

Not sure if you're still working on these or not, but the missing type impls (Specifically BigChar) are forcing me to use the raw odbc crate instead.  If you can drop me a hint or two as to what all needs to be done to get the support working, I can surely try it myself

Generally:

read the MS-TDS spec and check how your type is encoded
search for the most similar type thats already supported (e.g. NChar)
implement it, add a test

All in https://github.com/steffengy/tiberius/blob/master/tiberius/src/types/mod.rs

I don't see any reference to Table valued parameters. Is this on the todo list at some point? It is supported in TDS 7.3 and above:
https://docs.microsoft.com/en-us/sql/relational-databases/native-client-odbc-how-to/use-table-valued-parameters-odbc?view=sql-server-ver15
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/c264db71-c1ec-4fe8-b5ef-19d54b1e6566
Great job, by the way. Making leaps and bounds with micro-service architecture Rust because of this library.

@klmallory
You're the first asking so far :)
Feel free to open an extra issue for it mentioning some usecases/why its important for you.
Personally I'm currently busy with slowly making progress with porting to async/await,
so maybe next year sometime.


Bug: app.vault.getAbstractFileByPath always return null

As the image show, app.vault.getAbstractFileByPath can only get root ("/") TAbstractFile, but cannot get any other sub folders or files
The bug can be reproduced both in dev console and in dataviewjs block

This is to be expected, paths in Obsidian don't start with a slash.
(The root folder / is a special case)

This is to be expected, paths in Obsidian don't start with a slash.
(The root folder / is a special case)

thank you


Testing utilities: Logging

To help user develop their actors and their tests we want to give them logging capabilities.
To log the different values we can leverage the native log method from the ref-fvm implementation.
Thomas' note
We'll have to see if there is some extension to create but I think that logging will have to be done over types that can be converted to string anyway.

Closed by #74


Reaf: cell prefix for batch, lot, FP and full screen widget for map

I tried to change the base from master to staging, and many changes are coming on my end that I didn't make. Confirm before merging that staging and master are on equal commits.


./fzf/install go get error: cp: cannot stat ‘/tmp/fzf-gopath/bin/fzf’: No such file or directory

[x ] I have read through the manual page (man fzf)
[x ] I have the latest version of fzf
[x ] I have searched through the existing issues

Info

OS

[ x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x ] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
On 32-bit centos VM with Windows 10 host: ( 4.14.94-200.el7.i686+PAE #1 SMP Mon Feb 18 19:45:05 UTC 2019 i686 i686 i386 GNU/Linux )

download and install go 1.18 from source: ( go version go1.18 linux/386 )

having GOPATH/GOROOT set or unset:
~ $ echo $GOPATH
/usr/local/go/bin/
~ $ echo $GOROOT
/usr/local/go/

run:
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

error:
GOPATH/GOROOT unset: cp: cannot stat ‘/tmp/fzf-gopath/bin/fzf’: No such file or directory
GOPATH/GOROOT set: cp: cannot stat ‘/usr/local/go//bin/fzf’: No such file or directory
` ~ $ .fzf/install

version=0.42.0
auto_completion=
key_bindings=
update_config=2
shells='bash zsh fish'
prefix='~/.fzf'
prefix_expand=/home/user/.fzf
fish_dir=/home/user/.config/fish
++ dirname .fzf/install
cd .fzf
++ pwd
fzf_base=/home/user/.fzf
++ printf %q /home/user/.fzf
fzf_base_esc=/home/user/.fzf
++ uname -sm
archi='Linux i686'
binary_available=1
binary_error=
case "$archi" in
binary_available=0
binary_error=1
cd /home/user/.fzf
'[' -n 1 ']'
'[' 0 -eq 0 ']'
echo 'No prebuilt binary for Linux i686 ...'
No prebuilt binary for Linux i686 ...
command -v go
echo -n 'Building binary (go get -u github.com/junegunn/fzf) ... '
Building binary (go get -u github.com/junegunn/fzf) ... + '[' -z '' ']'
export GOPATH=/tmp/fzf-gopath
GOPATH=/tmp/fzf-gopath
mkdir -p /tmp/fzf-gopath
go get -ldflags '-s -w -X main.version=0.42.0 -X main.revision=go-get' github.com/junegunn/fzf
go: downloading golang.org/x/sys v0.10.0
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/mattn/go-shellwords v1.0.12
go: downloading github.com/rivo/uniseg v0.4.4
go: downloading github.com/saracen/walker v0.1.3
go: downloading github.com/gdamore/tcell/v2 v2.5.4
go: downloading golang.org/x/term v0.10.0
go: downloading github.com/mattn/go-isatty v0.0.17
go: downloading golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
go: downloading github.com/gdamore/encoding v1.0.0
go: downloading golang.org/x/text v0.5.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
echo OK
OK
cp /tmp/fzf-gopath/bin/fzf /home/user/.fzf/bin/
cp: cannot stat ‘/tmp/fzf-gopath/bin/fzf’: No such file or directory

`
Workaround found:
in .fzf/install, change go get to go install:
# if go get -ldflags "-s -w -X main.version=$version -X main.revision=go-get" github.com/junegunn/fzf; then
if go install -ldflags "-s -w -X main.version=$version -X main.revision=go-get" github.com/junegunn/fzf; then

Fixed it, thanks!


Deduce unspecified Quantity from len(Items) in complex nested types of CloudFront Distribution

What problem are you facing?

Currently users of the CloudFront Distribution MR have to specify the length of the OriginSslProtocols.Items in OriginSslProtocols.Quantity. There are also other similar complex "array" types.
How could Crossplane help solve your problem?

We may extend the preCreate and preUpdate logic here and here, respectively, to include similar complex types.

Fixed by #1186


[BUG]: The bearer  is not valid after daylight saving in Egypt

What happened?
i have a deployment group agent installed on our windows server 2016, and the daylight has newly applied in Egypt, and the time is changed but since that, it keeps giving error in the agent log
The bearer  is not valid until 5/4/2023 12:02:58 AM. Current server time is 5/3/2023 11:03:00 PM.
i tried to change the time manually back, change the time zone, made the machine time with UTC
but all failed
but i can see that the current server time mentioned in the log is not correct meanwhile the machine time is correct
the time mentioned in log is not the same as the machine time
Versions
Azure DevOps version 3.220
Windows server 2016
Environment type (Please select at least one enviroment where you face this issue)

[ ] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
No response
Version controll system
No response
Relevant log output
[2023-05-04 00:02:58Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\azagent\A3\.credentials_rsaparams
[2023-05-04 00:02:58Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\azagent\A3\.credentials_rsaparams
[2023-05-04 00:02:59Z ERR  VisualStudioServices] POST request to https://vssps.dev.azure.com/dttmoj/_apis/oauth2/token failed. HTTP Status: BadRequest, AFD Ref: Ref A: B7E7C42F2178422D922663251F5D7C94 Ref B: CAI30EDGE0108 Ref C: 2023-05-03T23:03:00Z
[2023-05-04 00:02:59Z INFO VisualStudioServices] AAD Correlation ID for this token request: Unknown
[2023-05-04 00:02:59Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2023-05-04 00:02:59Z INFO AgentServer] Catch exception during connect. 4 attempt left.
[2023-05-04 00:02:59Z ERR  AgentServer] Microsoft.VisualStudio.Services.OAuth.VssOAuthTokenRequestException: The bearer <secret removed> is not valid until 5/4/2023 12:02:58 AM. Current server time is 5/3/2023 11:03:00 PM.
   at Microsoft.VisualStudio.Services.OAuth.VssOAuthTokenProvider.OnGetTokenAsync(IssuedToken failedToken, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Common.IssuedTokenProvider.GetTokenOperation.GetTokenAsync(VssTraceActivity traceActivity)
   at Microsoft.VisualStudio.Services.Common.IssuedTokenProvider.GetTokenAsync(IssuedToken failedToken, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout)
[2023-05-04 00:02:59Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2023-05-04 00:02:59Z WARN VisualStudioServices] Authentication failed with status code 401.
Cache-Control: no-cache
Pragma: no-cache
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
WWW-Authenticate: Bearer authorization_uri=https://login.microsoftonline.com/7b894711-1447-4ee2-8f33-7ea0821378be, Basic realm="https://tfsprodsin1.app.visualstudio.com/", TFS-Federated

@ahmedsopeah fixing the clock should fix this issue.
We already had similar issues —
https://github.com/microsoft/azure-pipelines-agent/issues/2393
https://github.com/microsoft/azure-pipelines-agent/issues/3919


Just 2 questions

Hi,
Thanks for making the code of UNet-3-Plus simpler, however I have 2 questions and I would be very grateful to hear from you:

In the paper the author says they used ReseNet-101 as backbone encoder, but in your code I could not find where exactly ReseNet-101is used? is it used at all? if not how did you extract the features? using custom convolutional layers?
My second question is about the decoder's logic, did you use custom functions for Max pooling, Relu, batch normalization... etc?

Hi @JawadTawhidi
Thanks for liking my work.
Answers to you questions

No, I haven't used ResNet-101 as a backbone. Yes, I used custom convolutional layers in the encoder. Here you can find using custom layers I was able to reproduce paper results.
Yes I have used above mentioned functions in the decoder.

Ok, good.
Thank you for responding. I want to use ResNet-101 as backbone for feature extraction part(As the author said in the original paper) but I did not find any similar code. Any clue? Any similar code?

I don't have any similar code but to give you a head start, you can use below code to extract features from ResNet-101. Replace them in the encoder section of UNet3+ to extract features.
# !pip install keras_cv  # Install KerasCV
import keras_cv
resnet = keras_cv.models.ResNet101Backbone(
        include_rescaling=False,
    )
# ResNet101 blocks output layer names
# {'P2': 'v2_stack_0_block3_out', 'P3': 'v2_stack_1_block4_out', 'P4': 'v2_stack_2_block23_out', 'P5': 'v2_stack_3_block3_out'}
resnet.get_layer("v2_stack_0_block3_out").output

Thank you, but as you know the resnet 101 has 4 layers, I am confused which layers I have to consider as e1, e2, e3...? specially in resnet 101 there is no need to apply max pooling and batch normalization after passing input to each layer. Any help?

Above ResNet-101 block output layers names are mentioned, you can use that to extract the output of each block and use them in the encoder.
I am not sure but maybe you have to adjust the network accordingly, right now I do not have time to experiment exactly with what changes will be needed to accommodate ResNet-101.


Parse multiple HTML tags in a single line

Given a single line with multiple tag pairs, all except the first one are ignored:
iex> EarmarkParser.as_ast("Ctrl+A")
{:ok, [{"kbd", [], ["Ctrl"], %{verbatim: true}}], []}

The parser shouldn't drop the content, so I think we could either:

interpret <tag>...</tag>some more content as a paragraph (this mirrors the behaviour if the same sequence was in the middle of the text)
parse such line into multiple AST nodes, like [{"kbd", [], ["Ctrl"], %{verbatim: true}}, "+", [{"kbd", [], ["A"], %{verbatim: true}}]]

Will be fixed with #7


Update pom property version.fabric8 to 2.2.185

The release train is stuck because of this fabric8.version upgrade PR.  If this isn't an error and is just a case of updating the test then it it's probably a simple change.
The getMetaData() retuns null here https://github.com/fabric8io/fabric8-maven-plugin/blob/master/plugin/src/test/java/io/fabric8/maven/plugin/enricher/EnricherManagerTest.java#L93
In case anyone who knows more about this that isn't on PTO at the moment then for the release pipeline to continue (which is needed for fabric8 to run on kubernetes 1.5.x) these are the steps:
git clone git@github.com:fabric8io/fabric8-maven-plugin.git
cd fabric8-maven-plugin
git fetch origin pull/749/head:fixPR749
git checkout fixPR749

[resolve issue]

git commit -a -m 'resolved merge issues caused by release dependency updates'
git push origin fixPR749:versionUpdatecd8ff6fe-e071-4133-9f41-f7990d760023

@ro14nd any ideas why getMetadata() now returns null? I guess something's changed in the underlying kubernetes model?

@iocanel @ro14nd it looks like the cause is that this line of code is no longer invoked: https://github.com/jstrachan/fabric8-maven-plugin/blob/240246e55e2b7d8cc6a8d4d68e54fecabfde8eed/enricher/standard/src/main/java/io/fabric8/maven/enricher/standard/ProjectEnricher.java#L69-L69
when being processed with a List containing a single ReplicaSetBuilder. Any ideas @iocanel? This looks like a regression in the kubernetes-model?


Car Object Detection

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Car Object Detection
:red_circle: Aim : Create a DL model which will detect the objects(cars) from the given dataset.
:red_circle: Dataset : https://www.kaggle.com/datasets/dataclusterlabs/small-vehicle-images-far-vehicle-detection
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

hey, am i assigned to this issue?

No, not yet.

Name: Tejas Patil
Github link:- https://github.com/tejas910
Email Id<EMAIL_ADDRESS>Approach: To separates car from all other vehicle
role: contributor

Assigned to @tejas910. Happy Contibution!

Thanks

@tejas910 updates please.

hi @abhisheks008 work is going on to make the model more accurate is quite a challenging task but I am trying my best sorry for the inconvenience

It's okay, thanks for the update. Keep going @tejas910

Definitely, it's a deep learning project, use whatever you feel better!
@tejas910

Updates please @tejas910


Using restic as an embedded package

Output of restic version :
irrelevant
How did you run restic exactly?
trying to embed restic in my golang project
Expected behavior
We're working on an agent for our software and want to bake in restic as a library so we can call restic logic directly rather then going via OS/CLI. To avoid to much code replication I want to use some functions that are now part of cmd/ but that is a bit tough at the moment as they are not exported, neither is cmd/ the right place to embed in external project.
I looked at possibility or restructuring them so they are moved to internal/, placing it directly in internal/restic/ led to dependency loop. Hence I decided to look at how hard would it be to split components into separate packages.
Do you have an idea how to solve the issue?
Got a quick experiment going in https://github.com/restic/restic/compare/master...tradeix:locks and I wonder if something like that could make it into upstream ?

oops, just learned the hard way that the whole internal/ is not accessible to me from external project.


fix automatically drop IpstackTcpStream

Thanks.
Looks good to me. Let me see how we can improve it.


[Feature] page limit

Is there an existing issue for this feature?

[X] Yes, I have searched the existing issues and it doesn't exist.

Feature Description
Provides paging function, so that when the resume needs to be printed, it will not be all on one page, which will appear too small and blurry.

Please read the docs, I've written a guide about this here: https://docs.rxresu.me/product-guides/creating-a-multi-page-resume.

IT would be better if this was an automatic adjustment via toggle switch


Allow disabling write buffering via existing buffer option

This fixes the issue reported in #27
I suspect the problem of #27 occurs because no row insertion dependency is considered in the flush() method.  That could be fairly complex to resolve, it seems to me.
Not using write buffering at all, which this commit allows, certainly slows down the process a bit, but it does allow the subset extraction to work for tangled database relationships.
By the way, thanks for writing this!  It's very helpful!

This looks reasonable to me. Thoughts @catherinedevlin?

Thanks for the contribution!


Why shift is hardcoded here ?

https://github.com/rhysd/tui-textarea/blob/39075bb641f340d85175328249ba97aac0b16e04/src/input/termion.rs#L51
Why shift is hardcoded here as always false ? This is why I can't make combinations like Shift+Enter for example.

It's very misleading, when I write something like this for example and It always receives false.
Input {
                    key: Key::Enter,
                    ctrl: false,
                    shift: is_shift,
                    ..
} => {
   if is_shift {
   textarea.insert_new_line();
   }
}

I've got the same issue! I've been agonizing over it. Any way to activate it?

I guess we can use crosster::event::KeyCode, instead of using Input from tui-textarea, because KeyCode implements Into, but i didn't check if it works.
        let timeout = Duration::from_millis(10);
        if event::poll(timeout)? {
            if let Event::Key(key_event) = event::read()? {
                match key_event.code {
                    KeyCode::Enter if key_event.modifiers.contains(KeyModifiers::Shift) => {}
                    _ => self.textarea.input(key_event.into())
                }
            }
         }

I've checked this and with crossterm::KeyCode it also doesn't work. Idk why.

Why shift is hardcoded here ?

That's because (if my understanding is correct) there is no way to get if shift key was pressed or not. termion supports Key::Ctrl(char) and Key::Alt(char) so we can know Ctrl and Alt modifier keys were held. We need to detect shift modifier press from other event like Key::ShiftLeft and Key::ShiftLeftUp. However the method fn from(key: KeyEvent) -> Self needs to convert a single Key event into Input instance so there is no way to detect shift key press.
You need to set the shift field separately by looking at key events related to shift keydown/keyup in your event loop.
https://docs.rs/termion/latest/termion/event/enum.Key.html#variant.Ctrl

Why shift is hardcoded here ?

Because termion does not provide a way to handle shift modifier state.
termion::Event::Key provides Ctrl(char) and Alt(char) events so we can handle the state of ctrl and alt modifier keys. However, same functionality is not provided for shift key.
https://docs.rs/termion/latest/termion/event/enum.Key.html
There are some key combinatons with shift key like ShiftUp, ShiftLeft, ... but there is no Shift(char) generic event.
Instead, termion sends the input key as-is. For example, when Shift + a is pressed with US keyboard, termion sends Char('A'). We cannot know how the 'A' was sent. Generally it was sent by Shift + a, but it is completely up to user's keyboard layout.
So I thought shift field could not be set in the from function. Users may somehow set the shift field properly later.
If there is a nice way to properly set the shift key in the from function without assuming user's keyboard layout, PR is welcome.

I added some more combinations with arrow keys at c4f1b22.
termion added support for those combinations at v4. As long as shift + arrow keys combinations, shift field is set properly.
https://github.com/redox-os/termion/commit/3b52dc9bfb22da591a7b86a76a2e7234c45db08f


https://whatsapp.com-hii@Error: Please specify a URL to shorten.

@Bhaviktutorials  please help

Ha bro say

URL doesn't work in other devices


Unable to login with py file

C:\Users\gas\Downloads\PixivUtil2>python PixivUtil2.py
┌──────────────────────────────────────────────────────────┐
│ PixivDownloader2 version 20240703                        │
│ https://github.com/Nandaka/PixivUtil2/releases           │
│ Donate at https://bit.ly/PixivUtilDonation               │
└──────────────────────────────────────────────────────────┘
Reading C:\Users\gas\Downloads\PixivUtil2\config.ini ...
Configuration loaded.
Using default DB Path: C:\Users\gas\Downloads\PixivUtil2\db.sqlite
Creating database... done.
Only process members where the last update is >= 7 days ago
Username login is broken, use Cookies to log in.
See Q3. at https://github.com/Nandaka/PixivUtil2?tab=readme-ov-file#a-usage
Trying to log in with saved cookie
Error at doLogin(): (<class 'mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper'>, <httperror_seek_wrapper (urllib.error.HTTPError instance) at 0x1bac6ce28f0 whose wrapped object = <HTTPError 403: 'Forbidden'>>, <traceback object at 0x000001BAC6D0EE00>)
Traceback (most recent call last):
File "C:\Users\gas\Downloads\PixivUtil2\PixivUtil2.py", line 1527, in doLogin
result = br.loginUsingCookie()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gas\Downloads\PixivUtil2\PixivBrowserFactory.py", line 351, in loginUsingCookie
res = self.open_with_retry('https://www.pixiv.net/en')  # + self._locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gas\Downloads\PixivUtil2\PixivBrowserFactory.py", line 207, in open_with_retry
res = self.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gas\AppData\Local\Programs\Python\Python312\Lib\site-packages\mechanize_mechanize.py", line 257, in open
return self._mech_open(url_or_request, data, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gas\AppData\Local\Programs\Python\Python312\Lib\site-packages\mechanize_mechanize.py", line 313, in _mech_open
raise response
mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper: HTTP Error 403: Forbidden
Cannot Login!
press enter to exit.

I tried this on the source file of the July 3 update and the file built with exe.
It runs normally in exebuild, but errors occur when running as a py file.
The contents of config.ini are the same.
Attempted in Ubuntu 22.04 version of python 3.10.12.
Of course, I also changed the userobots option.

Was there a fix for this issue that you could pass on? I'm experiencing the same issue since yesterday when I exited PixivUtil2 and tried to restart it.
Now I get this same error message every time I try to restart PixivUtil2. I reset my config.ini and it wouldn't start, then put in cookie information and it went right back to this error message. I'm guessing it's a Cloudflare related issue, but I haven't dug into it.


update rack in oc-chef-pedant

Description
[Please describe what this change achieves]
Issues Resolved
[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]
Check List

[ ] New functionality includes tests
[ ] All buildkite tests pass
[ ] Full omnibus build and tests in buildkite pass
[ ] All commits have been signed-off for the Developer Certificate of Origin. See https://github.com/chef/chef/blob/main/CONTRIBUTING.md#developer-certification-of-origin-dco
[ ] PR title is a worthy inclusion in the CHANGELOG

ADHOC pipeline: https://buildkite.com/chef/chef-chef-server-main-omnibus-adhoc/builds/6471#_

UMBRELLA: https://buildkite.com/chef/chef-umbrella-main-chef-server/builds/2515#_


nsc-events-nextjs-8-393_add_user_details_to_profile_page

resolves #393
This PR adds a user card to display the current user on the Profile page as well as a button that routes to the Change Password page.

I also added a new util file called userUtils and moved a function to get the current user's Id since it is needed in multiple files.

when I tried to sign in from your branch, it doesn't do anything, I mean it doesn't redirect to any page. I don't know why.


Documentation - Summary of all Processes in Manage Control Process (MCP)

Required Information

[ ] AEM Version, including Service Packs, Cumulative Fix Packs, etc: AEM 6.3x
[ ] ACS AEM Commons Version: 3.14.10
[ ] Reproducible on Latest? No

Summary of all Processes in Manage Control Process (MCP)
Manage Control Process (MCP) packaged with ACS COmmons 3.14.10 has 10 different process. This document detials options in each of the processes.
1. Asset Folder Creator
Allows to create folder structure.

Mandatory:

Excel file: Provide the .xlsx file that dfines the Asset Folder taxonomy
Folder Type: Choose folder type

Ordered Folder
Unordered Folder

Primary Creator: This will be used first and the Fallback will only be used if this fails to generate a valid Asset Folder definition.

Title and Node Name
Lowercase with Dashes
None

Fallback Creator: This is only invoked when the Primary cannot generate a valid Asset Folder definition. If this can also not generate a valid Asset Folder definition then the row will be skipped.

Title and Node Name
Lowercase with Dashes
None

2. Asset Ingestor
Allows to import assets into AEM using data from spreadsheets (pre-fromatted).

Mandatory:

Source: Source folder for content ingestion
Target JCR Folder: Base folder for ingestion
Ignore folders: List of folder names to be ignored
Ignore files: List of file names to ignore
Ignore extensions: List of extensions to ignore
Minimum size: Mimimum size of the asset to imported in bytes. Defaults to 1024. 0=none
Maximum size: Maximum size of any assets that is imported. Defaults to<PHONE_NUMBER>. 0=none
Optional:

Existing action:

Replace
Skip (default)
Version

3. Asset Report
Asset Report

Mandatory:

Folder: Examines everying in this folder and all other subfolders below it
Levels: Determines how many levels down are included in report summary -- all levels below are rolled up into that the level.
Optional:

Include subassets: If checked, subassets are counted and evaluated as part of the total folder size. This takes additional time to process. (Checked by default)
Include versions: If checked, versions are counted and evaluated as part of the asset size. This takes additional time to process. (Checked by default)

4. Broken References
Broken References

Mandatory:

Source page: Select page/site to be analyzed

Optional:

Property Regex: (Default ^/(etc|content)/.+) Regular expression to detect properties containing references to Sling resources
Exclude Properties: (Default cq:allowedTemplates) Comma-separated list of properties to ignore

Deep check in html: (Default checked) if checked, links will be exracted from html properties.

Properties containing html: (Default html) Comma-separate list of properties containing html to extract links.

5. Deep Prune
Deep Prune

Mandatory:

Starting folder: Starting point for event removal
Minimum purge level: (Default 3) Folder depth relative to start where purge will happen
Passes: (Default 3) Number of passes to attempt removal
Ignore: (Default rep:policy,jobs,offloading) Ignore nodes which have these names (comma-delimited)
Batch size: (Default 10) Max number of operations to commit at a time
Retries: (Default 3) Max number of retires per commit
Retry delay: (Default 25) Delay between retries (in milliseconds)

Optional:

Delete Folders

All
Numeric
None
Hexadecimal
Skip job queues: (Default checked) If checked, stop job queues before and resume them after the purge process

6. Folder Relocator
Allows to move folders.

Mandatory:

Source folder(s): One or more source folders must be provided. Multiple folders implies a move operation.
Destination folder: Destination parent for move, or destination parent folder plus new name for rename

Optional:

Mode: Options..

Rename
Move

7. Page Relocator
Allows to move pages between folders.

Mandatory:

Source Page: source page/site to be moved.
Destinateion: Destination parent for move, or destination parent folder plus new name for rename.

Optional:

Max Rerences: (Default -1) Limit of how many page references to handle (max per page).
Reference Search root: (Default -1) Root for reference searches. Depending on how indexes are set up, / might be the only working value on your system.
Mode: (Default Move)
Publish

Self Managed (Default Checked) or Queeu or None
Create Versions: (Default *Checked) Create versions for anything being replicated
Update Status: (Default *Checked) Updates status of content affected by this operation.
Extensice ACL Checks: (Default *UnChecked) If checked, this evaluates ALL nodes. If not checked, it only evaluates pages.
Dry run: (Default *Checked) This runs the ACL checks but doesn't do any actual work.

8. Process Cleanup
Process Cleanup

Mandatory:

Age: (Default 7) Minimum age (in days) to be considered for removal.

9. S3 Asset Ingestor
S3 Asset Ingestor

Mandatory:

Bucket: S3 bucket name.
Access Key: S3 access key.
Secret Key: S3 secret key.
S3 Base Path: S3 base path (prefix).
Endpoint URL: Endpoint URL, leave blank for default. Used primarily for S3-compatible object-storage solutions.
Target JCR Folder: (Default /content/dam) Base folder for ingestion.
Ignore folders: (Default tmp,ds_store,.ds_store,.thumbs,.appledouble) List of folder names to be ignored.
Ignore files: (Default ds_store,.ds_store) List of files names to be ignored.
Ignore extensions: (Default txt,html,css,js,thm,exe,db) List of extensions to be ignored.
Minimum size: Mimimum size of the asset to imported in bytes. Defaults to 1024. 0=none
Maximum size: Maximum size of any assets that is imported. Defaults to<PHONE_NUMBER>. 0=none

Optional:

Existing action:

Replace
Skip (default)
Version

10. Tag Creator
Allows to create Tags with inputs from speadsheets

Mandatory:

Excel file:
Primary Converter: This will be used first and the Fallback will only be used if this fails to generate a valid Tag definition.

Title and Node Name
Lowercase with Dashes
None

Fallback Converter: This is only invoked when the Primary cannot generate a valid Tag definition. If this can also not genreate a valid Tag definition then the row will be skipped.

Title and Node Name
Lowercase with Dashes
None

Links

There is already a Tools page that lists the tools in MCP. I created this like a 1 page summary. If this is redundant, then please ignore this page.

I'm confused on what this issue is intended to do. Did you intend to create a pull request in the https://github.com/Adobe-Consulting-Services/adobe-consulting-services.github.io/ project?

Yes I believe he didn't see that project -- I'll move this over as a PR.  Thanks @ksurendra


editor logo hangs after closing

after i close the editor the popup logo stay and i have to close it by hand. it runs as a second task.

Thanks for the report. fixed with latest release


Mention need to escape SMTP password in documentation

When self-hosting Exceptionless, one needs to use percent-encode the SMTP-password. Since this is not obvious at the first glance, would you mind adding a short note to the setup documentation? This might save your users a few hours and you guys a few tickets.

@matthias-schuchardt thank you for pointing this out. Any chance you can submit a PR for this change?
https://github.com/exceptionless/Website/tree/master/content/docs/self-hosting
It would be greatly appreciated.

I just realized that your website is also hosted on GitHub and opened an issue for the website instead. Sorry for the spam.

@matthias-schuchardt thank you for pointing this out. Any chance you can submit a PR for this change?
https://github.com/exceptionless/Website/tree/master/content/docs/self-hosting
It would be greatly appreciated.

Can do :)


please include binaries

nobody wants to build apps

if you aren't able to run a few simple commands then you shouldn't be using this code.

it's to avoid skids. if you can build it then do it :-)

i couldn't care less if people use it or not, it's just to add stuff for my portfolio
if you can't bother then don't use it


Bazel linking for C++ failed on external dependency based on gRPC v1.13.1

What version of gRPC and what language are you using?
gRPC 1.13.1 (C++)
What operating system (Linux, Windows, …) and version?
OS X
What runtime / compiler are you using (e.g. python version or version of gcc)
Apple LLVM version 10.0.0 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
What did you do?
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.
I  try to add external dependency by next code in my WORKSPACE file:
git_repository(
    name = "grpc",
    remote = "https://github.com/grpc/grpc.git",
    tag = "v1.13.1",
    init_submodules = True,
)

After that I run building of some library:
bazel build @grpc//:grpc_transport_inproc

What did you expect to see?
Building from gRPC repository succeeded:
INFO: Analysed target //:grpc_transport_inproc (0 packages loaded).
INFO: Found 1 target...
Target //:grpc_transport_inproc up-to-date:
  bazel-bin/libgrpc_transport_inproc.a
  bazel-bin/libgrpc_transport_inproc.so
INFO: Elapsed time: 0.706s, Critical Path: 0.17s
INFO: 2 processes: 2 darwin-sandbox.
INFO: Build completed successfully, 3 total actions

What did you see instead?
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
INFO: Build options have changed, discarding analysis cache.
INFO: Analysed target @grpc//:grpc_transport_inproc (9 packages loaded).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_admin/e511d3e4923cacd00506281eacfaf097/external/grpc/BUILD:1628:1: Linking of rule '@grpc//:grpc_transport_inproc' failed (Exit 1)
ld: illegal thread local variable reference to regular symbol __ZN9grpc_core7ExecCtx9exec_ctx_E for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target @grpc//:grpc_transport_inproc failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.334s, Critical Path: 0.45s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

Anything else we should know about your project / environment?

That's unfortunate... but I have no idea what's going on there. Our Bazel CI works fine otherwise.
Also, to be fair, I have never seen this error before.


steven: repeaters aren't rendering

Repeaters will show up as a black & purple box when rendered.

Merged into #54


feat(layers): support jit op

make install YOLOX  through source code more robust.
Plz review @GOATmessi7 @Joker316701882

ready to merge it


File globs

Use file globs instead of selecting every single file manually

Hi. Thanks for the PR. Did you check, what the output of bower list --path is when using the glob?

Is it not working for you?

Did tested it:
$ bower install roboto-fontface
# apply your changes to bower_components/roboto-fontface/{.,}bower.json
$ bower list --paths
$ bower list --paths

Output is
  'roboto-fontface': [
    'bower_components/roboto-fontface/css/*.*',
    'bower_components/roboto-fontface/fonts/*.*'
  ]

So bower itself is not resolving the globs. Sorry, but I would like to have the bower main array to contain an exact list of files, that one has to include into his project (as part of a bundling step or so) to use this fontface. The maintainence of this explicit file list is not nice, I know, but I does not change often anyway.
I will close this PR for now. Feel free to reopen, if you disagree.


[Suggestion] - Create an option to Disable the Startup probe during Helm chart deployment.

Suggestion
[Suggestion] - Create an option to Disable the Startup probe during Helm chart deployment.
The readiness probe and liveness probe have this option, but the startup doesn't have.
Product
Jira
Code of Conduct

[X] I agree to follow this project's Code of Conduct

hi @hfernandes-atlassian while the suggestion makes sense, if startup probe messes up with app start somehow, you can indefinitely increase failureTreashold.

Available in 1.15.1