qgis2web implementation - Leaflet library?

Question
Hello, I am the maintenance technician of qgis2web (QGIS plugin that creates web maps) . At the moment the plugin directly reads the styles with PyQGIS and converts them to OpenLayers and Leaflet styles. I was wondering: by extracting the .qml or the .sld from QGIS could I use geostyler to create OpenLayers style, but for Leaflet? Are you planning to implement a conversion to this library?
Thanks

Hey @andreaordonselli,
happy to hear that you are considering to use the GeoStyler for qgis2web.
Currently there are no plans to implement a Leaflet-parser by the GeoStyler core team as we just have limited resources.
But the GeoStyler eco system is designed to easily implement custom parsers. You just need to implement the geostyler StyleParser interface and adapt it to the needs of Leaflet.
If you are thinking about implementing a Leaflet parser yourself, that would be great. We'll try to help has much as we can.

If I provided you with .qml or .sld style blocks and the corresponding style blocks for Leaflet, could you explain the steps to update geostyler?
First of all I would like to ask you for advice, is .qml to openlayer/leaflet or .sld to openlayers/leaflet better?
I would like to realize first of all:

Single symbol
Categorized
Graduated
Then:
Dash Line
Dot Line
Dash Dot Line
Dash Dot Dot Line
Lastly:
Rule-based
SVG Marker (for point layers only)

The geostyler-sld-parser is probably the most feature complete parser.
The features you mentioned should al be possible to translate if leaflet supports them aswell.
Although I'm not sure about graduated styles.
The general approach would be to create a geostyler-leaflet-parser.
The parser interface is quite simple and contains mostly of two functions readStyle and (writeStyle)[https://github.com/geostyler/geostyler-style/blob/main/style.ts#L912].
For your purpose ("to leaflet") you would only need to implement the writeStyle function which translates the geostyler-style to leaflet.
I'm not familiar with leaflet styles but i guess the will be in a JS object based format or a JS function based format.
We used both approaches in the geostyler-openlayers-parser:
FunctionBased: https://github.com/geostyler/geostyler-openlayers-parser/blob/master/src/OlStyleParser.ts#L768
ObjectBased: https://github.com/geostyler/geostyler-openlayers-parser/blob/master/src/OlStyleParser.ts#L957
You can also have a look at the mapbox parser as it also has a JS object based format.
If you like i can create an empty repository in the geostyler organization which you could fork as a starting point.

I understand everything, give me time to think about it, I'm still not sure whether to continue translating styles independently or whether to rely on third-party libraries. Thanks


Update README.md

Fixed spelling and grammar.
Reworded various portions to make the intent clearer.

Current coverage is 99.18% (diff: 100%)

Merging #12 into master will not change coverage

@@             master        #12   diff @@
==========================================
  Files             4          4
  Lines           123        123
  Methods          39         39
  Messages          0          0
  Branches         15         15
==========================================
  Hits            122        122
  Misses            1          1
  Partials          0          0

Powered by Codecov. Last update 1847ccd...d5bce76

thank you very much @R3D4C73D
There are some English documents in wiki if you're interesting in review as well :stuck_out_tongue_winking_eye:


Evaluate usage of dct:description

Introduced for some classes. Could this be used for every?

As we allow generally additional attributes, a provider can already add as many dct:description entries as he wants. I don't see a need anymore to add it explicitly to more classes. Proposing to close this issue.


Errors should have links to further information

Inspired by this tweet:
https://twitter.com/willmcgugan/status/1381186384510255104

While I am thinking about faqs. I’d also like to add short URLs to Rich exceptions.
I loath cryptic error messages, and I’ve created a fair few myself. In Rich I’ve tried to make them as plain English as possible. But...
would be great if every error message linked to a page that explains the error in detail and offers fixes.

I could have a page about error codes in the docs, then have https://datasette.io/E123 style URLs for each error core which are shown when that error occurs.

Related:

#1875


Sentry:  Created a "no-cache" option when a dead trip id is found

Summary of changes
Asana Ticket: Stops | Elixir.KeyError: key :id not found in: %Schedules.Schedule{early_departure?: false, flag?: false, last_stop?: fals...
Okay, is this janky?  Yeah, I think so!  But I'm glad to have given it my best shot, I think it's one possible solution, and I'm more than happy to go a different direction if you have pointers.
The issue:  some PredictionSchedules were making it to PredictedSchedule.group_transform/1 with trip: nil and no id value, which means it wasn't a proper Prediction OR Schedule.  Something was wrong, and there wasn't a function to catch it.  Also, these nil trip errors only show up on days after GTFS deployments.
The origin was in the request for Schedules that happens in PredictedSchedule.get/3 (line 28).  This calls Schedules.Repo.by_route_ids, which is cached.  Gabe Durazo pointed out to me that Trip IDs are not maintained between GTFS deployments.  Bingo.  We're still trying to use the cached trip IDs but the trip IDs have changed from a deploy.  So line 255 of Schedules.Repo (trip: trip(trip_id)) returns a nil trip and breaks stuff down the line.
So... how do I force a new request and ignore the cached stuff?  That's what I tried to add here.

Just adding some comments here.
I like the changes in apps/schedules/lib/repo.ex but I'm not sure about the other two files. I think I remember there were approaches in the past trying to address nil trips but they were not successful. Perhaps @thecristen remembers better but if this PR looks like a reasonable approach, I have no issues approving as well 👍


CUDA error: an illegal memory access was encountered

I encounter a runtimeerror about running this program.
version: gpu is 3090  torch is 1.7.1 cuda version is 11.0
pretrained  mae_hivit_base_dec512d8b_hifeat_p1600lr10.pth
my command is python ./tools/train.py configs/rotated_imted/rotated_imted_hb1m_oriented_rcnn_hivitdet_base_1x_dota_ms_rr_le90_stdc_xyawh321v.py --work-dir output/outputSTD/1 --gpu-ids 1
then the result is

how can i solve this problem?it is hard for me to read code and find up error in where.

This error may occur if you are sharing the GPU server with others, and the CPU usage or memory usage of the server is full.


v0.1.7 Exception: Authentication failed. You have not been accepted into the beta.

Calling edgeGPT API from my AWS EC2 server located in North California. Cookies are provided and _U is included.
The error logs are as follows, and I was accepted into the beta.

File "/home/openai/api_caller/edgegpt/views.py", line 9, in
chat_bot = Chatbot()
File "/home/openai/anaconda3/lib/python3.10/site-packages/EdgeGPT.py", line 319, in init
Conversation(self.cookiePath, self.cookies, self.proxy)
File "/home/openai/anaconda3/lib/python3.10/site-packages/EdgeGPT.py", line 230, in init
raise Exception(
Exception: Authentication failed. You have not been accepted into the beta.

Sorry, looks like your network settings are preventing access to this feature.
AWS dead！！！

Sorry, looks like your network settings are preventing access to this feature. AWS dead！！！

Exactly the same error occurs when I use Edge browser to access Bing AI. I wonder if this is a problem with my account or my AWS server?

Same with me, but I can successfully set X-Forwarded-For: <IP_ADDRESS> using the ModHeader plugin in the Edge browser.

Same with me, but I was able to access it after setting X-Forwarded-For: <IP_ADDRESS> using the ModHeader plugin in the Edge browser.

Thanks a lot. Your solution works for my browser. I guess my AWS server come across a similar problem? Could I apply a similar web plugin on linux system?

I encountered almost the same problem. I use V2rayN, and I can access newbing with browser after setting X-Forwarded-For: <IP_ADDRESS> . Cookies provided , _U included . And the strangest thing is, it connects successfully twice when I try it for maybe 30 times. My error log:

Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Tommy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\EdgeGPT.py", line 489, in
asyncio.run(main())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\Tommy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\EdgeGPT.py", line 391, in main
bot = Chatbot(proxy=args.proxy)
File "C:\Users\Tommy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\EdgeGPT.py", line 320, in init
Conversation(self.cookiePath, self.cookies, self.proxy)
File "C:\Users\Tommy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\EdgeGPT.py", line 231, in init
raise Exception(
Exception: Authentication failed. You have not been accepted into the beta.

@exatude I now set x-forwarded-for in the latest version.

yes, I have latest upgrade before I comment.

Can you modify

Maybe the IP range I used also got blocked

(btw I'm using trojan to my server and it works no problem)

Can you modify the forwarded IP to <IP_ADDRESS> and see if that fixes things?

does that mean change "FORWARDED_IP" directly into "<IP_ADDRESS>" ?  or setup an environment variable FORWARDED_IP

https://github.com/acheong08/EdgeGPT/blob/5f5f6cba4fd422fc15681d721ffc87c05a10d80b/src/EdgeGPT.py#L32-L35
Directly to = <IP_ADDRESS> since that works for browser?

https://github.com/acheong08/EdgeGPT/blob/5f5f6cba4fd422fc15681d721ffc87c05a10d80b/src/EdgeGPT.py#L32-L35
Directly to = <IP_ADDRESS> since that works for browser?

<IP_ADDRESS> doesn't work either... maybe some random FORWARDED_IP happens to work

Error:
..
File "QEdgeGPT.py", line 258, in init
raise Exception(
Exception: Authentication failed. You have not been accepted into the beta.
My code:
Generate random IP between range <IP_ADDRESS>/14
FORWARDED_IP = (
#f"13.{random.randint(104, 107)}.{random.randint(0, 255)}.{random.randint(0, 255)}"
f"<IP_ADDRESS>"
)
HEADERS_INIT_CONVER = {
....
'x-forwarded-for': '<IP_ADDRESS>',
}
result:
cookie_file=D:\python\ai\cookie.json
Initializing...
Me:Hello
Bot:
Hello! How can I help you today?

Issue keeps happening on 0.1.11, I have tried both on an oracle cloud instance and aws ec2 with the same issue. Running on my pc works fine I assume because I used my pc to generate the cookie?

strange... I upgrade to 0.1.10 yesterday, and it can't success then. But today it just worked... even without VPN or proxy... WTF?


Methods not showing when using FormRequests even though they do work

I have a controller with a method that uses a FormRequest
In the method I want to get some data from the Request, so I use:
    public function processForm(RegisterForm $request)
    {
     //snip
        $name = $request->input('name');
      //do stuff
     }

This WORKS
However, I can't get the $request->input() method autocomplete from my IDE even thought it is available to the Request object.
So I took a look and I don't know why it doesn't inherit a lot of methods from the main Request object it extends. This is how I can recreate this issue
Make a new FormRequest:
`artisan make:request demo`

Now open \App\Http\Requests\demo.php and you see:
namespace App\Http\Requests;

use App\Http\Requests\Request;

class demo extends Request
{
      //removed
}

Going up the extended chain, we now open App\Http\Requests\Request and it shows
abstract class Request extends FormRequest
{

}

Open  \Illuminate\Foundation\Http\FormRequest
class FormRequest extends Request implements ValidatesWhenResolved
{

}

Finally we open \Illuminate\Http\Request where the Input (and many other) methods are found.
class Request extends SymfonyRequest implements ArrayAccess
{
    //snip
    /**
     * Retrieve an input item from the request.
     *
     * @param  string  $key
     * @param  string|array|null  $default
     * @return string|array
     */
    public function input($key = null, $default = null)
    {
        $input = $this->getInputSource()->all() + $this->query->all();

        return Arr::get($input, $key, $default);
    }

}

Is this a bug or can the IDE-HELPER not inherhit all these methods because the class has been extended so often/much?
At the moment when I try to see what I can autocomplete on the request object I only see these methods:

Can't thank you enough for this project. It makes such a difference to my workflow. Thank you.

@jonnywilliamson how did you get to have $request, i.e. how it's supposed to be  a DemoRequest extends FormRequest but how did you construct/request it in the context?


Fix: horizontal line of  Learn cloud native text of homepage.

Fixes Issue #198
Screenshots
Previous Change:

Current Change:

review \ @saiyam1814 @AvineshTripathi

LGTM

LGTM

Thanks ☺


Add journal activity when performing actions on a pull requests

We need to keep track of the actions performed on a pull requests.

[x] Issue relation is added
[x] Issue relation is deleted
[x] Pull request is merged
[x] Pull request is closed
[x] Pull request is reopen
[x] Pull request's head branch is deleted
[x] Pull request's head branch is restored
[ ] Review is requested to a user
[ ] Reviewer accept changes
[ ] Reviewer request changes

@xel1045
After investigation, it would be difficult to use the event logging system from the Redmine codebase. First, this system is badly coupled with the concept of Issue. Moreover, with the current system and for certain types of action, it is impossible to form a combination describing the action properly.
So, I suggest removing the following 3 items from this post:

Review is requested to a user
Reviewer accept changes
Reviewer request changes

Finally, I propose to create another post with the objective of refactor the Redmine codebase in order to be able to customize and manipulate journal and its details more easily for:

improve description when restoring HEAD branch, use a better journal description as:
journalize when review is requested to a user
journalize when a reviewer accept changes
journalize when a reviewer request changes

You suggestion make sense for me. You can go ahead and split this issue in three. I'll create a PR with the notifications added for now.


Comment field for pickup dates

Show where the food will be distributed. Should be optional.
One field per user per pickup, or just one field per pickup?

Could also be solved with the same simple text field as in #156

Yay to free text fields!
Let the users decide on how to use them and just add nicely figured out test groups, where we show examples of how it could be handled (for the less creative ones...^^).

This needs backend implementation before starting with the frontend: https://github.com/yunity/foodsaving-backend/issues/253

Feedback from Gbg: It would be awesome if you could prioritize this feature. It would be really useful for us in order to communicate simple things, like the meeting point before a pick-up, which sometimes varies depending on the people doing it.
Moreover, in the future it would be very very useful to have a discussion forum/wall for each store (due to whatever issues may come up in the cooperation, so that all foodsavers are aware of them and can participate). I have only found a mention to it on the roadmap though, as an idea.

Thanks! This is already in the highest priority (Release 3), so waiting for Devs to pick it up!

I will go for a text field per pickup that everyone can edit. It will be possible to set default content for a series.
Would it also make sense to attach a simple communication feature to a pickup? @nicksellen
I would go for the simple text field that everyone can edit, but I would prefer per-user messages, e.g. a chat-like interface or a wall.

@tiltec given the conversation/chat proposal is not quite agreed yet, or implemented I would suggest to continue with the comment as planned, but could revisit it in the future. In theory though, yes sounds like a good use case for a reusable communication channel that can be attached to different objects, and presented in different forms as needed.


ClassCastException when calling getPatternsFor

Hello there!
I am playing StaTech Industry modpack right now and got a problem:
If there is a pattern with any fluid on AE2 network,
if I call getPatternsFor for that pattern,
It will not return expected result,
but will crash (the program on CC, not the game) with following error (copied from the server log):
[20:52:24] [Server thread/ERROR]: Error running task
java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.Integer (java.lang.Double and java.lang.Integer are in module java.base of loader 'bootstrap')
	at site.siredvin.peripheralworks.integrations.ae2.MENetworkBlockPlugin.getPatternsFor(MENetworkBlockPlugin.kt:393) ~[peripheralworks-fabric-1.19.2-0.2.12.jar:?]
	at site.siredvin.peripheralworks.integrations.ae2.MENetworkBlockPlugin$cc$getPatternsFor18.apply(CC generated method) ~[?:?]
	at dan200.computercraft.core.asm.PeripheralMethod.lambda$static$0(PeripheralMethod.java:21) ~[cc-restitched-1.101.2.jar:?]
	at dan200.computercraft.core.lua.LuaContext.lambda$issueMainThreadTask$0(LuaContext.java:34) ~[cc-restitched-1.101.2.jar:?]
	at dan200.computercraft.core.computer.MainThreadExecutor.execute(MainThreadExecutor.java:143) ~[cc-restitched-1.101.2.jar:?]
	at dan200.computercraft.core.computer.MainThread.executePendingTasks(MainThread.java:157) ~[cc-restitched-1.101.2.jar:?]
	at dan200.computercraft.shared.proxy.ComputerCraftProxyCommon.lambda$registerHandlers$3(ComputerCraftProxyCommon.java:105) ~[cc-restitched-1.101.2.jar:?]
	at net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents.lambda$static$0(ServerTickEvents.java:40) ~[fabric-lifecycle-events-v1-2.2.4+1b46dc7890-ba8a0595c21e6ba2.jar:?]
	at net.minecraft.server.MinecraftServer.handler$cac000$fabric-lifecycle-events-v1$onStartTick(MinecraftServer.java:8316) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:819) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:665) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[server-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:1583) [?:?]


Fix various typos in the Overview of Azure Service Fabric.

This change corrects various discovered typos, including:

Capitalizing node.js -> Node.js.
Adding bullets, and replacing tabs with spaces.
Resolving various subject-verb agreement issues.
Splitting a paragraph into two separate paragraphs.
Correcting typos like "programmming" and "capabilites".
Removing redundant words and adding missing words.

Hi @adarce, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;


Allow url to be sent through with a structured event

Allows page url to be sent through with structured events.
Not sure if this is the sort of interface we want (or if we want to extend this out in a similar manner to self-describing events as well)?
Thoughts @paulboocock ?

Coverage increased (+0.03%) to 94.794% when pulling 3f43e708bc8d467fab1f451ad2a11818ad90341e on poplindata:struct-page-url into 39fcfa2be793f2e25e73087a9700abc93f43b5e8 on snowplow:master.

The issue I see here is what's going to have next. What if we want another value to the populated, the method signature just grows and grows. It also makes this inconsistent with the rest of the track methods.
I think it might be worth introducing a page object, like the subject object. This can then be injected into each track method and populate the "page" related atomic events properties. We could adopt this same concept across all of the server side trackers then. I think this idea, as it effectively makes the "page" data feel like a context, which in many ways it should be ;-)
If you're comfortable taking a stab at the change I've suggest above, then by all means please update this PR. If not, then we'll try to find the time for it but likely in Q3 though.

I think this idea, as it effectively makes the "page" data feel like a context, which in many ways it should be ;-)

I think this would be nice. It would be good to design this so that it can feed into the atomic.events refactor going forwards

So subject as it's own class object? I'm not sure if my Ruby is good enough to refactor that but I can have a go.

Yeah, Subject is currently it's own object (See subject.rb). This is currently used by being passed into the tracker constructor.
I'm proposing making a page.rb that is very similar to Subject but contains things like page_url, page_title and referrer and other page information I'm probably forgetting right now, which can then optionally be passed into track functions as an optional final parameter.
I think as far as this PR goes, that would be fine.
Ideally, I'd like this data to be passed as a Context but we're not quite there yet to make this an easy change. Although we could perhaps built that functionality out on top of this change to keep the API clean before this release is published.
We'd want to turn the new page.rb into a SelfDescribingJson that, for now, we parse out of the Contexts and add to the canonical event model but later can be altered to populate as an entity just like other contexts.
Whilst this is a little out of scope of this issue specifically, it's good to have this discussion as this design will likely inform other trackers too.

If we wanted to turn page.rb into a SelfDescribingJson we'd set this up as a new schema right, or should we repurpose web_page_1?

It'd be a new schema. For now, if this new schema existed, I'd rip out the values from the context in the tracker and populate the canonical fields but this way, it better prepares us for the future that Alex's mentions where we have refactored atomic events. Hopefully that makes sense.

What about something like this as an intermediate solution?
unless context.nil?
        l = context.map {|c| c.to_json}
        page = l.find{ |c| c[:schema] == "iglu:com.snowplowanalytics.snowplow/page/jsonschema/1-0-0"}
        unless page.nil?
          page_url = r[:data]['page_url']
          pb.add('url', page_url)
        end

        pb.add_json(build_context(context), @config['encode_base64'], 'cx', 'co')
end

This would allow the interface to the track method to remain fundamentally the same (for the moment) and would then allow users to send through a page context for each method which would then get unpacked into the tracker protocol.

@paulboocock Do you have some thoughts on the approach above?

Sorry for the delay here @miike
The example you gave was exactly what I was trying to describe. However, I think I've sat on this a little as now that I've seen it, I'm not sure how much I like it! 🤦
It muddles the idea of custom contexts with what we would otherwise think of "standard" atomic contexts. I think the Page context will also be an out of the box schema we would support. I also wouldn't rea;;y want to accept this with a fake schema uri, and we haven't made the decision on what to call any new schemas yet.
I think the best idea here is to introduce the page object, much like subject, that can optionally be passed into any track method to add the page attributes. I'm ok with it chaning the interface of the track methods, we'll likely clean these up with v1.0.0 anyway. I believe what are currently "atomic fields" will become "first party schemas" in the trackers in the future.
Moving to this new page object, gives us flexibility to move it to a schema based "common" object whenever we refactor atomic events - in fact it gives us the best flexibility as we'll be able to have a toggle for populating old atomic fields or new schema fields when we get to that after the atomic events refactor.

Hello everyone. After discussion with @paulboocock, I have implemented the new Page object, which can be attached to all event types. An event Subject can now be attached as well (previously there was only the tracker's Subject).
I created a new PR #139 for this as I'd refactored a lot, so I didn't use any of your code I'm afraid @miike! Therefore I'm closing this PR.

so I didn't use any of your code I'm afraid @miike!

No hard feelings - that is definitely for the best. Thanks so much for getting this added in @mscwilson !


Update coursier, sbt-coursier to 2.0.0-RC3-3

Updates

io.get-coursier:coursier
io.get-coursier:sbt-coursier

from 2.0.0-RC3-2 to 2.0.0-RC3-3.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.get-coursier" } ]

labels: semver-pre-release

Handled from https://github.com/almond-sh/almond/pull/430.


Remove docker-machine dependency

Currently the tests require a working Kubernetes/ETCD cluster. In the past we have set this up with ./broadway-dev-up.sh:
dm=$(docker-machine active)
docker-machine ssh "$dm" -f -N -L "8080:localhost:8080"
echo "waiting"
until kubectl -s http://localhost:8080 get pods &> /dev/null; do
   printf "."
done
kubectl create -s http://localhost:8080 -f broadway-namespace.yaml

With Docker Beta, docker-machine is gone, presumably this tunnel fails to open and kubectl doesn't set up the cluster properly.
We need a way to run tests with stock docker and docker-compose.

I'm not using docker beta @therealplato but this issue is also affecting me.


Feature/remove jq requirement

Removes the requirement for jq; output remains unchanged
Example with JQ:
$ aws ec2 describe-availability-zones --region "us-east-1" | jq -r '.AvailabilityZones[] | .ZoneId + "=" + .ZoneName'
use1-az2=us-east-1a
use1-az4=us-east-1b
use1-az6=us-east-1c
use1-az1=us-east-1d
use1-az3=us-east-1e
use1-az5=us-east-1f

Using jmespath with sed:
$ aws ec2 describe-availability-zones --region "us-east-1" --query 'AvailabilityZones[].[ZoneId, ZoneName]' --output text | sed 's/\t/=/'
use1-az2=us-east-1a
use1-az4=us-east-1b
use1-az6=us-east-1c
use1-az1=us-east-1d
use1-az3=us-east-1e
use1-az5=us-east-1f

Personally I prefer it without the sed as seen below, but I didn't want to change your output without your approval:
$ aws ec2 describe-availability-zones --region "us-east-1" --query 'AvailabilityZones[].[ZoneId, ZoneName]' --output text
use1-az2        us-east-1a
use1-az4        us-east-1b
use1-az6        us-east-1c
use1-az1        us-east-1d
use1-az3        us-east-1e
use1-az5        us-east-1f

Cool! Less dependency is always better! I prefer the one without ‘sed’ as well. Could you please update the pr? (I’m AFK)
Note: I’m thinking of adding this to the asg-as-update.py script as well, so az names are looked up there and user could optionally provide the AZ id instead.

Removed the sed to provide a cleaner looking output

Merging in .. thanks for your contribution 🙂


Question : Creating ANTLR Markdown Editor

Hi,
I'm planning to write a markdown editor using ANTLR, regardless of the fact that I don't understand any single line of this project I want to ask is it possible to create a Markdown editor with ANTLR in a way that  call Java methods after parsing texts and transform it into pdf and HTML ?
after googling I realized that it's not as easy as it seems.

it’s not easy. parsing and such won’t be too bad but generating pdf will be complicated.
T
On Mar 8, 2015, at 3:37 AM, omid<EMAIL_ADDRESS>wrote:

Hi,
I'm planning to write a markdown editor using ANTLR, regardless of the fact that I don't understand any single line of this project I want to ask is it possible to create a Markdown editor with ANTLR in a way that call Java methods after parsing texts and transform it into pdf and HTML ?
after googling I realized that it's not as easy as it seems.
—
Reply to this email directly or view it on GitHub.


Error: "no matches for enterprises.upmc.com" when creating example on minikube

Hello,
I am using minikube version 0.18 and Kubernetes version 1.8.5 on OS X.
The first step of kubectl create of example/controller.yaml completes successfully. However the second step (below) returns with the following error:
$ kubectl create -f https://raw.githubusercontent.com/upmc-enterprises/elasticsearch-operator/master/example/example-es-cluster-minikube.yaml
error: unable to recognize "https://raw.githubusercontent.com/upmc-enterprises/elasticsearch-operator/master/example/example-es-cluster-minikube.yaml": no matches for enterprises.upmc.com/, Kind=ElasticsearchCluster
Could you please let me know of anything else I need to do before these two steps (other than creating the namespace "operator") ?
Any hints to troubleshoot would be awesome! Thank you.

Could you do a: kubectl get crd and see if there are types in there for elastic? Also, could look at the logs from the operator when it first starts up to see if there are errors there. One of the first things it does is create it's own CRD, if that fails then the next step you're trying will as well.

Thanks] you very much for the response. get crd does not return any resources. Here are the errors from the pod.  It seems to be some RBAC related issue. Does this operator need some roles to be customized?
[admin@selhx1 ~]$ kubectl get crd
No resources found.
[admin@selhx1 ~]$ kubectl get pods
NAME                                      READY     STATUS             RESTARTS   AGE
elasticsearch-operator-6bc475878b-mcprr   0/1       CrashLoopBackOff   159        13h

[admin@selhx1 ~]$ kubectl logs elasticsearch-operator-6bc475878b-mcprr
time="2017-12-20T15:53:42Z" level=info msg="elasticsearch operator starting up!"
time="2017-12-20T15:53:42Z" level=info msg="Using Variables:"
time="2017-12-20T15:53:42Z" level=info msg="   baseImage: upmcenterprises/docker-elasticsearch-kubernetes:5.3.1"
time="2017-12-20T15:53:42Z" level=info msg="Using InCluster k8s config"
panic: customresourcedefinitions.apiextensions.k8s.io "elasticsearchclusters.enterprises.upmc.com" is forbidden: User "system:serviceaccount:default:default" cannot get customresourcedefinitions.apiextensions.k8s.io at the cluster scope

goroutine 1 [running]:
github.com/upmc-enterprises/elasticsearch-operator/pkg/k8sutil.(*K8sutil).CreateKubernetesCustomResourceDefinition(0xc4203b0980, 0x0, 0x0)
	/Users/slokas/godev/src/github.com/upmc-enterprises/elasticsearch-operator/pkg/k8sutil/k8sutil.go:291 +0x6ec
github.com/upmc-enterprises/elasticsearch-operator/pkg/controller.(*Controller).init(0xc4205e5e48, 0x0, 0xc4205e5d90)
	/Users/slokas/godev/src/github.com/upmc-enterprises/elasticsearch-operator/pkg/controller/controller.go:69 +0x2e
github.com/upmc-enterprises/elasticsearch-operator/pkg/controller.(*Controller).Run(0xc4205e5e48, 0x1531920, 0x6)
	/Users/slokas/godev/src/github.com/upmc-enterprises/elasticsearch-operator/pkg/controller/controller.go:58 +0x2f
main.Main(0x124c133)
	/Users/slokas/godev/src/github.com/upmc-enterprises/elasticsearch-operator/cmd/operator/main.go:111 +0x681
main.main()
	/Users/slokas/godev/src/github.com/upmc-enterprises/elasticsearch-operator/cmd/operator/main.go:144 +0x22
[admin@selhx1 ~]$

After giving cluster-admin privileges to the "default" service account in the "default" namespace, the operator started working correctly.
kubectl create clusterrolebinding cluster-admin-binding-2   --clusterrole=cluster-admin  --user=system:serviceaccount:default:default
Was I supposed to do this?  Would you know what all changes need to be made if I wanted to run the operator as a specific user with these elevated privilege? (I would prefer to not give default service accounts cluster-admin privileges :-))

The example controller includes the proper RBAC rules. Can you maybe create it again (https://github.com/upmc-enterprises/elasticsearch-operator/blob/master/example/controller.yaml) and see if any other errors pop up?

Let me know if you see any issues with the RBAC rules and please reopen if you do, I'll close for now.


Don't log "Refresh token status expired" as exception

The message spams the log, a simple log line with debug level should be sufficient.
INFO:     <IP_ADDRESS>:38794 - "PUT /api/v1/authentication/tokens HTTP/1.0" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/anyio/streams/memory.py", line 94, in receive
    return self.receive_nowait()
  File "/usr/local/lib/python3.9/dist-packages/anyio/streams/memory.py", line 89, in receive_nowait
    raise WouldBlock
anyio.WouldBlock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 77, in call_next
    message = await recv_stream.receive()
  File "/usr/local/lib/python3.9/dist-packages/anyio/streams/memory.py", line 114, in receive
    raise EndOfStream
anyio.EndOfStream

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/usr/local/lib/python3.9/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/dist-packages/fastapi/applications.py", line 270, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.9/dist-packages/starlette/applications.py", line 124, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 106, in __call__
    response = await self.dispatch_func(request, call_next)
  File "./capellacollab/__main__.py", line 70, in log_requests
    response = await call_next(request)
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 80, in call_next
    raise app_exc
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 69, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/cors.py", line 92, in __call__
    await self.simple_response(scope, receive, send, request_headers=headers)
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/cors.py", line 147, in simple_response
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 235, in app
    raw_response = await run_endpoint_function(
  File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 161, in run_endpoint_function
    return await dependant.call(**values)
  File "./capellacollab/core/authentication/provider/oauth/routes.py", line 34, in api_refresh_token
    return refresh_token(body.refresh_token)
  File "./capellacollab/core/authentication/provider/oauth/flow.py", line 42, in refresh_token
    return auth_session.refresh_token(
  File "/usr/local/lib/python3.9/dist-packages/requests_oauthlib/oauth2_session.py", line 452, in refresh_token
    self.token = self._client.parse_request_body_response(r.text, scope=self.scope)
  File "/usr/local/lib/python3.9/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 427, in parse_request_body_response
    self.token = parse_token_response(body, scope=scope)
  File "/usr/local/lib/python3.9/dist-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in parse_token_response
    validate_token_parameters(params)
  File "/usr/local/lib/python3.9/dist-packages/oauthlib/oauth2/rfc6749/parameters.py", line 448, in validate_token_parameters
    raise_from_error(params.get('error'), params)
  File "/usr/local/lib/python3.9/dist-packages/oauthlib/oauth2/rfc6749/errors.py", line 399, in raise_from_error
    raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.AccessDeniedError: (access_denied) Refresh Token status is expired

It's no longer printed in the logs.


Why not use psycopg for PostgreSQL database dump / restore?

psycopg (http://initd.org/psycopg/) is the most used Python driver for PostgreSQL databases, and is even required by Django when using Postgres as the database, so we can assume it is always installed when Django DBBackup commands are executed.
In my case (a Docker container based on python:3.5-slim) the PostgreSQL client is not available, although the psycopg driver is installed and totally working. The client is not available due to image inheritance (even changing the base image to the main python:3.5 - or 3.6 doesn't change anything) as I am using Postgres v9.5 and the available client is only postgres-client-9.4 on pre-xenial Ubuntu releases -> not compatible.
I thus cannot use DBBackup commands anymore (since I moved to Docker) :'(
Using psycopg instead of raw commands would solve this specific issue while providing an easier / faster / lighter installation process. Is there any reason psycopg is not used, apart from a lack of time on the dev side? Did someone ever tried this?

@ZuluPro sorry for the delay: I understand the official tools are robust and stable (when available), my point was just that it adds dependencies.
I finally changed my Dockerfile to add the Postgres apt repository and be able to install the postgres-client-9.5. It works like a charm but I depend on the other layers (external repository, etc.).

Hello @MickaelBergem,
Could you give us a sample of your Docker image ?
It interesting for future.

Sure:
Assuming you already have wget installed, here are the steps to add in your Dockerfile:
# We need PostgreSQL 9.5
COPY postgresql.list /etc/apt/sources.list.d/
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update && apt-get install -y --no-install-recommends \
    postgresql-client-9.5 \
    && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

You also need the file postgresql.list:
deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main

This wheezy comes from the fact I am using the base image python:3.5-slim which relies on Debian Wheezy.


[opt](inverted index) Improved top-N optimization by refining the sorting column check. (#39496)

https://github.com/apache/doris/pull/39496

run buildall


add utils to fetch abspath of files

add utils to fetch abspath of files.
fix issue #26
Need test on linux and windows.

Merged. I tried to update linux and mac project files. Check my changes and test them on mac please.


can not run lstm on gpu

Hi:
I can run lstm and dnn on cpu , and also can run dnn on gpu, but I can not run lstm on gpu. The error is "File "numpy.pxd", line 155, in init theano.scan_module.scan_perform (/home/alhome/yzl80/.theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.1.1503-Core-x86_64-2.7.5-64/scan_perform/mod.cpp:7672)
ValueError: ('The following error happened while compiling the node', forall_inplace,gpu,scan_fn}(Elemwise{Composite{minimum(minimum(minimum(i0, i0), i0), i0)}}.0, GpuSubtensor{int64:int64:int8}.0, GpuSubtensor{int64:int64:int8}.0, GpuSubtensor{int64:int64:int8}.0, GpuSubtensor{int64:int64:int8}.0, GpuIncSubtensor{InplaceSet;:int64:}.0, GpuIncSubtensor{InplaceSet;:int64:}.0, W_ho, w_co, W_hf, w_cf, b_f, W_hi, w_ci, b_i, W_hc, b_c, b_o), '\n', 'numpy.dtype has the wrong size, try recompiling')".do you know what should I do.
version of cuda is 7.5
version of theano is 0.7.0
do you know what should can I do

ok, I know the reason of that is the version of numpy is old.
thanks of all

Thanks for sorting out and posting the solution here.


I don't know what else to say, up is down and down is up on a mouse.
Version: BETA 202401.13
Runs on Godot 4.2.1 stable

Get latest version from here on GitHub.
In Play mode, in the options meneu, change "Invert Y" to your liking (I have it on by default as it's my preference)

Ah, didn't notice that, thanks.

Closing.


Release 0.16.2

https://babelfish.arc.nasa.gov/confluence/display/FFFSW/IRG-FFTEST302+-+0.16.2+-+2022-02-03+-+Astrobee+Release+Testing

Is the haz_cam rate in simulation.config intentional? If so looks good.

yeah or else in sim the mapper doesn't work well :/


improve new developer experience

keep .cargo/config.toml
so that WASM_BUILD_RUSTFLAGS is automagically set
update creditcoin-js's package.json to work with current project setup add protobuf dependecy to rust-setup.md
improve integration-tests instructions for running locally
Description of proposed changes
An amalgamation of a few things I ran into while getting started with this repo.

Practical tips for PR review & merge:

[ ] All GitHub Actions report PASS
[ ] Newly added code/functions have unit tests

[ ] Coverage tools report all newly added lines as covered
[ ] The positive scenario is exercised
[ ] Negative scenarios are exercised, e.g. assert on all possible errors
[ ] Assert on events triggered if applicable
[ ] Assert on changes made to storage if applicable

[ ] Modified behavior/functions - try to make sure above test items are covered
[ ] Integration tests are added if applicable/needed

Codecov Report

Merging #1034 (9ab7588) into dev (8fb90a2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #1034   +/-   ##
=======================================
  Coverage   77.56%   77.56%
=======================================
  Files          74       74
  Lines       10395    10395
=======================================
  Hits         8063     8063
  Misses       2332     2332

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Could not filter completed kata

I filtered kata by 'kata I have not completed'. But still I can see the completed kata on the page. For example, when I filtered kata by 'kata I have not completed on 8 kyu', I can see the 'Multiply' kata on this list which I have solved long time ago.
Also I can see the past solutions on the 'Multiply' kata page. However, no matter how many times I have clicked the 'submit final' button, I can still find the same kata listed as uncompleted katas.

Now when I Filtered 'Kata I have not completed on Kyu 8', I get 50 katas which I have solved a long time ago. 5 days ago, there are only 3 abnormal katas. The number of abnormal katas is growing.

I filed an issue very similiar to this.  https://github.com/Codewars/codewars.com/issues/282
It's possible the two issues have the same cause; however there is at least one difference, since I cannot see my solutions to multiply and broken greetings--even though they are stored under "past solutions' on the training page:

Closing old issue. Please open a new one if this issue is still there.


name The name of the device (e.g. “GeForce GTX 970”) issue

Based on https://numba.pydata.org/numba-doc/dev/cuda-reference/host.html
I am trying to get the name of the device but not managing
https://numba.pydata.org/numba-doc/dev/cuda-reference/host.html
numba.cuda.cudadrv.driver.Device.name
Error is
AttributeError: type object 'Device' has no attribute 'name'
What is the correct way to do it?

Device
Try:

numba.cuda.cudadrv.driver.Device is the class.  To get a Device instance for the current GPU, use:
>>> from numba import cuda
>>> cuda.get_current_device().name
b'GeForce GT 750M'


supercollective shows sum of all funds in available balance.

Mail from Brittani:

It seems like our WWCode Global https://opencollective.com/wwcode Available Funds is a combination of all networks and information has been combined since your last front-end update.
We can now no longer see the record for our Global funds as clearly as before, is there another place I should look for this information?

Assigning this to @asood123 to look into instead of @xdamman

this is not longer the case (it's another issue now :) )


install with npm: not a valid repo name

Describe the bug
Install fails on raspberry pi 3 (raspbian stretch)
To Reproduce
cd ~/.node-red
npm install node-red-contrib-home-assistant

gives:
(node:8552) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN package.json<EMAIL_ADDRESS>No repository field.
npm WARN package.json<EMAIL_ADDRESS>No README data
npm WARN package.json<EMAIL_ADDRESS>No license field.
npm ERR! git clone git@github.com:github:node-red/node-red Cloning into bare repository '/home/pi/.npm/_git-remotes/git-github-com-github-node-red-node-red-b505ab45'...
npm ERR! git clone git@github.com:github:node-red/node-red fatal: remote error:
npm ERR! git clone git@github.com:github:node-red/node-red    is not a valid repository name
npm ERR! git clone git@github.com:github:node-red/node-red   Email<EMAIL_ADDRESS>for help
npm ERR! notarget No compatible version found: node-red@'github:node-red/node-red#0.18.2'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.1.0","0.2.0","0.3.0","0.4.0","0.5.0","0.6.0","0.7.0","0.7.1","0.7.2","0.8.0","0.8.1","0.9.0","0.9.1","0.9.1-nocolors","0.10.0","0.10.1","0.10.2","0.10.3","0.10.4","0.10.6","0.10.8","0.10.8-2","0.10.8-3","0.10.9","0.10.10","0.11.0","0.11.1","0.11.2","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.12.5","0.13.0","0.13.1","0.13.2","0.13.3","0.13.4","0.14.0","0.14.1","0.14.2","0.14.3","0.14.4","0.14.5","0.14.6","0.15.0","0.15.1","0.15.2","0.15.3","0.16.0","0.16.1","0.16.2","0.17.0","0.17.2","0.17.3","0.17.4","0.17.5","0.18.0","0.18.1","0.18.2","0.18.3","0.18.4","0.18.5","0.18.6","0.18.7","0.19.0","0.19.1","0.19.2","0.19.3"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! System Linux 4.14.52-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "node-red-contrib-home-assistant"
npm ERR! cwd /home/pi/.node-red
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ETARGET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/.node-red/npm-debug.log
npm ERR! not ok code 0

Expected behavior
Install properly
Environment (please complete the following information):

Node Red Version: v0.18.7
NR Home Assistant Plugin Version: I don't have such a thing, but I could use nodered with home assistant using node-red-contrib-home-assistant when running in docker on another computer. Also, it seems to me the problem is related to the way npm decides on the git repository to use
Is Node Red running in Docker: no
npm Version: 1.4.21
nodejs Version: v8.11.1

Other (please complete the following information):

Have you searched previous issues for duplicates?: yes
Did you attempt to reproduce the issue in the dev docker environment, if so what were results (See README.md): haven't tried. However,  I cound install this plugin in a node-red running in a docker container on my mac, by using the node-red palette manager.

Additional context
git@github.com:github:node-red/node-red is indeed not a valid repository name.
I have tried many ways to install https://github.com/AYapejian/node-red-contrib-home-assistant with npm, to no avail, e.g.:

provide arguments to npm to try and build the correct repo name,
cloning locally this repo to install the folder,
changing this line without knowing what I'm doing

This last attempt brought me further: I can access the repository, but I get other errors later on:
pi@raspberrypi:~/.node-red $ npm install cbernet/node-red-contrib-home-assistant
(node:10446) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN package.json<EMAIL_ADDRESS>No repository field.
npm WARN package.json<EMAIL_ADDRESS>No README data
npm WARN package.json<EMAIL_ADDRESS>No license field.
npm WARN deprecated<EMAIL_ADDRESS>`debug` versions 3.2.0-3.2.2 break Node 4. Users of node LTS and onward (modern Node versions): please upgrade to `debug@4` or above as soon as possible.  Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR!  Additional logging details can be found in:
npm ERR!     /home/pi/.node-red/npm-debug.log
npm ERR! not ok code 0

Many thanks in advance for your help.

I found out what is the problem: node-red and npm are completely outdated in raspbian stretch.
Using the nodered installation instructions here gives a version of node-red where the manage palette menu item is available. With the manage palette, node-red-contrib-home-assistant can be installed.
The version of npm that comes with this installation of nodered (npm 6.4.1) is much more recent, and I have tested that I can also install node-red-contrib-home-assistant with it.


Discriminator column ignoring base

I'm having a entity RoleClaim that inherits from Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim.
public class RoleClaim : IdentityRoleClaim<string>
    {
        public virtual Role Role { get; set; }
    }

In the DbContext the IdentityRoleClaim is ignored with
protected override void OnModelCreating(ModelBuilder builder)
{
            builder.Ignore<IdentityRoleClaim<string>>();
}

The mapping of the class:
        public static void Map(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<RoleClaim>()
                .ToTable("RoleClaims")
                .HasKey(x => x.Id);

            modelBuilder.Entity<RoleClaim>().Property(x => x.Id).HasColumnName("Id");
            modelBuilder.Entity<RoleClaim>().Property(x => x.ClaimType).HasColumnName("ClaimType");
            modelBuilder.Entity<RoleClaim>().Property(x => x.ClaimValue).HasColumnName("ClaimValue");
            modelBuilder.Entity<RoleClaim>().Property(x => x.RoleId).HasColumnName("RoleId");

            modelBuilder.Entity<RoleClaim>().HasOne(x => x.Role).WithMany(role => role.Claims).HasForeignKey(claim => claim.RoleId);
        }

But in the migration I'm still getting a Discriminator column.
Further technical details
EF Core version: Microsoft.EntityFrameworkCore (1.1.2)
Database Provider: MySql.Data.EntityFrameworkCore (8.0.8-dmr)
Operating system: Windows 10
IDE: Visual Studio 2017
Framework: .NETCOREAPP 1.1

@HaoK could you please help with an initial investigation of this in case it has to do with how things are configured in the model in ASP.NET Identity?
As it says above, this is 1.1.2, so there are still navigation properties.

@ReginaldBull can you include the entire DbContext class especially the full OnModelCreating method?

`public class DsmIdentityEntities : IdentityDbContext
{
internal IConfigurationRoot Configuration { get; set; }
    public DbSet<ApplicationUser> ApplicationUsers { get; set; }
    public DbSet<ApplicationUserRole> ApplicationUserRoles { get; set; }
    public DbSet<ApplicationRole> ApplicationRoles { get; set; }
    public DbSet<ApplicationUserToken> ApplicationUserTokens { get; set; }
    public DbSet<ApplicationUserLogin> ApplicationUserLogins { get; set; }
    public DbSet<ApplicationUserClaim> ApplicationUserClaims { get; set; }
    public DbSet<ApplicationRoleClaim> ApplicationRoleClaims { get; set; }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        var builder =
            new ConfigurationBuilder().AddJsonFile("appsettings.json", optional: false, reloadOnChange: false);
        Configuration = builder.Build();
        optionsBuilder.UseMySQL(Configuration.GetConnectionString("Connection"));
    }

protected override void OnModelCreating(ModelBuilder builder)
{
builder.Ignore();
builder.Ignore<IdentityRoleClaim>();
builder.Ignore<IdentityUserClaim>();
builder.Ignore<IdentityUserLogin>();
builder.Ignore();
builder.Ignore<IdentityUserRole>();
builder.Ignore<IdentityUserToken>();
ApplicationRoleMapping.Map(builder);
ApplicationRoleClaimMapping.Map(builder);
ApplicationUserClaimMapping.Map(builder);
ApplicationUserLoginMapping.Map(builder);
ApplicationUserMapping.Map(builder);
ApplicationUserRoleMapping.Map(builder);
ApplicationUserTokenMapping.Map(builder);
}`
And for example:
 public class ApplicationUserTokenMapping     {         public static void Map(ModelBuilder modelBuilder)         {             var builder = modelBuilder.Entity<ApplicationUserToken>();             builder.ToTable("Tokens")                 .HasKey(x => new                 {                     x.UserId,                     x.LoginProvider,                     x.Name                 });             builder.Property(x => x.UserId).HasColumnName("UserId");             builder.Property(x => x.LoginProvider).HasColumnName("LoginProvider");             builder.Property(x => x.Name).HasColumnName("Name");             builder.Property(x => x.Value).HasColumnName("Value");         }     }

@ReginaldBull can you try calling base in your OnModelCreating at the top to see if that fixes the issue?

I have modified my OnModelCreating to this
`
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
        builder.Ignore<IdentityRole>();
        builder.Ignore<IdentityRoleClaim<string>>();
        ....
        }

`
And get this exception:

The index {'UserId'} cannot be added to the entity type 'IdentityUserClaim' because an index on the same properties already exists on entity type 'ApplicationUserClaim'.

@HaoK Any more thoughts on this?

@ReginaldBull can you also include your startup ConfigureServices that shows your AddIdentity and related calls especially?

Currently I'm using it from an UnitTest project.

If its a unit test, that should be easy to reproduce, can you include the minimal code needed to reproduce the issue you are seeing?

I will try to create a minimal example for you

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


Add funfetti themeing

Switchin' up that color scheme :)

Looks good! I think it might still say Johns Hopkins at the bottom of the TOC

@carriewright11 Thanks! where do you see that?

@carriewright11 Thanks! where do you see that?

it would be in the _output.yml - should probably say jhu and Fred Hutch I guess?

idk - the change in institution makes it a tad awkward

There are two _output.yml.. are we okay with letting the user choose?

Is this resolved yet or nah? @avahoffman

@cansavvy as long as you're cool with it!


Improve the API documentation

The ongoing work can be followed at http://scruffy.ugent.be/apidocs

[x] update apipie
[x] enable unipept styling
[x] make hostname configurable via option
[x] replace apipie by custom controller and view
[x] add sidebar with scroll spy
[x] add missing descriptions

[x] pept2prot
[x] pept2taxa
[x] pept2lca
[x] taxa2lca
[x] taxonomy

[x] add a link to the docs on the home page (image + intro text)
[x] add a try it form to the pages similar to https://developers.google.com/+/api/latest/people/get

API doc examples:

github: https://developer.github.com/v3/issues/comments/
facebook: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.1
twitter: https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/%3Aid
google+: https://developers.google.com/+/api/latest/people/get

Original pull request by @bmesuere on Fri Aug 15 2014 at 20:11.
Merged by @bmesuere on Tue Aug 26 2014 at 15:04.

The apipie examples are output in code-style without any control over it, so I was planning to add the examples to the description. This would mean that 90% of the api controller will be documentation and almost none of the original apipie functionality will be used.
Conclusion: drop apipie and create a separate apidocs controller and views. This will allow us to have more control over the pages (sidebar!) and have a cleaner api-controller with only to the point comments.
Original comment by @bmesuere on Mon Aug 18 2014 at 10:56.

@pdawyndt waiting for your final comments to merge this.
Original comment by @bmesuere on Mon Aug 25 2014 at 18:32.


ConversationReference is not [Serializable]

Using extension method GZipSerialize(this ConversationReference conversationReference) from Microsoft.Bot.Builder.ConnectorEx fails with a SerializationException, as ConversationReference is not marked Serializable (unlike ResumptionCookie.)

FYI the ConversationReference in question was sourced from an existing (production) ResumptionCookie, on which .ToConversationReference() was called.
The resulting ConversationReference (with phone numbers changed) is included below via JsonConvert.SerializeObject(). I'm currently using JSON serialization instead of GZipSerialize() as a workaround.
{"activityId":null,
"user":{"id":"+353851111111","name":"+353851111111"},
"bot":{"id":"+353862222222","name":"+353851111111"},
"conversation":{"isGroup":false,"id":"+3538511111111","name":null},
"channelId":"sms",
"serviceUrl":"https://sms.botframework.com"}

I second this one. Had a dialog class with a reference to a ResumptionCookie which now doesn't work any more because the ConversationReference implementation is not marked as serializable. But maybe the approach is wrong and we should not store the ConversationReference in serializable dialog implementations, but then I do wonder how to get it in a different way.

@oflahero Are you still experiencing the issue after upgrading to BotBuilder 3.8.1?

@nwhitmont Yes.

I am also getting this issue with 3.8.1 after updating my code to use ConversationReference instead of ResumptionCookie

This issue is still present in 3.8.2.

And still in 3.9.0. I really thought I was handing a dev an easy win for their burndown chart - guess it must be more complex than I thought!

Hi,
Is there a recommended approach for this? Previously I used a serialized ResumptionCookie in the query string to authenticate a user and then continue the conversation.
Now I've replaced all the ResumptionCookie references to use ConversationReference, but when using the GZipSerialize extension I get the error that ConversationReference is not serializable.
Is there a plan to make this ConversationReference serializable or is there a preferred approach going forward and the GZipSerialize extension method will be removed?
Cheers
Andy

Can you please let us know if the issue still persists?

Can you please let us know if the issue still persists?
It still exists in 3.16

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.
From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.
As part of this restructuring, we are closing all tickets in this repo.
For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here:
https://github.com/microsoft/botbuilder-v3/issues
For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here:
https://github.com/microsoft/botbuilder-channels/issues
For product behavior, how-to, or general understanding questions, please use Stackoverflow.
https://stackoverflow.com/search?q=bot+framework
Thank you.
The Bot Framework Team


[FEATURE] User-Triggered Prank

Feature Description
Allows users to set a hotkey to change the wallpaper immediately.
Problem and Solution
This feature will enable users to prank their friends on demand and possibly guess the subreddit from which the wallpaper is sourced. ;)
Alternatives Considered
No response
Additional Context
No response
Code of Conduct

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

I'll love to work on this feature under hacktoberfest. Please assign it to me!

In #14, there’s a command implemented as python main.py --change-now
Isn’t it doing the same thing, or is your solution for a different use case?

@Rishitshivam ?

yeah just saw it, sorry


feat(dynamic_avoidance): manual cherry-pick of #6368

Description
manual pick of
https://github.com/autowarefoundation/autoware.universe/pull/6368

Tests performed

Not applicable.
Effects on system behavior

Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@yuki-takagi-66
すみません、こちらコミット名が元のPRタイトルと変わってしまっていそうなので修正いただけないでしょうか。


titles of  some websites  cannot be recognized

https://www.zhihu.com/question/657302101
https://www.zhihu.com/question/657354774
https://www.zhihu.com/question/554200932/answer/3498946863
https://www.zhihu.com/question/367357782/answer/3409674587

Looks like that site has some sort of bot protection that prevents automated access to the actual page content. Not much I can do here I'm afraid.


contributors list added below the table

I have added contributors list below the table using github api, which closes the issue #49.

It is already submitted. Please close it.
Is there a way to know if someone is working on a issue or not.

Is there a way to know if someone is already working on a issue?

Typically the polite thing to do is to ask about it in the issue itself before starting to work on it. That way, there will be less double work.

👍
On Sat, 22 Jul 2023, 10:24 pm Ajit Panigrahi, @.***>
wrote:

Is there a way to know if someone is already working on a issue?
Typically the polite thing to do is to ask about it in the issue itself
before starting to work on it. That way, there will be less double work.
—
Reply to this email directly, view it on GitHub
https://github.com/eneajaho/ngx-libs/pull/65#issuecomment-1646629006,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADTFFAL2YNZRGXII2WAXSILXRQAVRANCNFSM6AAAAAA2TYWQU4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Feat 355 add related projects

What does this PR do?
Adds the related projects Model
Includes select input to add related projects
Creates and Deletes relations between projects when updating projects in projects Page
Adds Related projects section in projects detail's page

Where should the reviewer start?
Check the created the new model: RelatedProjects on schema.prisma
Run the project a go to a projects Edit Page to view the new related projects field

How should this be manually tested?

Go to a projects edit Page.
Add projects on the related projects input, and save
On the Project's details page check that on Related Projects section the information is updated.

Any background context you want to provide?
This  a featured meant to allow users to see projects that are related to each other, which relation is created by the project members and/or admin users.
This MVP is a feature that would be added to the projects new version using REMIX

What are the relevant tickets?
This is related to #355

Screenshots

Questions
We could use other UI element instead of Chips if we wish to add more information.
Would this feature be added to other sections ? eg: Admins Page

Removed, thank you


Additional training data to extract more affiliations

I have a dataset on which the latest version seems to fail extracting any affiliation data in 40 % of the cases. (The dataset might be considered less palatable than average; it's also returning many org.grobid.core.exceptions.GrobidException: [NO_BLOCKS] PDF parsing resulted in empty content and Cannot detect language because of: com.cybozu.labs.langdetect.LangDetectException: no features in text.)
Is it useful for the project to contribute more PDFs and affiliation training data (as described in https://grobid.readthedocs.io/en/latest/training/affiliation-address/ ), possibly with a focus on currently missing journals/publishers, to hopefully improve recall?

Hello @nemobis !
First comment, the [NO_BLOCKS]  and  no features in text problems visible in the logs mean normally that the text cannot be accessed in the PDF. So these PDF are only image. You would need to find a version of the PDF with "native" text inside, or to preliminarly use an OCR before using GROBID on them.
Then indeed, the results for affiliation-address in unknown journal/conference layouts which are very different from the one of the existing training data, will be bad, as you report. The first solution is to add more training data and retrain the models to cover these new layouts.
For knowing which training data to add (which model to retrain), we need to see if the whole block affiliation-adressed is missed by the header model, which means we need to add more header examples, or if the block is well recognized but the parsing of the fields is failing - then we need to add traninig data for the affiliation-address parser.
If it's OK for you, you could send me some sample of these PDF or the links to these difficult PDF and I can have a look. For creating additional training data and retraining, the documentation offers annotation guidelines and detailed steps to follow.

Patrice Lopez, 15/08/2018 15:01:

First comment, the |[NO_BLOCKS]| and |no features in text| problems
visible in the logs mean normally that the text cannot be accessed in
the PDF. So these PDF are only image. You would need to find a version
of the PDF with "native" text inside, or to preliminarly use an OCR
before using GROBID on them.

Right. I suspected so, but I couldn't determine whether grobid is
supposed to do OCR or not. Does the OCR text need to be mapped to the
image word by word (as e.g. OCRmyPDF attempts to do)?

[...] If it's OK for you, you could send me some sample of these PDF or the
links to these difficult PDF and I can have a look. [...]
Sure, I will. I'll try to select some relevant examples to avoid
overwhelming you. It will probably take me a few days,

Right. I suspected so, but I couldn't determine whether grobid is supposed to do OCR or not.

No OCR in GROBID for the moment... there will be soon normally some OCR but it will be limited to problematic glyphs in the input PDF (whose UTF-8 code identification is failing - this is quite common unfortunately). We have not considered adding full OCR to GROBID, because that would add a lot of complexity to the tool, and I think this is better achieved by an integration in a workflow by users with their own OCR tools.

Does the OCR text need to be mapped to the image word by word (as e.g. OCRmyPDF attempts to do)?

Yes the OCR need to add a text layer to the PDF mapping text to the PDF image - coordinates are exploited by GROBID machine learning models. So OCRmyPDF is good (and it uses Tesseract, which produces really decent accuracy)

It will probably take me a few days,

No problem!


Added GH workflow to check code quality

Checklist

[X] I have read the Contributing Guidelines
[X] I acknowledge that any submitted code will be licensed under the ISC License
[X] I confirm that submitted code is my own work
[X] I have tested the code, and confirm that it works

Enviroment

Operating System: null
Node version: 20.8.0
npm version: 10.2.0

Description

This PR adds a workflow for checking the quality of the code with different linters : es-check, eslint, Prettier, stylelint (css, scss)
Needed for working on this PR is the authorization to add all of the differents linters to the project.

Looks like the following NPM scripts are required in order for the jobs to run:

escheck
lint
prettier:check
stylelint:css
build:check

Looks like the following NPM scripts are required in order for the jobs to run:

escheck
lint
prettier:check
stylelint:css
build:check

Of course its needed but I don't think I can make all the ignore file from linters and other thing like this, don't want to messed up everything


Netmodules shouldn't install additional dependencies in dockerized builds

Docker build caching is set up such that mesos installs all dependencies it needs for running. Then netmodules does an apt-get update, and re-installs (upgrades) those same dependencies.
Therefore, if the Mesos cache is kept for awhile, and netmodules is rebuilt, it will build on newer versions of those dependencies.
Netmodules shouldn't install any additional dependencies during the docker build. It should expect the mesos installation layer to have already installed them, to prevent mismatch of build deps.

This code was moved to seperate repos, and resolved


New UKHPI: showing both the select location dialogue and the compare location dialogue not working

Steps:

click to show the 'select location' dialogue, choose a new location
click to the 'compare with ...' tab on one of the content units
click to 'select another location'

Expected: see the same dialogue both times.
Actual: on the second viewing of the location dialogue, the map is missing. Works the same if the sequence is reversed (i.e. show compare and then select)

@MalcolmShazell Ready for QA

confirm now working


Adding JS Unit Testing

Adding JavaScript unit testing with Mocha Istanbul
Additions

Adding a few npm package for unit testing in grunt
Added a baby unit test to cfgov-refresh

Removals

List of removals made
To the project
Within this PR

Testing

Test the tests by running npm install and then running grunt test
Visit /_tests/unit_test_coverage/lcov-report/index.html to see the results of the unit tests. Coverage should be 100% for the one test.

Review

@anselmbradford
@jimmynotjim
@sebworks
@imuchnik

Preview

Preview this PR without the whitespace changes
Notes

Right now the tests only check coverage for tests that have something written for them. If we want accurate code coverage stats, we'll have to write small tests for all our modules. I tried to do this really quickly, but it's more of a lift than I expected.

@KimberlyMunoz @Scotchester @jimmynotjim @sebworks, just thought a test verifying that no listeners are registered before init() is called would be useful. What do you guys think?

Review done!

Very cool! I agree with @imuchnik and @sebworks that we should include event listeners, but this is a great first step and I think adding full tests can be in a future PR if we want to get to testing current in-development features.

Sounds good, :+1: from me

Fixes in @jimmynotjim & @anselmbradford

:+1:


Add support for filtering webhook notifications by specific branches in all our Git integrations

Hi! This is a follow up to #4000. I have already started working on this. I thought it prudent to create a separate issue for future questions that I might have while implementing this. My PR will have a series of commits that implements this feature for each of our Git integrations (BitBucket, Gitlab, etc).
Thanks!
Eeshan

@zulipbot claim :)

Yep, sounds great :)


[BUG] warnings when using pipe

datar version checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of datar and its backends.

Issue Description
whenever I use the pipe I get a warning:
from datar import f
from datar.dplyr import mutate, filter_, if_else
from datar.tibble import tibble
# or
# from datar.all import f, mutate, filter_, if_else, tibble

df = tibble(
    x=range(4),  # or c[:4]  (from datar.base import c)
    y=['zero', 'one', 'two', 'three']
)
>>> df>>mutate(z=f.x)
/Users/USER/miniconda3/envs/benchmark/lib/python3.8/site-packages/pipda/utils.py:89: PipeableCallCheckWarning: Failed to detect AST node calling `mutate`, assuming a piping call.
  warnings.warn(
        x        y       z
  <int64> <object> <int64>
0       0     zero       0
1       1      one       1
2       2      two       2
3       3    three       3
>>>

Expected Behavior
no warning
Installed Versions

python      : 3.8.18 (default, Sep 11 2023, 08:17:16)
[Clang 14.0.6 ]
datar       : 0.15.4
simplug     : 0.3.2
executing   : 2.0.1
pipda       : 0.13.1
datar-numpy : 0.3.3
numpy       : 1.24.3
datar-pandas: 0.5.4
pandas      : 2.0.3

Try to avoid running with raw python REPL.
See also: https://github.com/pwwang/datar/issues/196#issuecomment-1845636387


Provide Source Code for the auto-click Extension

While the repository has a code of conduct, a license, a wiki, a privacy policy and other items typically found in an open source repository on GitHub, this repository seems to be lacking any source code for the actual auto-click plugin itself.

+1

Sorry Sir. Our extension is freeware only and we are here to help you any addon feature you require. You don't have to really work on it.

No problem. I extracted the source code from the extension.

Dear developers,
Could you please clarify the license of your extension? There is an Apache license here and on your website, it is said that

Designed and built with all the love in the world by the Dhruv Techapps Team.
Currently v3.2.0. Code licensed Apache 2.0, docs CC BY 3.0.

What code is licensed Apache 2.0 and what code is proprietary? And @gingerbeardman the extracted code is minified anyway.


pandas update

Hi There,
I tried to reproduce your work but got some trouble when runing 'run.py'.
I modified from line 11.
data['Diff'] = data['Diff']*15
data['Q'] = np.ravel(E)
output = data.sort_values(['Q'] , ascending=False)
output.to_csv('output.csv')
data[['Diff' ,'Q']].plot()
plt.show()

I think this is caused by some issues and updates from pandas.
My versions are python 2.7, pandas 0.20.3.
And what is the meaning of the final plot? How does it look? Thanks!

Hi ,
Firstly, sorry for getting back so late. Also, I have updated the Readme but the gist of the matter is 'Diff' is the improvement in the rate at which the taxi is making money if he takes a particular file. Please look at preprocessing.py the column names of data are very suggestive of what it represents.
The reward is calculated as the change in the PID value if a taxi takes a fare. I'll soon attach a paper to explain the project.


Remove badge-event-reminder

Now the event is over, it is dead code. Remove it.

How well did it work anyway?

Don't know. There were 3 versions:

one with the original date/time/room
one with the new date/time/room, but without the needed and undocumented timezone-hack
one with the correct date/time/room

Did get some reports the badge triggered at the wrong moment.


Moved almond from package's dependicies to package's development dependencies.

(Disclaimer: I'm not a javascript developer at all)
This pull request includes a

[ ] Bug fix
[ ] New feature
[ ] Translation
[X] Improvement

The following changes were made

Moved almond from package's dependicies to package's development dependencies (in file package.json)

If this is related to an existing ticket, include a link to it as well.
https://github.com/select2/select2/issues/5450

This was done in https://github.com/select2/select2/pull/5489, since we realized that both dependencies were not required for all users.
Thanks for submitting this pull request! :)


APIError(code=-2010): Account has insufficient balance for requested action.

I have enough USDT balance (+1000 USDT) but I can't work with the API in any USDT/other pair.
buy = client.order_limit_buy(symbol='IOTAUSDT',quantity=30,price=0.5)
It returns APIError(code=-2010): Account has insufficient balance for requested action.
Seems that there is something wrong with USDT and api wrapper.

This has nothing to do with the code. You have insufficient balance.

I trade lots with USDT so not a systemic problem. I see that message when I forget that I have tied up funds in other outstanding limit buy orders that have not been filled.


Error if call path trace generated with hpcrun

If the experiment.xml file was collected with hpcrun -t, then produce an error in the hpctoolkit reader. We will work towards adding support for trace data files.

Closing this issue. Hatchet can read HPCToolkit data that was generated with (or without) tracing enabled, as long as the metric-db files exist.


test_SparseGPRegression_rbf_white_kern_1d test failure on powerpc64le arch

Hello,
Found by GNU Guix CI (https://ci.guix.gnu.org/build/2921270/)
[...]
test_SparseGPRegression_rbf_white_kern_1d (GPy.testing.model_tests.GradientTests)
Testing the sparse GP regression with rbf kernel with white kernel on 1d data ... initializing Y
initializing inference method
adding kernel and likelihood as parameters
Adding Z as parameter
FAIL
[...]

======================================================================
FAIL: test_SparseGPRegression_rbf_white_kern_1d (GPy.testing.model_tests.GradientTests)
Testing the sparse GP regression with rbf kernel with white kernel on 1d data
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-gpy-1.10.0.drv-0/GPy-1.10.0/GPy/testing/model_tests.py", line 788, in test_SparseGPRegression_rbf_white_kern_1d
    self.check_model(rbf, model_type='SparseGPRegression', dimension=1)
  File "/tmp/guix-build-python-gpy-1.10.0.drv-0/GPy-1.10.0/GPy/testing/model_tests.py", line 682, in check_model
    self.assertTrue(m.checkgrad())
AssertionError: False is not true

----------------------------------------------------------------------
Ran 274 tests in 466.921s

FAILED (failures=1, skipped=3)

Thanks!

Hi @Apteryks
could you please retry using GPy==1.13.1? Tests have been migrated from nose to pytest and some things have changed.

Hi!  I just tried updating GPy to version 1.13.1, and I'm getting a syntax error in the mpi_test__.py file which seemingly uses Python 2 syntax:
testing/mpi_test__.py'...
***   File "/gnu/store/7gyd40a2zchj2j1s796v5393laxpvr9l-python-gpy-1.13.1/lib/python3.10/site-packages/GPy/testing/mpi_test__.py", line 16
    print float(m.objective_function())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Any tip?

Clearly, this is a something I overlooked when modernizing the tests.
I am a little confused why CI testing did not run into this  🤔 but anyways, thanks for reporting! I'll open up a branch on this one.

@Apteryks I am not sure how you are running the tests. Is there any way you can test if branch 1054-test_sparsegpregression_rbf_white_kern_1d-test-failure-on-powerpc64le-arch fixes this?

Sorry, I meant to try it, but some other package is now failing some tests as well on that architecture now (python-werkzeug-2.0.2) so I'd have to fix that one first to test again.

So, I used the following command to build the latest source of GPy on a powerpc64le (offload) machine, and it seems to work:
$ guix build python-gpy --with-git-url=python-gpy=https://github.com/SheffieldML/GPy --with-branch=python-gpy=1054-test_sparsegpregression_rbf_white_kern_1d-test-failure-on-powerpc64le-arch --system=powerpc64le-linux --without-tests=python-werkzeug --without-tests=nss
[...]
GPy/testing/test_model.py::TestGradient::test_GPRegression_bias_kern_1D PASSED [ 60%]
GPy/testing/test_model.py::TestGradient::test_GPRegression_bias_kern_2D PASSED [ 61%]
GPy/testing/test_model.py::TestGradient::test_GPRegression_linear_kern_1D_ARD PASSED [ 61%]
GPy/testing/test_model.py::TestGradient::test_GPRegression_linear_kern_2D_ARD PASSED [ 61%]
GPy/testing/test_model.py::TestGradient::test_GPRegression_linear_kern_1D PASSED [ 62%]
GPy/testing/test_model.py::TestGradient::test_GPRegression_linear_kern_2D PASSED [ 62%]
GPy/testing/test_model.py::TestGradient::test_SparseGPRegression_rbf_white_kern_1d PASSED [ 62%]
GPy/testing/test_model.py::TestGradient::test_SparseGPRegression_rbf_white_kern_2D PASSED [ 63%]
GPy/testing/test_model.py::TestGradient::test_SparseGPRegression_rbf_linear_white_kern_1D PASSED [ 63%]
GPy/testing/test_model.py::TestGradient::test_SparseGPRegression_rbf_linear_white_kern_2D PASSED [ 64%]
GPy/testing/test_model.py::TestGradient::test_SparseGPRegression_rbf_white_kern_2D_uncertain_inputs PASSED [ 64%]
GPy/testing/test_model.py::TestGradient::test_SparseGPRegression_rbf_white_kern_1D_uncertain_inputs PASSED [ 64%]
GPy/testing/test_model.py::TestGradient::test_TPRegression_matern52_1D PASSED [ 65%]
GPy/testing/test_model.py::TestGradient::test_TPRegression_rbf_2D SKIPPED (No idea why this fails all of a sudden but need to go ahead.) [ 65%]
GPy/testing/test_model.py::TestGradient::test_TPRegression_rbf_ARD_2D PASSED [ 65%]
GPy/testing/test_model.py::TestGradient::test_TPRegression_matern52_2D PASSED [ 66%]
GPy/testing/test_model.py::TestGradient::test_TPRegression_matern52_ARD_2D PASSED [ 66%]
[...]
=== 255 passed, 15 skipped, 11 xfailed, 28336 warnings in 305.22s (0:05:05) ====
phase `check' succeeded after 306.4 seconds
[...]

As you can see I encountered other test failures in other packages on that architecture (python-werkzeug and nss) that are found somewhere in the transitive dependencies of python-gpy:
$ guix graph --path python-gpy python-werkzeug
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
and
$ guix graph --path python-gpy nss
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
I'll report Guix issues for these.
So it looks like this issue is fixed on the branch!  Thank you!

Thanks for the checking @Apteryks . I'll close the issue.


Broken for newer Macwire versions

It seems like the tagging system has changed. Using apostropes does not seems to work now. It expects a class I think now as tag.
Urk, I'm not even able to build the repository as is:
Build.scala:1: object pgp is not a member of package com.typesafe.sbt
[error] import com.typesafe.sbt.pgp.PgpKeys

@mkotsbak Check out the solution for #2 which helps you build the project.
We are working on fixing the tagging system. We'll see how far we get :D


Ragnarok map misaligned

The dino marks of certain coordinates point to the wrong locations on the Ragnarok map.

Sadly these images have their grid lines in the wrong place so I don't align with those. It's very confusing :(
I've tried to align the pin locations with the drawing of the landmasses instead, so they should look like they are in the right place relative to landscape features.
That said, they could easily need tweaking.

Next release will have significantly tweaked Ragnarok values based on a new calibration system.
The positions of ~150 storage crates placed around the coastline are matched up to the map image, completely ignoring the grid. Note that on Rag in particular some of the map image is out of date and simply wrong.


Agent can't connect to TFS if the Basic Authentication Enabled

Agent version and platform
Version of your agent? Any windows agent version

OS of the machine running the agent? Windows

VSTS type and version
VisualStudio.com or On-Prem TFS?

On-Prem TFS 2015 U2/Dev 15
What's not working?
Agent can't be configured/reconfigure if basic authentication is enabled in IIS.
Even though I am using any authentication mechanism (Integrated), it just throws up error.
Disable basic auth and it works. pretty weird. it shouldn't impact other auth mechanism

Agent and Worker's diag log
[2016-06-23 05:00:52Z ERR  Agent] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation identifier is not valid
   at System.Net.Http.WinHttpAuthHelper.CheckResponseForAuthentication(WinHttpRequestState state, UInt32& proxyAuthScheme, UInt32& serverAuthScheme)
   at System.Net.Http.WinHttpHandler.<StartRequest>d__101.MoveNext()
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__42`1.MoveNext()

Only with dev15 server right? It works with dev14 ( TFS 2015 )

It's a bug in Windows exposed by a bug in the identity team's on prem pat support where it leads to the server challenging with two basic headers with different realms.  I'll reply with all the bug numbers but not an agent issue

Here'e the dupe: https://github.com/dotnet/corefx/issues/9124#issuecomment-224055727
It's bug for identity 597431 - they added basic in config file in dev15 and you added to IIS settings


[enhancement]Implement the "all" option.

Hi, @erm.
mangum-cli is a powerful tool and very helpful!
I want to implement the "all" option.
The "all" option performs the following successively:

build
package
deploy

Am I willing to implement this option?

I'm glad you find it helpful! If you would find this useful then I'd be happy to review your PR and merge it in.

Hi, @erm.
Thank you for your reply!
mangum-cli is a great tool that can save me a lot of time. I have registered the PR #15 and would appreciate it if you could review it.


I'm unsure on how to create a service worker without Ejecting

I'm unsure on where to start creating my service worker. So far I can only console log once service worker is registered but I'm not sure where to start after

Please read the documentation about setting up a PWA here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Please read the documentation about setting up a PWA here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

So I'll need 2 serviceWorker.js which means 1 is in the public folder and the other in the src folder?

No read the documentation, CRA generates a service worker for you.

The workbox-webpack-plugin is integrated into production configuration, and it will take care of generating a service worker file that will automatically precache all of your local assets and keep them up to date as you deploy updates.

No read the documentation, CRA generates a service worker for you.

The workbox-webpack-plugin is integrated into production configuration, and it will take care of generating a service worker file that will automatically precache all of your local assets and keep them up to date as you deploy updates.

If I don't add another "serviceWorker.js" in my public folder, I'll get a 404 error saying "Service worker not found"

Did you run yarn build?

I manage to get it working. Thank you


fix 5 bugs about parent strategy

Fix the following bugs:
(TS-4743) parent use consistent_hash Strategy may cause crash while first parent is not set
(TS-4744) ParentConsistentHash::selectParent may select the unavailable parent
(TS-4745) pRecord.failCount not init inParentRecord::ProcessParents
(TS-4746) ParentRecord *secondary_parents malloc, but no place free,which will cause memery leak
(TS-4747) if the connection of parent is notalive, not make the parent host down,which will select the the unavailablehost again

Is it possible to break this up into individual PRs for each Jira? Or are they interleaved? Also, please make the commit messages include each Jira in the Summary, and also, we prefer one commit per Jira when possible (but, you can break them up into 2 or more when appropriate).

I'm +1 on the changes but it might be better to create individual PR's and squash the two committs for TS-4746 due to misspelling of secondary_parents.

Yeh, I think we should break this up before reviewing.

@keith2008 Can you break these commits up into individual PR's for each issue?

@jrushford @zwoop OK,i have closed this pull. if you have time, please review my code on: https://github.com/keith2008/trafficserver


Partial implemantion of date.

Here's a partial implementation of date.
Things that work:

Printing the current date/time in UTC or local time
Command line arguments
Printing in various formats (standard formats and user supplied format string)
Reading from a file

Things that don't work:

Handling the variety of ways in which the GNU date program parses string input ("next week", "yesterday", etc)
Setting the system clock (need to be able to parse the time first)
Printing the name of the time zone

I don't have any tests yet. I'm not quite sure how to approach them, since most of the things this program does depend on the system clock.

Overall a great PR with a lot of attention to detail and best practices.. I hope we'll be seeing more of your work!


CODEOWNERS file could help reviews

Adding the CODEOWNERS file could help the reviews of individual chart changes go to the appropriate people automatically.

Ah, it seems like sometimes the reviewers do get assigned by the kube bots. However, as far as I can see it doesn't enforce review from the code owner if the PR creator assigns different reviewers.


Fixing puppeteer HTML to PDF conversion

Hello :wave:
With current version of puppeteer the PDF generation seems to be broken (There is probably parameters to review and maybe also CSS print rules to refactor?)

Hey @fraxken!
I was looking into the issue, but couldn't find anything wrong with puppeteer itself. Could you specify what is exactly broken (except that pretty obvious red block)?

@SpeedoMacMuffin
I didn't deeg that much. Here the issue is that the content should take the whole PDF width.
So that's probably an issue with the CSS (something has changed at some point when I upgraded puppeteer itself).

@SpeedoMacMuffin yes other contributors reported having no issue (so I guess that's was only reproducible on my local chrome, I will check).
Do not hesitate if you have ideas to improve things, PR are welcome

Ok I had the issue on one of my computed, re-installing node_modules fixed the issue


systemd: 251.12 -> 251.13

https://github.com/systemd/systemd-stable/compare/v251.12...v251.13
Commits: 23
Files changed: 21
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

I ran some VM tests, looks good.


Fix for Issue #92 - Aux Variables

Added functionality in get_generation_data() to include aux variables for models that output thermal generation as a PSI.PowerOutput aux variable.

@claytonpbarrows we should merge this since we don't have a good test case.


Expose the key labels to be configurable.

Any updates on this?

Sorry for the delay.  A different PR conflicted with this one.  If you want to rebase off master, I can merge this in.


963 chart xaxis gets cut off

Resolves #963
Proposed Changes

added flex-basis auto since IE has issues with interpreting flex box basis and defaults to 1 in all instance which can cause issues. Specifying auto resolves this.

How to Test

Navigate to instance summary page for ether JVM or GO and make sure chart at the bottom of summary page isn't cut off.

This fix has been verified in:
Safari 11
IE 11
Edge 16, 15, 14
Chrome 62
FF 52

Don't merge this in yet.  Adding comments...