Add type checking to has

$has now throws an error when a key is not a string or an integer
Closes issue #68 on github
Here's an example of new behavior. 4 still matches "4". Don't know if that should be fixed?
Using haskell syntax highlighting because I don't know of anything closer
let a = global has "console"
let b = {"4": "four"} has "4"
let c = {"4": "four"} has 4
let d = {"4": "four"} has 4.0

#-- These both throw runtime errors
#-- let e = {"4": "four"} has 4.1
#-- let f = global has []
let results = a.toString() ++ b.toString() ++ c.toString() ++ d.toString()
in global.console.log(results)

I think {"4": true} has 4 being true is perfectly acceptable. Squiggle could do something silly like only allow integer keys if it's working with an array, but I think that's a bad idea given how many JS things return array-like objects, and it just makes things more complicated.
I think maybe the logic could be simplified into a single block to accept proper values, something like typeof key === "string" || (typeof key === "number" && key % 1 === 0), falling back to an error like "object keys must be strings or integers, got " + key.
P.S. No worries on the syntax highlighting. Not sure how to get GitHub to support a new highlighter, hahah.

Looks like the TravisCI build failed due to a line over 80 characters, too.

Made the simplification in the boolean logic. And also fixed the line length issue that my fix caused. I should really setup vim to show a line at 80 characters :stuck_out_tongue:

Looks good to go. Thanks for your help! :+1:


Worker service

When used from a worker service the following exception is thrown:
System.AggregateException: One or more errors occurred. (Unable to find view '/Views/ExampleView.cshtml'. The following locations were searched:
/Views/ExampleView.cshtml)
 ---> System.InvalidOperationException: Unable to find view '/Views/ExampleView.cshtml'. The following locations were searched:
/Views/ExampleView.cshtml

I did add the reference to the Razor Template Library:
<Project Sdk="Microsoft.NET.Sdk.Worker">

    <PropertyGroup>
        <TargetFramework>netcoreapp3.1</TargetFramework>
        <UserSecretsId>dotnet-WorkerService1-52B6739D-8383-44E0-97E9-3FA02AC6616D</UserSecretsId>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.3" />
    </ItemGroup>

    <ItemGroup>
      <ProjectReference Include="..\..\src\Razor.Templating.Core\Razor.Templating.Core.csproj" />
      <ProjectReference Include="..\ExampleAppRazorTemplates\ExampleRazorTemplatesLibrary.csproj" />
    </ItemGroup>
</Project>

Perhaps an example can be added to the examples folder using a worker service?

Hi @rolandothedev , Thanks for taking your time to report the issue. I've fixed this & created a new release v1.2.0.
Please update the library & try again.


feat(SocketIO): implement websocketio on flask

Types of changes

[ ] Bugfix
[x] New feature
[x] Refactoring
[ ] Breaking change (any change that would cause existing functionality to not work as expected)
[x] Documentation Update
[ ] Other (please describe)

Description
I implemented websocket on this project.
Now it will show a prompt when game over.
Camera will be captured from frontend.
Level selection need to be implemented in the future.
Steps to Test This Pull Request
Building steps were put in README.md.
Expected behavior
Gaming fps significantly improved.
Display a modal when gameover.
Related Issue
#9 #21

Execution is almost no problem
If re-execute the game mode - wampup, hands, level1
It can restart the game and camera
but  the time will continue to count from the first time you enter the game

Fixed.

會持續發生以下錯誤:
post request handler error
Traceback (most recent call last):
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\server.py", line 431, in handle_request
socket.handle_post_request(environ)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\socket.py", line 124, in handle_post_request
p = payload.Payload(encoded_payload=body)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\payload.py", line 13, in init
self.decode(encoded_payload)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\payload.py", line 44, in decode
raise ValueError('Too many packets in payload')
ValueError: Too many packets in payload

會持續發生以下錯誤訊息
post request handler error
Traceback (most recent call last):
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\server.py", line 431, in handle_request
  socket.handle_post_request(environ)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\socket.py", line 124, in handle_post_request
  p = payload.Payload(encoded_payload=body)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\payload.py", line 13, in __init__
  self.decode(encoded_payload)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\payload.py", line 44, in decode
  raise ValueError('Too many packets in payload')
ValueError: Too many packets in payload

Hotfix this.
Please check main branch and test it.

會持續發生以下錯誤訊息
post request handler error
Traceback (most recent call last):
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\server.py", line 431, in handle_request
  socket.handle_post_request(environ)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\socket.py", line 124, in handle_post_request
  p = payload.Payload(encoded_payload=body)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\payload.py", line 13, in __init__
  self.decode(encoded_payload)
File "C:\Users\kaikai5\Desktop\venv\lib\site-packages\engineio\payload.py", line 44, in decode
  raise ValueError('Too many packets in payload')
ValueError: Too many packets in payload

Hotfix this. Please check main branch and test it.

可順利執行了


Micropython 1.13 camera init failed

␛[0;32mI (656900) sccb: pin_sda 26 pin_scl 27
␛[0m
␛[0;31mE (656900) i2c: i2c driver install error␛[0m
␛[0;32mI (656900) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;31mE (656970) camera: Detected camera not supported.␛[0m
␛[0;31mE (656970) camera: Camera probe failed with error 0x20004␛[0m
␛[0;31mE (656970) camera: Camera Init Failed␛[0m
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: Camera Init Failed

Hello. I've tried to build Micropython 1.13 with esp32-cam support. But I getting this error. However, your binary for 1.12 is working for me. So, Maybe there is something wrong with 1.13?

Firmware updated (hash 3ff7079) and working.


Package is Invalid - Chrome Web Store

Hello,
With the latest update, the extension can no longer be installed from the Chrome Web Store.  This message is displayed when attempting the install:
Package is invalid. Details: 'Could not load extension icon './assets/img/icons/icon-16.png'.'.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

This is fixed now :)


ENH: optimize.linprog: use callbacks for highs

Do not attempt to review until #19255 is in. :)
Reference issue
Closes https://github.com/scipy/scipy/issues/15707 eventually.
What does this implement/fix?
Basically passes callback information in the same way as the rest of linprog.
Additional information
Draft until its ready. Might need more changes here as well. Depends on #19255.

@HaoZeke, any update here? It's probably getting a bit tight to get this into 1.14...

@HaoZeke, any update here? It's probably getting a bit tight to get this into 1.14...

Thanks for the ping, @h-vetinari. Also, I'm sorry, but this needs some work since the underlying PR got reverted (and is being reworked a bit upstream). I'll be ready with the previous (highs update PR) this weekend but I see from the release schedule (and the fact that reviews will be needed) that none of these will be in before rc2 at the earliest.

I assume this won't be making it in this week... feel free to prove me wrong!

@HaoZeke, are you still planning to update this PR? :)

@HaoZeke, are you still planning to update this PR? :)

Probably not in the near future, I've a bit of personal work coming up and am traveling as well. I'd revise the ETA on this to be at least a couple of months. I'm also happy for anyone else to take over, it should be straightforward exposing the actual callbacks to highs, but since they now run at different times than the older variant there needs to be a lot of documentation for scipy users.


shadow analyzer does not consider variables declared in for-range statement

What version of Go are you using (go version)?

$ go version
go version go1.16.2 linux/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/john/.cache/go-build"
GOENV="/home/john/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/john/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/john/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3861764262=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Installed and ran the shadow analyzer on a file witht the contents below:

$ go get -u -v golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
$ cat tt.go
package main

import (
        "fmt"
)

func main() {
        n := 10
        total := 0
        for _, n := range []int{1, 2, 3} {
                total += n
        }
        fmt.Printf("total is %d, n is %d\n", total, n)
}

$ shadow tt.go
$

No warning was generated

What did you expect to see?
A message similar to:

/home/john/tt.go:10:9: declaration of "n" shadows declaration at line 8

What did you see instead?
No output from the shadow tool.

I have a basic patch which considers range statements and successfully generates the warning above:
https://github.com/jbert/tools/tree/jb/shadow-check-range-vars
Is this appropriate to raise as a PR?

Supporting range statements in shadow.Analyzer sounds reasonable to me. It is not super far from the example given in the doc comment for the checker: https://github.com/golang/tools/blob/fe37c9e135b934191089b245ac29325091462508/go/analysis/passes/shadow/shadow.go#L33-L43
It is not obvious to me that it is going to break something that is currently idiomatic. For the criteria https://golang.org/src/cmd/vet/README , this is roughly in line with the existing shadow Analyzer. My guess is that this will be less frequent than the existing shadow cases, but is frequent enough to warrant the incremental cost of examining more statements for folks already running shadow.
You can send the PR to me to review.

Sorry, unsure/don't have privs to assign to you.
PR link is here: https://github.com/golang/tools/pull/287


Getting IOException/StacklessClosedChannelException when consuming data from Kinesis

I used flink-1.12.5 kinesis connector to consume data from kinesis. And flink-1.12.5 should have all the latest features in amazon-kinesis-connector-flink repo.
From time to time I am getting IOException or StacklessClosedChannelException, which will fail the Flink operator when it by default reaches 10 times and trigger the entire job to restart.
I have two questions:

I am wondering if we can have a better way to handle the error without restarting the Flink job. Restarting the job is time-consuming and will often slow down the data consumption.
These two errors are treated as retryable exceptions, instead of recoverable exceptions. Are they not recoverable if we don't restart the Flink source operator?

Followed are the exceptions:
org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber$RetryableFanOutSubscriberException: org.apache.flink.kinesis.shaded.io.netty.channel.StacklessClosedChannelException
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber.handleError(FanOutShardSubscriber.java:296) ~[blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber.consumeAllRecordsFromKinesisShard(FanOutShardSubscriber.java:363) ~[blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber.subscribeToShardAndConsumeRecords(FanOutShardSubscriber.java:188) ~[blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutRecordPublisher.runWithBackoff(FanOutRecordPublisher.java:154) [blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]

or
org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber$RetryableFanOutSubscriberException: java.io.IOException: An error occurred on the connection: null
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber.handleError(FanOutShardSubscriber.java:296) ~[blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber.consumeAllRecordsFromKinesisShard(FanOutShardSubscriber.java:363) ~[blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutShardSubscriber.subscribeToShardAndConsumeRecords(FanOutShardSubscriber.java:188) ~[blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]
	at org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutRecordPublisher.runWithBackoff(FanOutRecordPublisher.java:154) [blob_p-6581ced9ade704dee24c2632e701b413d2e656ba-f7515b4b21d25cb44b07411a9ad294e8:?]

@dannycranmer Not sure if this is still the right place to post the question. I also send it to the flink user email list.


deploy k3s on Raspberry 3B+，the pod is always containercreating

Thanks for helping us to improve k3s! We welcome all bug reports. Please fill out each area of the template so we can better help you.  You can delete this message portion of the bug report.
Version:
Provide the output from k3s -v and provide the flags used to install or run k3s server.
Describe the bug
A clear and concise description of what the bug is.
在树莓派上创建了一个k3s环境，执行k3s kubectl --all-namespaces=true get all
发现kube-system下面的coredns和traefik的容器一直在containercreating状态。
请问这是怎么回事儿？
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
A clear and concise description of what actually happened.
Additional context
Add any other context about the problem here.

v0.9.1 on Raspberry Pi 3B+ (Latest Raspian)
I wasn't able to reproduce the issue. I did see that it did take some time for these containers to change state to Running, however it did work for me. It may take a while sometimes due to poor disk I/O performance on Raspberry Pis.
I'm curious is this still a problem after waiting several minutes? I'm guessing they stay in "ContainerCreating" forever?
pi@davidspi3:/usr/local/bin $ sudo k3s kubectl --all-namespaces=true get all
NAMESPACE     NAME                             READY   STATUS              RESTARTS   AGE
kube-system   pod/helm-install-traefik-pjhmx   0/1     ContainerCreating   0          79s
kube-system   pod/coredns-66f496764-jpg6v      0/1     ContainerCreating   0          79s

1-2 mins later:
pi@davidspi3:/usr/local/bin $ sudo k3s kubectl --all-namespaces=true get all
NAMESPACE     NAME                             READY   STATUS    RESTARTS   AGE
kube-system   pod/coredns-66f496764-jpg6v      1/1     Running   0          2m19s
kube-system   pod/helm-install-traefik-pjhmx   1/1     Running   0          2m19s

GFW？K8s.gcr.io is inaccessible in China.......

v0.9.1 on Raspberry Pi 3B+ (Latest Raspian)
I wasn't able to reproduce the issue. I did see that it did take some time for these containers to change state to Running, however it did work for me. It may take a while sometimes due to poor disk I/O performance on Raspberry Pis.
I'm curious is this still a problem after waiting several minutes? I'm guessing they stay in "ContainerCreating" forever?
pi@davidspi3:/usr/local/bin $ sudo k3s kubectl --all-namespaces=true get all
NAMESPACE     NAME                             READY   STATUS              RESTARTS   AGE
kube-system   pod/helm-install-traefik-pjhmx   0/1     ContainerCreating   0          79s
kube-system   pod/coredns-66f496764-jpg6v      0/1     ContainerCreating   0          79s
1-2 mins later:
pi@davidspi3:/usr/local/bin $ sudo k3s kubectl --all-namespaces=true get all
NAMESPACE     NAME                             READY   STATUS    RESTARTS   AGE
kube-system   pod/coredns-66f496764-jpg6v      1/1     Running   0          2m19s
kube-system   pod/helm-install-traefik-pjhmx   1/1     Running   0          2m19s

Now， I am from China. I don't know whether there are some docker images pulled from k8s.gcr.io which is not available in China.
Thank you!

GFW？K8s.gcr.io is inaccessible in China.......

That is right. I think maybe there are some images pulled from k8s.gcr.io

Closing this out as an environment issue


https://www.cnn.com/2024/08/01/health/video/covid-summer-wave-dr-sanjay-gupta-on-call-digvid cnn.py--CNNArticleIE Unable to parse

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Provide a description that is worded well enough to be understood
https://www.cnn.com/2024/08/01/health/video/covid-summer-wave-dr-sanjay-gupta-on-call-digvid cnn.py--CNNArticleIE Unable to parse
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
ERROR: [CNNArticle] Unable to extract cnn url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
Traceback (most recent call last):
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\YoutubeDL.py", line 1627, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\YoutubeDL.py", line 1761, in __extract_info
    ie_result = ie.extract(url)
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\extractor\common.py", line 741, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\extractor\cnn.py", line 154, in _real_extract
    cnn_url = self._html_search_regex(r"video:\s*'([^']+)'", webpage, 'cnn url')
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\extractor\common.py", line 1382, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\extractor\common.py", line 1346, in _search_regex
    raise RegexNotFoundError(f'Unable to extract {_name}')
yt_dlp.utils.RegexNotFoundError: [CNNArticle] Unable to extract cnn url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\administered\Desktop\python_test\news_spider\y.py", line 145, in <module>
    get_article_info()
  File "C:\Users\administered\Desktop\python_test\news_spider\y.py", line 88, in get_article_info
    info = ydl.extract_info(url, download=False)
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\YoutubeDL.py", line 1616, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\YoutubeDL.py", line 1645, in wrapper
    self.report_error(str(e), e.format_traceback())
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\YoutubeDL.py", line 1093, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "C:\Users\administered\Desktop\python_test\news_spider\yt_dlp\YoutubeDL.py", line 1031, in trouble
    raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [CNNArticle] Unable to extract cnn url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

Duplicate of #9719


How is the Performance of this Connector?

Our company needs to save more than 20GB to hbase, how long will this connector take?
can it be done in 5mins?
thank you

It can be done in 30 seconds if you have enough machines :)
Seriously, I don't have benchmarks and I don't love them...


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Implement Module::get_export method

This API was still missing since it is available in the Wasmtime API.


Is it possible to use GUIX Studio export font resource as a bin file seperately ?

Hi , we already know that GUIX Studio is able to export all resource data as a bin file. However, font resource are usually very large, which is not efficient when doing OTA with BLE. In most situlation, pixelmap and strings may need to upgrade while font is not. It is very friendly if we can load font resource and other resource seperately. Any reply would be much appreciated.

You should have full control over what is placed in the generated resource file, both when using GUIX Studio UI environment and from the command line. If I am missing something from your question please follow up.

We have done this in order to move the fonts and bitmaps to external flash.  I cannot give you the script, but I can give you a hint as to what you must do.
============================================================

Understanding the Main Tables
GUIX is designed to support multiple themes.  A Theme describes how the screens
will look to the user.  Our project currently supports one theme.  Colors, Fonts,
and pixel-maps are defined in the Display Theme table.
GX_THEME display_1_theme_1 =
{
(GX_COLOR *) display_1_theme_1_color_table,
(GX_FONT **) display_1_theme_1_font_table,
(GX_PIXELMAP **) display_1_theme_1_pixelmap_table,
...
}
The language table is defined in a separate table.
GX_STUDIO_DISPLAY_INFO gui_display_table[1] =
{
...
display_1_language_table,
DISPLAY_1_THEME_TABLE_SIZE,
...
};

============================================================
2.	Splitting up resources
The gui_resources.c file needs to be separated into multiple files so that
we can place the objects into other sections of memory:
1)	guix_language.c
a.	Section .language_ro
2)	guix_bitmap.c
a.	Section .bitmap_ro
3)	guix_font.c
a.	Section .font_ro
The color table is too small to consider moving to QSPI.

============================================================
3.	File updates
3.1. gui_utils.h
/// @brief Copies LANGUAGE QSPI data to SDRAM
void update_language_table(void);
/// @brief Copies BITMAP QSPI data to SDRAM
void update_bitmap_table(void);

/// @brief Copies FONT QSPI data to SDRAM
void update_font_table(void);

3.2. init_thread_entry.c
// Initializing the i2c mutex early.
i2c_mutex_init();

// Copy QSPI data to SDRAM
update_language_table();
update_bitmap_table();
update_font_table();

// call function in images
init_function();

Fonts
Fonts will be moved to QSPI space. A duplicate font space will be created in SDRAM.
Upon Boot, the QSPI data will be copied to SDRAM.

4.1. guix_font.c
1)	Scan each line of file for  “static GX_CONST GX_UBYTE”
2)	Allocate SDRAM space for font
a.	static GX_UBYTE FONT_THEME_1_PROMPT_char_2026[24] BSP_PLACE_IN_SECTION_V2(".sdram");
b.	no GX_CONST required for .sdram
3)	Move font to QPSI
a.	static GX_CONST GX_UBYTE FONT_THEME_1_PROMPT_char_2026_ro[24] BSP_PLACE_IN_SECTION_V2(".font_ro") =
4)	Add font name to list
5)	When no more lines are found, create the function update_font_table().
// add function to bottom of file.
void update_font_table(void)
{
    memcpy(FONT_THEME_1_PROMPT_char_2026,  FONT_THEME_1_PROMPT_char_2026_ro, sizeof(FONT_THEME_1_PROMPT_char_2026_ro));
}

4.2. S7G2.icf
Add .font_ro section to arch\arm\ib\ngt\s7\script\S7G2.icf
do not initialize   { section .qspi_flash };
do not initialize   { section .font_ro };
do not initialize   { section .qspi_flash_ro };

place at start of QSPI_region      { block IB_QSPI };
place in QSPI_region      { section .font_ro};
place in QSPI_region      { section .qspi_flash_ro};

Language
By moving all strings and tables to SDRAM, we only have to update the display_1_language_table.
Initially, the linker will point all string tables to QSPI.  During boot, code will copy the
language strings and tables from QSPI to SDRAM and update the pointers in display_1_language_table to point to SDRAM.
GX_CONST GX_UBYTE display_1_DEGREE_C_English[4] = {0xc2, 0xb0, 0x43, 0x00};
GX_CONST GX_UBYTE display_1_OK_English[3] = "OK";
GX_CONST GX_UBYTE *display_1_English_string_table[351] =
{
GX_NULL,
display_1_DEGREE_C_English,
display_1_OK_English,
...
}
GX_CONST GX_UBYTE **display_1_language_table[12] =
{
display_1_English_string_table,
display_1_French_string_table,
display_1_German_string_table,
display_1_Spanish_string_table,
display_1_Swedish_string_table,
display_1_Catalan_string_table,
display_1_Dutch_string_table,
display_1_Danish_string_table,
display_1_Norwegian_string_table,
display_1_Finnish_string_table,
display_1_Italian_string_table,
display_1_Portuguese_string_table,
};
The strings must be located in SDRAM; the tables can be located in either SDRAM or RAM.

@int-bio Hi, int-bio, thanks for your reply. I want to use XIP mode instead of load resource to SDRAM. I'm studying the GUIX source code. If there is any result, I will share with you.

You should have full control over what is placed in the generated resource file, both when using GUIX Studio UI environment and from the command line. If I am missing something from your question please follow up.

Yes, that's correct. We can generate fond resource as a bin file, and use gx_display_font_table_set to load font table to current display. Thanks a lot.


 Thanks :)

Thank you for your PR!
Although tests by github actions has failed, but this appears to be an internal problem and not caused by this PR. LGTM.


update react peer dep

to get rid of this warning

Thanks! I think maybe it should be >=15.0.0 to also allow React 15 without any errors?

Ah, sure, that works too :)


1.20 branch should be first

Describe the Bug
your main branch is set to 1.19
Reproduction Steps

load github
goto createsifter github page
see the 1.19 branch first instead of 1.20

Expected Result
see the 1.20 branch first instead of 1.19
Screenshots and Videos
u can do it urself.
Crash Report or Log
your mom
Operating System
google chrome
Mod Version
1.20.1-1.8.1.e-22
Minecraft Version
1.20.1
Forge Version
69.0.0
Other Mods
im not telling u my chrome extensions
Additional Context
No response

1.19 for now it's my main branch. I like it like this. I will change it when Create drops support for 1.18.2


Update the build instructions to include -DskipTests=true -Dmaven.javadoc.skip=true

I tried building the current rhito project by just running mvn install from the rhiot root, and it fails during the test phase of the "Rhiot :: Cloud platform :: Protocol adapter :: Leshan (LWM2M)" module.
I see that the nightly builds on https://travis-ci.org/rhiot/rhiot are using the following command to build:
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
The https://rhiot.gitbooks.io/rhiotdocumentation/content/building/index.html should be updated to add the -DskipTests=true -Dmaven.javadoc.skip=true arguments to match the nightly build command.

hi @starksm64,
thx for pointing this issue, could you please copy/paste our log result ?
By advance, thx

Hi Scott,
Actually Travis calls mvn install twice. Once for fast "pre-build" without tests. Then regular mvn install with all the tests. In general mvn install executed on your local box is supposed to work. Can you send me your build log file, so I can take a look at it?
Cheers!

Here is the log and failing surefire output of the mvn install after doing a mvn clean.
rhiot-mvn.txt
io.rhiot.cloudplatform.adapter.leshan.spring.LeshanProtocolAdapterConfigurationTest.txt

Hi Scott,
Can you give it a try on a latest version?
Cheers!

I just pulled down the latest contents and did a mvn clean followed by a
mvn install -Dmaven.javadoc.skip=true -B -V
It is getting down to Openalpr where it fails:
[INFO] Rhiot :: Cloud platform :: Camel components ........ SUCCESS [  0.011 s]
[INFO] Rhiot :: Cloud platform :: Camel components :: Openalpr FAILURE [  3.090 s]
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.967 sec <<< FAILURE! - in io.rhiot.cloudplatform.camel.openalpr.OpenalprProducerIntegrationTest
shouldFindPlate(io.rhiot.cloudplatform.camel.openalpr.OpenalprProducerIntegrationTest)  Time elapsed: 0.777 sec  <<< ERROR!
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at io.rhiot.cloudplatform.camel.openalpr.OpenalprProducerIntegrationTest.shouldFindPlate(OpenalprProducerIntegrationTest.java:41)
Results :
Tests in error:
OpenalprProducerIntegrationTest.shouldFindPlate:41 » IndexOutOfBounds Index: 0...
io.rhiot.cloudplatform.camel.openalpr.OpenalprProducerIntegrationTest.txt

Hi Scott,
Can you try to run OpenalprProducerIntegrationTest from IDE and send me the logs?
Cheers!


[CBR-503] Test OBFT & Hard Fork Mechanism implementation via script-runner

Description
See title.
Linked issue
https://iohk.myjetbrains.com/youtrack/issue/CBR-503
Type of change

[~] 🐞 Bug fix (non-breaking change which fixes an issue)
[x] 🛠 New feature (non-breaking change which adds functionality)
[~] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[x] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[x] 🔨 New or improved tests for existing code
[~] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[x] I have read the style guide document, and my code follows the code style of this project.
[x] If my code deals with exceptions, it follows the guidelines.
[x] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
[x] CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

QA Steps
See script-runner/README.md
How to merge
Send the message bors r+ to merge this PR. For more information, see docs/how-to/bors.md.

bors r+


Rationalise how code uses BigQuery

We use both googleapiclient (old-style) and google.cloud.bigquery (new-style) libraries for talking to BQ.  There is also a lot of duplicated code throughout the codebase, as well as code that mixes interacting with BQ with other stuff (like transforming CSV files or downloading data from PG).
We should produce a single simple wrapper around google.cloud.bigquery.client.Client for talking to BQ, and write other functions for doing other things.
As a first step, we can bring the ebmdatalab-python library into the main repo.  (See #559.)  We can then migrate, task-by-task, to using the new wrapper.

Here's an unfiltered dump of my notes about how we use BQ at the moment:

frontend.management.commands.create_views

bq is used a lot; I haven't unpicked this yeet
uses e.bq.get_bq_service

inserts and waits for jobs

could be done with g.c.bq

frontend.tests.commands.test_create_views

e.bq.load_prescribing_data_from_file
e.bq.load_ccgs_from_pg
e.bq.load_statistics_from_pg

frontend.management.commands.import_hscic_prescribing

bq only used when --reimport-all is passed to command

this is completely untested
will it ever be used again?

uses g.c.bq.dataset.Dataset

this is for a dataset called tmp_eu

uses e.bq.query_and_return
uses e.bq.bq.Client, which is actually g.c.bq.Client
uses e.bq.copy_table_to_gcs
uses e.bq.download_from_gcs

frontend.management.commands.import_measures

uses e.bq.query_and_return

there's some funky table-name-replacing code for testing

uses e.bq.get_rows

frontend.management.command.convert_hscic_prescribing

e.bq.copy_table_to_gcs
e.bq.download_from_gcs
e.bq.wait_for_job
g.c.bq.Client

client.run_sync_query
client.run_async_query

frontend.management.commands.generate_presentation_replacements

e.bq.load_data_from_file
e.bq.copy_table_to_gcs
e.bq.download_from_gcs
e.bq.wait_for_job
g.c.bq.Client

client.run_async_query

frontend.tests.commands.test_import_ppu_savings

e.bq.load_prescribing_data_from_file

frontend.tests.commands.test_import_measures

e.bq.load_prescribing_data_from_file
e.bq.load_data_from_file

pipeline.management.commands.bigquery_upload

e.bq.load_data_from_pg
e.bq.load_presentation_from_pg
e.bq.load_statistics_from_pg
e.bq.load_ccgs_from_pg
pipeline.cloud_utils.stuff

this also calls discovery.build, so could probably use get_bq_service

as well as inserting jobs, it lists tables

Smoketests

Does a synchronous query

First problems: I'm sometimes seeing data that I've inserted into a table with the g.c.bq client not appearing, and I'm also seeing 503 errors when I try to insert data.
I've managed to create the following repro scenario:
# bq_test.py

from google.cloud import bigquery as gcbq

def bq_test(dataset_name, table_name):
    client = gcbq.Client(project='ebmdatalab')

    dataset = client.dataset(dataset_name)
    dataset.create()

    schema = [
        gcbq.SchemaField('a', 'INTEGER'),
        gcbq.SchemaField('b', 'STRING'),
    ]

    table = dataset.table(table_name, schema)
    table.create()

    table.insert_data([[1, 'Alice'], [2, 'Bob']])

    for row in table.fetch_data():
        print(row)

    table.delete()
    dataset.delete()

In the first case, if I create a dataset + table, then delete the dataset + table, then recreate the dataset + table, inserting data into the table succeeds, but the data cannot be retrieved:
>>> import bq_test
>>> bq_test.bq_test('testdataset1', 't1')
(1, u'Alice')
(2, u'Bob')
>>> bq_test.bq_test('testdataset1', 't1')
# crickets

Some time later (at least several minutes...) I am able to insert data into the table again.
In the second case, if I create a dataset + table, then delete the dataset + table, then recreate the dataset and create a table with a different name, inserting data into the table raises an exception:
>>> bq_test.bq_test('testdataset2', 't2a')
(1, u'Alice')
(2, u'Bob')
>>> bq_test.bq_test('testdataset2', 't2b')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bq_test.py", line 22, in bq_test
    table.insert_data([[1, 'Alice'], [2, 'Bob']])
  File "/Users/inglesp/.pyenv/versions/openprescribing/lib/python2.7/site-packages/google/cloud/bigquery/table.py", line 816, in insert_data
    data=data)
  File "/Users/inglesp/.pyenv/versions/openprescribing/lib/python2.7/site-packages/google/cloud/_http.py", line 293, in api_request
    raise exceptions.from_http_response(response)
google.cloud.exceptions.ServiceUnavailable: 503 POST https://www.googleapis.com/bigquery/v2/projects/ebmdatalab/datasets/testdataset2/tables/t2b/insertAll: Error encountered during execution. Retrying may solve the problem.

In the second case, the library's behaving as it should.  For the first case, I've created an issue against the library.
In both cases, the solution is to not delete the dataset.

No, even not deleting the dataset causes problems.
The reason I'm stumbling over this is that it's going to make testing fiddlier than it needs to be.


Fixed outport bug and added tomography

@celiafish Is this different than your other PR?

This was an old PR. The useful one is fixing outport bug part. Other than that you can simply ignore this one.


Fix bug where text is not truncated after "See Less" button is clicked

Fixed bug where the text was not retruncated after clicking the "See Less" button. Also fixed the test that didn't catch the issue.

This looks good to me, and I've verified the tests pass locally for all scenarios, so I'll merge it. I need to figure out what's going on with the tests before I can release though. The beta and canary scenarios are failing, but only on CI. It's happening for the master branch as well.

I ran the tests against beta and canary locally and they failed. When I did an npm update and got the latest version of ember-cli-qunit (1.4.2 from 1.4.0) both canary and beta pass.
Not sure how to force an update on Travis-ci

Interesting. I wasn't able to reproduce the failure, probably because I had
done a fresh checkout. I can manually bump the version in package.json.
That should force Travis to update.
On Jul 6, 2016 2:53 PM, "Nathaniel Furniss"<EMAIL_ADDRESS>wrote:

I ran the tests against beta and canary locally and they failed. When I
did an npm update and got the latest version of ember-cli-qunit (1.4.2
from 1.4.0) both canary and beta pass.
Not sure how to force an update on Travis-ci
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/nickiaconis/ember-truncate/pull/11#issuecomment-230869188,
or mute the thread
https://github.com/notifications/unsubscribe/ABAfqfVqvMuq7mx3TUliflqbHs3TdmDAks5qS_mRgaJpZM4JBmdd
.

That did the trick. Thanks @nlfurniss! I'll cut a new release now.


Todo List Interactive List Feature Pull Request

The things I did in this PR:

Linters config.
Github flow.
Use Webpack
Use HTML Webpack Plugin
Used ES6 syntax
Used ES6 modules
Use Task object (index, description, completed)
Function to iterate over the tasks array and populate an HTML list item element for each task.
Load style with Webpack Style/CSS Loader
Professional ReadMe file.
Remove all hardcoded items from the tasks array.
Create a new JavaScript file for the new functionality.
Implement a function for adding a new task (add a new element to the array).
Implement a function for deleting a task (remove an element from the array).
Implement a function for editing task descriptions.
By default new tasks should have the property completed set to false and the property index set to the value of the new array length (i.e. if you're adding a 5th task to the list, the index of that task should equal to 5).
Deleting a task should update all remaining items' indexes, so they represent the current list order and are unique(i.e. if you're deleting the first task index 1 from the list, the index of the next task(2) should be set to 1).
All changes to the To Do List should be saved in local storage.
Add a new JavaScript file and import it as a module: it will contain methods related to the status updates (completed: true/false).
Add event listener to the checkbox (change).
Update items object's value for completed key upon user actions.
Implement a function for the "Clear all completed" button (use filter() method).
Store the updated array of items in local storage, so the user gets the correct list of values after the page reloads (which means that any changes made to the list should be preserved).

INVALID ❌ ❌ ❌
Hi @HafizMassamTabraizKhan   👋
While you made a great effort in this project, I can't go ahead and review your code.
Invalid Code Review Request ❌
You have submitted a project that is not checking for Linter Errors 😨, Kindly configure Linters and submit again once you are done 🙏
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Kindly create  a new PR that follows the Gitflow approach
Cheers, and Happy coding!👏👏👏
✅ Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag me in your question so I can receive the notification.
⚠ Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.


Support for bulk mode along with existing incrementing mode

Incrementing mode for the JDBC source connector only publishes a newly inserted row in a table to the topic based upon an auto-incrementing column.
This source connector goes a step further to also publish a modified row in a table as another record to the topic.
Both these actions can be recorded with the use of DynamoDB Streams since it maintains any kind of changes to the data in the table including inserts and updates for a fixed period of time.
Is there any way to add support for the bulk mode using which every time the connector is started, it publishes all the rows present in a table to the topic?

 If so, then yes, backfilling/initial-sync is supported as noted here: https://github.com/trustpilot/kafka-connect-dynamodb#notable-features


Any plans to deliver this module to angular 2

The funcionality of this amazing project is just what I was hoping for...
Any plans to deliver a version of this module to angular 2

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29459466-any-plans-to-deliver-this-module-to-angular-2?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

Thank you for the feedback.
Yes, after a stable release of angular 2 there will be a version.

Thank you  very much!
2016-01-04 7:30 GMT-02:00 Igor Rafael<EMAIL_ADDRESS>
Thank you for the feedback.
Yes, after a stable release of angular 2 there will be a version.
—
Reply to this email directly or view it on GitHub
https://github.com/assisrafael/angular-input-masks/issues/150#issuecomment-168621214
.

Hey there, bro! Angular2 API is stable. When will we get this awesome component in Angular2? :)

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1


Introduce a Timer class and use it

This introduces a simple Timer class that simplifies some of the repetitive time measurement code. I only made the necessary changes in aln.cpp an not in main.cpp and index.cpp because I did not want to cause merge conflicts in the other open PRs.

I merged this into the wrong branch. I have now pushed this to main manually.


Update picker.dart

you can get widget and use it easily every where.

If you like please provide a pull request to flutter_picker_plus. I will review ASAP.


Introduce TryFire, TryMoveToState methods

Try* methods scrapped, since it will always end up with corrupted state due to partial execution of entry, exit, or conditional methods, and there is simply no way to control them since this is a part of the normal execution path.


split headers only on the first = character

Sometimes you may want to pass e.g. base64 encoded header which may contain = character as padding.
This is the case with 'Authorization' header in Grafana OTLP Endpoint

LGTM, thank you!


Update meeting DG

Updated find sequence diagram.
Added meet sequence diagram.
Remaining: update sequence diagram

Codecov Report

Merging #262 (75b32fc) into master (dc1939b) will increase coverage by 3.20%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #262      +/-   ##
============================================
+ Coverage     63.84%   67.04%   +3.20%
- Complexity      795      830      +35
============================================
  Files           119      119
  Lines          2760     2752       -8
  Branches        341      340       -1
============================================
+ Hits           1762     1845      +83
+ Misses          879      790      -89
+ Partials        119      117       -2

Impacted Files
Coverage Δ

.../seedu/address/logic/parser/AddressBookParser.java

...edu/address/logic/parser/ContactDetailsParser.java

...ava/seedu/address/logic/parser/HomePageParser.java
72.72% <0.00%> (ø)

...address/logic/parser/ContactDetailsPageParser.java
100.00% <0.00%> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
31.76% <0.00%> (+2.73%)
:arrow_up:

...rc/main/java/seedu/address/model/ModelManager.java
84.93% <0.00%> (+2.73%)
:arrow_up:

.../java/seedu/address/model/meeting/MeetingTime.java
90.90% <0.00%> (+3.03%)
:arrow_up:

...main/java/seedu/address/model/meeting/Meeting.java
71.15% <0.00%> (+3.84%)
:arrow_up:

.../seedu/address/logic/parser/EditCommandParser.java
70.00% <0.00%> (+4.00%)
:arrow_up:

src/main/java/seedu/address/model/person/Id.java
86.66% <0.00%> (+6.66%)
:arrow_up:

... and 7 more

Continue to review full report at Codecov.

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


Upgrade terraform-provider-cloudflare to v3.15.0

Updates terraform bridge to v3.23.0
Update Pulumi version to v3.32.1
Update terraform-plugin-sdk to latest
Update to Go ~1.17~ 1.18 if we want (adds no schema or SDK changes)
Fixes #253
Fixes #243
Fixes #244
Fixes #245
Fixes #246
Fixes #249

Re: the breaking changes:

NotificationPolicyFilters is now a nested schema type and not a generic TypeMap
conditions input/output never was documented.

We believe that these breaking changes are acceptable.


Finding the n th Tetrahedral number

Is your feature request related to a problem? Please describe.
A tetrahedral number, or triangular pyramidal number, is a figurate number that represents a pyramid with a triangular base and three sides, called a tetrahedron. In this problem we are going to find the nth Tetrahedral number.
Describe the solution you'd like
Input: n=1
Output: 1    // This is the first Tetrahedral number
Input: n=2
Output: 4  //This is the second Tetrahedral number
Do you want to work on it
Yes; Language preferred: C++
Hello @rish-singhal @plazzy99 @rudrakshi99 @tarun26091999 @nakul-19 @shreyanspoddar
I would like to work on this issue as a part of gssoc21. I will be very happy if you kindly assign this to me.
My code will have proper test cases ,comments and time and space complexity to make it more understandable.

Hii,
I am a GSSOC'21 participant. I would like two solve this issue in python. Please assign it to me.

I would like to contribute to the above problem in java as I am a participant of GSSOC'21. Kindly assign this to me.


#351 Add file upload access to the bot API

Fixes #351.
Added methods ExternalBotHandler.upload_file() and ExternalBotHandler.upload_file_from_path() to upload local files to Zulip server. I decided to allow user to upload any file located on his machine, not only inside bot's local directory.
P.S. Also I added commit c7acf50 with file_uploader bot as an example of using new methods for uploading files. If it is unnecessary I will revert this commit.

Just minor tweaks left; other than that LGTM @aero31aero.

Re the binary issue, I'd suggest leaving as-is unless there's further feedback.

@neiljp @timabbott Could we merge this PR ?

@YagoGG @eeshangarg can one of you review this?

@novokrest: Did you update this? :)

Merged, thanks @novokrest!


Import expression

If I can figure out how to make a damn link in rST I will document this too.

For more information on Import Expression Parser please see https://github.com/bmintz/import-expression-parser.


Improve handling of server state

The approach for issuing HTTP requests and processing responses through Tauri's API in c1f6f676e3fe4308e936e1223527fe51f388c081 is a bit crude. For example, repeatedly issuing GET requests to the ZeroTier One service is hacked together with useEffect, and not in a robust way. We need a cleaner way of doing these requests.

One option could be to use Redux Toolkit; however, it might not be the best tool for the job. We could also consider SWR (which looks like a good fit for repeatedly fetching data with GET requests) or React Query (which might be what we should use)


Fix biostrings install

Moves Biostrings installation to the top,  because apparently it is a recursive dependency of one of the
packages installed from CRAN.

Builds successfully on Docker Hub.


Testimonials

Summary of changes

Add Testimonial Slider component to Basic page widgets. It allows users to add testimonials either individually or by term (testimonial type, tags, program, degrees, unit, specialisations, unit).

Frontend

Create testimonialSlider component for paragraph widget
Adapt Testimonial component to work with either program page or testimonialSlider widget

Code changes

Add TestimonialNodeFragment to Program page
Fix console warnings and indents on index page and OVC custom footer (adding key to maps)
Remove TestimonialTags file (worked code into Testimonial)

Backend

Multidev: https://testimonial-chug.pantheonsite.io
Add Testimonial Slider paragraph as basic page widget

Includes title for heading
Allows users to add individual testimonial nodes or testimonials by tag (e.g. Faculty)

Update (existing) Testimonial content type

Add field for testimonial person name (as opposed to using Title - this allows the same person to give multiple testimonials)
Use separate field for referencing Testimonial Type (e.g. Student, Faculty, etc.)
Re-add field_home_profile field (it looks like it was accidentally removed at some point)

Test Plan

For expected rendering, view https://build-a4fdbc45-19a9-4ad3-89bb-6529c553c261.gtsb.io/testimonial-slider-test
Try adding a new testimonial:

Log into http://testimonial-chug.pantheonsite.io
Add a new testimonial node
On a basic page, add a testimonial slider widget
Try adding some testimonials (both individually and by tag)

Check the structure:

View Testimonial Slider paragraph
View the testimonial node
Check permissions on Testimonial Slider component

Check index page and confirm there are no console warnings
Check an OVC page and confirm there are no console warnings relating to the footer

Adding a second testimonial slider caused some spacing issues. Miranda is working on a fix

@abanuog Looks like it's not actually broken. It's more that everything has the same background if you put a testimonial widget above another one. If you add some content between the two testimonials, they no longer appear to be having a spacing issue. (Although no matter what, if you have a really long testimonial followed by a bunch of short ones, the short ones will have space bellow them because it's a single slider and it seemed odd to have it jumping up and down depending on the height of the testimonial.)
Longer testimonial that adds extra spacing...

Short testimonials that look like they have empty space below them...


Update guess-chunks so that it works with zero dimensions.

Just a possible solution. It seemed to work for me but I'm not as familiar with the code-base so some feedback would be appreciated.

@newt0311: Do you think this would fix one of the problems we have encountered in pydata/xarray#1528?
Would it enable the following code to work?
za = zarr.create(shape=(), store='tmp_file')
za[:] = 0

Currently this raises a permission error.

Just checked. Unfortunately no. But I think the changes needed to make this work are fairly small. I can just roll them into my existing branch...
-- PG.

My changes are for handling cases like arrays with shape (2, 0, 2). Without my changes, the second zero dimension causes problems.

I'm pretty sure this fixes pydata/xarray#1528.

One more piece of the puzzle. Python dicts don't care if a key is an empty string but unix file-systems do...
-- PG.

The build failures here look unrelated to my changes. Could somebody trigger a re-build?
Thanks.
-- PG.

I think your build failure in python3.6 is related to a flake issue
py36 runtests: commands[3] | flake8 --max-line-length=100 zarr
zarr/tests/test_creation.py:397:1: E302 expected 2 blank lines, found 1
zarr/tests/test_creation.py:403:1: E302 expected 2 blank lines, found 1
zarr/tests/test_creation.py:410:28: E251 unexpected spaces around keyword / parameter equals
zarr/tests/test_creation.py:410:30: E251 unexpected spaces around keyword / parameter equals
zarr/tests/test_creation.py:415:1: E302 expected 2 blank lines, found 1
ERROR: InvocationError: '/home/travis/build/alimanfoo/zarr/.tox/py36/bin/flake8 --max-line-length=100 zarr'

I think you're right. This should fix it.

I just checked out your branch locally and confirmed it fixes 4 out of 12 failing tests in  pydata/xarray#1528!
@alimanfoo: merging this PR would really help us move forward on the xarray side.

Nice this seems to work with minimal changes to existing code.
It would be good to review how the h5py API works with 0d datasets (I.e. scalars) and also with nd datasets with one or more zero length dims, to be sure there is compatibility between h5py and zarr where possible. The important methods where I've tried to get compatibility are getitem and setitem on the Array class, and create_dataset and require_dataset on the Group class. This PR may already have achieved good compatibility but I am not familiar with how h5py behaves in these cases so would like to get some more info on h5py behaviour. E.g., how do you create a 0d dataset in h5py? What does getitem return from 0d dataset when given empty tuple [()], or total slice [:], or ellipsis [...]? Similar questions for nd dataset with one or more zero length dimensions?
Also would be nice to check that Array.resize works fine if there are any 0 length dims. And check that sensible exceptions are raised when trying to do nonsense stuff on 0d arrays (eg resize).
If it would help the xarray work I'd be happy to merge this PR now and raise issues to review h5py compatibility and other API concerns, then address those a bit later on but before next release.
One other minor point, using "null" to pad out the chunk key for 0d array is a bit ugly. Suggest using "0" instead.

The following works in h5py:
import h5py
f = h5py.File("mytestfile.hdf5", "w")
dset = f.create_dataset("mydataset", ())
dset[...] = 99
assert dset[...] == 99
assert dset[()] == 99

dset[:] raises ValueError: Illegal slicing argument for scalar dataspace.

The xarray work is not so urgent as to warrant a premature, rushed merge. I agree totally that h5py compatibility should be a high priority. It sounds like a few more tests, including of exceptions, are needed.
If exact compatibility with the h5py api is desired, one option would be to actually require h5py for the tests and build this into the test suite...i.e. check explicitly that zarr operations and h5py operations give identical results / raise the same exceptions.

Thanks Ryan, some tests would be good. Comparing against h5py in the tests
is a nice idea, although this isn't done anywhere else in zarr test suite
at the moment so I'd be happy for now with some simple direct tests along
the lines of existing unit tests for Array getitem and setitem and Group
create_dataset.
On other thing that may be worth reviewing is exactly what happens to
scalar (0d) arrays in terms of encoding and storage. I think under the
current code in this PR a scalar value would still get passed through
compressor and any filters before storage. I'm actually surprised that
works, but main point is that compressor or filters on scalar is
pointless/nonsense. Maybe better to special case scalars and don't allow
any compressor or filters, and see if any shortcuts are possible given no
compressor or filters. May also be worth mentioning some of this in the
storage spec so it's explicit how scalars should be implemented.
On Tue, 10 Oct 2017 at 02:06, Ryan Abernathey<EMAIL_ADDRESS>wrote:

The xarray work is not so urgent as to warrant a premature, rushed merge.
I agree totally that h5py compatibility should be a high priority. It
sounds like a few more tests, including of exceptions, are needed.
If exact compatibility with the h5py api is desired, one option would be
to actually require h5py for the tests and build this into the test
suite...i.e. check explicitly that zarr operations and h5py operations give
identical results / raise the same exceptions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alimanfoo/zarr/pull/154#issuecomment-335330069, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAq8QtRKCUWRleuHCnTYB1XNxvVObQViks5sqsMigaJpZM4PMWbo
.

--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health http://cggh.org
Big Data Institute Building
Old Road Campus
Roosevelt Drive
Oxford
OX3 7LF
United Kingdom
Phone: +44 (0)1865 743596
Email<EMAIL_ADDRESS>Web: http://a http://purl.org/net/alimanlimanfoo.github.io/
Twitter: https://twitter.com/alimanfoo

Btw happy to work on this (tests, spec) myself when back from leave if no
one has time.
On Wed, 11 Oct 2017 at 21:45, Alistair Miles<EMAIL_ADDRESS>wrote:

Thanks Ryan, some tests would be good. Comparing against h5py in the tests
is a nice idea, although this isn't done anywhere else in zarr test suite
at the moment so I'd be happy for now with some simple direct tests along
the lines of existing unit tests for Array getitem and setitem and Group
create_dataset.
On other thing that may be worth reviewing is exactly what happens to
scalar (0d) arrays in terms of encoding and storage. I think under the
current code in this PR a scalar value would still get passed through
compressor and any filters before storage. I'm actually surprised that
works, but main point is that compressor or filters on scalar is
pointless/nonsense. Maybe better to special case scalars and don't allow
any compressor or filters, and see if any shortcuts are possible given no
compressor or filters. May also be worth mentioning some of this in the
storage spec so it's explicit how scalars should be implemented.
On Tue, 10 Oct 2017 at 02:06, Ryan Abernathey<EMAIL_ADDRESS>wrote:

The xarray work is not so urgent as to warrant a premature, rushed merge.
I agree totally that h5py compatibility should be a high priority. It
sounds like a few more tests, including of exceptions, are needed.
If exact compatibility with the h5py api is desired, one option would be
to actually require h5py for the tests and build this into the test
suite...i.e. check explicitly that zarr operations and h5py operations give
identical results / raise the same exceptions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alimanfoo/zarr/pull/154#issuecomment-335330069, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAq8QtRKCUWRleuHCnTYB1XNxvVObQViks5sqsMigaJpZM4PMWbo
.

--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health http://cggh.org
Big Data Institute Building
Old Road Campus
Roosevelt Drive
Oxford
OX3 7LF
United Kingdom
Phone: +44 (0)1865 743596
Email<EMAIL_ADDRESS>Web: http://a http://purl.org/net/alimanlimanfoo.github.io/
Twitter: https://twitter.com/alimanfoo

--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health http://cggh.org
Big Data Institute Building
Old Road Campus
Roosevelt Drive
Oxford
OX3 7LF
United Kingdom
Phone: +44 (0)1865 743596
Email<EMAIL_ADDRESS>Web: http://a http://purl.org/net/alimanlimanfoo.github.io/
Twitter: https://twitter.com/alimanfoo

Just want to add my two cents.
I used to be confused about this since different libraries (like numpy, h5py and pytables) support 0-d array differently.  Please note that h5py and pytables don't really support it well due to hdf5 limitations so I would not use them as the final design if you are aiming for the correct behavior.  I do like the numpy model as I think it's somewhat consistent at least.  In numpy:
>>>  a = numpy.arange(30)
>>> type(a[0])
numpy.int64
# Note that this is really not a 0-d array, it's a scalar type instead where there is no shape
>>> a[0].shape
()
# Note that the previous scalar value is different from a 0-d array:
>>> a[0:0]
array([], dtype=int64)
# where there is a shape of length 1 (the content is is 0 so the shape is preserved)
>>> a[0:0].shape
(0,)
# the type is an n-d array
>>> print type(a[0:0])
<type 'numpy.ndarray'>

# Here is an nd-array with 1 element, which is different from the numpy scalar
>>> print a[1:2]
[1]
# Of course then it has a shape:
>>> print a[1:2].shape
(1,)
>>> print type(a[1:2])
<type 'numpy.ndarray'>

# You can actually reshape this to arbitrary dimension and it works fine:
>>> print a[1:2].reshape((1, 1, 1, 1))
[[[[1]]]]
>>> a[1:2].reshape((1, 1, 1, 1)).shape
(1, 1, 1, 1)

I think at the end of the day the types are different (scalar vs nd-array) and the round trip from numpy to zarr (or pytables/h5py in that regard) should be seamless.  Last I read about this I think HDF5 has an empty data set support but you can not store the shape.  The end result is that you ended up writing meta data yourself so you can preserve the original shape like (10, 0, 2).

Thanks Will, very timely, I'm just looking at this.
On Tue, 24 Oct 2017 at 16:43, Will Lee<EMAIL_ADDRESS>wrote:

Just want to add my two cents.
I used to be confused about this since different libraries (like numpy,
h5py and pytables) support 0-d array differently. Please note that h5py and
pytables don't really support it well due to hdf5 limitations so I would
not use them as the final design if you are aiming for the correct
behavior. I do like the numpy model as I think it's somewhat consistent at
least. In numpy:

a = numpy.arange(30)
type(a[0])
numpy.int64

Note that this is really not a 0-d array, it's a scalar type instead where there is no shape

a[0].shape
()

Note that the previous scalar value is different from a 0-d array:

a[0:0]
array([], dtype=int64)

where there is a shape of length 1 (the content is is 0 so the shape is preserved)

a[0:0].shape
(0,)

the type is an n-d array

print type(a[0:0])
<type 'numpy.ndarray'>

Here is an nd-array with 1 element, which is different from the numpy scalar

print a[1:2]
[1]

Of course then it has a shape:

print a[1:2].shape
(1,)
print type(a[1:2])
<type 'numpy.ndarray'>

You can actually reshape this to arbitrary dimension and it works fine:

print a[1:2].reshape((1, 1, 1, 1))
[[[[1]]]]
a[1:2].reshape((1, 1, 1, 1)).shape
(1, 1, 1, 1)

I think at the end of the day the types are different (scalar vs nd-array)
and the round trip from numpy to zarr (or pytables/h5py in that regard)
should be seamless. Last I read about this I think HDF5 has an empty data
set support but you can not store the shape. The end result is that you
ended up writing meta data yourself so you can preserve the original shape
like (10, 0, 2).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alimanfoo/zarr/pull/154#issuecomment-339035385, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAq8QrkgxE4pgyR0tFI4qC4sDLV12-Fxks5svgWigaJpZM4PMWbo
.

--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health http://cggh.org
Big Data Institute Building
Old Road Campus
Roosevelt Drive
Oxford
OX3 7LF
United Kingdom
Phone: +44 (0)1865 743596
Email<EMAIL_ADDRESS>Web: http://a http://purl.org/net/alimanlimanfoo.github.io/
Twitter: https://twitter.com/alimanfoo

I've created a separate PR #160 to focus on zero length dimensions. It has some fixes from this PR manually merged, plus some extra tests.

I've created another PR #161 to focus on zero-dimensional arrays, building on work here. Comments welcome there.


Task 17,23,24,25

Task 17 Modified

@sharidas2210
Task -17
Code verified.
Task -23
Code verified.
Task -24
Code verified.
Task -25
Code verified.


Layout Enables - Wont Disable?

After clicking the icon in bottom right of a tab to "Preview Auto Layout" it no longer has the ability to disable the auto layout any longer. Screenshots attached of what happens after, the only way to revert back to original setup is to turn off the plugin.

Clicking the icon again and selecting "cancel preview" doesnt revert it back to normal either.

Does selecting another tab and then going back to the tab with the issue fix it?
Also, was layout enabled on this tab before you used auto-layout?

I know of a bug which sounds similar but it fixes itself when you change to another tab and then return back.


Cache user names on event command

Description
Cache discord user names on !event command so that we have them if there's any errors when the corresponding !begin command is run.

Resolves #50

Checklist

[x] Add tests for these changes
[x] Test coverage is not decreased
[ ] Entire test suite passes

Codecov Report

Merging #56 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
+ Coverage   98.24%   98.27%   +0.02%
==========================================
  Files          13       14       +1
  Lines         914      928      +14
  Branches      151      151
==========================================
+ Hits          898      912      +14
  Misses         16       16

Impacted Files
Coverage Δ

src/spellbot/__init__.py
97.21% <100.00%> (+<0.01%)
:arrow_up:

src/spellbot/data.py
100.00% <100.00%> (ø)

...ns/1013ebad5050_add_cached_name_column_to_users.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Test SWU

This issue has been auto-generated to facilitate questions about
 a paid opportunity that has just been posted on the
BCDevExchange.
To learn more or apply, visit the opportunity page.
The opportunity closes on Friday, June 28th, 2019 at 16:00 PDT.

This opportunity has been assigned

This opportunity has been assigned

This opportunity has been assigned


Not able to see numbers in Analytics screen

Hi,
I jus installed API Umbrella on one of Google Cloud Machines. It works fine and the api proxying works as expected. However, when I navigate to any of the analytics-related screens, I see no metrics. The screen renders properly but the numbers are all zeroes. I guess it has something to do with database interaction, and I tried debugging the possible issues a lot, but without any success.
Attaching the screenshot for reference.

Can anyone please point out what might the issue be?

I have the same issue.
No data in the analytics. apis are working fine.

Restarting the docker container fixed the issue. I can now view the analytics.

Thanks Kalyan. My installation was, however, not on docker. It was a Ubuntu install. Not sure how to fix in that one.

@anshulturvo: Sorry for the trouble and delay. Inside your Ubuntu machine, if you try sudo /etc/init.d/api-umbrella reload and then try making some requests, do the analytics then load? If that doesn't work, what about trying sudo /etc/init.d/api-umbrella restart?
If this is what I think it is, then there might sometimes be a race condition on the very first startup that resolves itself after a single reload or restart. If reloading or restating  fixes it for you, that would be useful to know. I believe we might have this possible race condition already fixed in master, so if this is the culprit, it should be part of the next release. But if reloading doesn't work, let us know, and we can try to get to the bottom of it.

The analytics issues with docker containers, as well as another possible race condition on startup have been fixed in the v0.14.0 release. So I think this should be fixed, but let us know if you're still seeing any issues.


Convert authenticated client to reqwest middleware

While initially I wanted to create a number of traits for reqwest types, as it turns out, there are better solutions.
reqwest_middleware provides a flexible way to insert middleware that is activated either when the request is being built or just before it's sent. AuthenticatedClient is converted to a middleware type that handles auth.
This enables authentication with auth in rattler itself as well as in async_http_range_reader through the same interface.
One consequence is removal of the blocking client and features, as blocking comms are not supported in the middleware crate. I would argue that in most places where blocking communication is preferred -- e. g. simple programs performing a limited number of network requests -- it's often enough to just spawn a tokio runtime to wait on the future, because compared to network latency the cost will be negligible. Applications doing intensive network i/o are either async already anyway or likely should be.
This is not yet ready for merge -- I'm not sure what to do with Python binding. Technically we could replicate this type using the middleware client, but it's a bit weird that it's removed from Rust API but stays in Python API.
I will update the docs once there's a view on how to proceed.

I've also made a fix for the shlex problem here: https://github.com/mamba-org/rattler/pull/490

Actually, @baszalmstra is fixing it in #490 so hopefully the tests will soon turn green over here :)

LGTM! Is this now ready to merge?

Done! Thanks!


support TS_HTTP_REQUEST_BUFFER_READ_COMPLETE_HOOK in lua plugin

Lua doesn't support TS_HTTP_REQUEST_BUFFER_READ_COMPLETE_HOOK.

This should hopefully be simple and similar to https://github.com/apache/trafficserver/blob/master/example/plugins/c-api/request_buffer/request_buffer.c
The lua plugin will support the hook and the corresponding handler lua function can call a pre-defined function to retrieve the body. Inside the lua function, you can save the string in "ctx" and thus it can be used in other hook handler function under the same continuation.

I checked out a recent PR from Brian - https://github.com/apache/trafficserver/pull/8804/files
And it looks like this is a better hook to support to provide request body for lua script programmer. It supports for even when the data is not buffered and also it has a similar hook for response as well.
So I think I will go in this new direction instead

following #8804 , i will also do this work on 10-Dev branch


NAb table fixes to use QueryForeignKey for RunData and DilutionData related columns

Rationale
A couple of the FKs in the NAb assay schema tables were showing in the schema browser as "null.NAbSpecimen.RowId" and were also not allowing for all of the available calculated columns to be pulled into a custom view via that lookup. This was preventing a client scenario where they wanted to get the NAb assay DilutionData for all rows that were copied to a given study folder, but that "copied to study X" column could not be pulled into the DilutionData grid view.
Note: putting this into develop for now, TBD if this needs to be backported to another release.
Changes

NabDilutionDataTable update to use QueryForeignKey for the RunData column lookup to the Data (i.e. NAbSpecimen) table
NabWellDataTable update to use QueryForeignKey for the DilutionData and RunData column lookups

This is targeting develop - is that correct?

Yes, there is a workaround that we are seeing if the client is OK with in previous versions. So I thought I'd get this checked in and we can backport it if needed.


Delete .DS_Store

See https://stackoverflow.com/questions/30246832/is-ds-store-file-important

.DS_store has been been removed, and we obliterated your history.


Timezone conversion via natural language

It'd be cool if I could type something like "11am eastern" and have it convert all of the times in the app window to that time. Perhaps this is something that only shows up when you've hit "tab" in the main search box with no text in it, similar to how with the Fantastical widget you can switch from creating an event to searching your events by hitting "tab" while the window is open.

@macintacos Thanks for idea. But now U can use time-slider


Price drop trigger

Added price drop trigger feature.

Has this been properly tested?

I'd love to see some screenshots of the price trigger notification in action

I'd love to see some screenshots of the price trigger notification in action

Since it was not possible to capture a price drop while the app is running, so need to come up with some strategy on how it can be done(during the demo). However, I changed the trigger to notify even if the price remains the same, in order to see the trigger in action.

Also, have changed the notification from

to

Looks good!

Looks really well, Bhargav!


Altitude

ROV altitude is collected, but is not populated in VARS. This information is biologically relevant. Can we add these data to VARS? There are (were) fields available in the gui and query.

Hold on- what we are logging for altitude may not be what I thought it was (ROV height off the seafloor). I'm checking with Rich.

For most analysis I've done in the past, I haven't trusted the ROV altitude. I use a bathymetric grid and calculate altitude using the ROV lat, long, depth and the depth of the grid at that location. Currently, no altitude is being stored in M3_ANNOTATIONS although there is a column for it.

Yes - we (ROV pilots) have been working on this. It is available, and is accurate these days. Working with Rich to get it logged somewhere. Many users of VARS don't have access to or know how to use grids, ArcGIS, etc.

OK, just let me know when Rich adds it to EXPD. Once, that's done I'll add it to the merge.


Is Viro-React Open Source?

Thank you for building this, I'm finding the examples and API to be very robust and the framework looks promising.
I'm trying to understand the BSD 3-Clause license. It seems like the Viro-React components are not developed in the open on GitHub. So I am wondering how one would go about modifying, expanding upon or building new components to use with the current ones. Also how is the API key used and why is it needed to run the app locally. Is there any plans to expand into a paid usage license that one would run into if they were to build an app on Viro-React?

Hi @WillGeller, thanks for positive feedback on ViroReact, appreciate it and hope you build something great.
The Viro platform is not open source. But is free to use with no limits on distribution. Our license is located here -> https://docs.viromedia.com/docs/license
You can modify ViroReact components for your own project as needed, but at this time we do not accept pull request though it is something we will continually evaluate.
The API key is used for basic internal metrics and to guard against possible license violations.
You can email me directly at<EMAIL_ADDRESS>if you have additional questions or concerns.

Thanks for clarifying. I think that is enough info to run on!

I did receive an email yesterday which said: "Viro is going Open Source!". So, hopefully, they are going open source now.


python310Packages.asn1tools: 0.163.0 -> 0.164.0

Description of changes
Update to latest upstream release 0.164.0

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 188475 run on x86_64-linux 1

2 packages marked as broken and skipped:

paperless
paperless-ng

4 packages failed to build:

baserow
paperless-ngx
python39Packages.magic-wormhole
python39Packages.magic-wormhole-transit-relay

40 packages built:

buildbot (python310Packages.buildbot)
buildbot-full (python310Packages.buildbot-full)
buildbot-ui (python310Packages.buildbot-ui)
buildbot-worker (python310Packages.buildbot-worker)
crackmapexec
gnome-keysign
grab-site
magic-wormhole (python310Packages.magic-wormhole)
python310Packages.aardwolf
python310Packages.asn1tools
python310Packages.autobahn
python310Packages.cairo-lang
python310Packages.channels
python310Packages.channels-redis
python310Packages.daphne
python310Packages.eth-account
python310Packages.eth-keyfile
python310Packages.eth-keys
python310Packages.labgrid
python310Packages.magic-wormhole-mailbox-server
python310Packages.magic-wormhole-transit-relay
python310Packages.web3
python39Packages.aardwolf
python39Packages.asn1tools
python39Packages.autobahn
python39Packages.buildbot
python39Packages.buildbot-full
python39Packages.buildbot-ui
python39Packages.buildbot-worker
python39Packages.cairo-lang
python39Packages.channels
python39Packages.channels-redis
python39Packages.daphne
python39Packages.eth-account
python39Packages.eth-keyfile
python39Packages.eth-keys
python39Packages.labgrid
python39Packages.magic-wormhole-mailbox-server
python39Packages.web3
tahoe-lafs


Update package.json

Hi, thanks.
However, I am against updating the semantic version number to 1.x.x on my end. For now, I cannot make that kind of support commitment for this particular project.
Have a nice day.


How to convert session android to session of WTelegramClient

Hello
I export data from android, with app app_id: 6. app_hash: eb06d4abfb49dc3eeb1aeb98ae0f581e.
Data contains tdata and session format is file sqlite(tables entities, sent_files, sessions, update_state, version).
I want convert data to format session of WTelegramClient.
How to do resolve this problem?

duplicate #264


is there documentation on how this could be used with post-build scripts in an Xcode Bot?

I just got my projects building with Xcode Server. I've got a handful of bots working, and I like the web page that shows the list of projects, and the data about the warnings, code-coverage, etc.
Is there documentation about how some fastlane features could be used in a post-build script of an Xcode Bot?
I was thinking some things, like changing the signing of an app from ad-hoc to distribution or something. Or posting to slack, or just a small subset of operations that could be performed after the app is built?

Hi @skydivedan, I actually wrote an article on scripts in Xcode Server and used fastlane as an example: http://honzadvorsky.com/articles/2015-08-17-17-30-xcode_server_tutorials_3_prebuild__postbuild_scripts/ Is this what you're looking for?

yes, sorry about that. I should've read more closely on that.


problem building: "register 'sp' unsuitable for global register variables on this target" (and other errors)

Machine: MacOS Mojave 10.14.6 Visual Studio Code Version: 1.38.1
Build output:
> Executing task: platformio run <

Processing native (platform: native)
--------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
PACKAGES:
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 2 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <lvgl> 6.0.2
|-- <lv_drivers> 6.0.2
|   |-- <lvgl> 6.0.2
Compiling .pio/build/native/src/syscalls.o
Compiling .pio/build/native/lib4f4/lvgl_ID6598/lv_draw/lv_draw.o
Compiling .pio/build/native/lib4f4/lvgl_ID6598/lv_draw/lv_draw_arc.o
Compiling .pio/build/native/lib4f4/lvgl_ID6598/lv_draw/lv_draw_basic.o
src/syscalls.c:65:31: error: register 'sp' unsuitable for global register variables on this target
register char * stack_ptr asm("sp");
                              ^
src/syscalls.c:116:1: error: unknown type name 'caddr_t'
caddr_t _sbrk(int incr)
^
src/syscalls.c:131:11: error: use of undeclared identifier 'caddr_t'
                return (caddr_t) -1;
                        ^
src/syscalls.c:136:10: error: use of undeclared identifier 'caddr_t'
        return (caddr_t) prev_heap_end;
                ^
4 errors generated.
*** [.pio/build/native/src/syscalls.o] Error 1
============================= [FAILED] Took 4.31 seconds =============================

Environment      Status    Duration
---------------  --------  ------------
native           FAILED    00:00:04.307
stm32f429_disco  IGNORED
======================= 1 failed, 0 succeeded in 00:00:04.307 =======================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

¯_(ツ)_/¯

PIO support is very fresh and consists only of publishing some packages with correct manifests.
This demo was tested only with linux. I guess, all improvements are possible via PRs only :(. As far as i understand, you should be able to do stm32 build.

I reworked notes, to exclude any possible confusion about non-linux builds of native target.
Closing as wontfix. If anyone has knowledge and time to make native demo work in Windows/macOS - PR welcome. Current state is NOT pio or lvgl limitation. It's related to this demo only. This demo was done by volunteers as good as they were able :)
As alternative - try other IDEs.


Playground: incorrectly matches brackets in regular expressions

Bug Report

🔎 Search Terms
Bracket matching, mismatch, playground, editor
🕗 Version & Regression Information

I was unable to test this on prior versions because I'm pretty tired today.
I could barely man myself up to post this issue.
I apologize.

⏯ Playground Link

Playground link with relevant code
💻 Code
Sorry, this is long, but the bug seems very context dependent - I have not been able to isolate it.
Probably easier if you open the playground link and go to line 71.

type Matcher = [RegExp, { (value: string): Matcher[] }];

type VNode = {
  name: string;
  attrs: { [attrName: string]: any };
  children: VChild[];
};

type VChild = VNode | string;

const Parser = (
  onStart: { (tagName: string, attrs: VNode["attrs"]): void },
  onEnd: { (tagName: string): void },
  onText: { (text: string): void },
  onToken: { (tokenName: string): void },
  onStartSection: { (sectionName: string, inverted: boolean): void },
  onEndSection: { (sectionName: string): void }
) => {
  let _tagName: string;
  let _attrs: VNode["attrs"];

  const tagParser: Matcher[] = [
    // start tag:
    [/^<([\w\-]+)/, tagName => {
      _tagName = tagName;
      _attrs = {};

      return attrParser;
    }],
    // end tag:
    [/^<\/([\w\-]+)>/, tagName => {
      onEnd(tagName);

      return tagParser;
    }],
    // token:
    [/^{{([\w\-]+)}}/, tokenName => {
      onToken(tokenName);

      return tagParser;
    }],
    // section start/inversion/end tag:
    [/^{{(#|\^|\/[\w\-]+)}}/, tag => {
      let controlChar = tag[0];
      let sectionName = tag.substr(1);

      if (controlChar === "#") {
        onStartSection(sectionName, false);
      } else if (controlChar === "^") {
        onStartSection(sectionName, true);
      } else { // if (controlChar === "/") {
        onEndSection(sectionName);
      }

      return tagParser;
    }],
    // text node:
    [/(.+?)(?=<|{{)/, text => {
      onText(text);

      return tagParser;
    }]
  ];

  const attrParser: Matcher[] = [
    // attribute name:
    [/^([\w\-]+)\s*=/, attrName => ([
      // start quote:
      [/^(["'])/, quote => ([
        // matching end quote:
        [quote === '"' ? /^([^"]*)"/ : /^([^']*)'/, value => {
          _attrs[attrName] = value;

          return attrParser;
        }]]
      )]]
    )],
    // TODO add support for void attributes
    // end of tag, optionally with closing (void) slash:
    [/^(\/?)>/, closed => {
      onStart(_tagName, _attrs);

      if (closed || /^(area|base|br|col|command|embed|hr|img|input|link|meta|param|source|track|wbr)$/.test(_tagName)) {
        onEnd(_tagName);
      }

      return tagParser;
    }]
  ];

  let parser: Matcher[] = tagParser;

  let offset = 0;

  return (input: any) => {
    offset = 0;

    next:
    while (offset < input.length - 1) {
      const ws = /^\s+/.exec(input.substr(offset));

      if (ws) {
        console.log("skip spaces", ws[0].length);
        offset += ws[0].length;

        continue next;
      }

      for (const matcher of parser) {
        const match = matcher[0].exec(input.substr(offset));

        if (match) {
          //console.log("matched ", matcher[0], " -> ", match);

          parser = matcher[1](match[1]);

          offset += match[0].length;

          continue next;
        }
      }

      throw `error at ${offset} in ${input}`;
    }
  };
};

// TEST:

const parser = Parser(
  (name, attrs) => console.log("start", name, attrs),
  (name) => console.log("end", name),
  (text) => console.log("text", text),
  (tokenName) => console.log("token", tokenName),
  (sectionName, inverted) => console.log("section-start", sectionName, inverted),
  (sectionName) => console.log("section-end", sectionName),
);

parser(`

        {{#say-hello}}
            Hello, {{world}}
        {{/say-hello}}
        {{^say-hello}}
            Link

            Hi!
        {{/say-hello}}

`)

🥱 Actual behavior
Well, this:

It seems to think the [ character in the regular expression is the start of an array.
This only seems to affect brace matching in the editor - it does not complain about syntax errors, so it seems this is a problem with the editor itself, rather than with the language.
🙂 Expected behavior
The [ character in the regular expression should not be matched to anything.

We might need to explicitly enable this? https://github.com/Microsoft/monaco-editor-webpack-plugin
That or this needs to be explicitly changed on monaco-typescript https://github.com/microsoft/monaco-typescript/
@alexdima might know offhand.

I don't see any calls to the TypeScript API for finding matching braces in monaco-typescript - so I think this is likely fixed by finding the monaco API and hooking it up to the tsserver's getBraceMatchingAtPosition
It's probably using a naive fallback API right now

The problem is with the Monarch tokenizer for TypeScript https://github.com/microsoft/monaco-languages/blob/319a1ddf568438d59a3851784b092cdf1f88e29e/src/typescript/typescript.ts#L76 which gets tricked by this code pattern and fails to recognize that regex. If that would correctly parse the regex, then regexes are skipped when doing bracket matching.

I've created https://github.com/microsoft/monaco-editor/issues/2512 on our side.

For the record, this bug is no longer present. ✨

For the record, I was wrong - the bug is very much still present.
I've always used the TS playground for "quickly trying out things", but given what I read in #2804, that is obviously not a good idea at the moment.
I guess we should stop using it and use stackblitz or codesandbox for the time being - until the planned migration from the current custom editor to VS Code happens...


Convert to calc + vw

http://madebymike.com.au/writing/precise-control-responsive-typography/

Fixed https://github.com/corysimmons/typographic/commit/b744c37b0a420254545ab6cb1b908490a7756db0


test failures on wsl

See original issue on GitLab
In GitLab by [Gitlab user @traveltissues] on Sep 6, 2019, 19:32
there seem to currently be at least three failures in local testing with py36:

tests/sandboxes/mounting/mount_simple.py::test_bind_mount

https://gitlab.com/snippets/1892870

these seem to be due to casd api change:

tests/artifactcache/expiry.py::test_invalid_cache_quota[1-success-None]
tests/artifactcache/expiry.py::test_invalid_cache_quota[0-success-None]

https://gitlab.com/snippets/1892871

In GitLab by [Gitlab user @juergbi] on Sep 7, 2019, 05:00
I don't see any test failures in WSL CI. What version of Windows did you use?
The bind mount failure might be https://github.com/Microsoft/WSL/issues/2911, which was fixed in 1809.
The casd process issue might be https://github.com/Microsoft/WSL/issues/1353, which was also fixed in 1809 (incorrectly marked as fixed in 1803, as far as I can tell).

In GitLab by [Gitlab user @juergbi] on Sep 7, 2019, 05:00
I don't see any test failures in WSL CI. What version of Windows did you use?
The bind mount failure might be https://github.com/Microsoft/WSL/issues/2911, which was fixed in 1809.
The casd process issue might be https://github.com/Microsoft/WSL/issues/1353, which was also fixed in 1809 (incorrectly marked as fixed in 1803, as far as I can tell).


Wrong dynamic classes generated on build when using sass math.random

Describe the bug
Using the static adapter, sass math.random function has a strange side effect on dynamic classes when building.
The following code gives a blue title with a random box-shadow when using npm run dev:

Welcome to SvelteKit

Visit svelte.dev/docs/kit to read the documentation

However, after npm run build and npm run preview, no styles are applied.

It seems the math.random call on sass affects the dynamic classes ids.
Class on h1:

Class on generated css:

Reproduction
https://github.com/stefandevai/svelte-classes-issue
Logs
No response
System Info
System:
  OS: macOS 14.4
  CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
  Memory: 64.11 MB / 8.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
  Yarn: 1.22.22 - /usr/local/bin/yarn
  npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
  pnpm: 8.15.6 - /usr/local/bin/pnpm
Browsers:
  Safari: 17.4
npmPackages:
  @sveltejs/adapter-static: ^3.0.6 => 3.0.8
  @sveltejs/kit: ^2.0.0 => 2.15.1
  @sveltejs/vite-plugin-svelte: ^4.0.0 => 4.0.4
  svelte: ^5.0.0 => 5.16.0
  vite: ^5.4.11 => 5.4.11

Severity
blocking all usage of SvelteKit
Additional Information
No response

hesimilar to https://github.com/vitejs/vite/discussions/15391
The math.random function is causing the CSS content to be different for the SSR and CSR CSS output so we end up with two different CSS class name hashes. The prerendered page is importing the CSS with the CSR generated class name but the element is referencing the SSR generated class name. Not sure what we can do here.


Fix issue on parseString in redis/redis.go

v := rsp.(string) may not work properly,rsp may be a nil value

done!


[rom_ctrl, dv] Declaring V2S

This commit changes verification status from V2 to V2S
Signed-off-by: Prajwala Puttappa<EMAIL_ADDRESS>

Thanks, @prajwalaputtappa!

For anyone else checking, the post-review-meeting items were tracked here: https://github.com/lowRISC/opentitan/issues/11072


Allow for both IFeatureFilter and IContextualFeatureFilter with same alias

This PR introduces an opt-in mechanic to allow for having IFeatureFilter and IContextualFeatureFilter with the same alias. Specifically, you can have:
0 or 1 IFeatureFilter
0 or N IContextualFeatureFilter<T>, so long as there is at most 1 applicable filter for T. So, you can have multiple contextual filters with the same alias, so long as they all handle discrete app contexts.
By default, this functionality is disabled and can be enabled via FeatureManagementOptions.AllowDuplicateContextualAlias.
TODO:

[ ] Add unit tests

Closes #98

Move to this PR #262


Azure Sentinel Learning - Module 2 Data Connectors

I am following this guide. https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Training/Azure-Sentinel-Training-Lab/Modules/Module-2-Data-Connectors.md
When selecting the Parameters of the Primary Log Analytics Workspace I get this error "The resource type 'workspaces' could not be found in the namespace 'Microsoft.OperationalInsights' for api version '2022-09-01-privatepreview'. The supported api-versions are '2015-03-20,2015-11-01-preview,2017-01-01-preview,2017-03-03-preview,2017-03-15-preview,2017-04-26-preview,2020-03-01-preview,2020-08-01,2020-10-01,2021-06-01,2021-03-01-privatepreview,2021-12-01-preview'."

I am also having same issue..
The resource type 'workspaces' could not be found in the namespace 'Microsoft.OperationalInsights' for api version '2022-09-01-privatepreview'. The supported api-versions are '2015-03-20,2015-11-01-preview,2017-01-01-preview,2017-03-03-preview,2017-03-15-preview,2017-04-26-preview,2020-03-01-preview,2020-08-01,2020-10-01,2021-06-01,2021-03-01-privatepreview,2021-12-01-preview'.

I haev tested again, seems the issue is fixed 👍 :-)
Thanks @javiersoriano

Thanks very much. All resolved.


Fix NIC.dhcp bool-to-str convertion

In the code of create_nic(), you have:
properties['dhcp'] = str(loadbalancer.dhcp).lower()

If the NIC was created with dhcp set to any explession that returns an object, but not True/False, this would lead to sending a string representation of the object to the API.
Easy fix — convert it to a boolean first:
properties['dhcp'] = str(bool(loadbalancer.dhcp)).lower()

The same is for LoadBalancer.dhcp.
The same is for NIC.__repr__ and LoadBalancer.__repr__.

I tested the create_nic method and the dhcp value currently supports True and False booleans as well as "true", "True", "false", and "False" strings. I feel this covers most situations and I would expect any other value to result in an exception.
If we explicitly set the value to a boolean as suggested, then this would result in converting "False" or "false" strings to True. This is likely to cause confusion.

Maybe you should handle all special cases explicitly.
This case can cause problems. We want dhcp only if we have any ips assigned to the NIC, otherwise no DHCP. Just as a sample case, not real yet. Here, we check for object to evaluate to true, ie being non-empty. I will have to force-convert it to bool(), but this is not always done.
ipblock = MyOwnIPBlockObject(size=5)
default_ips = ['<IP_ADDRESS>']
NIC(..., dhcp=ipblock or default_ipset)

This is not something the ProfitBricks SDK will support. The SDK follows the behavior of the ProfitBricks REST API which is to accept true if you want DHCP enabled or false if you want DHCP disabled. The default behavior of both the SDK and REST API is to enable DHCP unless it is set to false. The dhcp property value should not be used to evaluate whether an object exists or not. That logic is better handled prior to defining the NIC.


vpn prompt: change "ip" to "ifconfig" to be used on OSX

Update of the vpn prompt to use /sbin/ifconfig instead of ip

Thanks so much for the PR, @golgoth31! Sorry you went for a few weeks, there, without a response.
We've had a couple of other suggestions for how to handle this in #540 from @onaforeignshore and @guidoilbaldo.
If some of our macOS devs could review & test this, and leave comments, that would be fantastic =)

Hi, I found a mac and made some test so, it seems that using ifconfig is working on both Linux and macOS. Of course, If some one knowing macOS well could test and validate it's much better !

I don't want to let this one bitrot. Are there any other macOS users that wouldn't mind giving this a shot to verify all is well?

hey, had the chance to test the override in zshrc for other interfaces name (like "tun" for Tunnelblick") as @golgoth31 suggested. It works like a charm, so you can merge this branch :)

Thanks for the confirmation, @guidoilbaldo!
@golgoth31 - Great contribution, and thanks for the PR! Welcome to P9k as a contributor =)


South Africa testing centers (hospitals only,for now)

There is outstanding data about the Gift of the Givers's Testing centers' locations and some public clinics - will send those once recieved.
The data sources are the webpages appended in the json file
I decided to use Zulu as the language not only to diversify languages but also because it is a  language said to be spoken by a majority of South African.Translations are available should some need to stick to English

Fantastic, thank you so much @elolelo! I'll run a quick test and then merge your request.

Dear @elolelo so sorry for the mess I made in the review. There is a conflict on the testsitesZAF.js file. Somehow 2 records got mixed up I think. Could you have a look, please?

Dear @IneffableKoD , I think is more than 1 change is taking place on this file. For now, I will close this  pull request and create a new one.

Yes there was another PR waiting on the same file that I approved. Sorry again!


Version Packages

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
<EMAIL_ADDRESS>Patch Changes

#423 9a36be0 Thanks @GarthDB! - Fixed issue when version number was hardcoded.

Run report for d4f770fb
Total time: 14.3s | Comparison time: 14.9s | Estimated savings: 659.8ms (4.4% faster)

Action
Time
Status
Info

🟩
SyncWorkspace
5.1ms
Passed

⬛
SetupToolchain(node:~20.12)
2s
Skipped

🟩
SyncProject(node, diff)
0.2ms
Passed

🟩
SyncProject(node, root)
0.2ms
Passed

🟩
InstallWorkspaceDeps(node:~20.12)
6.9s
Passed

🟩
RunTask(diff:diff)
98.9ms
Passed

🟩
RunTask(root:test)
1.6s
Passed

🟩
RunTask(diff:test)
5.4s
Passed

Touched files
.changeset/eleven-cougars-guess.md
tools/diff-generator/CHANGELOG.md
tools/diff-generator/package.json