text:
error: need more than 2 values to unpack

after starting alexa, logs show this:
ERROR - error: need more than 2 values to unpack
Traceback (most recent call last):
  File "/opt/AlexaPi/src/alexa/http/http.py", line 164, in __synchronize_state
    request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
    resp = conn.get_response()
  File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
    return self._conn.get_response(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
    response = self.parser.parse_response(self._sock.buffer)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
    version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack

My guess is you don't have something configured correctly.  Look at this line (/opt/AlexaPi/src/alexa/http/http.py, line 164):
request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)

Add a print statement to: full_url & headers before line 164 and post the output:
print full_url print headers

- ERROR - <function <lambda> at 0x751fe8b0>(): Could not open AVS downchannel stream - https://avs-alexa-na.amazon.com/v20160207/directives
Traceback (most recent call last):
  File "/opt/AlexaPi/src/alexa/http/http.py", line 146, in __open_downchannel_stream
    response = self.__session.get(full_url, headers=headers, stream=True, timeout=None)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
    resp = conn.get_response()
  File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
    return self._conn.get_response(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
    response = self.parser.parse_response(self._sock.buffer)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
    version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-11-24 19:54:39,376 - alexa.http.http - ERROR - error: need more than 2 values to unpack
Traceback (most recent call last):
  File "/opt/AlexaPi/src/alexa/http/http.py", line 146, in __open_downchannel_stream
    response = self.__session.get(full_url, headers=headers, stream=True, timeout=None)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
    resp = conn.get_response()
  File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
    return self._conn.get_response(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
    response = self.parser.parse_response(self._sock.buffer)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
    version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-11-24 19:54:39,513 - alexa.http.http - ERROR - <function <lambda> at 0x751fe8b0>(): Could not synchronize state - %s
Traceback (most recent call last):
  File "/opt/AlexaPi/src/alexa/http/http.py", line 164, in __synchronize_state
    request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
    resp = conn.get_response()
  File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
    return self._conn.get_response(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
    response = self.parser.parse_response(self._sock.buffer)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
    version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-11-24 19:54:39,522 - alexa.http.http - ERROR - error: need more than 2 values to unpack
Traceback (most recent call last):
  File "/opt/AlexaPi/src/alexa/http/http.py", line 164, in __synchronize_state
    request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
    resp = conn.get_response()
  File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
    return self._conn.get_response(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
    response = self.parser.parse_response(self._sock.buffer)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
    version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-11-24 19:54:51,666 - alexa.http.http - ERROR - <function <lambda> at 0x751fe8b0>(): Could not post to: https://avs-alexa-na.amazon.com/v20160207/events/
Traceback (most recent call last):
  File "/opt/AlexaPi/src/alexa/http/http.py", line 191, in post
    request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 78, in send
    request.headers
  File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 103, in request
    method=method, url=url, body=body, headers=headers
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 183, in request
    self._send_headers(method, url, headers)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 228, in _send_headers
    self._sock.send(b' '.join([method, url, b'HTTP/1.1\r\n']))
  File "/usr/lib/python2.7/ssl.py", line 667, in send
    v = self._sslobj.write(data)
error: [Errno 32] Broken pipe
2016-11-24 19:54:51,670 - alexa.http.http - ERROR - error: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/opt/AlexaPi/src/alexa/http/http.py", line 191, in post
    request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 78, in send
    request.headers
  File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 103, in request
    method=method, url=url, body=body, headers=headers
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 183, in request
    self._send_headers(method, url, headers)
  File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 228, in _send_headers
    self._sock.send(b' '.join([method, url, b'HTTP/1.1\r\n']))
  File "/usr/lib/python2.7/ssl.py", line 667, in send
    v = self._sslobj.write(data)
error: [Errno 32] Broken pipe
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/AlexaPi/src/alexa/avs/directive_dispatcher.py", line 76, in processor
    log.debug("{}(process_response Error){} Status Code: {} - {}".format(shared.bcolors.WARNING, shared.bcolors.ENDC, r.status_code, r.text))
AttributeError: 'bool' object has no attribute 'status_code'

https://avs-alexa-na.amazon.com/v20160207/events
{'Authorization': 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrxxxxxxxxxxxxxxx'}

Can you enable logging? See the updated config file I posted in #1

BTW, just tested this branch, and its working for me. I'm still leaning towards a configuration error.

I did a fresh install after seeing your comments to @amahlaka. I had master working earlier. I added your custom config options that were left out. I enabled debugging for everything
``debug:
alexa: 'debug'
hpack: 'debug'
hyper: 'debug'
requests: 'debug'
alexa:
API_Version: "v20160207"
EventPath: "/events"
AuthUrl: "https://api.amazon.com"
BaseUrl: "https://avs-alexa-na.amazon.com"``
Here are my logs
``pi@raspberrypi:/opt/AlexaPi $ sudo python src/main.py
2016-12-20 22:28:40,593 - alexa.http.http - INFO - Checking Internet Connection...
2016-12-20 22:28:40,595 - alexa.http.http - INFO - Connection OK
2016-12-20 22:28:40,877 - hyper.http11.connection - DEBUG - Selected protocol: None
2016-12-20 22:28:40,878 - alexa.http.http - ERROR - <function  at 0x75264e30>(): Could not open AVS downchannel stream - https://avs-alexa-na.amazon.com/v20160207/directives
Traceback (most recent call last):
File "/opt/AlexaPi/src/alexa/http/http.py", line 146, in __open_downchannel_stream
response = self.__session.get(full_url, headers=headers, stream=True, timeout=None)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 469, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
resp = conn.get_response()
File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
return self._conn.get_response(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
response = self.parser.parse_response(self._sock.buffer)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-12-20 22:28:40,881 - alexa.http.http - ERROR - error: need more than 2 values to unpack
Traceback (most recent call last):
File "/opt/AlexaPi/src/alexa/http/http.py", line 146, in __open_downchannel_stream
response = self.__session.get(full_url, headers=headers, stream=True, timeout=None)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 469, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
resp = conn.get_response()
File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
return self._conn.get_response(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
response = self.parser.parse_response(self._sock.buffer)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-12-20 22:28:40,886 - alexa.http.http - ERROR - <function  at 0x75264e30>(): Could not synchronize state - %s
Traceback (most recent call last):
File "/opt/AlexaPi/src/alexa/http/http.py", line 164, in __synchronize_state
request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 500, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
resp = conn.get_response()
File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
return self._conn.get_response(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
response = self.parser.parse_response(self._sock.buffer)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-12-20 22:28:40,887 - alexa.http.http - ERROR - error: need more than 2 values to unpack
Traceback (most recent call last):
File "/opt/AlexaPi/src/alexa/http/http.py", line 164, in __synchronize_state
request = self.__session.post(full_url, headers=headers, files=payload, stream=True, timeout=None)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 500, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/contrib.py", line 80, in send
resp = conn.get_response()
File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 129, in get_response
return self._conn.get_response(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 204, in get_response
response = self.parser.parse_response(self._sock.buffer)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 2 values to unpack
2016-12-20 22:28:41,488 - alexa.avs.interface_manager - INFO -
2016-12-20 22:28:41,489 - alexa.avs.interface_manager - INFO - ----------------------
2016-12-20 22:28:41,489 - alexa.avs.interface_manager - INFO - Importing alexa.avs.interface.SpeechRecognizer...
2016-12-20 22:28:41,491 - alexa.avs.interface_manager - INFO - Importing alexa.avs.interface.AudioPlayer...
2016-12-20 22:28:41,491 - alexa.avs.interface_manager - INFO - Importing alexa.avs.interface.SpeechSynthesizer...
2016-12-20 22:28:41,492 - alexa.avs.interface_manager - INFO - ----------------------
2016-12-20 22:28:41,492 - alexa.avs.interface_manager - INFO -
!! Traceback (most recent call last):
!!   File "src/main.py", line 220, in
setup()
!!   File "src/main.py", line 215, in setup
avs_interface = InterfaceManager()
!!   File "/opt/AlexaPi/src/alexa/avs/interface_manager.py", line 27, in init
self.__import_modules()
!!   File "/opt/AlexaPi/src/alexa/avs/interface_manager.py", line 57, in __import_modules
interface_ref = getattr(mod, module, False)(self)
!! TypeError: 'bool' object is not callable
Exiting...``

I checked my version of hyper
pi@raspberrypi:/opt/AlexaPi $ hyper --version
0.7.0

@scottdmoore I can only assume at this point it has something to do with the distros you guys are using.  I am now running this code on my Intel Macbook Air 5,1 on Ubuntu 16.04 and I still don't see this problem.
Any thoughts you can share that may help resolve this issue would be greatly appreciated as I cannot reproduce on my hardware.
BTW, I have uploaded a massive update. I doubt it will fix the issues you guys are having, but it may be worth a shot.

Maybe we have different versions of the hyper Python library. The version I sent you and the one you mentioned earlier was for the hyper command line utility not the Python library. What is your pip hyper version?

_$ pip list | grep hyper_
**hyper (0.7.0)**
hyperframe (3.2.0)

I checked with @amahlaka earlier. I thought the same, but it appears we are using the same version.
Do you have a PC with Ubuntu on it? I would be interested in seeing if you see the same issue on another distro.

authors: amahlaka davidmroth scottdmoore

repo: davidmroth/AlexaPi


text:
--verbose or --quiet flag

Is your feature request related to a problem? Please describe.
It would be nice to have a smaller output of the command. Listing out the local and remote branches are nice for debugging and seeing what is available. However, having a smaller print output could streamline the user experience.
Describe the solution you'd like
Either have a --verbose or a --quiet flag. --verbose would enable the verbose logging. While --quiet would opt into being quiet.

Thanks for the suggestion and the PRs, I'll review it.

source: gharchive/issue

authors: davidraviv rizowski

repo: davidraviv/gh-clean-branches

license: MIT

license_type: permissive

license_source: github-api


text:
API to locate, but not load, config files

Coming from #172
It would be nice to use cosmiconfig to locate but not load a config file.  This mechanism already exists internally but is not part of the API.
Ideally the API will allow requesting candidate files one at a time.  If the first candidate should be skipped, the next is requested.  This behavior already exists internally, via the ignoreEmptySearchPlaces option.
If it matches the (async) iterator interface, users can do:
const explorer = createExplorer({/* ...options */});
let config;
for(const configPath of explorer.locateSync()) {
    config = attemptToLoad(configPath);
    if(config) break;
}

Thanks for filing this @cspotcode.
What are the reasons https://github.com/sindresorhus/find-up doesn't fulfill this need?
I'm partly wondering because it might, and partly to make sure that we're aware of whatever the key difference is, so we'd preserve that in a locate-only implementation.

find-up sounds like it fits the bill; I wasn't aware of it.  I'll do some reading.

find-up was perfect, thanks for the suggestion.  mochajs/mocha#3830
Since I went that route, I'm no longer investigating cosmiconfig for mocha.  I appreciate you taking the time to discuss my use-case and potential implementations.  Please don't feel the need to keep this issue open on my account.

Great, @cspotcode 👍

authors: cspotcode davidtheclark

repo: davidtheclark/cosmiconfig

license: mit

license_source: bigquery


text:
Replace combine_by_coords with np.where() to stich patched predictions

To address ongoing issues relating to the monotonic errors message, as well as output predictions not being the same size as the input datasets, this PR uses np.where instead of xr.combine_by_coords() to stitch patched predictions together and output a deepsensor.prediction object.

Create  patchwise_pred_copy : a new blank deepsensor prediction object at the same extent as X_t, where the mean and std values are set to Nan.
Then create a new output object combined_dataset = patchwise_pred_copy - this step can probably be removed, but i am being over cautious.
Iterates through the patchwise predictions in patches_clipped, and use np.where() to change the values of  the blank deepsensor object, combined_dataset to the values in the patchwise prediction values.
When the loop is applied to the first patch, because combined_dataset contains all Nans, then all the values in the first patch are used. After this point, if there is overlap between the subsequent patch and earlier patches, the values are only used in places where there isn't an overlap. This is achieved using  combined_array[var].where(np.isnan(reindexed_patch), reindexed_patch)

Secondary benefits of this include:

I have been able to remove all the +1 because it doesn't matter if there is slight overlap between adjacent patches now as np.where() will handle this
We will not get  monotonic errors because we're not using combine_by_coords()
The output will always definitely be the same size as the input because the output dimensions are defined using X_t as described in point 1.

Some examples of the differences between outputs using predict() and predict_patchwise(). So there are some artefects, but the values range +-0.06 when temperature ranges 260-300 degrees.
patch = 0.5, stride = 0.25

patch = 0.2, stride = 0.1

patch = 0.3, stride = 0.13

Can confirm that this passes the shape test, nice work!

Can confirm that this passes the shape test, nice work!

Wahooooo

source: gharchive/pull-request

authors: MartinSJRogers davidwilby

repo: davidwilby/deepsensor


text:
Atualização CRUD.

Gabriel Vidal
Ivan Teotônio

Merge da feature do CRUD dos dispositivos

repo: davifurao/Energy-Monitor


text:
Dlib optimization for CPU and GPU

Hi! Dlib is cool library. And I would like ask tip for optimize.
I used example http://dlib.net/dnn_face_recognition_ex.cpp.html and I read that you wrote https://github.com/davisking/dlib/issues/1421 that some functions don't support CUDA.
int extract(...) {

	...
            for (auto & pr : fs::directory_iterator(path)) {

		...

		load_image(img, p);

		for (auto face : detector(img)) {
			auto shape = sp(img, face);
			matrix<rgb_pixel> face_chip;
			extract_image_chip(img, get_face_chip_details(shape, 150, 0.25), face_chip);
			faces.push_back(move(face_chip));

		}

		...

		face_descriptors = net(faces);

	}

	...

}

int main () {

	int threads_count = 100;

	frontal_face_detector detector = get_frontal_face_detector();
	shape_predictor sp;
	anet_type net;

	deserialize(disk + ":\\FindP\\lib\\shape_predictor_68_face_landmarks.dat") >> sp;
	deserialize(disk + ":\\FindP\\lib\\dlib_face_recognition_resnet_model_v1.dat") >> net;

	for (int i = 0; i < threads_count; i++) {

		thread_array[i] = thread(extract, ... detector, sp, net);

	}

	for (int i = 0; i < threads_count; i++) {
		thread_array[i].join();
	}

}

How I undestand here only "net(faces)" uses CUDA. Other - CPU. What can you recommend me for optimize my program? For united power CPU and GPU.
May be I need change my thread function? Or change algorithm load image?
I use dlib-19.15

The shape predictor uses CPU, the net uses GPU.
You can have a separate thread to process the images and insert faces in to a queue and then another thread to process the queue through facial recognition.

Detector uses GPU, the shape predictor uses CPU, the net uses GPU. You can have a separate thread to process the images and insert faces in to a queue and then another thread to process the queue through facial recognition.

May I ask how/where could you tell shape_predictor is using CPU?

The shape predictor doesn't use the same deep learning methods for the regression tree, so there's no GPU acceleration. It's likely inefficient to put it on the GPU anyway. It's essentially a post-process on the detector.

repo: davisking/dlib


text:
🛑 Line of Succession is down

In 5adf3b3, Line of Succession (https://lineofsuccession.co.uk/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Line of Succession is back up in d0ad76c after 2 hours, 24 minutes.

repo: davorg/uptime


text:
Using the Color type from avh4/elm-color for the 0.19 upgrade.

I propose that we use the Color type from avh4/elm-color when upgrading to 0.19. That package is the 0.19 replacement for the Color package that was part of Core in 0.18.
https://package.elm-lang.org/packages/avh4/elm-color/latest/
Perhaps I will have time to do the upgrade. I don't think it will be too much work.

That seems 100% sensible. I'd happily accept a PR, but I might also just do
it myself
On Sat, 29 Sep 2018, 08:07 Ralf Northman, notifications@github.com wrote:

I propose that we use the Color type from avh4/elm-color when upgrading to
0.19. That package is the 0.19 replacement for the Color package that was
part of Core in 0.18.
https://package.elm-lang.org/packages/avh4/elm-color/latest/
Perhaps I will have time to do the upgrade. I don't think it will be too
much work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dawehner/elm-colorbrewer/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AABz7pS7AUf2TBGyJH9dus13DlE3BEcrks5ufxw6gaJpZM4XAXv-
.

In the main branch we have integer tuples to represent the colors and in "my" branch (which diverged before your 0.19 upgrade) we use the Color type from avh/elm-color. I would say that the Color solution is better (which is also how your package did it back in 0.18, but with elm-lang/core/color).
What do you think? How do we move forward?

I totally agree with you

Let's switch to elm-color instead of tuples
Let's then figure out the API for the collection of colours.

Does that sound like a good plan?

Alright, sounds good. Pull request coming real soon.

authors: RalfNorthman dawehner

repo: dawehner/elm-colorbrewer


text:
如何统计用了多少流量？

如何统计上传和下载用了多少流量？

已经在LocalVpnService中进行统计了走代理的字节

已经在LocalVpnService中进行统计了走代理的字节

请问你所统计的字节，和系统设置中的相差大吗？


text:
22.3.1: Indexes not shown when in 'public' schema of PostgreSQL

Description
I no longer see indexes displayed when I right click 'Indexes' in DBeaver's TOC if the data resides in 'public' schema. Please note that I can view the table contents itself, and are logged on with the same account that created the indexes, and I thus should have full rights to view them:

Indexes of tables residing in non-public schema based on e.g. a user name, do display normally:

Might be related to the changes in PG15 regarding public schema, but not sure, as again, I log in with proper account that created these indexes.
This used to work previously (DBeaver < 22.3.1 or PG14).
DBeaver Version
Community Edition 22.3.1
Operating System
Windows 10 latest patches
Database and driver
PostgreSQL 15.0
Steps to reproduce
Click 'Indexes' on a table entry when the table resides in 'public' schema.
Additional context
No response

Weird, I now see them displayed, even for the public schema. Don't know what happened, but closing for now. Maybe it was some background database operation temporarily blocking out access to schema information.

repo: dbeaver/dbeaver


text:
Fix Invalidate/Reconnect behavior

We need to fix Invalidate/Reconnect action behavior eventually (see #1885 #3415 )
It will close tunnel/db connection and won't try to check whether the connection is alive. This should dramatically reduce invalidation time in some cases.

Let's celebrate Usability Day together ;)


text:
Foreign Key View

A view/mode for the data tab that resolves foreign keys to values like the dictionary in the editor.  Probably off by default if it affects performance.

Have this feature been implemented? How do I activate it if it has. I have been looking everywhere for it.

Any update on this? How to see e.g. name value of FK instead of id?

Seems that value panel can be used

Seems that value panel can be used

Unfortunately, that's not what I mean. As presented on the screenshot, Panels (on the right) allow me to see 'Descriptions' of fields from the referenced table (trackers_actiontype), and highlight the value in referenced table when field with Foreign Key is clicked (action_type_id). In other words, to see what given Foreign Key in column action_type_id means, I have to click it and then look to the right.
I would like to have these 'Descriptions' in column action_type_id  instead of numbers (ids). Or be able to add an extra column which contains these 'Descriptions'. Then each row in my table trackers_issuemeta would have an extra column, which would say what is the 'Description' of the trackers_actiontype field it references. This would be much more readable and efficient than what I show on the screen.
Is there any way to do that? Or maybe the 'Panels' functionality should be used in another way?

Why has this ticket been just silently closed without any comment or status? This would be very nice to have. It's 2020, I don't want to open 5 panels just to see the resolved FK value. This could definitely be shown inline.
For a currently fetched subset of queries on a decently fast PC, this would be surely doable.
@serge-rider Any comments?

@technodrome I've found a workaround which is simply creating a SQL query in SQL Editor. However I also would like to have this feature built-in.

After following this issue for over two years, and still using DBeaver daily, I can say that it is still the only thing I am missing, up to the point that every now and again I think about moving to another DB manager just for this issue.
It comes down to the following: when I look at my tables, I can easily click on a record to see what the foreign key value is, but if I want to see the foreign key value for the record below it (or any other record for that matter), I have to then click on that one again (depending on how many FK's there are) to see it value. And so as I look over the data I have to click on every FK to see its value. Instead of being just able to look at the table with all the values filled in, and scrolling up and down seeing everything I need to see all at once.

@AlphaBravo777, did you find an alternative DB manager with drop-down support for FKs?

No, at the moment I am still using dbeaver. It is good on what I ise it for
other wise, so am I living with this inconvenience for the moment.
On Sat, 14 Aug 2021 at 20:25, d-01 @.***> wrote:

@AlphaBravo777 https://github.com/AlphaBravo777, did you find an
alternative DB manager with drop-down support for FKs?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dbeaver/dbeaver/issues/76#issuecomment-898941452, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AGKHWJRZXPQ4I7USGSL2YD3T42YKJANCNFSM4BVFK2MQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

authors: AlphaBravo777 IS-smcleod d-01 svagier technodrome uslss


text:
Space in field name, table at end, should be allowed.. truncate spaces

Posgres......... added field say "bananas " and accepted with SPACE after banana.
At least should warn,, re space ACCEPT or TRUNCATE name,.

Thank you for the report.

Team
What a great product… damn awesome.
I cut n pasted a field name from email…to myself  and database access from my inhouse system bit crazy.
Could see UT8 errors in dBeaver.. but could not see issue.
WTF..
See field like ‘logo_url’  I must have grabbed ‘logo_url ’  <-- the space
Dbeaver created the field with the space .. no complaints.
I would expect it to trim at least from the right.
Not sure why anybody would want a space on the left.
Postgres when I loaded another editor showed this field as “logo_url “ rather than logo_url
So it allowed it but Postgres showing it appends the quotes.
Warning or auto truncate would be better.
Thanks for listening..
Phil McGuinness – Sherlock Software - Australia
logo_url                                               string holding the url to the agent branding logo (required)
primary_colour                                 string holding hexadecimal code for the primary branding colour (required)
secondary_colour                            string holding hexadecimal code for the secondary branding colour (possibly not required but helpful in the future)
tertiary_colour                                  string holding hexadecimal code for the tertiary branding colour (possibly not required but helpful in the future)
From: Kseniia notifications@github.com
Sent: Friday, 1 May 2020 7:48 PM
To: dbeaver/dbeaver dbeaver@noreply.github.com
Cc: Phil McGuinness sherlock@sherlock.com.au; Author author@noreply.github.com
Subject: Re: [dbeaver/dbeaver] Space in field name, table at end, should be allowed.. truncate spaces (#8602)
Thank you for the report.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/8602#issuecomment-622323299, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APNB2KIDMOOVONUD6QUVJNTRPKLENANCNFSM4MW2TVGQ.

New fixes do not allow adding spaces at the beginning or end of the names of columns, tables, databases, connection settings and others.

I still can insert space at the end or beginning in PostgreSQL objects names (which were mentioned above):

always when an object is created via UI
never  when an object is changed via UI

Space can be add at the end or beginning in connection settings fields also (is it expected?):

host,database, driver properties, SSH, SSL - no changes after adding a space
login,password - error appears

Build  7.1.1.202006240709

@kseniiaguzeeva

always when an object is created via UI
Yes, it's works just for editing, not for creating objects. I did not specify.

Space can be add at the end or beginning in connection settings fields also
https://github.com/dbeaver/dbeaver/issues/9043 another ticket for this situation

Please remove the ability to insert a space in names also when creating an object.

ability to create names with spaces for columns/schemas/constraints/packages/roles etc. removed

Could you add tables in your list too?

Tables creating added

verified

authors: LonwoLonwo SherlockSoftware kseniiaguzeeva uslss


text:
Integrate Ha-Nerf in nerfstudio

First check in pipelines where "encode_a" and "use_mask" is applied
https://github.com/rover-xingyu/Ha-NeRF/blob/main/models/networks.py
https://github.com/rover-xingyu/Ha-NeRF/blob/main/train_mask_grid_sample.py#L36
https://github.com/rover-xingyu/Ha-NeRF/blob/main/eval.py#L131
https://github.com/rover-xingyu/Ha-NeRF/blob/main/hallucinate.py#L178
Then re-implement a new case (take vanilla nerf as example)? Replacing the embeddings encoding and implicit mask
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/models/vanilla_nerf.py
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/fields/vanilla_nerf_field.py
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/field_components/embedding.py
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/field_components/encodings.py
After including the model in https://github.com/dberga/nerfstudio/blob/main/nerfstudio/models, you must include the model instruction name for "ns-train model" in https://github.com/dberga/nerfstudio/blob/main/nerfstudio/configs/method_configs.py

Added Ha-Nerf model definitions and imported main modules from official repo
https://github.com/dberga/nerfstudio/commit/283511a2ecfe4101177a8c7409c8896d821eaf17
Taken Vanilla Nerf definition and added appearance field (using E_attr) and occlusion (implicit_mask).
See ha-nerf definition using vanilla-nerf structure and added ha-nerf fields / modules:
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/models/ha_nerf.py
See imported functions here:
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/field_components/hallucidated.py
See field definitions here:
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/fields/ha_nerf_field.py
See execution config (and default params, defined keyword for ns-train as "ha-nerf"):
https://github.com/dberga/nerfstudio/blob/main/nerfstudio/configs/method_configs.py
Pending / to do:
-Remake field definitions (./nerfstudio/fields/ha_nerf_field.py)
-Update ./nerfstudio/models/ha_nerf.py usage

repo: dberga/nerfstudio


text:
Length of password

Prompt user asking length of password and validate answer.
Valid answers are 8-128 inclusive
Repeat prompt if an invalid answer is given.

Get and validate user input for password length - 8 to 128 characters

repo: dbrainz/password-gen


text:
[Expandable] + scriptableObject array with propertyDrawer == Sometimes height not updated.

Hi,
I have an array of scriptableObjects (which have custom propertyDrawers) that has the [Expandable] attribute, which works correctly most of the time.
But if the size of the property drawer changes, without direct interaction from the user, the height of it does not change in the inspector and the new ui-elements in the propertyDrawer overlap the following ui-elements from the next scriptableObject.
This happens only sometimes. If the user is typing in a textField, which triggers a new height, then it works. But, for instance, copy&paste does not properly work.
And it only happens in the scenario with an array of scriptableObjects. If the [Expandable] tag is on a single scriptableObject (with the propertyDrawer) then it work fine.
Example:

I seem to be mistaken.
I just found out, that it is, in fact, Unity itself that also has this behaviour. If I just put the PropertyDrawer property itself in a normal unity array, it exhibits the same erroneous missing retrieval of the propertyHeight. No [Expandable] required...
So, if it is a bug, it is one NaughtyAttributes inherits from Unity and is therefore not relevant as an issue here.
I will close the Issue,
Have a nice day!

repo: dbrizov/NaughtyAttributes


text:
get_columns_in_relation crashes if table does not exist in Glue

Problem
https://github.com/dbt-athena/dbt-athena/blob/458ebc1e255041fe72a5b0d2e8eeedc2448bd32f/dbt/adapters/athena/impl.py#L683-L686
Prior to #174, calling adapter.get_columns_in_relation() would query information_schema.columns and return nothing if the table did not exist in information_schema. As of #174, a non-existing table instead causes a runtime error/crash.
Suggested Fix
When the table doesn't exist in Glue, return an empty list.
Also review other places in code updated by #174 to see if they are backwards-compatible with prior behavior and/or need to appropriately detect and handle boto3 errors.
To Reproduce
Sample model (owen.sql)
{% set column_names %}
  {{ adapter.get_columns_in_relation(this) }}
{% endset %}

select '{{column_names}}' as column_name_str

Compiled output (pre-#174)
select '
  []
' as column_name_str

Compiled output
None, because the project errors out during compilation
13:55:01  Unhandled error while executing model.test.owen
An error occurred (EntityNotFoundException) when calling the GetTable operation: Table owen not found.

Good catch @owenprough-sift.
Are you willing to submit a pr? Something like that might work - we could add an helper function as well.
try:
    table = glue.get_table(DatabaseName='nicola', Name='my_table')
except ClientError as e:
    if e.response['Error']['Code'] == 'EntityNotFoundException':
        logger.debug('table not exist, catching the error')
        return []
    else:
        logger.error(e)
        raise e

repo: dbt-athena/dbt-athena


text:
run_query works in run-operation mode but doesn't seem to work during dbt_project.yaml querying

Describe the bug
I have a case where I'm trying to get the users roles from the database when dbt runs (in either compile/run mode).  I have a macro called get_user_roles and have added the following to my dbt_project.yml
models:
   vars:
     USER_ROLES: {{ get_user_roles() }}

When I execute dbt run or dbt compile, dbt does connect to the database but it does not return any results from the run_query command in my macro.  If I run the same macro in run-operation mode it works just fine.
Was trying to see if there was any documentation to say when run_query works or doesn't work but was unable to find it.
Steps To Reproduce
models:
   vars:
     MY_VAR: {{ run_query('select 1 as one') }}

The value of MY_VAR should be the result of the query but instead it's None
Expected behavior
Expected dbt to connect to the database and execute the query
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
Which database are you using dbt with?

[ ] postgres
[ ] redshift
[ ] bigquery
[x] snowflake
[ ] other (specify: ____________)

The output of dbt --version:
installed version: 0.14.2
   latest version: 0.14.2

The operating system you're using:
OSX
The output of python --version:
Python 3.7.3
Additional context
Add any other context about the problem here.

Hey @whisperstream - this won't work for two reasons:

macros are not loaded into the dbt context when the dbt_project.yml file is being evaluated
dbt doesn't run queries during "parsing", which is when the dbt vars are evaluated

The first item here is subject to change, but the second one probably is not. Can you tell me more about why you're storing the results of this query in a dbt variable? Is it to cache the results so they can be used across multiple different models? If so, there might be alternative ways to accomplish this that we can explore!

Yes, am trying to cache the results, again all this goes back to solving for having different roles access different parts of the dbt model.
In order to rewrite the models correctly (as discussed here: https://github.com/fishtown-analytics/dbt/issues/1695#issuecomment-523743831) I'm trying to figure out which roles the user has. (because I need to know in my xref function).  So was hoping I could get them as early as possible by storing it in a value in the dbt_projects.yml file.

Any other alternatives are greatly welcomed :)

Ok - thanks for that context! It's hard for me to remember which issues are correlated - I appreciate you referencing #1695 here!
I think that it would be totally reasonable for something like this to work in dbt:
models:
   vars:
     MY_VAR: {{ run_query('select 1 as one') }}

Unfortunately, there's a whole lot of bootstrapping that dbt needs to do at startup, and at the point where the models: block is evaluated, dbt doesn't yet know anything macros (including run_query()) or your database connection. While I hope that we can support something like this in the future, I'm unsure that we're going to be able to get there any time particularly soon.
A much more direct path to supporting this type of use case would be to provide an arbitrary key/value cache in the dbt context. I think we'd just need to expose a dictionary context variable, called run_cache, which could be manipulated and read by models. This might look like:
{% macro get_permissions() %}

    {% if run_cache.get('permissions') %}
        {{ log("cache hit!") }}
    {% else %}
        {{ log("Running query!") }}
        {% set permissions = run_query('select 1 as id') %}
        {% do run_cache.update({'permissions': permissions}) %}
    {% endif %}

    {% do return(run_cache.get('permissions')) %}

{% endmacro %}

So, the first time you call get_permissions, dbt will execute a query, populate the cache, and return the results. In subsequent calls to get_permissions, dbt will just return the value directly from the cache.
There are other ways to implement something like this too -- the run_query macro could accept a cache boolean argument which would cache the query results for the given SQL statement. If an identical SQL statement is made, then dbt could return the cached results instead of re-querying the database.
Both of these are interesting  ideas, but there's one very big problem: they don't play well with parallelism. If you run 8 dbt models at in parallel, all of which call the get_permissions macro at the same time, then they will all end up querying the database and overwriting the cache 8 times over. That might be appropriate for certain use cases, but it's not a very good general solution to this problem.
So, this is all to say: the thing you want to do is reasonable, but we don't have a great answer for how to address it in dbt today. In general, the problem is that the state that dbt needs to operate on lives in your database, and not inside of a dbt resource. This is definitely reasonable (and almost necessary) for permissions, but it's not really a pattern that we've designed for explicitly.
Curious to hear what you think about all this!

I am trying to create a database clone before all models start. Models are supposed to use that clone as a target. I can not achieve this with "on-run-end" for the reason explained above. I am trying to do  blue-green flow, where a clone is temporally created as stage database.

authors: LVHermosa drewbanin whisperstream

repo: dbt-labs/dbt-core


text:
Getting "RuntimeError: reentrant call inside <_io.BufferedWriter name='logs/dbt.log'>" when running dbt test concurrently

Describe the bug
I'm not sure if it's the upgrade to 0.19.1 from 0.17.0 or setting concurrency to 30 (probably the latter), but started getting Python errors from dbt when running tests. Luckily the tests themselves continue running correctly, but I'm guessing the log file would be messed up. Doesn't happen on every run (approximately every 20th or so), likely a race condition.
Steps To Reproduce
Run dbt --log-format json test with 30 threads.
Expected behavior
Concurrency handled correctly.
Screenshots and log output
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/logbook/handlers.py", line 216, in handle
    self.emit(record)
  File "/usr/local/lib/python3.7/site-packages/dbt/logger.py", line 458, in emit
    super().emit(record)
  File "/usr/local/lib/python3.7/site-packages/logbook/handlers.py", line 840, in emit
    if self.should_rollover(record, len(msg)):
  File "/usr/local/lib/python3.7/site-packages/logbook/handlers.py", line 818, in should_rollover
    self.stream.seek(0, 2)
RuntimeError: reentrant call inside <_io.BufferedWriter name='logs/dbt.log'>

System information
Which database are you using dbt with?

[ ] postgres
[ ] redshift
[x] bigquery
[ ] snowflake
[ ] other (specify: ____________)

The output of dbt --version:
installed version: 0.19.1
   latest version: 0.19.1

Up to date!

Plugins:
  - bigquery: 0.19.1
  - snowflake: 0.19.1
  - postgres: 0.19.1
  - redshift: 0.19.1

The operating system you're using:
Debian GNU/Linux 10 (buster)
The output of python --version:
Python 3.7.10

Hey @daaain, I have to imagine this is related to running with a large number of threads, all of which are trying to write to logs/dbt.log. It looks like the actual error is being tripped by the logbook package [here]((https://github.com/getlogbook/logbook/blob/3e0badb395ed8d0038d02996d38aa0505441327e/logbook/handlers.py#L817-L819), within its logic to detect log file size and rotate to a new log file if needed.
It also sounds like a known issue with python, signal handlers, and IO: https://bugs.python.org/issue24283. Apparently, it was broken in python2, too, but the error message is new in python3.
My instinct is that this isn't something we can readily fix with a code change within dbt. This is definitely not my area of expertise, though, so I'm willing to leave the issue open and see if anyone else has a solid proposal. For what it's worth, it isn't a bug I was able to reproduce myself, either: I ran dbt --log-format json --threads 30 in a project with 450+ tests, and never saw this error.

Thanks a lot for the reply!
Right, that makes sense, so it's quite a fundamental Python issue and the crash itself is in a dependency so I agree, doesn't sound like something easy to fix in dbt as is.
I had one thought though, so the issue is very likely due to all the threads writing in the same log file, which is not just an IO issue, but I think also a usability one as the log messages from different threads are all interspersed. So maybe something to consider could be an option to write a log file for each thread, which could solve both issues? And if a single log file is important for compatibility, all the individual ones could be merged after all threads finished.

That's a possibility. The logbook method that trips this error definitely seems related to writing the log file. The thing that gives me pause is, the reproduction case linked in that python bug doesn't seem to involve file IO at all—it's just printing to stdout. From my (very limited) knowledge of this stuff, I'm not sure if writing to more files would solve this for us?
One more thing that gives me pause:
https://github.com/fishtown-analytics/dbt/blob/c794600242e734d870d4bf1c8fb4c0349ab961eb/core/dbt/logger.py#L452-L453
As it is, we may not be sticking with logbook forever, so safer thread handling may be on wish list when we look into other potential logging packages (https://github.com/fishtown-analytics/dbt/issues/3359).

OK, if there's some upcoming work on rewriting logging anyway then this doesn't really worth bothering with, unless someone comes along and knows exactly what one-liner change can fix it 😹

I've got 8 threads and just observed this with dbt compile in a CICD pipeline for the first time ever out of hundreds of runs. Seems like a once in a long while fluke error.

This seems eerily similar to https://github.com/getlogbook/logbook/issues/136 I'd like this open

This issues still exist:
RuntimeError: reentrant call inside <_io.BufferedWriter name='/tmp/auto-sklearn_tmp_55ed1e22-1398-11ed-ad47-00163e9cfb76/AutoML(1):55ed17be-1398-11ed-ad47-00163e9cfb76.log'>

RuntimeError: reentrant call inside <_io.BufferedWriter name=''>
idem

@waflessnet Which version of dbt-core are you using? Since v1.0, we no longer use logbook for the default logging system. (For compatibility with some preexisting systems, it's still possible to use logbook by explicitly enabling "legacy logging": DBT_ENABLE_LEGACY_LOGGER=1.)

authors: VillageDeveloper2019 daaain jtcohen6 muscovitebob visch waflessnet


text:
[Fix] safe version attribute access in _check_resource_uniqueness

resolves https://github.com/dbt-labs/dbt-core/issues/7375

Description

Checklist

[ ] I have read the contributing guide and understand what's expected of me
[ ] I have signed the CLA
[ ] I have run this code in development and it appears to resolve the stated issue
[ ] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[ ] I have run changie new to create a changelog entry

@MichelleArk I'd be supportive of backporting this to 1.5.latest, if you think we should

Definitely! Thanks for the reminder 🙏


text:
databricks sample SQL has a dot before the schema name

Describe the bug
When using the dbt-databricks adapter, the Sample SQL generated by dbt-docs (core version v1.0.1) contains a dot before the relation name, Yikun Song reports on dbt Slack. This makes the query invalid.
SELECT
...
FROM .clean__schema_name.table_name

Expected behavior
The relation should be referenced without the leading dot, as e.g. FROM clean__schema_name.table_name
Why is this happening?
As Benoit says

There is a dot because normally dbt is providing the format database.schema.table but I think that databricks/spark do not use a concept of database

The generateSourceSQL function in code_service.js has the faulty logic:
var rel = [model.database, model.schema, model.identifier || model.alias || model.name].join(".");
Suggested fix
As a fix, I’d suggest using the relation-building logic seen in table_details.js: https://github.com/dbt-labs/dbt-docs/blob/5f791fe466906df556855b0f2ac2fd9ff29019fc/src/app/components/table_details/table_details.js#L81-L95

@martinburch this is a stellar write up!  Thank you for taking the time to figure out where the problem was coming from and even coming up with a solution!
I saw in the slack thread you don't have the time to contribute this PR.  If you change your mind or if anyone else from the community is up for it, we would welcome a PR to fix this.  You seem to have covered what needs to happen to fix this.

authors: emmyoop martinburch

repo: dbt-labs/dbt-docs


text:
[Feature] Improve yml readability

Describe the feature
Structure the yml so that it matches the dbt Cloud UI.
Currently, the generated yml files are sorted alphabetically, so it took me a while to decypher what part of the yaml was responsible for what part of dbt Cloud job configuration. If you structure the yml in a way that it matches the dbt Cloud UI, it is easier to understand.
Example of re-ordered yaml:
jobs:
  build:
    account_id: 1
    project_id: 2
    environment_id: 3
    linked_id: 4

    # Job Settings
    job_type: scheduled
    name: prod - scheduled build
    description: Scheduled build job on prod

    # Execution settings
    run_generate_sources: false
    execute_steps:
      - dbt build
    generate_docs: true

    # Triggers
    triggers:
      github_webhook: false
      git_provider_webhook: false
      schedule: true
      on_merge: false

    schedule:
      cron: "0 4,9,13 * * 0,1,2,3,4,5,6"

    triggers_on_draft_pr: false
    job_completion_trigger_condition:

    # Advanced settings
    custom_environment_variables: []
    settings:
      threads: 4
      target_name: "prod"
    execution:
      timeout_seconds: 0

    dbt_version:  #  Inherited from environment

    deferring_job_definition_id:  # we defer to this environment instead
    deferring_environment_id: 3
    run_compare_changes: false
    compare_changes_flags: --select state:modified

Who will this benefit?
Anyone that wants to match the yaml to the outcome (job configuration) in dbt Cloud.
Are you interested in contributing this feature?
Perhaps if you agree that this is a good idea, we could chat about how to go about this

That's interesting. Could you please mention

what exact command you are running
what Python version you are using

I just tried the command dbt-jobs-as-code import-jobs --account-id 12 --project-id 23 --include-linked-id on my side and I am getting the YML file ordered as in the Pydantic definition, not alphabetically
...
  import_5:
    linked_id: 1234
    account_id: 12
    project_id: 23
    environment_id: 34
    dbt_version: versionless
    name: PROD - Full deploy
    settings:
      threads: 4
...

Ha, thank you for this! I must have mis-remembered then. My point was more that I had some trouble the first time I looked at the output, trying to link it to the UI.
Like, in your example, dbt_version is before name, while in the UI, dbt_version is the second to last thing on the page

authors: b-per tim-steinkuhler

repo: dbt-labs/dbt-jobs-as-code


text:
Remove legacy time spine warning message

Resolves # SL-2934
Description
This PR removes the legacy time spine configuration warning in order to make the warning appear in dbt-core as a behavior change instead.
Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have run changie new to create a changelog entry

Actually, we shouldn't do the production release until after code freeze, since mantle could pick up the new version.

authors: DevonFulcher courtneyholcomb

repo: dbt-labs/dbt-semantic-interfaces


text:
Create survey for user feedback after Coalesce

Internal project
Contributions

[X] I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates
Survey readers to obtain feedback on the Docs site: https://docs.getdbt.com/docs/
What part(s) of the page would you like to see updated?
Leona will reach out to Emily to create some docs surveys to capture user feedback post coalesce. Surveys can include user feedback on sidebar landing pages and other structured questions
Additional information
No response

Closing because we've launched a new user research program

authors: nghi-ly runleonarun


text:
Add filter examples to metrics

Description & motivation
This metrics documentation is largely a copy-paste from the parent GH spec, and said "see below" for filter examples but there was no below. Now there is.
@drewbanin a couple of questions where the implementation diverged from the spec:

Is operator always required, or is it assumed to be "=" if not specified?
for is_paying is true, is "is" required as an operator, and would it need to be " is "? (The latter in particular would be icky)
1.0.0-rc1 rejected true without quotes because True is not of type 'string'. Likewise for ltv >= 100. Is that overly aggressive type expectations? (cc @jtcohen6 - I can open an issue on the core repo if so)

Pre-release docs
Is this change related to an unreleased version of dbt?

[x] Yes: please

update the base branch to next
add Changelog components: <Changelog>[New/Changed] in v0.x.0</Changelog>
add links to the "New and changed documentation" section of the latest Migration Guide

[ ] No: please ensure the base branch is current
[ ] Unsure: we'll let you know!

@joellabes Thanks for playing around with metrics, and for the great feedback!

This metrics documentation is largely a copy-paste from the parent GH spec, and said "see below" for filter examples but there was no below.

You caught me :)
Quick answers from my perspective:

Is operator always required, or is it assumed to be "=" if not specified?

There's no default defined within dbt, and this is a required property, so it will raise an error if not provided. A downstream tool or macro which leverages this metric definition could assume a default operator when not provided, but I could also imagine a filter like this, given that (on many databases) where is_bool_col is valid shorthand for where is_bool_col is true:
      filters:
        - field: is_bool_col
          operator: ""
          value: ""

for is_paying is true, is "is" required as an operator, and would it need to be " is "? (The latter in particular would be icky)

I think the spacing would be the responsibility of the downstream tool / macro. Hopefully they'd be kind enough to template the query like:
where
{% for filter in filters %}
    {{ filter.field }} {{ filter.operator }} {{ filter.value }}
    {{ "and" if not loop.last }}
{% endfor %}

1.0.0-rc1 rejected true without quotes because True is not of type 'string'. Likewise for ltv >= 100. Is that overly aggressive type expectations?

Yes, that's an open TODO right now. I think we encountered validation issues with making this accept absolutely Anything, but I think we could change it to accept any reasonable data type:
    value: Union[str, int, float, bool]

It's definitely workable to just use strings ('true', '100') in the meantime, but I think this would be an uncontroversial improvement. Mind opening an issue for it? (Note to self: this would constitute an artifact schema change, and require us to update manifest v4 at /schemas.getdbt.com.)

There's no default defined within dbt, and this is a required property, so it will raise an error if not provided

Lovely! I'll update these docs accordingly.

It's definitely workable to just use strings ('true', '100') in the meantime, but I think this would be an uncontroversial improvement

Yeah it'd be good to open it up ASAP, because otherwise we'll need to document it as "put everything in quotes, and your strings in "'double quotes'" so that one set of quotes makes it through to Jinja", right?

Mind opening an issue for it?

https://github.com/dbt-labs/dbt-core/issues/4294

@runleonarun could you have a peek at this too please?


text:
Add a readme for the firmware folder

Add a readme to the firmware folder that explains what each app does, and whether they work with the current board design.

This one can be closed too, right?

Yes!

Closing then.

authors: danecreekphotography dbuchwald


text:
reworked unittests

https://github.com/dcarp/cmake-d/pull/23
there is still a small thing I don't get away. doesn't affect the functionality is just about the if you asked

Unfortunately with this PR the tests don't run anymore :(. Please verify it with cd tests && ./run_tests_linux.sh.

Today I fear I wont. Tomorrow.

updated, there should be a commit from today. ./run_tests_linux.sh is working for me

authors: RalphBariz dcarp

repo: dcarp/cmake-d


text:
need  Attitude and Type to generate TAK types

This is Corvo from FreeTAKServer's project.
We got some request to  transform RedMap this into a full TAK client
so if you ware willing to implement some functions I will take over the implementation of the API
the main functionality is to be able to create the different types of drop points (friendly, Hostile, neutral and unknow)
when a marker is clicked, depending from the status of 2 buttons attitude  and Type are set
{ "action": "click", "name":"Putin", "layer":"gps", "attitude": "hostile", "Type": "Sniper", "icon":"male", "iconColor":"blue", "lat":38.889, "lon":-77.0104 }

Based on that I can send to the FTS rest API a message like this:
{
"longitude": -77.0104,
"latitude": 38.889,
"attitude": "hostile",
"geoObject": "Gnd Combat Infantry Sniper",
"how": "nonCoT",
"name": "Putin",
"timeout": 600
}

Hi,  great to see you.
When you right click on the map to create an icon

you can type in the name , then the icon - which can be a SIDC code (or short part thereof) eg  Dave,SFGPU to create

or Corvo,SSAPMF for a fixed wing enemy aircraft

You can usually change SIDC codes into COT codes  quite easily I think
SFGPU -> a-f-G-U
SSAPMF -> a-h-A-M-F
Is that OK ?

I have pushed a change so that that if you are online the  "form" now looks like

v2.21.8

The other way to do it is to re-write the right click menu to be whatever you want - eg a simple form

msg.payload = { command: {
contextmenu: String.raw`
Text <input type="text" id="sometext" value="hello">

Number <input type="number" id="somenum" value="5">

<input type="button" value="Send" onclick=
'feedback("myform",{
    "st":document.getElementById("sometext").value,
    "sn":document.getElementById("somenum").value,
})'
>
`
}}
return msg;

Example
[{"id":"7351100bacb1f5fe","type":"function","z":"4aa2ed2fd1b11362","name":"","func":"msg.payload = { command: {\ncontextmenu: String.raw`\nText <input type=\"text\" id=\"sometext\" value=\"hello\">
\nNumber <input type=\"number\" id=\"somenum\" value=\"5\">
\n<input type=\"button\" value=\"Send\" onclick=\n'feedback(\"myform\",{\n    \"st\":document.getElementById(\"sometext\").value,\n    \"sn\":document.getElementById(\"somenum\").value,\n})'\n>\n`\n}}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":360,"wires":[["a6a82f2e8efc44fc"]]},{"id":"7b595f0c8f6ac710","type":"worldmap in","z":"4aa2ed2fd1b11362","name":"","path":"/worldmap","events":"connect","x":195,"y":360,"wires":[["7351100bacb1f5fe"]]}]

sends

thanks, this is technically feasible, however it's not very comfortable for end users in a TAK scenario of Emergency.
What I wonder is if we can have a new layer, with a toolbox containing the basic types and attitude. As soon the toolbox is activated, a new element is created with auto-name (Sniper1, sniper2, etc).
The name can be edited later if necessary.
It's feasible?

That still "feels" like a custom contextmenu - albeit a somewhat more complex one than the example above... Let me see if I can create one.

Maybe something like
[{"id":"7351100bacb1f5fe","type":"function","z":"4aa2ed2fd1b11362","name":"","func":"msg.payload = { command: {\ncontextmenu: String.raw`\n

\nAttitude	<select id=\"myatt\">\n  <option value=\"friend\">Friend</option>\n  <option value=\"hostile\">Hostile</option>\n  <option value=\"neutral\">Neutral</option>\n  <option value=\"unknown\">Unknown</option>\n  <option value=\"pending\">Pending</option>\n  <option value=\"suspect\">Suspect</option>\n  <option value=\"assumed\">Assumed Friend</option>\n  </select>	\n

\nType	<select id=\"mytyp\" value=\" \" onchange=\"document.getElementById('mynam').value = this.value+'-'+parseInt(Math.random()*9999);\">\n  <option value=\"Rifleman\">Rifleman</option>\n  <option value=\"Grenadier\">Grenadier</option>\n  <option value=\"Mortar\">Mortar</option>\n  <option value=\"Medic\">Medic</option>\n  <option value=\"Teamleader\">Team Leader</option>\n  <option value=\"Hq\">HQ</option>\n  <option value=\"Sniper\">Sniper</option>\n  <option value=\"Recon\">Recon</option>\n  <option value=\"RTO\">RTO</option>\n  <option value=\"K9\">K9</option>\n</select>	\n

\nTimeout	<input type=\"number\" id=\"mytout\" step=\"10\" value=\"300\">S	\n

\nName	<input type=\"text\" id=\"mynam\">	\n

\n<input type=\"button\" value=\"Send\" onclick=\n'feedback(\"myform\",{\n    \"attitude\":document.getElementById(\"myatt\").value,\n    \"geobject\":document.getElementById(\"mytyp\").value,\n    \"timeout\":document.getElementById(\"mytout\").value,\n    \"name\":document.getElementById(\"mynam\").value,\n})'\n>	\n

\n`\n}}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":315,"y":90,"wires":[["a6a82f2e8efc44fc"]]}]

Works now, will be included in the next release of FreeTAKServer!

More TAK like

[{"id":"7351100bacb1f5fe","type":"function","z":"bf6c9dc1a5062a3a","name":"add marker","func":"msg.payload = { command: {\ncontextmenu: String.raw\n

\nAttitude	<select id=\"myatt\" style=\"width:153px;\" onchange=\"document.getElementById('mynam').value = this.value.substr(0,1).toUpperCase()+'.'+(new Date()).getDate()+'.'+(new Date()).getHours().toString().padStart(2,'0') + (new Date()).getMinutes().toString().padStart(2,'0') + (new Date()).getSeconds().toString().padStart(2,'0');\">\n  <option selected=\"true\" style=\"display:none;\">Please select</option>\n  <option value=\"friend\">Friend</option>\n  <option value=\"hostile\">Hostile</option>\n  <option value=\"neutral\">Neutral</option>\n  <option value=\"unknown\">Unknown</option>\n  <option value=\"pending\">Pending</option>\n  <option value=\"suspect\">Suspect</option>\n  <option value=\"assumed\">Assumed Friend</option>\n  </select>	\n

\nType	<select id=\"mytyp\" style=\"width:153px;\">\n  <option selected=\"true\" style=\"display:none;\">Please select</option>\n  <option value=\"Rifleman\">Rifleman</option>\n  <option value=\"Grenadier\">Grenadier</option>\n  <option value=\"Mortar\">Mortar</option>\n  <option value=\"Medic\">Medic</option>\n  <option value=\"Teamleader\">Team Leader</option>\n  <option value=\"Hq\">HQ</option>\n  <option value=\"Sniper\">Sniper</option>\n  <option value=\"Recon\">Recon</option>\n  <option value=\"RTO\">RTO</option>\n  <option value=\"K9\">K9</option>\n</select>	\n

\nTimeout	<input type=\"number\" id=\"mytout\" step=\"10\" value=\"300\"> s	\n

\nName	<input type=\"text\" id=\"mynam\">	\n

\n<input type=\"button\" value=\"Send\" onclick=\n'feedback(\"myform\",{\n    \"attitude\":document.getElementById(\"myatt\").value,\n    \"geobject\":document.getElementById(\"mytyp\").value,\n    \"timeout\":document.getElementById(\"mytout\").value,\n    \"name\":document.getElementById(\"mynam\").value,\n},\"FTS\",true)'\n>	\n

\n\n}}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":430,"y":330,"wires":[["6a201cf14cdeec50","12bddd2f58f614df"]]}]

authors: brothercorvo dceejay

repo: dceejay/RedMap


text:
Fixes "Content-Type"encoding according to standard. Fixes #30

Fixes issue #30

Thanks for the fix! 👍

authors: Dev-Now pieper

repo: dcmjs-org/dicomweb-client


text:
Prevent vertical tab menu from shrinking and increase its width

This PR prevents the vertical tabbed menu from shrinking and increases its width.

retest this please

Can one of the admins verify this patch?

Rebased that for you, works! ✨

LGTM Merge after 💚 💡 !

mesosphere-ci retest this please 🙏

authors: Poltergeist jfurrow mesosphere-ci nLight orlandohohmeier

repo: dcos/dcos-ui


text:
Update CoreOS to 1465.8.0 (latest stable)

High Level Description
Update CoreOS AMIs
Related Issues

update CoreOS in DC/OS to latest stable https://jira.mesosphere.com/browse/QUALITY-1577
part of  'Infrastructure for 1.10.1 and 1.10.2 platform requests' https://jira.mesosphere.com/browse/QUALITY-1525
blocked by https://jira.mesosphere.com/browse/COPS-396

Checklist for all PR's

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[ ] Read the DC/OS contributing guidelines
[ ] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and Review Process
What is the review process and when will my changes land?
All PRs require 2 approvals using github's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

@mesosphere-mergebot bump-ee

@sschneid do we need to revive this?

authors: jgehrcke margaret

repo: dcos/dcos


text:
java: bump java package to the latest patchlevel

High-level description
This PR bump Java to the latest patchlevel.
Corresponding DC/OS tickets (obligatory)

DCOS-19649 Update DC/OS Java JDK 8 to latest version (DC/OS 1.9.6)

Related PRs:
EE Bump: https://github.com/mesosphere/dcos-enterprise/pull/1759

@mesosphere-mergebot bump-ee

teamcity/dcos/test/aws/cloudformation/simple failure reported in slack: https://mesosphere.slack.com/archives/C5U03P5T6/p1511449368000451 Will create a jira if necessary

@mesosphere-mergebot pr-status-checks


text:
openssl: bump to 1.0.2n

This bumps OpenSSL from 1.0.2k to 1.0.2n in 1.11.
The related PR for 1.10: https://github.com/dcos/dcos/pull/2548
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:
https://jira.mesosphere.com/browse/DCOS_OSS-1903
Checklist for all PRs

[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label Ready for Review

Yes, here's the PR for the master: https://github.com/dcos/dcos/pull/2612

@mesosphere-mergebot bump-ee

Closing this PR in favor of https://github.com/dcos/dcos/pull/2634. Please see https://jira.mesosphere.com/browse/DCOS_OSS-1903 for details.


text:
[1.12] Flaky test_metrics.deploy_and_cleanup_dcos_package

High-level description
Fixes to integration test to avoid flakes. Upped the teardown retry time periods to 15min (matched timing intervals in DCOS EE tests that included an sdk framework install/uninstall test).
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS_OSS-4568 test_metrics.deploy_and_cleanup_dcos_package Framework hello-world still running

Checklist for all PRs

[x] Added a comprehensible changelog entry to CHANGES.md or explain why this is not a user-facing change:
[x] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label Ready For Review

@janisz @philipnrmn @branden this is ready for 👀


text:
Bug: Changing username leads to 404

Reproduce

New account
Change username
Click save
Go to the top right profile link
Click, 404
See that the href is the only one

Manually browse to https://peated.com/users/$new_username
$$$

Need to repro in production, but maybe this coincidentally fixed itself with the tRPC conversion. I dont think the code paths should have changed to re-bind the current session data, but it at least appears to work in dev for me. I tried real quick on prod and it seemed to work too. Possible there's more to it than this, but at least for now we'll assume this was fixed w/ the massive API rewrite.

authors: JacobCoffee dcramer

repo: dcramer/peated


text:
🛑 Danbs is down

In c50e5e4, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 172 ms

Resolved: Danbs is back up in 5253758 after 6 minutes.

repo: ddanbs/upptime


text:
🛑 Danbs is down

In 701abb6, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 130 ms

Resolved: Danbs is back up in b09ac3a.


text:
🛑 Danbs is down

In 231cfc5, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 186 ms

Resolved: Danbs is back up in a061fa7.


text:
🛑 Danbs is down

In c03973f, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 120 ms

Resolved: Danbs is back up in 6f4da13.


text:
🛑 Danbs is down

In 780460f, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 138 ms

Resolved: Danbs is back up in 43d3ffe.


text:
🛑 Danbs is down

In 566042e, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 180 ms

Resolved: Danbs is back up in d637ec8.


text:
🛑 Danbs is down

In 3f4fa9a, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 179 ms

Resolved: Danbs is back up in 111677d.


text:
🛑 Danbs is down

In c8ce0e3, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 190 ms

Resolved: Danbs is back up in 902c122.


text:
Custom Slider

Do you have an example on how to create a custom component?
I would like to create a custom slider that looks like the ios one from the material-ui
https://material-ui.com/components/slider/

Hello @marcelomanzo ,
Here is an example for you
import remi.gui as gui
from remi import start, App
import os

class SvgDraggablePoint(gui.SvgCircle):
    def __init__(self, x, y, radius, *args, **kwargs):
        super(SvgDraggablePoint, self).__init__(x, y, radius, *args, **kwargs)
        self.radius = radius
        self.active = False

    def start_drag(self, emitter, x, y):
        self.active = True

    @gui.decorate_event
    def stop_drag(self, emitter, x, y):
        self.active = False
        return ()

    def on_drag(self, emitter, x, y):
        if self.active:
            self.set_position(x, self.attributes['cy'])

class SvgSlider(gui.Svg):
    def __init__(self, value, _min, _max, step, _width, _height, *args, **kwargs):
        super(SvgSlider, self).__init__(width=_width, height=_height, *args, **kwargs)
        self.min = _min
        self.max = _max
        self.step = step
        self.width = int(_width)
        self.height = int(_height)

        self.horizontal_line = gui.SvgRectangle(self.height/2,self.height/2-2, self.width-self.height, 2)
        self.horizontal_line.set_fill('gray')
        self.horizontal_line.set_stroke(1, 'lighgray')

        self.pointer = SvgDraggablePoint(self.width/2, self.height/2, self.height/2)
        self.pointer.set_fill('lightblue')
        self.pointer.set_stroke(1, 'lightgray')
        self.onmousedown.connect(self.pointer.start_drag)
        self.onmouseup.connect(self.pointer.stop_drag)
        self.onmouseleave.connect(self.pointer.stop_drag, 0, 0)
        self.onmousemove.connect(self.pointer.on_drag)

        self.append([self.horizontal_line, self.pointer])
        self.pointer.stop_drag.connect(self.onchange)

        self.set_value(value)

    @gui.decorate_event
    def onchange(self, emitter):
        self.set_value( round(((float(self.pointer.attributes['cx'])-self.pointer.radius)*(self.max-self.min)/(self.width-self.pointer.radius*2) + self.min)/self.step,0)*self.step )
        return (self.value, )

    def set_value(self, value):
        self.value = max(self.min, value)
        self.value = min(self.max, self.value)
        self.pointer.attributes['cx'] = str(int((self.value-self.min)*(self.width-self.pointer.radius*2)/(self.max-self.min))+self.pointer.radius)

    def get_value(self):
        return self.value

class MyApp(App):
    def main(self):
        self.page.children['body'].style["touch-action"] = "none"

        #creating a container VBox type, vertical (you can use also HBox or Widget)
        main_container = gui.VBox(width=300, height=200, style={'margin':'0px auto'})

        self.label = gui.Label("slider value: 10")

        self.slider = SvgSlider(1, 0, 4, 1, 200, 50)
        self.slider.onchange.connect(self.on_slider_changed)

        main_container.append([self.label, self.slider])
        # returning the root widget
        return main_container

    def on_slider_changed(self, emitter, value):
        self.label.set_text("slider value: %s"%value)

if __name__ == "__main__":
    # starts the webserver
    start(MyApp, address='0.0.0.0', port=0, start_browser=True)

This sounds promising, thanks a lot!

authors: dddomodossola marcelomanzo

repo: dddomodossola/remi


text:
Eclipse V18

Hi Dominic, is CC Generator available for Eclipse V18?
Thanks

Hi there, we are on v18 and this script worked without recompiling. Are you running into an issue?

Hi Dominic, I downloaded the source code (you do not provide the compiled script dll right?) but using Visual Studio 2022 I cannot compile the solution because some files (like AriaConnection.cs) are missing. Am i doing something wrong?
Thanks!

When you downloaded the source did you pull from the "releases" section?
The OSU Helpers are required for building the application, and sounds like
those are missing from your build.
Written on my mobile device. Please excuse any typographical errors.
On Thu, Dec 19, 2024, 4:27 AM ste-agolabs @.***> wrote:

Hi Dominic, I downloaded the source code (you do not provide the compiled
script dll right?) but using Visual Studio 2022 I cannot compile the
solution because some files (like AriaConnection.cs) are missing. Am i
doing something wrong?
Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/ddicostanzo/CC-Gen/issues/2#issuecomment-2553179630,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE4YIFVKYZASYEIKTEZCMML2GKGP5AVCNFSM6AAAAABT2QTQPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJTGE3TSNRTGA
.
You are receiving this because you commented.Message ID:
@.***>

Hi Stefano, if you look in the project OSU_Helpers_Public, there are some files "Aria_Connection" among them that were purposefully excluded from the uploaded version. They show as dotted box outlines and aren't able to be found. If you exclude those from the project and try to build, I was able to get the released version to build. You can also build against the v18 ESAPI DLLs if you prefer. Hope this helps. I'll work on updating the release to rectify the problem.

Hi Stefano, I've updated the release to v1.0.1 to exclude the files and it should be able to be built now without issues. Thanks for bringing this up.

authors: ddicostanzo ste-agolabs

repo: ddicostanzo/CC-Gen


text:
Not working inside of a Animated.Text

Thanks for the library, I love it.
My issue is, when I wrap the TextTicker component with an Animated.Text, it doesn't animate as we expected
<Animated.Text  numberOfLines={1} style={[styles.headerTitle, { opacity: nameOpacity }]}  >
   <TextTicker
      style={{ fontSize: 24, color: 'white' }}
      duration={3000}
      loop
      bounce
      repeatSpacer={50}
      marqueeDelay={1000}
    >
        Super long piece of text is long. The quick brown fox jumps over the lazy dog.
    </TextTicker>
</Animated.Text>

I think I have messed up before. It works fine. Closing so

I think I have messed up before. It works fine. Closing so

repo: deanhet/react-native-text-ticker


text:
Elseif doesn't show the correct highlight color

It happens whenever I try to use elseif
Edit:

Hey there @Ssionn, I've just committed the fix for you :) Sorry I haven't been using the package much recently but I'll gladly fix any issues you find 👍

authors: Ssionn deanrumsby

repo: deanrumsby/tree-sitter-blade


text:
DBZ-685 Document MySQL session timeout

https://issues.jboss.org/browse/DBZ-685

Not strictly needed for 0.10.0.Final, but given it's docs only, I don't see any reason for deferring it.

Thx!

authors: gunnarmorling jpechane

repo: debezium/debezium


text:
DBZ-1752 Document DB2 Isolation modes properly

Document the DB2 snapshot isolation modes included in debezium/debezium-incubator#135

LGTM, thanks!

authors: gunnarmorling lga-zurich


text:
DBZ-2467 Bypass Java SSL cert issues

https://issues.redhat.com/browse/DBZ-2467

Merged, thx!


text:
DBZ-4173 add a new configuration to support restarting connectors

When source databases running in cloud platform - e.g. AWS RDS, it's often configured as automatic minor updates. So during maintenance window, AWS RDS PostgreSQL instance was possible to restart to apply updates. But for debezium, so far the default behavior was stopping the running connectors and they should be restarted manually. That means, debezium connectors need external interventions to guarantee the normal work. Otherwise, if it's ignored, the replication slots in PostgreSQL will burst the disk storage.
To resolve this issue, a new configuration item - database.auto.reconnect.on.failure was introduced, the default is false and it will keep the current behavior in debezium. But if it's configured to true, it then support restarting the failed connectors.

it will try to get charset from database and Hearbeat action would also perform, if during this time slot the database is not ready, both connections for these 2 cases can be established, and a 'DebeziumException' would be thrown.

@gengjie, can you share the stacktraces from this situation?

In fact, I am going to close this PR for now. I think this problem should be solved at the Kafka Connect level (see this discussion), in which case we should have a new PR for marking the right exceptions as retriable. For the time being, restart via an external monitoring solution is recommended. Thanks nevertheless, @gengjie!

authors: gengjie gunnarmorling


text:
add more socials

https://www.notion.so/hulking-cosmos-3e8/Q4-2024-QA-Requirements-13e2ee9c5bc280a88458e7a935d17488?pvs=4#13e2ee9c5bc280229892c0d678980b3e

@decentdao/engineering updates here:
https://www.figma.com/design/ur5hElxplkmlY9gnGKlwrm/Components-%26-Styles---Decent-Design-System-1.1.1?m=auto&node-id=2815-13056
Please note, there were some changes to the spacing of the button pills to the left of the endorsement

On mobile, I haven't yet nudged over those pills like they are on prod, so the only thing that needs to change there is the spacing between the elements and their order in the footer:

In addition, this update to the footer makes one additional change to the left side nav, removing the Warpcast link from there since it is now in the footer with the other socials:

Hey @DarksightKellar the text sizes on the Footer are all over the place. Could you please update them all to be labels.large? That is what is spec'd in designs.

closed.

repo: decentdao/decent-interface


text:
Fix original wearer bug

The dev team discovered a few bugs that will cause the wrong role member to be set in some scenarios, and in one instance, for an edited role to fail to transfer the hat back from the safe to the original/intended wearer.
This PR addresses those issues.

@DarksightKellar can you talk about the testing you did on these changes?

I didn't get the chance to arrange for testing these specific changes yet, especially as they were originally part of the larger fix streams race conditions effort which I've been focused on.
One of the bugs is ID'd here (bottom comment) though, and is expected to be fixed now with this update.


text:
Replacing Rainbowkit with Web3Modal

This PR contains following changes:

Replace RainbowKit with Web3Modal
Add HTTPS support for local dev server in order to overcome possible issues for local development
Implement trick to open web3 modal from 2nd attempt if 1st attempt fails (happens frequently both on local and deployed site)

Closes #1450
Moving further, we'll have to update web3Modal version to v4.x+ together with other web3 libraries (viem, wagmi, etc)
Testing

Connect your wallet through different wallet providers (MetaMask, CoinBase, Injected Wallet, WalletConnect)
Try to create any type of Safe (better to test with Multisig and Azorius ERC-20/ERC-721). Make sure safe is properly created
Try to create proposal for that Safe(s). Make sure proposal properly created
Try to vote on that proposal. Make sure vote appears right after you voted, breakdown updated properly, etc.
Try to execute that proposal

**1) Coinbase Wallet + Brave  **
Azorious

Try to create Azorious Safe = SUCCESS
Delegate vote = SUCCESS
Try to create proposal for that Safe(s). = SUCCESS
Try to vote on that proposal. Make sure vote appears right after you voted, breakdown updated properly, etc. = SUCCESS
Try to execute that proposal = SUCCESS

Multisig

Try to create Azorious Safe = SUCCESS
Try to create proposal for that Safe(s). = SUCCESS
Try to vote on that proposal. Make sure vote appears right after you voted, breakdown updated properly, etc. = SUCCESS
Try to execute that proposal = SUCCESS

**2) SafeUI +WC + Chrome  **
Azorious

create azoriuos safe - SUCCESS - no issue
Delegate vote = PARTIAL SUCCESS - issue - delegate vote toaster didn't remove by itself
Try to create proposal for that Safe(s). = PARTIAL SUCCESS - issue - 'creating proposal' toaster didn't remove- Try to vote on that proposal. = PARTIAL SUCCESS - issue - 'casting vote' toaster didn't remove by itself
Try to execute that proposal = PARTIAL SUCCESS - issue - 'casting vote' toaster didn't remove by itself

Multisig

create a safe - PARTIAL SUCCESS - initally safe app said 'failed - untrusted transaction' then weirdly it went through got this link - https://app.safe.global/transactions/tx?id=multisig_0xA3F3D0e6C7471e156D146dde09D336aE2a6091C5_0x845eeb01cff0891edb9cbc306bfc6f6cb64c513033cd02c8b1f83ebcba96f1de&safe=sep:0xA3F3D0e6C7471e156D146dde09D336aE2a6091C5
create a proposal - failed twice - for changing name and adding a signer - https://app.safe.global/transactions/messages?safe=sep:0xA3F3D0e6C7471e156D146dde09D336aE2a6091C5

here's the safe with the issues - https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0xa719FcC542a59A6C52b4C482e562334bF1aF9828

sign transaction - it said success in fractal and safe app but no signature actually made to pass transatciont. https://app.safe.global/transactions/messages?safe=sep%3A0xA3F3D0e6C7471e156D146dde09D336aE2a6091C5 ? https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x652A8159eCc60F63589FbE35FBDa0E77679BA70E/proposals/0x0f6d35d0da46b120f26aee9d853d198a21ae1d28ae7763dc26c10caf409f1119

**3) Metamask + Chrome  **
Azorious

Try to create Azorious Safe =SUCCESS
Delegate vote (azorius) = SUCCESS
Try to create proposal for that Safe(s). = SUCCESSS
Try to vote on that proposal. Make sure vote appears right after you voted, breakdown updated properly, etc  = SUCCESS
Try to execute that proposal = SUCCESS

Multisig

Try to create Azorious Safe = SUCCESS
Try to create proposal for that Safe(s). = SUCCESS
Try to vote on that proposal. Make sure vote appears right after you voted, breakdown updated properly, etc. = SUCCESS
Try to execute that proposal = SUCCESS

Note links to test safes
--> https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0xa719FcC542a59A6C52b4C482e562334bF1aF9828
--> https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x7DA5B360cf079b8c9A78F954cc7F01f94c21DA97
--> https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x5D1b267727eb4b84b5Ee9A1b481Ae0A0293C5e78
--> https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x652A8159eCc60F63589FbE35FBDa0E77679BA70E
--> https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x21d14603f1c55a5be95d49A47CF44707090332de
--? https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x652A8159eCc60F63589FbE35FBDa0E77679BA70E
--> https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x5De7c6164710DF979E73a7463E068f34589864dA
--> https://deploy-preview-1465.app.dev.fractalframework.xyz/daos/0x7DA5B360cf079b8c9A78F954cc7F01f94c21DA97

repo: decentdao/fractal-interface


text:
chore: Add trustbloc driver

closes #6
Signed-off-by: Firas Qutishat firas.qutishat@securekey.com

@peacekeeper


text:
Open settings > accounts to log in to your MAL account or swipe left on the anime info page and press login. On that page you can also set sync data, such as rating and progress once you have logged in.

Open settings > accounts to log in to your MAL account or swipe left on the anime info page and press login. On that page you can also set sync data, such as rating and progress once you have logged in.
Originally posted by @deceptions in https://github.com/deceptions/no/issues/20#issuecomment-924398354

Open settings > accounts to log in to your MAL account or swipe left on the anime info page and press login. On that page you can also set sync data, such as rating and progress once you have logged in.
Originally posted by @deceptions in #20 (comment)

Open settings > accounts to log in to your MAL account or swipe left on the anime info page and press login. On that page you can also set sync data, such as rating and progress once you have logged in.
Originally posted by @deceptions in #20 (comment)

Actually i logged in
But no option for mal sycn
Please fixed this
There's really no option

Like i said in my first message, swipe to the left on the anime info page, like discord, to open a panel for MAL sync.

Like i said in my first message, swipe to the left on the anime info page, like discord, to open a panel for MAL sync.

Now I'm feeling I'm a fool
Lol
Dev it's funny 🤣🤣🤣🤣

repo: deceptions/no


text:
Do not show Sony burst pattern folders as albums

Is your feature request related to a problem? Please describe.
When using Sony burst patterns, a subfolder in the usual directory is created containing folders for each "burst" photo taken. This will very quickly completely fill the albums-view, making it unusable (one folder/album per burst "photo").
Describe the solution you'd like
It would be awesome if aves did not show the burst photo folders as albums (if Sony burst patterns are enabled) instead concatenating the images into a single "burst" album, or the "root" album (the directory containing the "burst" folder such as "DCIM/PHOTOGRAPHY_PRO").
Describe alternatives you've considered
Maybe an option to group these albums is easier to implement, and nearly as effective.
Additional context
I have around 600 of these "albums" with about half only containing one picture (selected one to keep), which make it hard to find my ~10 legitimate albums.
Thanks for the best album app!

Duplicate:

#599

That issue was unlikely to be addressed, but I'm about to get a new phone, and it's a Sony. So i may address it if i find it annoying as well ^^

Ah sorry, missed that one!

authors: MrRinkana deckerst

repo: deckerst/aves


text:
invalid: wrike API 토큰이 유효하지 않음

What is this issue?

ethan이 생성한 wrike 토큰이 유효하지 않음

개인 계정에서 같은 방법으로 생성한 토큰은 잘 작동함..

anthony의 토큰으로 테스트 필요

wrike base url 문제였음.
해결 완료

repo: decompanyio/wrike-confluence-sync


text:
Fix race in StreamChannelCodecs()

This fixes issue 2 of #294. The root cause is that the lock held when accessing obj.Streams is immediately released and doesn't cover accesses to the channels map.
To quote:

The loop body locks the mutex and retrieves an instance to the streams:
obj.mutex.RLock()
tmp, ok := obj.Streams[streamID]
obj.mutex.RUnlock()

However, the channels map is accessed immediately after when the mutex is not held, which can easily result in crashes. This seems to be the root cause of #69,

To fix this somewhat elegantly, wrap the block that needs to access to the map in a function and hold the lock for the entire duration of the function.

thank you

authors: Robertof deepch

repo: deepch/RTSPtoWeb


text:
Add documentation on how to build pytorch-cpu docker.

Adds a simple readme following similar process to the Jupyter image.

Thanks for the PR.
Will merge it soon.

repo: deepdoctection/deepdoctection


text:
Support for vlines and hlines from Matplotlib

Support for axes lines like these should be added to deepforge figure plots.
Example:
>>> from matplotlib import pyplot as plt
>>> plt.vlines(50, 1, 100, 'r')
<matplotlib.collections.LineCollection object at 0x7fd15d2ea890>
>>> plt.hlines(50, 1, 100, 'g')
<matplotlib.collections.LineCollection object at 0x7fd16577c4d0>
>>> plt.show()

These lines are rendered in matplotlib as lineCollections (axes.collections). And contain multiple Path Objects.

repo: deepforge-dev/deepforge


text:
get rid of error: unterminated #ifdef

A minor change to fix the following error:
include/op_boilerplate.h:471:0: error: unterminated #ifdef
 #ifdef __clang__

Refer to this link for build results (access rights to CI server needed):
/job/libnd4j_PR/56/


text:
Modulation vector for SRN Cars

Hi, thank you for sharing the code of the great work.
Could you open the modulation vectors for SRN cars?
It would be helpful to examine the implementation of NeRF functionality and future works.
Thank you in advance.

Hi Tackgeun, I'm afraid it'll be difficult to share the modulation vectors for SRN cars. I think you may want to implement the dataset generation code yourself by running experiment_meta_learning.py on this dataset and then adapting modulation_dataset_writer.py. I'd be happy to answer any difficulties you run into while doing this.

I'll follow your instruction to reproduce the results.
Thank you for your answer.

I've been trying to reproduce the result of ModulatedSIREN on SRN Cars.
But, the hyper-parameters written in the appendix confuse me a little bit.
Could you inform the hyper-parameter for Modulated SIREN for SRN Cars with FID 80.3?
What are the width, depth, and modulation dimensions of modulated SIREN for SRN Cars?
Thank you in advance.

The width and depth of LatentModulatedSiren for SRN Cars is 512 and 15 respectively. Apologies for missing this out in the paper. The number of views (16) is the number of views per scene that are randomly subsampled (out of 50 views) for each training iteration of meta-learning. Of these 16 views, 512 pixels are subsampled per view.
As stated in the paper, for the modulation dataset creation we have less memory constraints than for the meta-learning, so we use 32 views with 2048 pixels per view.

Yes, that is correct. Bear in mind that we use the test set (instead of the training set) for computing the FID score, since the test set contains all possible views whereas the training set only contains randomly subsampled views.

Thank you for answering the question. I will follow your explanations on experiments.

repo: deepmind/functa


text:
Undefined symbol on importing courier

How I installed packages:
Python 3.9.7 from anaconda (linux x86_64)
tensorflow==2.6.1
dm-launchpad==0.3.1  (or dm-launchpad-nightly)
dm-reverb==0.5.0

When trying to import courier, I get the following error:
.../site-packages/courier/python/py_client.so: undefined symbol: _ZN4absl14lts_2020_09_235MutexD1Ev

With dm-launchpad-nightly (as of 11/3/2021)
.../site-packages/courier/python/py_client.so: undefined symbol: _ZNK4absl12lts_202103246Status4codeEv

What am I missing? Is it related to tensorflow (nightly) or dm-reverb (nightly) version? I know Google uses "single versioning" where everything is like a nightly, not quite ensuring backward compatibility, but in the open source community it is very difficult to find a set of DM packages in their stable versions that are compatible with one another.

These are external symbols (as per nm -g site-packages/courier/python/py_client.so), and can be found in recent versions of tensorflow: Installing tf-nightly would make those symbols available. (TF >= 2.7 required).

To make sure you have proper versions of packages it is easiest to install TF and Reverb through Launchpad's PIP:
https://github.com/deepmind/launchpad#installation

authors: qstanczyk wookayin

repo: deepmind/launchpad


text:
pybind11 for win32

UCI bot is not supported in Windows. But the python bindings are still trying to include it.

Thanks!

authors: Chersophyte lanctot


text:
Update bitcoin_fr.ts

Language fix and few other thing.

Merci beaucoup!

repo: deeponion/deeponion