Linking problems, Realm framework as casualty

Hi guys!
Considering the title of the issue, I know it sounds like I came to the wrong neighbourhood :)
I still assume that there is a change I'm wrong, but first, please help me to get to the core of the problem.
After I will describe it (the problem), I will link some topics and some conclusions I made while researching the problem by myself, so you guys won't waste too much of your time on it.
***All XXX are the sanitized names
The problem:
When I run
xctool test CODE_SIGN_ENTITLEMENTS="" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -sdk iphonesimulator

The result is:
Failures:

0) XXXTestsBundle (XXXTestsBundle.xctest)

Failed to query the list of test cases in the test bundle: 2015-12-22 14:21:59.795 XXX[54960:13978384] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
2015-12-22 14:22:00.207 XXX[54960:13977331] *** error reading settings archive file: <ISRootSettings: /Users/XXX/Library/Developer/CoreSimulator/Devices/8A16CA98-1A1A-468A-BEC5-0DF0A27D7EEF/data/Documents/XXX.settings/ISRootSettings_10.plist>
2015-12-22 14:22:00.277 XXX[54960:13977331] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2015-12-22 14:22:00.277 XXX[54960:13977331] CLTilesManagerClient: init
2015-12-22 14:22:00.278 XXX[54960:13977331] CLTilesManagerClient: reconnecting, 0x7b16a780
2015-12-22 14:22:00.278 XXX[54960:13978370] CLTilesManagerClient: XPC_ERROR_CONNECTION_INVALID!
2015-12-22 14:22:00.879 XXX[54960:13977331] *** Terminating app due to uncaught exception 'RLMException', reason: 'Object type 'XXX' not persisted in Realm'
*** First throw call stack:
(
	0   CoreFoundation                      0x053aba14 __exceptionPreprocess + 180
	1   libobjc.A.dylib                     0x05715e02 objc_exception_throw + 50
	2   XXX                              0x006e76dd -[RLMSchema objectForKeyedSubscript:] + 157
	3   XXX                              0x005e7b2d +[RLMObjectBase sharedSchema] + 141
	4   XXX                              0x005e52c3 -[RLMObjectBase init] + 227
	5   XXX                              0x005e2dd4 -[RLMObject init] + 68
	6   XXX                              0x001067d4 -[XXX XXX:] + 100
	7   XXX                              0x0015bce1 -[XXX XXX:] + 897
	8   XXX                              0x0015b5ab -[XXX XXX:] + 267
	9   XXXTestsBundle                   0x1422f423 __52-[XXX XXX]_block_invoke + 163
	10  XXXTestsBundle                   0x142cfea0 describe + 192
	11  XXXTestsBundle                   0x1422f349 -[XXX XXX] + 153
	12  XXXTestsBundle                   0x142d06ac -[CDRSpec defineBehaviors] + 60
	13  XXXTestsBundle                   0x142c3989 CDRSpecsFromSpecClasses + 473
	14  XXXTestsBundle                   0x142d28f7 -[CDRSpecRun initWithExampleReporters:] + 167
	15  XXXTestsBundle                   0x142da74c CDRCreateXCTestSuite + 268
	16  XXXTestsBundle                   0x142daa52 __CDRInjectIntoXCTestRunner_block_invoke + 66
	17  otest-query-lib-ios.dylib           0x01344910 TestSuite_allTests + 102
	18  libobjc.A.dylib                     0x05729f1d +[NSObject performSelector:] + 62
	19  otest-query-lib-ios.dylib           0x01345ee4 +[OtestQuery queryTestBundlePath:] + 800
	20  otest-query-lib-ios.dylib           0x013456bc EntryPoint + 281
	21  ???                                 0x012f920f 0x0 + 19894799
	22  ???                                 0x012f9368 0x0 + 19895144
	23  ???                                 0x012f4a01 0x0 + 19876353
	24  ???                                 0x012f3d54 0x0 + 19873108
	25  ???                                 0x012f3de3 0x0 + 19873251
	26  ???                                 0x012e9c27 0x0 + 19831847
	27  ???                                 0x012ed2c7 0x0 + 19845831
	28  ???                                 0x012e91f9 0x0 + 19829241
	29  ???                                 0x8feb4589 0x0 +<PHONE_NUMBER>
	30  ???                                 0x8feb2f57 0x0 +<PHONE_NUMBER>
	31  ???                                 0x8feaf231 0x0 +<PHONE_NUMBER>
	32  ???                                 0x8feaf047 0x0 +<PHONE_NUMBER>
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Child process terminated with signal 6: Abort trap

When I run:
xcodebuild \
   -workspace XXX.xcworkspace \
   -scheme XXX \
   -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.2' \
   clean test

then everything is fine:
Test Suite 'Cedar' passed at 2015-12-22 14:01:13.233.
	 Executed 198 tests, with 0 failures (0 unexpected) in 3.371 (3.464) seconds
** TEST SUCCEEDED **

Same is when I run cmd+U in Xcode.
Environment:
Xcode 7.2 (7C68)
xctool 0.2.7
Cedar 0.12.0
Realm 0.96.2
Objective-C only
cocoapods 0.39.0
Podfile:
This is my target responsible for tests:
target 'XXXTestsBundle', exclusive: true do
    pod 'Cedar'
    pod 'Realm/Headers'
end

But usually it looks simpler:
target 'XXXTestsBundle' do
    pod 'Cedar'
end

Realm:
https://github.com/realm/realm-cocoa/issues/2267
https://github.com/realm/realm-cocoa/issues/1916
https://github.com/realm/realm-cocoa/issues/1350
https://realm.io/docs/objc/0.97.0/#avoid-linking-realm-and-tested-code-in-test-targets
or
https://realm.io/docs/objc/0.96.2/#avoid-linking-realm-and-tested-code-in-test-targets
Other:
In the past I had some issues with this when I was misusing the Podfile target setup, and linking went wrong, that's the reason of the issue title.

So basically, the reason i write here and not on cocoapopds/Realm, is that everything works with native tools but using xctool it fails, so that's why I decided that here is the correct address :) And again, I know that I might be wrong about that.
If there any additional information needed, please let me know!
I would appreciate a lot any help on the topic.

Update:
I tried the same after upgrading to Realm 0.97.0, and it gives a different error:
Failures:

  0) XXXTestsBundle (XXXTestsBundle.xctest)
Failed to query the list of test cases in the test bundle: 2015-12-22 16:42:37.657 XXX[69667:14644196] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2015-12-22 16:42:37.657 XXX[69667:14644196] CLTilesManagerClient: init
2015-12-22 16:42:37.657 XXX[69667:14644196] CLTilesManagerClient: reconnecting, 0x7ac7c2f0
2015-12-22 16:42:37.658 XXX[69667:14645530] CLTilesManagerClient: XPC_ERROR_CONNECTION_INVALID!
2015-12-22 16:42:38.011 XXX[69667:14644196] *** error reading settings archive file: <ISRootSettings: /Users/oanghelov/Library/Developer/CoreSimulator/Devices/8A16CA98-1A1A-468A-BEC5-0DF0A27D7EEF/data/Documents/com.XXX.iosapp.settings/ISRootSettings_10.plist>
2015-12-22 16:42:38.675 XXX[69667:14646400] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
Child process terminated with signal 11: Segmentation fault

But everything works with xcodebuild command and cmd+U, and fails only with xctool

The problem is that you are doing some sort of preparation in your tests on load and not before the test run.
The difference between xctool and xcodebuild is because xctool first loads the test bundle and queries tests (in your case xctool fails here) and only then run tests. While xcodebuild just runs tests without querying them first.
You should move all your preparation code in setUp. Don't do anything on test bundle loading.

Thanks for quick answer!
Honestly, I'm not quite sure what you mean.
Are you talking about some preparations made by us, developers, or preparations made by the frameworks code?
Another small question: did you really mean the word "queries", and not "queues"?

Yes, I mean queries.
Those preparations are made by developers and users of the testing framework. For example, why -[RLMObject init] is called on bundle load (dlopen bundle.xctest in case of xctool)? It is wrong architecture of a test.

Since I have no idea about what is test querying (I would appreciate any helpful links on the topic), I excluded all tests, and started to add them one file for each try (read: run tests with xctool). Really lame way to debug, but this is the price that I pay by being lame :)
But, the resulsts were awesome. It was our mistake, one test file had some setup code outside any Cedar block. After I moved it to beforeEach, everything worked.
Hope this will help anyone who will ever encounter the same problem.
Thanks @ExtremeMan for the help :)

Thanks for letting us know. That was what I was trying to say =) I have little context about Cedar context so didn't know how to tell that correctly.


Feature request: make the repository Carthage-compatible

It would be great to make this repository Carthage-compatible.

It already compatible, I'm personally using the last version with carthage.

Yes, I confirm. Maybe the repository could display the Carthage compatible icon?


Update Checker Framework Dataflow dependency to the current 2.1.14.

mvn package passes all tests.

I signed it!

This fixes #696

Thanks! I need to coordinate with updating the internal dependency so I'm not going merge quite yet, but I'm on it.


search autocomplete and partial search not working

I don't get a partial matches or autocomplete in the search after selecting a county. Chrome on mac. Exact match works though.

We removed autocomplete #12


Re-assign copyright to Barnaby Walters (from mistaken G5)

http://indiewebcamp.com/irc/2016-01-17#t1453060609337

kylewm BOT [11:56 AM]
what is G5?
Loqi BOT [11:56 AM]
It looks like we don't have a page for "G5" yet. Would you like to create it? https://indiewebcamp.com/s/10Ba
kylewm BOT [11:57 AM]
asking because indieweb/php-mf2 is "Copyright (c) 2013 G5"
tantek BOT [11:57 AM]
also: https://support.twitter.com/articles/20170082?lang=en "Your Promoted Trend name length cannot exceed ~20 characters. Since not every character is the same width, your actual character limit will vary."
[11:58]
is that Barnaby's thingZ?
[11:58]
s/thingZ/thing
Loqi BOT [11:58 AM]
tantek meant to say: is that Barnaby's thing?
tantek BOT [12:00 PM]
also interesting: https://moz.com/blog/how-hashtags-work-on-twitter-instagram-google-plus-pinterest-facebook-tumblr-and-flickr
kylewm BOT [12:00 PM]
G5 is https://github.com/G5
Loqi BOT [12:00 PM]
[[G5]] !N https://indiewebcamp.com/wiki/index.php?oldid=24642&rcid=24608 * Loqi.me * (+54) prompted by kylewm https://indiewebcamp.com/irc/2016-01-17/line/1453060609337 and dfn added by kylewm
[12:00]
ok
kylewm BOT [12:00 PM]
which does not appear to be a barnaby thing
tantek BOT [12:01 PM]
ok that's odd
[12:02]
nor is there anything "mf2" in their repos
kylewm BOT [12:02 PM]
looks like it was copy/pasted from the Ruby parser
tantek BOT [12:02 PM]
kylewm: possible name collision?
kylewm BOT [12:02 PM]
which was under G5 until shaners moved it
tantek BOT [12:02 PM]
but it's php?
[12:02]
shaners, can you help with this?

Shane Becker [8:08 PM]
tantek kylewm aaronpk: wrt G5 listed as the copyright on php-mf2 (somehow), should I just go ahead and change that to public domain / CC0 like the other things?
aaronpk [8:12 PM]
I could have sworn it had a different license. Can you check the history?
Shane Becker [8:13 PM]
sure
[8:14]
https://github.com/indieweb/php-mf2/commit/7ceab6679021c18241d7d9b24c0d0ea7a68c075f#diff-04c6e90faac2675aa89e2176d2eec7d8
GitHub
Issue #72 , license not obvious. · indieweb/php-mf2@7ceab66 · GitHub
Previously the license was only referenced in the composer.json file. This does NOT change the license, this just makes it more obvious.
aaronpk [8:16 PM]
lol oops
[8:16]
Well then
[8:16]
Change it to copyright Barnaby Walters then
[8:17]
Since the license was already referenced in the composer.json file
Shane Becker [8:17 PM]
Looks like ben_thatmustbeme added it by copy/pasta from the ruby one

@aaronpk @barnabywalters @tantek @dissolve @kylewm

Perfect, thanks.
For the record, the copyright is assigned to Barnaby since he was the original author, has been the primary author, and is the only author listed in the composer.json file.

My fault.  Copy-pasta fail.


operator stackable-secret-operator (24.4.0-1)

New operator bundle
Name: stackable-secret-operator
Version: 24.4.0-1
Certification project: 64072b7cd96d7d7accaf145d
Test result URL: https://catalog.redhat.com/api/containers/v1/projects/certification/test-results/id/662f5d8d0c21e570dc214712
Test logs URL: https://catalog.redhat.com/api/containers/v1/projects/certification/artifacts/id/662f5d8bdf64b60f59c47304

retry

/test skip check_pruned_graph

/test skip check_pruned_graph


运行general_IRL时报错

您好，很感谢您的文章与代码的分享。
当我运行 python general_IRL.py 文件时，会出现以下错误：
Target Vehicle: 2617
Loading Data...
Timestep: 75
Timestep: 65
Timestep: 110
Timestep: 73
Timestep: 36
Timestep: 10
Timestep: 57
Timestep: 99
Timestep: 131
Timestep: 88
Traceback (most recent call last):
  File "G:/GitHub/Driving_IRL_NGSIM/general_IRL.py", line 94, in <module>
    max_v = np.max([traj[2] for traj in buffer_scene for buffer_scene in buffer], axis=0)
  File "<__array_function__ internals>", line 6, in amax
  File "C:\Users\Administrator\Anaconda3\envs\IRL\lib\site-packages\numpy\core\fromnumeric.py", line 2755, in amax
    keepdims=keepdims, initial=initial, where=where)
  File "C:\Users\Administrator\Anaconda3\envs\IRL\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity

Process finished with exit code 1

在我debug时，发现代码第79行 if terminated or features[-1] > 2.5: continue，所有的features[-1]值均在140左右，导致buffer恒为[]，因此无法得到max_v的值造成错误。请问您知道是什么原因引起的吗，另外运行personal_IRL.py也会造成这种错误。
期待您的解答，谢谢。
Hello, thank you for sharing your article and code.
When I run python general_IRL.py file, the following error occurs:
Target Vehicle: 2617
Loading Data...
Timestep: 75
Timestep: 65
Timestep: 110
Timestep: 73
Timestep: 36
Timestep: 10
Timestep: 57
Timestep: 99
Timestep: 131
Timestep: 88
Traceback (most recent call last):
  File "G:/GitHub/Driving_IRL_NGSIM/general_IRL.py", line 94, in <module>
    max_v = np.max([traj[2] for traj in buffer_scene for buffer_scene in buffer], axis=0)
  File "<__array_function__ internals>", line 6, in amax
  File "C:\Users\Administrator\Anaconda3\envs\IRL\lib\site-packages\numpy\core\fromnumeric.py", line 2755, in amax
    keepdims=keepdims, initial=initial, where=where)
  File "C:\Users\Administrator\Anaconda3\envs\IRL\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity

Process finished with exit code 1

When I debug, I find that in line 79 of the code, if terminated or features [- 1] > 2.5: continue, the values of all features[-1] are about 140, resulting in a constant buffer= [], so max_v cannot be obtained. Do you know what caused it? Run personal_ IRL. py  can also cause this error.
Looking forward to your answer, thank you.

Hello, thanks for your question. For some rare circumstances, due to the noise in the dataset, a target vehicle could be invalid because it could collide with others at the initial state. So I would like to suggest changing the vehicle_id under such circumstances. But I am not sure why the values of features[-1] are about 140 as I am unable to reproduce this mistake, mostly under 2.5. You may want to render the environment to see what might go wrong.


Google Play Rejection because of SDK: MyTarget com.my.target:mytarget-sdk

Steps to Reproduce
Upload a new binary using Appodeal SDK 3.1.3
Below is the full rejection email:
Google Play Rejection.pdf

We found an issue in the following area(s):
Version code 42:
SDK: MyTarget com.my.target:mytarget-sdk
To bring your app into compliance, follow these steps:
Verify that your app accesses, collects, uses, and shares (including with SDKs) device location only for approved purposes and in compliance with the applicable prominent disclosure and consent requirements of the above-mentioned policies. Do not enable SDK data collection if it violates these requirements.
Submit an appeal of this rejection and attach evidence (e.g. screenshots or a video demonstration of the in-app prominent disclosure and consent experience) of your compliance with the Prominent Disclosure requirements.
In the alternative, you may consider removing the SDK code designed to collect personal and sensitive user data by default, or moving to an alternative SDK or version which includes the appropriate technical mechanism to ensure that end user consent information collected by apps is honored. You may consider upgrading to a policy-compliant version of this SDK, if available from your SDK provider or removing the SDK. Google is unable to endorse or recommend any third party software.
MyTarget com.my.target:mytarget-sdk: Consider upgrading to a policy-compliant version of the SDK if available from your SDK provider, or removing the SDK.

Hello @oliverbytes.
You can use our latest release #52
Thank you.


Quickstart Playground sometimes launches editor using path to stale project

Dev Home version
0.1401.500.0
Windows build number
10.0.26217.5000
Other software
OS Build Version: 10.0.26217.5000.amd64fre.ge_current_directadept.240509-1700
.NET Version: .NET 8.0.4
Steps to reproduce the bug

Create a new generated project.
Attempt to launch it in the Editor. Observe that it opens in Visual Studio Code as expected
Enter in a different prompt and hit Generate to create it.
Launch that new project.

Expected result
The new project opens in Visual Studio Code
Actual result
Visual Studio Code tries to open a new blank file with the timestamp of the project created in step 1. The project generated in step 4 is present on the system (and the user can access it by navigating to the parent directory of that blank file). But the feature code is retaining a stale project path somewhere.


question about the method collecting test set for street

Thanks for the great work!
I have a question about page 6 > 4.1 Datasets and Metrics > MatrixCity benchmark:

test set is collected... For street data, the yaw direction randoms from 0° to 90° and every camera location captures 5 images, whose pitch and roll direction keep the same with the training set.

I check the test folder (eg. /small_city/street/test/small_city_road_down_test).
It should be correct that the pitch direction is 0° (horizontally) or 90° (vertically, face to sky) and the roll direction is 0°, which are the same as the six perspective cameras in the training set.
However, I do not understand the yaw direction randoms from 0° to 90°. Do you mean a fanshaped 1/4 circle field of view from front to right? Or do you want to express a fanshaped 1/2 circle field of view which should be the yaw direction randoms from -90° to 90°? Or simply the yaw direction randoms from 0° to 360°?
Besides, I am curious about the reason you didn't use the pitch direction from -90° to 90° to make the views in the test folder more novel...

Here "the yaw direction randoms from 0° to 90°" means that four cameras (with the pitch direction 0°) all have a random yaw direction from 0° to 90°, namely, 0-90°, 90-180°, 180-270°, and 270-360°. So it is identical with "the yaw direction randoms from 0° to 360°".


ci: .yml file should be written in proper .yml syntax

Make .yml really .yml 😬
It was json, right?

I believe this was intentional by @leo 🤔

YAML is a superset of JSON 😊 This is a JS project, so we need to use the JavaScriptObjectNationSyntax.

what's wrong with using proper YAML, btw?
or is there any particular reason you stick using json in .yml? 🤔

@luftywiranda13 Travis CI doesn't support .json 😊

@leo I guess @luftywiranda13 mean other stuff.
It's concerns file extension and their contents.
So when you make something like:
cat ./.travis.yml

you expect to see yaml syntax :)


DO NOT MERGE TESTS: Hvolschenk feature/react layout grid

tests for https://github.com/material-components/material-components-web-react/pull/351

Codecov Report

Merging #358 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #358      +/-   ##
==========================================
+ Coverage   97.25%   97.28%   +0.03%
==========================================
  Files          36       39       +3
  Lines        1491     1509      +18
  Branches      164      164
==========================================
+ Hits         1450     1468      +18
  Misses         41       41

Impacted Files
Coverage Δ

packages/layout-grid/Cell.js
100% <100%> (ø)

packages/layout-grid/Row.js
100% <100%> (ø)

packages/layout-grid/Grid.js
100% <100%> (ø)

Continue to review full report at Codecov.

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

Closing since #351 was merged


Add UtcOffset scalar

Add UtcOffset scalar type to Hotchocolate.Types

https://github.com/ChilliCream/hotchocolate/pull/3319

Addresses: #2927

closing for https://github.com/ChilliCream/hotchocolate/pull/3362


Can't build after forking repo to add RFC 5545 support

I am a Maven newbie - so this probably is NOT a bug. I'm not a Java guy either, hence the issue!
I forked this repo to add an alternate to cron/quartz cron string, i.e. RFC 5545 (because cron does not seem to work for a more complex recurrence with start date etc)
Example recurring string for RFC 5545:
FREQ=WEEKLY;COUNT=4;INTERVAL=2;BYDAY=TU,TH
My fork:
https://github.com/grepsr/Singularity/tree/rfc5545_recur_schedule
I think I'm about 80% done with the code, but I want to test it in my dev environment - but I simple get stuck at the following:
[INFO] --- dependency-management-plugin:0.4:analyze (analyze) @ SingularityService ---
[DEBUG] Configuring mojo com.hubspot.maven.plugins:dependency-management-plugin:0.4:analyze from plugin realm ClassRealm[plugin>com.hubspot.maven.plugins:dependency-management-plugin:0.4, parent: sun.misc.Launcher$AppClassLoader@2503dbd3]
[DEBUG] Configuring mojo 'com.hubspot.maven.plugins:dependency-management-plugin:0.4:analyze' with basic configurator -->
[DEBUG]   (f) fail = true
[DEBUG]   (f) project = MavenProject: com.hubspot:SingularityService:0.4.12-SNAPSHOT @ /Users/subrat/Projects/Singularity/SingularityService/pom.xml
[DEBUG]   (s) dependencies = true
[DEBUG]   (s) plugins = true
[DEBUG]   (s) allowVersions = false
[DEBUG]   (s) allowExclusions = false
[DEBUG]   (f) requireManagement = com.hubspot.maven.plugins.dependency.management.RequireManagement@38c0e34
[DEBUG]   (f) skip = false
[DEBUG] -- end configuration --
[WARNING] Dependency org.dmfs:lib-recur:jar is not managed
[WARNING] Dependency org.dmfs:rfc5545-datetime:jar is not managed

I added the following dependencies inside SingularityService/pom.xml:
    <dependency>
      <groupId>org.dmfs</groupId>
      <artifactId>lib-recur</artifactId>
      <version>0.9.4</version>
    </dependency>

    <dependency>
      <groupId>org.dmfs</groupId>
      <artifactId>rfc5545-datetime</artifactId>
      <version>0.2.2</version>

But I cannot compile this, been trying to get this working for 4 hours!
I know this is some silly issue somewhere in Maven dependency settings, but I have no clue.
Any help would gladly be appreciated!
Thanks
Subrat

Hey, so that error means that those dependencies need to be added to the dependencyManagement section in the POM here. After adding the dependencies to the dependencyManagement section, you also need to remove the <version> tag when importing those dependencies in SingularityService/pom.xml. Let me know if you still run into issues after making these changes!

Thank you! Will try now :)


Fix fixing element whose box-sizing is border-box

jQuery.height() is not counting padding in thus the sbstitute's height is wrong.

height() is used on purpose, because the substitute should have the same padding as the original element (via CSS).
For example:
If the original element has class="menu" that applies some padding, then the substitute should also have class="menu" and thus the same padding. Using .outerHeight() in this case would make the substitute larger than it should be.
Does the element you are trying to fix have dynamic padding (via style="..." or JS) by any chance?

@ShiraNai7 Thanks for clarification. I would check it later.

@ShiraNai7 Found the culprit. The element I try to fix is using box-sizing: border-box;.
.height() get the height without padding but the height of a border-box-modeled element is counting border width and padding in.

Thanks!


IP Address does not change

I can successfully connect to the VPN. You did a great job with the code. Thanks for that. However, my address through the VPN is still what my public IP address is. I could be understanding this incorrectly, but shouldn't my IP address with the VPN enabled be different that what my ISP assigned IP address is? I am very new to this, so I apologize if I don't understand this fully.

Your addr through the vpn should be the public IP of whatever location the pi is located.  IE if it is at your house then it will be your home's public IP.  There is no reason to use it, in that case, when you are home.  When you would use it is when you were not at home.  Go to a public wifi hotspot, like starbucks.  See what your IP is.  now connect your vpn and you'll see it'll change to be from your house.
So what happened?  all your traffic from the starbucks wifi was tunneled (encrypted within) right over to your house where it is now leaving as normal to get to the sites.  so no bad entity at starbucks can sniff your traffic, profile your browsing, grab logins, etc.  You are safe.  Enjoy.

Ok. That makes sense now. Thanks so much for the help. Is it possible to change the location in order to access geographically locked location (like BBC's iplayer to watch their tv shows)

the location is where you physically installed this script.  if it is in your house then that is the location.  changing it means connecting to a vpn server that is not in your house (one of the paid services). Alternatively you can spin up a free tier amazon server on the AWS cloud which you can create in ireland, virginia, oregon, frankfurt, etc. and install this script there.  that would give you that location.
the paid services generally will have multiple endpoints and on connection you can choose the one you want to connect to.


The name is a blasphemy, would you consider changing it?

Words can have multiple meanings. :)
A secondary definition of "bible" is something along the lines of: "Any book accepted as authoritative or informative about a given subject".
The word "bible" is actually from the Greek "τὰ βιβλία" or "Βιβλίο" which translate to "The books" or "Book" though this is considered an obsolete translation.


@conda-forge-admin, please add user @ngam

Closes https://github.com/conda-forge/octave-feedstock/pull/59
Closes https://github.com/conda-forge/octave-feedstock/issues/58

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added user @ngam in conda-forge/octave-feedstock#63.


Refactor Pluralize function

Bug/issue #106816971, if applicable:
Summary
Refactor: delete pluralize function in docc-render since we don't need it anymore with the new i18n localization system.
Replace the computed property tagsText with i18n pluralization
Dependencies
NA
Testing
Steps:

Go to the filter input in Navigator and assert that aria labels are correct

Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[x] Added tests
[x] Ran npm test, and it succeeded
[x] Updated documentation if necessary

@swift-ci test


refactor(network): move conversion unctions to module

Pull Request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Does this introduce a breaking change?

[ ] Yes
[ ] No

Other information

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1773  👈
#1723 : 2 other dependent PRs (#1736 , #1737 )
#1719 : 1 other dependent PR (#1771 )
#1767
#1768
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nagmo-starkware and the rest of your teammates on  Graphite


Conflict with TailwindCSS developped themes

[EDIT] Found an easy way to fix this issue, but you should modify the README to prevent others who use Tailwind:
Basicaly I just ensure my theme.css is the last file which is included placing the {% styles %} tag before it in my layout.htm:

{% styles %}
<link rel="stylesheet" property="stylesheet" href="{{ 'assets/css/theme.css'|theme }}">

Hi!
First, thanks for the work, this is much appreciated to convince customers who came with a WP website and are reticent to migrate.
I've been using the plugin in RainLab.Blog with a theme I've developed myself and ended in a weird bug only in blogPost component: my head is hidden.
I've discovered that it was due to the import of the plugin's CSS styles, which overrides the Tailwind's one:

To reproduce I guess you just have to create a basic page, include Tailwind and Laraberg.css and create a block with responsive tailwind style:

This block should only appears for lg breakpoint and upper

This kind of issue should also appear with Bootstrap, Bulma
I want to investigate further but I'm afraid the only way to fix this issue will end in a breaking change: prefix all the laraberg content style so it won't override the "global" style and will only be applied when we explicity want it.
Something like:
==
function onStart()
{
    $this->addCss('/plugins/reazzon/gutenberg/assets/laraberg.min.css');
}
==
        {% set post = __SELF__.post %}

{{ post.title }}

            Posté
            {% if post.categories.count %} dans
            {% for category in post.categories %}
            {{ category.name }}{% if not loop.last %}, {% endif %}
            {% endfor %}
            {% endif %}
            le {{ post.published_at|strftime('%e %B %Y') }}

{{ post.content_html|raw }}

With a laraberg.css like:
.laraberg-content .hidden {
    display: none;
}

I could also prefix tailwind but... it would be now a much bigger work to modify all my theme's pages, layout, partials... and not a so good idea since it still leave the Gutenberg plugin useless with all the tailwind developed theme in the marketplace.
Do you have any other idea to fix that? Or would you be open to a PR with a breaking change?

@FlusherDock1
A reply would have been appreciated.


[3.7] Fix a potential nullptr access in AsyncAgencyComm

Scope & Purpose
Fix a potential nullptr access in AsyncAgencyComm in case there was a specific error when sending an agency request.
In case network::sendRequest(...) returns the error code Error::Canceled, the response member of the network::Response object will always be a nullptr. Dereferencing it unconditionally in AsyncAgencyComm::agencyAsyncSend(...) thus is not safe to do.
This PR fixes that, so that the response member will only be dereferenced when it is safe to do. This will be fixed properly in devel by disallowing direct access to the response member, and only making it available via a function.
No backports are required, as the AsyncAgencyComm functionality does not exist in 3.6.

[x] :hankey: Bugfix (requires CHANGELOG entry)
[ ] :pizza: New feature (requires CHANGELOG entry, feature documentation and release notes)
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification
[x] :book: CHANGELOG entry made

Backports:

[x] No backports required

Testing & Verification

[x] The behavior in this PR was manually tested
[x] I ensured this code runs with ASan / TSan or other static verification tools

Link to Jenkins PR run:
http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13114/

Tests blue


Support for storing bitcode versions of object files in a separate tree.

Hi Travis,
I've started using your scripts for GNU-R, but I had to add a new feature. The GNU-R built system builds some R packages in temporary directories, where also the object files are placed, and the original wllvm places there also the bitcode files. However, these temporary directories are deleted during the build, so extract-bc won't work. The fact that some building happens into temporary directories is buried well within GNU-R itself (R has API for installing packages, the install runs within GNU-R instance). So, my modification allows storing the bitcode files in a specific directory. Feel free to include/adapt this into your version, perhaps it could be useful with other projects as well. I have not tested my modification on Windows (and it is certainly not robust against the same directory trees on different drives, possibly it won't work with mounted drives). Also, the coding is slightly simple, I don't program in Python.
Best
Tomas

Sorry, there is a race condition in the fix (won't work in parallel builds).

Have you tried just building in an environment where rm is aliased to a no-op?

Are you sure you need this?  The idea of wllvm was to be robust against this sort of build system by inserting the bitcode into generated object files.  That way, no matter where the object files are moved to or linked into (executables or libraries), the bitcode always follows them around.
The bitcode files on disk only matter very briefly: between the time that the compiler generates an assembly file and the time it calls the assembler.  After that, the bitcode has been inserted into the object file.
I did need this once (and I think it used to be supported) in the case where too much bitcode was generated during a build to fit in an ELF section.  That seems like an uncommon problem, though.

I thought we just embedded the paths to the bitcode in the object files.

Ah, right you are... it has been a long time since I was actively using this.

 We don't want to get involved in a race to the bottom.  In the days of yore
we side stepped things like this preventing the delete from happening.

On 27 May 2015 3:27 pm, "Tristan Ravitch"<EMAIL_ADDRESS>wrote:

Are you sure you need this? The idea of wllvm was to be robust against
this sort of build system by inserting the bitcode into generated object
files. That way, no matter where the object files are moved to or linked
into (executables or libraries), the bitcode always follows them around.
The bitcode files on disk only matter very briefly: between the time that
the compiler generates an assembly file and the time it calls the
assembler. After that, the bitcode has been inserted into the object file.

Eh? Last time I read the code IIRC the bitcode files were not put into
object files. Instead paths to the bitcode files on disk were put into
object files headers.

@delcypher Yeah, I was wrong on that point.  The first version of the scripts put the actual bitcode into object files.

This cannot be easily tricked on the R side. The problem is with installing/building R packages. This is done from a running instance of R using an R function call "install.packages". An R user can install a package at any time (from a running instance of R), not just when building R. The implementation of install.packages uses the R per-session temporary directory for compilation of C source code of the packages (the support for R per-session temporary directories is then again more general, used by many different parts of R). And the R per-session temporary directory is indeed deleted when the R session ends.
So, when building R, a number of source files are built normally in place given by autotools logic and do not cause trouble with wllvm. But, some packages that are part of the distribution have to be installed, this installation runs in R sessions... and there is the problem. I don't think this scenario would be fundamentally broken and I think it can be easily present in other language runtimes that allow extensions in C.
I've been using LTO and -also-emit-llvm option of the gold linker plugin before, but they removed the option from LLVM in 3.6... I am not sure what was the intention for wllvm, but for me it is a nice tool to encapsulate the pain of getting the bitcode for binaries, so that we don't have to modify complicated systems every time LLVM changes (which is not terribly infrequent). And to a level to simplify all the hacking around and configuring (building LLVM from source to get gold, building binutils to support gold with plugins, writing wrapper scripts for some tools for binutils, twiddling with environment variables to fool the configure script of R, etc). So for me it seems natural to have the support for temporary build directories in wllvm.

In order to keep our users happy @kalibera  we have added a feature with this functionality
to the SRI fork. It will eventually end up here, but will be in the 1.0.19 version of the pip package before that.

Thanks. In the meantime we hacked this on the R side, so the feature is no longer needed for R. But perhaps it could be useful to others at some point.


Add PushCSC for SparsePage.

Move Push* definitions into cc file.
Add std:: prefix to size_t to make clang++ happy.
Address monitor count == 0.

close #4037.
close #4130.

@hcho3 I used your testing case but added a SLOW prefix to it.

@hcho3 It seems #3622 shows up on Travis now.  Could you help taking a look?

@hcho3 Sorry, not the same.  Will look into this myself.

@trivialfis Wow, thanks so much for the effort! I'll go ahead and review it today.
cc @CodingCat

@hcho3

If we have two entries with the same (row, column) coordinates that have different values, which value "wins"

I'm not sure what you mean.  But as we talked before, it's worth thinking about some architectural changes to DMatrix itself.  I will try to make a list for what are expected for future DMatrix after this release.

@trivialfis See this vector:
std::vector<xgboost::Entry> vec = { {0, 1.0f}, {0, 2.0f}, {2, -0.2f} };

where the value of feature 0 is undefined (is it 1 or 2)?
I suppose this is a limitation of the CSR matrix format. There is an implicit trust that you won't have two feature values with the same feature index.


bump the version and catch all exceptions to avoid showing backtraces…

… but a more sane error message
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

Please be careful not to accidentally update the home-assistant-polymer submodule.

Sorry, my bad, did not realize that it got somehow added to the staging.

It's OK. It's easy to miss. Just wanted to call it out for the future.


👂 Accessibility for screenreaders

I was testing this component with a screenreader and found a couple issues with the display of the autocomplete suggestions. When listening to the screenreader there is no way to know that a dropdown with suggestions has appeared as you type into the input.
Consider these two fairly simple options.
Option 1: provide a visually-hidden  that says to arrow down for autocomplete suggestions
Arrow down for autocomplete suggestions

or Option 2: add the aria-live="polite" attribute so the screenreader will automatically start reading the suggestions as you type into the input.

I have tested both options with a screenreader and both work nicely to add a bit more accessibility to the autocomplete. If you like any of these suggestions I'd be happy to make a PR. 😁
Side note: I also noticed that the input has no  which is an accessibility requirement. This one isn't so much of an issue, as the developer using the component can easily add a  and the inputId={...} prop, but could also be solved by including a aria-label attribute by default.

@bvellek Great issue! Thank you for testing it out for SR. Both options sound good, which do you think is more friendly for users with screenreaders? I would love a PR for this issue @bvellek if you have time to work on it 👍

@kenny-hibino Great! I am going to reach out to the a11y community to make sure I choose the best solution, then I will submit a PR.

Hey @kenny-hibino sorry for the delay. I reached out to the a11y community and was able to get the opinion of a few frequent users of screen readers. They recommended going with the first option to add a descriptive  so non-sighted users know they can arrow down as they type to see suggestions. In order to hide the span visually, I added the styles from http://a11yproject.com/posts/how-to-hide-content/ . I submitted a PR. Let me know if you have any questions or want to make any changes 😁

@bvellek Thank you so much. I just left a comment in your PR. Please take a look 👍

@kenny-hibino made some changes! let me know if that works for you or if you would like me to change anything else.

Was there a reason why this wasn't (assuming that's the case by the title?) implemented? Just run into the same issue today, curious more than anything else.

hey @Alastair-smith2 , I am not sure why this was never merged. I gather things have changed a bit since this was originally submitted and will likely need to be rebased and adjusted.

@hibiken could you tell us why you never merged this ? It'd be nice to have !

@bvellek would you be willing to update the PR? I would review and merge it.


Markdown proxy plugin not working

Describe the bug
Don't have repro steps since this happened today during a demo, but the Markdown proxy plugin (https://github.com/arc-repos/arc-proxy-plugin-md/) did not produce parsed markup from markdown source as expected.

was unable to repro today so I'll keep an eye on this


[appsmith website to be mobile friendly, no need to use desktop mode to use it properly]

Summary
If website is opened on mobile phone,then some part of website isn't visible properly and can't be used so make it mobile friendly
Motivation
Why should this be worked on? What problems or use cases does it solve or
improve?
UserInteractive
Additional Context
Any other context or screenshots or API request payload/responses that you
pertain to the feature.

Hello are you talking about appsmith.com or app.appsmith.com?
appsmith.com is not part of this repository and is going to be mobile friendly soon.
app.appsmith.com has an issue here #4630


get transaction hash after sending it

How can I get the transaction hash after sending it in the TON blockchain? It is a big issue that the transfer_ton function only provides the response status and not the transaction hash.

It will be on the transaction page


Many errors when running classify text step

I've been working with this notebook and I seem to be having problems with the step:
Classify the text
response = classify_text(text, config)
The errors that are being thrown are many including TypeError - the text is not JSON serializable.
It's probably me, since I'm a newbie at this. Please check this out to see if it still works.
Thanks much.

@DecisionSystems It is because the notebook was built using Python v2.7. I have upgraded the notebook to support Python v3.5. Could you try now.


Datetime does not recognize 24h format

For the german language "Um 8 Uhr" (at 8 o'clock), snips always recognizes the datetime as pm. "Um 8 Uhr" should be recognized as am and "Um 20 Uhr" as pm.

OS: Debian bullseye-slim
python version: 3.6
snips-nlu version: 0.20.1

I think the behaviour is relative to what time it currently is. If if you run this at 6pm then the next '8 o clock' is 8pm. If you run it at 6am the next '8 o clock' is 8am.


Why the loss is negative: -torch.mean((ent_x + ent_y) / ent_joint)

https://github.com/qiuhuaqi/midir/blob/ea6e96e7df6d1f06cc2c69b1d4cb6c972b5c0d15/model/loss.py#L122

Hi huaqi, When I remove the negative sign, MI loss is a positive number like the general training loss, and it can converge and decline normally at first glance, but from the verification metric dice, there is a problem. When I keep MI loss as a negative number and loss as a negative number, the loss attenuation fluctuation curve is strange, but the verification effect is normal. I want this loss to be a positive number like normal training, and ensure that the model is trained and verified normally. Is there any solution? thanks


AST node start position and end position support

Hi,
Thanks for the practical tool to parse Verilog. I am wondering whether Pyverilog supports returning start and end position of each node.
If not, any API I can use to extract such information?
Thanks.

I've only used this with the ModuleDef node, but a quick scan of the code (https://github.com/PyHDI/Pyverilog/blob/d78ee0f2004cbc0b370d20c20b1bac31f55c41a5/pyverilog/vparser/parser.py and https://github.com/PyHDI/Pyverilog/blob/a1bf312e9608ba47d3724dacbb98928b66ef561c/pyverilog/vparser/ast.py for example) it seems that most nodes provide the lineno attribute for the line number, the moduledef node also provides an end_lineno attribute for the end.

Thanks for your hint :)
I read the code. Yeah, we can get the line number of each node in the AST. However, I still want to extract the exact start and end position of each node like ASTNode provided by JDT, since I want to compare two ASTs of Verilog.
Do you @leonardt think we can use Pyverilog to get this step? Or any other parser?
Thanks.


Catch decoding exception in FwkReport and set a default error message - wmagent version

wmagent branch version of https://github.com/dmwm/WMCore/pull/9312

 Fix #9315 - Catch decoding exception in FwkReport and set a default error message

All the production agents (including the old ones under 1.2.2 version) have been patched

This looks good!


mysql errors

installed rbenv, uninstalled rvm, upgraded ruby, installed bundle and rails.
Then typed mysql -u root -p and after typing the password vagrant go this error.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Use localhost hostname, skip socket

Sorry I don't know what that means.

mysql -h localhost -u root -p

no change. same error.

It shouldn't, because -h set not to use socket.

Check if MySQL server still working.

Thanks for the help so far. Not sure what's going on.

$ mysql -h<IP_ADDRESS> -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.43-0ubuntu<IP_ADDRESS> (Ubuntu)

already nuked the box after failing to reinstall mysql. I'll try that if it happens again.


[BUG]: Unable to install it properly

What happened?
Hello,
I was trying to setup it correctly but the github instructions are a bit hard to understand. I want to know if it is possible for you or another person to do a tutorial on YouTube.
Sincerely,
Raiyan.
Package version used
0.0.1
Please provide information about your operating system
W11 The latest
Please provide information about your emulator
CPU allocation: 4 cores, memory allocation: 8 GB, high performance, Android 11, 1280x720, 240 DPI
Please provide information about your python version
3.7
Relevant log output
The window close up immediately even with a time.sleep

https://github.com/yuceltoluyag/Rise-of-Kingdoms-Bot/issues/5#issuecomment-1577295867
https://github.com/yuceltoluyag/Rise-of-Kingdoms-Bot/issues/24


Notes:

Modal - three buttons: buttons missing dividing borders

need to update storybook content (scrolling content)
need to update storybook knobs and examples (passive modal, disabled buttons, state manager)
need to resolve plex issues for modal body


Feature/noetic upgrade

Title says it all. Confirmed to be working on ubuntu 20.04 with ROS Noetic.
Wiki details the extra requirements, but I'm not updating the wiki entirely yet since we may still end up using docker (or creating a simpler installation script).

Will not merge before testing with the Xavier on 20.04. More info to come

Successfully tested on the Xavier, following the steps detailed in the wiki.


ENH: specify scoring in search light

Currently SearchLight.score() uses the scorer of the base_estimator.
Typically we would like to change the scoring, e.g. to use an AUC for a logistic regression, I was thinking of doing the following API:
sl = SearchLight(LogisticRegression(), scoring=my_scorer())
sl.fit(X, y).score(X, y)

An alternative is to change the estimator directly e.g.
clf = ChangerScorer(LogisticRegression(), my_scorer())
sl = SearchLight(clf)
sl.fit(X, y).score(X, y)

What I'm unclear is how to adapt the predict method as a function of the scoring metrics, and whether this should be done automatically.
Anyone has a clear idea how what would be the most sklearn way of doing it?

have a look at this:
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.make_scorer.html
regarding API I prefer option 1.

so in terms of API, we should ask users to use make_scorer, or shall it be done internally?

scoring can be a string if standard score. Else yes use make_scorer
On Sun, Jul 31, 2016 at 6:19 PM +0200, "Jean-Rémi KING"<EMAIL_ADDRESS>wrote:
so in terms of API, we should ask users to use make_scorer, or shall it be done internally?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@kaichogami would you like to give this a try?

@kingjr Alright I will work on it.

@agramfort if we use cross_val_score, should scoring be defined at the highest level or within search light i.e.

cross_val_score(make_pipeline(SearchLight(Ridge(), scoring=my_scorer()), X, y)
or
cross_val_score(make_pipeline(SearchLight(Ridge()), X, y, scoring=my_scorer())

2 is better

ok, so we need to handle both cases, right?: i.e.
*SearchLight(Ridge(), scoring=my_scorer())
*cross_val_score(SearchLight(Ridge(), X, y, scoring=my_scorer())

ok, so we need to handle both cases, right?: i.e.
*SearchLight(Ridge(), scoring=my_scorer())

what is the use case for this one? can't you rely on estimator.score?

*cross_val_score(SearchLight(Ridge(), X, y, scoring=my_scorer())

+1 for this one.

what is the use case for this one? can't you rely on estimator.score?

My use case is fit a search light on a localizer (no CV) and apply it to a main epoch dataset. However I typically want auc not accuracy. Maybe too specific ?

My use case is fit a search light on a localizer (no CV) and apply it to a main epoch dataset. However I typically want auc not accuracy. Maybe too specific ?

Confirming precisely this is a likely usage case.

ok point taken Use case is legit for me

closed by #3502 & #3833


Enforce usage for users

Would it be possible for admins to enforce two factor authentication on users?

@lukebailey Not yet. For now you could do this manually by not granting rights other than cp util the user has activated 2FA. But this would be a good feature. So, this is going on the todo list.

I enforce it by redirecting users to the 2FA setup page if they're not verified, with the following module:
<?php

namespace modules\TwoFactorAuthentication;

use \Yii;

use Craft;
use born05\twofactorauthentication\services\Verify as VerifyService;
use craft\helpers\UrlHelper;

class TwoFactorAuthentication extends \yii\base\Module
{

    public function init() {
        parent::init();

        // Register Components (Services)
        $this->setComponents([
            'verify' => VerifyService::class,
        ]);

        $request = Craft::$app->getRequest();
        $response = Craft::$app->getResponse();
        $actionSegs = $request->getActionSegments();

        // COPIED from \vendor\born05\craft-twofactorauthentication\src\Plugin.php::init()
        if (
            $request->getIsCpRequest() &&
            (
                $request->getPathInfo() !== '' &&
                $actionSegs !== ['app', 'migrate'] &&
                $actionSegs !== ['users', 'login'] &&
                $actionSegs !== ['users', 'logout'] &&
                $actionSegs !== ['users', 'set-password'] &&
                $actionSegs !== ['users', 'verify-email'] &&
                $actionSegs !== ['users', 'forgot-password'] &&
                $actionSegs !== ['users', 'send-password-reset-email'] &&
                $actionSegs !== ['users', 'save-user'] &&
                $actionSegs !== ['users', 'get-remaining-session-time'] &&
                $actionSegs[0] !== 'updater' &&
                $actionSegs[0] !== 'debug'
            ) &&
            !(
                $actionSegs[0] === 'two-factor-authentication' &&
                $actionSegs[1] === 'verify'
            ) &&
            ! (
                $actionSegs[0] === 'two-factor-authentication' &&
                $actionSegs[1] === 'settings'
            )
        ) {
            // Get the current user
            $user = Craft::$app->getUser()->getIdentity();

            // Only redirect two-factor enabled users who aren't verified yet.
            if (isset($user) &&
                !$this->verify->isEnabled($user)
            ) {
                $url = UrlHelper::actionUrl('two-factor-authentication/settings/index');
                $response->redirect($url);
            }
        }
    }
}

@RichardFrontwise that is similar to what i had in mind. Probably would render a separate page without the rest of the ui, to clean it up. Hopefully i can write it this week.

I've added support for forcing 2fa for front end or CP users. Please let me know if you have any feedback!

Thanks for the update, seeing an unknown error when non admins try to enable 2FA. Also should there be anywhere in the CP where an admin can enforce 2FA per user or is this a global config setting?

@lukebailey Thanks, i'll check the non-admin thing.
Remember, simply remove the user's twofactorauthentication_user record for disabling 2fa when you are locked out. You don't have to completely restore a db for this.
Forcing is a global setting for CP and front end seprated (forceFrontEnd and forceBackEnd).

Ah good shout

@lukebailey 2.0.0-beta.10 Should fix the locking out issue.

@roelvanhintum

I've added support for forcing 2fa for front end or CP users. Please let me know if you have any feedback!

Not sure if I understand where an admin can force 2fa for users. Is it really a feature?


Allow changing the visualization timeout from within Superset's settings

Hi,
First of all - Awesome project, cheers.
The issue:
Though the timeout message suggests that one is to compact his data further, it may still come handy to be able to allow a visualization to take another minute.
A client using Superset shouldn't have to dig into js files, find the build script, install node, recompile etc. just to let his visualization run a bit longer.
I was wondering whether it would agreeable to add this timeout setting to a relevant Superset panel, instead of having one wander through Supersets' entrails and use compilers and build tools to modify it.
Thanks,
Eli

I don't think superset has clients, it has users. The ui timeout has been synced to the backed, i think this is a dup of #3030 https://github.com/apache/incubator-superset/issues/3030

It's a configuration element in superset_config.py now

Awesome, thank you!  For those stumgling on this post, the flags (with default values) are  -
SUPERSET_WEBSERVER_TIMEOUT = 60
SQLLAB_TIMEOUT = 30
For async queries -
SQLLAB_ASYNC_TIME_LIMIT_SEC = 60 * 60 * 6
full list of flags -
https://github.com/apache/incubator-superset/blob/master/superset/config.py

Those are deprecated as the referred file mentions. You have to change:
SQLLAB_TIMEOUT = config.get('SQLLAB_ASYNC_TIME_LIMIT_SEC', 600)
In sql_lab.py if you want to increase the 60 secs timeout for the visualizations.


[求助/Help] 物理机 dell630 部署失败

只有 1 块 ssd ，挂在 megaraid 控制器下，安装系统的时候选择不做 raid ，但部署系统失败。

经过排查，发现是做 JBOD 的时候失败，报错如下：
[warning 2023-07-05 04:09:59 megactl.(*MegaRaidAdaptor).megacliBuildJBOD(megactl.go:888)] try clear megaraid jbod disks before make jbod: PDMakeGood megacli cmd /opt/MegaRAID/MegaCli/MegaCli64 -PDMakeGood -PhysDrv '[32:0]' -Force -a0: "/opt/MegaRAID/MegaCli/MegaCli64 -PDMakeGood -PhysDrv '[32:0]' -Force -a0" error: Process exited with status 95, cmd error:  ^M
The drive cannot be converted from JBOD to Unconfigured Good because, Maximum allowed drive conversion has been reached.

FW error description:
 The drive cannot be converted from JBOD to unconfigured good because, Maximum allowed drive conversion has been reached.

Exit Code: 0x5f

解决办法是将 megaraid 固件升级到最新，再尝试安装系统就能成功。


Compatibility with Cascading 3.0

This branch forks the "cascading2" directory into "cascading3", and updates the latter to the breaking API changes made by Cascading 3.0.
Not much, arguments of type JobConf become Configuration, while Foo becomes Foo<? extends Configuration>
This is required to enable Scalding to move up to Cascading 3.0 as well.

Mmm somehow I never saw this. Sorry about that @cchepelov .
@rubanm  this seems like relevant/important for work you want to do this quarter

Thanks for the review @ianoc @johnynek ; at this point, I've pretty much did only a "mechanical" conversion, working from a crude a "cp -r cascading2 cascading3".
To sum up your feedback, what appears needed at this point:

To ensure nothing in cascading3/**/* declares "package com.twitter.elephantbird.cascading2.*"
Identical classes ought to be moved into a common place (but, what about binary compatibility with former com.twitter.elephantbird.cascading2 users? stub classes that extend the now Common classes?)
Open question on whether cascading2 should still hard-depend on cascading-hadoop or depend "provided", conservative option would be to leave it as a hard-depend
The migration is a great opportunity to cull some dead wood (this is not something I feel qualified to do)

Willing to perform points 1-3 once the scalding build starts turning green.

@cchepelov I do not have permissions to push to your fork, so filed a new PR picking up from this https://github.com/twitter/elephant-bird/pull/463

@cchepelov I've merged the other PR. Thanks for getting this going!


Missing regional keyboard keys in Overwatch

In Overwatch, some regional keys miss the lighting effect. For example in this swiss layout, which should be the same as german one, the red marked keys stay black. In the rest of the application, they work perfectly.

The problem with Overwatch support is that it uses a Razer Wrapper to retrieve the lighting info. If Razer doesn't support lighting for those keys, then I cannot get colors for those keys. I will see if they actually support those keys, but I don't think so.

This issue should be resolved in the next update.


Color highlighting instead of icons

Can this be implemented?

Good idea! But a little hard...

+1

+1

+1

:+1:

:+1:

+1

+1 quickly had a look - the api provided by nerdtree and the underlying highlight does rly not make it easier 🍶

@Xuyuanp what about using various zero-width unicode characters to determine the colors?

@0x00A Cool idea that could actually work - setting the flag with the vim's nr2char({expr}[, {utf8}]) function  and expand the match for each group could work out. I'm gonna try that the next week.

@0x00A Good idea!
@robinfehr Thank you! Waiting for your good news.

tried it - works like a charm. will implement a useful approach and upload it asap.

@robinfehr Awesome!
And how could you display the folder icon?

And how could you display the folder icon?

https://github.com/ryanoasis/vim-devicons

assuming you're using the vim-devicons with a nerd font that contains the symbol then add this:
let g:WebDevIconsUnicodeDecorateFolderNodes = 1
let g:DevIconsEnableFoldersOpenClose = 1

my font: Inconsolata for Powerline Nerd Font Complete

Got it. Thank you @robinfehr @KabbAmine

btw. in a second step we should improve the logic for the git status "untracked" and add a flag to nodes below a node marked as "untracked".

second step is implemented too now ;)

@Xuyuanp can you please verify if the
git status --short
of a staged file really returns

[MAC]

I cant rly see second flags when i add the short format param

@Xuyuanp What do you think - should we show the difference between staged and unstaged (atom plugin for example makes no difference) ? if we want to show the difference then we might need to add either a flag or a new colour because you still want to know the state like "modified" next to the staged flag.

@robinfehr I think that "untracked" and "added" are definitely diff status.
And "modified" after 'staged' status is diff from both 'staged' and 'modified' indeed, I saw this situation on the beginning, but I finally treated them same to void making it too complicated.

Any status on this? It would be awesome to close this issue :D

^bump

@0x00A feel free to work/use on my fork to finish. The current fork contains the "atom" like version. You'd have to add an option to have a switch between the "atom" mode and the "plainState" mode. Sadly I have no free time to do so at the moment.

@0x00A I'm sorry I have no time to make this work be done. Maybe next month.

+1 (when ever you have time)

I think the icons appeared end of the filename not ahead of. will be better.

this would definitely be a great addition, looking forward.

Yeah this looks great. Do we even need the switch between atom and plainstate mode? I'm all for merging the current atom mode in the interest of moving this forward. Then a plainstate mode could always be added later if needed. Would prevent this pr from going stale.

@robinfehr's fork works OK, but I'd love to see this progressed :smile:

I've merged @robinfehr's fork into mine which (as of now) has no conflicts with the current master. I've submitted #79 for it. I didn't make any progress on handling the untracked files, but hopefully bringing it up to date will help to make things easier.

Long time since the last comment here, but anyways. I forked the latest version of this repo and used @robinfehr idea to enable custom file colors for different git statuses. So now we are able to use custom flags and custom colors for the file name based on the git status. We can also use just the one feature or the another or both of them. vim-devicons and vim-nerdtree-syntax-highlight should be installed and the following minimal .vimrc config should be setup.
let g:WebDevIconsUnicodeDecorateFolderNodes = 1
let g:NERDTreeGitStatusNodeColorization = 1
let g:NERDTreeGitStatusWithFlags = 1

let g:NERDTreeIndicatorMapCustom = {
    \ "Modified"  : "⋆",
    \ "Staged"    : "•",
    \ "Untracked" : "∘",
    \ "Dirty"     : "⁖",
    \ "Clean"     : "✔",
    \ }

let g:NERDTreeColorMapCustom = {
    \ "Modified"  : "#528AB3",
    \ "Staged"    : "#538B54",
    \ "Untracked" : "#BE5849",
    \ "Dirty"     : "#299999",
    \ "Clean"     : "#87939A"
    \ }

Project is in golang which default filetype color from vim-nerdtree-syntax-highlight is yellow
The dirty directory containing modified file is in teal color
The modified file is in blue color
The staged file is in green color
The untracked file is in red color
I could not make the clean directory flag or color work (or any of the rest of the git statuses from the original version of the repo), but is not a big deal, because these are the most useful ones and they work.

Any chance of reopening this issue? The fork has since been abandoned and the feature doesn't seem to be implemented in this project either.

@R0LA1mRifcF8yAkk wip

@Xuyuanp what is missing for implementing this feature? Could you also mention it in README.md? Maybe someone can help, started following this project for it. Unfortunately, I cant use this plugin without coloring, its more important showing icons next to my vim-devicons setup

The fork who have the feature are currently not working, it breaks the Nerdtree. Any chance of this being implemented here? That looked like a cool feature.


Add Semantic UI React and new statistics UI

Example of the new UI

Problems

When the width is 319 or lower, the layout breaks currently:

@rossanodan do you have an idea to solve this issue when the number of the statistic is too high? Maybe the approach I took with using a grid isn't the best and can be improved.

Questions

We could create a file called variables.scss that would contain color variables, viewport breakpoints, etc. Instead of having the values that would be repeated in multiple files:

@media (max-width: 600px)
@media (min-width: 320px) and (max-width: 480px) {

If anyone can find a better icon for the reactions it would be awesome 😅 .

@BOLT04 great job with that!
Maybe using SVGs fixes this problem. SVGs are very easy to work with, mainly for responsiveness. The don't even loss quality shrinking or enlarging. But I have to take a look before 👍


Port over the clear command from nushell

Thanks. Looks good

I've been thinking a bit about this. Since engine-q is using crossterm should we be using crossterms clear() function instead of shelling out to the OS to clear the screen?

@fdncred we may have to find a way to pass reedline api to the command to have access to crossterm

Good point @fdncred, I wasn't aware we have crossterms. I might look into that after porting other commands I signed up for.

@fdncred we may have to find a way to pass reedline api to the command to have access to crossterm

ya, it would be good to be able to access reedline's crossterm instance. there are a few things i'd like to do with it without requiring another dependency. having said that, we already have a dependency on crossterm due to some of my code as well as we'll eventually need it to port andres' chart commands (can't remember if those are plugins or not).


suspicious code in CurvatureNDAnisotropicDiffusionFunction

first of all I want to be clear that this is not necessarily a bug, but i think it's worth the discussion
curvature anisotropic diffusion function
so i am currently reading the itk code for this filter out of interest how it works and trying to re-implement it.
i stumbled upon this part of the code in this file that defines the core pixel-wise step of the filter (if i'm correct), and here there is all this code that should probably compute two different gradients but it doesn't. (currently lines 102-136).

dx_aug is computed exactly same as is dx_dim and consequently also grad_mag_sqr and grad_mag_sqr_d as well as Cx and Cxd. I hope I'm not missing something obvious but this seems very unnecessary if they should actually contain the same value and otherwise wrong, or not?
in general i'd also be interested in knowing the source of this implementation. thank you!

There are slight differences between them, e.g.
grad_mag_sq = dx_forward[i] * dx_forward[i];
grad_mag_sq_d = dx_backward[i] * dx_backward[i];

One uses forward difference, the other backward. Later, one uses dx_aug, the other dx_dim.

@dzenanz oh wow, I did overlook something obvious, thank you. But dx_aug and dx_dim are the same...
and do you know the source for this implementation?

I don't know the source. x_aug and dx_dim are not the same, one uses xa_slice, the other xd_slice 😄

@dzenanz ohh my god haha, thank you! closing the issue^^


More detailed README

Quick overview of Ziggy usage as a dependency

Great idea, thank you @kevin-valerio!
Let me know what you think of the changes I made :smile:


Moved docs link to an Angular directive.

Moved the link to be next to the method
Made the part that generates the link itself a directive
Added the link next to classes as well

Tried locally and looks like it works! Thanks for making it more Angular-ly.
nitpick: Github is spelled GitHub (note the capitalization).
I'm also thinking maybe just (view code [github icon image]) might look better? But this is an improvement nonetheless.

@ryanseys Does Travis usually take this long to build...?

Yep. Not our fault, it hasn't been assigned a server yet. It sucks!

Thanks!


zsh: killed     python my_test_script.py (kernel dies)

I'm not sure whether this is a bug or simply a limitation of my laptop, but in any case I would like to know the answer.
When I'm running a simple minimization problem with medium/large datasets, the process seems to get killed somewhere. For instance, solving a least-square problem with 200,000 observations on 10 covariates seems to be too big to handle (which I don't understand as I'm able to run much heavier algorithms).
Reproduction
# Import packages.
import cvxpy as cp
import numpy as np

# Generate data.
m = 200000
n = 10
np.random.seed(1)
A = np.random.randn(m, n)
b = np.random.randn(m)

# Define and solve the CVXPY problem.
x = cp.Variable(n)
cost = cp.sum_squares(A @ x - b)
prob = cp.Problem(cp.Minimize(cost))
prob.solve(verbose=True)

# Print result.
print("\nThe optimal value is", prob.value)
print("The optimal x is")
print(x.value)
print("The norm of the residual is ", cp.norm(A @ x - b, p=2).value)

Running the above leads my terminal to crash.
Version

OS: macOS Big Sur 11.3
CVXPY Version: 1.1.10 py38h50d1736_0 conda-forge
Python 3.8.8

@muhlbach, thanks for reporting this. I tried it out and got an out-of-memory error on my machine, which in this case may be a bug.
In the meantime, if you change
prob.solve(verbose=True)

to
prob.solve(solver=cp.SCS, verbose=True)

the script should work (it works on my machine, at least, using version 1.1.12 of CVXPY). What this change does is it uses a different solver for the problem, which doesn't trigger the massive memory allocation that causes your terminal to crash.
@SteveDiamond + @bstellato: this script appears leads to a massive memory allocation (298 GB) in the QP matrix stuffing, due to an attempt to allocate a dense m by m matrix (here m is 200k). It's not clear to me why this matrix is dense ...
Here's the verbose output, and the stack trace.
===============================================================================
                                     CVXPY
                                    v1.1.12
===============================================================================
(CVXPY) May 03 11:32:06 AM: Your problem has 10 variables, 0 constraints, and 0 parameters.
(CVXPY) May 03 11:32:06 AM: It is compliant with the following grammars: DCP, DQCP
(CVXPY) May 03 11:32:06 AM: (If you need to solve this problem multiple times, but with different data, consider using parameters.)
(CVXPY) May 03 11:32:06 AM: CVXPY will first compile your problem; then, it will invoke a numerical solver to obtain a solution.
-------------------------------------------------------------------------------
                                  Compilation
-------------------------------------------------------------------------------
(CVXPY) May 03 11:32:06 AM: Compiling problem (target solver=OSQP).
(CVXPY) May 03 11:32:06 AM: Reduction chain: CvxAttr2Constr -> Qp2SymbolicQp -> QpMatrixStuffing -> OSQP
(CVXPY) May 03 11:32:06 AM: Applying reduction CvxAttr2Constr
(CVXPY) May 03 11:32:06 AM: Applying reduction Qp2SymbolicQp
(CVXPY) May 03 11:32:06 AM: Applying reduction QpMatrixStuffing
---------------------------------------------------------------------------
MemoryError                               Traceback (most recent call last)
<ipython-input-4-4b11e6335c40> in <module>
     14 cost = cp.sum_squares(A @ x - b)
     15 prob = cp.Problem(cp.Minimize(cost))
---> 16 prob.solve(solver=cp.OSQP, verbose=True)
     17
     18

~/envs/playground/lib/python3.8/site-packages/cvxpy/problems/problem.py in solve(self, *args, **kwargs)
    457         else:
    458             solve_func = Problem._solve
--> 459         return solve_func(self, *args, **kwargs)
    460
    461     @classmethod

~/envs/playground/lib/python3.8/site-packages/cvxpy/problems/problem.py in _solve(self, solver, warm_start, verbose, gp, qcp, requires_grad, enforce_dpp, **kwargs)
    936                 return self.value
    937
--> 938         data, solving_chain, inverse_data = self.get_problem_data(
    939             solver, gp, enforce_dpp, verbose)
    940

~/envs/playground/lib/python3.8/site-packages/cvxpy/problems/problem.py in get_problem_data(self, solver, gp, enforce_dpp, verbose)
    609                          'Compiling problem (target solver=%s).', solver_name)
    610                 s.LOGGER.info('Reduction chain: %s', reduction_chain_str)
--> 611             data, inverse_data = solving_chain.apply(self, verbose)
    612             safe_to_cache = (
    613                 isinstance(data, dict)

~/envs/playground/lib/python3.8/site-packages/cvxpy/reductions/chain.py in apply(self, problem, verbose)
     74             if verbose:
     75                 s.LOGGER.info('Applying reduction %s', type(r).__name__)
---> 76             problem, inv = r.apply(problem)
     77             inverse_data.append(inv)
     78         return problem, inverse_data

~/envs/playground/lib/python3.8/site-packages/cvxpy/reductions/qp2quad_form/qp_matrix_stuffing.py in apply(self, problem)
    260         # Form the constraints
    261         extractor = CoeffExtractor(inverse_data)
--> 262         params_to_P, params_to_q, flattened_variable = self.stuffed_objective(
    263             problem, extractor)
    264         # Lower equality and inequality to Zero and NonPos.

~/envs/playground/lib/python3.8/site-packages/cvxpy/reductions/qp2quad_form/qp_matrix_stuffing.py in stuffed_objective(self, problem, extractor)
    245         # extract to 0.5 * x.T * P * x + q.T * x + r
    246         expr = problem.objective.expr.copy()
--> 247         params_to_P, params_to_q = extractor.quad_form(expr)
    248         # Handle 0.5 factor.
    249         params_to_P = 2*params_to_P

~/envs/playground/lib/python3.8/site-packages/cvxpy/utilities/coeff_extractor.py in quad_form(self, expr)
    193         # Calculate affine parts and combine them with quadratic forms to get
    194         # the coefficients.
--> 195         coeffs, constant = self.extract_quadratic_coeffs(root.args[0],
    196                                                          quad_forms)
    197         # Restore expression.

~/envs/playground/lib/python3.8/site-packages/cvxpy/utilities/coeff_extractor.py in extract_quadratic_coeffs(self, affine_expr, quad_forms)
    136                 var_size = affine_id_map[var_id][1]
    137                 c_part = c[var_offset:var_offset+var_size, :]
--> 138                 if quad_forms[var_id][2].P.value is not None:
    139                     # Convert to sparse matrix.
    140                     P = quad_forms[var_id][2].P.value

~/envs/playground/lib/python3.8/site-packages/cvxpy/atoms/atom.py in value(self)
    348         if any([p.value is None for p in self.parameters()]):
    349             return None
--> 350         return self._value_impl()
    351
    352     def _value_impl(self):

~/envs/playground/lib/python3.8/site-packages/cvxpy/atoms/atom.py in _value_impl(self)
    362                 # arguments it doesn't depend on its arguments,
    363                 # so it isn't None.
--> 364                 arg_val = arg._value_impl()
    365                 if arg_val is None and not self.is_constant():
    366                     return None

~/envs/playground/lib/python3.8/site-packages/cvxpy/atoms/atom.py in _value_impl(self)
    367                 else:
    368                     arg_values.append(arg_val)
--> 369             result = self.numeric(arg_values)
    370         return result
    371

~/envs/playground/lib/python3.8/site-packages/cvxpy/atoms/atom.py in new_numeric(self, values)
    454             values = [interface.const_to_matrix(v, convert_scalars=True)
    455                       for v in values]
--> 456             result = numeric_func(self, values)
    457             return intf.DEFAULT_INTF.const_to_matrix(result)
    458         return new_numeric

~/envs/playground/lib/python3.8/site-packages/cvxpy/atoms/affine/promote.py in numeric(self, values)
     65         """Promotes the value.
     66         """
---> 67         return np.ones(self.promoted_shape) * values[0]
     68
     69     def is_symmetric(self) -> bool:

~/envs/playground/lib/python3.8/site-packages/numpy/core/numeric.py in ones(shape, dtype, order)
    190
    191     """
--> 192     a = empty(shape, dtype, order)
    193     multiarray.copyto(a, 1, casting='unsafe')
    194     return a

MemoryError: Unable to allocate 298. GiB for an array with shape (200000, 200000) and data type float64

Hi @muhlbach. The current formulation of your problem hits this code path: https://github.com/cvxpy/cvxpy/blob/d6f9d873405bbb9cc3a5f534cf65d2a50978eb31/cvxpy/reductions/dcp2cone/atom_canonicalizers/quad_over_lin_canon.py. That code path introduces another variable into the problem and I suspect that variable is making some aspect of CVXPY canonicalization (or the low-level numerical solver) handle the downstream linear algebra in an inefficient way.
If you approach the problem with the equivalent objective cost = cp.norm(A @ x - b, 2), then it can be solved easily.

Thanks, @akshayka, it works like a charm with Splitting Conic Solver.
Since you're one of the developers of CVXPY, can I ask you what is the advantages of using CVXPY rather than, say, scipy, for this type of problem? I have used your library because I read somewhere that it is very efficient and I have to solve quite big systems of equations.

@muhlbach for ordinary least squares (no constraints on the regression parameter) you should use SciPy. There are two reasons for this.

By using CVXPY, you incur overhead in passing a problem to a solver. This overhead is worth it when a solver has input requirements that are not natural from a modeling standpoint, but the input requirements of SciPy's least-squares solvers are very natural here.
The numerical solvers behind CVXPY ultimately have to implement their own linear algebra engines. Those linear algebra engines are general-purpose and will not exploit the full structure in a least-squares problem; although those linear algebra implementations tend to do very well on least-squares problems anyway, they have basically no chance of beating SciPy (if you use SciPy properly).

That said, small changes to your situation could make CVXPY preferable. Sometimes it's a pain to build the data matrix for a least-squares problem, and CVXPY can handle that for you by allowing more expressive modeling syntax. Also, if you ever make your problem more complicated (such as by adding constraints) then SciPy looses it's advantage of efficient linear algebra.

@rileyjmurray, thanks again, very nice explanation! I do enjoy the expressive syntax of CVXPY, but it seems like constraints and bounds can fairly easily be implemented in SciPy, e.g.,
import numpy as np
from scipy.optimize import minimize

# Generate data.
m = 20000
n = 10
np.random.seed(1)
A = np.random.randn(m, n)
b = np.random.randn(m)

def loss(x):
    return np.sum(np.square((A @ x - b)))

cons = ({'type': 'eq',
         'fun' : lambda x: np.sum(x) - 1.0})

bnds = [(0, 1) for i in range(A.shape[1])]

x0 = np.zeros(A.shape[1])
res = minimize(loss, x0,
               method='SLSQP',
               constraints=cons,
               bounds=bnds,
               options={'disp': True})

print("Coefs:", res.x)
print("Sum:", np.sum(res.x))
print("MSE:", np.mean(np.square(A @ res.x - b)))

That being said, I really enjoy the simplicity of matrix-like syntax of CVXPY.

@muhlbach happy to help! Yes, I'm aware that SciPy also offers support for constrained optimization, but in that situation, it no longer has "an advantage." Instead, using a specific method like SLSQP within SciPy is akin to selecting a solver within CVXPY. The solvers in CVXPY are general-purpose however they're also built on top of the most successful ideas in convex optimization algorithms. As long as CVXPY doesn't introduce extra variables or constraints when canonicalizing your problem, you can reasonably expect a CVXPY-supported solver to outperform a solver accessible from SciPy. But of course, it's worth trying whatever's available!
We'll leave this GitHub issue open, since we will want to investigate why the codepath you hit is so inefficient. However, if you have more questions feels free to post here or to create a new GitHub issue / open a GitHub Discussion thread.

Wonderful, thanks @rileyjmurray! I'll keep using CVXPY then ;-)

I fixed this on master. The issue was how certain sub-expressions were being evaluated in "quad_over_lin_canon".

@muhlbach if you reinstall cvxpy from source, you won't need to specify the solver anymore. (The solver will also be a bit faster.)


Caching of offloaded objects

TL;DR
flytekit portion of proposal described in https://github.com/flyteorg/flyte/pull/1893
Type

[ ] Bug Fix
[x] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[x] Smoke tested
[x] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
We define a new field in Type Transformers that indicate if hashes are overridable. Such hashes are produced for annotated objects returned by tasks.
In case they are set in a literal, hashes are taken into consideration during cache key calculation and we do that by using them as opposed to a string representation of the literal.
This is obviously predicated on a flyteidl PR that does not exist yet.
Tracking Issue
https://github.com/flyteorg/flyte/issues/1581
Follow-up issue
NA

https://github.com/flyteorg/flyteidl/pull/237/files#diff-e9c7f9528aac9670ee8251a31dd27a04b07bd1afbb195f053ad0182e39eb2119R80 why is this a todo? should we just add some comments now?

yes, I'm going to update that PR to include a proper description of what the hash is and how to use it.


Usage and uninstall docs for all Clients

Uninstall / usage docs for Clients, in the existing /kb/user-guides. For the GUI clients, we should assume a non-technical user might be reading them. For the headless/CLI clients, we can assume the user has basic proficiency of the CLI.
Should cover:

Prereqs / requirements
How to install
How to operate (wait to take screenshots until #3514 is complete, since menus will be changing in that)

Signing in
"You should see Resources you can access in the menu" -- one user hit this
Signing out
Troubleshooting / known issues
Viewing and clearing logs

### Tasks
- [ ] https://github.com/firezone/firezone/issues/4995
- [ ] https://github.com/firezone/firezone/issues/4925
- [ ] https://github.com/firezone/firezone/issues/4997
- [ ] https://github.com/firezone/firezone/issues/4998
- [ ] https://github.com/firezone/firezone/issues/4999
- [ ] https://github.com/firezone/firezone/issues/5000

Should I do these in that order as separate PRs? Windows, Linux GUI, Linux Headless?

Should I do these in that order as separate PRs? Windows, Linux GUI, Linux Headless?

Chef's choice. I can review it all in one PR if that makes it easier.


How to show more log infos during training instead of using tqdm to show only once?

🚀 Feature
Motivation
Sometimes we want to check whether our model can converge. The most intuitive is to print the training information at regular intervals. However, tqdm only shows once, from which we cannot clearly see the trend of convergence.
Alternatives
In this context, I wonder is it possible to use the normal method (e.g. simply print or logging) to log the training and validation information? Or does tqdm support print the information on both screen and file?
Additional context

you can always call print whenever you want. but ideally we look at tensorboard or another logger to check for convergence.
but you’re free to do print(loss) in your code haha

I got it. I can first set show_progress_bar=False, then print the info in training_step, but I wonder how can I print the average value of accuracy and loss?

Is there anyway to use something like logging.info() instead of print?

you can use self.print() inside the lightningModule


[sourcekitd] Add environment variable to stop semantic requests being temporarily disabled following a crash

Any time SourceKitService goes down there is a 10-20 second delay before semantic requests can be made. This patch adjusts the logic to ignore this delay if SOURCEKIT_DISABLE_SEMA_EDITOR_DELAY is set. This will make stress testing SourceKit (i.e. making semantic requests at all applicable locations in a source file to find those that trigger crashes) faster.

Resolves rdar://problem/42741610.

@swift-ci please smoke test

@swift-ci please smoke test


Reproducibility of a previously stylized network not given anymore

The behavior of reproducing a stylized network should be:

Open a network visualization
stylize network
retrieve stylized network and configs
bind retrieved positions to network
start new visualization with bound positions and config
the new visualization should be exactly the same as the old visualization

I've checked out an old version of the javascript base, namely the following commit https://github.com/benmaier/network_styling_with_d3/commit/86762e292344d145b8d8de8211f201604ee968ec
Then I ran the following code
from netwulf.tools import bind_positions_to_network
import networkx as nx
import pprint
pp = pprint.PrettyPrinter(indent=4)

G = nx.Graph()
G.add_nodes_from(range(10))
G.add_nodes_from("abcde")
G.add_edges_from([("a","b")])

from netwulf import visualize
props, config = visualize(G)
config['Zoom'] = 0.666

pp.pprint(props)
pp.pprint(config)
bind_positions_to_network(G, props)
visualize(G, config=config)

this produces the first vis:

and then the second vis:

Afterwards I've checked out the following commit of the javascript base, which is this: https://github.com/benmaier/network_styling_with_d3/commit/a88f4d37aaffb6c3829fa4bf409b6628976b3d55
Now the first vis is

and the second vis is

which is different, but it shouldn't be, right?
I think the part of the code which is responsible for this is the part I commented here:
https://github.com/benmaier/network_styling_with_d3/commit/a88f4d37aaffb6c3829fa4bf409b6628976b3d55#r33573089

Actually, the problem is in the else, where, if nodes have x and y properties but the graph has no xlim and ylim properties, node-positions are recomputed such as to use the entire canvas space available. It's nice if someone gives their node position in obscure coordinate ranges (like GPS coordinates, grid positions in nanometers, etc). I think the proper way to fix this is:
1. In bind_positions_to_network, add xlim and ylim attributes to the G.graph object (graph is a dictionary attribute that an nx.Graph has dedicated for storing graph attributes) such that, in netwulf.visualize, nx.node_link_data(G) produces a dictionary that has an entry 'graph': {'xlim': [lowerx, upperx], 'ymin': [lowery, uppery]}, then
2. In the vis.js every lookup in graph or masterGraph for xlim and ylim get changed from graph['xlim'] to `graph['graph']['xlim'].
I'll try this and report back.

Ah, I see! Sounds reasonable. Also, I suggest once this is implemented and tests run smoothly we bump the whole thing up to v0.1

Changes to netwulf (a305733cde3bc93b324a8c9c8451c64e72b64d12):

In tools.py: bind_positions_to_network -> bind_properties_to_network. The updated function defaults to binding all properties to the nx.Graph object, but has an argument for untoggling binding for each property. This means that xlim and ylim are now stored in the G.graph dict.
In interactive.py: I made a small update so the dictionary resulting from nx.node_link_data(G) is flattened, before it is saved. Thus, it ends up almost identical to the posted_network_properties that visualize returns.

There's still a problem then config['zoom'] is changed. This needs to be fixed in https://github.com/ulfaslak/network_styling_with_d3.

Alright, I thought about this a bit now. From a user's perspective it makes sense that setting config['zoom'] should be equivalent to pulling the slider... But it gets a little complicated due to the way zoom is implemented in the visualization. Nodes have d3 simulation coordinates, but using the zoomScaler nodes are rendered elsewhere. For example, a node with coordinates x, y is rendered is in zoomScaler(x), zoomScaler(y). So the zoomScaler is basically a (two-way) may between simulation coordinates and canvas coordinates (and vice versa). Now, when we return the node coordinates to Python, it is the canvas coordinates we return, simply because it simplifies re-rendering the graph in Matplotlib. This is all fine. The problem, however, is when we overwrite config['zoom'] the program suddenly no longer knows what the simulation coordinates were. Even worse, as-is it will assume that the simulation coordinates are those obtained with a zoomScaler initiated with a different config['zoom'] value.
So if we e.g. lower config['zoom'] from 1.5 to 0.66, it's like saying "actually these canvas coordinates are contracted compared to the simulation coordinates". So the simulation coordinates are now different (more spread out), and the rendered network is contracted 0.66 in relation to that. Effectively, the nodes are going to appear to be in the same position on the canvas, only with smaller node sizes.
A way to enable the "user-intuitive" behavior would be to:

Return to Python, not the canvas coordinates, but the simulation coordinates
Change the draw_netwulf function so it also takes the config as input and then uses config['zoom'] to put the nodes in the "canvas positions".

Alternatively, we return to Python the simulation node-positions in the original 'x' and 'y' keys and then add extra keys called 'x_canvas', and 'y_canvas', that only matplotlib uses.

Btw, no need to wrap your head around all of that, I mostly wrote it out to understand it myself. I'll go for the alternative solution. For reproduction, it's much more elegant that we return the simulation coordinates.

Now you can try this:
from netwulf.tools import bind_properties_to_network
from netwulf import visualize
import networkx as nx

G = nx.Graph()
G.add_nodes_from(range(10))
G.add_nodes_from("abcde")
G.add_edges_from([("a","b")])

props, config = visualize(G)
config['zoom'] = 0.666

bind_properties_to_network(G, props)
visualize(G, config=config)

works flawlessly now, thanks!

even though config['zoom'] = 0.666 is not necessary anymore now


COMP: Remove cmake* from .gitignore

Having cmake* in there stopped Gokhan Gunay from adding his CMakeLists file to pull request #236 (Addition of PointToSurface metric).

@kaspermarstal Is it still useful for you to have "cmake*" in the gitignore list? Apparently it stopped @gokhangg from adding his CMakeLists.txt !


README unclear post example with syntax error

It's not obvious what so param should mean in README Synopsis post method example.

my $response = LWP::Simple.post("https://somewhere.topo.st", { so => True }

(Maybe sort of tiny Raku joke.)
Anyway, it's missing final );.

After syntax fix, the HTTP request produced is:
POST / HTTP/1.1
Connection: close
Host: <IP_ADDRESS>
User-Agent: LWP::Simple/0.107 Raku/rakudo
so: True

so, the so param is used as additional HTTP header, which might be unexpected.

You are correct, certainly a better example should be shown, something obvious like header1 => ..., header2 => ... is best.

I think yet better would be POST param(s) instead of custom header(s). ;-)

content is a third argument, see https://github.com/raku-community-modules/LWP-Simple/blob/master/lib/LWP/Simple.pm#L54-L56
The module certainly needs a maintainer anyway.


Append "px" to numeric values

Currently if you do this:
<div css={{ fontSize: 12 }} />

It'll resolve to:
font-size: 12

It should resolve to:
font-size: 12px

Should work for all APIs.

I might be not the great idea. What about font-size:1 would mean font-size:12px -> (X-y)*factor+px. Ie font-size:2 would be 14px, or 16px?
In the same way margin:1 become margin:4px - always a multiple of X.
In the same way color: blue becomes atlassian-blue, and grey -> N600

hey reasonable point - i think for now it just needs to behave the same as styled components + emotion to make migration easier.
next step could enable plugins and the like to enable the above ^

Then you have to think how two ccss with different settings might coexists in one file.
Although I think my idea should be linked to the theme issue. But as long as the transformation of a "number" to a "unit" might play a bit role in theming - please don't "fix" the current issue ASAP.

fixed in 5a84023


Update Find Command from AB3

Closes: #117

Implemented FindEventCommand and FindVendorCommand
Updated FindCommandParser
Added Tests

Note:
potential duplication in predicate model, to be addressed in #79
can explore filtering both event and vendor simultaneously since keywords are currently tagged to their prefix
E.g: find v/ abel e/ birthday abel is keyword for vendor list and etc.

On a separate note, I find it very annoying when my search turns up to be nothing and I have to list e/ to view the list of events again. Maybe default behavior for no search found is to filter nothing? So the entire list is still visible

Suggestion Only: Would it be feasible to display a failure message in the console when nothing is found? Then the original unfiltered list can be displayed.
The current method of displaying the results is more intuitive but might be more clunky if the user plans to go fast.
If the entire list is still visible, the user might misunderstand it as "results were found". The console message might not be enough to notify the user.

Seems like it can only filter for exact keywords, search for "a" won't return "Saturday". Find also only look at names, searching for dates and phone number doesn't work. Should we modify it work for those either?

@hanscau would change the filter implementation, but caveat is that  would not be counted as part of the keyword as  is used as a delimiter for keywords. (So not exactly what you think is Ctrl F). I would prefer if extending searching for dates and phone number is done in a separate PR, after I done #79.

On a separate note, I find it very annoying when my search turns up to be nothing and I have to list e/ to view the list of events again. Maybe default behavior for no search found is to filter nothing? So the entire list is still visible

Since this is the consensus I would switch to this as the implementation.

@hanscau partial keyword matching and error message implemented
If #124 resolves the naming and
ok to work on finding in date and phone number as a separate issue
I think we can resolve the conversation and ready to merge after review


Update gitea and create shell variable

The current gitea version is updated to 1.7.5.
And now you are able to customize the shell of your gitea user.
Issue 14

Nice thank you :)


at wiki , Pls reupload correct images which  are not loading for "Deploying from VSTS CD pipeline to Kubernetes in ACS" sections

Hi General,
Below navigation wiki page,  images are not loading for "Deploying from VSTS CD pipeline to Kubernetes in ACS" sections as

Wiki section, Navigation -
Looking into "dotnet-architecture/eShopModernizing" github code repo and navigating to "04. How to deploy your Windows Containers based apps into Kubernetes in Azure Container Service (Including CI CD)" wiki section (https://github.com/dotnet-architecture/eShopModernizing/wiki/04.-How-to-deploy-your-Windows-Containers-based-apps-into-Kubernetes-in-Azure-Container-Service-(Including-CI-CD))
pls, reupload correct images.
Thanks,

fixed


Can't use command

cmd message
Active code page: 65001
BACKING UP SETTINGS
Logged in as
Werewolf
542775053108903947
------
Ignoring exception in on_ready
Traceback (most recent call last):
  File "C:\Users\jxlah\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "bot.py", line 91, in on_ready
    for role in client.get_server(WEREWOLF_SERVER).role_hierarchy:
AttributeError: 'NoneType' object has no attribute 'role_hierarchy'

already downloaded asyncio and discord.py but no commands work.

I believe you failed to set up config.py completely? It doesnt look like put in the server ID for WEREWOLF_SERVER.

I believe you failed to set up config.py completely? It doesnt look like put in the server ID for WEREWOLF_SERVER.

ah, can't believe i missed that. works perfectly now thanks!


When will there be a 1.3 tag? (currently 1.2 fails on FreeBSD)

The problem is that FreeBSD Python does not support the code containing import distutils;  to access distutils.sysconfig for the Python library path. I see that this code has been changed by https://github.com/berdario/pew/commit/cf6c2204750d17a0bf2974df4d3263c20ef3ca1d
Manually applying the patch allows pew to function.
Since FreeBSD Python ports all use PyPi for source downloads, it would need a new tag and new upload to PyPi to be able to fix this properly. Thanks.

Hello @tjanez do you know if there is any plan to tag a newer version and update PyPi?

I think @berdario is the only person who can do a new release,

Yes, I don't have access to Pew's PyPI so even if I could do a new tag on GitHub, I couldn't do a release on PyPI.

and he's not been very active here in quite a while. So I don't know if a new release is likely any time soon.

Agreed...