Cannot generate URL correctly

I am not sure how this is supposed to work, but with the example code showed in the backbone.js document:
var Book = Backbone.Model.extend({urlRoot : '/books'});
var solaris = new Book({id: "1083-lem-solaris"});
alert(solaris.url());

We get '/books' with backbone-tastypie. This is due to the overwritten on idAttribute and url.

So the resource_uri is expected to be used as the id and it should be the full URI of the model. I do not understand this design, could you explain? Thank you.

Well, that the url is just /books for a new object is entirely correct, isn't it? If you save it, you should do a POST request to /books, and Tastypie will return you an object containing a resource_uri.

What if it is a exist object I want to get? Say, the id is from the URL.

If it's an existing object, wouldn't that mean you've fetched it from the server, or as a relation from another model? In that case, you'd have it's resource_uri. I've never encountered a situation where I'd have an id, but not the resource_uri?

I do a lot of fetching with just ID's and this works in vanilla Backbone. I ended up removing your url and idAttribute overrides and everything worked just fine.

I concur with Nathan. just using id is very much helpful in many cases.

Paul,
See the backbone documentation. It lets you give a new object an id (meaning u have it in the backend, but in the frontend you are giving an id to tell it how to construct url and fetch it) etc.
http://documentcloud.github.com/backbone/#Model-urlRoot

Thanks, but I know Backbone quite well ;). I'm just trying to clarify how the behavior for url should be in relation to the model's id attribute and Tastypie's resource_uri. So if the following sounds okay, this should be pretty trivial to fix:

Normally (when requesting data from the server), the current behavior (constructing a url from the resource_uri) is fine;
however, there are cases where you do have an actual, existing (hopefully ;) id attribute but the model doesn't contain a resource_uri;
in these cases, it'd be nice if the url function could just use the id attribute (so, use model.get('id') as opposed to model.id) and attach it to the urlRoot.

thats correct. Thanks Paul!

This doesn't appear to fix the problem. When .url() is called now it just returns the id of the model instead of the full url. What if the override was something like:
Backbone.Model.prototype.url = function() {
  // If there's no idAttribute, use the 'urlRoot'. Fallback to try to have the collection construct a url.
  // Explicitly add the 'id' attribute if the model has one.
  if (!this.id) {
    url = this.urlRoot;
    url = url || this.collection && (_.isFunction(this.collection.url)? this.collection.url(): this.collection.url);

    if (url && this.has('id')) {
      url = addSlash(url) + this.get('id');
    }
    url = url && addSlash(url);
    return url || null;
  }
  else {
    var base = getUrl(this.collection) || this.urlRoot || urlError();
    if (this.isNew()) return base;
    return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + encodeURIComponent(this.id);
  }
};

I don't see how it wouldn't work, as long as you a) set the urlRoot to the proper value, and b) leave idAttribute pointing to resource_uri (as it should be for tastypie?).
(btw, both 'getUrlandurlError` are functions in Backbone's local scope, as far as I know)

Have you tested it yourself?

Well, yes?
	test("Model url", function() {
		var person = new Person();
		equal( person.url(), null );

		// If the model doesn't have an 'urlRoot' and no value for it's 'idAttribute', the collection's
		// 'urlRoot' is be used as a fallback ( a POST there creates a resource).
		var coll = new Backbone.Collection();
		coll.urlRoot = '/persons';
		person.collection = coll;
		equal( person.url(), '/persons/' );

		// If present, the model's urlRoot is used as a fallback.
		person.urlRoot = '/person';
		equal( person.url(), '/person/' );

		// The value of the explicit 'id' attribute is added to the 'urlRoot' when available
		person.set( 'id', 2 );
		equal( person.url(), '/person/2/' );

		// If the idAttribute is set, it's used as the uri verbatim.
		person.set( { resource_uri: '/person/1/' } );
		equal( person.url(), '/person/1/' );
	});

Could you check if these tests pass for you? If they do and you have a scenario in which does fail, please share the testcase.


LoadLibrary failed with error 126 "" when trying to load "G:\Comfy3D\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll"

Queuing the prompt causes the following error at the Unique3DRun - MVPrediction node:
2024-10-04 21:39:27.4745230 [E:onnxruntime:Default, provider_bridge_ort.cc:1978 onnxruntime::TryGetProviderInfo_TensorRT] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1637 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "G:\Comfy3D\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll"
ComfyUI shuts down at this point.

meet the same question


⚠ Node - jp-05fd29e8.yalaso.top has degraded performance

In cd15e63, Node - jp-05fd29e8.yalaso.top (http://jp-05fd29e8.yalaso.top/api/v1/ping) experienced degraded performance:

HTTP code: 200
Response time: 2318 ms

Resolved: Node - jp-05fd29e8.yalaso.top performance has improved in f768e3f after 25 minutes.


Add eslint rule that enforces absolute (@src/...) import from other modules (src/module)

Main motivation was to have nicer import paths for crud generator code
It should avoid import xxx from "../common/xxx"; and change it to @src/common/xxx
For other examples see packages/eslint-plugin/src/rules/no-other-module-relative-import.test.ts
very basic definition of "module" (a concept that doesn't really exist):

src/modulea
src/moduleb

sub-modules or nested modules are not supported by this.

Could we implement this rule in a way that always the "shortest" import path is chosen?

I don't think the point is beeing short, it's more about module boundaries.
But if the result is the same...
Theoretical example where this breaks: in @src/a/b/c/A1
an import ../../../X is longer than @src/a/X

@nsams should we add this rule in main and enforce it in next?

yes, why not. Although I doubt anyone will activate it in the project

yes, why not. Although I doubt anyone will activate it in the project

We'll communicate it to the team. It may help them making the next major upgrade less painful. If they decide to not enable it now, it is not our concern 🤷🏼♂


Update the acceptance test for eth_gasPrice

Problem
The current released version of mirror-node(0.57.2) does not include the endpoint for retrieving gas fees /network/fees, so the acceptance test is temporary disabled.
Solution
Enable the acceptance test for eth_gasPrice once a new version of mirror-node is released and the endpoint /network/fees exists.
Alternatives
No response

Yes, we're waiting on a 0.58.0-rc1, which should be out today to unblock this.
Notably the test case exists but it uses the cached value so this is more an "Update" than an "Add"

Addressed for #211


Deockerize blockprint-collective setup

Motivation
In order to make the setup easier to deploy, we aim to have a docker-compose with all the needed services and configurations.
Description
We have inserted into the dockerized setup:

BlockPrint
BlockPrint-background
BlockDreamer
Caddy

My bad, didnt want to merge into your repository


Win32 issues on Centos

Hi,
I have installed this using the source on the CentOs.
I am getting this error  -
File "/usr/lib/python2.4/site-packages/trimage/trimage.py", line 262
exe = ".exe" if (sys.platform == "win32") else ""
^
Can you tell me, what i am doing wrong. Or i have not installed this properly ?
Your help will be highly appreciated.
Regards

Hi Rahijain, we don't support python 2.4, but require 2.6+


images are not loading

images are not loading

Hey, @Rajdip019 can you please assign this issue to me?

Hey, @Rajdip019  I have solved this issue and also gave the functionality to search please allow me to merge my code


Stocks: 'Remote end closed connection without response'

Summary (include Python version)
'Remote end closed connection without response'
from iexfinance import Stock
symbols = pd.read_csv(file_string, header=0, names=['Ticker','Company','Sector','Industry','Country','Market Cap'] )
symbols = pd.DataFrame(symbols)
length = len(symbols)
i = 0
while i < length:
pullSymbol = symbols['Ticker'][i]
quote = Stock(pullSymbol)
OHLC = quote.get_ohlc()
Open = quote.get_open()
High = OHLC['high']
Low = OHLC['low']
Close = quote.get_close()
Volume = quote.get_volume()
i += 1
Date/time of issue
Occurs randomly most times I run the above code. Sometimes after 50 loops, sometimes only after 3.
Expected behavior
I would expect the connection not to close unexpectedly.
I am not using an HTTP proxy.
Actual behavior
Traceback (most recent call last):
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
chunked=chunked)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1321, in getresponse
response.begin()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 296, in begin
version, status, reason = self._read_status()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 265, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 445, in send
timeout=timeout
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\util\retry.py", line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\packages\six.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
chunked=chunked)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1321, in getresponse
response.begin()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 296, in begin
version, status, reason = self._read_status()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 265, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ktru\OneDrive\Documents\HutchViz\RSI_Discipline\CollectStockData_from_IEX_and_Append.py", line 95, in
Close = quote.get_close()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\iexfinance\stock.py", line 106, in format_wrapper
data = func(self, *args, **kwargs)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\iexfinance\stock.py", line 621, in get_close
return self.get_quote(filter="close")
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\iexfinance\stock.py", line 30, in _format_wrapper
response = func(self, *args, **kwargs)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\iexfinance\stock.py", line 538, in get_quote
data = self._get_endpoint("quote", kwargs)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\iexfinance\stock.py", line 203, in _get_endpoint
data = self.fetch()
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\iexfinance\base.py", line 134, in fetch
return self._execute_iex_query(url)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\iexfinance\base.py", line 106, in _execute_iex_query
response = self.session.get(url=url, params=self.params)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 525, in get
return self.request('GET', url, **kwargs)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "C:\Users\ktru\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 495, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

The connection drop seemed to be happening with get_open() and get_close().
So I stopped using those and replaced the above affected lines with:
High = OHLC['high']
Low = OHLC['low']
And now it all seems to be working fine.

typo above.
did not replace or change anything for high or low, only open and close with this:
Open = OHLC['open']['price']
Close = OHLC['close']['price']


Feature request: website link on outside screens

We've quite often seen teams photographing the outside screens. The information they're looking to capture is available in a more convenient format at their pits, and live, on the website.
We should consider putting a website URL at the bottom of the outside screens that they can read.

Could do. I didn't know whether we could rely on the screen resolution, but if so it would be a good addition.


[OAP-CACHE][POAE7-660]preferLocation low hit rate fix

What changes were proposed in this pull request?
preferlocation low hit rate
How was this patch tested?
E2E

@jikunshang @winningsix Please take a review, thanks.

LGTM.

#1955

@haojinIntel  This is fix for #1955, I have cherry-pick to branch-1.0. Please verify this in nightly build at your convenience, thanks!


Make Advanced Rocketry compatible with Matter Overdrive dilithium

This should be extremely easy to do.
The dilithium crystals from AR should have gemDilithium in the oredict, and AR machines should also be able to accept things with gemDilithium as their oredict.

Renamed crystalDilithium -> gemDilithium in b02dac9e49abd79fccf2d08a7edfde970e16018e


How to invoke the original method implementation in case of non-static methods?

I want to hook this method, but only for url and method. It keeps throwing an error and duplicate. How can I fix it?
// UnityEngine.UnityWebRequestModule, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
// UnityEngine.Networking.UnityWebRequest
using System;
using System.Runtime.CompilerServices;
using Il2CppDummyDll;

[Token(Token = "0x6000027")]
[Address(RVA = "0x62EA098", Offset = "0x62EA098", VA = "0xC41D4098")]
public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
{
}

My Hooking Code:
import "frida-il2cpp-bridge";

Il2Cpp.perform(() => {
    console.log("Script Load!");
    const UnityWebRequest = Il2Cpp.domain.assembly("UnityEngine.UnityWebRequestModule").image.class("UnityEngine.Networking.UnityWebRequest");
    // Hook the constructor
    const UnityWebRequestB = UnityWebRequest.method(".ctor", 4);

    UnityWebRequestB.implementation = function(url, method, downloadHandler, uploadHandler) {
        const result = UnityWebRequestB.invoke(url, method, downloadHandler, uploadHandler);
        console.log(`[UnityWebRequestB] URL: ${url}, Method: ${method}`);
        return result;
    };

});

Error Message i got after loading script

Script Load!
il2cpp: cannot invoke non-static method .ctor as it must be invoked throught a Il2Cpp.Object,
not a Il2Cpp.Class
    at invoke (/node_modules/frida-il2cpp-bridge/dist/index.js:2608)
    at <anonymous> (HookBundle.ts:10)
    at call (native)
    at <anonymous> (/node_modules/frida-il2cpp-bridge/dist/index.js:2731)
il2cpp: cannot invoke non-static method .ctor as it must be invoked throught a Il2Cpp.Object,
not a Il2Cpp.Class
    at invoke (/node_modules/frida-il2cpp-bridge/dist/index.js:2608)
    at <anonymous> (HookBundle.ts:10)
    at call (native)
    at <anonymous> (/node_modules/frida-il2cpp-bridge/dist/index.js:2731)
...

How did you come out with invokeConstructor? Il2Cpp.Object and Il2Cpp.Class have no such method

Apologies, it seems the code/method above I sent was copied incorrectly and incomplete. So I edit the post. The code above was copied from other method. I only changed the name and pasted it again. It work with below method.
I thought the methods were similar, so the approach would be the same. But that is not the case.
// CommonLibs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
// FileModule.LMN.FileUtil
using Il2CppDummyDll;

[Token(Token = "0x601A4CF")]
[Address(RVA = "0x2B52F64", Offset = "0x2B52F64", VA = "0xC0A3CF64")]
[Attribute(Name = "IDTagAttribute", RVA = "0xC8BCA0", Offset = "0xC8BCA0")]
public static byte[] ReadAllBytesByPath(PathType inPathType, string inPath, bool inUseHashIfShould, bool tryGetFromStreammingAssetsPath)
{
	return null;
}

Code
const FileUtil = Il2Cpp.domain.assembly("CommonLibs").image.class("FileModule.LMN.FileUtil");

    const ReadAllBytesByPathB = FileUtil.method("ReadAllBytesByPath", 4);
    ReadAllBytesByPathB.implementation = function(pathType, inPath, useHash, tryStream) {
        const result = ReadAllBytesByPathB.invoke(pathType, inPath, useHash, tryStream);
        console.log(`[ReadAllBytesByPathB] Type: ${pathType}, Path: ${inPath}\nuseHash: ${useHash} `);
        return result;
    };

FileUtil::ReadAllBytesByPath is static, whereas UnityWebRequest::.ctor is not. Whithin your implementation, this  is a Il2Cpp.Class if the method is static, or Il2Cpp.Object if it isn't.
Here you are invoking an instance method, but you are not providing the instance:
const result = UnityWebRequestB.invoke(url, method, downloadHandler, uploadHandler);

So, this is how you should do it:
const result = this.method(".ctor", 4).invoke(url, method, downloadHandler, uploadHandler);

And it works for static methods as well:
const result = this.method("ReadAllBytesByPath", 4).invoke(pathType, inPath, useHash, tryStream);

Ah, I understand. I didn’t notice that UnityWebRequest doesn’t have a static method.
And it really works. Thank you for taking the time to help me.


We are pleased to announce the release of .NET 9 Preview 2.

We are pleased to announce the release of .NET 9 Preview 2.
This release contains the following Runtime & SDK improvements:

RyuJIT enhancements
Arm64 vectorization
Parallel Testing & Terminal Logger Test Display

For details on these new features and more see the Runtime Release Notes and SDK Release Notes
You can find detailed release notes for additional features in .NET 9 Preview 2 below:

.NET Data & EF Core
.NET MAUI
ASP.NET Core

Get started
To get started with .NET 9, install the .NET 9 SDK.
If you're on Windows using Visual Studio, we recommend installing the latest Visual Studio 2022 preview, or get started with Visual Studio Code and the C# Dev Kit extension.
You can find .NET 9 Preview 2 Installer & Binaries on GitHub.
Team Announcements & Discussions
Discuss this release with the product teams on GitHub through the announcements for this release.

.NET MAUI
ASP.NET Core
Libraries & Runtime
Source-build

Stay up-to-date with .NET 9
You can stay up-to-date with all the features of .NET 9 with:

What's new in .NET 9
Breaking Changes in .NET 9
.NET 9 Releases

For .NET 9 previews we are utilizing GitHub Discussions to make announcements. For more information read our discussion.
Originally posted by @JonDouglas in https://github.com/dotnet/core/discussions/9217

juntylpromicrochip

https://github.com/dotnet/core/discussions/9217


This integration is not working...

The SP110E is working fine with the LED Hue app on my phone.
This error originated from a custom integration.

Logger: homeassistant.helpers.entity
Source: custom_components/sp110e/light.py:217
Integration: sp110e (documentation, issues)
First occurred: 8:36:19 PM (1 occurrences)
Last logged: 8:36:19 PM

Update for light.sp110e fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/sp110e/controller.py", line 208, in _connect_with_retries
    await self._driver.connect(self._mac, timeout=self._timeout)
  File "/usr/local/lib/python3.10/site-packages/sp110e/driver.py", line 42, in connect
    device = await BleakScanner.find_device_by_address(mac_address, timeout=timeout)
AttributeError: type object 'HaBleakScannerWrapper' has no attribute 'find_device_by_address'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 548, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_device_update
    raise exc
  File "/config/custom_components/sp110e/light.py", line 220, in async_update
    self._handle_exception(exception)
  File "/config/custom_components/sp110e/light.py", line 246, in _handle_exception
    raise exception
  File "/config/custom_components/sp110e/light.py", line 217, in async_update
    await self._device.update()
  File "/usr/local/lib/python3.10/site-packages/sp110e/controller.py", line 60, in update
    await self._connect_with_retries()
  File "/usr/local/lib/python3.10/site-packages/sp110e/controller.py", line 211, in _connect_with_retries
    raise Exception
Exception

  - platform: sp110e
    mac: 37:73:03:2a:37:82 # Replace with your MAC address (required)
    name: SP110E
    sequence: BRG
    pixels: 10
    strict: true

  "data": {
    "manager": {
      "adapters": {
        "hci0": {
          "address": "00:1A:7D:DA:71:07",
          "sw_version": "homeassistant",
          "hw_version": "usb:v1D6Bp0246d053F",
          "passive_scan": true,
          "manufacturer": "cyber-blue(HK)Ltd",
          "product": "CSR8510 A10",
          "vendor_id": "0a12",
          "product_id": "0001"
        }
      },

Started using Universal Light Controller from hass. With this integration it works like it should

Started using Universal Light Controller from hass. With this integration it works like it should

Thanks for the heads up!  It works great!

For me only Universal Light Controller v2 (beta) works.

Came here to log this error - I get the same thing. HA updated Bluez version recently, apparently there are changes to the function calls.


Vjg html

Did basic HTML framing (meta data, header/footer etc)
created a modal class
created a wrapper container for our sections then created a section for the quote (did not do one for the img yet).
created a generate button

beautiful


implement blocklist_filter to sv_detect_variant for Germline WGS

Feiyu -

I have already had the filter_vcf_blocklist_bedpe.cwl working as tool cwl and my version of germline_wgs_cle_analysis
pipeline cwl. But I want to tweak it into sv_detect_variant as optional so both cle and non-cle user can use

The PR is merged. Resolve this issue.


Change wrong argumenttype pageCompleted(page_nr)

When trying to get the completion status of a Scorm2004 3rd edition
package in Moodle and in 360Learning I noticed that the packages
never completed.
When debugging the JavaScript code I noticed an inconsistency between
the function call 'state.pageCompleted(page_nr)' and the function
definition 'function pageCompleted(sit)'.
The problem seems to have arisen on July 21 2017. When aligning
the names of the variables, the argument of state.pageCompleted()
was changed from 'sit' to 'page_nr'. I think this might be the reason
that my Scorm modules in Moodle and 360Learning had a 'not completed'
status.

@Jef-DS Incredible that this slipped through... for so long.
Thank you for your fix. I checked the other tracking mechanisms, and the mistake is only on the Scorm 2004 code.

@Jef-DS I'll release this in master as well.


re-meter/re-rate usage

In a scenario where a service is already metered/accumulated/aggregated and rated, we would want to re do the pipeline for a subset of the usage such as (by org/service/service-instance /month etc)
It would be needed in cases such as when there was a defect in the getting the price or if a resource provider is onboarding a resource and will have to change definition.

A scenario would be, after submitting the usage, in the account service plugin, we identified the account and the currency from the account object and rated to that currency. And later(most likely outside of the slack window), it was found that the currency code on the account was incorrect and fixed and now we would like to fix the rated usage as well for that account.

Once your usage has been rated (even with an incorrect currency), and has appeared in usage reports (which can be obtained in real time), or has appeared on a bill sent to a customer, I think the simplest and cleanest way to compensate for the erroneous rating would be to submit  compensating instances of that usage (maybe even with negative numbers to offset an overcharge for example), or even simpler, submit a 'correction' usage doc containing a metric carrying the charge adjustment.
Would that work?

No more comments on this one in the last 10 days, so I'm going to assume that everybody is happy with what I suggested in my last comment. Please reopen if more discussion is needed. Thanks.


how to convert mp4 to hls (m3u8) ?

I'm a newer ffmpeg user .
I want to know how can I convert mp4 to hls (m3u8) . Is there an interface?
thanks a lot.

This is unrelated to our project, sorry


Release 1.0.0

Types of Changes
Prerequisites
Please make sure you can check the following two boxes:

[x] I have read the CONTRIBUTING document
[x] My code follows the code style of this project

Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[x] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[x] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[x] Breaking change (fix or feature that would cause existing functionality to change)
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[x] I have added tests to cover my changes
[x] All new and existing tests passed

Description
To celebrate the 10 year anniversary of AngleSharp we are now releasing the long awaited 1.0.0 🎉 !
This contains some hot fixes and a couple new enhancements.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.5 out of 6 committers have signed the CLA.:white_check_mark: jodydonetti:white_check_mark: FlorianRappl:white_check_mark: driekus77:white_check_mark: MartinWelsch:white_check_mark: patrikwlund:x: Henry RoelandHenry Roeland seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


typo: fix typo

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
typo: fix typo
Which issue(s) this PR fixes:

Fixes #none
Special notes for your reviewer:
typo: fix typo
Does this PR introduce a user-facing change?

cc @daimaxiaxie

/lgtm


Rename “remove” to “hide” in all features

To be more consistent across features, we should probably choose one of these similar verbs. I think “hide” is more correct. In many cases we should also stop using .remove() and use .hidden = true instead, unless the CSS order matters.
Related: #4509

I think the same could be said of "quick" vs "fast"/"faster".

I think the same could be said of "quick" vs "fast"/"faster".

Proposal: ✨🐢🚀✨

Proposals welcome. I’m not sure it quick/faster can be replaced as easily


Doubts in recurrent.py LSTM model

I was looking through recurrent.py as I wanted to implement a custom RNN node.
I don't understand what are B_U and B_W in the step function for LSTM. What are the these variables doing and where are they initialised?
The new state that we passing out from the step function ([h, c]) contains only 2 elements so technically states[2] and states[3] should not exist.
Also why do we need to multiply the input with B_W here
Any clarification would be immensely helpful.

These are dropout matrices, used when you are using the dropout arguments
in recurrent layers.
On 17 April 2016 at 06:06, Shantanu Kumar<EMAIL_ADDRESS>wrote:

I was looking through recurrent.py
https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py
as I wanted to implement a custom RNN node.
I don't understand what are B_U
https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py#L743
and B_W
https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py#L744
in the step function for LSTM. What are the these variables doing and where
are they initialised?
The new state
https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py#L763
that we passing out from the step function ([h, c]) contains only 2
elements so technically states[2] and states[3] should not exist.
Also why do we need to multiply the input with B_W here
https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py#L752
Any clarification would be immensely helpful.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/2368

Saw that.


Failed to get package when run Iris-desktop with single image as input.

I'm trying to run the Iris desktop solution with single image as input: iris_depth_from_image_desktop
The input image I used is a grayscale image lena.jpg

It failed to run the graph. And it also said 'Failed to get packet from output stream 'output_image'.
The log information is:
I20201025 19:24:12.142110 175115712 iris_depth_from_image_desktop.cc:136] Initialize the calculator graph.
I20201025 19:24:12.150590 175115712 iris_depth_from_image_desktop.cc:59] Load the image.
I20201025 19:24:12.152050 175115712 iris_depth_from_image_desktop.cc:63] Start running the calculator graph.
E20201025 19:24:12.155272 175115712 iris_depth_from_image_desktop.cc:156] Failed to run the graph: Failed to get packet from output stream 'output_image'.

The command I used to run the solution is:
GLOG_logtostderr=1 ./bazel-bin/mediapipe/examples/desktop/iris_tracking/iris_depth_from_image_desktop \
  --input_image_path=./mediapipe/calculators/image/testdata/lena.jpg \
  --output_image_path=./output_images/lena.jpg

I also tried with different input images (RGB, with and without human faces), the outputs were the same.
So does anyone have a similar problem or what can I provide to further locate the problem?

Hi,
In general, one way to debug graph errors is to enable verbose logging, via adding   _GLOG_v=2_   (in addition to, and in the same way as, GLOG_logtostderr=1).
Try:
GLOG_v=2 GLOG_logtostderr=1 ./bazel-bin/mediapipe/examples/desktop/iris_tracking/iris_depth_from_image_desktop \
  --input_image_path=./mediapipe/calculators/image/testdata/lena.jpg \
  --output_image_path=./output_images/lena.jpg

For your question,
Using the lena image you linked here, with verbose logging, I get:
I20201026 13:04:35.291677 239919104 calculator_graph.cc:936] RecordError called with INTERNAL: Calculator::Process() for node "ImageFilePropertiesCalculator" failed: Error parsing EXIF, code: 1983

Note, the all the depth from image demos do require valid exif data for focal length. So if you run
exftool lena.jpg and don't find any field about focal lengths, then it wont work.
I have a sample image from my phone, and this is what mediapipe expects
exiftool ~/Downloads/IMG_20200904_133311.jpg  | grep -i focal
Focal Length                    : 4.5 mm
Focal Length In 35mm Format     : 27 mm
Focal Length                    : 4.5 mm (35 mm equivalent: 27.0 mm)
Hyperfocal Distance             : 2.23 m

(not all those fields are required, but at least one of "Focal Lengh" or  "Focal Length In 35mm Format" should be there)
Hope that helps.

Thank you, problem solved. I succeed with the image taken form my phone.
Btw it seems that some pictures in the mediapipe/calculators/image/testdata/ don't have complete EXIF either.

Hi,
In general, one way to debug graph errors is to enable verbose logging, via adding _GLOG_v=2_ (in addition to, and in the same way as, GLOG_logtostderr=1).
Try:
GLOG_v=2 GLOG_logtostderr=1 ./bazel-bin/mediapipe/examples/desktop/iris_tracking/iris_depth_from_image_desktop \
  --input_image_path=./mediapipe/calculators/image/testdata/lena.jpg \
  --output_image_path=./output_images/lena.jpg

For your question,
Using the lena image you linked here, with verbose logging, I get:
I20201026 13:04:35.291677 239919104 calculator_graph.cc:936] RecordError called with INTERNAL: Calculator::Process() for node "ImageFilePropertiesCalculator" failed: Error parsing EXIF, code: 1983

Note, the all the depth from image demos do require valid exif data for focal length. So if you run
exftool lena.jpg and don't find any field about focal lengths, then it wont work.
I have a sample image from my phone, and this is what mediapipe expects
exiftool ~/Downloads/IMG_20200904_133311.jpg  | grep -i focal
Focal Length                    : 4.5 mm
Focal Length In 35mm Format     : 27 mm
Focal Length                    : 4.5 mm (35 mm equivalent: 27.0 mm)
Hyperfocal Distance             : 2.23 m

(not all those fields are required, but at least one of "Focal Lengh" or "Focal Length In 35mm Format" should be there)
Hope that helps.

Thank you, problem solved. I succeed with the image taken form my phone.
Btw it seems that some pictures in the mediapipe/calculators/image/testdata/ don't have complete EXIF either.

Great! Thanks for the feedback; I've noted this and we will address this to make the examples better

I also find this problem,just need the Focal Length In 35mm Format message of EXFI in the image

As we see the above issue resolved from the comments. We are closing it now.


Add named-containers as a core plugin

As discussed in https://github.com/progrium/dokku/issues/1483

@josegonzalez tests seem to work, the error was: Failed to destroy btrfs snapshot: operation not permitted. So not related to my plugin :grin:

@Flink that's a side effect of circleci's infrastructure and is not actually the cause of any test failure. Anyhow, looks like it's green now.

@michaelshobbs cool :)


Fix cspell from test-templates

fix https://github.com/Azure/azure-dev/issues/73

Repoman Generation Results
Repoman pushed changes to remotes for the following projects:
No changes detected.


issue #262: switch to opencsv to parse the server response in the com…

This PR addresses GitHub issue: #262
Briefly describe the changes proposed in this PR:

as suggested, I switched to use opencsv to parse the server response in the compliance test

Make sure you've followed the Contributor Guidelines. In particular (please tick to indicate you've taken care of it):

[x] RDF4J code formatting has been applied
[x] tests are included
[x] all tests succeed (in fact, I executed only the tests specific to this issue)

Thanks, looks good to me!

That looks great to me!


[CodeCompletion] Implement context type analysis at subscript position

This improves completion for index part of subscript expression.
rdar://problem/38920581

@swift-ci Please smoke test

Why does the subscript case do a qualified lookup while the function case doesn't?

As for free function case, overloaded candidates are usually preserved as OverloadSetRefExpr. As for method case, I'm implementing qualified lookup version too in https://github.com/apple/swift/pull/20013 .

Okay makes sense.  I commented in that PR that we should share the implementation.  Otherwise LGTM.

@swift-ci Please smoke test


Optimize layout computation

Right now the ReactApplicationRoot calls performShadowTreeLayout on every setProperty call. This is obviously overkill; in an ideal case we would run the shadow tree layout only once after the ReactRenderer update lifecycle has completed.
There are probably a couple ways to tackle this, but initially it looks like the renderer calls resetAfterCommit in the host config once it has finished committing updates to every affected child. I think we could defer the performShadowTreeLayout call to that hook...

Quick note here: the React Native host config does not rely on resetAfterCommit to perform the layout step; resetAfterCommit is a noop there.
With that in mind, perhaps a reliable solution here is to continue calling performShadowTreeLayout from within setProperty or addChild etc, but in the case of setProperty only run the layout if the changed property is one of a predefined set that we know affects layout (i.e. don't run it if all we've changed is background-color)

@nick-thompson, think it's fair to say we can close this which I shall do now. Reopen if you disagree.


Specific steps for Home --> Pro --> Enterprise

Hello, a work computer was recently purchased with Windows 10 Home. We have an office 365 e5 account, with Windows 10 Enterprise. Is there any way to activate Enterprise other than purchasing Pro first, then upgrading? Thanks

You will need to change the Windows 10 Home Product Key to a Windows 10 Pro key as your primary step to be able to activate an Enterprise license. The procedure should be reasonably easy to find as long as you have got a Windows 10 Professional Product Key to start off.

Got it, thanks


feat: 🎸 manual width prop

Codecov Report

Merging #56 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   96.63%   96.61%   -0.03%
==========================================
  Files          15       15
  Lines         119      118       -1
==========================================
- Hits          115      114       -1
  Misses          4        4

Impacted Files
Coverage Δ

src/Tree.js
83.33% <100%> (ø)
:arrow_up:

src/selectors/nodes.js
96.29% <100%> (-0.14%)
:arrow_down:

src/TreeContainer.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Coverage increased (+0.03%) to 94.886% when pulling 0a72eb99e346878d53e1374efa41a399ae7c2fca on width-prop into fa7af121cf01393d485b43c87d94d35c8687c1ce on master.

:tada: This PR is included in version 2.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add gzip compression

Subject says it all.

+1

+1

Out of the scope of this library,
gzip compression should be done when delivering the file.
It is activated by setting correct config values in .htaccess or nginx config.

I tend to agree... "something else" should really do the compression. This is much more of a general concern than specific to sitemaps.


Adds rvalue overloads for var matrices

Submission Checklist

[x] Run unit tests: ./runTests.py src/test/unit
[x] Run cpplint: make cpplint
[x] Declare copyright holder and open-source license: see below

Summary
This adds all the rvalue() overloads needed for var<matrix> and relaxes the templates on the current overloads that can handle var<matrix>
The only rvalue overloads needed are the for index_multi since we have to have a callback to propogate adjoints.
Intended Effect
Allow subsetting in Stan models when using var<matrix>
How to Verify
Manual tests have been added for all single index and all indices on the right hand side for matrices. Then a larger automated test is run that tests all pair combinations of indices.
Side Effects
Documentation
Docs added for each new overload and original docs for rvalue overloads updated for when they can accept either Eigen matrices or var<matrix> types
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Steve Bronder
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

@SteveBronder cmdstan Windows Rtools 3.5 test is failing after this PR was merged. See https://github.com/stan-dev/cmdstan/runs/1591785707 and https://pipelines.actions.githubusercontent.com/IWD9CSoapEZ4VsVQhL3f8rgS1MWkcN50p1yldEctrAl8hmLKx1/_apis/pipelines/1/runs/286/signedlogcontent/3?urlExpires=2020-12-22T10%3A24%3A24.1063345Z&urlSigningMethod=HMACV1&urlSignature=u1xcmK7mG%2B9qOtorsydy4sWoOcopJ2cvK9duGu7NorU%3D
--- Translating Stan model to C++ code ---
bin/stanc.exe  --o=examples/bernoulli/bernoulli.hpp examples/bernoulli/bernoulli.stan

--- Compiling, linking C++ code ---
g++ -std=c++1y -m64 -D_REENTRANT -Wall -Wno-unused-function -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable -Wno-sign-compare -Wno-unused-local-typedefs -Wno-int-in-bool-context -Wno-attributes -Wno-ignored-attributes      -I stan/lib/stan_math/lib/tbb_2019_U8/include   -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.72.0 -I stan/lib/stan_math/lib/sundials_5.5.0/include  -D_USE_MATH_DEFINES  -DBOOST_DISABLE_ASSERTS         -c  -x c++ -o examples/bernoulli/bernoulli.o examples/bernoulli/bernoulli.hpp
In file included from stan/src/stan/model/indexing/lvalue.hpp:8:0,
                 from stan/src/stan/model/indexing.hpp:7,
                 from stan/src/stan/model/model_header.hpp:15,
                 from examples/bernoulli/bernoulli.hpp:3:
stan/src/stan/model/indexing/rvalue_at.hpp: In function 'constexpr int stan::model::rvalue_at(int, const stan::model::index_min_max&)':
stan/src/stan/model/indexing/rvalue_at.hpp:75:1: error: body of constexpr function 'constexpr int stan::model::rvalue_at(int, const stan::model::index_min_max&)' not a return-statement
 }
 ^

The error message is not very helpful unfortunately.
This is not super urgent as develop tests will not fail due to this, but would still be great to address soon.

Oh yes I know how to fix this I'll put up a PR right now. I think it's because windows does not have full C++14 support so it's failing when trying to eval this

@rok-cesnovar just put this up, will fix the above
https://github.com/stan-dev/stan/pull/2993


Longtail option deprecated

link-initialize.js:26 Warning: The Plaid Link option "longtail" is deprecated
That option is nowhere to be found in the current Plaid Link documentation, but react-plaid-link adds the prop with a false value currently.

D'oh! Solved a few hours ago by #8


Chars popup blocks text

The chars counter popup blocks the bottom line of the "secret content goes here field" and this is preventing me from editing a portion of the last line of the secret:

Yeah that's annoying. Until I can get a fix out, if you click outside the text box anywhere it will disappear temporarily.

This is fixed in v0.17.2 and live on onetimesecret.com.
I went ahead and removed it for now. It may come back later in a different form. Obviously one that doesn't block the text area : ]

Thank you!


update to ruby 2 and rails 4

#165 #161
Original pull request by @bmesuere on Sat Nov 30 2013 at 16:36.
Merged by @bmesuere on Sat Apr 26 2014 at 15:25.

http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html
Original comment by @bmesuere on Sat Nov 30 2013 at 17:20.


fix(comp:table): default selectable column shouldn't show ellipsis

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines
[x] Tests for the changes have been added/updated or not needed
[x] Docs and demo have been added/updated or not needed

What is the current behavior?
表格配置 ellipsis 后，selectable 列显示省略号
What is the new behavior?
增加默认selectable列宽度，避免默认selectable列显示省略号
Other information

dup #1245


Update teach_classificationbox.py

Added model num variable, and added into Teach_URL

HI @mkotlarz did the classificationbox API change, hence this PR?

According to my classificationbox....
I haven’t seen it anywhere else.
Michael Kotlarz

On Apr 3, 2019, at 2:01 AM, Robin<EMAIL_ADDRESS>wrote:
HI @mkotlarz did the classificationbox API change, hence this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Issue after upgrading to React 15

After upgrading to React 15, I started getting the following error with enzyme.
ERROR in ./~/enzyme/build/react-compat.js
Module not found: Error: Cannot resolve module 'react/addons' in /projects/test/node_modules/enzyme/build
 @ ./~/enzyme/build/react-compat.js 37:16-39

Testing using 77e6bdc17ad52aefd9ccdc82d4197bd0709c95aa and I do no longer have the issue… Patiently waiting for new publish :smile:

hmm - that's only ran in the REACT013 code path - that commit shouldn't make a difference. On which SHA can you reproduce the issue?

Well then I wonder if pulling from git and telling it to build myself resolved it. I had the issue using 2.2.0, then I switched it from 2.2.0 to the latest commit, cd'd into the directory npm install then rand npm run build myself and things worked. I'll try that with 2.2.0, now I'm not sure if it is the version or some weird npm thing

Pulling from the v2.2.0 tag directly, npm install && npm run build in that folder also works. Let me try 2.2.0 again via npm instead of github

Going back to the npm install enzyme version and the problem is back.

after installing enzyme 2.2.0 I get the error again but if I cd into node_modules/enzyme and run npm install && npm run build then it resolves it. I'll see if rolling back to an older version resolves it, I'm starting to think this has less to do with the latest version of React but actually from updating enzyme

Rolled my react version to 0.14.8 and it works again.
The issue is only happening when using React version 15.0.0
It is resolved if I cd into node_modules/enzyme and run npm install && npm run build. Maybe there is a flag in the publish script causing an issue?

after upgrading React, can you run npm install enzyme in your project dir?

When I do that, the error message comes back. Only resolved if I manually cd into the folder and build it myself

that's very strange. which version of enzyme?

2.2.0 and I also tried 2.0.0

not a problem if I'm using 0.14.8

I'm seeing the same issue, also upgrading from react 0.14.8
package.json looks like this:
{
  "dependencies": {
    "classnames": "^2.2.1",
    "history": "^1.17.0",
    "lodash": "^4.6.1",
    "react": "^15.0",
    "react-addons-create-fragment": "^15",
    "react-addons-css-transition-group": "^15",
    "react-addons-linked-state-mixin": "^15",
    "react-addons-pure-render-mixin": "^15",
    "react-dnd": "^2.1.0",
    "react-dnd-html5-backend": "^2.1.2",
    "react-dom": "^15.0",
    "react-mixin": "^3.0.0",
    "react-redux": "^4.0.6",
    "react-router": "^2.0.0-rc5",
    "react-transform-catch-errors": "^1.0.0",
    "react-transform-hmr": "^1.0.2",
    "redbox-react": "^1.2.0",
    "redux": "^3.3.1",
    "redux-simple-router": "^2.0.3",
    "redux-thunk": "^1.0.3"
  },
  "devDependencies": {
    "babel-core": "^6.7.2",
    "babel-loader": "^6.2.4",
    "babel-preset-es2015": "^6.6.0",
    "babel-preset-meteor": "^6.6.7",
    "babel-preset-react": "^6.5.0",
    "babel-root-slash-import": "^1.0.0",
    "cheerio": "^0.20.0",
    "enzyme": "^2.2.0",  // <-- same problem with 2.1 or 2.2
    "immutable": "^3.7.6",
    "jasmine": "^2.4.1",
    "jasmine-core": "^2.4.1",
    "karma": "^0.13.22",
    "karma-chrome-launcher": "^0.2.2",
    "karma-firefox-launcher": "^0.1.7",
    "karma-jasmine": "^0.3.7",
    "karma-mocha-reporter": "^2.0.0",
    "karma-requirejs": "^0.2.5",
    "karma-sourcemap-loader": "^0.3.7",
    "karma-webpack": "^1.7.0",
    "react-addons-test-utils": "^15.0.0",
    "webpack": "^1.12.14"
  }
}

My tests still run fine.

It turns out, running npm install from within the node_modules/enzyme folder is enough to resolve the issue. I'm guessing that means React 15 doesn't include something that 0.14.8 does as a dependency

Ok, doing that now... ... ... man this is taking a while... ... did that progress bar just go backwards?!
Yes, confirmed, thanks for the workaround @toddw!

So it turns out that enzyme has devDependencies for enzyme-example-karma, enzyme-example-karma-webpack and enzyme-example-jest (maybe others). They end up including React 0.14.8, which is why I believe running npm install from inside node_modules/enzyme seems to work. When you do that, enzyme is able to locate react/addons. Same with when you run with 0.14.8 on the main project. So it seems React 15 doesn't seem to include react/addons.
I hope this helps narrow it down

https://github.com/airbnb/enzyme/blob/master/src/react-compat.js#L16
if (REACT013) {
  renderToStaticMarkup = React.renderToStaticMarkup;
  /* eslint-disable react/no-deprecated */
  findDOMNode = React.findDOMNode;
  unmountComponentAtNode = React.unmountComponentAtNode;
  /* eslint-enable react/no-deprecated */
  TestUtils = require('react/addons').addons.TestUtils; <-- ERROR
  const ReactContext = require('react/lib/ReactContext');

enzyme uses if (REACT13), it works well in Node.js.
But when using webpack (e.g. karma + webpack) to compile the source code, webpack will still try to fetch react/addons and throw an error.

ok so it sounds like there's a couple issues, one is that the examples need to have their react versions updated (i'll do this tonight), but the other is a webpack issue.

I'm working on a isomorphic web application and using mocha on server side, karma + webpack + mocha in a browser environment.
Actually, there is no problem with mocha + node.js. Error only occurs on karma + webpack + mocha.
@toddw  Are you using webpack?

@toddw @ljharb
solved!
Just add the following lines to the external in webpack configuration:
/* webpack.config.js */
// ...
externals: {
  'cheerio': 'window',
  'react/addons': true, // important!!
  'react/lib/ExecutionEnvironment': true,
  'react/lib/ReactContext': true
}
// ...

see https://github.com/airbnb/enzyme/blob/master/docs/guides/webpack.md

@toddw can you confirm if this fixes your webpack issue?

@kouhin
Confirmed! Thank you very much!

Just wondering why cheerio is "window" and others true?

@kouhin @toddw @ljharb What if you don't use webpack but SystemJS ? I am having the same issue but don't know how to apply the workaround for SystemJS

@micaelmbagira I got it working with jspm / SystemJS by doing this:
jspm install npm:enzyme --dev -o "{map: {'react/lib/ReactContext': '@empty', 'react/addons': '@empty', 'react/lib/ExecutionEnvironment': '@empty'}}"

@kouhin's fix worked for me, except that I had to add 'react/addons': true, to my karma.config.js. Adding it to webpack.config.js did not work for me.

this really helps me with similar issue.

Adding
externals: {
'cheerio': 'window',
'react/addons': true, // important!!
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true
}
to the webpack.config in my project has no effect on ENZYME being unable to find it, this message doesn't indicate anything wrong with my configuration, seems like an ENZYME defect?
Module not found: Error: Cannot resolve module 'react/addons' in /Users/owencorpening/experiments/testBed/node_modules/enzyme/build

@owencorpening most people are confirming things are working in this closed thread. If you are still having an issue, mind opening a new issue fully explaining what's going on?

I'm having the same issue on a Meteor app:
$ meteor test --once --driver-package dispatch:mocha-phantomjs --port 5100

[[[[[ Tests ]]]]]

=> Started proxy.
=> Started MongoDB.

Unable to resolve some modules:

  "react/addons" in
/Users/jcursi/Sites/joncursi/redbird-web/node_modules/enzyme/build/react-compat.js
(web.browser)
  "react/lib/ReactContext" in
/Users/jcursi/Sites/joncursi/redbird-web/node_modules/enzyme/build/react-compat.js
(web.browser)
  "react/lib/ExecutionEnvironment" in
/Users/jcursi/Sites/joncursi/redbird-web/node_modules/enzyme/build/react-compat.js
(web.browser)

If you notice problems related to these missing modules, consider running:

  meteor npm install --save react

Meteor does not use webpack, it has its own build system. Any ideas on how to resolve this for Meteor users?

Same problem here:
Joaos-MacBook-Pro:admin-dash jpsantos$ meteor test --driver-package practicalmeteor:mocha
[[[[[ Tests ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Meteor <IP_ADDRESS> is available. Update this project with 'meteor update'.
Unable to resolve some modules:
"react/addons" in /Users/jpsantos/Development/civic/admin-dash/node_modules/enzyme/build/react-compat.js (web.browser)
"react/lib/ReactContext" in /Users/jpsantos/Development/civic/admin-dash/node_modules/enzyme/build/react-compat.js (web.browser)
"react/lib/ExecutionEnvironment" in /Users/jpsantos/Development/civic/admin-dash/node_modules/enzyme/build/react-compat.js (web.browser)
If you notice problems related to these missing modules, consider running:
meteor npm install --save react
=> Started your app.
My Package:
"dependencies": {
"classnames": "^2.2.5",
"history": "^2.1.2",
"meteor-node-stubs": "~0.2.0",
"react": "^15.3.0",
"react-addons-transition-group": "^15.3.0",
"react-addons-linked-state-mixin": "^15.3.0",
"react-addons-create-fragment": "^15.3.0",
"react-addons-update": "^15.3.0",
"react-addons-perf": "^15.3.0",
"react-addons-css-transition-group": "^15.3.0",
"react-addons-pure-render-mixin": "^15.3.0",
"react-addons-test-utils": "^15.3.0",
"react-dom": "^15.3.0",
"react-mixin": "^3.0.5",
"react-router": "^2.6.1"
},
"devDependencies": {
"autoprefixer": "^6.3.1",
"enzyme": "^2.4.1"
}

any word on how to fix this for Meteor builds?

I opted to uninstall practical meteor's mocha package and install mocha directly from npm, tests run faster and without errors

thanks @joncursi
if using the npm package, what command do you use to run the tests instead of
meteor test --once --driver-package dispatch:mocha-phantomjs

@dgroch depends on your setup, but a basic example would be:
mocha --compilers js:babel-register --recursive imports/**/*.tests.js

This will look for all *.tests.js* files within the imports/` directory, which is where I have my tests located, but your use case is probably a little bit different.
Note that in order for Mocha to run your tests, it needs to first transpile your code from ES6/7 down to normal ES5, which is something the practicalmeteor:mocha package historically has abstracted for you behind the scenes. In order to get that to work, note the --compilers js:babel-register flag. This tells mocha to transpile using Babel before attempting to run the tests. You just need to install babel-register so mocha can find and use it:
npm install --save-dev babel-register

And add a .babelrc file to the root of your project (you probably already have this) so Babel knows which plugins and presets it should use when compiling. An example would be:
{
  "presets": [
    "es2015",
    "react",
    "stage-0"
  ],

  "plugins": [
    "transform-class-properties"
  ]
}

Thanks John :)
Get Outlook for iOS
On Thu, Aug 25, 2016 at 3:00 AM +1000, "Jon Cursi"<EMAIL_ADDRESS>wrote:
@dgroch depends on your setup, but a basic example would be:
mocha --compilers js:babel-register --recursive imports/**/*.tests.js
This will look for all .tests.js files within theimports/` directory, which is where I have my tests located, but your use case is probably a little bit different.
Note that in order for Mocha to run your tests, it needs to first transpile your code from ES6/7 down to normal ES5, which is something the practicalmeteor:mocha package historically has abstracted for you behind the scenes. In order to get that to work, note the --compilers js:babel-register flag. This tells mocha to transpile using Babel before attempting to run the tests. You just need to install babel-register so mocha can find and use it:
npm install --save-dev babel-register
And add a .babelrc file to the root of your project (you probably already have this) so Babel knows which plugins and presets it should use when compiling. An example would be:
{
"presets": [
"es2015",
"react",
"stage-0"
],
"plugins": [
"transform-class-properties"
]
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Having the same issue with Meteor

Same issue with Meteor. Any updates on this ?

Cannot find module 'react-addons-test-utils' from 'react-compat.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:151:17)
      at node_modules/enzyme/build/react-compat.js:128:19
      at Object.<anonymous> (node_modules/enzyme/build/react-compat.js:192:5)

Same error with latest React + Jest 😓

@FezVrasta I was experiencing the same thing, so I did a little digging:
https://github.com/airbnb/enzyme/blob/master/docs/common-issues.md#error-cannot-find-module-react-domlibreacttestutils
I know the module path is different, but check out the reason section.
In order to properly support multiple versions of React, we have conditional requirements that npm does not support with tools like peerDependencies. Instead we manually require and throw errors if the dependency is not met.
A quick manual install of react-addons-test-utils solved it for me... It's not ideal, but it'll get you there.

Yes I fixed it as well in this way but I'd rather avoid to install unneeded dependencies...

It's not unneeded, it's absolutely necessary. Please read the readme.

So why it's not listed in peerDependencies, dependencies or devDependencies?

The readme explains it.
Because we support multiple versions of react, and it's not required for all of them.

Okay, but it sucks, no way that I get an error without an explanation of why do I get it. Your library is broken.

That's why you need to read the documentation. If you do not, and the software does not work as expected, it's not the software that's broken.

Yes and the bunch of people that comment on this issue are sustaining your tesis I guess.

If what you want is an optionalDependency please use optionalDependencies field. Ore use peerDependencies, that, as far I know, are all optionals.

It sounds like you may not realize what optionalDependencies are for - they are for dependencies that are always installed, but whose failure to install (primarily, failure to compile) does not fail the overarching install process. optionalDependencies would mean everyone has to install it.
Similarly, peerDependencies are always required. npm lacks the facility to specify conditional dependencies, which is why this is the only approach that is possible.

peerDependencies will throw a warning when not installed, but they don't prevent npm from work.
Do you think that, to support an ancient version of React, you should expose all your users to this kind of behavior? Why don't you put it in the dependencies and let 0.13 users install it even if they will not use it?

yes, this is the proper way to do it for the time being. We have a plan to alter the core of enzyme in the future such that this problem won't occur again, but in the meantime, the current behavior will not be changing.

Error: Cannot resolve module 'enzyme/build/react-compat'
I fixed that when i did  npm install into the /node_modules/chai-enzyme/


Support iPhone SE (3rd), iPad Air (5th), and Mac Studio

iPhone SE (3rd generation)
iPad Air (5th generation)
Mac Studio (M1 Max)
Mac Studio (M1 Ultra)

https://twitter.com/s1guza/status/1501377916013318145?s=12

iPhone SE (3rd generation): iPhone14,6
iPad Air (5th generation): iPad13,16 / iPad13,17
Mac Studio (M1 Max): Mac13,1
Mac Studio (M1 Ultra): Mac13,2


don't show a stacktrace when throwing compiler error

Fixes https://github.com/fishtown-analytics/dbt/issues/400
User will see this:
! Compilation error while compiling model fb_ads:
! Supplied var 'ads_table' is undefined in config:
Vars supplied to fb_ads = {
    ....
    "ads_table": null,
    ....
}

instead of this:
File "/Users/drewfus/fishtown/dbt/dbt/parser.py", line 208, in parse_node
    capture_macros=True)
  File "/Users/drewfus/fishtown/dbt/dbt/clients/jinja.py", line 112, in get_rendered
    return render_template(template, ctx, node)
  File "/Users/drewfus/fishtown/dbt/dbt/clients/jinja.py", line 103, in render_template
    return template.render(ctx)
  File "/Users/drewfus/miniconda3/lib/python3.5/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/Users/drewfus/miniconda3/lib/python3.5/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/drewfus/miniconda3/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 12, in top-level template code
  File "/Users/drewfus/miniconda3/lib/python3.5/site-packages/jinja2/sandbox.py", line 427, in call
    return __context.call(__obj, *args, **kwargs)
  File "/Users/drewfus/fishtown/dbt/dbt/utils.py", line 111, in __call__
    var_name, self.model.nice_name, pretty_vars
AttributeError: 'dict' object has no attribute 'nice_name'

approved


Register LBSEC- prefix in OSV schema

This issue is to track registering of the LBSEC- prefix in https://github.com/ossf/osv-schema.

Hi there from an OSV maintainer! Very excited to see this! Please feel free to create a PR any time for this.

Hi @oliverchang! I've went ahead and opened https://github.com/ossf/osv-schema/pull/43. Do reach out if additional info/work is needed from my end. :-)

Closing as done.


net/url: Parse does not permit percent escapes in host

RFC 3986 permits percent-encoded characters in the host part of a URL. *net/url.URL.String will percent-encode the net/URL.Host field, but confusingly, url.Parse does not accept URLs produced in this form.
Applications like PostgreSQL that use net/url.Parse to parse URLs that have this form produce an error, see lib/pq#796. The prior #16127 notes some mismatch between net/url.Parse and RFC 3986. This issue is around the specific issue of percent-encoded characters in the host, not any larger scope.
What version of Go are you using (go version)?

$ go version
go version go1.12 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE=[redacted]
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=[redacted]
GOPROXY=""
GORACE=""
GOROOT=[redacted]
GOTMPDIR=""
GOTOOLDIR=[redacted]
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=[redacted]
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS=[redacted]

What did you do?
https://play.golang.org/p/l9oOmcNkYUd
What did you expect to see?
URL1: postgres://foo@%2Fvar%2Frun%2Fpostgres/mydb
Host: /var/run/postgres
URL2: postgres://foo@%2Fvar%2Frun%2Fpostgres/mydb
Host: /var/run/postgres

What did you see instead?
URL1: postgres://foo@%2Fvar%2Frun%2Fpostgres/mydb
Host: /var/run/postgres
Parse: parse postgres://foo@%2Fvar%2Frun%2Fpostgres/mydb: invalid URL escape "%2F"

In addition, both "<" and ">" are allowed in host (specifically registered name) when they shouldn't be as per: https://tools.ietf.org/html/rfc3986#section-3.2.2
https://golang.org/src/net/url/url.go?s=2590:2650#L100

@zombiezen I wrote a test with your expected result, and I got it passing by removing a check here:
https://github.com/golang/go/blob/master/src/net/url/url.go#L221-L223
Those lines appear to explicitly exclude ASCII (but for the %25) from escaping on parse
The note on the if branch mentions page 21 of that same RFC that you've linked: https://github.com/golang/go/blob/master/src/net/url/url.go#L215-L220
I think this is the relevant bit:

The reg-name syntax allows percent-encoded octets in order to
represent non-ASCII registered names in a uniform way that is
independent of the underlying name resolution technology.  Non-ASCII
characters must first be encoded according to UTF-8 [STD63], and then
each octet of the corresponding UTF-8 sequence must be percent-
encoded to be represented as URI characters.

Also, I can see that the mention about RFC implementation by the package has been "relaxed" a while ago: https://go-review.googlesource.com/c/go/+/22859/
Not sure how to interpret the RFC, but happy to hear your thoughts, and I can open a CL if that's the expected behaviour.

@bradfitz, any thoughts on this issue? I remember there being some subtleties about what sort of changes we want to permit around net/url.

Given that we String-ify such Hosts, I'm not opposed to trying to Parse them too. We'll see what breaks. But please send a change soon, as the freeze is coming, and net/url changes are notorious for breaking things & getting reverted.

What's not entirely clear to me is:
The RFC says:

The reg-name syntax allows percent-encoded octets in order to
represent non-ASCII registered names in a uniform way that is
independent of the underlying name resolution technology.

The example of / is an "ASCII" character after all. 🤔
I've made a change, and I'll open a CL, but there were tests explicitly asserting the opposite of what this issue says, see:

https://github.com/golang/go/blob/master/src/net/url/url_test.go#L1432
https://github.com/golang/go/blob/master/src/net/url/url_test.go#L1430

Also the current comment on the if statement mentions:
// Per https://tools.ietf.org/html/rfc3986#page-21
// in the host component %-encoding can only be used
// for non-ASCII bytes.
// But https://tools.ietf.org/html/rfc6874#section-2
// introduces %25 being allowed to escape a percent sign
// in IPv6 scoped-address literals. Yay.

Have a look at the changes.

@bcmills @zombiezen RFC3986 says %-encoding is allowed in reg-name for only non-ASCII characters; / is an ASCII character.
If I'm interpreting this correctly, Parse should not permit %-encoded ASCII characters.
Should this issue be closed? If no, I would like to start working on a patch improving upon @thoeni's CL 172157 .

In that case the encoding "/" as %2F is wrong?  What code is responsible for that? (See testcase in opening msg)


Oauth Implemented

Hello,
I was wondering if you were going to implement the token instead of username and password for logging in.
Thanks

Is it possible for you to be a little clearer? Afaik this isn't possible.  Remember, as the readme states, this api is not for the accessing the official chatbot api, this is for chatting as a user directly.

Oh, I apologize.  I thought that this was the facebook-chat-api that would handle either an actual account or a bot.

As far as I know, there isn't anything that will do both.  You can either use this (unofficial) api, which essentially pretends to log in as a regular facebook account, or attempt to use this (official) api.  It all depends on your usecase.
Hope that helps!


nginx customized template ignored

Might relate to #114 , #147
Basically, working from the nginx example, I am unable to get interlock to use a custom template for nginx configuration generation.
Example compose file slightly modified as follows:
interlock:
    image: ehazlett/interlock:1.1.0
    command: run -c /etc/interlock/config.toml
    ports:
        - 8080
    volumes:
        - ./config.toml:/etc/interlock/config.toml
        - ./nginx.conf.template:/etc/interlock/nginx.conf.template
        - /var/run/docker.sock:/var/run/docker.sock

nginx:
    image: nginx:latest
    entrypoint: nginx
    command: -g "daemon off;" -c /etc/nginx/nginx.conf
    ports:
        - 80:80
    labels:
        - "interlock.ext.name=nginx"
    links:
        - interlock:interlock

app:
    image: ehazlett/docker-demo:latest
    ports:
        - 8080
    labels:
        - "interlock.hostname=test"
        - "interlock.domain=ag"

The template found in the running interlock container is correct, but the config generated for nginx on a docker event completely ommits any changes applied to the template.
It LOOKS almost like interlock can't find the template, and just default everything (apart from what it could find config.toml - that it seems to find and honour).

@ehazlett set the milestone for https://github.com/ehazlett/interlock/pull/124 to 1.2 so I expect external templates are not in ehazlett/interlock:1.1.0 yet.

Ah bugger.
Ok, as an imperfect work-a-round I realized I can add some config to the /etc/nginx/conf.d folder.
Obviously this will not be suffice for everybody, but luckily for my current use case (just adding basic http auth!) this will suffice for now.
I will close this issue then in favour or #124 (don't know how I missed that one - I DID look for an existing issue!).
Thanks @everett-toews .

@demaniak I don't know if you noticed or not but it was just released in 1.1.1 and the ehazlett/interlock:1.1.1 image.

Correct. 1.1.1 was released to fix some unrelated bugs and has this
included.
On May 11, 2016 14:57, "Everett Toews"<EMAIL_ADDRESS>wrote:

@demaniak https://github.com/demaniak I don't know if you noticed or
not but it was just released in 1.1.1
https://github.com/ehazlett/interlock/releases/tag/v1.1.1 and the
ehazlett/interlock:1.1.1 image.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/ehazlett/interlock/issues/148#issuecomment-218602672

Thank you @ehazlett - I did actually see :)
Going to try later today!


Order interactions within the contract by provider state.

In order to avoid unnecessary contract file changes.
Generally RSpec does not execute tests in alphabetical order, it means that if you run the test without any changes several times, it creates pact contract with interactions in random order too.
As a result you need to be careful to understand do you have any changes in pact contract or just commit changes every time it changes the contract.

I have this funny feeling that there's some other code somewhere that does this. I'll try and remember.

I'd like this to be configurable, because (and I know this is bad and I don't encourage it) there are people who need the tests to be executed in a certain order when they replay them. I remember having conversations about it.

Also! This is the order that the pact broker displays the interactions in. It would be good to keep this consistent.
module Pact
  module Doc
    class SortInteractions

      def self.call interactions
        interactions.sort{|a, b| sortable_id(a) <=> sortable_id(b)}
      end

      private

      def self.sortable_id interaction
        "#{interaction.description.downcase} #{interaction.response.status} #{(interaction.provider_state || '').downcase}"
      end

    end
  end
end

It means that they're sorted thusly: "a request for an alligator - given an alligator exists - 200" then "a request for an alligator - given an alligator does not exist - 400" "a request for something else...".

Can't find the code that I thought might be there. Happy for this to be accepted as long as it is configurable and we don't break semantic versioning.

Thanks for commenting. I agree, order by "description, status, provider state" sounds better.
What do you mean by configurable?
I think now anyone can set any order by changing description...

Like the pact_file_write_mode
https://github.com/realestate-com-au/pact/blob/master/documentation/configuration.md#pactfile_write_mode
https://github.com/realestate-com-au/pact/blob/master/lib/pact/consumer/configuration/configuration_extensions.rb#L60
Perhaps pact_file_write_order with options chronological (default) and fixed?

Just to confirm, do you really want to make it configurable? Usually it is good practice to develop something when you have real needs and exact requirement, otherwise you will develop it and nobody gonna use it in the future...
Current changes just fixing an issues with inconsistency of the pact contract after each run.

Good practice is also to not change existing behaviour within a major version. I know people who rely on the order of the interaction replay being the same as the order in which they were originally executed (even though this is bad practice and I don't encourage it!). If we change the order they are stored in within the pact file, we change the order they will be replayed in.

Sorry, I agree with you, but wasn't clear enough.
My point is that it should be randomised when replaying contract, not when we are building it.
In this case by default:

build a contract ordered by "description, status, provider state" - consistency in the generated pact.json file.
randomise interactions on replay

And completely different question: Do we want to have a configuration randomised/alphabetical contract replay?

I absolutely agree with your 2 points. That's the way it should have been done. However, it was not, and now people rely on the current behaviour, and it is not good practice to change it without making a major version change. So, in the meantime, I'd like to make it backwards compatible, with a configuration option to set the order of the interactions in the pact file.
Configurable randomised replay would be great. There is currently no option for this. If you felt like submitting that as a PR, I'd be happy for it to be accepted.

I've created a pull request on Pact gem.
In order to pass pact changes we need to merge this pull request first

Thanks for your work Alex. Can you explain to me how this maintains backwards compatibility for people who need to replay the interactions in the order in which they were executed?

By default Rspec running tests in a random order, it means that by default we are saving interactions within a consumer contract in random order and as a result replaying interactions in a random order as well - no changes for people who upgraded pact gem to version "1.10.0".
For those, who is running rspec tests in a specific order - they might need to modify description or provider state in order to record pact contract in specific order and replay it later on in the recorder order.

For those, who is running rspec tests in a specific order - they might need to modify description or provider state in order to record pact contract in specific order and replay it later on in the recorder order.

Alex, please maintain the current behaviour by default until we can make a breaking change with a major version. Once that is done, I will very happily merge the PR, thanks for your work.

Beth, honestly, I don't understand what can be done more at this point. The main reason of this pull request and pull request on the pact gem is to change the current behaviour in order to make pact contract consistent but replay - randomised or in order defined by contract.

Please add a configuration option pact_file_write_order, with options chronological (default) and alphabetical.
  def sorted_interactions
   return consumer_contract.interactions if pact_file_write_order == :chronological
    consumer_contract.interactions.sort{|a, b| sortable_id(a) <=> sortable_id(b)}
  end

This will maintain the current behaviour by default, but allow the order of the interactions to also be fixed as you desire.

The changes to the other project are looking good. Let me know when these are done because I don't get a notification when a commit happens, so I won't know when it's ready to merge.


Make project roadmap

Driftwood should have a roadmap of features to be worked on over the next few months. Since the primary obstacle to getting Driftwood in use are features, it makes sense to focus on those for the roadmap.
The other big things that might optionally go on the roadmap could be:

Asking people to try using Driftwood and recording & analyzing what they think/say/do
Making a super simple game or two ourselves
Working on recruiting additional developers
Writing documentation for game makers

To go about doing this, we should clarify the goals for project Driftwood, determine the audience, and focus on them while composing this document.

Sounds good. Before we start promoting Driftwood, we should have at least the following things in the base engine:

Pixel and roguelike movement modes a la Tsunagari
Mouse support (maybe)
Looping areas (also maybe, yes I'm obsessed with this)
Support for virtual layers (you can place these above map layers for overlays)
Scriptable UIManager with text, button, menu, dialog box, and custom graphic support. This will involve some sdl_ttf and overall it shouldn't be difficult to code the base functions.
Support for graphics effects such as lighting, rumbling, and variable transparency.
Make sure people can't easily encounter crash conditions.
Make sure engine info messages, errors, and warnings are clear and concise.

We also want a standard library containing well documented functions for doing common tasks with the engine. Several forms of combat, such as on-map combat or final fantasy style combat could reasonably be implemented entirely in the standard library using existing API functions. Inventory and common menu systems could also be handled by the standard library.
Documentation is of course essential and should be worked on once we're reasonably close to solidifying the API.

We can use GitHub repository projects to make the roadmap.

Cool. Which big items have been tackled and which remain? We don't have issues for all of this good stuff.


Use correct Windows PID type size

Windows PIDs are always a DWORD, which is 32-bit unsigned on all platforms.
UID and GID don't actually make sense on Windows either as an unsigned long (they really should be a character buffer), but as long as we're making things up, and 'unsigned long' is 32-bit on Windows, let's say that explicitly as well.

Thanks @thirty8super !


Deleting a folder and undo from Finder is not retrieving the folder in VS Code

Testing #29478

Open a Folder in VS Code
Assume above folder has a sub folder say Sub Folder
Go to Finder and delete Sub Folder
Observe that it is removed from VS Code - 👍
Undo the action in Finder by cmd+z. Folder comes back in Finder

Expected folder to come back in VS Code but not.

It looks like the undo event causes a CHANGED event on the folder instead of an ADD event. There are no ADD events for the contents of the folder either. Marking as important (not for June though) because I think this is a pretty bad regression from e.g. Chokidar where this works properly.
Does not reproduce on Windows btw.

It looks like this has been fixed:

@Tyriar I am still getting it and I am not 100% sure the only change that got in meanwhile (https://github.com/Axosoft/nsfw/pull/24) would have an impact.
I see it on macOS by just deleting a top level folder from the workspace and the undoing that. In the video below I use single folder workspace but nsfw is enabled via settings:

I opened: https://github.com/Axosoft/nsfw/issues/31
If we are unlucky then maybe we need to add manual code to detect this case and convert a MODIFIED event on a folder that was previously DELETED as CREATED (and all the children inside).

Somehow this started to work for me again. Can others try too? When you use insiders nowadays you can simply open a single folder and you will get nsfw as watcher.

Hm nevermind, still seeing it, but not in all cases. This is super weird...


Update to v2.0.1 issue

Hello guys,
After I Update use
cd ~/adsb-receiver
git fetch --all
git reset --hard origin/master
./install.sh
When I open the portal, it always jump to http://<IP_ADDRESS>/install/upgrade.php no matter what I do.
How to solve this problem?
Thanks in advance.

Honestly I am not sure why this is happening and I am working on getting some sort of fix together...
This is something I have noticed here and there but has happened more so while testing all the different installation scenarios for this release. Lighttpd or PHP-CGI seems to intermittently not handle post data properly.
If you run into a problem during the PHP installation portion where you are forwarded to the page /install/upgrade.php after submitting the form found at /install/ delete the file /var/www/html/classes/settings.class.php and visit the /install/ URL once more.
Related to this issue:
https://github.com/jprochazka/adsb-receiver/issues/175

Hi Jprochazka,
It works to me again. Because I reboot my rpi, then I click the dump1090, which shows me dump1090 not running, so I reinstall the system again, but it still not working, so I update, then it shows error as above, my hardware is rpi3 and system is noobs 1.9.0. Hope this can help you find issue
Warm regards,


http://localhost:3000/graphql

Clone Repo -> npm install -> npm run dev
http://localhost:3000 - === works!
http://localhost:3000/graphql -> Apollo Server supports only POST requests.  !== work
Ubuntu 16.04

@robbiereynolds The URL to play around with the API is now http://localhost:3000/graphiql.  Try it out now!

Sure enough, that did the trick. Thanks.


dbt power user plugin checks dbt_packages

Expected behavior
It should not check the dbt_packages directory.
Actual behavior
I install the dbt packages outside the project directory for common share. However, the latest version of the plugin will check this directory and display it in the "problems" tab.

Steps To Reproduce

add package-install-path:  packages-install-path: "../dbt_packages"
model-paths: ["models"] test-paths: ["tests"] macro-paths: ["macros"] packages-install-path: "../dbt_packages"
dbt deps
restart the vscode

Log output/Screenshots

Operating System
macos 12.4
dbt version
1.6.9
dbt Adapter
dbt-clickhouse-1.6.2
dbt Power User version
v0.29.2
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Hi @zwbill82, we have resolved the issue. Please upgrade to version 0.29.3 and let us know if the problem persists.


AWS Elasticsearch requests fails on first scroll request

Enviroment Info

Elasticsearch Command: 2.3
Elasticdump version 1.7
Node version: v8.10.0
Full command: See below
Unfortunately I am not able to provide a data set at this time but it appears to be more of an issue of signing the requests for AWS then the data output. What data I get from the first request has been correct.

Error Info:
When trying to interact with AWS elasticsearch service the first call goes through just fine and retreives the data. When the second call pass is made to get the next group it fails. The errors are different depending on the arguments I use.
Example 1 command:
elasticdump --limit=300 --type=data --input=https://elasticsearch-url.com/the-index
--output=./output-file.json --awsAccessKeyId="some-access-key"
--awsSecretAccessKey="super-secret"

Error Message:
The request signature we calculated does not match the signature you provided. Check your AWS
Secret Access Key and signing method. Consult the service documentation for details.

Example 2 command:
elasticdump --limit=300 --type=data --input=https://elasticsearch-url.com/the-index
 --output=./output-file.json --awsChain

Error Message:
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: {"message":null}

Here the request is returning a 400: Bad Request causing the  error to be tossed.
I have been debugging this for about a day now, so any help would be greatly appreicated!

Have you tried using a later version ?

In order to help us troubleshoot issues with this project, you must provide the following details:

ElasticDump version
Elasticsearch version
Node.js version (note that nodejs v8+ is required for this tool)
Full command you are having issue with (with inputs and outputs)
A data set you can share publicly which reproduces the problem

Closing this issue.
Please re-open if you do not feel the question has been answered sufficiently.

I apologize for the delayed response. I ran back through my tests and I did provide the wrong verision number. I provide the version of aws4 that was being used by elasticdump and not the version of elasticdump.
I am still having the same issue and working to provide a data set, but like I mentioned before the issue isn't with data but with how the scroll requests are being signed when interacting with AWS. As soon as I have something set up I will update and re-open

Aloha!
I was also having this problem and it seems latest commit does not fix it.
I've sent a PR that fixes it as AWS doc suggests: moving scroll_id to the request body.

I think you're reading the document incorrectly. Different versions of ES has different requirements.

To be exact, it does mention it just to avoid problems when '=' are part of the 'scroll_id', but the fact is that it worked when I moved the id to the request body.

yea but this breaks the behavior in certain versions of AWS. I merge your PR and tomorrow another issue opens up with an issue.

merged


Fixed gamepad bug

Hello. For #5, I had a mistake. The gamepad is not work in the mobile version! Actually, It is work only when you start pressing the gamepad. I'm sorry that I caused a problem.

Thank you!


management script to populate professions with wikidata profession

https://w.wiki/9fb

@vronk pointed out, making ~4000 requests could be circumvented by fetching schema:description in initial query (as well as parent class)...

with the help of @KlausIllmayer
SELECT ?item ?itemLabel ?description
WHERE
{
  ?item wdt:P31 wd:Q28640.
  ?item schema:description ?description FILTER(lang(?description) = "en")  .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

python manage.py import_wd_professions -> imports English labels/descriptions
python manage.py import_wd_professions --lang de  imports German labels/descriptions


[Bug]: Dependency update warning shows for new packages in VSCode

Description
For new projects, there is no need to show the warning about the dependency update. This behavior is correct in the CLI build but the warning is shown in LSa
Steps to Reproduce

Create a new package and open it is VSCode
Execute bal build in the VSCode terminal
Observation: The dependency update warning is shown in the Problems tab
Open the Dependencies.toml
Observation: The warning goes away

Expected behavior:
The warning should not be shown at all for a new package
Affected Version(s)
2201.5.0 and above
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

I was able to reproduce the issue. Will provide a fix with https://github.com/ballerina-platform/ballerina-lang/pull/40522.

The fix was intended to go with https://github.com/ballerina-platform/ballerina-lang/pull/41197, however was not merged due to the concerns over the design.


Media key support steals attention from Chrome on macOS

Checklist:

[x] I have checked that there are no issues with similar or the same content
YOU SHOULD CHECK CLOSED ISSUES ASWELL

[x] I have checked the FAQ (https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/wiki/FAQ) and the answer I am looking for is not there

[x] I have double checked and can reproduce the issue

OS:
macOS 10.15.1
GPMDP Version:
4.7.1
Issue Descriptions:
The touch bar media keys work great to control GPMDP, but if I'm watching Youtube in Chrome, for example, and GPMDP is paused in the background, GPMDP will intercept the key and start playing, instead of pausing Youtube
Steps to Reproduce:

Start GPMDP, play a song, then pause
Start a Youtube video in Chrome
Hit the "play/pause" media key (in my case, from the touchbar)
Notice that GPMDP starts playing

Also experiencing this issue!


ESLint: Is it enabled or disabled?

Testing https://github.com/microsoft/vscode/issues/107584
I tried to get to the same dialog that I get through quick fix or the status bar item using the command palette. So, I chose ESLint: Enable ESLint in a workspace ESLint was not allowed to run in yet. I got:

The problem tells me that ESLint is disabled. The notification tells me it's enabled.

This needs some rewording. You could always enable / disable ESLint using the setting eslint.enable. If set to false the extension will not start a server. This is for workspaces where ESLint shouldn't run at all.
Currently no good idea about the wording :-(

Here is what I did to fix this:

removed the command since this can now be achieved using the extensions viewlet
kept the setting but deprecated it.

To verify: ensure that the ESLint: Enable ESLint and ESLint: Disabled ESLint commands are gone from the command palette.

Looks like they're still there.
Maybe the fix hasn't been released in the latest insiders yet?

This will come with a new version of the ESLint extension. Since this version will require VS Code 1.50.0 I need to wait to have a stable release before I can publish a new version of ESLint.


Example application source code

Hi upb.crypto team. I am very interested in this library and its applications. Could you please give me source code of your example application which is mentioned in section 6.7 of the project's document?

We're on it! 👍


We are planning to deploy app. in Baidu store in China. WIll push.on ('error') be fired if I try to login from China where there are no google services installed ? / no n/w connectivity ?

Expected Behaviour
push.on('error') needs to be fired.
Actual Behaviour
push.on('error') needs to be fired. Has to be tested
Reproduce Scenario (including but not limited to)
Steps to Reproduce
In baidu store, china ,
on registering for push notfication through GCM , will push.on('error') , be fired ??
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
cordova --version                                    # e.g. 6.0.0
cordova platform version android                     # e.g. 4.1.1

Plugin version
cordova plugin version | grep phonegap-plugin-push   # e.g. 1.5.3

Sample Push Data Payload
Sample Code that illustrates the problem
Logs taken while reproducing problem

@Anand1907 that's a really good question. I have not been able to test that but it should error out when the gcm libraries are not detected.


Switch Buffers to memoryviews

When this was written in the code, Python's Buffer Protocol support was inconsistent across Python versions (specifically on Python 2.7). Since Python 2.7 reached EOL and it was dropped from Numcodecs, the Python Buffer Protocol support has become more consistent.
At this stage the memoryview object, which Cython also supports, does all the same things that Buffer would do for us. Plus it is builtin to the Python standard library. It behaves similarly in a lot of ways.
Given this, switch the code over to memoryviews internally and drop Buffer.

TODO:

[ ] Unit tests and/or doctests in docstrings
[ ] Tests pass locally
[ ] Docstrings and API docs for any new/modified user-facing classes and functions
[ ] Changes documented in docs/release.rst
[ ] Docs build locally
[ ] GitHub Actions CI passes
[ ] Test coverage to 100% (Codecov passes)

Planning to merge end of week if no comments


Add Hit Em Up by 2pac

Song Name
Hit Em Up
Artist Name
2pac
Source
Youtube
Youtube Link
https://youtu.be/41qC3w3UUkU?feature=shared
Direct File Link
No response
Song ID
335478
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 1244147
Downloaded: No

Accept

accept
ср, 6 нояб. 2024 г., 17:38 auto-nong[bot] @.***>:

Thanks for contributing!
Someone will soon review your request.
Here is the JSON result for the reviewer:
{
"name": "Hit Em Up",
"artist": "2pac",
"source": "youtube",
"startOffset": 0,
"yt-id": "41qC3w3UUkU",
"songs": [
335478
]
}
To accept the request, a reviewer needs to write "accept".
—
Reply to this email directly, view it on GitHub
https://github.com/FlafyDev/auto-nong-indexes/issues/6017#issuecomment-2459927707,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMWX64NMHXL5OT6IXDRETHDZ7ISXVAVCNFSM6AAAAABRI7WNUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJZHEZDONZQG4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Hero fails to run multiple times when using headful mode (Apple Silicon)

When creating a second hero instance after the first one closed in headful mode, hero fails to create a new chrome window.
Ideally it would reuse the already existing window, and only create new ones if needed. But if a new window is needed that's also not that bad. Right now the only way to use headful mode is by restarting the node process after every hero exec.
Can be reproduced with this example (can probably be easier, but leaving it here as is):
import Hero, {
  ConnectionToHeroCore,
} from '@ulixee/hero';
import HeroCore from '@ulixee/hero-core';
import TransportBridge from '@ulixee/net/lib/TransportBridge';

async function start() {
  console.log('starting core')
  await HeroCore.start({
      maxConcurrentClientCount: 5,
      shouldShutdownOnSignals: false,
  }).then(() => {
      console.log('core started')
  }).catch(() => {
      console.log('core failed to start')
  });
}

async function exec() {
  const bridge = new TransportBridge();
  const connection = new ConnectionToHeroCore(bridge.transportToCore, {
      maxConcurrency: 5,
  });
  HeroCore.addConnection(bridge.transportToClient);
  console.log(`running script`)
  const hero = new Hero({connectionToCore: connection, showChrome: true});
  await hero.goto('https://www.google.com');
  console.log('webpage loaded')
  await hero.waitForMillis(2000);
  await hero.close();
  console.log('script finished')
}

async function loop() {
  for (let i = 0; i<=100; i++) {
      console.log(`Running iteration ${i}`)
      try {
          await exec()
      } catch {
          console.log('ignored error')
      }
  }
}

start().then(() => {
  loop()
})

Updated title to reflect that this is an Apple Silicon problem. Can't be reproduced on older macs using Intel chips, will try on Linux in the near future.

Fixed in next release


Fix previous exception rethrow on transaction rollback

"Fixes" https://github.com/doctrine/doctrine2/issues/7545
Not sure if proper fix, was checking DBAL's code and everything is IMO just fine there. So my goal was to keep both exceptions in ORM's code.
Or do you have ideas for a better way to fix?

🤔 and how can ORM's user fix failing rollbacks then when it's impossible to find its origin? Only thing user knows is that rollback failed. Why, is a mystery.

You can design an exception with two previous traces. See https://github.com/doctrine/doctrine2/pull/6743 for examples on how we improved this for ORM 3.x.
Right now, changing the exception type being thrown for a failed rollback would be a subtle BC break, so please look at that patch and propose a separate solution for 3.x, if possible.


(enhancement) update lambda layers with pyarrow 10

Forgot to update the layer build script in the prev PR
Relates

#1518

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 4d3e12e8447bf318f7e7db3b1f6ce26687f59c98
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: a3d7733536a811e8947d2f142cb0119e7895b3aa
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@jaidisido @malachi-constant @LeonLuttenberger please hold on merging this one - dist build isn't succesfull yet

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 77098520b4ee46c17672edcc497e2f8bb1aae252
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 56dd1784e2076d41a0460f3bd2154e29b9f0bff2
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 05a63508230fad73ce5507f97a81cfe3a387be9a
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: ec71dea75699fe4efd4f900b3f0d6cba5ddd3359
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Tested the layers -- all works fine!

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 0fcdadf45b1c39beb9cd03dfd95293e093180d34
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Node libdefs should return subtypes

Consider a HTMLElement, which extends from Node.
Given:
const el2 = el
  .parentNode;

el2 is of type Node. It should be of type HTMLElement.

Sadly, I think this is not quite true. If you call .parentNode on the top-level <html> element, you get back document, which is a Node but not an HTMLElement. :(