text:
Design Software + More Robust

Searching for icons on this page is super frustrating. I have to guess what the icon name is, I would much rather prefer if the icons had tags. (Obviously they need a unique icon name, but tags would help as well). Also, getting these icons into Sketch (OSX) is a total pain.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 633955d7-89b3-04a5-ad62-4fa860785150
Version Independent ID: ce94b443-0257-8414-0c12-0490c0bad8b6
Content: Segoe MDL2 icon guidelines - UWP app developer
Content Source: windows-apps-src/design/style/segoe-ui-symbol-font.md
Service: unspecified
GitHub Login: @mijacobs
Microsoft Alias: mijacobs

What other info/details can I provide for this? I can do a screen recording of the paint points if needed.

Hi Ahainen,
There are certainly a lot of icons and I agree they can be difficult to browse. Could you provide some examples of the tags you're thinking of? Regarding getting the icons into Sketch--you can now download the Segoe MDL2 font from our design downloads page: https://docs.microsoft.com/en-us/windows/uwp/design/downloads/

Here's a more in depth example of the problem: https://youtu.be/RzohF-Wbdy8

Anything on this? "No news" is totally fine, just curious.

Hi @ahainen, my apologies for the delayed! I shared your feedback with the typography team and they agree that the experience could be improved. Short, term, I started working with them to get the list updated. I just emailed them to check on the status.

I fully support Andrew.
MDL is already very voluminous in terms of the number of specific icons that are used only in Windows, it’s time for the team to think about creating an icon manager with tags, search and convenient copying of icons. To avoid the bulkiness of the manager, they need to be further divided into places where they are used: taskbar, titlebar, toolbar, etc.

From the feature team:
The issue with Mac and Sketch relates to icons and Unicode Private use area. There is no fallback for PUA even on Windows. I’m not sure why this works for some icons and not others. The user should contact Sketch to discuss lack of support for PUA icons.
Some of our icons are available as svg through Fabric. https://uifabricicons.azurewebsites.net/ while that will help with Sketch issues, it doesn’t help anyone with keywording.
Because of the limitations of markdown, there's not a practical way to improve the browsing experience on this page.

authors: ahainen mijacobs userbridge


text:
Please clarify "This command is only applicable to Windows 7 and Windows Server 2008 R2."

Please clarify "This command is only applicable to Windows 7 and Windows Server 2008 R2.".
This command works for me in 2016.
diskpart> san policy=onlineall

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9cbe4c24-052b-542d-1689-f956548f418b
Version Independent ID: 3a30a05a-e78d-cad1-b980-2c0353cf3a65
Content: san
Content Source: WindowsServerDocs/administration/windows-commands/san.md
Product: windows-server
Technology: manage-windows-commands
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

@steved0x Any update?

Would that I had discovered this issue ticket earlier, but anyway: I am looking through the updates now, just to see when the text you quoted above was removed.

Resolved as of August 27, 2020, 2:46 PM PDT, in commit https://github.com/MicrosoftDocs/windowsserverdocs/commit/1a63ac4e23a354a74b93c14cfce41448036ac78f (direct file link https://github.com/MicrosoftDocs/windowsserverdocs/commit/1a63ac4e23a354a74b93c14cfce41448036ac78f#diff-12a8b9a4606d80d6d1966e07db061de4e80298e32ee3dfdc427d3ea5931cca3f).

@rualthan : It looks like your reported issue has been solved, so I am going to close this ticket. If you still find that it has not been resolved, either reopen this ticket or open a new ticket with more details for the current version of the document page.

#please-close

@illfated Sorry, what is the solution?

@rualthan : As far as I am aware, commit https://github.com/MicrosoftDocs/windowsserverdocs/commit/1a63ac4e23a354a74b93c14cfce41448036ac78f seems to be the solution. If you still find that there is an issue in the document, please open a new ticket. Thank you.

source: gharchive/issue

authors: illfated rualthan

repo: MicrosoftDocs/windowsserverdocs

license_type: permissive

license_source: github-api


text:
different recommended practices for same WSFC thresholds in SQL Server on Azure VM

Hi team,
Searching for WSFC thresholds recommendations for SQL Server on a VM I find 2 docs regarding SQL on Azure VM that have different recommendations for the same WSFC thresholds. What's the best recommended practice? What can I advise our customer? Please review if one or both docs are eligible for improvement as this is confusing.
https://docs.microsoft.com/en-us/windows-server/troubleshoot/iaas-sql-failover-cluster recommends
SameSubnetThreshold = 20
CrossSubnetThreshold  = 20 while
https://docs.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/hadr-cluster-best-practices?tabs=windows2012 recommends
SameSubnetThreshold = 40
CrossSubnetThreshold  = 40.
See screenshots.

Kind regards, inge
#MSFTadvocate

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 53fa3eb0-36aa-f197-cf46-4652845ffe3b
Version Independent ID: 7185b7a5-4596-cc66-b37c-a46e9c97e4b0
Content: Adjust the failover baseline network threshold
Content Source: WindowsServerDocs/troubleshoot/iaas-sql-failover-cluster.md
Product: windows-server
Technology: troubleshoot
GitHub Login: @Deland-Han
Microsoft Alias: delhan

Just found another docs also recommending 40 for both thresholds in https://docs.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/performance-guidelines-best-practices-checklist.

I have submitted a PR to fix the issue.
#please-close

authors: Deland-Han ingebeumer


text:
added fsutil  in 3 commands

after reading this article i found fsutil is missing in 3 commands, so i added it.

@robinharwood, @Xelu86
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Thanks for your contribution @RAJU2529, I will merge this now. You won't see the changes live until tomorrow.
Thanks once again.

source: gharchive/pull-request


text:
DateTaken please precise and fix typo

DateTaken is a DateTimeOffset, so it cannot be compared to 0.
Also, could you please be more accurate on the difference between this and System.Photo.DateTaken since File explorer shows some differences when using AQS syntax?
Thank you

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 607552f4-9f8f-d0dc-ecf1-2351f61d0cb8
Version Independent ID: fce8eefa-10a0-1360-d642-98387a385ccf
Content: ImageProperties.DateTaken Property (Windows.Storage.FileProperties) - Windows UWP applications
Content Source: https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=%2fwinrt-api-build%2fwindows.storage.fileproperties.imageproperties.yml&version=GBlive&_a=contents
Product: uwp
Technology: winrt-reference
Git Login: lastnameholiu
Microsoft Alias: alholiu

Thanks for bringing this to our attention! I've submitted an update that more accurately and precisely describes the default behavior of this property - you should see these changes published soon.

authors: Ponant mikben

repo: MicrosoftDocs/winrt-api


text:
Confusing documentation for the c_str() member.

The c_str() member is documented to

return a null-terminated C-style string version of the characters in the hstring object.

The word "version" suggests, that a new sequence of characters were constructed and returned. I doubt though, that that's what's happening. It would be more reasonable to assume, that c_str() returns a pointer into the hstring-controlled memory.
Can the documentation be updated to more accurately explain the behavior of c_str()? It would certainly help to know who owns the data pointed to, as well as for how long the returned pointer remains valid.
Thank you.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 76c48d19-39d2-154f-d94c-ff59eeed7939
Version Independent ID: f52e84e2-9d1f-ba46-049f-30d89c4a861a
Content: winrt::hstring struct (C++/WinRT) - Windows UWP applications
Content Source: winrt-related-src/cpp-ref-for-winrt/hstring.md
Product: uwp
Technology: winrt-reference
GitHub Login: @stevewhims
Microsoft Alias: stwhi

Hi, @tim-weis, thanks for filing this issue. I've corrected the topic now. It'd be my understanding that the wrapped HSTRING owns the data, and I'd expect that to be valid as long as the winrt::hstring is.
Thanks!
Steve

authors: stevewhims tim-weis

repo: MicrosoftDocs/winrt-related


text:
MyPictures folder is wrong

Under "Working with Internal Storage", the MyPictures special folder should map to INTERNAL_STORAGE/Pictures not INTERNAL_STORAGE/Music

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: cdfb32ba-3510-a171-c451-4b3bac673c7c
Version Independent ID: 7299b788-36f9-f4e2-2ba2-45893f466c19
Content: File access with Xamarin.Android - Xamarin
Content Source: docs/android/platform/files/index.md
Product: xamarin
GitHub Login: @conceptdev
Microsoft Alias: crdun

This was fixed a while back, in https://github.com/MicrosoftDocs/xamarin-docs/pull/1604. Thanks for raising the issue!

repo: MicrosoftDocs/xamarin-docs


text:
Style example property error

Property="Shell.ShellTabBarBackgroundColor"
Property="Shell.ShellTabBarTitleColor"
Property="Shell.ShellTabBarUnselectedColor"
These properties are wrong,
the correct usage should be
Shell.TabBarBackgroundColor
Shell.TabBarTitleColor
Shell.TabBarUnselectedColor

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ef7242a0-d46e-19ea-e22d-f327dcc9b3e9
Version Independent ID: f050be8e-9413-19e7-5799-90a55c4e5bfb
Content: Xamarin.Forms Shell Layout - Xamarin
Content Source: docs/xamarin-forms/app-fundamentals/shell/tabs.md
Product: xamarin
Technology: xamarin-forms
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @zy55769068
While you're correct that the properties you've identified have been renamed, the correct naming is Shell.BackgroundColor, Shell.TitleColor etc.
The docs have just been updated, and will continue to receive more updates this week.


text:
Update right-to-left.md

My app only supports Arabic language and I wanted it to display it in right-to-left direction, regardless of device settings.  This might be a life saving tip.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Elashi sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@Elashi : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@conceptdev : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks for the contribution @Elashi, I updated the formatting a bit to match our style. The doc author will review next week.

@davidbritch : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@davidbritch : Thanks for your contribution! The author(s) have been notified to review your proposed change.


text:
AZ-204_lab_12.md

English:
Enter /media
Current Translation:
輸入 /媒體
Suggested Translation:
輸入 /media
Description:
Don’t translate the names of contains. Global check

Hello contributor,
Thank you for your contribution! We are processing your suggestions and we will update you shortly.
Kind regards,
Microsoft Worldwide Learning Team

Run bugfix tool and waiting for result ICMS QUERY

authors: Chenpeng21 HienThuThiDai olprod

license: MIT


text:
knowledge-store container missing in my container

Module: Fundamentals of Knowledge Mining and Azure AI Search
Lab/Demo: 00
Task: Review the knowledge store
Step: 02

Description of issue
coffee-reviews and coffee-skillset-image-projection are in my container, but  knowledge-store container is not.
Repro steps:
Follow the steps on Explore an Azure AI Search index (UI)
1.
1.
1.

Hi @KristinBethea, thanks for sharing. Unfortunately, I wasn't able to reproduce your issue. One thing you may want to try is go back to this section https://github.com/MicrosoftLearning/mslearn-ai-fundamentals/blob/main/Instructions/Labs/11-ai-search.md#index-the-documents and go to steps 6 and 7. These steps instruct you to create a knowledge-store folder. I'm going to change the formatting of the steps to make the steps clearer.

At step 7, double check what you selected in the Import Data wizard, You will need to select both Documents under "Azure table projections" and Document under "Azure blob projections".

If you try again and still do not see the knowledge-store, please submit another bug. Thanks!

authors: KristinBethea sherzyang


text:
Set to a different value than 100%

Hi,
I need to display a voltage of a battery. Maximum value is 15V. How can I display e.g 8Volts and draw the according circle?
Either the circle is wrong or it displays 40 (guess it calculates the percentage)  instead of 8
$("#PreviewGaugeMeter_1").data("percent",voltage);
How can I change there "percent" to a absolute value?
In HTML I tried
data-showvalue="true" data-min=0 data-total=15 data-used=8

See very last example in doc.html:

Thanks a lot!! it's working. I made a mistake somewhere obviously

authors: Mictronics maxholgasson

repo: Mictronics/GaugeMeter


text:
Phoniebox doesn't recognize commands when known WiFi isn't available

Hello,
I've built the Oled-Phoniebox which works really great so far. Recently I took the phoniebox to our vacation and of course there is no known WiFi network available.
I recognized that the phoniebox doesn't react to any pushbuttons or card swipes for some minutes. After that time it works as usual.
With any known network available m, the phoniebox can be used after about 20 seconds.
Does anybody else have this behavior?
Thanks
morres

What’s the output of tail -n 500 /var/log/syslog?

Now this is really strange, I have no syslog entries for the entire time without WiFi although the phoniebox was running every single day. See below. How is this possible??
Sep  8 02:58:38 starwarsbox systemd[1]: Started OpenBSD Secure Shell server.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Service RestartSec=100ms expired, scheduling restart.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Scheduled restart job, restart counter is at 1.
Sep  8 02:58:38 starwarsbox systemd[1]: Stopped Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[1]: Started Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[608]: phoniebox-rotary-encoder.service: Failed to execute command: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[608]: phoniebox-rotary-encoder.service: Failed at step EXEC spawning /home/pi/RPi-Jukebox-RFID/scripts/rotary-encoder.py: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Main process exited, code=exited, status=203/EXEC
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Failed with result 'exit-code'.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Service RestartSec=100ms expired, scheduling restart.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Scheduled restart job, restart counter is at 2.
Sep  8 02:58:38 starwarsbox systemd[1]: Stopped Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[1]: Started Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[620]: phoniebox-rotary-encoder.service: Failed to execute command: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[620]: phoniebox-rotary-encoder.service: Failed at step EXEC spawning /home/pi/RPi-Jukebox-RFID/scripts/rotary-encoder.py: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[1]: Started Samba NMB Daemon.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Main process exited, code=exited, status=203/EXEC
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Failed with result 'exit-code'.
Sep  8 02:58:38 starwarsbox systemd[1]: Starting Samba SMB Daemon...
Sep  8 02:58:38 starwarsbox daemon_rfid_reader.py[595]: 2020-09-08 02:58:38,650 - root - INFO - Dir_PATH: /home/pi/RPi-Jukebox-RFID/scripts
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Service RestartSec=100ms expired, scheduling restart.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Scheduled restart job, restart counter is at 3.
Sep  8 02:58:38 starwarsbox systemd[1]: Stopped Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[1]: Started Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[683]: phoniebox-rotary-encoder.service: Failed to execute command: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[683]: phoniebox-rotary-encoder.service: Failed at step EXEC spawning /home/pi/RPi-Jukebox-RFID/scripts/rotary-encoder.py: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Main process exited, code=exited, status=203/EXEC
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Failed with result 'exit-code'.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Service RestartSec=100ms expired, scheduling restart.
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Scheduled restart job, restart counter is at 4.
Sep  8 02:58:38 starwarsbox systemd[1]: Started Lighttpd Daemon.
Sep  8 02:58:38 starwarsbox systemd[1]: Stopped Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[1]: Started Phoniebox Rotary Encoder Service.
Sep  8 02:58:38 starwarsbox systemd[685]: phoniebox-rotary-encoder.service: Failed to execute command: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[685]: phoniebox-rotary-encoder.service: Failed at step EXEC spawning /home/pi/RPi-Jukebox-RFID/scripts/rotary-encoder.py: No such file or directory
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Main process exited, code=exited, status=203/EXEC
Sep  8 02:58:38 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Failed with result 'exit-code'.
Sep  8 02:58:39 starwarsbox systemd[1]: Started Samba SMB Daemon.
Sep  8 02:58:39 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Service RestartSec=100ms expired, scheduling restart.
Sep  8 02:58:39 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Scheduled restart job, restart counter is at 5.
Sep  8 02:58:39 starwarsbox systemd[1]: Stopped Phoniebox Rotary Encoder Service.
Sep  8 02:58:39 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Start request repeated too quickly.
Sep  8 02:58:39 starwarsbox systemd[1]: phoniebox-rotary-encoder.service: Failed with result 'exit-code'.
Sep  8 02:58:39 starwarsbox systemd[1]: Failed to start Phoniebox Rotary Encoder Service.
Sep  8 02:58:39 starwarsbox systemd[1]: Reached target Multi-User System.
Sep  8 02:58:39 starwarsbox systemd[1]: Reached target Graphical Interface.
Sep  8 02:58:39 starwarsbox systemd[1]: Starting Update UTMP about System Runlevel Changes...
Sep  8 02:58:39 starwarsbox systemd[1]: systemd-update-utmp-runlevel.service: Succeeded.
Sep  8 02:58:39 starwarsbox systemd[1]: Started Update UTMP about System Runlevel Changes.
Sep  8 02:58:39 starwarsbox systemd[1]: Startup finished in 3.124s (kernel) + 13.592s (userspace) = 16.716s.
Sep  8 02:58:43 starwarsbox python3[591]: Simone Sommerland, Karsten Glück, Die Kita-Frösche - Ja, Gott hat alle Kinder lieb
Sep  8 02:58:43 starwarsbox python3[591]: [paused]  #30/54   2:48/3:05 (90%)
Sep  8 02:58:43 starwarsbox python3[591]: volume: 59%   repeat: off   random: off   single: off   consume: off
Sep  8 02:58:48 starwarsbox daemon_rfid_reader.py[595]: 2020-09-08 02:58:48,605 - root - INFO - Trigger Play Cardid=0002841953
Sep  8 02:58:53 starwarsbox daemon_rfid_reader.py[595]: 2020-09-08 02:58:53,478 - root - INFO - Trigger Play Cardid=0002841953
Sep  8 02:58:55 starwarsbox daemon_rfid_reader.py[595]: 2020-09-08 02:58:55,455 - root - INFO - Trigger Play Cardid=0002841953
Sep  8 02:58:57 starwarsbox daemon_rfid_reader.py[595]: 2020-09-08 02:58:57,751 - root - INFO - Trigger Play Cardid=0002841953
Sep  8 02:58:59 starwarsbox systemd[1]: systemd-fsckd.service: Succeeded.
Sep  8 02:59:00 starwarsbox daemon_rfid_reader.py[595]: 2020-09-08 02:59:00,135 - root - INFO - Trigger Play Cardid=0002841953
Sep 19 20:05:19 starwarsbox systemd-timesyncd[332]: Synchronized to time server for the first time 162.159.200.1:123 (2.debian.pool.ntp.org).
Sep 19 20:05:19 starwarsbox systemd[1]: Starting Rotate log files...
Sep 19 20:05:19 starwarsbox systemd[1]: Starting Daily apt download activities...
Sep 19 20:05:19 starwarsbox systemd[1]: Starting Clean php session files...
Sep 19 20:05:19 starwarsbox systemd[1]: Starting Daily man-db regeneration...
Sep 19 20:05:20 starwarsbox logrotate[847]: error: skipping "/var/log/mpd/mpd.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
Sep 19 20:05:20 starwarsbox systemd[1]: phpsessionclean.service: Succeeded.
Sep 19 20:05:20 starwarsbox systemd[1]: Started Clean php session files.

Version 2.4 was released a while ago, is this still an issue?

Closing as no interaction for a couple of months.
Feel free to reopen the issue, if the problem still occurs.

repo: MiczFlor/RPi-Jukebox-RFID


text:
Fix Gmusic integration (depending on mopidy 3) on Raspbian Buster

Hi together,
I´m really new into Raspbian etc.
So maybe I´m just too dumb.
Currently I want to setup the RFID Jukebox with Google Play Music integration.
At first I tried to install it Raspbian Stretch. But with Stretch I´ve the problem that the rfid scanner is crashing every time when I installed Mopidy-Gmusic.
So I decided to try it with Raspbian Buster
I used the following Raspbian Image "2019-09-26-raspbian-buster-full.img"
After first start and configuration of raspbian I installed the RFID Jukebox with the One-Line installer for Buster
After that I installed Mopidy Gmusic with following command and edit the mopidy.conf with my Google Music settings:
sudo pip install mopidy-gmusic
I get no errors or something else, but Gmusic is not working and it seems that mopidy knows nothing about Gmusic.
Also Mopidy.log file shows nothing about gmusic.
Do I have to do something else?

So we are in the process of upgrading to Mopidy 3, see #803.
There's a PR #804, which should be merged soon.
Once this PR is merged you could try the script buster-install-mopidy3.sh in the develop branch to see if this is now working with gmusic.

PR #804 has been merged. Please try Mopidy 3 by using
cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/develop/scripts/installscripts/buster-install-mopidy3.sh; chmod +x buster-install-mopidy3.sh; GIT_BRANCH=develop bash ./buster-install-mopidy3.sh

So on develop Mopidy 3 is now used.
This version can be installed by using:
cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/develop/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; GIT_BRANCH=develop bash ./buster-install-default.sh
@Vanierica, if Gmusic integration is needed, you could open a PR against develop with the necessary changes or we try to assist you with that.

This should work now on develop out of the box, because Mopidy 3 is used there.
@Vanierica could you test it?

authors: Vanierica s-martin


text:
🛑 headache.or.kr is down

In 24ff72e, headache.or.kr (https://www.headache.or.kr/index.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: headache.or.kr is back up in ccdeb9d after 7 minutes.

repo: MigraineKR/upptime


text:
🛑 headache.or.kr is down

In 0d1ae9b, headache.or.kr (https://www.headache.or.kr/index.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: headache.or.kr is back up in 98d632f after 15 minutes.


text:
21

21

@MihaiDejeu this is your task now, please go ahead. Deadline (when this ticket should be closed) is 2020-12-16T12:55:07.185892.
Estimation here is 60 minutes, that's how much you will be paid.
Remember, you don't have to solve everything in this ticket - you can solve it partially and leave todo markers in the code, which will become future tasks.
If you have any questions don't ask me, I'm not a technical person. Open new tickets instead.

@MihaiDejeu please keep in mind that manual assignment of tickets is a bad practice and it is discouraged. Next time, please let me elect the assignee.

@MihaiDejeu Don't forget to close this ticket before the deadline (2020-12-16T12:55:07). You are past the first half of the allowed period.

@MihaiDejeu thank you for resolving this ticket. I've just added it to your active invoice. You can always check all your invoices and more on the Contributor Dashboard.

authors: MihaiDejeu charlesmike

repo: MihaiDejeu/self-QA


text:
ENH: Expose the condition classes as substitute for the string based conditions

Is your feature request related to a problem? Please describe.
The scheduling syntax is easy but it is error-prone and does not work with static code analysis.
For example, this has no highlighting and it is hard to validate before runtime:
@app.task("daily between 12:00 and 15:00 & time of week on Monday ")
def do_daily():
    ...

The syntax parser turns the strings to the Python instances that represent the conditions but the naming of these conditions is not always the best.
Describe the solution you'd like
Candidate A): use the existing (but maybe think better names):
@app.task(TaskExecutable(period=TimeOfDay("12:00", "15:00") & IsPeriod(period=TimeOfWeek("Mon", "Mon"))))
def do_daily():
    ...

Candidate B): have similarly named instances as in the string expressions:
@app.task(daily.between("12:00", "15:00") & time_of_week.on("Monday"))
def do_daily():
    ...

These also could be used in generating the condition syntax items instead of the ugly class methods that exist for them.
Additional context
This is related to the part of the library that is quite old and could have some cleaning. The logic of these conditions is based on ideas that evolved into better ones which means the code in this area is not as clear as it could be.

The condition parsers are set here: https://github.com/Miksus/red-engine/blob/master/redengine/conditions/init.py

repo: Miksus/red-engine


text:
🛑 Nestjs Swagger API is down

In 0336879, Nestjs Swagger API (https://nestjs-server-member.vercel.app) was down:

HTTP code: 500
Response time: 16579 ms

should have been resolved by now


text:
[Request] Get calendar to auto update every X hours

It would be nice to have a way to get the calendar to auto update.
In the project I have going on, I have used the following code.... but I feel there has to be a better way?
You will notice I have had to run $( "#events-upcoming" ).empty(); to get the list items to be rebuilt.
 function LoadCleanCalendar () {
     $( "#events-upcoming" ).empty();
      formatGoogleCalendar.init({ .... Settings .... });
  }

 $(function () {
    LoadCleanCalendar();
    setInterval(LoadCleanCalendar, 3600000 );
  });

@chaos67731 You may want to consider just using a meta refresh and skip js:
<meta http-equiv="refresh" content="30" />
Using this will cause your page to pick up any updates you've pushed to the server. I'm taking this approach on a project I'm currently working on.

@chaos67731 Create a new gcall-data.php page and put there:
<?php echo '

'; ?>

After that create a div element where you want to show the gCall. Something like this:

and call it with this script:

Change the time to everything you want and you will see the gCall update every x seconds.
I have tested and works perfect.
Hope that helps.

authors: chaos67731 kocmochq mikecole

repo: MilanLund/FormatGoogleCalendar


text:
Validated eslintrc file

According to the Eslint documentation, no-unused-vars options should be written in Object ( {} ) with key args.
The parser from eslintrc.json will be resolved from the node_modules automatically. You must give the name of the parser only.
Signed-off-by: Moulik Aggarwal moulik@deepsource.io

You saved my day! Since this is my first time using ESLint I was just trying to figure out why it was giving me an error :sweat_smile:

authors: MillenniumEarl moulik-deepsource


text:
[WIP] SnarkyJS

This is an ongoing attempt to create the PR with the minimal set of differences to develop which are required to build snarkyjs. The explicit goal is to enable snarkyjs compilation in develop as soon as possible.
I started from #10264 and followed the general strategy of hard-resetting files to their develop version if the changes in them aren't strictly necessary for snarkyjs to work. While some of these reverted changes actually look useful to me, I think they should be decoupled from the effort of merging snarkyjs.
Note: While the diff may still appear to be huge, almost all of it now falls in the following four two categories:

Add Wasm bindings for kimchi -- src/lib/crypto/kimchi_bindings/{wasm,js}
Add the Ocaml API for snarkyjs -- src/lib/snarky_js_bindings
Move most of mina_base into a subfolder mina_base/kernel and make this subfolder compile to JS
Delete symlinks in nonconsensus/mina_base and make it directly re-export mina_base/kernel instead

Both 1. and 2. are simply adding code that doesn't affect the native side at all, and that's been around for a long time in various branches.
Both 3. and 4. are still WIP. Before merging, we want to come up with a more thoughtful way of changing the structure of mina_base.

Update: Adapting mina_base to develop is done, so the remaining work for this to land is:

Fix Wasm bindings -- especially, proof generation -- so that meaningful tests can be added
Review & merge Wasm bindings. Some initial review happened here: #10249
Add snarkyjs tests, prepared by #10275
Review & merge SnarkyJS bindings

Also, it would be good to reassess the PRs https://github.com/MinaProtocol/mina/pull/9934, https://github.com/MinaProtocol/mina/pull/9935, https://github.com/MinaProtocol/mina/pull/9936, https://github.com/MinaProtocol/mina/pull/9937, https://github.com/MinaProtocol/mina/pull/9938, https://github.com/MinaProtocol/mina/pull/9939, https://github.com/MinaProtocol/mina/pull/9940, which are included here and in develop but many of their changes were reset to minimize the diff

From now on, we should only use this branch to change the Wasm bindings: https://github.com/MinaProtocol/mina/tree/feature/wasm-bindings, and merge it here later, to avoid to much commit cherry-picking

TODO before merge: fix random_oracle, either exposing from Rust or by adding some conditional compilation

repo: MinaProtocol/mina


text:
Move Pickles.compile to a separate Pickles.Compile module

This PR builds upon #12630, factoring out the implementation of Pickles.compile into its own module, so that the adversarial override helper in Pickles.compile_with_wrap_main_override_promise can be used for testing outside of pickles.ml.
Checklist:

[ ] Modified the current draft of release notes with details on what is completed or incomplete within this project
[ ] Document code purpose, how to use it

Mention expected invariants, implicit constraints

[ ] Tests were added for the new behavior

Document test purpose, significance of failures
Test names should reflect their purpose

[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them

!ci-build-me

!ci-build-me

!ci-build-me

!ci-build-me

!ci-build-me


text:
把ng识别成了非法音节

问题描述
如题
如何重现
--> feng.txt: 行 6290
|
6290 | 【伓是坯】 {ing242 sei242 pui55,ng242 sei242 pui55} ng21 ni55 pui55 ①指責人没有廉耻心，不要臉，猶如北京話的“不是
東西”：許隻儂野～，汝講{什乇,世乇}伊都無聽{嘴,喙}(指無籌如何都不聽勸)，汝莫睬伊②指小孩不聽話，調皮搗蛋：許隻{兒囝,伲囝}
哥(那孩子){真,盡}～，拍(打)死{??,儥}(不會)變|汝給我坐定，莫～|～其(的)，給我死轉去(回家)
|                                                     ^^^^
                                                                                ng21 不是符合规范的榕拼音节

.
预期表现
你原本预期（假设没有这个bug）、正常的结果应该是什么？
截图
如有可能，请提供截图。
电脑 (如果是，请填写):

操作系统: [如 Windows]
浏览器: [如 chrome, safari]
浏览器版本: [如 22]

你所用的手机 (如果是，请填写):

品牌和型号: [如 iPhone6]
操作系统: [如 iOS8.1]
浏览器: [如 内置浏览器，UC 浏览器]
浏览器版本: [如 22]

其他信息
其他任何你觉得有助于解决问题的信息。

可添加例外， 榕拼规范要更新一下

0.4.0就更新了
子善（中国账号）
zysieng@qq.com

------------------ 原始邮件 ------------------
发件人: "Radium"<notifications@github.com>;
发送时间: 2020年4月17日(星期五) 凌晨4:30
收件人: "MindongLab/yngdieng"<yngdieng@noreply.github.com>;
抄送: "閩東子善"<2056171287@qq.com>; "Author"<author@noreply.github.com>;
主题: Re: [MindongLab/yngdieng] 把ng识别成了非法音节 (#218)
可添加例外， 榕拼规范要更新一下
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

0.4.0就更新了

我在榕拼0.4.0-preview2主方案和福州方案里搜索了一下"ng"，没有看到有明确说明：

ng 作为声母可以直接带声调
ing 和 ng 使用上区别（强调和非强调）

現在這個問題算解決了未

現在這個問題算解決了未

fixed in 4b8bbc3a10905022721d0adf545412baec63d941

authors: DDFShanyu Guanchishan ztl8702

repo: MindongLab/yngdieng


text:
Maven

Maven?

ProtocolBurrito relies on userdev which is a gradle only olugin. So maven cannot be supported sorry

repo: MineInAbyss/ProtocolBurrito


text:
Activity Feed

Initial draft of the Activity API

Merged the activity feed, ready for next weeks release

authors: burdiyan ericvicenti

repo: MintterHypermedia/mintter


text:
🛑 Ye is down

In 3ec8cb5, Ye ($YE) was down:

HTTP code: 502
Response time: 697 ms

Resolved: Ye is back up in a5a0e99.

repo: Miouwn/upl


text:
Use channel to terminate deployment workflow

Use channel to terminate deployment workflow

This change is

Looks ok, with one small question.

Reviewed 3 of 3 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

cmd/deploy.go, line 87 at r2 (raw file):

		log.Println("No cycles detected.")
	}
	stopChan := make(chan struct{})

Wouldn't be better to use chan error in all places instead of chan struct{}?

Comments from Reviewable

Review status: all files reviewed at latest revision, 1 unresolved discussion.

cmd/deploy.go, line 87 at r2 (raw file):
Previously, jellonek (Piotr Skamruk) wrote…
Wouldn't be better to use chan error in all places instead of chan struct{}?

afaik it is common in go development to use chan struct{} for termination, cause it clearly shows that we are not interested in value. Also it is slightly more efficient :) struct{} always will take 0 bytes, but error will take number of bytes allocated to empty interface thus:
package main

import "fmt"
import "unsafe"

func main() {
	stopE := make(chan error)
	close(stopE)
	stopS := make(chan struct{})
	close(stopS)
	fmt.Println(unsafe.Sizeof(<-stopE)) // 16
	fmt.Println(unsafe.Sizeof(<-stopS)) // 0
}

Comments from Reviewable

Review status: all files reviewed at latest revision, 1 unresolved discussion.

cmd/deploy.go, line 87 at r2 (raw file):
Previously, dshulyak (Dmitry Shulyak) wrote…
afaik it is common in go development to use chan struct{} for termination, cause it clearly shows that we are not interested in value. Also it is slightly more efficient :) struct{} always will take 0 bytes, but error will take number of bytes allocated to empty interface thus:
package main

import "fmt"
import "unsafe"

func main() {
	stopE := make(chan error)
	close(stopE)
	stopS := make(chan struct{})
	close(stopS)
	fmt.Println(unsafe.Sizeof(<-stopE)) // 16
	fmt.Println(unsafe.Sizeof(<-stopS)) // 0
}

This looks like channel for error passing, which is also used as a termination method. Also even it if's a bit more optimal in memory usage it's not clear from start what types of structs can be passed there. IMO readability count, more than efficiency there.
Don't give me wrong - this works and I have no strong opinion on that. If someone else will accept this - you have my LGTM ;)

Comments from Reviewable

Reviewed 1 of 3 files at r1.
Review status: all files reviewed at latest revision, 2 unresolved discussions.

pkg/scheduler/scheduler.go, line 121 at r2 (raw file):

}

func statusWaiter(sr *ScheduledResource, ch chan error) bool {

I don't like the name of this function. It suggests that some kind of waiter is returned, but it's just a bool function. What about isResourceFinished or sth like that?

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions.

cmd/deploy.go, line 87 at r2 (raw file):
Previously, jellonek (Piotr Skamruk) wrote…
This looks like channel for error passing, which is also used as a termination method. Also even it if's a bit more optimal in memory usage it's not clear from start what types of structs can be passed there. IMO readability count, more than efficiency there.
Don't give me wrong - this works and I have no strong opinion on that. If someone else will accept this - you have my LGTM ;)

@jell for me it seems like this channel is not for error passing, it's just for signalling that the deployment timeout is reached.

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions.

cmd/deploy.go, line 87 at r2 (raw file):
Previously, nebril (Maciej Kwiek) wrote…
@jell for me it seems like this channel is not for error passing, it's just for signalling that the deployment timeout is reached.

... by sending nil, or thing which only supports error interface ;)

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions.

cmd/deploy.go, line 87 at r2 (raw file):
Previously, jellonek (Piotr Skamruk) wrote…
... by sending nil, or thing which only supports error interface ;)

nothing should be sent to this channel, the intent to use it only with close

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions.

cmd/deploy.go, line 87 at r2 (raw file):
Previously, dshulyak (Dmitry Shulyak) wrote…
nothing should be sent to this channel, the intent to use it only with close

ack

Comments from Reviewable

Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 2 unresolved discussions.

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions.

Comments from Reviewable

authors: dshulyak jellonek nebril

license_source: bigquery


text:
hmc-351: add dockerfile for local dev

This PR resolves https://github.com/Mirantis/hmc/issues/351 by adding Dockerfile to allow local update/ development on the docs code base.

Hi @a13x5 ,  I accidentally delete my fork, will re-issue a similar PR with the correction, soon.


text:
Tests for pod/container statuses issue

Need a test that reproduces the problems described in #120, #122
The test should fail with patch form #122 reverted.

Also that would be nice if this will cover also #133

repo: Mirantis/virtlet


text:
Allow overriding of endpoint_url arg to AWS clients (Fixes #1068)

Description
One possible way to fix #1068 ; untested, but mostly here as a strawman to figure out what the code might look like.
GitHub Issues
#1068

Coverage decreased (-62.2%) to 11.334% when pulling 0d3f774ad7fd6671009fba39f0e5af75b990f779 on pjz:issue_1068 into d4eae7f9a42ce5d9ed827b0d4cceefd2b096c044 on Miserlou:master.

Coverage increased (+0.05%) to 73.532% when pulling d11fd403f39c4b02d2e5b8c4795a09f8cfdf639f on pjz:issue_1068 into d4eae7f9a42ce5d9ed827b0d4cceefd2b096c044 on Miserlou:master.

Coverage increased (+0.05%) to 73.532% when pulling fa2c731ea6354c0049c711faa1c46435faac19a9 on pjz:issue_1068 into d4eae7f9a42ce5d9ed827b0d4cceefd2b096c044 on Miserlou:master.

authors: coveralls pjz

repo: Miserlou/Zappa


text:
agent_dqn.py torch.load can't find zip files under checkpoints/DDQAgent

My first step of the program you wrote successfully ran

However I got error when execute following command in the second step.
python2 run.py --agt 9 --usr 1 --max_turn 40 \
	      --movie_kb_path ./deep_dialog/data/movie_kb.1k.p \
	      --dqn_hidden_size 80 \
	      --experience_replay_pool_size 1000 \
	      --episodes 300 \
	      --simulation_epoch_size 100 \
	      --write_model_dir ./deep_dialog/checkpoints/DDQAgent/ \
	      --slot_err_prob 0.00 \
	      --intent_err_prob 0.00 \
	      --batch_size 16 \
	      --goal_file_path ./deep_dialog/data/user_goals_first_turn_template.part.movie.v1.p \
	      --trained_model_path ./deep_dialog/checkpoints/DDQAgent/TRAINED_MODEL \
	      --run_mode 3

Here is the error output:
[zyh@zyh-virtualbox src]$ python2 run.py --agt 9 --usr 1 --max_turn 40 \
>       --movie_kb_path ./deep_dialog/data/movie_kb.1k.p \
>       --dqn_hidden_size 80 \
>       --experience_replay_pool_size 1000 \
>       --episodes 300 \
>       --simulation_epoch_size 100 \
>       --write_model_dir ./deep_dialog/checkpoints/DDQAgent/ \
>       --slot_err_prob 0.00 \
>       --intent_err_prob 0.00 \
>       --batch_size 16 \
>       --goal_file_path ./deep_dialog/data/user_goals_first_turn_template.part.movie.v1.p \
>       --trained_model_path ./deep_dialog/checkpoints/DDQAgent/TRAINED_MODEL \
>       --run_mode 3
Dialog Parameters:
{
  "simulation_epoch_size": 100,
  "slot_err_mode": 0,
  "diaact_nl_pairs": "./deep_dialog/data/dia_act_nl_pairs.v6.json",
  "save_check_point": 10,
  "episodes": 300,
  "predict_mode": false,
  "planning_steps": 4,
  "cmd_input_mode": 0,
  "goal_file_path": "./deep_dialog/data/user_goals_first_turn_template.part.movie.v1.p",
  "max_turn": 40,
  "grounded": 0,
  "experience_replay_pool_size": 1000,
  "write_model_dir": "./deep_dialog/checkpoints/DDQAgent/",
  "usr": 1,
  "boosted": 1,
  "auto_suggest": 0,
  "torch_seed": 100,
  "run_mode": 3,
  "trained_model_path": "./deep_dialog/checkpoints/DDQAgent/TRAINED_MODEL",
  "success_rate_threshold": 0.6,
  "nlu_model_path": "./deep_dialog/models/nlu/lstm_[1468447442.91]_39_80_0.921.p",
  "train_world_model": 1,
  "epsilon": 0,
  "batch_size": 16,
  "learning_phase": "all",
  "nlg_model_path": "./deep_dialog/models/nlg/lstm_tanh_relu_[1468202263.38]_2_0.610.p",
  "act_set": "./deep_dialog/data/dia_acts.txt",
  "movie_kb_path": "./deep_dialog/data/movie_kb.1k.p",
  "slot_err_prob": 0.0,
  "warm_start": 1,
  "warm_start_epochs": 100,
  "dict_path": "./deep_dialog/data/dicts.v3.p",
  "intent_err_prob": 0.0,
  "slot_set": "./deep_dialog/data/slot_set.txt",
  "act_level": 0,
  "dqn_hidden_size": 80,
  "agt": 9,
  "split_fold": 5,
  "gamma": 0.9
}
Traceback (most recent call last):
  File "run.py", line 209, in <module>
    agent = AgentDQN(movie_kb, act_set, slot_set, agent_params)
  File "/home/zyh/Desktop/DDQ/src/deep_dialog/agents/agent_dqn.py", line 71, in __init__
    self.load(params['trained_model_path'])
  File "/home/zyh/Desktop/DDQ/src/deep_dialog/agents/agent_dqn.py", line 384, in load
    self.dqn.load_state_dict(torch.load(filename))
  File "/home/zyh/.local/lib/python2.7/site-packages/torch/serialization.py", line 527, in load
    with _open_zipfile_reader(f) as opened_zipfile:
  File "/home/zyh/.local/lib/python2.7/site-packages/torch/serialization.py", line 224, in __init__
    super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: [enforce fail at inline_container.cc:143] . PytorchStreamReader failed reading zip archive: not a ZIP archive
frame #0: c10::ThrowEnforceNotMet(char const*, int, char const*, std::string const&, void const*) + 0x47 (0x7feb2b02cd37 in /home/zyh/.local/lib/python2.7/site-packages/torch/lib/libc10.so)
frame #1: caffe2::serialize::PyTorchStreamReader::valid(char const*, char const*) + 0x72 (0x7feb2e1afb62 in /home/zyh/.local/lib/python2.7/site-packages/torch/lib/libtorch.so)
frame #2: caffe2::serialize::PyTorchStreamReader::init() + 0xa1 (0x7feb2e1b2b31 in /home/zyh/.local/lib/python2.7/site-packages/torch/lib/libtorch.so)
frame #3: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::string const&) + 0x64 (0x7feb2e1b5c04 in /home/zyh/.local/lib/python2.7/site-packages/torch/lib/libtorch.so)
frame #4: <unknown function> + 0x6c8b56 (0x7feb762dfb56 in /home/zyh/.local/lib/python2.7/site-packages/torch/lib/libtorch_python.so)
frame #5: <unknown function> + 0x29660b (0x7feb75ead60b in /home/zyh/.local/lib/python2.7/site-packages/torch/lib/libtorch_python.so)
<omitting python frames>
frame #40: __libc_start_main + 0xf2 (0x7feb7df24152 in /usr/lib/libc.so.6)
frame #41: _start + 0x2e (0x56240dbfa04e in python2)

Problem solved, forget to specify the trained module file in command-line option --trained_model_path. Thanks!

Problem solved, forget to specify the trained module file in command-line option --trained_model_path. Thanks!

repo: MiuLab/DDQ


text:
Switch linting to ESLint and Prettier

Close #97.

I'm not sure why Travis is failing now. .eslintignore excludes node_modules/**.

@MoOx How about now?

Looks good!

authors: BehindTheMath MoOx

repo: MoOx/pjax

license: mit


text:
Unclear how to pass options in postcss.config.js (missing usage in docs)

Instructions posted at http://cssnext.io/usage/ are not very helpful in my case. Sorry, but these docs are very vague, they don't even state in which file should the example be written. These can be obvious things for "insiders", but not for someone new to postcss.
I'm using Webpack 2 and including postcss-cssnext along with other postcss plugins in my postcss.config.js:
module.exports = {
    plugins: [
        require('precss'),
        require('postcss-cssnext')
    ]
};

and this works, but how do I pass options here?
This syntax doesn't work:
module.exports = {
    plugins: [
        require('precss'),
        require('postcss-cssnext')({features: {autoprefixer: {}}})
    ]
};

this neither:
module.exports = {
    plugins: {
        'postcss-precss':  {},
        'postcss-cssnext': {
            features: {
                autoprefixer: {}
            }
        }
    }
};

When I run webpack I get errors like:
TypeError: Cannot read property 'default' of undefined
or
TypeError: [object Object] must be a function, did you require() it ?

Is postcss.config.js something official?
If so I am open to an improvement in the docs.
That said, cssnext is just a normal postcss plugin. I think there is a bug about that. See https://github.com/postcss/postcss-loader/issues/138

@MoOx
Yes, using javascript as a config file is official, for example this is how I use package.json to define build scripts such as
"scripts": {
  "build-css": "postcss --config config/postcss.library.config.js"
}

@folmert
This is what works for me, although I'm not sure why I should include postcss-cssnext when I have to include plugins anyway under the use key
let config = {
  use: [
    'postcss-cssnext',
    'postcss-import',
    'postcss-custom-properties',
    'postcss-nesting',
    'postcss-calc',
  ],
  'autoprefixer': {
    browsers: '> 5%'
  },
  'postcssCssnext': {
    features: {
      autoprefixer: true
    }
  },
  // Other options such as input and output
};

module.exports = config;

@piotr-cz Feel free to make a PR to show the usage of postcss.config.js in the docs!

@piotr-cz
I've made it work by installing postcss-load-plugins. Thanks to this plugin I can simply write now in my postcsss.config.js:
module.exports = function () {
    return {
        plugins: [
            require('precss')({}),
            require('postcss-cssnext')({ browsers: ['> 0.05%', 'IE 7'], cascade: false })
        ]
    }
};

@folmert I was considering postcss-load-config, but after some time got working with postcss-cli

@MoOx
I'm not sure how to phrase it, I'd add something like this to the docs for  on cssnext.io docs Setup > Usage page.

Usage with CLI
It's possible to pass cssnext options in config file as described in postcss-cli docs:
{
    "input": "screen.css",
    "output": "bundle.css",
    "postcssCssnext": {
        "features": {
            "autoprefixer": true
        }
    }
}

Webpack2 config for post-css with ExtractTextPlugin:
{
    test: /\.pcss$/,
    use: ExtractTextPlugin.extract({
        fallbackLoader: 'style-loader',
        loader: [
            {loader: 'css-loader'},
            {loader: 'postcss-loader',
                options: {
                    sourceMap: 'inline',
                    plugins: function () {
                        return [
                            require('postcss-import'),
                            require('postcss-cssnext')({
                                customProperties: {
                                    variables: {
                                        c_bg: "#222"
                                    },
                                }
                            })
                        ]
                    }
                }
            }
        ]
    })
}

If you prefer store settings in separate js, your config may look like:
const cssSettings = require('../../src/config/vars.js') // before module.exports

{
    loader: 'postcss-loader',
    options: {
        sourceMap: 'inline',
        plugins: function () {
            return [
                require('postcss-import'),
                require('postcss-cssnext')({
                    features: cssSettings
                })
            ]
        }
    }
}

// vars.js

module.exports = {
    customProperties: {
        variables: {
            c_bg: "#222"
        },
    },
    customMedia: {
        extensions: {
            v_small:   "(min-width: 30rem)",
            v_medium:  "(min-width: 48rem)"
        }
    }
}

So, anyone know how to pass options in postcss.config.js?
For example.
Options list for "postcss-custom-properties" https://github.com/postcss/postcss-custom-properties#options
I've tried this but doesn't work:
module.exports = {
  plugins: {
    'postcss-import': {},

    'postcss-cssnext': {
      // not working...
      'postcss-custom-properties': { preserve: true }
    },

    'cssnano': { autoprefixer: false }
  }
}

Without using additional loaders you can pass options in postcss.config.js like this:
module.exports = {
  plugins: {
    'postcss-import': {},

    'postcss-cssnext': {
      features: {
        customProperties: { preserve: true }
      }
    },

    'cssnano': { autoprefixer: false }
  }
}

customProperties refer to "postcss-custom-properties" plugin, you can use the same options of the original plugin https://github.com/postcss/postcss-custom-properties#options
The list of all features / plugins names can be found here: https://github.com/MoOx/postcss-cssnext/blob/master/src/features.js
Maybe the documentation http://cssnext.io/usage/ can be improved?

postcss-cssnext has been deprecated in favor or postcss-preset-env. Read more at https://moox.io/blog/deprecating-cssnext/

authors: MoOx folmert piotr-cz pldg rg-galieva

repo: MoOx/postcss-cssnext


text:
页面间NavigationBar透明与不透明之间切换的BUG

iOS 10.0.1
我创建了三个ViewController，第一个不透明 第二个透明 第三个不透明
viewController1 -》 viewController2 -》 viewController3(此时ViewController2的navigation bar只显示44像素的颜色)
然后返回顺序
viewController3 -》viewController2 -》viewController1(此时ViewController1也只显示44像素)

透明指的是 translucent 属性吗？首先 translucent 设置好后最好就不要再改变，其次根据你的描述导航栏高度的变化应该是系统的行为。

发现是我的问题，为了将底部的阴影线去掉我将navigationBar的clipsToBounds设置成YES了

navigationController?.navigationBar.shadowImage = UIImage() 这样就可以去除那根一像素的线了。

是的，非常感谢你

不客气。 ：)

repo: MoZhouqi/KMNavigationBarTransition


text:
make an email validation to look like a normal email

we should prevent the user and admin from signing up an email that doesn't have the normal format : example@email.com
email like gmail or etc

done


text:
Content Security Policy with Android Native WebView

I am seeing a strange issue manifesting itself with Android M Native WebView.  No matter how I set the Content Security Policy, when attempting to get a media stream, I end up with the following error:
Refused to load media from 'blob:file%3A///8b0456e0-6888-4a08-8872-b0282c41c672' because it violates the following Content Security Policy directive: "media-src *".
I have tried setting my media-src directive any number of ways without success.  This same code works fine with crosswalk.
Anyone else ran into this?

Certainly sounds like a webview bug. Probably the best way to get the bug filed with the team would be to provide a small test page that reproduces the issue. If you're able to do that, I can file a bug on crbug.com

authors: agrieve joshelson

repo: MobileChromeApps/mobile-chrome-apps


text:
Change travis config to terminate w/ error if unit tests fail

Describe the bug
Change travis build to terminate if unit tests fail
Expected behavior
Build should fail if there are failing tests

This is related to the build configs; opened another ticket for it.

repo: MobileFirstLLC/shortcuts-for-chrome


text:
feat: Update Notice source code such that field name comments match documentation in RULES.md

As part of our effort to alignment documentation and source code in #1324, this PR applies an automated transform to update the comments of each Notice field in source to match the equivalent field documentation string from RULES.md.  This gets us one step closer to generating RULES.md from source code directly.
Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Run the unit tests with gradle test to make sure you didn't break anything
[x] Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
[x] Linked all relevant issues

@isabelle-dr I know this review looks a little bit scary, but it's largely an automated transformation from RULES.md to source code.  As always, curious what you think.

@bdferris-v2 in looking at this for #1289 I noticed some copy/paste mistakes where row number comment was copied for file name field, so I fixed those.

@briandonahue those are actually errors in the source RULES.md file :)  But fixing them here is appreciated, thanks!

After the conflicts are resolved, I think we're good to merge this PR!
cc @davidgamez

authors: bdferris-v2 briandonahue isabelle-dr

repo: MobilityData/gtfs-validator


text:
Refactor Model Class

At some point soon we're looking to refactor the model class so that it can modularly combine different types of moves by using a redefined Class structure and generators (See openforcefield).

@davidlmobley Could you link the generator example from the openforcefield github for reference when you have a chance to?

@sgill2 https://github.com/open-forcefield-group/openforcefield/blob/master/openforcefield/typing/engines/smirnoff/forcefield.py -- search for generators. Basically towards the end of the module it's all definitions of generators.

After thinking about the Model changes, this is the cleanest implementation I came up with, which would change the following:

Move all the different move types into their own class which inherits off of Model

The base Model class itself would not innately have a method which performs the desired move, but would have other methods that would be generally helpful to have (such as the getAtomIndices() and getMasses()). The move itself would be performed by a method with the same name across all children classes called move(). Currently MoveProposal handles the position changes associated with the move.

Allow multiple Models to be passed into MoveProposal
Currently MoveProposal takes in only one Model class at a time. To allow the user to mix and match different types of moves I'd like to change it so MoveProposal can take in a set of Model instances specified by a list or tuple. This set can follow the following conventions:
If the Model are in a tuple then the move is performed in the order listed. If the Model is in a list then one Model out of the ones in the list is randomly chosen to be performed.

For example, say we have A, B, and C Model objects. If (A,B,C) is passed into MoveProposal then during the NCMC simulation A.move() will be performed followed by B.move() then C.move().
However if [A,B,C] is passed in, then A OR B OR C move method will be performed.
It could also be possible to combine these two specifications, so if you passed – say, [A, (B,C)] – then during the move proposal step either A.move() OR B.move() AND C.move() would be performed.
Any thoughts/input on this @nathanmlim @davidlmobley ?

@sgill2 - I'm confused by this. Trying to talk to you IRL.

My pseudocode to illustrate how I imagine the result looking:
(let A = Model for ligand rotation)
(let B = Model for side chain rotation)
A = A(*args)
B = B(*args)
move_list = (A, B)
move_prop = MoveProposal(move_list, nstepsNC)
Simulation(move_prop, everything_else)
Simulation.run()

In the simulation.py script here we have the lines:
self.model, self.nc_context = self.mover.moves['method'](model=self.model, nc_context=self.nc_context)

In mover.moves is a dictionary that stores the list of methods to apply onto the model object. If you want to apply multiple move types on a single ligand you could loop over them like:
for m in mover.moves['method']:
    m(model,nc_context)

@sgill2 - the thing your approach does is weds us to one particularly handling of a move_list in MoveProposal, which is less than ideal, I think. What if I want to spend 80% of my time doing ligand rotational moves, 10% of my time doing smart darting moves, and 10% of it doing sidechain rotations? Seems like this would be fairly hard to code up in this framework.

You could always assign a probability attribute to each Model object that gets checked if you want to do different probability moves. Right now we don't have anything in place to handle that case anyway.

I think what I'm trying to say is that I like the relatively clean behavior of Nathan's existing code. Specifically, @sgill2 , if you wanted to mix multiple kinds of moves in Nathan's existing framework I think you could do it with something like:
for m in mover.moves['method']:
   self.model, self.nc_context = m(model, nc_context)

as Nathan wrote, which is super minimal. But if you wanted to be fancy about it, it would be easy to mix different probabilities:
rigid_rotations = [ m for m in mover.moves if m.name=='rigid_rotation']
sidechain_rotations = [ m for m in mover.moves if m.name=='sidechain_rotation']
r = rand()
if r < 0.2:
  for m in sidechain_rotations:
      self.model, self.nc_context = m(model, nc_context)
else:
  for m in rigid_rotations:
      self.model, self.nc_context = m(model, nc_context)

That just seems clean to me.
Unless there is a very strong argument for making the move be a function of the Model, @sgill2 , I'd really prefer to have it remain separate -- to me, conceptually, a move is something which modifies a model, as in self.model, self.nc_context = m(model, nc_context), but it is not a property/function of a model itself. So it should logically be separate unless there is a profound reason for connecting it.

Just to be clear let me start by reiterating the points I'm trying to make

I think that each type of move to be performed should have it's own separate model
I think that the move should be tied to the model

@davidlmobley I'm not seeing how it would be easier. If you were going to propose probabilities in that fashion you would have to change the base code every time you want to change your probabilities* since that code appears in Simulation. Also I still don't think that suggestion handles multiple regions very gracefully.

rigid_rotations = [ m for m in mover.moves if m.name=='rigid_rotation']
sidechain_rotations = [ m for m in mover.moves if m.name=='sidechain_rotation']
r = rand()
if r < 0.2:
for m in sidechain_rotations:
self.model, self.nc_context = m(model, nc_context)
else:
for m in rigid_rotations:
self.model, self.nc_context = m(model, nc_context)

Say you wanted to select one sidechain to be rotated with a probability of 0.8 and another with a probability of 0.2; how would you specify that since you'd be giving all sidechain_rotation moves the same probability? Separate models with their own probabilities assigned wouldn't have that problem.
Specifying a model for each type of move also has another benefit for developers. You pointed out that it would be possible to specify multiple ligands in rigid_rotation – if the user had foresight to do that. Generalizing code can take quite a bit of work, and allowing separate models for each move makes testing ideas easier.
Also by tying in the move to Model it's much easier for a user to implement their own moves. If a user wants to make their own move in the current framework, first they have to make their own Model class with the proper attributes. THEN they also have to modify MoveProposal so that it can actually perform the move.
It seems like an unnecessary hoop to go through making two custom classes – or changes to the master branch – for one desired modification. At the very least that was my experience while refactoring the smart darting move.  I think lowering barriers to usable code is a good thing.
I feel like I'm more adamant about allowing multiple models to be specified in the move proposal. It mostly just irks me I have to make changes in multiple places when I want to implement a move that requires a new model. That, and it makes more conceptual sense to me that one Model = one move.

I agree that my way wouldn't make it super easy to combine multiple moves with differing probabilities without modifying Simulation. I'm just pointing out that how you'd modify Simulation would be straightforward.
However, @sgill2 - I think you're thinking of the world we're in now, where we don't have many Model classes implemented so each new kind of move involves a new Model AND a new way to propose moves, whereas I'm thinking of the world we're going to be in soon where we want to implement new kinds of move proposals that use properties that are already held by Models we already have. For example, we're going to be doing sidechain rotational moves where we propose random sidechain rotations. But we'll also want to try generating the rotational moves in other ways -- for example, the move proposal engine can match the sidechain being moved to a rotamer library and use that to bias the angles proposed for the move. This would use the same Model and only the move proposal would be different.
More generally, I think we'll want to ultimately be exploring different ways of making the same general kind of move proposals which would use the same input Model but do something different with it. This seems to me to be a strong argument for having Model and move proposals be separate.

Also by tying in the move to Model it's much easier for a user to implement their own moves. If a user wants to make their own move in the current framework, first they have to make their own Model class with the proper attributes. THEN they also have to modify MoveProposal so that it can actually perform the move.

This is not "easier to implement" in terms of "substantially less code", I don't think, I think it's just "fewer places to modify the code".  Or am I missing something?

It seems like an unnecessary hoop to go through making two custom classes – or changes to the master branch – for one desired modification. At the very least that was my experience while refactoring the smart darting move. I think lowering barriers to usable code is a good thing.

Yes, but I'm fairly convinced that keeping these things separate is going to help extensibility -- as argued above, think of the case where we already have a Model which contains the info you need so you only have to implement the requisite move, which is easier than writing a new Model AND move. And if each new type of move needs a new type of Model even if the Model is the same, we're going to accumulate a lot of code duplication, I think.
Finally, I still think these are logically separate things so they should be constructed that way. A move is something which changes the system. A Model has properties of the system.
I'm still open to counterarguments, and we should keep going until we're convinced one way or the other. :) This is an important decision for the long-term future of the code.

Closed via #76

authors: davidlmobley nathanmlim sgill2

repo: MobleyLab/blues


text:
Create code-analysis.yml

Describe your changes
Issue ticket number and link
Checklist before requesting a review

[ ] I have performed a self-review of my code
[ ] If it is a core feature, I have added thorough tests.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 6.15%. Comparing base (14e138a) to head (d290102).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@          Coverage Diff          @@
##            main     #35   +/-   ##
=====================================
  Coverage   6.15%   6.15%
=====================================
  Files         13      13
  Lines         65      65
  Branches       1       1
=====================================
  Hits           4       4
  Misses        61      61

Flag
Coverage Δ

backend
0.00% <ø> (ø)

frontend
8.16% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

authors: MocStepan codecov-commenter

repo: MocStepan/STIN-semestral-project


text:
add support for tengine uint8

Add support for tengine uint8 backend, mainly refers to:

https://github.com/OAID/Tengine/blob/45863aa6d928f5967bf05811cada6a166a20ca91/tools/convert_tool/utils/graph_optimizer/graph_opt.cpp#L931
https://github.com/OAID/Tengine/blob/45863aa6d928f5967bf05811cada6a166a20ca91/tools/quantize/quant_save_graph.cpp#L38
https://github.com/OAID/Tengine/blob/45863aa6d928f5967bf05811cada6a166a20ca91/tools/quantize/quant_tool_uint8.cpp#L89

We hightly recommend to add few test cases for this backend !

sure, it's necessary to add test cases, but what kind of test cases do we need? Will a table of metrics about imagenet's accuracy with a model before and after quantization be a helper?

We hightly recommend to add few test cases for this backend !

sure, it's necessary to add test cases, but what kind of test cases do we need? Will a table of metrics about imagenet's accuracy with a model before and after quantization be a helper?

Something like https://github.com/ModelTC/MQBench/blob/main/test/backend/test_backend.py will be enough for now.
Any table of metrics on datasets can be very convincing if that is possible !

There is MobileNetV2's accuracy on the ImageNet-1k classification task. Since full training of ImageNet is time-consuming, I just finetune the model for several steps, and this is why the top1 accuracy is lower than expected.

model
top1@QAT_tengine_u8
top1@tengine_u8_x86

mobilenet_v2
55.06
54.862

Thanks for the awesome PR and looking forward to your continuous contribution! @un-knight

authors: Tracin XHPlus un-knight

repo: ModelTC/MQBench


text:
I love the UI design and Color style, is there a name for it ?

Thanks for your working and sharing this app. I`m very love this UI / Color design style, i feel it a little similar like https://alpinejs.dev/ frontpage.
Does this design style has a name ?

@Mohamed-code-13 thanks for your patient reply  : )


text:
How to customize display value?

I want to create decimal value in display value.
May I know how to change the display value?

currently Integer values only are supported ,unfortunately decimal values are not supported

Hello Team,
I want  to set the min and Max value in range bar  but the that values comes from Api so it should be like min value =250 max value 550
When min value grater than 50 it will not showing the exact starting point means it not showing starting thumb .

@vijayEnact  you have to set also currentValue such that (min <= currentValue <= max)

repo: MohammedAlaaMorsi/RangeSeekBar


text:
HDF5Data creation

Hi @MohsenFayyaz89 @hajizadeh ,
I am new to LSTMS and have trouble understanding how to create  HDF5Data from a video containing frames.Could you please point to any training code or repo that uses the similar way to create data/train.txt for camvid? I am unable to understand how the "clip" must be added as well. Since T=3,should the clip be 011011011.... and so on?

@hondaathma did you solve the problem? how is the "clip" added?


text:
🛑 SAMAI is down

In 2fd6207, SAMAI (https://relatoria.consejodeestado.gov.co:8080/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SAMAI is back up in a5d55d2 after 12 minutes.


text:
🛑 SAMAIRJ is down

In e117cd7, SAMAIRJ (https://samairj.consejodeestado.gov.co/) was down:

HTTP code: 503
Response time: 445 ms

Resolved: SAMAIRJ is back up in d2614d8.


text:
Donations

Rundown

Two new pages: /donations & /thank-you
Donation button links to external website
Still looking into API integration

As no-one was around, and it needed to be done, I am merging my branch myself.

license: ISC


text:
add elements in monster details page

Add the current elements of a monster in the details page

I can crack this one, should I assign this to myself?

don't forget to close the issue (:

nice @lucca65 🌮

repo: MonsterEOS/monstereos


text:
object not showing up

Ok so after restarting this project twice I have a handle on it finally. BUT, in true final project fashion, there is an error that I cannot seem to find for the life of me. I am doing a remake of the classic Snake game and for some reason my snake object and my food object will not show up. I have posted both codes below so if anyone could take a look through them and let me know if they find anything funky that would be super helpful!
https://github.com/erinflint/120-Work/blob/master/FINAL%20PROJECT%20CC/empty-example/snake.js
https://github.com/erinflint/120-Work/blob/master/FINAL%20PROJECT%20CC/empty-example/snakeobject.js

Hey @erinflint, neither of those links worked. They both brought me to an empty page

Welp then I guess that’s my first problem! I’ll get some working ones here
soon.
Le ven. 7 déc. 2018 à 11:52 AM, wattse13 notifications@github.com a
écrit :

Hey @erinflint https://github.com/erinflint, neither of those links
worked. They both brought me to an empty page
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Montana-Media-Arts/120_CreativeCoding/issues/202#issuecomment-445329380,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AoxytVu_bJVIBVhmDSZLMMYwN818Prrbks5u2rj2gaJpZM4ZHyqt
.

Ok so my link isn't working at all now, so here's my code. (two separate codes fyi)
CODE 1:
function snake() {
this.x = 0;
this.y = 0;
this.xspeed = 1;
this.yspeed = 0;
this.total = 0;
this.tail = [];
this.eat = function(pos) {
var d = dist(this.x, this.y, pos.x, pos.y);
if (d < 1) {
this.total++;
return true;
} else {
return false;
}
}
this.dir = function(x, y) {
this.xspeed = x;
this.yspeed = y;
}
this.die = function() {
for (var i = 0; i < this.tail.length; i++) {
var pos = this.tail[i];
var d = dist(this.x, this.y, pos.x, pos.y);
if (d < 1) {
console.log('starting over');
this.total = 0;
this.tail = [];
}
}
}
this.update = function() {
for (var i = 0; i < this.tail.length - 1; i++) {
this.tail[i] = this.tail[i + 1];
}
if (this.total >= 1) {
this.tail[this.total - 1] = createVector(this.x, this.y);
}
this.x = this.x + this.xspeed * scl;
this.y = this.y + this.yspeed * scl;

this.x = constrain(this.x, 0, width - scl);
this.y = constrain(this.y, 0, height - scl);

}
this.show = function() {
fill('green');
for (var i = 0; i < this.tail.length; i++) {
rect(this.tail[i].x, this.tail[i].y, scl, scl);
}
rect(this.x, this.y, scl, scl);
}
}
CODE 2:
function snake() {
this.x = 0;
this.y = 0;
this.xspeed = 1;
this.yspeed = 0;
this.total = 0;
this.tail = [];
this.eat = function(pos) {
var d = dist(this.x, this.y, pos.x, pos.y);
if (d < 1) {
this.total++;
return true;
} else {
return false;
}
}
this.dir = function(x, y) {
this.xspeed = x;
this.yspeed = y;
}
this.die = function() {
for (var i = 0; i < this.tail.length; i++) {
var pos = this.tail[i];
var d = dist(this.x, this.y, pos.x, pos.y);
if (d < 1) {
console.log('starting over');
this.total = 0;
this.tail = [];
}
}
}
this.update = function() {
for (var i = 0; i < this.tail.length - 1; i++) {
this.tail[i] = this.tail[i + 1];
}
if (this.total >= 1) {
this.tail[this.total - 1] = createVector(this.x, this.y);
}
this.x = this.x + this.xspeed * scl;
this.y = this.y + this.yspeed * scl;

this.x = constrain(this.x, 0, width - scl);
this.y = constrain(this.y, 0, height - scl);

}
this.show = function() {
fill('green');
for (var i = 0; i < this.tail.length; i++) {
rect(this.tail[i].x, this.tail[i].y, scl, scl);
}
rect(this.x, this.y, scl, scl);
}
}

Hmmm, the first thing that I notice is your use of this. notation inside of functions that you are defining. There is a good chance that this is a legitimate way to code, but I have only ever used this. notation when creating classes.
When I looked through your repo, on line 8 of your snake.js file I saw the line:
snake = new Snake();
If I understand the lessons correctly then this line is trying to create a new object based on a Snake class. However, neither of the above codes have any classes in them. Instead, they have functions. So, instead of writing:
function snake() {}
it might be better to write:
class Snake {      constructor( x, y ) {           this.x  = x;           this.y = y;           etc.       } }
Line 8 would then also need two arguments: snake = new Snake( example argument, example argument)
Does that help at all? Again, your use of this. notation inside of custom functions may just be a style of coding that I am unfamiliar with.


text:
Controller 'trNgGrid', required by directive 'trNgGridPager', can't be found!

I am using ui-router. I have a trNgTable at #/app/users and it works great. On that same view I have a button that says new user which routes me to #/app/users/new. At this point, I get a bunch of exceptions in the console: https://docs.angularjs.org/error/$compile/ctreq?p0=trNgGrid&p1=trNgGridPager

Here is where my views are loaded:

Edit

					Edit

Maybe I need to put the table outside of the ui-view

One note before closing this one. Due to incompatibilities with Angular 1.3.15, I had to raise the minimum requirement for Angular to 1.3.1. :disappointed:

authors: MoonStorm rondog

repo: MoonStorm/trNgGrid


text:
Add discussion of PYTHONUNBUFFERED=TRUE in .env files

When looking at the docker-compose logs, we were seeing bursts of log activity.  This was caused because Python was buffering output - from Docker's perspective, there were no logs, and then a large number of lines would arrive in a fraction of a second.
By setting the PYTHONUNBUFFERED environment variable, Python will stop using buffered output, and instead generate output immediately.  This causes the lines to arrive at Docker as soon as they are generated, which makes our logs accurately reflect what is happening in the containers.

Would this need to be a variable in each of our python files that are using logging?

Yes, we should put this in all the client files as well as the work server and work generator.  (I did so in production).

authors: bjcoleman justinszaro

repo: MoravianUniversity/mirrulations


text:
关于翻译按钮

当使用音乐标签编辑歌词时，若选择下载翻译格式为
“[00:05.12]原词 1
[00:07.05]翻译词 1
[00:07.06]原词 2”模式时，歌词翻译切换按钮不显示。而若选择
“[00:05.12]原词
[00:05.12]翻译词”模式时，由于musicolet等部分软件只会显示一种歌词（由于时间线冲突），故第一种模式对我来说是必须的。（两款软件都很好用，我都在用，不存在替代关系）
不知道这个问题可否解决，技术上是否可以实现（不很懂代码），如果不行就算了，这是个小问题，无伤大雅。最后感谢开发者做出如此优秀的软件。祝好运！

我观察到椒盐的在线歌词做的很好，那么建议有一个歌词来源的切换选项本地lrc/internet/embedded三者切换也不错，如果这是个愚蠢的想法或者已经有了请忽略（我貌似没有找到）🤝🤝

翻译歌词问题属于其他软件的适配问题，因为时间戳不同椒盐音乐是无法分辨哪句是翻译而哪句是原歌词，如有中英混着的歌等等其他情况。

椒盐音乐歌词优先获取内嵌，若无法获取内嵌则获取 lrc，最后尝试获取网络歌词。

authors: Moriafly whghjyh

repo: Moriafly/SaltPlayerSource


text:
Schéma Logique du projet: Structuration Fonctionnelle et Technique

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

En tant que Manager du Projet, on devra établir le schéma logique du projet et définir l'ensemble des articulation ainsi que toutes taches afin de les présenter à l'équipe projet pour affectation et optimisation des délais de traitements afin d'évaluer le temps restant pour la lise en production.

repo: MoroccanTea/PhishMeNot


text:
Update Code - Proof_Of_ContributionSnapshot3.md

Description of Change

add me and a fellow dev's contrib to the snapshot
Related MRI
Every change must fall under an MRI. See Reference Implementations for more details.

[ ] MRI Number 1. Smart Contracts on Ethereum / Arbitrum
[ ] MRI Number 2. Smart Agents Tools & Examples
[ ] MRI Number 3. Morpheus Local Install Desktop / Mobile
[ ] MRI Number 4. TCM / MOR20 Token Standard for Fair Launches
[ ] MRI Number 5. Protection Fund
[ ] MRI Number 6. Capital Proofs Extended beyond Lido stETH
[ ] MRI Number 7. Compute Proofs Morpheus / Lumerin
[x] MRI Number 8. Code Proofs & Dashboards
[ ] MRI Number 9. Frontend Proofs & Examples
[ ] MRI Number 10. Interoperability
8

Justification

Additional Notes

Thanks.

authors: DavidAJohnston Nitradoo

repo: MorpheusAIs/Docs


text:
Merge 0.5.6 into main

Merge 0.5.6 into main for release.

We'll close this one so we can incorporate a last bug fix.

repo: Morpho-lang/morpho


text:
Es 105 print text

Added option to print characters as they are encoded. Used the option in sample.py.

In pykob/morse.py:
        if (printChar):
            print(c, end="")
            sys.stdout.flush()

Python 3 provides an option on the print statement to flush the output.
        if (printChar):
            print(c, end="", flush=True)

Is there a reason not to use that form here?
And, a 'metacomment', can someone show me how to comment on a particular code snippet in a pull request? It looks so cool when you guys (@pwdirks and @AESilky) do it.

Thanks for reminding me of that. I had forgotten. I can change it when I'm
back in the code.
Sent from my phone.
On Sun, Jul 12, 2020, 3:05 PM Les Kerr notifications@github.com wrote:

In pykob/morse.py:
    if (printChar):
        print(c, end="")
        sys.stdout.flush()

Python 3 provides an option on the print statement to flush the output.
    if (printChar):
        print(c, end="", flush=True)

Is there a reason not to use that form here?
And, a 'metacomment', can someone show me how to comment on a particular
code snippet in a pull request? It looks so cool when you guys (@pwdirks
https://github.com/pwdirks and @AESilky https://github.com/AESilky)
do it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MorseKOB/PyKOB/pull/106#issuecomment-657282224, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AETPXO5V4VHWOMXBEZLZI5LR3IXUBANCNFSM4OXWU7XQ
.

authors: AESilky leskerr

repo: MorseKOB/PyKOB


text:
不需要加softmax么？

https://github.com/MorvanZhou/PyTorch-Tutorial/blob/51c6c660c7658c13c2db9107a1cc54dadf240bd4/tutorial-contents/402_RNN_classifier.py#L74

在pytorch的定义中，是使用logits而不是softmax后的结果。你可以参考一下文档。https://pytorch.org/docs/stable/nn.html#crossentropyloss
loss_func = nn.CrossEntropyLoss()                       # the target label is not one-hotted

repo: MorvanZhou/PyTorch-Tutorial


text:
local install gives approximate border

When processing an image locally, using either the command line or the GUI, gives a rough cell border (as if the cells had been downsampled to 1/4th their size and the borders linearly rescaled).  See image 1.  Running this identical image in the online gui at cellpose.org gives the expected smooth border.   I observe this behavior for a range of cropped or resized versions of the original image, from 256x256 to 2048x2048 -- the locally installed version always produces a border that is coarser than the pixel resolution of the image, even though the cellpose.org does not.
Smooth border:

Rough border:

please try turning on resampling: https://cellpose.readthedocs.io/en/latest/settings.html#resample . going to close this issue for now but let us know if this doesn't help

awesome, yes this fixes it, thanks for the fix and quick reply!
It may help to add the syntax (and existence) of the "resample" option in
the command line docs, where you helpfully describe many other such flags:
https://cellpose.readthedocs.io/en/latest/command.html  It is helpful that
the syntax is at least intuitive --resample.
On Sat, Nov 13, 2021 at 2:24 PM carsen-stringer @.***>
wrote:

please try turning on resampling:
https://cellpose.readthedocs.io/en/latest/settings.html#resample . going
to close this issue for now but let us know if this doesn't help
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MouseLand/cellpose/issues/369#issuecomment-968156948,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE6FSHQLAB6W4FJZ7B2MN2LUL3QTPANCNFSM5H57LENQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Alistair Boettiger
Assistant Professor of Developmental Biology
Member, Program in Biophysics
Stanford University, School of Medicine
boettigerlab.stanford.edu

authors: BoettigerLab carsen-stringer

repo: MouseLand/cellpose


text:
Convert the Renderer's Nodelist into a fully fledged DAG

WARNING: this issue is a work in progress, to lay down some foundations for discussion.
Introduction
After much work over the past two-three years, and in particular during GSOC 2016 and GSOC 2017 (thanks to @tdgunes and @vampcat!) the renderer has morphed from a couple of large, fragile, hard to understand, main classes into a single list of independent nodes. Each node can be thought of a relatively atomic step in the rendering process: some nodes render 3d objects, some nodes render layers to be added on top of the existing rendering (i.e. light shafts) and some nodes post-process the output of the previous nodes, i.e. tone-mapping.
The nodes are currently processed in order as they are stored in a simple list. This does not reflect however the reality of the relationships between nodes. Multiple nodes can provide inputs to a later node, which in turn can be the input of multiple other nodes following. In short, the relationships implied in the source code of the nodes is best described by a Directed Acyclic Graph (DAG).
We must therefore convert the current node list into a node-DAG.
Priorities
1st stage
The first priority is to convert the Node List into a DAG. Initially the edges (connections) between the nodes will only imply a form of processing order dependency: Node A must be processed before Node B.
One possible architecture for this first-stage DAG is to have a Graph container class with methods such as:

Node Graph.findNode(URI nodeUID) - may return null, uid is guaranteed unique
Graph.addNode(nodeToBeAdded) - only adds the node to the graph, does not connect it yet
Graph.removeNode(nodeToBeRemoved) - only removes fully disconnected nodes
Graph.connect(firstNode, secondNode) - only connects if the nodes aren't connected already
Graph.disconnect(firstNode, secondNode) - only disconnects if the nodes are connected
boolean Node.isFullyFunctional() - not processed when generating the task list

And here is a series of handler methods the graph uses to communicate changes to a node. It is up to the node's developer to decide if and how to respond to such calls.

Node.hasBeenAddedTo(Graph graph)
Node.hasBeenRemovedFrom(Graph graph)
Node.hasBeenConnectedTo(Node node)
Node.hasBeenDisconnectedFrom(Node node)

It is up to the node implementation to decide if and how to react to such calls.
2nd stage
In a second stage of development we might add the concept of input plugs and output sockets, to diversify the meaning of connections between nodes.  For example, a node might have an output of type FboSocket and id "engine:sole output", which a second node can plug into to obtain the output FBO of the first node and use it as input. This allows the source code of the second node to be agnostic of the exact fbo to use, so that it can be freely disconnected and reconnected to a different node, as needed.
A use case is a CompositingNode. Simple CompositingNodes generally take two inputs, i.e. two textures, and combine them together, i.e. using transparency information. By connecting the two inputs plugs to  two compatible output sockets and by making available an output socket of type "fbo", multiple CompositingNode instances can be used in different positions in the graph, to combine the output of various nodes.
Possible methods:

InputPlug Node.getPlug(InputPlugType type, URI inputId)
OutputSocket Node.getSocket(OutputSocketType type, URI outputId)

Note: the IDs are guaranteed to be unique within the list of inputs/output of the same type, within a node. So, different nodes can use the same IDs, and within a node the same IDs can be used as long as inputs and outputs are of different type. For example a node can have two InputPlugs with id "input", but only if they are of different type, i.e. one for a camera and one for an fbo.

Graph.connect(outputSocket, inputPlug)
Graph.disconnect(outputSocket, inputPlug)
 InputPlug.getContent()
 OutputSocket.getContent()

Handler methods called by the Graph class:

Node.connectionEstablished(outputSocket, inputPlug)
Node.connectionRescinded(outputSocket, inputPlug)
InputPlug.connectedTo(outputSocket)
OutputSocket.connectedTo(inputPlug)

Note: most of the suggested methods so far have no return value: in case of errors, i.e. a node can't be removed, the method should generate a documented exception.
Conclusion
This is a first draft architecture and is not necessarily the only or best way to do this. As feedback is provided we might change and refine parts of what written here.

This has been achieved in #3088

repo: MovingBlocks/Terasology


text:
Demo should not be built by Carthage

Moya: 8.0.0
>> carthage update --platform iOS

A shell task ({PROJECT_DIR}/Carthage/Checkouts/Moya/Demo/Demo.xcworkspace -scheme MoyaTests-Mac -configuration Release CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean -showBuildSettings) failed with exit code 66:
xcodebuild: error: Scheme MoyaTests-Mac is not currently configured for the clean action.

Carthage tries to build MoyaTests-Mac even if I add '--platform iOS'.
I think Demo should be built by Carthage.

Maybe some schemes are shared when they shouldn't be.

It seems 8.0.1 fixed the problem. No more error occurs.

Glad to hear. Thanks!

authors: Tynox petester42 scottrhoyt

repo: Moya/Moya


text:
Breaks a ROCm venv

Beware, installing this will break a ROCm pytorch environment. After you install this you'll need to reinstall the ROCm torch:
pip uninstall torch torchvision && pip install torch torchvision --index-url https://download.pytorch.org/whl/rocm5.7
Once you do this, the node will fail to load, but at least you can still use ComfyUI, and hopefully MrForExample can fix the node.

They will never understand not to play with people's environments. At least this one only has torch and xformers. I've seen others enforcing xformers in their code with 'xformers=true' and the only way to turn it off is to find the 3 lines of code in 500 files that use it and turn it off.
"The current goal of this project is to achieve desired pose2video result with 1+FPS on GPUs that are equal to or better than RTX 3080!"
Well the 7900XTX is better than RTX3080. Why break it? Torch and Xformers should be the job of the user and the UI to install. They should never be required by custom nodes as users already have them, otherwise they wouldn't be able to use Comfy in the first place.

Your requirements file has xformers. Which forces reinstall of nvidia torch and torchvision. Can you remove it from requirements.

authors: chiragkrishna ricperry wikidude


text:
Fixed brackets in gs_hash_table_iter_new.

Tried to iterate hash table and found this.

Thanks, good find!

Thanks, good find!

authors: Endeg MrFrenik

repo: MrFrenik/gunslinger


text:
Dry run for kerblam data clean

As per the title, it would be nice to have a dry run for  'kerblam data clean'.

Good idea, but it could be implemented in many ways. Should a shallow list of paths be printed out? Should it show something like tree with, marked, the files to be deleted? If there are many files, should it just show those that are not to be deleted?
As a temporary workaround, you can enable the debug log, where a list of files is shown. Then just say no when Kerblam! asks you to delete the files:
RUST_LOG=debug kerblam data clean

You get something like this:

Long code alert
RUST_LOG=debug kerblam data clean
[2024-10-29T08:07:21Z DEBUG kerblam] Kerblam! invoked in "/tmp/test"
[2024-10-29T08:07:21Z DEBUG kerblam] Args: Cli { command: Data { subcommand: Some(Clean { include_remote: false, keep_dirs: false, yes: false }) } }
[2024-10-29T08:07:21Z DEBUG kerblam] Kerblam is starting in "/tmp/test"
[2024-10-29T08:07:21Z DEBUG kerblam::options] Reading "/tmp/test/kerblam.toml" for TOML options...
[2024-10-29T08:07:21Z DEBUG kerblam::options] Extracting "/tmp/test/data" with filters ["/tmp/test/data/in", "/tmp/test/data/out"]
[2024-10-29T08:07:21Z DEBUG kerblam::options] Extracting "/tmp/test/data/out" with filters ["/tmp/test/data/in"]
[2024-10-29T08:07:21Z DEBUG kerblam::options] Extracting "/tmp/test/data/in" with filters ["/tmp/test/data/out"]
[2024-10-29T08:07:21Z DEBUG kerblam::options] Remote file save dir is "/tmp/test/data/in"
[2024-10-29T08:07:21Z DEBUG kerblam::options] Remote file save dir is "/tmp/test/data/in"
[2024-10-29T08:07:21Z DEBUG kerblam::commands::data] test: "/tmp/test/data/test"
[2024-10-29T08:07:21Z DEBUG kerblam::commands::data] test: "/tmp/test/data/test2"
[2024-10-29T08:07:21Z DEBUG kerblam::commands::data] test: "/tmp/test/data/out/outtest2"
[2024-10-29T08:07:21Z DEBUG kerblam::commands::data] test: "/tmp/test/data/out/outtest"
[2024-10-29T08:07:21Z DEBUG kerblam::commands::data] Files to clean: ["/tmp/test/data/test", "/tmp/test/data/test2", "/tmp/test/data/out/outtest2", "/tmp/test/data/out/outtest"]
🧹 About to delete 4 files (0 B). Continue? [yes/no]: no
Error: Aborted!

The last lines are what you need, specifically:
[2024-10-29T08:07:21Z DEBUG kerblam::commands::data] Files to clean: ["/tmp/test/data/test", "/tmp/test/data/test2", "/tmp/test/data/out/outtest2", "/tmp/test/data/out/outtest"]

@all-contributors please add @Feat-FeAR for bugs and design

As a temporary workaround, you can enable the debug log, where a list of files is shown. Then just say no when Kerblam! asks you to delete the files:
RUST_LOG=debug kerblam data clean

Very nice debug feature from Rust!

Good idea, but it could be implemented in many ways. Should a shallow list of paths be printed out? Should it show something like tree with, marked, the files to be deleted? If there are many files, should it just show those that are not to be deleted?

I would settle for the simplest solution (to begin with), which is the shallow list of files that will be deleted, exactly as provided by Rust's debug log... then if we see that it is not the best thing you can always add another option in the future
:-)

@MrHedmad
I've put up a pull request to add @Feat-FeAR! 🎉

thank you!

Fixed in 308ae8da, scheduled to ship in the next release.

authors: Feat-FeAR MrHedmad

repo: MrHedmad/kerblam


text:
docs.google.com listed at API

Hi,
https://etherscamdb.info/api/blacklist/ lists docs.google.com - would adding docs.google.com to the _data/legit_urls.yaml allow the API to skip? If so I can submit a PR?
Thanks,
Paul

Thanks for the report.
We should get a fix in place to check the whitelist beforehand (so a PR would work in the future) soon - currently at ETHBerlin so in the coming days

repo: MrLuit/EtherScamDB


text:
压缩打包优化

零散的实践方案，后续整理成文：
使用 webpack 插件找出占用空间较大的包
开发环境中可使用 analyze-webpack-plugin 观察各模块的占用情况。以该项目为例：浏览器中输入 http://localhost:3000/analyze.html 可以看到如下效果:

按需加载

对模块结合 babel 进行按需加载;
测试 day.js 替代 moment.js. 实际上 moment.js 也使用按需加载 了(实验减少了 40KB+)，所以最终结果相差不大;

code-spliting
使用 MiniCssExtractPlugin 插件分离 js 和 css 文件:
  823.94 KB           build / static / js / main.496a38b7.js
  8.2 KB              build / static / css / main.css

code-spliting 官方给出三种方案，分别如下：

在 entry 处增加打包入口;
使用插件 SplitChunkPlugin
使用动态引入语法 import()(观望)

第一种方案的缺点如下：

如果多个文件引人了相同的包(比如 lodash)，引用的包会被分别打包两次;
这种方案不够灵活，无法根据逻辑动态分割代码;

待实践：You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
实践第二种方案：
  optimization: {
    runtimeChunk: false,
    splitChunks: {
      cacheGroups: {
        vendor: {
          chunks: 'all',
          test: /[\\/]node_modules[\\/]/,
          name: 'vendor',
          maxAsyncRequests: 5,
          priority: 10,
          enforce: true,
        },
      },
    },
  },

此时效果如下:
  723.96 KB  build/static/js/vendor.a9289a29.chunk.js // node-modules 模块
  98.72 KB   build/static/js/main.7bcaca24.js
  8.2 KB     build/static/css/1.css

此时将 node-modules 里的包打包成了一个大块头，这样对加载是不友好的。解决方案为：将核心的框架单独打包出来，剩余模块按需引人，使用 bundle-loader)。实现思路(个人想法)：即当需要引用包时(比如 echart)，动态将 echat 的 js 逻辑载入页面，待载入完成再执行渲染逻辑。(后面可以进一步探索)
  optimization: {
    runtimeChunk: false,
    splitChunks: {
      cacheGroups: {
        vendor1: {
          chunks: 'all',
          test: /[\\/]node_modules[\\/](react|react-dom|antd)[\\/]/, // 主要模块
          name: 'vendor1',
          maxAsyncRequests: 5,
          priority: 10,
          enforce: true,
        },
        vendor2: {
          chunks: 'all',
          test: /[\\/]node_modules[\\/]/,  // 次要模块
          name: 'vendor2',
          maxAsyncRequests: 5,
          priority: 9,
          enforce: true,
          reuseExistingChunk: true,
        },
      },
    },
  }

此时打包效果如下：
  588.06 KB  build/static/js/vendor2.d63694f4.chunk.js
  133.17 KB  build/static/js/vendor1.0d40234c.chunk.js
  98.72 KB   build/static/js/main.b7a98d03.js
  8.2 KB     build/static/css/2.css

可以看到此时 node_modules 包已经被拆分成了核心模块和非核心模块。
按照路由分割代码
先安利 react-loadable 这个包，使用它之后可以根据路由进行代码的分割，异步加载所需要的组件，从而可以极大的提高页面加载速率。
在路由界面进行如下配置：
const Loading = () =>
Loading...

const Home = Loadable({
  loader: () => import('../pages/home'),
  loading: Loading,
})

// 类似这样使用路由
<Router>
  <Route path="/home" component={Home} />
  <Route path="/follow" component={Follow} />
  <Route path="/tools" component={Tools} />
  <Route path="/music" component={Music} />
  <Route path="/todo" component={Todo} />
  <Route path="/album" component={Album} />
  <Route path="/editor" component={Editor} />
  <Route path="/todoList" component={TodoList} />
  <Route path="/searchEngine" component={Search} />
  <Route path="/waterfall" component={Waterfall} /
</Router>

我们来看代码分割后的结果：
  587.48 KB  build/static/js/vendor2.00c4c07b.chunk.js
  133.82 KB  build/static/js/vendor1.77d8422d.chunk.js
  63.05 KB   build/static/js/main.ae85751b.js
  10.66 KB   build/static/js/11.0956f377.chunk.js
  8.33 KB    build/static/js/3.f869d16b.chunk.js
  8.2 KB     build/static/css/0.css
  6.98 KB    build/static/js/6.8bf99e63.chunk.js
  3.55 KB    build/static/js/5.acce3c8f.chunk.js
  3.52 KB    build/static/js/12.6b284742.chunk.js
  2.99 KB    build/static/js/8.5565d589.chunk.js
  2.31 KB    build/static/js/10.bc71e81c.chunk.js
  2.02 KB    build/static/js/9.a4a3296a.chunk.js
  1.4 KB     build/static/js/4.78e3ff05.chunk.js
  1.13 KB    build/static/js/7.dc83be07.chunk.js

有多少个路由，react-loadable 库就自动帮我们多拆分了多少个包文件。可以想象在越大的项目中，这种动态引人库的好处越明显。
那么我们接下来来探究下 react-loadable 的神秘之力是如何实现的。
参考文献
code-splitting

react-loadable 源码解读
项目中的调用当作入口，暂时只分析 loader 和 loading 的逻辑：
const Home = Loadable({
  loader: () => import('../pages/home'),
  loading: () =>
Loading...
,
})

开始分析源码，入口 Loadable 函数
function Loadable(opts) {
  return createLoadableComponent(load, opts);
}

function createLoadableComponent(loadFn, options) {
  let opts = Object.assign(
    {
      loader: null,
      loading: null,
      delay: 200,
      timeout: null,
      render: render,
      webpack: null,
      modules: null
    },
    options
  );

  let res = null;

  function init() {
    if (!res) {
      res = loadFn(opts.loader);
    }
    return res.promise;
  }

  ALL_INITIALIZERS.push(init);

  return class LoadableComponent extends React.Component {
    constructor(props) {
      super(props);
      init();

      this.state = {
        error: res.error,
        pastDelay: false,
        timedOut: false,
        loading: res.loading,
        loaded: res.loaded
      };
    }

    static contextTypes = {
      loadable: PropTypes.shape({
        report: PropTypes.func.isRequired
      })
    };

    componentWillMount() {
      this._mounted = true;
      this._loadModule();
    }

    _loadModule() {
      if (this.context.loadable && Array.isArray(opts.modules)) {
        opts.modules.forEach(moduleName => {
          this.context.loadable.report(moduleName);
        });
      }

      if (!res.loading) {
        return;
      }

      let update = () => {
        if (!this._mounted) {
          return;
        }

        this.setState({
          error: res.error,
          loaded: res.loaded,
          loading: res.loading
        });

        this._clearTimeouts();
      };

      res.promise
        .then(() => {
          update();
        })
        .catch(err => {
          update();
        });
    }

    componentWillUnmount() {
      this._mounted = false;
      this._clearTimeouts();
    }

    _clearTimeouts() {
      clearTimeout(this._delay);
      clearTimeout(this._timeout);
    }

    retry = () => {
      this.setState({ error: null, loading: true, timedOut: false });
      res = loadFn(opts.loader);
      this._loadModule();
    };

    render() {
      if (this.state.loading || this.state.error) {
        return React.createElement(opts.loading, {
          isLoading: this.state.loading,
          pastDelay: this.state.pastDelay,
          timedOut: this.state.timedOut,
          error: this.state.error,
          retry: this.retry
        });
      } else if (this.state.loaded) {
        return opts.render(this.state.loaded, this.props);
      } else {
        return null;
      }
    }
  };
}

repo: MuYunyun/reactSPA