text:
Any base to any base | Question

Greetings sir/Mam,
I would like to contribute the code for this issue in C++/CPP.
The code is ready. I have added the code , along with proper explanation of the algorithm , test cases , time complexity and space complexity of the same, as per the guidelines.
Kindly assign it to me.
This is regarding GSSOC'21.
Regards,
Hitain Kakkar

/assign

/assign

/assign

repo: Algo-Phantoms/Algo-Tree


text:
Carthage Support

Please provide this

SwiftGen is a tool not a framework so it wouldn't make sense to provide Carthage support.

source: gharchive/issue

authors: AliSoftware hardikdevios

repo: AliSoftware/SwiftGen

license: mit

license_type: permissive

license_source: bigquery


text:
Track TradeDesk

Example site - https://direct.asda.com/george/clothing/10,default,sc.html
Vendor site - https://www.thetradedesk.com/us
Detection - look for https://js.adsrvr.org/universal_pixel.1.1.0.js
You an also look for js object - ttd_dom_ready and TTDUniversalPixelApi

Hey there , added.

repo: AliasIO/wappalyzer


text:
danielsf/rgb/shader/230602

This PR adds the ability to create shader code for an RGB image into the ImageLayer class.
I moved the functions to actually create shader code into a separate shader_utils modules, since they don't actually depend on any data carried around by the ImageLayer instance.
Just for the sake of posterity:
Here is an example of this shader code working "in the wild"
https://bit.ly/45tDipN
it depends on the name of the channel axis in .zattrs ending with a ^. There's a bug in neuroglancer with respect to that behavior (or a bug in my understanding of what neuroglancer should be doing). That is being hashed out here
https://github.com/google/neuroglancer/issues/467

The correct way to deal with neuroglancer's requirement that channel dimension names end with a ^ is to rename the dimension in the JSON cofiguration using the layers.source.transform.outputDimensions field as in
{
  "dimensions": {
    "z": [
      0.00001,
      "m"
    ],
    "y": [
      0.00001,
      "m"
    ],
    "x": [
      0.00001,
      "m"
    ]
  },
  "position": [
    0,
    8801.267578125,
    -9698
  ],
  "crossSectionScale": 29.828206475455083,
  "projectionScale": 32768,
  "layers": [
    {
      "type": "image",
      "source": {
        "url": "zarr://s3://neuroglancer-vis-prototype/VERSA/scratch/0500408166/",
        "transform": {
          "matrix": [
            [
              1,
              0,
              0,
              0,
              0
            ],
            [
              0,
              1,
              0,
              0,
              0
            ],
            [
              0,
              0,
              1,
              0,
              0
            ],
            [
              0,
              0,
              0,
              -1,
              0
            ]
          ],
          "outputDimensions": {
            "c^": [
              1,
              ""
            ],
            "z": [
              0.00001,
              "m"
            ],
            "y": [
              0.00001,
              "m"
            ],
            "x": [
              0.00001,
              "m"
            ]
          }
        },
        "subsources": {
          "default": true,
          "bounds": true
        },
        "enableDefaultSubsources": false
      },
      "tab": "rendering",
      "shader": "#uicontrol float red_channel slider(min=0, max=1.0)\n#uicontrol float green_channel slider(min=0, max=1.0)\n#uicontrol float blue_channel slider(min=0, max=1.0)\n#uicontrol float normalization slider(min=0, max=255.0)\nvoid main() {\n  float r = red_channel*float(getDataValue(0).value)/normalization;\n  float g = green_channel*float(getDataValue(1).value)/normalization;\n  float b = blue_channel*float(getDataValue(2).value)/normalization;\n\n  if(r>1.0)r=1.0;\n  if(g>1.0)g=1.0;\n  if(b>1.0)b=1.0;\n  \n  emitRGB(vec3(r,g,b));\n}\n",
      "shaderControls": {
        "red_channel": 1,
        "green_channel": 1,
        "blue_channel": 1,
        "normalization": 25.5
      },
      "channelDimensions": {
        "c^": [
          1,
          ""
        ]
      },
      "name": "new layer"
    }
  ],
  "selectedLayer": {
    "visible": true,
    "layer": "new layer"
  },
  "layout": "yz"
}

I believe that the order of outputDimensions must correspond to the order in which the dimensions occur in the zarr image.

source: gharchive/pull-request

repo: AllenNeuralDynamics/aind-ng-link

license: MIT

license_source: github-api


text:
Moon elevation

Discussed in https://github.com/AllskyTeam/allsky/discussions/3716

Originally posted by Daviddb35 July  1, 2024
Hi,
I try to extract the AS_MOON_ELEVATION and AS_SUN_ELEVATION values in /allsky/tmp/allskydata.json with a script.
I noticed that the moon and sun variable do not change at all, despite all other changing.
I do not explore deeper on other variable.
Does anyone have an idea of what is going on ?

Now owrking in v2024.xx.xx

repo: AllskyTeam/allsky


text:
Add block size to information stored in UfsFileStatus

Adds block size info to the UfsFileStatus. This mainly helps HDFS whos implementation of getBlockSizeBytes has 2(!) rpc calls.
This change should be fully backward compatible, but older servers using newer ufs jars will not work (because the constructor of UfsFileStatus is different).
@apc999 A separate question is if we should enforce usage of UFS jars which are on the same version of the server so we don't need to maintain legacy code.
Fixes #10035

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5974/
Test FAILed.

Merged build finished. Test FAILed.

jenkins, test this please.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5978/
Test PASSed.

alluxio-bot, merge this please.

authors: AmplabJenkins calvinjia

repo: Alluxio/alluxio


text:
Support distributed load files to alluxio by a include worker set

Fix #13221
Usage:
bin/alluxio fs distributedLoad / --worker-set host1,host2,host3

Codecov Report

Merging #13229 (ef97c95) into master (4c4ec92) will decrease coverage by 0.03%.
The diff coverage is 12.90%.

@@             Coverage Diff              @@
##             master   #13229      +/-   ##
============================================
- Coverage     43.87%   43.84%   -0.04%
- Complexity     8932     8955      +23
============================================
  Files          1359     1359
  Lines         78176    78379     +203
  Branches       9500     9538      +38
============================================
+ Hits          34297    34362      +65
- Misses        40967    41111     +144
+ Partials       2912     2906       -6

Impacted Files
Coverage Δ
Complexity Δ

...alluxio/cli/fs/command/DistributedLoadCommand.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

...ain/java/alluxio/job/plan/load/LoadDefinition.java
78.46% <25.00%> (-3.80%)
17.00 <0.00> (ø)

...rc/main/java/alluxio/job/plan/load/LoadConfig.java
39.13% <100.00%> (+5.79%)
6.00 <2.00> (+1.00)

.../alluxio/worker/block/io/LocalFileBlockReader.java
63.33% <0.00%> (-2.30%)
8.00% <0.00%> (-1.00%)

...main/java/alluxio/concurrent/jsr/ForkJoinPool.java
30.01% <0.00%> (-1.44%)
61.00% <0.00%> (+3.00%)
:arrow_down:

...e/common/src/main/java/alluxio/grpc/GrpcUtils.java
63.42% <0.00%> (-0.39%)
31.00% <0.00%> (-1.00%)

...ation/fuse/src/main/java/alluxio/fuse/StackFS.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

...in/java/alluxio/fuse/AlluxioJniFuseFileSystem.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

...xio/network/protocol/databuffer/NioDataBuffer.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

... and 23 more

Continue to review full report at Codecov.

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

Codecov Report

Merging #13229 (b4b18c4) into master (bd7c631) will decrease coverage by 26.50%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master   #13229       +/-   ##
=============================================
- Coverage     43.83%   17.32%   -26.51%
+ Complexity     8941     2623     -6318
=============================================
  Files          1359     1359
  Lines         78262    78282       +20
  Branches       9504     9509        +5
=============================================
- Hits          34303    13562    -20741
- Misses        41053    63525    +22472
+ Partials       2906     1195     -1711

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/alluxio/job/plan/load/LoadConfig.java
0.00% <0.00%> (-33.34%)
0.00 <0.00> (-5.00)

...ain/java/alluxio/job/plan/load/LoadDefinition.java
0.00% <0.00%> (-82.26%)
0.00 <0.00> (-17.00)

...alluxio/cli/fs/command/DistributedLoadCommand.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

...mon/src/main/java/alluxio/shell/CommandReturn.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-6.00%)

...mon/src/main/java/alluxio/util/ExceptionUtils.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-6.00%)

...n/src/main/java/alluxio/wire/AlluxioProxyInfo.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-18.00%)

.../src/main/java/alluxio/wire/AlluxioMasterInfo.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-42.00%)

...src/main/java/alluxio/job/meta/JobIdGenerator.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-2.00%)

...n/src/main/java/alluxio/stress/BaseParameters.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-1.00%)

...src/main/java/alluxio/client/UnderStorageType.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-6.00%)

... and 658 more

Continue to review full report at Codecov.

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

@apc999 Thanks for your review and suggestion, the comments are addressed. PTAL

alluxio-bot, merge this please

authors: apc999 codecov-commenter codecov-io maobaolong


text:
Fix Integration tests framework and DoraFileSystemIntegrationTest

What changes are proposed in this pull request?
The LocalAlluxioCluster used in integration tests is broken when Ufs fallback is disable, this PR is used to fix it. The old master and worker liveness detection mechanism is invalid in ALluxio 3.0 arch, this PR also fix it.
Why are the changes needed?
Fix broken tests.
Does this PR introduce any user facing changes?
No.

alluxio-bot, merge this please


text:
[ALLUXIO-3113] alluxio.wire.TieredIdentityTest#matchByStringEquality may failed in some network environments

https://alluxio.atlassian.net/browse/ALLUXIO-3113

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/18723/
Test PASSed.

authors: AmplabJenkins pavelsimo


text:
[SMALLFIX] Replace collections.sort() with list.sort

Change
Collections.sort(workerInfos, (o1, o2)
        -> o1.getNetAddress().toString().compareToIgnoreCase(o2.getNetAddress().toString()));

to
workerInfos.sort((o1, o2)
        -> o1.getNetAddress().toString().compareToIgnoreCase(o2.getNetAddress().toString()));

alluxio-bot, check this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/3429/
Test FAILed.

alluxio-bot, merge this please


text:
getAppWidth/getAppHieght have margins in ui

When spawning objects in the either the right or bottom edges of the ui (meaning using either getAppWidth or getAppHieght)  the objects are placed either slightly away from the edge in case of the right or be slightly below the window in case of the bottom.
This was tested with the official pong tutorial app( see included images), as well as personal apps ( see included code).
To Reproduce you can do one of the following:

Run the pong example
Use the following code( if needed i have other examples with the same results):

`
@Spawns("border")
public Entity createBorder(SpawnData data){
    Path path = new Path();

    path.setStroke(Color.RED);
    path.setStrokeWidth(TILE_SIZE); // In my code 30 but could be any value

    ObservableList<PathElement> elements = path.getElements();

    // Sets Start point
    elements.add(new MoveTo(0,0));

    // Creates border lines
    HLineTo top = new HLineTo(getAppWidth()-(TILE_SIZE/2));
    VLineTo right = new VLineTo(getAppHeight()-(TILE_SIZE/2));

    HLineTo bottom = new HLineTo(0);
    VLineTo left = new VLineTo(0);

    // Actually adds the lines
    elements.add(top);
    elements.add(right);
    elements.add(bottom);
    elements.add(left);

    return entityBuilder(data)
            .type(EntityType.BRICK)
            .viewWithBBox(path)
            .collidable()
            .zIndex(-1)
            .build();

}

`
See the right paddle's margin compared to the left

Ubuntu 20.04.2 LTS 64-bit

Thanks for this. I suspect this is an issue related to window handling on Linux as I recall similar problems in the past. I will see if I can reproduce this in a pure JavaFX app, in which case that will suggest the issue comes from JavaFX, rather than FXGL.

authors: AlmasB milimetron

repo: AlmasB/FXGL


text:
FloatMath.sqrt has been removed from Android SDK 23

The deprecated class has been removed.
"Historically these methods were faster than the equivalent double-based Math methods. On versions of Android with a JIT they became slower and have since been re-implemented to wrap calls to Math. Math should be used in preference.
All methods were removed from the public API in version 23."
http://developer.android.com/reference/android/util/FloatMath.html
The library now needs to use eg. (float) Math.sqrt(pvx_pvx + pvy_pvy);

PR on the way :)

Should be updated in TwoFingerGestureDetector.java indeed.

authors: Almeros dominicthomas

repo: Almeros/android-gesture-detectors


text:
Can not get the account address by browsing the dapp

Why can't I get the account address when I visit uniswap dapp?

You will need to select their walletconnect setting - It should work then. Unfortunately, they have withdrawn support for standard web3 connection.

authors: JamesSmartCell codeFarmL

repo: AlphaWallet/alpha-wallet-android


text:
tweak canceling a subscription on receiving completion, remove storing in cancellable #6220

Closes #6220

Can you point out which part fix the crash?

my bad, this one applying inflight for fetching xml
fixing is here: https://github.com/oa-s/alpha-wallet-ios/blob/bd286f773bb860df03c38cd99de5fb72b1c11629/modules/AlphaWalletFoundation/AlphaWalletFoundation/TokenScriptClient/Models/AssetDefinitionStore.swift#L216

Skip this pr for now

I see. Do you mean to close this PR?

hold this one, maybe we could use something from it or close it

Close for now

authors: hboon oa-s

repo: AlphaWallet/alpha-wallet-ios


text:
为何不集成SQLServer

期待多数据库的支持，例如MySql、SQLServer和Oracle。

关注度上来了，后期再集成吧。
集成多数据库不是难点，只是需要花费时间去做这个事情。

authors: AlphaYu zhoujianwen

repo: AlphaYu/Adnc


text:
🛑 Ritmeester is down

In dc1eaf6, Ritmeester (https://myritmeester.nl) was down:

HTTP code: 521
Response time: 20920 ms

Resolved: Ritmeester is back up in 0f3db4c after 31 minutes.


text:
Wrong working directory when running dbt build

Expected behavior
the dbt command should be run in the actual dbt project directory (where the profile is).
Actual behavior
currently it runs in the workspace root and relative paths to a duckdb-file are wrong.
Steps To Reproduce
click to build a dbt model
Log output/Screenshots
11:02:35  Running with dbt=1.7.4
11:02:35  Registered adapter: duckdb=1.7.0
11:02:36  Found 31 models, 24 sources, 0 exposures, 0 metrics, 506 macros, 0 groups, 0 semantic models
11:02:36
11:02:36
11:02:36  Finished running  in 0 hours 0 minutes and 0.04 seconds (0.04s).
11:02:36  Encountered an error:
Runtime Error
  IO Error: Cannot open file "/workspaces/automation-data/../cmdb.duckdb": Permission denied

Operating System
Ubuntu 22.04
dbt version
1.7.4
dbt Adapter
duckdb
dbt Power User version
30.1
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

this used to run for a couple of days the last week or so but is broken again since a couple of days.

@OneCyrus  could you please let us know which version was previously working and which version you are currently using?

@anandgupta42 i just tried to identify the broken versions and the PRs which changed the behavior.
... latest doesn't work
0.31.6 - doesn't work (PR #895 likely braked it again)
0.31.5 - works
0.31.4 - works (PR #880 likely fixed the issue)
0.31.3 - doesn't work
... before it didn't work

@OneCyrus Thank you for the detailed analysis. We appreciate your patience and effort. We have identified that we don't have sufficient test coverage for duckdb, and it is the only database that relies on file-based storage. We will work on debugging this issue today and will get back to you as soon as possible.
Thank you again for your help.

Also, do you have the steps to reproduce the issue or a sample project that we can use to debug?

i'll see if i can create a sample project. the main issue is that the duckdb file is referenced relative to the project.
basically the following config is sensitive to the working directory. as we have a shared duckdb for multiple projects we need relative paths. this works perfectly fine with the dbt commandline when executing in the dbt project folder. also triggering from dagster works as well.
workplace:
  target: local
  outputs:
    local:
      type: duckdb
      path: ../cmdb.duckdb
      schema: workplace

We need to make a decision to set the CWD to the project directory, the issue why we removed that is quite an exotic one.

@mdesmet any decision yet? this blocks us from materializing dbt models with the extension

Actually the CWD is set to the workspace root. Maybe you can just adapt you relative paths to accommodate for that?

authors: OneCyrus anandgupta42 mdesmet

repo: AltimateAI/vscode-dbt-power-user


text:
User Migration : Migrate users with roles to another CH

Hi, we plan on selfhosting another CH for scale-test purpose  and want to migrate all users to the new CH aswell, we have been using api calls to create users which do not add into the config maps , hence passwords for users are not available.
Is there a way to migrate all users using a query to another CH with the roles they have.

@akshayparseja , yes, you can do it with https://github.com/Altinity/clickhouse-backup/, see --rbac-only option.
If you are using operator, you need to deploy clickhouse-backup as a sidecar. See podTemplate example here: https://github.com/Altinity/clickhouse-operator/blob/master/tests/e2e/manifests/chit/tpl-clickhouse-backups.yaml

i already have a clickhouse backup running, i am skipping tables like system and information, if i want to perform the users migration , i shall back those aswell right?
or a DB backup includes user roles and credentials to migrate

Users are not stored in system tables. System tables are more like 'views'. Users can be stored in configuration (in this case it is a part of CHI spec), local storage or replicated storage (Zoo)Keeper.
In latter cases DB backup includes all RBAC data, including users and roles. And you can backup only RBAC (no data), using --rbac-only flag.

I did a complete remote_restore into another clickhouse, the restore of tables views looked fine but when i checked with show users, i did not see any user being restored.
Also tried logging in with one of test user from the actual clickhouse which backup I used to restore into the new one. Gave me Auth failed error. So not sure how to do a user migration along with its data. .
There were no errors in logs for clickhouse-backup when i performed restrore .

@akshayparseja which clickhouse-backup version do you use? how did you create users via SQL or via YAML / XML?

@Slach Hi,
I am using latest image
            image: altinity/clickhouse-backup:latest

Also the users i am trying to migrate were created via the yaml of clickhouseinstallation . Under the Users: Section
But in my actual use case we have users created via sql aswell as yaml so we need to migrate all users irrespective .
This check is being done between two dummy clickhouses with data and a few users.

Also the users i am trying to migrate were created via the yaml of clickhouseinstallation

Is your destination clickhouse cluster also managed by clickhouse-operator?

yes, both my clusters are using operators and both have clickhouse-backup running as a container along with the actual clickhouse.

In this case, clickhouse-backup allows only restore data.
You need just copy / paste YAML users definition from source kind: ClickHouseInstallation to destination kind: ClickHouseInstallation manifest

--rbac and --rbac-only applicable only for SQL created RBAC objects, not for YAML
Which command you executed?
restore_remote --rbac-only?
or
download
+
restore --rbac-only ?
you need to
create_remote --rbac-only if you want backup only RBAC objects

you didn't read my comments --rbac-only will not applicable for your use case, cause you create users via .spec.users
about 660gb look https://github.com/Altinity/clickhouse-backup/issues/1042

Hi, there were a few users which were created via sql , so I migrated those using the clickhouse-backup and it worked fine but ended up downloading 600gb in its local and then it took rbac only restoration.
I ran restore_remote with --rbac-only thinking it would download a few kbs or mbs since its rbac only .
Maybe thats because my orignal backup was a full backup of data+users leading to this but it would be better if we could restore users only from a whole data backup (i.e backup which is not created with --rbac-only)
Thanks for all the assistance :D , was able to complete the migration

try to use create_remote --rbac-only + restore_remote --rbac-only

authors: Slach akshayparseja alex-zaitsev

repo: Altinity/clickhouse-operator


text:
V8 feature/304 support custom button

Description
Introduce actions endpoint for use by custom buttons
Related Issue(s)

#304

Verification

[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
[x] Relevant automated test added (if you find this hard, leave it and we'll help out)
[x] All tests run green

Documentation

[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

🕹

authors: ivarne tjololo

repo: Altinn/app-lib-dotnet


text:
Merge pull request #1 from AmaroJunior98/master

upd  interação

Ok


text:
Low memory available, stability problems may occur

When I build the project for the Arduino Nano I see the following output in the Arduino IDE:
Sketch uses 18280 bytes (59%) of program storage space. Maximum is 30720 bytes.
Global variables use 1882 bytes (91%) of dynamic memory, leaving 166 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.

This is a problem, as it means the stack is nearly completely used up by global variables, so local variables in any scope or code section could potentially overflow the stack really easily. I think I can do some code cleanup to fix this, perhaps by moving strings to progmem with the F() macro, or using other coding techniques.  I'll have a look at the code.
Read more on the F() macro here:

https://www.arduino.cc/reference/tr/language/variables/utilities/progmem/
https://www.baldengineer.com/arduino-f-macro.html

For me, that warning went away with commit ae4205c.. on Apr 6.
Building the Apr 6 version for a Nano:
Sketch uses 17810 bytes (57%) of program storage space. Maximum is 30720 bytes.
Global variables use 1518 bytes (74%) of dynamic memory, leaving 530 bytes for local variables. Maximum is 2048 bytes.

But it looks like the Apr 8 reformatting/cleanup commit apparently reverted the changes of the three previous commits.
Additionally, the F() macro is getting clobbered by redefining F for use as a PID parameter:
#define F 5               // motion control feed forward
I've changed the PID parameter #define to FF to work around this.

Are you working with the team? Making one of these solo with their code? Something else?

But it looks like the Apr 8 reformatting/cleanup commit reverted the changes of the three previous commits.

That's important. That's too bad. Using git is a fairly complicated skill so it's easy to mess up.

Additionally, the F() macro is getting clobbered by redefining F for use as a PID parameter:
#define F 5 // motion control feed forward
I've changed the PID parameter name to "FF" to work around this.

Good to know. We need to fix this. I'm about to start cleaning up the code but my first 2 PRs already touch like 230 files or something, so until they merge I'm afraid to change too much more. I'll end up touching nearly every line by the time I'm done and I don't want to mess up work underneath them.
My 2 PRs waiting now are #18 and #20.

If you're working on the code right now, watch out for my changes! If so, you should pull my #20 branch right now and rebase on top of it. Let me know if you're working on stuff so I can be aware.

Good to know of your work and PRs.  I haven't submitted any PRs (yet); just trying to modify the released code slightly to work with our build (I'm part of a small team working to recreate the device for use in Alaska). Aside from the already-mentioned macro issue, I'm using a different LCD panel (NHD-0420D3Z 20x4) and have written a minimal library to use it with this code.
From what I can tell, the Apr 8 commit (a480902) reversed the changes made in commits 352b36a, e8fb1d9, and ae4205c. Here's the point right before those changes were reversed; this is what I'm currently working with: https://github.com/AmboVent/AmboVent/tree/352b36a447adc2dabcf7890711da37fb903b46d6

just released a new ver. that returned the lost functionality (accepted a PR that suggested readability improvements without noticing it was based on old ver.)
in this version -

improved the code structure, memory use (75% now.. still warns.. but it is much better)
added some new functions
- press test once during standby to run one cycle
- ability to calibrate the env. pressure from the maint menu
- option to set the breath cycle movement time

Hi, thank you guys for your input, @giorakor improved the code a lot from the last commit and fix the merge #14 that was based on older version

I have just today  submitted  a new pcb . I plan on porting  the code to esp32 all the Libs used seem to be supported. A simple next gen pcb  will be esp32 no memory shortage and not running 24bit math on a 8 bit ATmel.  This is my solution a hardware upgrade for me to replace the nano with a esp and Jtag can start  if needed.
I  can have that version done by the end but I only have one ESp32-wroom that I can debug with .
I have a Jtag cable so it is normal code development  with breakpoints.
Sorry if it is a 10 pound hammer solution.

@Arie001, the real problem was coding. Simply using progmem and the F() macro could decrease RAM usage from 90% to 30%, for instance.

Note: please don't close this issue until at least all strings have been surrounded by the F() macro and all large const arrays or structs (if any) have been moved to progmem.

I have just today submitted a new pcb . I plan on porting the code to esp32 all the Libs used seem to be supported. A simple next gen pcb will be esp32 no memory shortage and not running 24bit math on a 8 bit ATmel. This is my solution a hardware upgrade for me to replace the nano with a esp and Jtag can start if needed.
I can have that version done by the end but I only have one ESp32-wroom that I can debug with .
I have a Jtag cable so it is normal code development with breakpoints.
Sorry if it is a 10 pound hammer solution.

Porting the code to esp32 you might experience issues with ADCs on esp32.  The ADC values are non-linear. You get the same ADC resolution for high and low voltages. Then also the error between actual measurement and value measure by ADC is about 10%

I do not know where you get your esp32  or but a esp can read a2d Just Fine no where near 400 counts error   If all it has to do is measure a a2d of a pot . Advise a rc filter cap on the a2d pin  so are you saying .And No at 0db is not the same as -3db put into the same a2d
We are talking about memory  92% vs 5%
Platform IO
RAM:   [=         ]   5.2% (used 17076 bytes from 327680 bytes)
Flash: [==        ]  18.8% (used 246093 bytes from 1310720 bytes)
i2C 4 Leds  3 switches 3 Pots and a analog  feedback   is not pushing the limit  . It is alive on the uart at 115200

I do not know where you get your esp32 or but a esp can read a2d Just Fine no where near 400 counts error If all it has to do is measure a a2d of a pot . Advise a rc filter cap on the a2d pin so are you saying .And No at 0db is not the same as -3db put into the same a2d
We are talking about memory 92% vs 5%
Platform IO
RAM: [= ] 5.2% (used 17076 bytes from 327680 bytes)
Flash: [== ] 18.8% (used 246093 bytes from 1310720 bytes)
i2C 4 Leds 3 switches 3 Pots and a analog feedback is not pushing the limit . It is alive on the uart at 115200

Wow..  Makes a lot of sense...  Seems like you're done porting it to esp32

I do not know where you get your esp32 or but a esp can read a2d Just Fine no where near 400 counts error If all it has to do is measure a a2d of a pot . Advise a rc filter cap on the a2d pin so are you saying .And No at 0db is not the same as -3db put into the same a2d
We are talking about memory 92% vs 5%
Platform IO
RAM: [= ] 5.2% (used 17076 bytes from 327680 bytes)
Flash: [== ] 18.8% (used 246093 bytes from 1310720 bytes)
i2C 4 Leds 3 switches 3 Pots and a analog feedback is not pushing the limit . It is alive on the uart at 115200
would you mind sharing the code and pcb design

off topic
The ESP32 has a native range of 1.1v Full so 1.1/4096 is scale if you measure on 3.3v full scale it is 3.3 /4096 -6db . To say the error is the same no matter if I use 1.1v or 3.3v shows a lack of Knowledge.Do you claim I put 500mv dc onto a a A2D I get  either 450mv or 650mv no matter if I am on a 1.1v range ore 3.3V.The Error is the same no matter The Range.The a2d in not 100 Linear
I Know that.If you look people are able to measure 0.02v . 12 years back when I worked for Intel the Chips were not 100% Linear I debugged  many a A2D problem on old LTX VLSI testers.
Been there done That .
On topic
my code is the same  code as the this project   imported  to platform io  I changed  the the servo library  to  https://www.arduinolibraries.info/libraries/esp32-servo  it did not compile  it had issues with the variable  called index char * to int conversion  fail . I renamed Index  Index_arie  it compiled .download. I only have esp32 bare modules not a devkit .
For Idea  of  how I will be doing the circuit  please see
https://arie-lashansky.info/corona/carona_HX711.pdf
My Style is  to be very careful  Esp   top right
2esp pots page 1 bottom left  dual  pots below esp ( Backup Motor feed Back too)
2 voltage monitors  ( no hx711 the pressure sensor is  is not nxp but the )
2te sensor  one on 3v one 3v Aux one to main esp 1 to Aux
2 power supply  may be the idea on page 2.
Display  is a TFT 2.5 inch or 3.2 Inch spi  touch  display.
Who knows I may even look at a second full mechanical  backup.second Ambo bag
As my Input is not wanted or needed here. I all allowing myself  to diverge from the design  done by the 40 experts engineering and medical experts .
From my circuit  my style is clear no way in hell will I put a pull up to 4.7k pull up to 5v on a device  that  the datasheet says max IO voltage in VDD . I put two sensors in the box and  box not 1 .
https://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Data+SheetMS5803-01BAB3pdfEnglishENG_DS_MS5803-01BA_B3.pdfCAT-BLPS0038   ( page 5  max allowable voltage on pins SCL and SDA)
Note  Jumpers  allow cheap and 100% backup ( They are  be wire links)
It is a Question  of how you view your design  . I am not a mechanical engineer and my software skills are limited .
Just a unemployed  Electronics person that has over 30 years no second degree in Engineering not
doing a Public relations  exercise for  Israeli defense company of Magaen David Adom
Who I am is clear where I come from is clear I have even added my resume the one that
has not found work in over a year and note even my resume is clear I do not Lie and call myself
things I am not qualified like a Degree engineer.
Who I am is clear as daylight did I know a closed pcb was in the works for this design yes.
was if part of the Idea to fork the design yes most definitely. Part of open source design
nobody owns the IP.
Did I need need to generate my own DXF  Yes never done before my me in a design where I was
unable to get DXF.
I my pcb missing a mounting hole in the bottom right corner  Yes  no hole in the metalwork.
Is my Switch to near to the mounting  hole (Test ) I did not put switch  in that position Ambovent did.
Have I uses witches with a 8mm head not 6.5mm yes  No cheap option  Alpms .
Mix This the two pcbs  below remove the (nxp pressure sensors and Arduino). I will be a 4 layer board.3v 3vaux 5v and 5v_aux  12v 12aux on split planes.
https://grabcad.com/library/ambervent_pcb-baisic-placement-1
https://grabcad.com/library/pcb-exported-from-kicad-1
This is placement of the extender
arie_lashansky_cv.docx
carona_HX711.pdf

As my Input is not wanted or needed here. I all allowing myself to diverge from the design done by the 40 experts engineering and medical experts .

Hey we didn't say that. I'm just a random guy who started poking at this project a few days ago--not part of the team. All I know is, before I go changing something I have no control over, I'd like to get the code cleaned up. My goal: clean the code. Make it robust. If I do that. I will be happy. Based on what I see, the Nano is more than adequate. So...back to cleaning the code and making it better. They did a great job, I just want to contribute what I can.
And I hope you can find good work. Remember to use LinkedIn, network, and practice interviewing skills. Also have a solid resume and showcase your skills with past and present projects--personal or otherwise.

off topic
The ESP32 has a native range of 1.1v Full so 1.1/4096 is scale if you measure on 3.3v full scale it is 3.3 /4096 -6db . To say the error is the same no matter if I use 1.1v or 3.3v shows a lack of Knowledge.Do you claim I put 500mv dc onto a a A2D I get either 450mv or 650mv no matter if I am on a 1.1v range ore 3.3V.The Error is the same no matter The Range.The a2d in not 100 Linear
I Know that.If you
my code is the same code as the this project imported to platform io I changed the the servo library to https://www.arduinolibraries.info/libraries/esp32-servo it did not compile it had issues with the variable called index char * to int conversion fail . I renamed Index Index_arie it compiled .download. I only have esp32 bare modules not a devkit .

Had the same issue while porting to esp32 yesterday, the servo, and LCD libraries are incompatible..
Still  had the issue with Index on line 138.. I think it should be renamed to something else on the main code for people who will want to port the code to other platforms

Please open a new issue and link to it here. I need some clarity. What variable where needs to be renamed to what, due to what error?
Here's line 138: https://github.com/AmboVent-1690-108/AmboVent/blob/master/3-Software/Arduino/ventilation_machine/ventilation_machine.ino#L138

I renamed the Index Issue as part of my Debug in getting it to compile I do it often to find where I have made changes. It is a way of me finding my Changes it is part of my workflow. I do not leave it that way.To search and replace Index_arie with Main_index is simple . It is part of debugging.
Index is in 24 places in the code that is about 750 lines I use that method for Debug why do you think I am not uploading the code . I do not even Know on what Lib Index  was defined Char*
The Time was spent to see the memory Footprint  no more no Less . I am not a Embedded Software
person. If I touch Code that I have not Read or tried to understand  any Line I mark with my name saves me getting mixed up.
I am working in a environment called Platform IO on Visual Studio code on a Part ESP32 not related
to Arduino Nano  Atmel. Why Open a Issue where the Issue was created by me Porting From Arduino Ide to Platform IO it is a issue for me nobody else, Like the person looking for
I needed to Change Sevo. to the ESP version  the simple solution was the one I took it.
My design I have not even decided if I want to use a base esp like my Hx711 or a module or if
I want to make it hardware redundant like the HX711 why open Issues that do not exist
The Part from the Sevo32 Lib is not the problem but shows how hard it is to Find

This is all I wanted to see no more no less

This issue can be closed current version  only uses 1k so 1k Free
https://github.com/AmboVent-1690-108/AmboVent/tree/master/3-Software/Arduino/ventilation_machine

authors: Arie001 ElectricRCAircraftGuy Xexnon giorakor jsodergren nimrod46

license: Unlicense


text:
Not enrolling

Hi, great work, I dont get any error but script keeps trying to enroll the first link and it cant. I try with/without cookie and get the same result. Thanks

yea. the same issue is happening with me. did you find any solution or is there any other script that you find working?

i think it gets stuck if the coupon is expired or not working. please update it. your code is good, others have login issues.

ya it is not enrolling @AmmeySaini

authors: DTOMcubano adarsh-goel saifeealii

repo: AmmeySaini/Udemy-Paid-Courses-Grabber


text:
reccording and trail , pylint improvment

tested successfully

soo far

dsadaasda

repo: Amporu/SparkVerse


text:
Feature request: Adding custom categories

This is an amazing resume builder. However, I would love the ability to split the work experience section into a "Data Science Experience" section and a "Work Experience" (i.e. oddjobs) section. Would it be possible to implement a feature that allows custom categories to be added?

Interesting. I was contemplating working on this as I was confused what could people need extra sections for. Do you see any other need for custom sections? It helps me in understanding how to model the schema in a free-form way.

Based on other resume builders I've used, I've seen extra sections for patents, publications, volunteering, extracurricular activities, and internships. I think 99% of the time, however, these sections model the schema of one of your already existing sections. I'm not a web developer but if it was up to me, I would have a button for adding a custom section and then a dropdown menu to choose the type of schema to use based on one of your already existing sections.
Hope this helps.

Helps very very much, thank you for the clear thought! 👍🏻

Great idea! Thanks!

authors: AmruthPillai Ketsueki2b rohitrvenkat

repo: AmruthPillai/Reactive-Resume


text:
⚠ DSO-API has degraded performance

In 82d149c, DSO-API ($SITE_URL_DSOAPI) experienced degraded performance:

HTTP code: 200
Response time: 15977 ms

Resolved: DSO-API performance has improved in a0a143c after 3 minutes.

repo: Amsterdam/amsterdam-uptime


text:
[BUG]: Chicken crash

Does an issue already cover this?

[X] I have searched for any existing issues, and didn't find any.

Does your system support Faster Random?

[X] I have checked that my JVM supports Faster Random 3.0.0+.

Issue description.
Chickens randomly crash on my server. Neruina caught it so it didn't actually crash and I just put in the error it gave me.
Issue replication.
We just have multiple chickens crammed in a space for egg production and they very occasionally crash. Not sure how many other mods and such are involved.
Log File / Crash Report (if applicable)
https://gist.github.com/mxnmnm/4948b04b62efd7a7ca17b63f8e09ae74

Looking at the source code for MC, it doesn't look like this is possible in vanilla (nothing that's relevant to the chicken calls with a bound that could become negative). This is likely a mod conflict of some sort, but I don't know what mods you have running.

I am running A LOT of other mods and I'm not sure how to consistently reproduce the issue in a way that's testable within a reasonable amount of time :/

Other than your standard binary search do you have any ideas of what mods might be causing this? I'll send a list of the mods I have but considering how many there are I'm not sure it'll be that helpful

https://gist.github.com/mxnmnm/1cb1f8d192b17fa377b45cec84500c03

I don't really know what it could be. All the stacktrace you have really says is "something called aiStep() on a chicken and made Faster Random generate a negative number." Using GitHub's code search showed nothing, so chances are it's a smaller/closed-source mod that I probably won't be able to track down, and Neruina doesn't give enough information on what is adding the offending nextInt() call.
In Minecraft's source, nextInt is only called once with a constant, positive bound within the whole method hierarchy for tickMovement()/aiStep(), so I'm sure that some lesser-known mod is causing this. I'm closing as 'not planned' for now, as this might not even be a bug with Faster Random itself.

So some more interesting info: This only happens on dedicated servers

The chicken logic would only occur server-side anyways. But this should be triggerable in singleplayer/LAN too.

authors: AnOpenSauceDev mxnmnm

repo: AnOpenSauceDev/FastRandom


text:
Multiline requests don't support protocol

A request like
GET https://httpbin.org
  /get

sends a request to https://httpbin.org/get => ✅

Adding the protocol breaks the request:
GET https://httpbin.org
  /get HTTP/1.1

sends a request to https://httpbin.org/get%20HTTP/1.1

:-) yes, more or less a known issue. I was too lazy to implement it for every line.if you add the protocol in the first it will work. I will fix it.

I have fixed it. Just for info but specifying the protocol is not mandatory unless you want to make sure that the CLI (default v2) uses the same Http version as the extension in vscode (default 1.1)

Nice. Thanks a lot.

authors: AnWeber hffmnn

repo: AnWeber/vscode-httpyac


text:
Grape edge prediction # edges reported

Hi!
I am using edge prediction evaluation and LogisticRegressionCVEdgePrediction for my graph, which has the following:
print(f"Number of edges in graph: {len(graph.get_edge_node_ids(directed=False))}")
Number of edges in graph: 4541
print(f"Number of nodes in graph: {len(graph.get_node_ids())}")
Number of nodes in graph: 1875.
However, when I run edge prediction evaluation:
results = edge_prediction_evaluation(
holdouts_kwargs=dict(train_size=0.8),
graphs=graph,
models=LogisticRegressionCVEdgePrediction(max_iter=500),
number_of_holdouts=1,
node_features=model
)
where model = Node2VecSkipGramEnsmallen(embedding_size=EMBEDDING_SIZE,walk_length = WALK_LENGTH,return_weight = RETURN_WEIGHT, explore_weight=EXPLORE_WEIGHT, iterations=NUM_WALKS).fit_transform(graph)
I find that the results report:
nodes_number: 1875
edges_number: 9082
I was wondering why the prediction is reporting double the number of edges than are actually present in the graph? Thanks!

You are most likely predicting an undirected graph, which is a graph where interactions go in both directions. So it is providing the prediction in both directions.

repo: AnacletoLAB/grape


text:
CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_0cul59ubkz/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_0cul59ubkz/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_0cul59ubkz/clone/recipe/meta.yaml:39: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_0cul59ubkz/clone/recipe/meta.yaml:39: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_0cul59ubkz/clone/recipe/meta.yaml:39: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_0cul59ubkz/clone/recipe/meta.yaml:39: missing_description: The recipe is missing a description
Errors were found

authors: anaconda-pkg-build bkreider

repo: AnacondaRecipes/pytest-dotenv-feedstock


text:
V2.0.1 osx-arm64 GPU

Currently testing build, will update description when passing
Also needs rebasing once v2.0.1 CPU PR is merged

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_3b36l8ur5l/clone/recipe/meta.yaml:66: build_tools_must_be_in_build: The build tool pkg-config is not in the build section.
WARNING: /tmp/abs_3b36l8ur5l/clone/recipe/meta.yaml:73: build_tools_must_be_in_build: The build tool pkg-config is not in the build section.
WARNING: /tmp/abs_3b36l8ur5l/clone/recipe/meta.yaml:82: build_tools_must_be_in_build: The build tool ninja is not in the build section.
WARNING: /tmp/abs_3b36l8ur5l/clone/recipe/meta.yaml:89: build_tools_must_be_in_build: The build tool ninja is not in the build section.
WARNING: /tmp/abs_3b36l8ur5l/clone/recipe/meta.yaml:99: build_tools_must_be_in_build: The build tool ninja is not in the build section.
ERROR: build.sh:179: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_72gbbqn382/clone/recipe/meta.yaml:22: duplicate_key_in_meta_yaml: The recipe meta.yaml contains a duplicate key
WARNING: /tmp/abs_72gbbqn382/clone/recipe/meta.yaml:66: build_tools_must_be_in_build: The build tool pkg-config is not in the build section.
WARNING: /tmp/abs_72gbbqn382/clone/recipe/meta.yaml:73: build_tools_must_be_in_build: The build tool pkg-config is not in the build section.
WARNING: /tmp/abs_72gbbqn382/clone/recipe/meta.yaml:82: build_tools_must_be_in_build: The build tool ninja is not in the build section.
WARNING: /tmp/abs_72gbbqn382/clone/recipe/meta.yaml:89: build_tools_must_be_in_build: The build tool ninja is not in the build section.
WARNING: /tmp/abs_72gbbqn382/clone/recipe/meta.yaml:99: build_tools_must_be_in_build: The build tool ninja is not in the build section.
ERROR: build.sh:179: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found

authors: anaconda-pkg-build danpetry

repo: AnacondaRecipes/pytorch-feedstock


text:
Included version check in ValidateGlb and added a spec

@lilleyse
Worked on issue #98. Included version check for Glb and added a spec for the same. Have not updated the code for the sensitive test case will resolve the merge conflicts manually and rebase.

@lilleyse In the validateB3dmSpec, is the entire bottom section of the code from function createB3dm(options) deleted?

That area was moved to spevUtility.js so that other files like validateCmptSpec could also create b3dms

@lilleyse for the function createHeaderGlb() do you want me to add that function to validateCmptSpec or keep it in the validateB3dmSpec?

That can also go in createHeaderGlb since it will be used by functions in specUtility.

@lilleyse ok I am closing this PR, rebasing the code and re-starting it.


text:
Cesium3DTileFeature doesn't use the first parameter

https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/Cesium3DTileFeature.js#L46
The first parameter for Cesium3DTileFeature is a tileset, but this parameter isn't used anywhere

This is fixed in https://github.com/AnalyticalGraphicsInc/cesium/pull/4665, so we could just wait until that's merged.

Cool, thanks @lilleyse.  I just opened this issue because I wasn't sure if anyone else caught it.

authors: hpinkos lilleyse

repo: AnalyticalGraphicsInc/cesium


text:
Shadows aliasing

For #2594
Merge #3665 first
I added a few improvements to fix projective aliasing:

Render back faces instead of front faces
Use polygonOffset
Check if the normal is facing away from light (get some soft shading on the edges this way)

This is slightly error-prone if the glTF model does not have a varying called v_normal, it will still render but the back face shadowing will not work.

For testing purposes I added a tower model from http://www.blendswap.com/blends/view/61653.

For directly above light source:
Before:

After:

Is the default shadow map 1K?  The UI says 256, but the aliasing doesn't change when I change it to 1K.

Yeah it's 1024 but says 256. I'm doing some more updates to the UI and I'll be fixing that.

I don't know if it is an issue in this branch or just our glTF loader in general, but the texture doesn't always load.

Submit a bug for later if you want.

Render back faces instead of front faces

Just a note that this will not work for all of our geometry types - walls in particular.  The Geometry and Appearances Sandcastle example shows most of the cases.

Apps/SampleData/models/*

Move each new model to a sub-directory.

For testing purposes I added a tower model from http://www.blendswap.com/blends/view/61653.

This is OK.  Please make sure it is as small as possible and credit it (and any changes you made) at the very bottom of LICENSE.md: http://creativecommons.org/licenses/by/3.0/

I don't know if it is an issue in this branch or just our glTF loader in general, but the texture doesn't always load.

It is working now that I removed references to the normal map.

Is the default shadow map 1K? The UI says 256, but the aliasing doesn't change when I change it to 1K.

This is in my next PR, which is mainly just small UI updates.

authors: lilleyse pjcozzi


text:
Allow promise to url for Cesium terrain, 3d tiles and TMS imagery

@mramato
I looked into adding this functionality to some of the other terrain and imagery providers, but some are a bit more complicated than others.  I figured I'd start with these types and open up another PR with the others if this approach is what we want.

@hpinkos, thanks for the pull request! Maintainers, we have a signed CLA from @hpinkos, so you can review this at any time.
:warning: I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:

Please add unit tests for the rejection use cases.

That's all of the comments I have.  This approach looks like exactly what I had in mind.  Thanks @hpinkos!

@mramato this should be ready now

Update CHANGES.
Just those two comments.  I'm fine with merging this and updating other providers later (unless you have time/desire to update them all now).

@mramato ready

Thanks, I'll merge as soon as this is green.

authors: cesium-concierge hpinkos mramato


text:
Does not show the error in the first task in a loop

Hi, i have created a gulpfile.js looks like below:
// require all the libraries
const gulp          = require('gulp'),
      babel         = require('gulp-babel')
      changed       = require('gulp-changed'),
      prettyError   = require('gulp-prettyerror');

// react source map
const moduleSources = {
  squarebook: {
    src   : './common/modules/squarebook/web/jsx/*.{js,jsx}',
    dest   : './common/modules/squarebook/web/js'
  },
  frontend: {
    src   : './frontend/web/jsx/*.{js,jsx}',
    dest  : './frontend/web/js'
  }
}

gulp.task('babel', function () {
  for(var moduleName in moduleSources) {
    var sourceMap = moduleSources[moduleName];
    var taskName = 'babel:' + moduleName;

    // create the task
    gulp.task(taskName, function () {
      return gulp.src(sourceMap.src)
        .pipe(changed(sourceMap.dest)) // make sure only changed source
        .pipe(prettyError())
        .pipe(babel()) // do the babel
        .pipe(gulp.dest(sourceMap.dest));
    });
    // do the watcher
    gulp.watch(sourceMap.src, [taskName]);
  }
});

gulp.task('default', [
  'babel'
]);

Now that i have tried to create an error on the './common/modules/squarebook/web/jsx/*.{js,jsx}', the error is not displayed. It seems that prettyError only shows the error in the last loop. The watcher is not breaking, but the error is not displayed. Any idea why this is happening?

Sorry, seems like my for loop is the cause of the problem. But still, i do now know why.

#2

authors: AndiDittrich haqqi

repo: AndiDittrich/gulp-prettyerror


text:
Render matrix in latex

Currently matrices in speak-gpt are not renered at all... (The /pmatrix tag)
Probably something to do with this

After evaluatin your problen I haven't noticed any issues with matrix rendering. Maybe you have special case. So can you please provide your example chat input and output si I can deal with this problem? Thanks!
This screenshot represents actual version of SpeakGPT (no changes were made to Markdown renderer since last stable release):

If you still have the issues you can try to compile the projects without minification and obfuscation. To disable minification, open app/build.gradle and set both minifyEnabled and shrinkResources' variables to false`.
Note: For Kotlin DSL variables have the following names: isMinifyEnabled and `isShrinkResources'.

I'm confirming your issue in production track. It might be due code minificatior and obfuscation. Disregard my previous message.

authors: AndraxDev suhan-paradkar

repo: AndraxDev/speak-gpt


text:
Possible conflict with plugin and mobile app - door lock error starting program

I am not sure what the source of the issue is but for the last week weeks I have been seeing issues starting a program, from the mobile app.
What I discovered today is that something is causing an interference with the mobile app starting a program and causing a door lock error to appear after which the cycle tries again to start and this can then repeat a number of times.
I have not tried yet doing this with HA not running, but what I do note is that starting the cycle from the controls on the machine itself has no issue, it's only the api starting a cycle that seems to be affected.
I wanted to raise this here with a suitable title in case others are seeing the same problem.

I have this, too. And wondered, whats the cause.  Subscribing here

authors: raymondjstone rcmcronny


text:
Lista de los env que son usados en el bot para poder hacer una guia eventualmente

process.ENV.WIKI_NAME
process.ENV.WIKI_PASS
process.ENV.TRW_ID
process.ENV.TRW_TOKEN
process.ENV.ACCESS
process.ENV.PORT
process.ENV.GUILD_ID
process.ENV.VERYS

tal vez no son todos pero son los q encontre

Falta el token del bot.

pensive

No lo encuentro

https://github.com/discordjs/discord.js/blob/56e8ef2d38633154540748acb64f4c1305fcc6d3/src/client/Client.js#L136

ok, lo añadire

@AndreMor955 cierra esto pero hazle pin

Hasta que lo incluya en la documentación, pues...


text:
Apps does not open

Im using iphone 11 on IOS 15.4. I downloaded Library Merger from app store. Download has completed. However the app does not open. I click the app, a white screen come up for a quick second and then disappears and i go back to my iphone home screen. I have jw library installed version 14.0.2

https://github.com/AndreasSko/ios-jwlm/assets/142733140/162cde59-afff-42eb-b6e4-14d7619860fb

Hi @Edoval1 , thank you for reporting this issue! It's a bit hard to reproduce this for me, but I'm wondering if re-installing the app might solve it. Have you tried that already? 🙂

Yes, ive try several times
Sent from my iPhone
On Sep 1, 2023, at 3:14 PM, Andreas Skorczyk @.***> wrote:

Hi @Edoval1https://github.com/Edoval1 , thank you for reporting this issue! It's a bit hard to reproduce this for me, but I'm wondering if re-installing the app might solve it. Have you tried that already? 🙂
—
Reply to this email directly, view it on GitHubhttps://github.com/AndreasSko/ios-jwlm/issues/67#issuecomment-1703217376, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCA66VGU4HKLOZLREDFDBNLXYIXZVANCNFSM6AAAAAA3XJ5WGE.
You are receiving this because you were mentioned.Message ID: @.***>

Hi!
I have the same problem exactly. It crashes on start-up or doesn't start I guess.. :/  just gives a quick white blink and disappears.
iPhone 8 Plus
IOS 15.2
JWL v 14.1
Any updates soon?
Would love to be able to merge! =)
Thanks!

Hi
Same issue here
Ipad mini 4
Ios 15.7.9
Jwlib 14.1
Looks like a nice app to have, great idea

authors: AndreasSko Edoval1 SonnyClausen missplinius

repo: AndreasSko/ios-jwlm


text:
Ripple effect

Hi, how can I achieve ripple effect (like in this NuGet: https://github.com/mrxten/XamEffects)?
I'm creating a custom list and existing ListView is xamarin displays ripple effect while item is pressed (at least on android). I want to to exactly the same effect. Is it possible with this NuGet (preferably without custom code)?

Hi, yes. Use "NativeAnimation = True". That's it

authors: AndreiMisiukevich maxkoshevoi

repo: AndreiMisiukevich/TouchEffect


text:
a error "images_with_text.json"  happen

Thank you for your codes, it is a good work! When I run the performance.py, a error "images_with_text.json"  happen. But I find that this file not in the goolge share and not find the Code that Generate this file. How to get or Generate  this file ?
Thank you very much!

@zpfinley
This JSON file contains a subset of the test set that includes images with or without scene text. This file can be generated by running any OCR engine to detect whether scene text is found or not (and the results may change depending on the accuracy of the OCR), however, it is just to evaluate the performance of the model on a specific setting.

authors: AndresPMD zpfinley


text:
Rename, and other things like that

Maybe possibility to rename without refresh the page?

A page refresh is a pretty simple way to rename your nickname, otherwise it would cause identity confusion. An announcement like "relogging as feliwyn2" before a refresh would probably be sufficient in a conversation.

Yeah, but the history?

@feliwyn there's no history in Hack.Chat nothing you say is saved on a server !!

authors: AndrewBelt FouadWahabi feliwyn


text:
Package fck-nat as a .deb and .rpm

Depends on #5

Do you plan to use FPM 1 for building the packages?
FPM could built both formats.

@shakalandy Begrudgingly, yes, I'll probably use FPM. FPM doesn't support packaging systemd services in both formats, but it can be hacked together. FPM is a massive pain to use (although less pain than the alternatives), but hopefully this is a "write once, never touch again" situation (famous last words).

Resolved by e99fa77199378b820e9d0d5dfc88deb24abd3d08

authors: AndrewGuenther shakalandy

repo: AndrewGuenther/fck-nat


text:
Raise error if search() fails

Hi,
I'm working quite a lot on vim-elixir at the moment. It uses the following code:
  def syntax(content, pattern)
    with_file content
    # move cursor the pattern
    @vim.search pattern
    # get a list of the syntax element
    @vim.echo <<~EOF
    map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
    EOF
  end

This works good enough, if the pattern actually exists. Otherwise the cursor won't move and it reports the syntax groups from column 0. But if the pattern isn't found, it should return [] instead.
What's the best way to achieve this? I guess this needs to be fixed so that search() does a remote_send() that catches errors?

Hmm. The search method types in /<pattern>, which is why it doesn't capture errors. Invoking it as a command, however, does the trick:
irb(main):009:0> $vim.command(':/existing')
=> ""
irb(main):010:0> $vim.command(':/nonexisting')
Vimrunner::InvalidCommandError: Vim:E486: Pattern not found: nonexisting
	from /home/andrew/.gem/ruby/2.3.1/gems/vimrunner-0.3.3/lib/vimrunner/client.rb:193:in `block in command'
	from /home/andrew/.gem/ruby/2.3.1/gems/vimrunner-0.3.3/lib/vimrunner/client.rb:192:in `tap'
	from /home/andrew/.gem/ruby/2.3.1/gems/vimrunner-0.3.3/lib/vimrunner/client.rb:192:in `command'
	from (irb):10
	from /home/andrew/.gem/ruby/2.3.1/gems/vimrunner-0.3.3/bin/vimrunner:10:in `<top (required)>'
	from /home/andrew/.gem/ruby/2.3.1/bin/vimrunner:23:in `load'
	from /home/andrew/.gem/ruby/2.3.1/bin/vimrunner:23:in `<main>'
irb(main):011:0>

Alternatively, you could call the function search():
irb(main):015:0> $vim.echo("search('existing')")
=> "3"
irb(main):016:0> $vim.echo("search('nonexisting')")
=> "0"
irb(main):017:0>

Admittedly, in this case you'd need some escaping of quotes, but I think it wouldn't be that hard to encapsulate it.
Would these ways of doing searches work for your use cases? Or would you like to talk more about the general question of "how should the built-in search method work". I didn't really have much of a design goal in mind when I added it the way I did, I guess, it's just a thin wrapper around type: https://github.com/AndrewRadev/vimrunner/blob/435c14ed0aceab9aff199d925d6511ab0c9839ed/lib/vimrunner/client.rb#L94-L95

Oh, now that was easy. This totally works for me:
  def syntax(content, pattern)
    with_file content
    @vim.search pattern
    begin
      @vim.command "/#{pattern}"
    rescue Vimrunner::InvalidCommandError
      return []
    end
    @vim.echo <<~EOF
    map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
    EOF
  end

Thank you for your quick response!

Oops, I was a bit hasty. :/ only jumps to lines, not exact positions.

Yeah, I think I get what's going on. I guess that, technically, :/foo is a range. Typing d/foo<cr> is going to delete to the next "foo", for instance. I have no idea what the syntax for this would be in combination with a command, but this is probably how it parses to Vim at least.
So, yeah, that doesn't really work as a normal "search", which is why it doesn't add anything to the search history. How curious :).
Anyway, what about the search() function?

So, yeah, that doesn't really work as a normal "search", which is why it doesn't add anything to the search history.

Except it does!
:/foo
:echo @/
foo
:/bar
:echo @/
bar

That's why I assumed that @vim.normal 'n' would work afterwards.

Anyway, what about the search() function?

I'm going to try this now. :]

Okay, it looks like this works for vim-elixir's test suite (and even finds 5 useless tests that only worked by accident because the cursor didn't move when the search term wasn't found):
  def syntax(content, pattern)
    with_file content
    if @vim.echo("search(#{pattern.inspect})") == '0'
      return []
    end
    @vim.echo <<~EOF
    map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
    EOF
  end

Thank you!
(BTW, I hope you don't mind that I'm not very active in neomake.. too much on my own plate. But I proudly sport its badge in my GitHub profile. :-))

Except it does!

Okay, I have to admit, I have no explanation, then :D. Might just be in the category of "undefined behaviour".

Okay, it looks like this works for vim-elixir's test suite

Cool, glad I could help :).

authors: AndrewRadev mhinz

repo: AndrewRadev/vimrunner


text:
一个Activity创建了多个相同的Fragment，多次添加数据

Fragment我使用的是懒加载  Fragment中的listview会多次添加相同的数据
特别是在TabLayout+Fragment的时候特别明显

这跟 rxbus 有什么关系。。

一个Activity中有两个或者多个相同的BaseFragment的时候会，它是怎么接受的,它是怎么区分是哪一个Fragment的接受呢

例如：我有两个Activity，都用了rxbus注册，只要Activity的TAG是相同的，两个Activity是不是都会接受rxbus发送的数据呢

这个跟你的具体业务场景有关，跟 rxbus 没关系。 如果你想区分，那你得思考为何要分开，要以哪个来 分开，然后在业务逻辑上进行区分。

如果仍有问题，可以重新打开 issue。

repo: AndroidKnife/RxBus


text:
🛑 ManageInvite API is down

In 75584fa, ManageInvite API (https://api.manage-invite.xyz) was down:

HTTP code: 502
Response time: 113 ms

Resolved: ManageInvite API is back up in 3c2b5e8 after 1 day, 21 hours, 55 minutes.


text:
Easy boss fight. Fight idea

Easy boss fight idea(Hide-and-seek):
Info:
The arena is small (compared to the other ones) and covered in trees (overflowing , actually). This boss is squishy and mainly remains camouflaged as a tree. He moves from time to time(often) revealing himself (like the Monkey King disguise). To undisguise the boss you either hit it with an AoE ability or hit the moving tree (cleave works too) (if it's possible to make all the trees targetable , it'd be great). After being revealed the boss silences the attackers with a spell similar to  Riki's "cloud". The boss fights for some time before tp'ing away and disguising itself again.
Spellset:

While the boss is disguised , he constantly drains mana% and hp% from the players.

At any time/shape the boss may randomly root the attackers (Treant protector's ultimate with ag's)

When undisguised  the boss may suddenly surround itself with trees (Nature prophets trap ability ) and then will use 2 Earthshaker fissures(but made out of trees) in a cone like shape towards a random hero (Only the heroes inside the cone can attack the boss head-on. Others should either use spells or long-range attacks , etc.

Well , that's basically it. I don't really know how to make the boss's abilities be nice , but the original idea was that the boss hides in trees and attacks whilst hiding.

So essentially he has 2 modes: Stealth and Fighter.  While he's stealth he essentially does nothing except run around and occasionally root people (which doesn't actually accomplish much).  Once he's revealed he starts kicking everyone's ass.  It seems like the whole "hide and seek" aspect of the hero is largely just making this fight take longer than it needs to, although I like the concept a lot, it needs some refinement.

Ideas for changes to stealth:

He stands still for x seconds or until a player targets him. Then he runs away. You then have y seconds to break his disguise or he teleports away.
Upon teleporting away he leaves n treants behind to fight you. These treants create action during the stealth phase and also distracts players from trying to find the boss. The more dangerous the treants, the harder it will be for players to concentrate on finding the boss. The treants could even have Misha's root or something to increase the difficulty.
If players don't find him after z seconds, he casts overgrowth. Players standing near trees are rooted and the boss then breaks stealth and becomes a fighter, targetting the most vulnerable nearby hero.

Ideas for changes to fighter:

I like the idea of using a Tree/Fissure trap, but what about this: Circle trap - creates a circle of trees around him with radius=300, trapping nearby heroes. At the end of the spell the trees could turn into treants. Give him Nether Swap and flying vision in case he wants to swap out, trapping another hero to be devoured by treants.
Also Maybe instead of Riki cloud he has Orchid and Desolator (like Furion).
Give him some form of soft area crowd control to increase the effectiveness of his and his treants' attacks.
Give him a super epic attack spell that players have to avoid (but not the fissure trap).

Ideas for treants:

When a treant dies it has a % chance to plant a new tree.
Treants that don't die after a period are detonated, doing damage.
1 out of every 10 trees is unique, maybe having mana burn, Misha root, or Fury swipes.

Warpdragon , you're amazing. This sounds so cool from you XD

Note to whoever reads this comment. I cannot edit this post via phone , so FYI , I'd like some of my mechanics be replaced by what Warpdragon suggested

A boss that hides is noted. Closed.

authors: VoidsKeeper l34Um1 warpdragon

repo: AngelArenaAllstars/suggestions


text:
JS Heap out of memory when running build:aot:prod

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a ...
[X ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?
Reporting a bug

What is the current behavior?
When I run npm run build:aot:prod

I get the following error:
==== JS stack trace =========================================
Security context: 00000133277CFB61
1: enter [C:\MyApp\node_modules\optimize-js\lib\index.js:~13] [pc=00000269B6CE8F25] (this=000002BBF4E471E1 <an Object with map 000000D02DAA96D1>,node=0000022D23C7E1B9 <a Node with map 000003DD7E69E889>,parent=0000023AC9B9F6D9 <a Node with map 000003DD7E694801>)
2: arguments adaptor frame: 4->2
3: visit(aka visit) [C:\MyApp\node_m...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

What is the expected behavior?
To build successfully

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.4.6

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

I am having this issue too. Maybe it is a leakage somewhere.
On the other hand, is there any way to increase the maximum RAM? I observed it crashed at around 1.5GB.

I don't think this is an issue with the starter.
Can you open it in the optimize-js

We also need more information on how to reproduce it.
If I just clone the repo it doesn't happen...

This does not happen with the repo on its own. It will start to happen if we use it in a project, and the project grows to a certain degree. Note: npm run build:prod runs ok.

Is there a way to increase the maximum RAM for npm before run build:aot:prod?

node --max_old_space_size=4096

How do we run it with the npm command?
node --max_old_space_size=4096 npm run build:aot:prod?

So I added this script to the package.json file
"myscript": "npm run build:aot:prod && node --max_old_space_size=4096"
and ran it like this
npm run myscript
But without luck still getting the heap out of memory error.
@pilgylis did you find a solution to this?

Tried various ways without any luck :(
How about splitting the aot build into multiple steps, for example, the first step is to generate the compile folder, and the second is to merge it?
I noticed that when the out of memory occured, the compile folder had been created. Can someone helps to create a command to continue from that?

Finally made it work!!
check out: https://github.com/AngularClass/angular2-webpack-starter/pull/1491/files
Also I had to made the following changes in order to work on my machine:
"webpack-dev-server": "node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js",         "webpack": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js"

Wow, @pilgylis thanks a bunch :)

Hi, anybody can help me to resolve this mistake
when id run  npm run:build:aot
it's throw a mistake
JavaScript heap out of memory
but when i use  this resolvent it's  also throw a mistake
like this
`
ERROR in ./~/extract-text-webpack-plugin/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/extract-text-webpack-plugin'
@ ./~/extract-text-webpack-plugin/index.js 5:9-22
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/html-webpack-plugin/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/html-webpack-plugin'
@ ./~/html-webpack-plugin/index.js 3:9-22
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/extract-text-webpack-plugin/loader.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/extract-text-webpack-plugin'
@ ./~/extract-text-webpack-plugin/loader.js 5:9-22
@ ./~/extract-text-webpack-plugin/index.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/uglify-js/tools/node.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/uglify-js/tools'
@ ./~/uglify-js/tools/node.js 8:9-22
@ (webpack)/lib/optimize/UglifyJsPlugin.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/assets-webpack-plugin/lib/output/createOutputWriter.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/assets-webpack-plugin/lib/output'
@ ./~/assets-webpack-plugin/lib/output/createOutputWriter.js 3:9-22
@ ./~/assets-webpack-plugin/index.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/copy-webpack-plugin/dist/preProcessPattern.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/copy-webpack-plugin/dist'
@ ./~/copy-webpack-plugin/dist/preProcessPattern.js 26:41-54
@ ./~/copy-webpack-plugin/dist/index.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/awesome-typescript-loader/dist/cache.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/awesome-typescript-loader/dist'
@ ./~/awesome-typescript-loader/dist/cache.js 2:9-22
@ ./~/awesome-typescript-loader/dist/index.js
@ ./~/awesome-typescript-loader/dist/entry.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/awesome-typescript-loader/dist/helpers.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/awesome-typescript-loader/dist'
@ ./~/awesome-typescript-loader/dist/helpers.js 2:9-22
@ ./~/awesome-typescript-loader/dist/index.js
@ ./~/awesome-typescript-loader/dist/entry.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/awesome-typescript-loader/dist/instance.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/awesome-typescript-loader/dist'
@ ./~/awesome-typescript-loader/dist/instance.js 2:9-22
@ ./~/awesome-typescript-loader/dist/index.js
@ ./~/awesome-typescript-loader/dist/entry.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in (webpack)/lib/node/NodeOutputFileSystem.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/webpack/lib/node'
@ (webpack)/lib/node/NodeOutputFileSystem.js 5:9-22
@ (webpack)/lib/node/NodeEnvironmentPlugin.js
@ (webpack)/lib/webpack.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/copy-webpack-plugin/dist/writeFile.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/copy-webpack-plugin/dist'
@ ./~/copy-webpack-plugin/dist/writeFile.js 24:41-54
@ ./~/copy-webpack-plugin/dist/processPattern.js
@ ./~/copy-webpack-plugin/dist/index.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/ngc-webpack/src/main.js
Module parse failed: /Users/kunlun/Desktop/huala-system/node_modules/ngc-webpack/src/main.js Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
| "use strict";
| require('ts-node/register');
@ ./~/ngc-webpack/src/plugin.js 4:13-30
@ ./~/ngc-webpack/index.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in (webpack)/lib/NormalModule.js
Module not found: Error: Can't resolve 'module' in '/Users/kunlun/Desktop/huala-system/node_modules/webpack/lib'
@ (webpack)/lib/NormalModule.js 96:16-33
@ (webpack)/lib/NormalModuleFactory.js
@ (webpack)/lib/Compiler.js
@ (webpack)/lib/webpack.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/mkdirp/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/mkdirp'
@ ./~/mkdirp/index.js 2:9-22
@ ./~/assets-webpack-plugin/lib/output/createOutputWriter.js
@ ./~/assets-webpack-plugin/index.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in ./~/glob/glob.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/glob'
@ ./~/glob/glob.js 43:9-22
@ ./~/copy-webpack-plugin/dist/processPattern.js
@ ./~/copy-webpack-plugin/dist/index.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
@ multi main
ERROR in (webpack)/lib/node/NodeMainTemplateAsync.runtime.js
Module not found: Error: Can't resolve 'fs' in '/Users/kunlun/Desktop/huala-system/node_modules/webpack/lib/node'
@ (webpack)/lib/node/NodeMainTemplateAsync.runtime.js 9:2-15 25:3-16
@ (webpack)/lib/node/NodeMainTemplatePlugin.js
@ (webpack)/lib/node/NodeTemplatePlugin.js
@ (webpack)/lib/WebpackOptionsApply.js
@ (webpack)/lib/webpack.js
@ ./config/webpack.common.js
@ ./config/webpack.prod.js
`

I am experiencing the same issue. It works fine with AOT until the code base gets larger, then you will start experiencing memory problems. The proposed fix, https://github.com/AngularClass/angular2-webpack-starter/pull/1491/files, works for me as well, but please include this or something better out-of-the-box, since everyone will start experience this sooner or later.

Yes,When the programe become more and more large, AOT compress will  encounter  heap  out of memory.When i use  the above method to solve.There was another mistake.

@pilgylis The change does not fix the AoT memory issue but it got built successfully since AoT configuration is ignored and it built as non-AoT

What do you mean, not built as AoT? I only took this part from the proposed fix, "webpack": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js", that is increasing the memory and then node does not run of of memory anymore and the AoT build is successful.

@WillooWisp I did not use this proposal, it will be very slow when doing AOT compression, but did not throw a memory overflow

It sounds like there is no good solution yet.  Why is this issue closed?

The proposed solution seems to work.  The trick is to make sure AOT mode is on.  I have installed cross-env
npm install --save-dev cross-env

In package json, I have created a new script:
"aotwebpack": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js",

I leave the existing "webpack" script alone.
I changed "build:aot:prod" to:
"build:aot:prod": "npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 npm run aotwebpack -- --config config/webpack.prod.js  --progress --profile --bail",

And in webpack.common.js, just like the proposed solution:
const AOT = process.env.BUILD_AOT || helpers.hasNpmFlag('aot');

I am running angular 4.0.0-rc.5.  I actually don't see much code reduction with aot -- I may have to change the way I import dependencies -- which I wish the tool can take care of this...

I have the same problem. Please reopen the issue.

@dereklin AOT does not mean code reduction...

@pilgylis AOT doesn't necessarily mean code reduction, but it should do tree shaking, which will generally mean code reduction.  At the moment, tree shaking is broken in webpack 2.2.  I'll wait for webpack 2.4 to see if tree shaking will work again without rewriting my import statements.

AOT converts the HTML templates into javascript so sometimes it even makes the code bigger. What you will benefit from it is that it saves you the time to do the compilation later.

https://angular.io/docs/ts/latest/cookbook/aot-compiler.html#!#tree-shaking

authors: Jarvens MehdiSaeedifar WillooWisp d3viant0ne dereklin doorman02 pilgylis shlomiassaf vincent-cm


text:
Incompatibility between Mikrotik CSS610-8G-2S+IN and V2801F V-SOL

Hi folks, when I insert module into running switch, switch doesn't seem to recognize it at all.
If I reboot switch with module inserted, it prints 0x03 character (ASCII) as vendor and doesn't recognize it as anything useful otherwise.
Does this mean switch lacks drivers or did anyone experience anything similar?

the switch is latest firmware?
have you tried Disable Auto Negotiate ?

Switch was at latest firmware SwOS Lite 2.14.
Auto-negotiation was enabled, Mikrotik support also suggested to disable and fix to 1G and indeed, module seems to be recognized now, will look into how to get it to actually work now, thanks!

If I can ask another question here: how do I get to web interface?
I have isolated SFP and one Ethernet into separate group, assigned 192.168.1.2 to the machine, but 192.192.1.1 is unreachable and SwOS doesn't see any MAC addresses on that interface either. Looks like there is another trick I'm missing.

I see, for now I put CSS610-8G-2S+IN in incompatible list

I think in the end the issue is not the switch, it is OLT frm Raisecom that rejects non-Raisecom ONU and because of this ONU's Web UI doesn't even start.

that troublesome, with extended OMCI check can't make PON Stick to work


text:
✨[feature Request]: Add Dark Mode Toggle Button

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
We need to implement a toggle button to switch between light mode and dark mode across the application. The toggle button should be accessible, user-friendly, and persistent across sessions.
Use Case
Customization: Users can personalize their experience, enhancing satisfaction and engagement with the project.
Accessibility: Improves the visual accessibility of the project, making it usable for a broader range of users, including those with visual impairments.
Aesthetics: Modernizes the UI and gives users a choice, improving the overall look and feel of the project.
Brand Perception: Projects that offer dark mode are often seen as more advanced and user-friendly, potentially improving the project’s reputation.
Benefits
Offering both light and dark modes caters to a wider audience, including users who prefer the aesthetics of dark mode or find it easier to focus on darker screens.
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24EXTD contributor
[X] I have starred the repository

can you please add level also

It will be added to the PR.


text:
cannot open shared object file: No such file or directory

{
"name": "ImportError",
"message": ".cache/torch_extensions/py310_cu118/decompress_residuals_cpp/decompress_residuals_cpp.so: cannot open shared object file: No such file or directory",
"stack": "---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[4], line 1
----> 1 RAG.index(
2     collection=[full_document],
3     document_ids=['miyazaki'],
4     document_metadatas=[{"entity": "person", "source": "wikipedia"}],
5     index_name="Miyazaki",
6     max_document_length=180,
7     split_documents=True
8     )
File ~/mambaforge/lib/python3.10/site-packages/ragatouille/RAGPretrainedModel.py:211, in RAGPretrainedModel.index(self, collection, document_ids, document_metadatas, index_name, overwrite_index, max_document_length, split_documents, document_splitter_fn, preprocessing_fn, bsize, use_faiss)
202     document_splitter_fn = None
203 collection, pid_docid_map, docid_metadata_map = self._process_corpus(
204     collection,
205     document_ids,
(...)
209     max_document_length,
210 )
--> 211 return self.model.index(
212     collection,
213     pid_docid_map=pid_docid_map,
214     docid_metadata_map=docid_metadata_map,
215     index_name=index_name,
216     max_document_length=max_document_length,
217     overwrite=overwrite_index,
218     bsize=bsize,
219     use_faiss=use_faiss,
220 )
File ~/mambaforge/lib/python3.10/site-packages/ragatouille/models/colbert.py:341, in ColBERT.index(self, collection, pid_docid_map, docid_metadata_map, index_name, max_document_length, overwrite, bsize, use_faiss)
337     self.docid_pid_map[docid].append(pid)
339 self.docid_metadata_map = docid_metadata_map
--> 341 self.model_index = ModelIndexFactory.construct(
342     "PLAID",
343     self.config,
344     self.checkpoint,
345     self.collection,
346     self.index_name,
347     overwrite,
348     verbose=self.verbose != 0,
349     bsize=bsize,
350     use_faiss=use_faiss,
351 )
352 self.config = self.model_index.config
353 self._save_index_metadata()
File ~/mambaforge/lib/python3.10/site-packages/ragatouille/models/index.py:485, in ModelIndexFactory.construct(index_type, config, checkpoint, collection, index_name, overwrite, verbose, **kwargs)
482 if index_type == "auto":
483     # NOTE: For now only PLAID indexes are supported.
484     index_type = "PLAID"
--> 485 return ModelIndexFactory._MODEL_INDEX_BY_NAME[
486     ModelIndexFactory._raise_if_invalid_index_type(index_type)
487 ].construct(
488     config, checkpoint, collection, index_name, overwrite, verbose, **kwargs
489 )
File ~/mambaforge/lib/python3.10/site-packages/ragatouille/models/index.py:150, in PLAIDModelIndex.construct(config, checkpoint, collection, index_name, overwrite, verbose, **kwargs)
140 @staticmethod
141 def construct(
142     config: ColBERTConfig,
(...)
148     **kwargs,
149 ) -> "PLAIDModelIndex":
--> 150     return PLAIDModelIndex(config).build(
151         checkpoint, collection, index_name, overwrite, verbose, **kwargs
152     )
File ~/mambaforge/lib/python3.10/site-packages/ragatouille/models/index.py:254, in PLAIDModelIndex.build(self, checkpoint, collection, index_name, overwrite, verbose, **kwargs)
248     indexer = Indexer(
249         checkpoint=checkpoint,
250         config=self.config,
251         verbose=verbose,
252     )
253     indexer.configure(avoid_fork_if_possible=True)
--> 254     indexer.index(name=index_name, collection=collection, overwrite=overwrite)
256 return self
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexer.py:80, in Indexer.index(self, name, collection, overwrite)
77     self.erase()
79 if index_does_not_exist or overwrite != 'reuse':
---> 80     self.__launch(collection)
82 return self.index_path
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexer.py:89, in Indexer.__launch(self, collection)
87     shared_queues = []
88     shared_lists = []
---> 89     launcher.launch_without_fork(self.config, collection, shared_lists, shared_queues, self.verbose)
91     return
93 manager = mp.Manager()
File ~/mambaforge/lib/python3.10/site-packages/colbert/infra/launcher.py:93, in Launcher.launch_without_fork(self, custom_config, *args)
90 assert (custom_config.avoid_fork_if_possible or self.run_config.avoid_fork_if_possible)
92 new_config = type(custom_config).from_existing(custom_config, self.run_config, RunConfig(rank=0))
---> 93 return_val = run_process_without_mp(self.callee, new_config, *args)
95 return return_val
File ~/mambaforge/lib/python3.10/site-packages/colbert/infra/launcher.py:109, in run_process_without_mp(callee, config, *args)
106 os.environ["CUDA_VISIBLE_DEVICES"] = ','.join(map(str, config.gpus_[:config.nranks]))
108 with Run().context(config, inherit_config=False):
--> 109     return_val = callee(config, *args)
110     torch.cuda.empty_cache()
111     return return_val
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexing/collection_indexer.py:33, in encode(config, collection, shared_lists, shared_queues, verbose)
31 def encode(config, collection, shared_lists, shared_queues, verbose: int = 3):
32     encoder = CollectionIndexer(config=config, collection=collection, verbose=verbose)
---> 33     encoder.run(shared_lists)
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexing/collection_indexer.py:68, in CollectionIndexer.run(self, shared_lists)
65 print_memory_stats(f'RANK:{self.rank}')
67 if not self.config.resume or not self.saver.try_load_codec():
---> 68     self.train(shared_lists) # Trains centroids from selected passages
69 distributed.barrier(self.rank)
70 print_memory_stats(f'RANK:{self.rank}')
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexing/collection_indexer.py:237, in CollectionIndexer.train(self, shared_lists)
234 print_memory_stats(f'RANK:{self.rank}')
235 del sample
--> 237 bucket_cutoffs, bucket_weights, avg_residual = self._compute_avg_residual(centroids, heldout)
239 if self.verbose > 1:
240     print_message(f'avg_residual = {avg_residual}')
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexing/collection_indexer.py:315, in CollectionIndexer._compute_avg_residual(self, centroids, heldout)
314 def _compute_avg_residual(self, centroids, heldout):
--> 315     compressor = ResidualCodec(config=self.config, centroids=centroids, avg_residual=None)
317     heldout_reconstruct = compressor.compress_into_codes(heldout, out_device='cuda' if self.use_gpu else 'cpu')
318     heldout_reconstruct = compressor.lookup_centroids(heldout_reconstruct, out_device='cuda' if self.use_gpu else 'cpu')
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexing/codecs/residual.py:24, in ResidualCodec.init(self, config, centroids, avg_residual, bucket_cutoffs, bucket_weights)
21 def init(self, config, centroids, avg_residual=None, bucket_cutoffs=None, bucket_weights=None):
22     self.use_gpu = config.total_visible_gpus > 0
---> 24     ResidualCodec.try_load_torch_extensions(self.use_gpu)
26     if self.use_gpu > 0:
27         self.centroids = centroids.cuda().half()
File ~/mambaforge/lib/python3.10/site-packages/colbert/indexing/codecs/residual.py:103, in ResidualCodec.try_load_torch_extensions(cls, use_gpu)
100     return
102 print_message(f"Loading decompress_residuals_cpp extension (set COLBERT_LOAD_TORCH_EXTENSION_VERBOSE=True for more info)...")
--> 103 decompress_residuals_cpp = load(
104     name="decompress_residuals_cpp",
105     sources=[
106         os.path.join(
107             pathlib.Path(file).parent.resolve(), "decompress_residuals.cpp"
108         ),
109         os.path.join(
110             pathlib.Path(file).parent.resolve(), "decompress_residuals.cu"
111         ),
112     ],
113     verbose=os.getenv("COLBERT_LOAD_TORCH_EXTENSION_VERBOSE", "False") == "True",
114 )
115 cls.decompress_residuals = decompress_residuals_cpp.decompress_residuals_cpp
117 print_message(f"Loading packbits_cpp extension (set COLBERT_LOAD_TORCH_EXTENSION_VERBOSE=True for more info)...")
File ~/mambaforge/lib/python3.10/site-packages/torch/utils/cpp_extension.py:1306, in load(name, sources, extra_cflags, extra_cuda_cflags, extra_ldflags, extra_include_paths, build_directory, verbose, with_cuda, is_python_module, is_standalone, keep_intermediates)
1214 def load(name,
1215          sources: Union[str, List[str]],
1216          extra_cflags=None,
(...)
1224          is_standalone=False,
1225          keep_intermediates=True):
1226     """
1227     Load a PyTorch C++ extension just-in-time (JIT).
1228
(...)
1304         ...     verbose=True)
1305     """
-> 1306     return _jit_compile(
1307         name,
1308         [sources] if isinstance(sources, str) else sources,
1309         extra_cflags,
1310         extra_cuda_cflags,
1311         extra_ldflags,
1312         extra_include_paths,
1313         build_directory or _get_build_directory(name, verbose),
1314         verbose,
1315         with_cuda,
1316         is_python_module,
1317         is_standalone,
1318         keep_intermediates=keep_intermediates)
File ~/mambaforge/lib/python3.10/site-packages/torch/utils/cpp_extension.py:1736, in _jit_compile(name, sources, extra_cflags, extra_cuda_cflags, extra_ldflags, extra_include_paths, build_directory, verbose, with_cuda, is_python_module, is_standalone, keep_intermediates)
1733 if is_standalone:
1734     return _get_exec_path(name, build_directory)
-> 1736 return _import_module_from_library(name, build_directory, is_python_module)
File ~/mambaforge/lib/python3.10/site-packages/torch/utils/cpp_extension.py:2132, in _import_module_from_library(module_name, path, is_python_module)
2130 spec = importlib.util.spec_from_file_location(module_name, filepath)
2131 assert spec is not None
-> 2132 module = importlib.util.module_from_spec(spec)
2133 assert isinstance(spec.loader, importlib.abc.Loader)
2134 spec.loader.exec_module(module)
File :571, in module_from_spec(spec)
File :1176, in create_module(self, spec)
File :241, in _call_with_frames_removed(f, *args, **kwds)
ImportError: /.cache/torch_extensions/py310_cu118/decompress_residuals_cpp/decompress_residuals_cpp.so: cannot open shared object file: No such file or directory"
}

Solved after creating a new Env with a fresh install for CUDA and pytorch then faced other errors related to Cuda, but it's working now.

I faced it again after 3 months and can't solve it now :(

repo: AnswerDotAI/RAGatouille