How do I run code on player joining world in MinecraftForge 1.14+? - minecraft-forge

How do I run code on player joining world in MinecraftForge 1.14+? All of the google results are for older versions such as 1.7.10 and 1.12.2, and they don't seem to contain what I need.

You can do so by subscribing the PlayerEvent.PlayerLoggedInEvent (preferred), or EntityJoinWorldEvent and check entity is a player (fallback if the former doesn't work for some reason)

Related

New Nest Doorbell (wired) SDM Support

I received and installed the new Nest Doorbell (wired) over the weekend and wanted to play around with it today via the SDM API but I discovered it was not listed in my Device List and while "Nest Doorbell (wired)" is listed in the supported devices, it seems to still refer to the 1st generation Nest Doorbell (wired).
Is there typically a lag between launch and SDM API support for new Nest devices or have I missed a setting/configuration somewhere?
Thanks
"Is there typically a lag between launch and SDM API support for new Nest devices...?"
Yes.
Nest Doorbell (battery)
release date - 08-24-21 - source - 9to5google - link
SDM support - 09-21-21 - source - release notes - link
Nest Cam (indoor, wired)
release date - 10-05-21 - source - 9to5google - link
SDM support - 11-18-21 - source - release notes - link
"...or have I missed a setting/configuration somewhere?"
I doubt it. Lots of other users are reporting the same issue (see this thread in the official help forum).
Just found out the hard way to realize 2nd gen wired Doorbell isn't supported in SDM. Half of my household members are hearing impaired and dependent on flashing lights triggered by doorbell press.

How can I use Ms Access Date/Time Extended data type

Ms Access documentation suggests there is a data type called "Date/Time Extended" which:
The Date/Time Extended data type stores date and time information and is similar to the Date/Time data type, but it provides a larger date range, a higher fractional precision, and compatibility with the SQL Server datetime2 date type.
However I cannot select this as the option is not in the table design Data Type drop/down list.
My version is Microsoft Access for Microsoft 365 (16.0.12827.20328) 64-Bit.
How can I use the "Date/Time Extended" data type?
As far as I can tell, Date/Time Extended is not yet available in the latest release builds.
The documentation seems to be ahead of the actual release.
If you need it regardless, go to the Account page, and sign up for Office Insider, the beta channel, then click update options, and Update Now.
After that, it's in the dropdown for field types. Note that using it will break compatibility with previous versions of Office.
I can currently use the Date/Time Extended data type, and am on version 16.0.13012.20000 (latest beta channel).
Note that I strongly recommend on refraining from using this type for other purposes than testing until it's in a release version and you're 100% sure everyone using the database you intend to use it in has updated to a version that allows it.
Seems it was released in May see Office Insider Monthly (Targeted) v2005 build 12827.20210 - May 21.
But you have to enable it in Options first.
As of today it should be availible on all channels except Semi-Annual Enterprise Channel.
To get your general release number (starts with 200X), check Word for Office Version.

How to determine how many free google distance queries are left on my account?

I'm pulling distance/time information for a large number of origin/destination pairs using the Google Maps API in R. I'm currently using the gmapsdistance package but have looked at a few others.
My premium API key includes 100k free queries per day. Are there any packages that can return how many are remaining? For example, the ggmap package has a geocodeQueryCheck(). The problem is I don't think this function actually returns the number remaining on your account. It doesn't ask for your API key. My guess is that it just keeps track of how many it has called today. The latest github version has a register_google() function that does allow you to set your API key, but when I make API requests with the gmapsdistance package, geocodeQueryCheck() doesn't update.
In summary, I just want to know how many are left. Even if I need to construct the URL address directly. When I look at the API documentation, I don't even see URL calls for it, which doesn't give me much hope.
As confirmed by #SymbolixAU, there is currently no way to do this.
Sorry, I guess this is late, but have you tried this?
sum(.GoogleDistQueryCount$elements)

What does the dedupe parameter do in the Nominatim Search API?

It seem like it's doing more than just removing duplicates but I can't find any good documentation on it. The API docs currently just say:
dedupe=[0|1]
    No explanation yet.
I'm running my own Nominatim that's been forked from the original a few months ago and I use the public Nominatim as a back up when mine doesn't respond. So I am interested in answers regarding the latest public Nominatim. On my own Nominatim, I haven't noticed duplicates in results.
I have noticed differences when setting dedupe to 0 or 1. Here's a diff where you can see that even with dedupe=0, there are no duplicates yet with dedupe=1, the results are different. BTW dedupe=1 seem to match the default with no dedupe set.
Maybe Nominatim is removing duplicates based on GPS and boundaries and not just place_id's?
you could check the source code in here. Basically, the dedupe parameter is used to check whether there is a duplicate on the search result or not. it will be used when generating the query to get the data from the database.
the parameters which are used when trying to check for duplication are place_id and the address (the country code, postcode, address, etc). you could check the sql function in here (the function is called get_address_by_language)
I have not heard of the dedupe parameter but found your question while searching for nominatim duplicate addresses.
I'm having an issue with some buildings existing twice in the Nominatim data with slightly different variants of the address (e.g. Avenue vs Boulevard suffix, front door vs back door as coordinates).

What is the most useful information to display at the front of the office?

The company I work for has just purchased 4 32" LCD screens to be mounted at the front of the office for demonstration purposes. Whilst we are not demonstrating (most of the time), the screens are to be used as development information screens for the whole team.
What information would people recommend displaying to be most useful to the team? Our focus is on hosted business web-apps but I am interested in what other teams doing other types of development find useful too. Pointers on how to gather the displayed information would be useful also.
Information about your continuous integration status.
Major Development Milestones that have been hit in the last week
Releases within the last month (including a short description why this release is awesome)
Use it as motivational board. The achievements of software development are seldom communicated well enough.
Since you're hosting apps for your customers, server and network status information would probably be useful.
Heck, why not create a "chat room" for the dev team to discuss issues and post a streaming version of that as well?
Schedule information, Scrum notes from that morning, a gantt chart...the possibilities abound.
Outstanding bugcount, sorted by priority and severity. You can likely get this from your bugtracking tool programmatically.
Depending on your process management
system, possibly a list of feature
requests and the percentage complete
on each of them. Again, you can probably get this programmatically from your process management / time tracking tool.
Time spent in the current development
cycle, and time remaining. Again, this should be available from your process / management / time tracking tool. You may want to use this data with your bugcounts as well to give a bugs / day fix rate.
If you're a public company with a
profit-sharing plan (i.e. stock or
options), the current price of the
stock (this can be surprisingly
strongly motivating). You can get stock data from several sources online programmatically (although a small delay may be injected unless you're paying for the service).
The movie 'Office Space'
Weather radar from intellicast.com
Latest Checkin.
Number of checkins per day
Number of customers that use software
Metrics on Bugs found/fixed and the ratio.
One screen could be an aggregated RSS feed of development topics pulled from sites such as Stack Overflow (or even Coding Horror). Not sure what your goal for these screens is, but I could see it useful to me if you had a feed with topics specific to your development team headlined. If I were there, I'd glimpse them, maybe catch an interesting thread, and go learn something. Funnel a bunch of keywords and tags through a Yahoo Pipe and dump it to the screen.
That's if they are more "informal and informational."
I think most popular pages from your webapp(s) would be a fun/interesting thing to show on a big monitor up front.
Another would be a live feed of your error reporting.
We have one monitor showing all meetings for the day, with start-end, subject, and room. I find this helpful, not only for my orientation, but also to see what other people do at our company.
xkcd, bunny, dilbert and savage chickens :-)

Resources