Use Animated Logo on Header.

A slight update to replace the current Static Logo of Alexa Dev Hub with the Animated Logo HERE

@harshalkaigaonkar Would like to make this update?

could you make it labeled as hacktoberfest

Sure would do that.
But the new Hacktoberfest 2020 Rules are as follows:
PRs count if:
Submitted in a repo with the hacktoberfest topic AND
during the month of October AND (
  The PR is merged OR
  The PR is labelled as hacktoberfest-accepted by a maintainer OR
  The PR has been approved
)

yeah i'll do that

do you want any changes regarding the position of the gif?

@harshalkaigaonkar also please see the header on mobile devices, actually the logo gets hidden. If the Blogs Button is moved within an expandable menu when on smaller screens, the Main Logo will appear fully.
Shall create this as an issue and assign it to you?

could you create a new issue and assign it to me

do you want any changes regarding the position of the gif?

?

could you create a new issue and assign it to me

Sure.

do you want any changes regarding the position of the gif?

No not as such, it should always be center aligned as it is currently. And the should run only once when the site loads/reloads.
Can this be done? @harshalkaigaonkar

do you want any changes regarding the position of the gif?

No not as such, it should always be center aligned as it is currently. And the GIF should animate only once when the site loads/reloads.
Can this be done? @harshalkaigaonkar

yeah!


refactor regression test cleanup action to parallelize [sc-51778]

What this PR does / why we need it:
This PR parallelizes the regression test cleanup action to introduce parallelization. Because it was previously entirely serialized, on busy days it could take over an hour to run. Additionally, this prevents failures in one environment from affecting cleanup of downstream environments.

Don't forget to run npm run build to update the dist


Output discrepancy with column_type_predictions.json

[x] BOM character at beginning of OBJECTID in tests/column_type_predictions.json
[x] prettyprint JSON output to allow line diffing

I have fixed these two bugs and pushed it to master (see https://github.com/alan-turing-institute/ptype-dmkd/commit/5e8470e837d88f476baabffd0cc218790395dd37)


Release 4.1

Starting work on v4.1 release. Plan is to have better support for CoreData / Realm integration especially regarding collections.
First feature I'm adding is a support for ObservableArray batch updates based on a diff with another array. For example:
let myData = ObservableArray([0, 1, 2, 3])

myData.observe { event in
  print(event)
}

myData.diffInPlace([0, 2, 3, 4])

Would result in
.Delete(range: 1..<2)
.Insert([4], fromIndex: 3)

This would give us nice table/collection view batch update.
Obviously, diff is not the most performant way to get this, but in certain situations it might be the only way.

Great, this diff method is right what I need. Found similar project, maybe it can help https://github.com/khanlou/NSArray-LongestCommonSubsequence


no space, what is wrong ?

mcu is stm32f103vc, External display controller is ssd1963. 7 '' tft.
Lcd\Lcd.axf: Error: L6406E: No space in execution regions with .ANY selector matching lv_mem.o(.data).
Lcd\Lcd.axf: Error: L6406E: No space in execution regions with .ANY selector matching lv_theme.o(.data).
Lcd\Lcd.axf: Error: L6406E: No space in execution regions with .ANY selector matching lv_draw.o(.data).
when I compile the code in mdk.

Hi,
STM32F103 is very limited in memory so you need to be very careful what is enabled an what is not.
Please send us your lv_conf.h to see your configuration.

This issue was inactive for 2 moths so I close it now.
If you have any update in this field feel free to reopen it!


FP in Springboot

Hi
I am using a project that uses springboot in a non vulnerable version, and CVE 2016-9878 is being reported there
The analysis has found this in a component that is version 1.0.0 and uses springboot, but it is not springboot itself
See details below
Source	Name	Value
file	name	myname
file	version	1.0.0
Manifest	Implementation-Title	myname
Manifest	implementation-url	http://projects.spring.io/spring-boot/myname/
Manifest	Implementation-Vendor	Pivotal Software, Inc.
Manifest	Implementation-Vendor-Id	ID
Manifest	Implementation-Version	1.0.0-SNAPSHOT
Manifest	spring-boot-classes	BOOT-INF/classes/
Manifest	spring-boot-lib	BOOT-INF/lib/
pom	artifactid	myname
pom	description	Desc
pom	groupid	myname.myproject
pom	name	myname
pom	parent-artifactid	spring-boot-starter-parent
pom	parent-groupid	org.springframework.boot
pom	version	1.0.0-SNAPSHOT
Identifiers
maven: com.myname.myproject:1.0.0-SNAPSHOT   Confidence:HIGH
cpe: cpe:/a:pivotal_software:spring_framework:1.0.0   Confidence:LOW   suppress
Hope that helps
Thanks

After reviewing this - resolving this class of FP will likely take a bit more effort.  In the meantime, I would suggest that users utilize a local suppression file.

I don't unterstand How can I utilize a local suppression file !! Any help please

@ammy1999 please see the answer at https://github.com/jeremylong/DependencyCheck/issues/981#issuecomment-347355230

Thanks @jeremylong  , but please just a question why I should add the suppression file or this file exist in the code source !! it can remove the FP automatically or should update this file to remove successfully the FP

Many users of dependency-check have a local suppression file (separate from the one included with dependency-check-core). This is done so you can more quickly suppress false positives, deal with false positives that are local to your environment (i.e. your organizations own libraries are being flagged incorrectly, etc.).


Forms - IE9 - Text Field & Hidden Labels: Hidden labels not showing

This works when applying the .ds-sr-only class to the label via the inspector. Salesforce currently does not offer the option to hide labels. Re-assigning to @fuhton for further feedback.


⚠ Bofrost.at has degraded performance

In 7108286, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2166 ms

Resolved: Bofrost.at performance has improved in 0d389a8 after 9 minutes.


Remove https

There is no https at github for custom domains :(
Leads to a error if we click on a lick with an unstrusted/not available https certifiaction.
I think it is better to don't show/see that error :)

Woops!
Thanks ;)


Please add CHANGELOG.md

And thanks for maintaining this! :-)

Sorry, I don't want to maintain this.

There are easy and quick tools to do this, e.g.: https://www.npmjs.com/package/changelog

I know there are tools, but it requires configuration to add more value than this simple link : https://github.com/Toilal/ng-pickadate/commits/master.
I have few time for this library sorry, I also know CHANGELOG is great for users, but I really don't want to care with this on this repository.

Fair enough; just remember to follow http://semver.org/ accurately.


Printed response body not appearing in logs until next newline is printed to stdout

When a controller is configured to print the response body, the response body will not actually appear in the logs until the next newline is printed to stdout.
The best explanation is probably an example. The following is taken from running a version of the kafka-connector built with the connector SDK with a simple function hello that returns "Hello" every time it is invoked.
 1. | 2019/02/02 05:45:33 Syncing topic map
 2. | 2019/02/02 05:45:36 Invoke function: hello
 3. | [#1] Received on [faas-request,0]: 'a'
 4. | [200] faas-request => hello
 5. | 2019/02/02 05:45:36 connector-sdk got result: [200] faas-request => hello (6) bytes
 6. | 2019/02/02 05:45:36 Syncing topic map
 7. | 2019/02/02 05:45:39 Syncing topic map
 8. | 2019/02/02 05:45:42 Syncing topic map
 9. | "Hello\n"[#2] Received on [faas-request,0]: 'b'
10. | 2019/02/02 05:45:42 Invoke function: hello
11. | 2019/02/02 05:45:42 connector-sdk got result: [200] faas-request => hello (6) bytes
12. | [200] faas-request => hello
13. | 2019/02/02 05:45:45 Syncing topic map

Line 4 is part of printing the response body, and the expected behavior is that the "Hello\n" message would be printed on the next line. However, the message is not printed until line 9. This is the next point at which a newline is printed to stdout. Note that the message for the second invocation is not printed at all.
To verify that the problem is indeed related to printing a newline to stdout, I created a ResponseSubscriber whose implementation was simply fmt.Println() and subscribed it to the controller. The result exhibits the expected behavior:
 1. | 2019/02/02 06:24:08 Syncing topic map
 2. | [#1] Received on [faas-request,0]: 'a'
 3. | 2019/02/02 06:24:09 Invoke function: hello
 4. | [200] faas-request => hello
 5. | "Hello\n"
 6. | 2019/02/02 06:24:09 connector-sdk got result: [200] faas-request => hello (6) bytes
 7. | [#2] Received on [faas-request,0]: 'b'
 8. | 2019/02/02 06:24:11 Invoke function: hello
 9. | 2019/02/02 06:24:11 connector-sdk got result: [200] faas-request => hello (6) bytes
10. | [200] faas-request => hello
11. | "Hello\n"
12. | 2019/02/02 06:24:11 Syncing topic map

Hey there @tessellator nice catch there, I saw the issue you describe and it is kinda annoying. Thanks for looking into it 👍


introduces FreeBSD's SO_TS_CLOCK into net::sys::socket::sockopt.

close GH-2058.

Guess what?  It needs another rebase, both to fix the CHANGELOG and to fix CI.


Set cell border for merged cells

Hi. i have set border-top; and border-bottom my merged cells table in css, but failed to show border in excel.
Here my css:
tr.border-double {     border-top: 1px double #000000;     border-bottom: 1px double #000000; }
and here my table:

then the result:

merged column cant set border top and bottom.

Known bug, difficult to fix.
Use PHP-methods to merge the columns, it will work better.


OIPA-2323

https://app.zenhub.com/workspaces/iaticloud-5b8e865bb2cc7b6c78ece322/issues/zimmerman-zimmerman/iati.cloud/2323

:tada: This PR is included in version 5.3.2-develop.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 5.3.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


FutureStateNotifierProvider

Is your feature request related to a problem? Please describe.
I want to create a StateNotifier that keeps mutable state (similar to the TodoProvider from docs), but I want to initialize that state with asynchronous method.
Describe the solution you'd like
So essentially I want a combination of FutureProvider and StateNotifierProvider - FutureStateNotifierProvider. A StateNotifierProvider that accepts async lambda for creator.
Describe alternatives you've considered

Just use empty state and load data in the background

This can work in most cases, but in my case I want that provider to be usable from regular widgets as well as from imperative code where I'm not watching it, but I only want the read value (e.g I want to be able to type in something like container.read(todosProvider.state) and get actual state, not a placeholder value.).

Use null as initial state and then wait in your imperative code for value to be non-null

This works but it brings on additional hassle of having to deal with null values. Ideally, everything should be non-nullable.
Example use case for this would be todo list app where todos are loaded from disk asynchronously. But additionally, sync with server is performed in another isolate where data is loaded from the provider and then sent to the server imperatively.

@matejdro Combination of FutureProvider and StateNotifierProvider is equal to
class UserNotifier extends StateNotifier<AsyncValue<User>>{
   UserNotifier() : super(const AsyncValue.loading) ;
   //....
}

What @iamarnas said works great! I actually recored a tutorial video on this today that I'll upload to YouTube soon. Will post the link here.

Indeed the solution is as @iamarnas said
This is better because that means that inside onClicks you don't have to deal with UserNotifier being asynchronously created.

Thanks to you both. This solution works great!

@rrousselGit – it might be worth updating the Todos example to show how the TodoList example would work with async data.

@rrousselGit – it might be worth updating the Todos example to show how the TodoList example would work with async data.

Actually, the video by @funwithflutter is helpful for this: https://www.youtube.com/watch?v=2vcjEuIkU0g

Actually, the video by @funwithflutter is helpful for this: https://www.youtube.com/watch?v=2vcjEuIkU0g


OIDC Federation Fails with CertificateException

Configure OIDC federation with another Identity Server and import that server's certificate to primary IS client-trustore.jks. Authentication is successful but after that it fails with the following error.
Caused by: java.security.cert.CertificateException: No name matching localhost found
at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:221)
at sun.security.util.HostnameChecker.match(HostnameChecker.java:95)
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:455)
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:436)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:200)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
... 78 more

This was tested by having primary IS in openstack instance and federated IDP in local machine. The hostname of primary IS is changed. In the primary IS, the token endpoint is configured as http://localhost:9443/oauth/token. when the primary is trying to send token request as a post request to http://localhost:9443/oauth/token endpoint, it calls its localhost's token endpoint instead of calling federated IDP's token endpoint with a cert with different CN name


[Regression] background_jobs segment doesn't update in next branch when jobs finish

In release branch, when a background job completes, background_jobs segment updates. In next it doesn't.
Here's master:
docker run -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -e TERM=$TERM -it --rm ubuntu bash -uexc '
  apt update && apt install -y zsh git
  git clone -b master https://github.com/bhilburn/powerlevel9k.git ~/powerlevel9k
  echo "
    POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=()
    POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(background_jobs)
    source ~/powerlevel9k/powerlevel9k.zsh-theme
    sleep 3&" >~/.zshrc
  zsh -i'

Replace master with next to test with next branch.

Notice how next is still saying there is a background job after the job completes.

Hm, I'm not quite sure how to circumvent this. This happens because __p9k_prepare_prompts is not triggered after the notify "done" before the prompt is redrawn. Is dosn't update __p9k_unsafe_prompt which is evaluated from PROMPT.

Using %j would yield the correct job number at least but compromises on being extendable for splitting up jobs (running + suspended). Also, the segment would still be there and not hidden for one prompt. This could be used if the "expand" option is not set, but is only a half-way fix.
Maybe there is some kind of hook for the "done" notify to run the precmd hook/__p9k_prepare_prompts function before rendering.
Another fix would be to revert the changes, which would lead to the same problems as before in #1119
For completeness sake of my brainstorm: You could do unsetopt notify. This would prevent the prompt rerender since "done" is never shown, but would compromise user settings, which I do not like at all!

Side note: After hitting enter you get the correct prompt
@dritter @romkatv any better ideas?

It works in Powrelevel10k. You can take a look how it's done. It's really brutal though. And because of a bug in zsh the prompt refreshes only after a second. Still better than no refresh at all. I'll post a link to the bug once I send the report to zsh-workers. If you find a better solution, let me know.
I've also started thinking about a very different approach to rendering segments that would solve this and other problems. The ideas are still very raw. I need to educate myself better about zsh before I can flesh them out.

It works in powerlevel10k because your PROMPT is probably more similar to the one on master where the build function is called every time the PROMPT variable is evaluated. The bug described in #1119 only triggers if the prompt render is interrupted (e.g. by holding down ctrl-c). Then the unevaluated PROMPT is shown. At least that is what I think is happening.
For Powerlevel10k you probably don't run into this because ctrl-c is probably not fast enough to interrupt rendering. I didn't test this hypothesis though.

It works in powerlevel10k because your PROMPT is probably more similar to the one on master where the build function is called every time the PROMPT variable is evaluated.

Ha-ha, no :-D
Powerlevel10k only looks the same. The code is almost 100% rewritten (except for the odd segments that I don't use).

How do you think I knew that background_jobs is probably broken in next? You told me you've removed process substitution from prompt. I've already done it and knew that it breaks background_jobs, so I assumed it broke in next too.

I opened another bug: https://github.com/bhilburn/powerlevel9k/issues/1201. Figured you'll probably have to go through everything that stops working once you remove process substitution, so I might as well save you time.

I just finished a new implementation of background_jobs in Powerlevel10k that passes all the checks. No process substitutions, super fast, and updates instantly when jobs finish. Feel free to peek. It's implemented on top of the new rendering engine for segments I built, which is incredibly powerful but also incredibly complex.

I didn't find a hook that gets triggered after a background job is done. Which means I can't run the necessary __p9k_prepare_prompts function before prompt render like it is possible for vi_mode.
So I see two ways to tackle this.

Add a "timer" for every instance of zsh to check if the number of background jobs changed and then trigger __p9k_prepare_prompts and reset-prompt if different.
Pros:
- Could also be used for different things like #1190 / #1193
Cons:
- Extra process for every zsh instance (probably wouldn't need much computing power)
- The prompt would render twice after a background_job done.
- The second render would be delayed in average by half the delay the timer has (so .5s probably)
Looking at @romkatv's implementation. He does two things differently, as far as I understood his code:
a. instead of working with echo -n he uses a global variable to build his prompt: _P9K_PROMPT+="new content from segment". This takes care that there is not ctrl-c bug. (Not sure how this handles not expanding evil code in prompt but apparently it doesn't run it.)
b. I think he adds something to not render the segment if it returns empty even if the precmd function was not called. https://github.com/romkatv/powerlevel10k/blob/0710cc7221cef20b73eeb75c6b3f2043ff56d019/powerlevel9k.zsh-theme#L226? I makes my brain melt... While this expansion stuff is what seems to tickle @romkatv in the right ways, it does not for me. :sweat_smile: I brooded for 2-3 hours and gave up now...

@dritter, thoughts?

IMHO we should use %j as @romkatv does. And in the extended case a subshell. This is not ideal, but seems to be the best compromise in terms of code readability and speed.
A timer and/or a precmd hook look too complicated to me.

echo vs _P9K_PROMPT+="new content from segment" is a red herring. You get problems with Ctrl-C when you have command substitution in PROMPT. It's a bad idea to put command substitution in PROMPT not just for this reason but even this one is enough.
Powerlevel10k doesn't put command substitution in PROMPT, hence you cannot glitch it with Ctrl-C. How PROMPT is actually built is irrelevant. You can use echo and command substitutions in precmd all your want -- that stuff won't spill its guys like PROMPT does when users smash Ctrl-C.

Not sure how this handles not expanding evil code in prompt but apparently it doesn't run it.

You mean not doing expansion on things like directory names? Powerlevel10k does this better than Powerlevel9k. See https://github.com/bhilburn/powerlevel9k/issues/1206 and several other bugs I opened.

IMHO we should use %j as @romkatv does. And in the extended case a subshell.

Using %j is a good idea because it's much faster. Subshell is tricky though because you need to handle the case when the last background job disappears and you need to remove the whole segment. You cannot do it by using command substitution just for the background jobs segment because connection colors in the neighboring segments will need to change. So you'll have to wrap the whole prompt in $(build_prompt) again, which gets you the nasty Ctrl-C issue back, no realtime clock, and bad performance.

I think he adds something to not render the segment if it returns empty even if the precmd function was not called.

That's right. Segments in Powerlevel10k have dynamic conditions attached to them. When PROMPT is expanded, segments whose conditions expand to null are skipped over. Expansion of PROMPT has a state machine in it, which allows the remaining segments to get rendered with the right connections.
Check out https://www.reddit.com/r/zsh/comments/b1xxuj/abusing_zsh_parameter_expansion_for_fun_and/eiqeauc?utm_source=share&utm_medium=web2x, where I explain how this machinery works. There is a detailed example, too.
This code will get simpler once I finish the extension API.

TL;DR of the last 3 posts: I can't do it like this without re-implementing code render as you did; %j should be good enough for now

Closing this issue for now, as the discussion proceeded in #1254 and that one got merged.


Unable to print arabic

Its printing ????. I can able to print chines...But arabic is not printing Please help
encoder
.codepage('cp864')
.text('جريدة')
.newline()
.cut('partial')
.encode()

I've done a quick test and it appear that the data I get back from iconv-lite, which does the code page translation, already contain the question marks. So it is not an issue with the printer or EscPosEncoder itself.
I'm not exactly sure why that is happening, except that the unicode code points in the string "جريدة" are not in the translation table. Perhaps the strings needs to be normalised or something. I'll follow up once I have more information.

Thank you. Its is working fine. Actually codepage i wrong what i gave.. Now its printing but it is printing arabic from left to right. I want to print from right to left. Please help

The problem with ESC/POS printers is that they are pretty dumb. You can basically print the arabic characters that the codepage provides and that is it. Things like right-to-left support and glyph shaping is simply not supported.

Just got an Epson TM-T88VI which is the latest T88 model at the time of writing this and there are some Arabic settings using a special Epson utility.  Here's some more information...
https://github.com/qzind/tray/pull/339#issuecomment-404016953
We're using a 3rd party library -- ICU -- that can get the UTF-8 glyph shaping and simplify it to IBM864.  It's written in Java and C++: http://site.icu-project.org/#TOC-What-is-ICU-

Yes, I am aware of ICU and that would indeed work. However I am not aware of a Javascript implementation of ICU, apart from an enscriptem compiled C version. But that has a pretty high footprint to include with the library.
Mapbox actually uses Enscriptem compiled subset of ICU for pretty much the same purpose, rendering Arabic script on a WebGL map: https://github.com/mapbox/mapbox-gl-rtl-text

Thank you. Its is working fine. Actually codepage i wrong what i gave.. Now its printing but it is printing arabic from left to right. I want to print from right to left. Please help

Hi @vinothmoorthkumar How did you manage to print Arabic text?

How did you manage to print Arabic text?

Chiming in, if you have the IBM-864 characters (NOT the UTF-8) characters and a printer that supports IBM-864, this should work.  As noted above, the bytes may need to be swapped.
Since 99% of websites are UTF-8, this makes Arabic very difficult natively (hence the conversation about about the ICU translation).  Feel free to email me directly for more info about how I solved this problem.  I believe most programmers give up with Arabic and send a raster image or PDF instead.

@tresf Could you send me an example, please

@tresf  This my case
encodeWords(word){
this.encoder = new EscPosEncoder();
let result = this.encoder
.codepage('cp864')
.text(word)
.encode();
return result;
}

@williamrizqallah out of respect of this project, I'm not going to cross-reference my solution, it's in Java and for a commercial product.  My email address is in my GitHub profile if interested.

@vinothmoorthkumar Thanks for your response
Could you please show me an example

Did you manage to solve this problem?

Here is my code
`const {
createCanvas,
loadImage,
Image
} = require('canvas');
var escpos = require('escpos');
canvas= createCanvas(580, 700)
var ctx = canvas.getContext("2d");
ctx.textAlign = "center";
ctx.font = "30px bold";
ctx.fillText('مرحبا بالعالم',50, 50);
device.open(function () {
escpos.Image.load(canvas.toDataURL(), function (rasterimage) {
printer.raster(rasterimage)
printer.cut()
printer.close()
});
});
`

Just modified @vinothmoorthkumar code little bit to work with printer and node-thermal-printer:
const importedThermalPrinter = require('node-thermal-printer').printer;
const thermalPrinterTypes = require('node-thermal-printer').types;
const printer = require('printer');

const fetchedPrinter = printer.getPrinter('POS-80');

const createCanvas = require('canvas');

canvas = createCanvas(580, 700)
var ctx = canvas.getContext("2d");
ctx.textAlign = "left";
ctx.font = "30px bold";
ctx.fillText(' مرحبا بالعالم', 50, 50);

const thermalPrinter = new importedThermalPrinter({
    type: thermalPrinterTypes.EPSON,
})
thermalPrinter.printImageBuffer(canvas.toBuffer()).then((s) => {

    printer.printDirect({
        data: thermalPrinter.getBuffer(),
        printer: fetchedPrinter.name,
        type: "RAW",
        success: function (job_id) {
            console.log('OK :' + job_id);
        },
        error: function (err) {
            console.error(err);
        }
    });
}, (e) => {
    console.error(e);
});

hello my printer is print  ?????? when use .codepage('iso88596')
or .codepage('windows1256')
any fix please

hello my printer is print ?????? when use .codepage('iso88596')
or .codepage('windows1256')
any fix please

@jadallah
use encoding: 'Arabic', codepage: 22,

@jadallah  Have you found a solution for this I am also getting ???????? after printing

@Waheed-Rumaneh hello I am  still getting ??????? after printing any solution ?

@Waheed-Rumaneh
it did not work

@amalnafia
yes i researched about it and it's worked for some printer
Each printer have difference code so you can't build a general code
the best way i used and it's worked prefect :

build your style that you want to print as react native style
contain your style inside ViewShot component
take a temporary screenshoot for this section
print the screenshoot then delete it

this solution worked with all printer
this link will help you :
https://github.com/januslo/react-native-bluetooth-escpos-printer/issues/77#issuecomment-696225197

@Waheed-Rumaneh
i am working with android device

@amalnafia
i was able to print arabic by make the invoice as photo with server side then use this plugin to print photo and it work perfect

EscPosEncode

does this works,which converter are you using

u can use this
you can check this
this repo use 3 laiblary
secreenshot to convert widget to image
and image library to convert it to uint8
and pos_print to print it ass u love to show
https://github.com/blackangiliq/flutter_pos_printer_spport_arabic

you need to convert text to bitmap image .. if image too height then after convert to bitmap split image to chunk
note : you must get max width of printer to rescale image

how can you print arabic ?

Thank you. Its is working fine. Actually codepage i wrong what i gave.. Now its printing but it is printing arabic from left to right. I want to print from right to left. Please help

How you solve it to be able print Arabic ?

@yaser-elbatal
use this command before print :
byte[] ESC_ALIGN_LEFT = new byte[] { 0x1b, 'a', 0x00 };
byte[] ESC_ALIGN_RIGHT = new byte[] { 0x1b, 'a', 0x02 };
byte[] ESC_ALIGN_CENTER = new byte[] { 0x1b, 'a', 0x01 };
thanks

@yaser-elbatal use this command before print : byte[] ESC_ALIGN_LEFT = new byte[] { 0x1b, 'a', 0x00 }; byte[] ESC_ALIGN_RIGHT = new byte[] { 0x1b, 'a', 0x02 }; byte[] ESC_ALIGN_CENTER = new byte[] { 0x1b, 'a', 0x01 };
thanks

with EscPosEncoder  or Canvas ?
can you share code please ?
@laithbzour

I fix this problem buy ......
1-make the text as image
2-print the image as base64
I used this method in 2018 but i forget to close the issue .... There is no another way for Arabic language

@yaser-elbatal  sure :
try {
EscPosPrinter printer = new EscPosPrinter(MyBluetoothPrintersConnections.selectFirstPairedOne(), 203, 58f, 20);
StringBuilder textToPrint = new StringBuilder();
splitImage(yourBitmap, splitImg->{
textToPrint.append("[C]" + PrinterTextParserImg.bitmapToHexadecimalString(printer, splitImg) + "\n"+
"[L]\n");
});
textToPrint.append("[C]--------------------------------\n");
printer.printFormattedTextAndCut(textToPrint.toString());
} catch (EscPosConnectionException e) {
e.printStackTrace();
} catch (EscPosEncodingException e) {
e.printStackTrace();
} catch (EscPosBarcodeException e) {
e.printStackTrace();
} catch (EscPosParserException e) {
e.printStackTrace();
}

use this lib to build bitmap from text :
compile 'com.github.danielfelgar:draw-receipt:0.1.3'
private  Bitmap greatBitmapText(String text){
    ImageBuilder  receipt = new ImageBuilder(400);
            receipt.setMargin(5, 1).
            setAlign(Paint.Align.LEFT). ---> change it to "CENTER" or "RIGHT"
            setColor(Color.parseColor("#85929E")).
            setTextSize(28).
            addText(text)
    return receipt.build();
}


[DO NOT MERGE] Remove Group model

After removing the code for rendering and editing Governance Groups (https://github.com/alphagov/whitehall/pull/2713), the related models are not needed anymore. So we are going to delete:

Group
GroupMembership

This needs https://github.com/alphagov/whitehall/pull/2713 to be released first.

👍


fix: public applications and request content-type

We forgot to add the content-type on tests and i've inverted the confidential validation.

Coverage increased (+0.8%) to 84.438% when pulling 33d14f94cfb31a52978b4d332f6dad6d66cb4dc8 on fix/public-applications into 7952e5f26348ee0da383dfd2288a9dc30823fcbd on master.


Add --as-text option

This PR adds a new --as-text option, which is equivalent to the --text option in GNU Grep.
Without this option, ag sometimes interprets cp1251-encoded sources as binaries. Effectively, the new option disables the binary detection heuristic, which makes perfect sense for situations where ag is asked to perform search only in files with a specific extension (corresponding to a particular language).

Ping. I use this feature all the time to reliably grep through sources that contain non-ASCII characters.

Hi, really required this param, to proper search

Any follow up on this?

Any follow up on this?

Seconding this. I was surprised to find I couldn't just rename my binary file to .txt and ag through it :)

@murmour Thank you for MR, you saved me.
Also voting for inclusion this patch into main source tree. For some reason it treats regular text files in single byte encoding as binary ones.


Add Microsoft Graph PowerShell SDK

Description
New tool
The Microsoft Graph PowerShell SDK is a collection of PowerShell modules that contain commands for calling Microsoft Graph service. It's the replacement of the AzureAD PowerShell module and the way forward in PowerShell to call the Microsoft Graph. See Microsoft announcement for more information.
See #4268 for more information.
Size: 76,4 mb
Installation time: 41 seconds
Tests are already in place via PowerShellModules.Tests.ps1 test PowerShellModules.
Related issue:
Check list

[x] Related issue / work item is attached
[x] Tests are written (if applicable)
[x] Documentation is updated (if applicable)
[x] Changes are tested and related VM images are successfully generated

Installation of the module works fine. Is much faster than expected. Is 21ms.

It's time how long the pester test has been run.

Build fails because of Selenium??
Provisioning with powershell script: C:\agent\_work\12\s\images\win/scripts/Installers/Install-Selenium.ps1
    vhd:
    vhd:
    vhd:     Directory: C:\
    vhd:
    vhd:
    vhd: Mode                 LastWriteTime         Length Name
    vhd: ----                 -------------         ------ ----
    vhd: d-----        10/14/2021  10:45 AM                selenium
==> vhd: Start-DownloadWithRetry : Cannot bind argument to parameter 'Url' because it is an empty string.


Update free-courses-fa_IR.md

Added a beginner's course for the ASP.NET MVC framework.
What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
Add a beginner's course for the ASP.NET MVC framework.
For resources
For book lists, is it a book? For course lists, is it a course? etc.
course
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Used an informative name for this pull request.

Be sure to check the free-programming-books-lint output for linter errors. Alphabetical order and spacing are the most common problems.

از لحاظ ترتيب حروف الفبا مشكل داره ، چك ها پاس نميشن، topic مربوط به " آموزش Asp.Net MVC به همراه پروژه عملی " بايد بالاسر topic مربوط به  "دوره مقدماتی دات نت 5 تحت وب" قرار بگيره

@eshellman this PR can be closed safely as the issue with the pr was solved in #10818

@rng70 Very helpful. Thanks!


Using SharePointIntegration.Selected in OnVisible is not supported.

Using SharePointIntegration.Selected in OnVisible is not supported.

@russgove : Thanks for your contribution! The author, @sarafankit, has been notified to review your proposed change.

@russgove - Thanks for your contribution. I have suggested a small change to what you submitted. I can do the change and submit it, but don't want to loose your contribution. (Or maybe I don't know how to keep your contribution while making that changes :( )

Thanks! I hadn't considered using   OnNew, OnEdit or OnView,
On Thu, Jun 7, 2018 at 4:43 PM, Ankit Saraf<EMAIL_ADDRESS>wrote:

@sarafankit requested changes on this pull request.
Can you please change it to "The properties for the
SharePointIntegration control may not be available in OnStart or
OnVisible."
Comment - They are not set so early in the cycle to be available on the
first page, but if you do a navigate in OnNew, OnEdit or OnView, they will
be available on subsequent page. Generally, a better idea is to use OnNew,
OnEdit or OnView in the forms scenario rather than OnStart or OnVisible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/powerapps-docs/pull/16#pullrequestreview-126949244,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTRnHeOhQbHJ0_GzKybisPWhxvCyFUZks5t6ZB2gaJpZM4UeuV1
.

@russgove : Thanks for your contribution! The author, @sarafankit, has been notified to review your proposed change.

@russgove : Thanks for your contribution! The author, @sarafankit, has been notified to review your proposed change.

@russgove : Thanks for your contribution! The author, @sarafankit, has been notified to review your proposed change.

@sarafankit If you sign off on this PR, we can publish it. Thanks.

Thanks @russgove and @AFTOwen, the changes look good. #sign-off


[Question] Handling Long Notifications When max_width is Set

Instead of truncating very long messages if they are longer than a set max_width, would it be possible to move truncated part of a message to the next line of the notification? See an example(well it did actually occur so I'm not sure if I can call it an example anymore) situation below:
Here are some notifications with no max_width set, as you can see, this message is rather long and blocks the top portion of my screen.

Here are the same notifications but with max_width set to 50. Here the notification is at the preferred length but the end of the notification text is truncated. It would be nice if that truncated part was on a new line.
.

I wouldn't want nvim-notify to do this because messages could have specific formatting that wouldn't make sense if truncated (e.g. messages that use treesitter highlighting) but you could easily do this manually with something like this:
local function split_length(text, length)
  local lines = {}
  local next_line
  while true do
    if #text == 0 then
      return lines
    end
    next_line, text = text:sub(1, length), text:sub(length)
    lines[#lines + 1] = next_line
  end
end

vim.notify = function(msg, level, opts)
  if type(msg) == "string" then
    msg = vim.split(msg, "\n")
  end
  local truncated = {}
  for i, line in ipairs(msg) do
    local new_lines = split_length(line, max_width)
    for _, l in ipairs(t) do
      truncated[#truncated + 1] = l
    end
  end
  return require("notify")(truncated, level, opts)
end

I have not tested this so almost certainly contains bugs :sweat_smile:

Sorry for the late reply. I understand your reasoning behind your decision. I will try out your snippet and see if it works.

@rcarriga whoops, forgot about this issue. Unfortunately the snippet you provided did not work. Perhaps reopen this issue?

The snippet was a just a quick example of what you can do, as I said it was not tested.

had exactly the same issue. a modified version of the snippet above solved it for me.
Since it seems that wrapping is an issue regularly coming up (e.g., #137 #88 #143 ), I'd suggest simply making this an setting in the config?

I wouldn't want nvim-notify to do this because messages could have specific formatting that wouldn't make sense if truncated (e.g. messages that use treesitter highlighting)

I see the point, here, but in all my plugins / personal uses of vim.notify in my config, there is not a single instance where treesitter-highlighting is used in the notifications. (I don't even know which plugins send treesitter notices tbf 😅) So an options would be quite useful

@chrisgrieser would you mind sharing the modified snippet that actually works, please? 😄

sure, here is my nvim-notify config: https://github.com/chrisgrieser/.config/blob/main/nvim/lua/plugins/notifications.lua

Since it seems that wrapping is an issue regularly coming up (e.g., https://github.com/rcarriga/nvim-notify/issues/137 https://github.com/rcarriga/nvim-notify/issues/88 https://github.com/rcarriga/nvim-notify/pull/143 ), I'd suggest simply making this an setting in the config?

I can see that this is a popular request still, I'd open to PRs allowing for this behaviour behind a config option if anyone would like to open one  :smile:


Publish newest version to npm

A few bugs were fixed since November and merged to master but the package on npm is still old.
Could you publish the newest master to npm?

@Ilaiwi

👍 Would like that too!

Bump
@Ilaiwi  @rmccue  @danielcruser @tyson-kubota @xat @joncar

👍 to this. I'm willing to offer my help if needed as well 🙂

Newest version was pushed to npm. Thanks a lot!

I have done an npm update but the package has the same bug? Is there another command I should be doing? @FridgeWalaby @Ilaiwi


[Feat] Add Readme and Description

Remove Place holder and add, nice and crisp readme, for reference you can see my profile readme at https://github.com/JaiS99/JaiS99/readme.md

can you assign me this issue


Handle situations when stored Optical Data has a different discretization of that in the options

Issue
At present, it is possible to set a path to read/write daylight coefficient calculations from the model.
SolarOptions {
   name: "some_name",
   n_solar_irradiance_points: 100,
   solar_ambient_divitions: 3000,
   solar_sky_discretization: 1,
   optical_data_path : "optical_data.json", //  HERE!
}

the issue is that, if optical_data.json exists, the data will be read from there and not calculated. In such a case, the solar_sky_discretization can contain conflicting information... what to do?
Expected behaviour (none of these are working at the moment)

If the options do not contain any solar_sky_discretization data and the optical_data.json exists, then use that on the discretization scheme in the optical_data.json file.
If the options do contain solar_sky_discretization data and the optical_data.json exists, then use that on the discretization scheme in the optical_data.json file and warn the user about the contradiction.

Case 1 might actually be working as expected... I thought it was requiring the other options to be given anyway.

Done, except for the "warn the user" bit.


Add Practice Exercise: flatten-array

Problem specification:
https://github.com/exercism/problem-specifications/tree/main/exercises/flatten-array
TODO:

generate the exercise with ./bin/fetch-configlet && ./bin/configlet create --practice-exercise flatten-array
check if any of the existing tracks (examples below) implement the exercise and you can reuse the implementation:

Go: https://github.com/exercism/go/tree/main/exercises/practice
Rust: https://github.com/exercism/rust/tree/main/exercises/practice
Python: https://github.com/exercism/python/tree/main/exercises/practice

use exercise's canonical-data.json to see which test cases to implement:
https://github.com/exercism/problem-specifications/blob/main/exercises/flatten-array/canonical-data.json

Hello !! Would like to work on this issue...

It's yours!

Cool yea sure !

@shreyasgosavi are you making any progress?


Analysis/simulations

Includes:

2-gene simulation scripts and analysis
zebrafish scripts
Tedsim results analysis and scripts (@michalk8 pls validate the latter + update a README for running the Tedsim scripts)

closes #3 #4

All requests addressed :)

you need to supply config.yml

I added the missing config files, thanks a lot @zoepiran ! Merging this.


Flutter channel beta

Trying out Flutter channel beta as a potential fix for https://github.com/flutter/website/issues/4014

Yup, this PR is deployed in production.


replaceOnChanges

File: themes/default/content/docs/intro/concepts/resources.md
Hi, I'm not sure this is only a docs issue or can be considered a bug in pulumi.
I'm trying to use new aws-native provider to create a Fargate task and it is not able to replace the task when e.g. the image version changes.
Yesterday I learned about replaceOnChanges option so I wanted to experiment with that.
And I think I found 2 issues.
1. Docs
The example in docs is too simple and missing a few things

Mention the fact that string name of the resource property must be camelCased. My primary Pulumi language is a Python where things are natively in snake_case. Which is a problem for multi-word properties.

ecs.TaskDefinition(
            f"{self._config.name}-app-task",
            args=ecs.TaskDefinitionArgs(
                container_definitions=[container_definition],
                family="my-family",
                # family="fargate-task-definition",
                cpu="256",
                memory="512",
                network_mode="awsvpc",
                requires_compatibilities=[
                    "FARGATE"
                ],
            ),
            opts=pulumi.ResourceOptions.merge(
                self._opts,
                pulumi.ResourceOptions(
                    replace_on_changes=["containerDefinitions[0].image"]  # This does work -
                    # replace_on_changes=["container_definitions[0].image"]  # This does not work because property name must be camelCase
                ),
            ),
        )

Copy pastable examples for arrays and wildcards. - there could be a more concrete example of this in practice.

2. Wildcards and arrays
I tested the wildcard on an array but I keep receiving an error. Either I may not understand the syntax/docs or the feature is broken for aws-native provider
aws-native:ecs:TaskDefinition (tqs-fg-app-app-task):
    error: invalid array index: strconv.ParseInt: parsing "*": invalid syntax

Here is a sample of code to reproduce the error
container_definition = ecs.TaskDefinitionContainerDefinitionArgs(
            name=self._config.container_name,
            image=native_image,
            port_mappings=[
                ecs.TaskDefinitionPortMappingArgs(container_port=80, host_port=80, protocol="tcp")
            ],
            environment=[{"name": k, "value": v} for k, v in self._config.env_vars.items()],
        )

        self.task_definition = ecs.TaskDefinition(
            f"{self._config.name}-app-task",
            args=ecs.TaskDefinitionArgs(
                container_definitions=[container_definition],
                family="my-family",
                # family="fargate-task-definition",
                cpu="256",
                memory="512",
                network_mode="awsvpc",
                requires_compatibilities=[
                    "FARGATE"
                ],
                execution_role_arn=self.task_exec_role.arn,
                task_role_arn=self.task_role.arn,
                tags=native_tags,
            ),
            opts=pulumi.ResourceOptions.merge(
                self._opts,
                pulumi.ResourceOptions(
                    replace_on_changes=["containerDefinitions.[*].image"]
                ),
            ),
        )

Thanks for the feedback on the documentation aspect of this. The camelCase aspect of this is documented in a note in https://www.pulumi.com/docs/intro/concepts/resources/#replaceonchanges -- if there are other places you'd expect this, please let us know where we can improve upon this as we definitely don't want to cause confusion.
In terms of what you're trying to do, this does appear to be a bug in the way the selector works. In some cases, it's not always clear that the nested property is even being respected.
For example:
bucket = s3.Bucket("foo", grants=[
    s3.BucketGrantArgs(permissions=["READ"], type="CanonicalUser", id="xxx"),
    ], opts=pulumi.ResourceOptions(replace_on_changes=["grants[0].type"]))

Changing READ to WRITE above still results in a proposed replacement.

s3

Thank you @leezen I'm not sure how I've missed the note block. (I have dyslexia and I normally focus on the most highlighted parts of the text)
I'm glad that at least the second part is the actual bug. :)
Let me know in case you need more assistance with this, there may already be an issue in the main Pulumi repo.


Library translated by @King-Wizard from Objective-C to Swift.

Done and tested on my side, it works like a charm.

Hi @King-Wizard
I appreciate the effort, but I don't see the point in rewriting the library in swift. For a small library like this with an already clean API there are no benefits, in the end it adds clutter. I'm not going to merge PRs like this, sorry.


Multi route support

Backend has now an experimental v2 api that supports multiroutes. Not all endpoints are ported from v1 yet.
Integration kind is not fully supported yet. This PR focused on Camel Routes, Kamelets, and Bindings.
Mixing different DSLs on the same file is not supported.
Superseeds https://github.com/KaotoIO/kaoto-backend/pull/633

@lordrip :eyes:

BTW, almost forgot, as soon as we get this merged, I'll switch the UI to use the new endpoints and interact only with the first route in the array. After that, I'll start incorporating individual functionality into the multi-route support.

BTW, almost forgot, as soon as we get this merged, I'll switch the UI to use the new endpoints and interact only with the first route in the array. After that, I'll start incorporating individual functionality into the multi-route support.

You like danger :smile_cat:

Added an object wrapper to return instead of a plain array of flows. You were right.

Alright, now it sends and receives an object like this:
{
  "flows": [ ... ],
  "properties: { ... }
}

Adding an extra line between routes is breaking tests in an ugly way. I will leave that for a second PR.


Implement Shape.eq() and consequently Shape.hash(). fix #32

Should we also check that the vsdx file is the same? Feels like overkill.

Hi @stevensultana  - I'll take a look, and merge with latest changes,
I do think, ideally, that shape equality should take into account shape id, page and file path too - so I might include that on merge if it's as simple as including file path in the hash/eq methods.
Thanks Dave


page: Resources

A webpage to list recommended books / videos / long form articles related to BigTech, government, legacy media, etc.

https://www.altcensored.com/about/


Subspaces improvements

Description
This PR introduces description and logo fields in the Subspace structure and some minor improvements/fixes.
Closes #503.
Checklist

[x] Targeted PR against correct branch.
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Wrote unit tests.
[x] Wrote integration tests (simulation & CLI).
[ ] Updated the documentation.
[ ] Added an entry to the CHANGELOG.md file.
[ ] Re-reviewed Files changed in the Github PR explorer.

No worries for sims, I've fixed them inside #490


Enable or disable a contextlogger

Hi there,
We have a project with multiple packages i would like to implement a context logger for each package. I was wondering if it is possible to disable a logger so that the logs will not apear. Or is there another way to achieve this.
thanks in advance.

If you want to discard all logs, you can replace the Out field of the logger with a ioutil.Discard or implements your own io.Writer which does nothing on the Write method.
Beware that the panic and Fatal call will still respectively panic and call os.Exit

Add an example, simply beside using ioutil.Discard, you could use bytes.Buffer
silentLog := logrus.New()
var b bytes.Buffer
silentLog.SetOutput(&b)

Using a bytes.Buffer will consume your memory

@dgsb thanks for mentioning it. actually, i am really new in go programming. Big thanks

Thanks for the reply setting the loggers Out to ioutil.Discard solves the problem!


Closed longpoll/continuous _changes client connections kept alive on server

Description
We are having memory issues on our cluster. We have tracked it down to replication requests that have a huge amount of (binary) memory open during the crash. This replication is also handling attachments, so that explains why any one of those requests takes more memory.
When looking at prometheus data we saw that couchdb_httpd_clients_requesting_changes_total keeps rising:

(here you see two crashes of couchdb06)
We know that we might need to investigate why the changes feed is queried this often, but that is made more difficult with this bug present.
This led us to test simple _changes requests with longpoll and high timeouts and see that the prometheus data was indeed showing that the connections are kept open (or at least the erlang process is kept alive).
Steps to Reproduce

Look at http://localhost:5984/_node/_local/_prometheus
See that couchdb_httpd_clients_requesting_changes_total is 0
Start a request to a local database with something like this: http://localhost:5984/db/_changes?feed=longpoll&timeout=200000&since=now
Stop and start that request a couple of times in quick succession
(optional)check with netstat that the connections are actually closed
Refresh the prometheus page and see the couchdb_httpd_clients_requesting_changes_total rising and only falling after the timeout is over

Expected Behaviour
The value for couchdb_httpd_clients_requesting_changes_total should be falling immediately at connection termination.
Your Environment

CouchDB version used: 3.3.1
Browser name and version: N/A
Operating system and version: both Windows and Linux have this issue

Thank you for your report @jlami.
With http://localhost:5984/db/_changes?feed=longpoll&timeout=200000&since=now or continuous the client probably stops during the HTTP protocol phase when the client is waiting on the server to respond. If the client disappears, the server won't find out about the connection state until it tries to respond to the client.
Since there is a timeout,  at the end of the timeout interval is when the server will try to send a response and find out the client has closed the connection.  In this case the timeout is not 200000 but actually 60000. The timeout value is the minimum value between the parameter for the request and the the changes_timeout setting as per https://github.com/apache/couchdb/blob/4b8b7ec9f39d1e5910f301283fd6b9051b057d0c/src/couch/src/couch_changes.erl#L400-L401 So the connection will be torn down after 60 seconds.
So one way to shorted the time until the connection is cleared is to lower that timeout either in the request parameter or the config setting.
Another option is to use a heartbeat.
/_changes'?feed=longpoll&heartbeat=5000&since=now'

This will ping the connection every 5 second and send a newline. If the client dropped the request, the newline send should detect the connection shutdown and clean up the connection resources on the server.

Thanks for the reply @nickva
I think the heartbeat might be a good addition/change to our setup to try and hasten the detection. That hopefully helps the application side.
The other thing is that this might also happen because of continuous replication from couchdb servers. I don't think they have the option to enable heartbeats in the _replicate and _replicator endpoints. Or is there a way to set this up?
Is it not possible to detect a disconnect on the erlang side? I cannot really find where the connection is setup in the erlang source, but can't the process that handles the reading of the request also try and detect tcp_closed for a socket? I know this will only detect 'clean' connection closing (FIN packets). But it would at least be something.

For replication it's possible to adjust connection_timeout setting. That setting value, divided by 3, ends up being sent as the _changes feed timeout connection parameter. So if that's 30000 msec, it will use ...&timeout=10000 in the request. Shortening that could help a bit perhaps. In the normal operation, when the feed is waiting on db changes, the effect will be that absent any changes, the _changes feed request will end and restart every timeout milliseconds.
An apparent, improvement could be to improve couch replicator to use both a heartbeat and a timeout.  It turns out both are not really compatible, and the presence of a heartbeat overrides the timeout parameter, so the larger improvement would be to fix that actually, to allow both to work.

Is it not possible to detect a disconnect on the erlang side? I cannot really find where the connection is setup in the erlang source, but can't the process that handles the reading of the request also try and detect tcp_closed for a socket? I know this will only detect 'clean' connection closing (FIN packets). But it would at least be something.

That might be possible. It would be something in the HTTP layer mochiweb library we're using, I think. But it would be an extra periodic check or something of that sort to monitor for TCP shutdown or disconnect messages even when we're expecting  server to respond (we're not actually waiting in a socket receive).  That logic might go somewhere in here: https://github.com/mochi/mochiweb/blob/83fd22d620bbefd8779ccb6ea21706bb8a1e0ed2/src/mochiweb_http.erl#L139-L140

For replication it's possible to adjust connection_timeout setting. That setting value, divided by 3, ends up being sent as the _changes feed timeout connection parameter. So if that's 30000 msec, it will use ...&timeout=10000 in the request. Shortening that could help a bit perhaps. In the normal operation, when the feed is waiting on db changes, the effect will be that absent any changes, the _changes feed request will end and restart every timeout milliseconds.

Unfurtunately our replication needs quite hight timeouts or it will timeout during normal operations.

An apparent, improvement could be to improve couch replicator to use both a heartbeat and a timeout. It turns out both are not really compatible, and the presence of a heartbeat overrides the timeout parameter, so the larger improvement would be to fix that actually, to allow both to work.

This might indeed be nice. Heartbeat now overrides the timeout, but they might be good to work together.
But I'm correct in inferring that the replicate does not support heartbeat at this moment right?

That might be possible. It would be something in the HTTP layer mochiweb library we're using, I think. But it would be an extra periodic check or something of that sort to monitor for TCP shutdown or disconnect messages even when we're expecting server to respond (we're not actually waiting in a socket receive). That logic might go somewhere in here: https://github.com/mochi/mochiweb/blob/83fd22d620bbefd8779ccb6ea21706bb8a1e0ed2/src/mochiweb_http.erl#L139-L140

Thanks, I was just looking at mochiweb. I'll see if I can get a feature request/issue for the tcp_closed during handling of the request body.

But I'm correct in inferring that the replicate does not support heartbeat at this moment right?

Yeah, that's correct. It uses timeouts only. So it periodically ends the continuous requests if there are not changes and restarts it.

I'll see if I can get a feature request/issue for the tcp_closed during handling of the request body.

Mochiweb is a separate project and Apache CouchDB at least in the case of long running requests is sort of abusing the typical HTTP API request pattern. User makes a request, and the callback instead of responding right away, and thus detecting a closed socket and crashing, hangs for minutes at a time. In other words, it won't be surprising if they don't want to accept this feature request.

Thanks for the feedback.

Mochiweb is a separate project and Apache CouchDB at least in the case of long running requests is sort of abusing the typical HTTP API request pattern.

Would that mean that a fix would be more fitting in CouchDB? Don't mean to push the issue onto CouchDB just thinking about what would be best.
Semi new issue
Since we started investigating our memory issues and we found this issue, we also see that the inflated changes metric might not only be due to the timeouts. Or at least there is something else fishy going on. I don't know if you want me to open a separate issue for that, but I think it fits here.
Looking at the following graph you can see 2 things:

Orange is the changes metric
Green is the amount of sockets reported as allocated minus the sockets in use according to /proc/net/sockstat

The drops in the lines to 0 are restarts of couchdb because of memory issues.
The first graph is of a time with extra replication going on, so inflated changes listeners. The second is with mainly external pouch listeners.
When looking at the first image and an erlang dump from around 14:00 I could see that the changes processes where taking a lot of memory and as such found the original issue. But if this was the only problem we would expect the counts of the changes to eventually drop at lower traffic times. And we never see that. Even if you look at the night time, when there are far fewer requests coming in. It seems that the timeouts are never triggered and CouchDB is hanging somewhere else.
There are some half drops in the changes and sockets around 10:00 in the first and 18:00 and 10:00 in the second image. At that time another node was restarted. So it seems that a bunch of the lingering changes requests are inter-node based.
Another thing I can see is that there seems to be a 10 minute delay between the two graphs, exactly the timeout of our chttpd.changes_timeout config value. But the pouch clients request timeouts of 2 minutes.
I'm going to see if I can get a sense of which processes are in what call graph at the time of such high changes metric and lingering sockets. But maybe you could help me what else I could be looking into?
And one thing you might be able to answer: is it normal to see this many unused sockets? We do have many clients with bad network connections, so that might be causing network issues. But I would expect CouchDB to be able to handle this.

Would that mean that a fix would be more fitting in CouchDB? Don't mean to push the issue onto CouchDB just thinking about what would be best.

Yeah I think so. I tried various options and played with sockets a bit and it seems, unless the socket mode is toggled from passive/active or we try to send something on it, we might not find out it's closed. Getting its info or stats doesn't seem to indicate it's closed even.
The new experimental socket network implementation may have something there but I haven't tried it yet: https://www.erlang.org/doc/man/socket.html
One obvious improvement though could be to combine heartbeats and timeouts. So even with a timeout set we still send periodic heartbeats, even if it's just to be able to detect a closed socket.

I was also experimenting a bit and I could get it to work with something like this in chttpd:handle_changes_req1
        Feed when Feed =:= "continuous"; Feed =:= "longpoll"; Feed =:= "eventsource" ->
        	OldControlling = self(),
        	MochiReq = Req#httpd.mochi_req,
        	Socket = MochiReq:get(socket),
        	couch_log:info("----- socket1 ~p -----", [Socket]),
        	SocketMonitorPid = spawn_link(fun() ->
        		couch_log:info("----- socket2 ~p -----", [Socket]),
        		receive ack -> ok end,
        		inet:setopts(Socket, [{active, once}]),
        		receive
        			ack ->
        				couch_log:info("----- stopping monitor -----", []),
        				inet:setopts(Socket, [{active, false}]),
        				gen_tcp:controlling_process(Socket, OldControlling),
        				OldControlling ! ack;
        			{tcp, _} ->
        				couch_log:info("----- data -----", []),
        				couch_stats:decrement_counter([couchdb, httpd, clients_requesting_changes]),
        				exit(self(), {unexpected_data});
        			{tcp_closed, _} ->
        				couch_log:info("----- closed -----", []),
        				couch_stats:decrement_counter([couchdb, httpd, clients_requesting_changes]),
        				error(tcp_closed_error)
        		end
        	end),
        	couch_log:info("----- spawn ~p -----", [SocketMonitorPid]),
        	gen_tcp:controlling_process(Socket, SocketMonitorPid),
        	SocketMonitorPid ! ack,
            couch_stats:increment_counter([couchdb, httpd, clients_requesting_changes]),
            Acc0 = #cacc{
                feed = list_to_atom(Feed),
                mochi = Req,
                threshold = Max
            },
            try
                fabric:changes(Db, fun changes_callback/2, Acc0, ChangesArgs)
            after
            	SocketMonitorPid ! ack,
            	couch_log:info("----- done with changes -----", []),
            	receive ack-> ok end,
            	couch_log:info("----- socket back -----", []),
                couch_stats:decrement_counter([couchdb, httpd, clients_requesting_changes])
            end;

But I'm new at erlang so there might be something easier to read from the socket in parallel. And this also might have a race condition when the socket is done and should get more data, but I think that is not legal for change feeds, but maybe it is for Keep-Alive sockets.

Making sure streaming requests processes exit when connections close fix was deployed to 3.3.3: https://github.com/apache/couchdb/pull/4736
This should prevent connections from piling up.


Add relational attributes for the entities detail

This adds the relationshipAttributes to the base Entity model. For now, every time we fetch the details of entities in bulk (entity_bulk), it has the option to fetch the related attributes already, but we were not doing that. As a result, we have to make extra queries to find details of each related object available in the entity. This will solve that problem, and all the related objects will be available in case of entity_bulk  and in places where possible.

Pull Request Test Coverage Report for Build 232

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 73.006%

Totals

Change from base Build 199:
0.0%

Covered Lines:
787

Relevant Lines:
1078

💛  - Coveralls

@jpoullet2000 FYI


Add helm-descbinds

This package allows for easier navigation of the assigned bindings.
The inbuilt describe-bindings (C-h b b) feature is remapped to the helm
equivalent.
Signed-off-by: Brian McGillion<EMAIL_ADDRESS>

Thanks!


Add formatting tools

It would be great to add formatting tools on long press. This could be markdown supported.

This issue will not be fixed :(
This app is planned to be shutdown sometime in the near future, and as such this issue is irrelevant.


A few errors that happened to me

Describe your bug here.
Hello Psych Engine Team, I came to tell you a few errors that happened to me when I installed versions 7.0 and 7.1 of Psych Engine, there are 2 but I would still like to know if it can be solved.

There is a Script that does not work for me.
I have a Script where when you press the "Space" key you do the "Hey!!" Pose (or "Taunt" Pose as others say), but in versions 7.0 and 7.1 that specific Script doesn't work for me and I don't know why it happens.

The game crashes when I choose some songs.
I have a Mod where I have all my FNF Covers, and I decided to use my Mod to test versions 7.0 and 7.1 but in 2 Covers, which are Magmatic and Boiling Point, for some reason when I choose those 2 Covers, the game It closes and I don't know why that happens either, if it's a Stages error or what it will be.

I hope you can answer me :(
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
I don't know what happens to make these errors happen

I have a Script where when you press the "Space" key you do the "Hey!!" Pose (or "Taunt" Pose as others say), but in versions 7.0 and 7.1 that specific Script doesn't work for me and I don't know why it happens.

https://github.com/ShadowMario/FNF-PsychEngine/wiki/Transitioning-Lua-Mods-from-0.6.x-to-0.7
There is no versions called "7.0" or "7.1". In case you mean 0.7 and 0.7.1, look at the wiki page above to see the inconsistencies between versions so you can find out what is causing your script not to work, as not all mods made for 0.6 are compatible with 0.7. Also, this isn't a "bug" because it's not a problem with the engine, it's a problem with your script.

I'm not that good at coding, I more or less know Stages, but not that good, I'd better continue using version 0.6 because version 0.7 is not the best for me


[feature request] support object as parameter in where()

is it possible to filter line by object? like
interface db = {
  test: TestTable
}
interface TestTable = {
  filterParam: number
}
kysely.selectFrom('test')
  .where({ filterParam: 1 })
  .selectAll()
  .execute()

What benefit does this offer over the current API? I couldn't think of one so I left this out for simplicity. I can consider adding this if you have a use case for this (other than "I prefer the syntax")

Thanks for your timely response!
I'm currently migrating from my project that uses Knex, and I've used this syntax in many places throughout that project.
In addition, most of the input that I receive is in the form of an object. For example, the search request from my API always uses a POST method, and all of the parameters are packaged in the ResponseBody. Getting the parsed object and using it in where() is very convient. Manually splitting up the response body to parse the conditions would produce a lot of duplicate code, which I'd like to avoid if possible.

I understand the usability inconvenience here.
But let's balance the conversation a bit..
Objects as inputs are currently flawed in TypeScript.
Nothing stops you from using an object with keys that do not exist in the current query's context.
Kysely won't protect you from runtime errors in such cases.
TypeScript hacks exist, but the compile performance hit is not worth it.
Introducing objects to the API that are compiled to non-object sql is not aligned with Kysely's WYSIWYG philosophy.
But, then there's InsertQueryBuilder.values.

This has been requested many times in different places. I think we need to add it.

Seems like we'll need a new method name for this 😞 If we overload where autocompletion breaks. When you start typing where({ the current types think you are writing the three-argument overload and offer you all method names of all objects that can be provided in the first slot (SelectQueryBuilder, Expression, etc.). If we put the where(object) overload first, other things break.
This also means that where(eb => eb({ ... })) won't work, which is even more sad.
I'm thinking it might make sense to allow this instead:
where((eb) => eb.and({ ... }))

That overload would work and it would be obvious how the different filters in the object get combined. What do you think? @igalklebanov

We could also add
where((eb) => eb.or({ ... }))

@koskimas great idea! a lot more readable than any .whereX we were almost forced to add.


[Feat]: I'd like to redesign About us page

Feature Description
I'd like to make about us make a little bit interesting
Provide a detailed description of the feature
I'd like to make about us make a little bit interesting. It seems very plain with white and pink color.

Put here any screenshots or videos (optional)
No response
By submitting this issue, you agree to

[X] I agree to follow this project's Code of Conduct
[X] I’ve read all the issues in the issue section, and this feature has not been proposed yet.

Other Information

[X] I'm a GSSoC '24 Extended contributor
[X] I'm a Hacktoberfest '24 contributor
[X] I am willing to work on this feature (optional)

assign me this I'd like fix it @maniyaom

Feature Description:
Can make a better UI using Next ui,tailwind css or Magic UI using a better color scheme
Provide a detailed description of the feature
By adding the better deisgning for about us page  enhances the UI and glow of website were website becomes more user friendly.
Please assign this to me , I am ready for this
Thankyou!
By submitting this issue, you agree to
I agree to follow this project's Code of Conduct
I’ve read all the issues in the issue section,
Other Information

[ ]  I'm a GSSoC '24 Extended contributor
[ ]  I'm a Hacktoberfest '24 contributor
[ ]  I am willing to work on this feature


Performance of hot reloading a flutter app with the new front-end is acceptable

@johnmccutchan @a-siva @sigmundch Please populate this issue with performance targets.

We have lots of data from the Flutter performance bots. For Flutter Gallery a hot reload takes ~800 milliseconds. That time includes synchronizing sources onto the device, reloading, and reassembling the Flutter application.

Flutter has been switched to the Dart 2 pipeline, which means we deemed the performance acceptable. The work to improve hot reload and cold start times will continue but this issue is behind us now.


fix build error

System: macOS
Cargo: cargo 1.33.0-nightly (2cf1f5dda 2018-12-11)
Rustc: rustc 1.33.0-nightly (adbfec229 2018-12-17)
error[E0658]: use of unstable library feature 'split_ascii_whitespace' (see issue #48656)
   --> /Users/abc/.cargo/git/checkouts/swc-594f88c93b4170b2/c647cf1/ecmascript/transforms/src/react/jsx/mod.rs:357:35
    |
357 |     for s in t.replace("\n", " ").split_ascii_whitespace() {
    |                                   ^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(split_ascii_whitespace)] to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `swc_ecma_transforms`.

To learn more, run the command again with --verbose.
neon ERR! cargo build failed

Error: cargo build failed
    at Target.<anonymous> (/usr/local/lib/node_modules/neon-cli/lib/target.js:121:35)
    at step (/usr/local/lib/node_modules/neon-cli/lib/target.js:32:23)
    at Object.next (/usr/local/lib/node_modules/neon-cli/lib/target.js:13:53)
    at fulfilled (/usr/local/lib/node_modules/neon-cli/lib/target.js:4:58)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)

split_ascii_whitespace is stabilized, and that's why I removed #![feature(split_ascii_whitespace)]. Please upgrade your rustc.


OIDC Documentation Improvements

The OIDC documentation needs to be improved:

Improve discoverability of OIDC service in documentation

OIDC credential exchange completes our product offering -- it's what enables VCs to have value in ecosystems. Therefore, it should be called out as a first-class offering.

Build OIDC credential exchange into our walkthrough section

Either build a tutorial dedicated to it, or include it in our existing vaccine tutorial

The vaccine tutorial is already quite large; adding OIDC massively expands the scope
OIDC-specific tutorial should assume you already have an ecosystem provisioned, ability to issue credentials, etc., and go from there

~Improve the look of Configuration section~

~Change bullet points to table?~

~Document trust registry configuration parameter~
~Improve look of JSON blob~
~Direct visitors to recommended OIDC libraries in various languages, including Android/iOS~
Create additional samples (will be tracked by additional issues)

Server-side verification
Android
iOS

Create Instruqt tutorials? (Will be tracked by additional issues)

Client-side / server-side

I'd be happy to contribute to this in whatever capacity it makes sense. We also have some dev work around customization, but that's not until few sprints.

Closed as part of ongoing docs improvement is part of Product Backlog


Blade Extends Bug

Laravel Version: 5.3
PHP Version: 7.0

Description:
When you have a commented out @extends it still evaluates the variable
Steps To Reproduce:
{{-- @extends('layouts.master') --}}

Will still processes the @extends

Yeh, blade comments are very limited, they're intended for adding textual comments. Blade inside them will still get parsed.

@GrahamCampbell couldn't this be easily fixed by processing comments as the very first thing, before compiling any of the other directives?

In this case, no, because I think extends isn't handled by the "compiler", but at runtime. We'd be

@GrahamCampbell I'll take a look into how Blade works this evening.


Content group - with pictograms: Section heading size

Viewed in Chrome
The section heading for the Pictogram Array pattern should always use Expressive Heading 04. The current headline size being used looks too small.
As seen in storybook (XL breakpoint):

As expected:

This should be retested after the dev refactoring work is finished.


PBS Video Stopped Working Again

[x] I've verified and I assure that I'm running youtube-dl 2018.07.29

[x] At least skimmed through the README, most notably the FAQ and BUGS sections

[x] Searched the bugtracker for similar issues including closed ones

[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

[x] Bug report (encountered problems with youtube-dl)

./youtube-dl -F https://www.pbs.org/video/separated-children-at-the-border-abt8su/
[pbs] Downloading JSON metadata
[pbs] separated-children-at-the-border-abt8su: Downloading webpage
[pbs] separated-children-at-the-border-abt8su: Downloading widget/partnerplayer page
[pbs] separated-children-at-the-border-abt8su: Downloading portalplayer page
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
SUN-T400 7:39am ~ >./youtube-dl -F "https://www.pbs.org/video/separated-children-at-the-border-abt8su/"
[pbs] Downloading JSON metadata
[pbs] separated-children-at-the-border-abt8su: Downloading webpage
[pbs] separated-children-at-the-border-abt8su: Downloading widget/partnerplayer page
[pbs] separated-children-at-the-border-abt8su: Downloading portalplayer page
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
SUN-T400 7:39am ~ >./youtube-dl -v -F "https://www.pbs.org/video/separated-children-at-the-border-abt8su/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'https://www.pbs.org/video/separated-children-at-the-border-abt8su/']
[debug] Encodings: locale US-ASCII, fs US-ASCII, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2018.07.29
[debug] Python version 2.7.14 (CPython) - FreeBSD-11.1-RELEASE-p9-amd64-64bit-ELF
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2
[debug] Proxy map: {}
[debug] Using fake IP <IP_ADDRESS> (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] separated-children-at-the-border-abt8su: Downloading webpage
[pbs] separated-children-at-the-border-abt8su: Downloading widget/partnerplayer page
[pbs] separated-children-at-the-border-abt8su: Downloading portalplayer page
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 502, in extract
    ie_result = self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/pbs.py", line 653, in _real_extract
    self._sort_formats(formats)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 1281, in _sort_formats
    raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output....
<end of log>

https://www.pbs.org/video/separated-children-at-the-border-abt8su/

It looks like PBS changed their website again and youtube-dl can no longer find any valid video formats. youtube-dl worked successfully on the PBS site last week, so the change PBS made must have been in the last 7 days. This has happened a couple of times in the past, #7565, #8499, and #16478.

It just happened to me too.
https://www.pbs.org/video/queens-nyc-ixejwj/
[pbs] Downloading JSON metadata
[pbs] queens-nyc-ixejwj: Downloading webpage
[pbs] queens-nyc-ixejwj: Downloading widget/partnerplayer page
[pbs] queens-nyc-ixejwj: Downloading portalplayer page
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
cross@lateralus:/DATA/video/tv/pbs/no_passport_required$ youtube-dl https://www.pbs.org/video/queens-nyc-ixejwj/
[pbs] Downloading JSON metadata
[pbs] queens-nyc-ixejwj: Downloading webpage
[pbs] queens-nyc-ixejwj: Downloading widget/partnerplayer page
[pbs] queens-nyc-ixejwj: Downloading portalplayer page
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
cross@lateralus:/DATA/video/tv/pbs/no_passport_required$ youtube-dl --verbose https://www.pbs.org/video/queens-nyc-ixejwj/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.pbs.org/video/queens-nyc-ixejwj/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.29
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-23-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: avprobe 3.4.2-2, ffmpeg 3.4.2-2, ffprobe 3.4.2-2, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP <IP_ADDRESS> (US) as X-Forwarded-For.
[pbs] Downloading JSON metadata
[pbs] queens-nyc-ixejwj: Downloading webpage
[pbs] queens-nyc-ixejwj: Downloading widget/partnerplayer page
[pbs] queens-nyc-ixejwj: Downloading portalplayer page
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 502, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/pbs.py", line 653, in _real_extract
    self._sort_formats(formats)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1281, in _sort_formats
    raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

It happened Monday, I believe

I'm still seeing this issue...


Add icons to popular tokens

Added icons to the list of popular tokens using TrustWallet as a source:

Thanks for doing this! Can we add some kind of white background or circle behind the icons? Some of them look not great on a dark background.

Sure, what do you think about this:


Spurious function names in help search

Click "Open help topic using ?" and type a function name like to_string, then the result might contain several spurious results which are not exported functions of the package but marked as e.g. languageserver::to_string.

With my installation, languageserver::to_string is not documented at all (#' @noRd) and also does not show up in the quickpick.
Assuming that to_string is documented but not exported, the command "Open help topic using ?" still shows it in the suggestions list. To some extent, this is in line with the behavior of the normal ? command, since e.g. ? languageserver::to_string should work, even though languageserver::to_string throws an error.
I guess it would be better to show this function as languageserver:::to_string to indicate that it is not exported.
I'll have to check how to implement this cleanly, since currently the help provider does not know whether a topic refers to an exported function or not.


Maybe, there needs some code analysis direction in wikis or docs.

From @whtoo on March 24, 2016 7:51
Thanks to your work on webpack.In fact,I'd like to use it and write a bit of loaders.
But when I dig up,I find the code logic of webpack is so twisted!
Therefore,please give some attention to this issue and write some wikis for introducing
webpack to dev.
Copied from original issue: webpack/webpack#2227

I'm going to close this since this issue isn't clear at all. We rewrote the entire docs and have much clearer docs on loaders and the development of loaders / plugins.


Client Allocation Request for: dlahum

Client Allocation Questions
Core Information

Name: dlahum
Website / Social Media: http://www.dlahum.cn/
Region: Greater China Region
DataCap Requested: 1TiB
Addresses to be Notarized: f17hw3txvdmzid3xaa7cn7eee7rxg3m3tbjdirv7i
Notary Requested: MRJAVAZHAO

@goodvvvboogg Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

@goodvvvboogg Please provide the following materials.
if you are an organization, Please describe your organization, such as established time, business scale, social media accounts&follwers, the number of employees, users volumn and business license (could be sent by email,<PHONE_NUMBER>@qq.com); if you are an individual, please provide name, date of birth, working company and scale, employment certificate, social media accounts&follwers, and ID card (can be sent by email,<PHONE_NUMBER>@qq.com);
When did you start learning about Filecoin? Please give a description about the projects you have participated in ? What do you want to get from Filecoin? Any suggestions or expectations for the Filecoin Network?
Is there any law risk? What percentage of questions are yours?
How about your data volume, source and later planning? Please describe the type, format, source, storage capacity, publicity (and if data could be public, how can others retrieve it?) of the data to be stored in Filecoin.
In which area do you plan to store you data? How many miners do you want to find ? Please list the miner ID. How about the proportion of the storage for each miner? What are the requirements about miners? At last, please state your redundancy plan.
Do you agree to disclose transaction information? If you get DataCap, please make the transaction information public on the Issue in time.

I am a freelancer, You can call me wang, and you can find me in https://github.com/doctorwangliua.
I have known about Filecoin since last March and do some develop work about Filecoin mining. Most sectors in Filecoin are CC sectors that waste to much, How to store real data needs to be considered.
There is no legal risk.
I am building a data service application, The data comes from public information on public websites, including structured data and unstructured data.
Amount of data: about 1T
Data format: Unstructured data
All data is publicly available.
Miner: no restrictions on storage areas and I hope to find more than three miners, require miners to ensure full data security.
I agree.

If you are an individual, please provide name, date of birth, working company and scale, employment certificate, social media accounts&follwers, and ID card (can be sent by email,<PHONE_NUMBER>@qq.com);
Can you provide some data samples of the data you will store? Or share the data service application to me?

I am a freelancer, You can call me wang, and you can find me in https://github.com/doctorwangliua.
I have known about Filecoin since last March and do some develop work about Filecoin mining. Most sectors in Filecoin are CC sectors that waste to much, How to store real data needs to be considered.
There is no legal risk.
I am building a data service application, The data comes from public information on public websites, including structured data and unstructured data.
Amount of data: about 1T Data format: Unstructured data All data is publicly available.
Miner: no restrictions on storage areas and I hope to find more than three miners, require miners to ensure full data security.
I agree.

hello Wang ,I just know GitHub a a freelancer and just sign up recently as well.
And I am interested if you have a code repo

Please open it when you want to apply again.


assembly i8 i32 gemm

The assembly code only runs on gfx906, for other architectures, source code will be used.
The tests do not run as part of CI because CI machines are gfx900. The tests however pass on gfx906 machines.
The following instructions are used:

v_dot4_i32_i8 : for mixed precision i32 += i8*i8 + i8*i8 + i8*i8 + i8*i8
v_mul_lo_u32 : for i32 multiply by alpha and beta
v_add_i32 : for i32 addition of alphaAB and beta*C

Note that there is no saturation arithmetic in this version, so if there is any overflow of the i32 range the result will be corrupted

No good reason why putting extra waitcnts or barriers in the middle of your math would make things fast or correct. Make sure we have appropriate waitcnts and/or barriers elsewhere.
From: Andrew Chapman<EMAIL_ADDRESS>Sent: Thursday, December 13, 2018 4:40 PM
To: ROCmSoftwarePlatform/Tensile<EMAIL_ADDRESS>Cc: Golds, Jeff<EMAIL_ADDRESS>Review requested<EMAIL_ADDRESS>Subject: Re: [ROCmSoftwarePlatform/Tensile] assembly i8 i32 gemm (#416)
@amcamd commented on this pull request.

In Tensile/KernelWriterAssembly.pyhttps://github.com/ROCmSoftwarePlatform/Tensile/pull/416#discussion_r241601581:

     for a in range(0, kernel["ThreadTile0"]):

       if self.version == (8,0,3):

         kStr += self.comment3("int8 not implemented yet for gfx803:")

       elif self.version == (9,0,0):

         kStr += self.comment3("int8 not implemented yet for gfx900:")

       elif self.version == (9,0,6):

         for iui in range(0, innerUnroll):

           cidx = a + b*kernel["ThreadTile0"] + 0

           cStr = "v[%s+%u+%u*%u]" % ("vgprValuC", a, b, kernel["ThreadTile0"])

           aStr = "v[%s+%u]"       % ("vgprValuA_X%u_I%u"%(m,iui), a)

           bStr = "v[%s+%u]"       % ("vgprValuB_X%u_I%u"%(m,iui), b)

+# this will be same as "single precision" except for the dot4 instruction replacing the v_mac_f32 instruction
+#               kStr += "v_mac_f32 %s, %s, %s%s" % (cStr, aStr, bStr, self.endLine) # single precision

           kStr += "v_dot4_i32_i8  %s, %s, %s, %s op_sel:[0,0] op_sel_hi:[1,1] //valuC[%u]%s" % (cStr, aStr, bStr, cStr, cidx, self.endLine)

           if macIdx == kernel["PerformanceWaitLocation"]:

I removed the wait, and tests pass, this is limited testing. Can the s_barrier also be removed?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHubhttps://github.com/ROCmSoftwarePlatform/Tensile/pull/416#discussion_r241601581, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANkAwNdsUcAEbxy1DHk-nT8kjRpJNJZsks5u4uVHgaJpZM4ZSknc.


Zooming out to zoom level 0 is broken in bing-maps example

Try at http://openlayers.org/en/v3.3.0/examples/bing-maps.html. The map will disappear when zoomed out from zoom level 1 to 0. In development mode, an assertion error is thrown.
I know Bing does not have a zoom level 0, but shouldn't we be able to upsample?

Duplicate of https://github.com/openlayers/ol3/issues/2780.

I added #2780 to the next milestone so we get reminded about it at least once a month.


⚠ Feedaty widget has degraded performance

In 1973db5, Feedaty widget (https://widget.feedaty.com/public/js/feedaty.js?merchant=10213975&style_ver=2021&data-sku=36263) experienced degraded performance:

HTTP code: 200
Response time: 2829 ms

Resolved: Feedaty widget performance has improved in 3fdcf7d after 11 minutes.


Custom Primary Keys?

I may be missing something, but it looks like the crud library does not take in to account a defined $primaryKey = 'my_id'; in your models?
Looking in list.blade.php and some other areas I see items like {{ Request::url().'/'.$entry->id }} that seem fixed to the 'id' convention.

Yes, I'm afraid quite a lot of the code does NOT account for the $primaryKey variable right now, but it definitely should.
This might be a showstopper for a lot of models, so I'll go ahead and make this issue "urgent" and will find time to do it ASAP. If you are in a hurry and willing to contribute to the project, you're free to submit a pull request, I'd be more than happy to merge.
Cheers!

Looks like there are just a few mentions.
I've taken a stab at it in 6da0f929920bbf711491f560aed8665fa7eb0896, and it SEEMS to work, but I need another confirmation before I can merge it in the master branch.
Could you try it out an see if I missed anything, please?

Awsome, thanks! It's almost working:

need to also update src/resources/views/fields/select.blade.php

in src/app/Http/Controllers/CrudController.php -> updateCrud() doesn't work:

$this->crud->update($request->get('id'), $request->except('redirect_after_save'));
changing it to:
$this->crud->update($request->get($this->crud->model->getKeyName()), $request->except('redirect_after_save'));
...seems to work, but not sure if that is the most elegant method.

Ok, great. It's now on master, v2.0.23
Yeah... the updateCrud() change is a bit ugly, but I see no other way, really.
Cheers, thanks for the help!


compile error

etcommon_bigint  latest version 0.1.15 remove etcommon_bigint::LogsBloom, so in eth/proto.rs  there is a compile error .
remove LogsBloom in proto.rs in use, compile is ok

Should work as of now. Just updated all etcommon versions.
(Sorry I certainly missed this issue!)


Simplifications to chain, state machine and DB

What was wrong?
Simplifying some parts of the chain, state machine and db abstractions to get ready to implement fork choice.
How was it fixed?
Mostly removing stuff we don't need and sorting out how to separate our noting of persisting a block from running the fork choice.

Remove state_transition abstraction from the state_machine as it was just adding extra overhead
Making progress towards encapsulating the chain_db behind the chain abstraction; ultimately the db should be an implementation detail of the chain
adding from_genesis constructors for the chain and chain_db abstractions; the idea is that to make a "fresh" instance at genesis, you call the from_genesis constructor. otherwise the underlying database has already been initialized and you can simply instantiate with __init__.
some other minor API clean ups for things we aren't using or don't need

Cute Animal Picture

happy to address post-merge feedback but don't want a chain of PRs here (or one massive PR)...


feat: StateDiffHints

Fixes #3916
Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

[ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
[ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
[ ] Every change is related to the PR description.
[ ] I have linked this pull request to relevant issues (if any exist).

Benchmark results
Metrics with a significant change:

batch_insert_into_append_only_tree_ms (2): 115 (+30%)
circuit_output_size_in_bytes (root-rollup): 709 (-20%)
node_database_size_in_bytes (10): 3,726,197 (-30%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 1fd135cb and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,444
179,588
716,132

l1_rollup_calldata_gas
221,040 (-1%)
865,448
3,444,872

l1_rollup_execution_gas
934,216
3,967,954
24,788,440

l2_block_processing_time_in_ms
1,324 (-13%)
5,084 (-1%)
21,037 (-1%)

note_successful_decrypting_time_in_ms
333 (-4%)
998
3,660 (-3%)

note_trial_decrypting_time_in_ms
48.7 (-12%)
124 (+1%)
139 (-1%)

l2_block_building_time_in_ms
14,943 (-1%)
59,497
238,119 (-1%)

l2_block_rollup_simulation_time_in_ms
10,608 (-1%)
42,386
169,914 (-1%)

l2_block_public_tx_process_time_in_ms
4,303 (-1%)
17,016 (-1%)
67,835 (-1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
15,534 (+3%)
29,471 (+1%)

note_history_successful_decrypting_time_in_ms
2,493 (+6%)
4,846

note_history_trial_decrypting_time_in_ms
85.2 (+9%)
197 (+4%)

node_database_size_in_bytes
3,616,071
:warning: 3,726,197 (-30%)

pxe_database_size_in_bytes
29,923
59,478

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
211
44,709
25,561

private-kernel-ordering
138
30,953
14,809

base-rollup
1,078
128,374
881

root-rollup
83.1
4,088
:warning: 709 (-20%)

private-kernel-inner
287
71,236
25,561

public-kernel-private-input
202
31,891
25,561

public-kernel-non-first-iteration
201
31,933
25,561

merge-rollup
9.87 (+1%)
2,608
881

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
2 leaves
8 leaves
16 leaves
32 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
8192 leaves

batch_insert_into_append_only_tree_ms
11.1 (-1%)
:warning: 115 (+30%)
13.5 (-4%)
18.3 (+3%)
23.7 (-1%)
50.1
91.8 (+3%)
243 (-1%)
472
910
3,560

batch_insert_into_indexed_tree_ms
N/A
N/A
N/A
64.7
N/A
59.5
110 (-1%)
358 (-1%)
750 (+1%)
1,401 (-1%)
5,568 (-3%)

Miscellaneous
Transaction sizes based on how many contracts are deployed in the tx.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
15,487
31,904

Transaction processing duration by data writes.

Metric
0 new commitments
1 new commitments

tx_pxe_processing_time_ms
355 (+3%)
966

Metric
1 public data writes

tx_sequencer_processing_time_ms
529


Suggestion: Use the stack

Numi is great, but I would like to be able to use the stack more efficiently.
Suggestion double-click on result to place it in the current line. Instead of click and Ctrl-v.
The "prev" token is a good. Too many characters IMHO.
How about you type p and it defaults to "prev", AND
Little grey numbers appear the the right of the results column naming the lines 1,2,3 4.  (just to help you see what line is what)
You can then type p3 to get the third value on the stack.
Allowing you to do things like p2 + p4 to act on results in the stack.
I discovered the power of RPN using the HP 28S in university.   A RPN mode in numi could be interesting but a significant paradigm shift.

This is a major stumbling block for me, and has led me to stop using Numi which is a shame because it has so many other nice features and I would otherwise have it pre-ordered.
I found http://www.chiusystems.com/products/bim which does a great job letting you use the stack. + - * and / by default operate on the previous result (instead of manually typing prev every time), and it also auto-assigns previous lines to variables, similar to the p2, p4, etc suggestion above. http://www.zoesoft.com/console-calculator/ is another good example that makes it quick to work with the previous result by auto-appending when you start the new line with an operator.