how much gpus did you use?

Hi, since the MidasNet is a very large model, how much gpus did you use and how long did it take to train the model? Since the batchsize is not larget ( 8 for each dataset), would multi-gpu training hurt the performance? Since there are a lot of batch normalization layers in the encoder.
Thanks.

The model was trained on 2 Quadro RTX 6000s for about 6 days: 1 day for pre-training on RedWeb + about 5 days for training on MIX5. Multi-GPU with low batch size was not an issue, because we froze all batch norm layers.

@ranftlr thanks for your quick responce. I am training MidasNet on 2 tesla v100 gpus, but it's much slower. So the mean and val of bn layers is not updated during the training process?

Correct, mean and variance are fixed and are not updated. I can't comment on the speed on a v100 as I don't have any available.

@Tord-Zhang
I am reproducing the training processing on one V100. I am pretty new to this. I wonder what's the amount of data and how long the training takes?
Thanks


Lossless syntax tree prototype and discussion

I'm opening this draft PR to share the prototype I have at https://github.com/nickolay/sqlparser-rs/tree/wip-cst
I hope that people, who contribute, already use, or want to use sqlparser-rs, react here (if only via a GitHub reaction) so that we can judge if this is something worth pursuing as part of this library or if I'm completely off-track. There's a detailed write-up in the branch's README, but the short version is that current AST is lossy (w.r.t whitespace, comments, unimportant syntax, and source code locations) and to fix that I propose an additional intermediate layer, which is lossless. Some changes to the AST will be necessary too, but to what extent is up for discussion.
Apart from gauging the general mood and collecting feedback, I hope that documenting what I have so far will enable someone to beat me at coming up with the specific design for the CST/AST, as I have not been able to dedicate much time to this.
I'll include a quote from the motivational section of the README:

Preserving full source code information (#161) would enable SQL rewriting/refactoring tools based on sqlparser-rs. For example:

Error reporting, both in the parser and in later stages of query processing, would benefit from knowing the source code location of SQL constructs (#179)
SQL pretty-printing requires comments to be preserved in AST (see #175, mentioning forma)
Refactoring via AST transformations would also benefit from having full control over serialization, a possible solution for dialect-specific "writers" (#18)
Analyzing partially invalid code may be useful in the context of an IDE or other tooling.

I think that adopting rust-analyzer's design, that includes a lossless syntax tree, is the right direction for sqlparser-rs. In addition to solving the use-cases described above, it helps in other ways:

We can omit syntax that does not affect semantics of the query (e.g. ROW vs ROWS) from the typed AST by default, reducing the implementation effort.
Having a homogenous syntax tree also alleviates the need for a "visitor" (#114), also reducing the burden on implementors of new syntax

I am using sqlparser-rs for a prototype.
Locations of ast nodes (for parser error messages, but also generated type errors, linting messages, etc.) will be incredibly valuable for this!
I will try reviewing this prototype.

This is great. I'm very interested in this sort of thing since it opens the door to all sorts of things that simply aren't possible with the current implementation. I'm personally interested in using this for a project to format SQL in a way that preserves comments.

This is awesome, it is obviously worth fully enough, I'd really appreciate.
I'm currently making a new sql database engine based on key-value storage, planning to release the first version in Aug, this year under MPL 2.0 license.
Attractive points to see may be like these below,

Purely written in Rust
All core sql executing code is fully written in functional, no even single mut is used.
Easily swappable storage engine - At first I'll use sled as a default storage, but anyone else can attach their own storage engine easily by implementing simple traits it provides.
WebAssembly support, so it can be used in web frontend development. I'm expecting this db to be used in state management.

And the parser I've used was nom-sql but it didn't have many necessary features I need and looks not updated recently, so I was considering to find some alternatives.
Then by Materialize db announcement, I got to know about this project.
So, what I'm currently working is replacing the parser from nom-sql to this sqlparser-rs.
I'll really look forward to see this new change. thanks.

This looks pretty interesting. I'm wondering if this will also increase performance by being zero-copy? (If I'm misunderstanding the design, let me know). For my use-case, speed is a priority over features, assuming basic parsing is equal.

@hwchen I think the main reason of the change is not performance, but rather functionality: easily allow tools to generate the same output, keeping comments, capitalization, spacing, etc. This allows for better errors, tools like formatters, etc.
I think you are right that zero copy could improve performance by a bit, although it probably won't be a lot in this case.
If you are interested in contributing to performance (I think sqlparser is already quite fast in the general case), I would suggest to see if you can add something to the benchmarks https://github.com/ballista-compute/sqlparser-rs/tree/main/sqlparser_bench , see if you can improve the performance through some profiling or maybe try to solve a performance issue https://github.com/ballista-compute/sqlparser-rs/issues/216

HI, what steps are still needed to get this PR ready for review? Specifically, how might I help?

HI, what steps are still needed to get this PR ready for review? Specifically, how might I help?

I'd also love to help.

Looks like the 1st item of business would be updating the CST-experiment branch with the features and fixes now in the mainline. The 0th item of business would be identifying what those features/fixes are.

There's a fair amount of work on sqlparser-rs that's happened since June (that's a good thing!).  I'm cautiously optimistic that a careful merge and will work rather than redoing the existing rowan/CST implementation.
git log --oneline wip-cst..real/main output if you're interested
43fef23 (cargo-release) start next development iteration 0.8.1-alpha.0
34cd794 (cargo-release) version 0.8.0
a868ff6 Add release notes
add8991 feat: support sqlite insert or statement (#281)
07342d5 Support parsing multiple show variables. (#290)
f40955e Parse floats without leading number (#294)
6f0b2dc Implement SUBSTRING(col [FROM <expr>] [FOR <expr>]) syntax (#293)
8a214f9 Implement Hive QL Parsing (#235)
17f8eb9 Fix clippy lints (#287)
200ed5e (cargo-release) start next development iteration 0.7.1-alpha.0
e11b80e (cargo-release) version 0.7.0
97cd1c0 Release 0.7.0 instead
9930bdf (cargo-release) start next development iteration 0.6.3-alpha.0
26c281e (cargo-release) version 0.6.2
d66294f Add date
e18e8dc Prepare 0.6.2
94ff468 Support ANALYZE TABLE syntax (#285)
17f2930 Introduce support for EXPLAIN [ANALYZE] [VERBOSE] <STATEMENT> syntax
cbd3c6b Merge pull request #263 from ballista-compute/documentation/cargo-release-config
929fc67 Merge pull request #260 from eyalleshem/single_tables_in_parens
ad72cda [snowflake] Support specifying an alias after `FROM (table_factor)`
d9e044a Extend one_statement_parses_to to also test parsing canonical SQL
4128dfe Introduce tests/test_utils/mod.rs and use it consistently
9f772f0 Add support for Recursive CTEs (#278)
99fb633 Move existing SF tests to sqlparser_snowflake.rs
54be391 Update CHANGELOG
7dc5d4c Follow-up to #275: Bump simple_logger version in Cargo.toml
1ac2083 Support IF NOT EXISTS for CREATE SCHEMA (#276)
926b03a Add parsing for PostgreSQL math operators (#267)
0ac343a Don't publish on the push of any tag
cc4f51f Update releasing.md docs
2f71324 Fix deprecated way of initializing SimpleLogger (#275)
cf7263c Fix typo in the README
01a2a6b Update CHANGELOG (#261)
1c6077c [snowflake] Support single line comments starting with '#' or '//' (#264)
e9aa87f Update bigdecimal requirement from 0.1 to 0.2 (#268)
a5b7524 Fix clippy linting error, use enumerate (#266)
038ef98 Add Ballista to the README as a user of this crate (#262)
fcf1eb1 add a note about cargo release config
118a345 Merge pull request #238 from maxcountryman/feature/gh-action-releases
f500a42 Add snowflake dialect (#259)
2c6c295 Refactor <column definition> parsing (#251)
66505eb Don't fail parsing a column definition with unexpected tokens
23f5c7e Move parse_column_def below parse_columns
1b46e82 Enable dialect specific behaviours in the parser (#254)
3871bbc Enable dependabot for this repository (#256)
5f3a40e Dependency updates (#255)
61431b0 Support TABLE functions in FROM (#253)
a246d5d Undo accidental commit
caeb046 Enable dependabot for this repository
1cc3bf4 Support named arguments in function invocations (#250)
9351efb update release instructions
580e4b1 Merge pull request #252 from ballista-compute/fixup/use-nightly-fmt
6b37c16 fix typo
1a70c6e document initial release process
cac3a8e provide missing license header
76a911b ensure we use nightly with fmt
9c1a5a7 Don't fail parsing ALTER TABLE ADD COLUMN ending with a semicolon (#246)
f8feff4 Add SQLite dialect (#248)
4452f9b Support specifying ASC/DESC in index columns (#249)
9e7e302 Support identifiers quoted with backticks in the MySQL dialect (#247)
1337820 Merge pull request #245 from nickolay/cleanups
a6e30b3 Fix typo in JSONFILE serialization
9a2d86d Change CREATE INDEX serialization to not end with a semicolon
9371652 Fix "unused stmt" warning in tests, with default features
3e880b5 Use consistent style for Display impls
d0db8a2 Run cargo fmt
09ca14f Support dialect-specific auto-increment column options for MySQL and SQLite (#234)
8020b2e Add Postgres-specific PREPARE, EXECUTE and DEALLOCATE (#243)
d2e4340 Support create or replace view/table (#239)
bc9bfae automate crate publishing
f053383 Release 0.6.1
3a42b69 Release 0.6.0 (#232)
583f22b Remove PostgreSQL version of assert (#229)
c24b0e0 Implement ASSERT statement (#226)
5cab189 Add TPCH reggression tests (#221)
f3b9edc update travis badge to point to actions status (#219)
8cc7702 update branch references to `main` (#215)
2a6d5f2 update cargo manifest (#214)
a53f1d2 Support SQLite `CREATE VIRTUAL TABLE` (#209)
0c83e5d Support SQLite's WITHOUT ROWID in CREATE TABLE (#208)
0c82be5 Follow-up to the recent release (CHANGELOG and the bench crate)
1946791 (cargo-release) start next development iteration 0.5.2-alpha.0
05f8992 (cargo-release) version 0.5.1
15d5f71 Add CREATE TABLE AS support (#206)
26361fd Implement ALTER TABLE DROP COLUMN (#148)
faeb7d4 Implement ALTER TABLE ADD COLUMN and RENAME (#203)
fab6e28 Output DataType capitalized (#202)
b24dbe5 Replace FromStr with normal parser function for FileFormat (#201)
68afa2a Make FileFormat case insensitive (#200)
a0f076a Make the cli example print JSON (#197)
f4fbd9b Take slice as input for parse_keywords (#199)
6cdd4a1 Support general "typed string" literals (#187)
34548e8 Change Word::keyword to a enum (#193)
0fe3a8e Use Token::EOF instead of Option<Token> (#195)
2f10153 Add serde support to AST structs and enums (#196)
d9a7491 Various follow-ups to recent pushes
846c52f Allow omitting units after INTERVAL (#184)
d842f49 Add line and column number to TokenizerError (#194)
10b0b7f Update CHANGELOG (#192)
a42121d Use binary search to speed up matching keywords (#191)
af54eb0 Rework github actions, add code coverage (#186)
6e6fae7 Add benchmarks using cargo bench / criterion (#190)

requesting debugging: I merged the main branch into the wip-cst branch, leaving the product on branch cst-refresh of skalt/sqlparser-rs, PR'd against wip-cst.  I'm new to both rust and this codebase1, so I could use help debugging a failing unit test, parser::tests::test_prev_index.  It looks like a call to prev_token() is chopping the "version" off of "SELECT version" despite the best efforts of parser.syntax() to consume any remaining tokens.
1: This codebase has amazing comments!

@SKalt Thanks for taking an interest in this and sorry to keep you waiting!
Regarding the failing test, one of the problems is that you didn't sync up SyntaxNode with Token.
More generally, I suggest rebasing instead of trying to blindly merge this:

Otherwise it's really hard to spot the merge mistakes in a huge merge commit.
Redoing the patches is also a good way to get familiar with the code,
You'll be able to see what change introduces the problem
The first few commits from this branch are not really related to the CST work and could probably be landed separately - rebasing will make it possible to land them independently of finishing up the rest of the work.

As for the next steps, I tried to detail the current status and the outstanding tasks in the branch's README, the most important and the hardest one being coming up with a new typed AST design. Try working with raw SyntaxNodes to see what I mean.

Hi @nickolay  -- sorry for the delay in review. I am going to help out now with this repo and we are working to clear the backlog. Is this PR still something you would like to work on to help contribute?


[Feature request] Support records on the TLD

Using the quickstart guide’s beyond.corp TLD as an example, I would like to have members on <name>.beyond.corp, but I would also like to put one on beyond.corp itself.

Might be a while before I get to this, but, ACK. I've labeled it and I will let you know when it's completed. Root records seem appropriate for this case; doing it elegantly may require more out of Central though. We'll see.

for now, if you want to "hack it", you can use corp as your domain and use a hosts file with multi-level domains. It's not great but it will work.


[Tensor] Add add_i(Tensor T) operator @open sesame 06/09 14:24

Changes proposed in this PR:

add_i(Tensor T) operator for memcopyless operation

Self evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

v2: This PR is rebased to master and than to #131


Add Windows instructions

Windows doesn't support the runfile you provided. You can make a .bat file, or provide the different code for Windows:
java -jar [path-to-generated-jar (./build/jar/....)] [filename to inspect]

@echo off
REM author<EMAIL_ADDRESS>ant jar && java -jar build/jar/dex-method-counts.jar %1

For windows:
-> Add path to apache-ant/bin to Environment variable
-> make sure you have cygwin
-> run >>> ant jar  in cmd at path   <somepath>\dex-method-counts-master
a jar will be generated at \dex-method-counts-master\build\jar
-> open cygwin.bat
-> access the path for dex-method-counts-master folder..
-> execute   $ ./dex-method-counts <path/to/App.apk>. here path to apk better to keep it inside the  dex-method-counts-master folder to avoid issues related to path in cygwin.
and here you go :)

Done by 367330cb5c330faf13e835e469a6c81a5e8ec3e9


Adopt cookbook

Description
Sous-Chefs adoption
Check List

[ ] A summary of changes made is included in the CHANGELOG under ## Unreleased
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable.

@damacus were you planning on addressing the integration failures in this PR?

I don't think so no.
The cookbook is quite broken in a lot of ways.

Released as: 2.0.1


Release roadmap for 0.9.7

Release roadmap for 0.9.7

New DNS Seeds
CMake build system (finally trashing autotools)
Minor bugfixes and improvements
Add new alert key?

Put draft for full roadmap here: https://github.com/Anoncoin/project/tree/master/roadmap

Topic here seems stale to me, a current roadmap would be appreciated though.


 I'd like to refer to the root (the directory containing the Cargo.toml with the workspace.members key) from one of the nested workspaces. How can I accomplish this?

you mean you have a bunch of crates which are in the same workspace, right?
if so, when running from the workspace level, you have access to a ** CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY** env var.
however, if you go to a specific crate and run from there, cargo-make is unaware you are in a workspace.

CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY does the trick when running from the root; however I'd like the scripts to also work when ran from other directories.
Basically I need to access the root target directory to load some wasm files; where I specify their location through my programs command line.

so currently i don't have that. but could try to add it if you run it from the root of some member crate.

There should be a way to access it through Cargo I reckon; since it is able to figure out where to place all artifacts, even when I'm running cargo make from different directories.

ya, didn't say its not possible :)
just that, its not implemented at the moment and going to try to add it soon.

That'd be great. Let me know if I can help out.

@KaiserKarel I just pushed a commit to the dev branch to setup CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY correctly even when starting the build in the member crate directly and not in the workspace level.
can you please install it and check if it resolves your issues?

Sorry, bit hectic last couple of days; but it seems to work perfectly!

great. will probably release a new official version today/tomorrow.

@KaiserKarel just release an official version with this fix.
thanks for the feedback

Perfect, thanks for the quick feature addition!


Bad format for date columns in jobs table

https://github.com/laravel/framework/blob/d64e500037a198e804ad83d3adeee6708cf36659/src/Illuminate/Queue/Console/stubs/jobs.stub#L21
is it normal that it is unsignedInteger used instead of timestamps for reserved_at, available_at and created_at columns ?

It stores unix timestamps which are integers. So ... yes?


Add project scaffolding

Add CI, lints, github config, changelog, badges, multi-plarform container building, graceful shutdown, tracing, logging, version info.
Removes hardcoded keys in favor of CLI or ENV provided paths, but still uses static var.

CI passes the Acceptance step. Codecov step failing is expected since this repo is not currently signed up.


ssd+squeezenet

Jay
Do you have a plan to generate a builder for ssd+squeezenet?
I am looking for a low computational complexity of SSD detector and am thinking ssd+squeezenet may be a good compromise between accuracy and speed.
Thanks,

@kaishijeng I believe the complexity of squeezenet in terms of flops is ~800 Million (though not sure, need to run it through complexity module) and the corresponding top1 accuracy on imagenet is ~58%,  its advantage is lesser no of params (which affects memory and not speed).    In comparison, thin resnet 50 (or resnet_50_1by2) which I trained has ~10k M flops with top1 accuracy of 66.79 on imagenet. See this (comparison table)[https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/imagenet#basic-residual-network-results].   I had run experiment to train resnet_50_1by2 with SSD and got around 64% mAP on voc dataset,  as compared to 70.4 using full resnet 50 described here.    If you want even faster network (and not smaller in size), I suppose using tweaked resnet variants could be useful.
That said, it would be interesting to see how squeezenet can be used as base network for SSD (which layers /feature maps to use etc). This is a quick guide on how it can be done: https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/voc2007_ssd#building-other-detection-networks

Jay,
Thanks for the info about squeezenet vs resnet50. My understanding is
squeezenet is faster than alexnet and also has smaller size of parameters.
Do you have speed comparison between ssd+vgg16 vs ssd+resnet50?
Can you share pretrained models of ssd+resnet_50 or ssd+resnet_50_1by2?
I will try to train ssd+resnet_50 this weekend.
Thanks,
On Mon, Aug 8, 2016 at 11:12 PM, Jay Mahadeokar<EMAIL_ADDRESS>wrote:

@kaishijeng https://github.com/kaishijeng I believe the complexity of
squeezenet in terms of flops is ~800 Million (though not sure, need to run
it through complexity module) and the corresponding top1 accuracy on
imagenet is ~58%, its advantage is lesser no of params (which affects
memory and not speed). In comparison, thin resnet 50 (or resnet_50_1by2)
which I trained has ~10k M flops with top1 accuracy of 66.79 on imagenet.
See this (comparison table)[https://github.com/jay-
mahadeokar/pynetbuilder/tree/master/models/imagenet#basic-
residual-network-results]. I had run experiment to train resnet_50_1by2
with SSD and got around 64% mAP on voc dataset, as compared to 70.4 using
full resnet 50 described here
https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/voc2007_ssd.
If you want even faster network (and not smaller in size), I suppose using
tweaked resnet variants could be useful.
That said, it would be interesting to see how squeezenet can be used as
base network for SSD (which layers /feature maps to use etc). This is a
quick guide on how it can be done: https://github.com/jay-
mahadeokar/pynetbuilder/tree/master/models/voc2007_ssd#
building-other-detection-networks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jay-mahadeokar/pynetbuilder/issues/1#issuecomment-238462800,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGg3lF5HJ3q6Ct0lSrDRbAHPHmXpP7Zks5qeBo2gaJpZM4Jfvjr
.

Please refer this table for ssd+vgg16 and ssd+resnet50.  I have also shared the caffemodel.. This table also compares resnet 50 and resnet_50_1by2.  Though I havent yet added model files object detection using for resnet_50_1by2 + ssd, it should be easy to train it (since I have added the model pre-trained on imagenet).  Let me know if the training ssd+resnet doc is sufficient, or you run into any bugs.

According to your table, ssd+resnet50 shpould be 2 or 3 times faster than
ssd+vgg16.
Is this what you have observed?
Thanks,
On Tue, Aug 9, 2016 at 12:05 AM, Jay Mahadeokar<EMAIL_ADDRESS>wrote:

Please refer this table
https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/voc2007_ssd#comparing-vgg-and-resnet-50-ssd-based-detection-networks
for ssd+vgg16 and ssd+resnet50. I have also shared the caffemodel.. This
table
https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/imagenet#basic-residual-network-results
also compares resnet 50 and resnet_50_1by2. Though I havent yet added model
files object detection using for resnet_50_1by2 + ssd, it should be easy to
train it (since I have added the model pre-trained on imagenet). Let me
know if the training ssd+resnet
https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/voc2007_ssd
doc is sufficient, or you run into any bugs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jay-mahadeokar/pynetbuilder/issues/1#issuecomment-238471047,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGg3qzyLqGRvaVWlLOx1JXRJ2ENOe76ks5qeCaigaJpZM4Jfvjr
.

I haven't done thorough benchmarking on cpu, since I only tested validation set on gpu machines. but I guess that should be true! I will run it on CPU and will update here.

Jay
No need to benchmark on CPU because I have a GPU, TitanX.
What parameters do I need to use with create_ssdnet.py to create ssd+resnet50_1by2 instead of ssd+resnet50?
python app/ssd/create_ssdnet.py --type Resnet -n 256 -b 3 4 6 3 --no-fc_layers -m bottleneck --extra_blocks 3 3  --extra_num_outputs 2048 2048 --mbox_source_layers relu_stage1_block3 relu_stage2_block5 relu_stage3_block2 relu_stage4_block2 relu_stage5_block2  pool_last --extra_layer_attach pool -c 21 -o ./
Thanks,

--extra_num_outputs could be reduced to 1024 1024, and -n to 128.  Rest of the params should remain same I think. Use -h for more help on params.

@kaishijeng did the above params work for you? I am closing this for now, feel free to re-open it if you have additional questions.

Jay,
Yes, it works
Thanks

Jay,
I am able to train ssd_resent50 and ssd_resnet50_1by2 and try out inference on TitanX and Jetson TX1.
For TitanX, I can see the speed improvement, but not much difference on Jetson TX1. I think that it is due to memory bandwidth because of parameter size.
If it is not much effort for you to create ssd_squeezenet, I can do the training and measure inference time on TitanX and Jetson TX1.
Thanks,

@kaishijeng
Squeezenet architecture is a lot different than resnet / vgg in terms of feature map sizes. I am not sure which layers would we attach the detection heads.
If you want to try some experiments, id suggest:

Look at code to generate base squeezenet which is available in this app
Follow these steps for adding detection heads to a base network.
Main part is figuring out which layers we should attach the SSD detection heads.  (example see this [table] (https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/voc2007_ssd#residual-networks-based-detection-network) for how I attached it to resnet_50), it will need some experimentation.

Please give it a try and I can help out if you have any further questions.

Jay,
 It looks like not s simple exercise to create a ssd+squeezenet network. So  I like to try ssd+resnet18 first. I need to train resnet18 imagenet first and use it a pretained model for ssd+resnet18 training..

I plan to use the following command to create resnet18 for imagenet , but not sure the parameters are correct or not. Can you  help me to check it:
python app/imagenet/build_resnet.py -m bottleneck -b 2 2 2 2 -n 256 --no-fc_layers -o ./
Also I got an error to use the following command to generate ssd+resnet18.  Do you know which parameters are incorrect?
python app/ssd/create_ssdnet.py --type Resnet -n 256 -b 2 2 2 2 --no-fc_layers -m bottleneck --extra_blocks 3 3  --extra_num_outputs 2048 2048 --mbox_source_layers relu_stage1_block3 relu_stage2_block5 relu_stage3_block2 relu_stage4_block2 relu_stage5_block2  pool_last --extra_layer_attach pool -c 21 -o  ./
Thanks,

Sounds good!
You need to modify relu_stage1_block3 relu_stage2_block5 relu_stage3_block2 relu_stage4_block2 relu_stage5_block2  params to relu_stage1_block1 relu_stage2_block1 relu_stage3_block1 relu_stage4_block1 relu_stage5_block1
Also, extra_blocks could be 2 2 (or your choice, more blocks will increase runtime).   Notice that resnet 18 has only 2 blocks in each stage (index starts with 0). Read more here

Jay
Shouldn't main_branch of resnet18 of imagenet be normal instead of
bottleneck? If yes, I use the following command to generate resnet18, there
is an error.
python app/imagenet/build_resnet.py -m normal  -b 2 2 2 2 -n 256
--no-fc_layers -o ./
The error is:
F0814 01:05:54.747488 14253 eltwise_layer.cpp:34] Check failed:
bottom[i]->shape() == bottom[0]->shape()
*** Check failure stack trace: ***
Aborted (core dumped)
Thanks,
On Sun, Aug 14, 2016 at 12:41 AM, Jay Mahadeokar<EMAIL_ADDRESS>wrote:

Sounds good!
You need to modify relu_stage1_block3 relu_stage2_block5
relu_stage3_block2 relu_stage4_block2 relu_stage5_block2 params to
relu_stage1_block1 relu_stage2_block1 relu_stage3_block1 relu_stage4_block1
relu_stage5_block1
Also, extra_blocks could be 2 2 (or your choice, more blocks will increase
runtime). Notice that resnet 18 has only 2 blocks in each stage (index
starts with 0). Read more here
https://github.com/jay-mahadeokar/pynetbuilder/tree/master/models/imagenet#creating-residual-networks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jay-mahadeokar/pynetbuilder/issues/1#issuecomment-239660557,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGg3iqkohWZrbrfXIMAxCpVa8Sh-t8Aks5qfsbBgaJpZM4Jfvjr
.

Please specify -n as 64.  Note that the bottleneck block has 3 layers 64,64,256 filters,  whereas normal block has 2 layers with 64,64 filters.  Since 1st layer has 64 filters, it gives error. I should do this check somewhere!
FYI, resnet_18 has:
Number of params:  11.688512  Million
Number of flops:  1814.082944  Million
The flops is larger than resnet_50_1by2.  Not sure if it will be faster, but I havent benchmarked.

@kaishijeng, can you tell me how many times the speed of ssd+resnet50 is on the ssd+vgg16 using a GPU, TitanX. Thank you

kaishijeng , hi, I have test the  of by the Benchmarking by command line caffe time and found that the forward time of ssd+resnet50 is more than the forward time of ssd+vgg16. I do not how you see the speed improvement?

MisayaZ,
  Your data is correct. This has been a while since I did the test last

time.
My impression is ssd+resnet50 is slower to ssd+vgg16. By ssd+resnet50-1by2
is slightly faster than ssd+vgg16, but lower memory footprint
On Wed, Nov 2, 2016 at 12:13 AM, MisayaZ<EMAIL_ADDRESS>wrote:

kaishijeng , hi, I have test the of by the Benchmarking by command line
caffe time and found that the forward time of ssd+resnet50 is more than the
forward time of ssd+vgg16. I do not how you see the speed improvement?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jay-mahadeokar/pynetbuilder/issues/1#issuecomment-257789287,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMGg3tZ55OuXK42iRlVzDJ2veWiSFCHAks5q6DgIgaJpZM4Jfvjr
.

SqeezeNet is not fast (compare to AlexNet), it just have small on disk size.
Se table https://github.com/mrgloom/kaggle-dogs-vs-cats-solution

@kaishijeng Hi kaishijeng,
Have you successfully build the resnet18+SSD and get a good mAP?
If so, could you please share your related resnet18+SSD prototxt file and resnet18 pre-train weights?
Thanks a lot.


[Bug] Cant install on Dalamud

can't install, i click to install, time goes by and nothing happens

14:35:46.709 | INF [LOCALPLUGIN] Loading FPSPlugin.dll
14:35:46.711 | INF [T3] DUI OK!
14:35:46.718 | INF Dalamud is ready.
14:35:46.738 | INF [LOCALPLUGIN] Finished loading FPSPlugin.dll
14:35:46.738 | INF [PLUGINM] Loading plugin PingPlugin
14:35:46.797 | INF [LOCALPLUGIN] Loading PingPlugin.dll
14:35:46.812 | INF [PingPlugin] Loading lang data from PingPlugin.Lang.lang_en.json
14:35:46.885 | INF [LOCALPLUGIN] Finished loading PingPlugin.dll
14:35:46.885 | INF [PLUGINM] Loading plugin Pixel Perfect
14:35:46.912 | INF [LOCALPLUGIN] Loading PixelPerfect.dll
14:35:46.923 | INF [LOCALPLUGIN] Finished loading PixelPerfect.dll
14:36:40.991 | INF [PLUGINM] Starting plugin update
14:36:40.993 | INF [PLUGINM] Plugin update OK.
14:37:17.200 | INF [PLUGINR] Fetching repo: https://raw.githubusercontent.com/goatcorp/DalamudPlugins/api4/pluginmaster.json
14:39:28.483 | ERR Unobserved exception in Task.
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (One or more errors occurred. (A task was canceled.))
---> System.AggregateException: One or more errors occurred. (A task was canceled.)
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)    at System.Threading.Tasks.Task1.get_Result()
at Dalamud.Interface.Internal.Windows.PluginInstallerWindow.<>c__DisplayClass54_0.b__2(Task1 task) in C:\goatsoft\companysecrets\dalamud\Interface\Internal\Windows\PluginInstallerWindow.cs:line 1213    at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
--- End of stack trace from previous location ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)    at System.Threading.Tasks.Task1.get_Result()
at Dalamud.Interface.Internal.Windows.PluginInstallerWindow.<>c__DisplayClass54_0.b__2(Task1 task) in C:\goatsoft\companysecrets\dalamud\Interface\Internal\Windows\PluginInstallerWindow.cs:line 1213    at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
{ } [ Send ]

This issue looks to be related to internet connection timeout while downloading the plugin files... I suggest you check your connection and retry. If it does not install, ping me.

tem outro diretório ou link pra eu baixar por fora e instalar?

Same problem, same error. Tryed differents system and connection... cant install.

Hello. Contact me in discord DanteSS#2200, please
Em sáb, 13 de nov de 2021 05:34, wertir2093 @.***>
escreveu:

Same problem, same error. Tryed differents system and connection... cant
install.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lokinmodar/Echoglossian/issues/20#issuecomment-967817998,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADXF6IJSYJE3OXSIY32URE3ULYPIFANCNFSM5HBLN7YQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Any news in how to fix this issue ?

 For now the solution is to check your connection and retry installing later. Or contact me through discord

Hello. Contact me in discord DanteSS#2200, >.


Don't Allow Choice Options to Have Own Cardinality

When there is a choice (e.g., Abc or Xyz) allowing each option to have its own cardinality leads to complicated and/or ambiguous results, e.g.:
1..*  0..1 Abc or 1..5 Xyz

It also requires special handling for the most common use case (when each option doesn't need its own cardinality:
1..* (Abc or Xyz) // parentheses needed to be clear that 1..* applies to both options

Instead, don't allow choice options to have their own cardinalities -- it's too confusing and SHR doesn't seem to use/need it anyway.  This simplifies the grammar and the tooling:
1..* Abc or Xyz

This is addressed in the grammar_5 branch.

OBE. We clarified this in Grammar 6.0. Values (choice or no choice) don't have cardinality. Properties do.


Correcting decodeFullyInto() behaviour and merging josephx86's Android compile fixes

Wow, I can't believe I missed this! I'll check the PR to see if it works correctly after this fix.


kube-rbac-proxy fork

Type of repository request
Repository fork from:
https://github.com/brancz/kube-rbac-proxy
Requested name for the repository
kube-rbac-proxy
Repository Description
will be inherited from the fork
Admin Access
operator admin team +
Nick Jordan
<EMAIL_ADDRESS>Write Access
Read Access
Additional details
please also create a corresponding quay repo
quay.io/redhat-cop/kube-rbac-proxy
with an account able to push there.
put the account username and password in the repo secrets with the following names:
REGISTRY_USERNAME
REGISTRY_PASSWORD

Review request:
cc: @redhat-cop/container-cop-core

Type of repository request
Repository fork from: https://github.com/brancz/kube-rbac-proxy
Requested name for the repository
kube-rbac-proxy
Repository Description
will be inherited from the fork
Admin Access
operator admin team + Nick Jordan<EMAIL_ADDRESS>Write Access
Read Access
Additional details
please also create a corresponding quay repo quay.io/redhat-cop/kube-rbac-proxy
with an account able to push there. put the account username and password in the repo secrets with the following names: REGISTRY_USERNAME REGISTRY_PASSWORD
Review request:
cc: @redhat-cop/container-cop-core

GH handle: "nickjordan"
Quay: "njordan"<EMAIL_ADDRESS>


Remove proof option from client connections command

Closes: #205
Description
Remove the proof option from query client connections.. command as this is not for the provable store.

For contributor use:

[ ] Unit tests written
[ ] Added test to CI if applicable
[ ] Updated CHANGELOG_PENDING.md
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Updated relevant documentation (docs/) and code comments
[ ] Re-reviewed Files changed in the Github PR explorer

Codecov Report

Merging #318 into master will increase coverage by 23.9%.
The diff coverage is 61.3%.

@@            Coverage Diff            @@
##           master    #318      +/-   ##
=========================================
+ Coverage    13.6%   37.6%   +23.9%
=========================================
  Files          69     124      +55
  Lines        3752    8002    +4250
  Branches     1374    2782    +1408
=========================================
+ Hits          513    3010    +2497
- Misses       2618    4753    +2135
+ Partials      621     239     -382

Impacted Files
Coverage Δ

modules/src/events.rs
0.0% <0.0%> (ø)

modules/src/ics02_client/events.rs
0.0% <ø> (ø)

modules/src/ics02_client/raw.rs
0.0% <0.0%> (ø)

modules/src/ics03_connection/context.rs
0.0% <0.0%> (ø)

modules/src/ics03_connection/error.rs
15.0% <0.0%> (-18.4%)
:arrow_down:

modules/src/ics04_channel/error.rs
75.0% <ø> (+50.0%)
:arrow_up:

modules/src/ics04_channel/packet.rs
0.0% <0.0%> (ø)

modules/src/ics07_tendermint/client_def.rs
0.0% <0.0%> (ø)

modules/src/ics07_tendermint/error.rs
75.0% <ø> (+75.0%)
:arrow_up:

modules/src/ics18_relayer/error.rs
0.0% <0.0%> (ø)

... and 226 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 88c46fc...eb78aba. Read the comment docs.


Remove setup form after setup

Right now, it says "successfully written to disk" and then shows the form still. It only removes the form after a refresh.

This can probably be rolled into one update with #29.


vs2015+cppnetlib-0.13.0 +boost 1.61.0 can build but use error

d:\work\sdk\boost_1_61_0\boost\spirit\home\support\char_encoding\iso8859_1.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>  NOTE: Use of this header (bool_trait_def.hpp) is deprecated
1>  NOTE: Use of this header (template_arity_spec.hpp) is deprecated
1>  NOTE: Use of this header (template_arity_spec.hpp) is deprecated
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\chrono(1016): error C2872: 'xtime': ambiguous symbol
1>  c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xtimec.h(19): note: could be 'xtime'
1>  d:\work\sdk\boost_1_61_0\boost\thread\lock_types.hpp(31): note: or       'boost::xtime'
1>  c:\program files (x86)\microsoft visual studio 14.0\vc\include\thread(136): note: see reference to function template instantiation 'xtime std::_To_xtime<__int64,std::ratio<1,1>>(const std::chrono::duration<__int64,std::ratio<1,1>> &)' being compiled

it‘s not a problem, it's the way of use errors

code can't include  using namespace boost


Extrude point/circle

Is there a way to extrude circle/point without representing a circle as a polygon? When I am tried to extrude circle represented as a polygon in large zoom I have this result(the more zoom the worse result)

Same problem

Hi @RodionChachura, it seems like the precision issue for high dynamic range data, could you try to enable the fp64 feature as mentioned in the doc and see if it helps?
https://uber.github.io/deck.gl/#/documentation/layer-catalog/scatterplot-layer

Hi @gnavvy, I tried fp64 and it makes a circle look a little bit better, but, when I have a circle with the radius less than 60 meters it still looks quite bad.

@RodionChachura Can you make an small example and put it here? I will investigate that. Thanks!

Hello @jianhuang01.
Steps:

Draw circle using SVGOverlay and d3.js(number in tooltip - radius in meters)
Convert circle to polygon and draw it on SVGOverlay
Switch to Deck.gl PolygonLayer

const layer = new PolygonLayer({
      id: 'polygon-layer',
      data: shapes.map_('deckPolygon'),
      filled: true,
      extruded: true,
      fp64: true,
      getElevation: f => buildingHeight,
      getFillColor: f => [33, 33, 33],
      lightSettings: LIGHT_SETTINGS
    })

I removed frames of waiting until deck.gl render circle.

You can try extending the HexagonCellLayer:
import {HexagonCellLayer} from 'deck.gl';
import {Cylinder} from 'luma.gl';

class ExtrudedCircleLayer extends HexagonCellLayer {
  _getModel(gl) {
    return new Cylinder(gl, {
      id: this.props.id,
      bottomCap: true,
      nradial: 36,  // radial resolution - 6 in HexagonCellLayer
      nvertical: 1,
      isInstanced: true,
      ...this.getShaders()
    });
  }
}

CodePen demo

@odionChachura could be your converted data is bad rather than a bug in deck.gl, better to print out the points and verify first.

I am decided to use mapbox layers and everything works fine now. You can also see this problem in Your NY trip examples.

@RodionChachura Glad that you resolved the issue. Sounds like fp64 has a bug on your box. Would you provide your video card information so we can investigate?

@Pessimistress, yes.
NVIDIA GeForce GTX 960M

@RodionChachura Would you please paste your polygon point data here? so I can do a quick test.

Need sample data to proceed, close for now.


Ensure cookies are flushed and ddg cookies saved on clear

Task/Issue URL: https://app.asana.com/0/361428290920652/1147449930490345
Description:
Fixes issue where cookies are lost when app killed and ddg setting cookies are lost on fire.
Setup
Get a device running the latest version of Chrome and confirm it is suffering the cookie loss issue by:

From develop branch, visit duckduckgo.com and change the SERP theme to something different e.g Terminal
Press the fire button
Visit the SERP and note the theme is not persisted

Test DGG cookies maintained on app kill and after fire

Visit the SERP and change the theme to something different e.g Terminal
Kill the app, launch it again
Visit the SERP and ensure the theme still persists
Press the fire button
Visit the SERP and ensure the theme still persists

Test other cookies maintained on app kill and cleared after fire

Visit a site that requires a login e.g facebook.com and login
Kill the app and launch it again
Ensure you are still logged in
Press the fire button
Visit the site again and ensure your are logged out.

Internal references:
Software Engineering Expectations
Technical Design Template

FYI: I attempted to add unit test also but they were a faff and it's important that we get this patched as users are struggling so I'll create a task to add those separately.


⚠ Samsung has degraded performance

In 3771189, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 3078 ms

Resolved: Samsung performance has improved in 1e39658.


mysqlha need ssl connection solution.

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] Title of the PR starts with chart name (e.g. [stable/mychartname])

@yangchao0512 Thanks for your PR, please make a signoff first.


setTimeout - assigning timeout id to a variable throws an error TS2323: Type 'Timer' is not assignable to type 'number'.

Using tsc v1.1.0-1 we get an error when compiling :
error TS2323: Type 'Timer' is not assignable to type 'number'.
the following code throws the compile error:
this.sTimeout = setTimeout( () => this.showDelay() , 250 );
sTimeout is defined as a number ( private var ) .

For future readers, I came across this error because of the node.js definitely-typed definitions.  The solution is to use the full name of the type, which is NodeJS.Timer not Timer (which sadly is what the Typescript transpiler suggests, and doesn't work).

@jdfreder time flies - the future is here
anyway I had the same issue:  error TS2352: Neither type 'Timer' nor type 'number' is assignable to the other. even though I have the implicit reference defined at the top of the file /// <reference path="node_modules/typescript/lib/lib.d.ts" /> still doesn't work.
The main problem is that one of our 3rd party npm package (angular2) have TS + typings (node, and others) included in the package.

@rixrix (and for anyone else who finds this) I had a similar problem until I realized I wasn't passing in the correct parameters.
Compare this, which requires the second parameter ms and returns a NodeJS.Timer:
function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;

...and this, which does makes the second parameter timeout optional and returns a number:
function setTimeout(handler: any, timeout?: any, ...args: any[]): number;

Based on these two functions TS correctly selects an appropriate overload, so if you get error TS2352: Neither type 'Timer' nor type 'number' is assignable to the other. make sure you are specify a timeout!

Hi @Penryn thanks for the heads up!
I think my previous comment is a testament of not giving enough details as  I can't remember anymore the exact details about the said error message. sorry.
On top of my head, the issue that we had before was when we do incremental upgrades of our spin off web app written in Angular2(alpha releases). Our main code base (ng1 and ng2)  is written in TypeScript (with bower components, bunch of other typings, and few custom typings), and Angular2 at that time were shipping typings as well, node typings etc. With our node typings (outdated version) and ng2 node typings (and possibly other typings), effectively the TS compiler gets confused about dups typings. In our case, we could have manually modify the offending typings but it's just too much work knowing that some point we'll have to pull out the latest version(s)
I think this has been resolved in recent Angular2 releases as we'll have to manually install the required typings.
cheers

@RyanCavanaugh have same issue. I look, that I have two deffinitions for setTimeout. One returns number and the other returns NodeJS.Timer.

Just use window.setTimeout instead.

Why does the NodeJS.Timer require a special type? It's still just going to return a number right? Am I missing something?

@cchamberlain Node actually returns an entire Timer class: https://nodejs.org/api/timers.html
So not just a number in this case.

@Penryn - TIL 👍

For those curious, the reason this is happening is that setTimeout in node.js returns a different thing than setTimeout inside the browser. The browser's setTimeout just returns a number; in node.js setTimeout returns a big Timer object.
So the reason you're seeing this problem is almost certainly because you've intended to target the web, but you've pulled in node definitions.

@johnfn could also be isomorphic code intended to target browser and node.

For others coming in here using the setTimeout or setInterval, use window.setTimeout or interval so tsc knows you're using the web browser's function (which returns number) and not NodeJS's function (which returns something else).

To add on @AskYous , if you have @types/node  in the packages, use window.setInterval to avoid the type failure.

For who is using @angular with @angular-cli make sure you have the type node on your tsconfig.app.json as well.
I found it here: https://stackoverflow.com/a/43952363/3415716

Maybe you have import a package that has a function with name setTimeout().
Just use window.setTimeout instead of setTimeout to solve the problem :)

in node environment use global.setTimeout and in browser environment use window.setTimeout

Like @nippur72 , I ran into this today with react-dom. I think the simplest solution is to update the @types package to not depend on Node when a browser environment is expected, hence: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21310#issuecomment-367919251


Average Texture pack

Hello its me again so the last few days i try to make minecraft structures in minecraft but when i tryd to put for example a end ship with the normel textures in to minecraft it replaced the Purpel Ender Blocks with some other blocks because the Average color fits more in with the other blocks. So thats why i am asking if you can maby when you have time make the average color tecture pack so i can see wich average color the blocks from the end ship has and then i can replace the texture in blender from normel textures to the average color withe the McPrep addon or i can just replace them by my self.

Yeah, that is indeed an inconvenience. The solution you came up with seems like the easiest. The average colors of blocks are saved in a text file in the mod JAR file, which is publicly available here. As you can see the average color of purpur blocks is 169,125,169 (RGB 0-255 values) or #a97da9 in hex.
Hope this helps!

Oh this was fast thank you for the help :D

Oh and how i can convert the color numbers like 169 125 169 into hex because this numbers are from rgb but only 0-255 but in blender its diffrent


Suggestion for a project: Record and replay user typing text

Is your feature request related to a problem? Please describe.
This is a suggestion for a front end project. The idea is to have a web app which has an input box / text editor where a user can type and the app records what the user types, similar to recording a video. The app then allows you to download the recording and then play it later and see the user typing text similar to playing a video.
Example: https://www.youtube.com/watch?v=t17uJKb-rho
Project source code - https://github.com/karuppiah7890/text-editor-recorder/
Live here -
Recorder - https://karuppiah7890.github.io/text-editor-recorder/recorder.html
Player - https://karuppiah7890.github.io/text-editor-recorder/recorder.html
Long ago I remember contributing by suggesting another front end project (peer to peer video chat app) and hence suggesting another since I felt this was a cool project to try out! :)
Describe the solution you'd like
If you think that this is a good suggestion, I would like to see a challenge for such a project in the freecodecamp curriculum somewhere, like the list of Take Home Projects https://www.freecodecamp.org/learn/coding-interview-prep/#take-home-projects
Describe alternatives you've considered
Not Applicable

Hey @karuppiah7890,
Thank you for this great idea, unfortunately, we have all our projects planned out at the moment for version 7 of the curriculum.
Thank you for thanking the time to share this.
Enjoy your day, and happy coding!


[bug] Tauri window theme is not propagated to webview (prefers-color-scheme)

Describe the bug
No matter which theme I set in the Tauri config file, the WebView always answers CSS media query prefers-color-scheme with OS color theme. According to the doc, it should only be the behavior is the theme field is None.
There is a similar issue in Electron, and they managed to fix it by "propagate preferred color scheme to the renderer".
Reproduction

Set Windows color mode in Personalization to "Dark".
In tauri.conf.json, set windows[0].theme to "Light".
In Rust main(), call main window's theme() to make sure it is tauri::Theme::Light.
In CSS, have different style for of both @media (prefers-color-scheme: light) and @media (prefers-color-scheme: dark).
Observe that the section in @media (prefers-color-scheme: dark) is used.

Expected behavior
If theme() returns Light, styles in @media (prefers-color-scheme: light) should be used.
Platform and versions
Environment
  › OS: Windows 10.0.22621 X64
  › Webview2: 108.0.1462.44
  › MSVC:
      - Visual Studio Community 2022
  › Node.js: 18.12.1
  › npm: 8.19.2
  › pnpm: 7.18.1
  › yarn: Not installed!
  › rustup: 1.25.1
  › rustc: 1.65.0
  › cargo: 1.65.0
  › Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
  › @tauri-apps/cli [NPM]: 1.2.2
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.2,
  › tauri-build [RUST]: 1.2.1,
  › tao [RUST]: 0.15.6,
  › wry [RUST]: 0.23.2,

App
  › build-type: build
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:1420/
  › framework: Svelte
  › bundler: Vite

App directory structure
  ├─ .git
  ├─ dist
  ├─ node_modules
  ├─ src
  └─ src-tauri

Stack trace
No response
Additional context
No response

I did some research and found the root cause. Tauri uses wry to handle WebView stuff, and wry calls APIs exposed by webview2-com. The original interface of the WebView core, ICoreWebView2, does not support profile or preferred color scheme. This functionality is later added to the 13th updated interface, ICoreWebView2_13. And to use it, one just cast the ICoreWebView2 instance to ICoreWebView2_13, and update the profile.
I did a local test, by adding the following line to wry
diff --git a/src/webview/webview2/mod.rs b/src/webview/webview2/mod.rs
index da3fb62..e247795 100644
--- a/src/webview/webview2/mod.rs
+++ b/src/webview/webview2/mod.rs
@@ -203,6 +203,8 @@ impl InnerWebView {
     let webview =
       unsafe { controller.CoreWebView2() }.map_err(webview2_com::Error::WindowsError)?;

+    unsafe { webview.cast::<ICoreWebView2_13>()?.Profile()?.SetPreferredColorScheme(COREWEBVIEW2_PREFERRED_COLOR_SCHEME_LIGHT)?; }
+
     // background color
     if !attributes.transparent {
       if let Some(background_color) = attributes.background_color {

and now my Tauri app will unconditionally use Light color scheme regardless of my Windows color settings.
I'd love to send a PR to wry for this, but I don't know how the Tauri config is sent down to wry. So maybe someone else is more suitable for this task.

@CrendKing thanks for the research, this has been implemented in upstream and when that is released, we will call it internally when changing the window theme.


Explicitly add ".wasm" extension when importing wasm file in bundle target

💡 Feature description
When Parcel resolves generated pkg as a dependency, it cannot recognize "generated_pkg_bg" as a wasm file like what Webpack can do. Adding wasm extension explicitly can archive the compatibility.
There are plugins and built-in support in Parcel to resolve rs file or "Cargo.toml" directly, but this is fit for building components in a project, not for using package. Besides, Parcel encapsulate the pack so WebAssembly memory cannot be manipulated (I can still come back and import the generated bindgen file).
💻 Basic example
In generated "my_pkg.js" (bundle target)
import * as wasm from './my_pkg_bg';

⬇
import * as wasm from './my_pkg_bg.wasm';

Thanks for the report! This has historically been brought up in https://github.com/rustwasm/wasm-bindgen/issues/1133 and https://github.com/rustwasm/wasm-bindgen/pull/1059, but it's unfortunately pretty tricky to do for various reasons. In any case I've moved this issue over to the wasm-bindgen repo as I think the issue is with wasm-bindgen, not wasm-pack.

@alexcrichton are there any blockers for this update? There are situations when it's hard or impossible to modify weblack.config.js, and if .wasm is not explicitly mentioned as an allowed extension, the module would fail to load with an error like can't resolve 'my_module_bg'. We would fix a number of problems if use explicit extension

@ibaryshnikov What version of Webpack are you using? It's not necessary to change the webpack.config.js, because Webpack already includes .wasm by default.

@Pauan angular 8, webpack 4.35.2
It doesn't work out of the box in angular, my bet is that they overload resolve.extensions somehow, and there's no access to wabpack.config.js there

@Pauan as it was mentioned by @marienz in this comment, here's a possible reason:
extensions: ['.ts', '.tsx', '.mjs', '.js'],

@ibaryshnikov Ah, right, Angular uses its own config, and hides webpack.config.js, quite annoying.
This should of course be fixed on Angular's side, but I'm also in favor of fixing it on our side too.
If I remember correctly, the reason we didn't do this earlier is because it was causing issues with tests, or something like that. So if all of that is resolved (and @alexcrichton gives the OK), then yeah let's fix this.


 My code was written for 0.1.x and some things broke in the most recent version. I think changing that line to
state, reward, done, _ = env.step(action[0])
would most likely fix it.

Hi, thanks very much - that seems to have go it working,
(py35_pytorch) ajay@ajay-h8-1170uk:~/PythonProjects/pytorch-es-master$ python main.py --small-net --env-name CartPole-v0
[2017-09-10 10:42:02,300] Making new env: CartPole-v0
No preprocessing because env is too small
Num params in network 4610
Episode num: 40
Average reward: 26.025000
Variance in rewards: 1738.724375
Max reward: 199.000000
Min reward: 9.000000
Batch size: 40
Max episode length: 100000
Sigma: 0.050000
Learning rate: 0.300000
Total num frames seen: 1041
Unperturbed reward: 11.000000
Unperturbed rank: 19 out of 41 (1 means gradient is uninformative)
Using Adam: False

Looks like it "converges" to the max reward.
Episode num: 1200
Average reward: 191.350000
Variance in rewards: 1272.527500
Max reward: 200.000000
Min reward: 14.000000
Batch size: 40
Max episode length: 100000
Sigma: 0.050000
Learning rate: 0.300000
Total num frames seen: 201716
Unperturbed reward: 200.000000
Unperturbed rank: 1 out of 41 (1 means gradient is uninformative)
Using Adam: False

I think we can close this if you're happy?


WrappedFlatList props

I'm now using the navigationAware scrollable using a FlatList, but it is using the underlying ScrollView from react-native-gesture-handler witch den uses the RN ScrollView, so if I want to use this FlatList I would assume that it will work as a FlatList and not a ScrollView, i.e if I would like to have an onRefresh now I can't use that because of the nature of ScrollView.
So the API:s of React Native FlatList is not the same as the one react-navigation is exporting.
Is this known or should I make a PR to fix this?
Thanks

hello! onRefresh is fixed as of<EMAIL_ADDRESS>


Fix initialValues in story for Autocomplete-multiple

hmm... it would not be possible like that in a real world application with remote loaded options...
Did you try overriding isOptionEqualToValue instead?


getaddrinfo ENOTFOUND error on particular domain

In a parse for an rss stream, every time their RSS feed updates I get the "getaddrinfo ENOTFOUND" error.  Two examples below:
monitorRSS error - http://ir.tesla.com/rss/news-releases.xml - Error: getaddrinfo ENOTFOUND ir.tesla.com ir.tesla.com:80
monitorRSS error - http://ir.tesla.com/rss/sec-filings.xml - Error: getaddrinfo ENOTFOUND ir.tesla.com ir.tesla.com:80
As such, I miss their new rss items.  This is the only domain that throws this error for me.  Any ideas what could be happening?

These feeds parse fine for me. My guess is that either ir.tesla.com was down for a minute, or it has something to do with the configuration of you local network/firewall.
Sorry I can't be of more help - good luck!


Error with the bar at the end of the input

Hi @lozjackson,
I am using your library is very nice, thank you for it. But I think, I´ve found an issue when you have the bar at the end of the input. Then you type a new value, this value isn´t reflected in the input, it get lost. I don´t know if this is correct behaviour.
One possible solution could be that the bar will go at the beginning of the mask or with the last character written.

Thanks for the feedback..
In the example you are using a fixed length mask.. and the cursor is at the end that fixed length.. so it doesn't allow any more characters...
I think this is the intended behaviour.. If you feel I've not understood your issue or that the behaviour should be in some way different then please feel free to re-open this issue.

Ok,I understand but you don´t think that when you click in the input outside the mask, the "bar" should be at the beginning?. Because if the bar is at the end, could be a little bit confused for the user.  Because if they will write any character, it is not going to  be shown. They will need to understand that the problem is that they are trying to write a char and it´s not allowed because of the mask.

ahh, i see what your getting at now.. yes, that could be a little confusing.

and what do you think? This is the correct behaviour or maybe could be updated in a future version of the library.
Thanks

I didn't create the original implementation of text-mask.. and I don't often use text mask with keepCharPositions property set to true so I haven't found it to be a problem.
I don't mind the current behaviour.. however, I am also interested to see ideas for improving the user experience.. so If you want to submit a PR then go for it... but keep in mind that text-mask covers a lot of different use cases and whatever changes are made would need to be backwards compatible (or have a really good reason for changing).. and accompanied by tests.

Ok, thank you very much. But I am not using the mask with keepCharPositions set to true.
I will try to see if the solution is easy and I will apply the change.


Reduce verbosity of gcloud transfers in CI logs

In CI logs such as https://github.com/iree-org/iree/actions/runs/10164585273/job/28113039308 under Downloading install dir archive we have verbose logging of every little kilobyte that gets transferred. In the above log, that amounts to 67,000 lines or about 5 MB.
Apparently gcloud has command line flags such as --verbosity or perhaps --quiet to control these things. Is there a way that we can set them globally though rather than having to think about it at every place in the CI setup?

I'm removing all those cloud transfers. The ones you linked don't exist as of https://github.com/iree-org/iree/commit/2bef72007dd975fa7469d2b1142378d037610981 :)

Yeah the only job remaining that uses the "install" dir is build_and_test_android, and that uses the gcloud CLI instead of wget:
https://github.com/iree-org/iree/actions/runs/10165055203/job/28112516463#step:5:11
gcloud storage cp "${INSTALL_DIR_GCS_ARTIFACT}" "${INSTALL_DIR_ARCHIVE}"
Copying gs://iree-github-actions-postsubmit-artifacts/10165055203/1/install_dir.tar.zst to file://install_dir.tar.zst

....................

Average throughput: 933.8MiB/s


add missing dependency for openvdb[tools]

Currently, I get an error when building openvdb with [tools] feature (x64-windows triplet) with the following build command:
vcpkg.exe install openvdb[tools]:x64-windows

Error message
c:\...\buildtrees\openvdb\src\v5.0.0-7f1d479828\openvdb\points\IndexFilter.h(51): fatal error C1083: Cannot open include file: 'boost/ptr_container/ptr_vector.hpp': No such file or directory

Adding the dependency lets me successfully build and execute vdb_view.exe. However, I need to copy vdb_view.exe into the <VCPKGROOT>\installed\x64-windows\bin directory in order for vdb_view.exe to work. I don't know if this is a deliberate decision or a bug to not copying the exe to this directory.

Thanks for the PR and sorry for the delay!
As for the vdb_view.exe issue, all the dependency dlls should have been copied into the tool directory via vcpkg_copy_tool_dependencies() -- what's missing?


Support html and css

Are you looking for the HTML/CSS language server support?  Which language server are you referring to?

I am able to use the HTML language server using the following lines:
call LspAddServer([#{name: 'htmlls',
                 \   filetype: 'html',
                 \   path: '/usr/local/node_modules/.bin/html-languageserver',
                 \   args: ['--stdio']
                 \ }])

call LspAddServer([#{name: 'htmlls',
\   filetype: 'html',
\   path: '/usr/local/node_modules/.bin/html-languageserver',
\   args: ['--stdio']
\ }])
call LspAddServer([#{name: 'cssls',
\   filetype: 'css',
\   path: '/usr/local/node_modules/.bin/css-languageserver',
\   args: ['--stdio']
\ }])

i don't get autocomplete for both, diagnostics only from css-languageserver

I am able to get autocompletion with both the HTML and the CSS language server.  Can you give a sample HTML or CSS code where autocomplete is not working?

I am able to get autocompletion with both the HTML and the CSS language server. Can you give a sample HTML or CSS code where autocomplete is not working?

https://user-images.githubusercontent.com/21293376/230680182-deafddf4-ab23-4232-b42b-93e54e79c41c.mp4

I am able to get autocompletion with both the HTML and the CSS language server. Can you give a sample HTML or CSS code where autocomplete is not working?

For me none of the two servers installed via npm are completion providers.
@maximyurevich what is the output of :LspShowServerCapabilities?

The output of the :LspShowServerCapabilities command in my setup is:
colorProvider: {}
completionProvider: {'resolveProvider': true, 'triggerCharacters': ['.', ':', '<', '"', '=', '/']}
definitionProvider: true
documentHighlightProvider: true
documentLinkProvider: {'resolveProvider': false}
documentRangeFormattingProvider: false
documentSymbolProvider: true
foldingRangeProvider: true
hoverProvider: true
referencesProvider: true
signatureHelpProvider: {'triggerCharacters': ['(']}
textDocumentSync: 1

HTML

I am able to get autocompletion with both the HTML and the CSS language server. Can you give a sample HTML or CSS code where autocomplete is not working?

For me none of the two servers installed via npm are completion providers.
@maximyurevich what is the output of :LspShowServerCapabilities?

Interestingly enough setting g:LspOptionsSet(#{ snippetSupport: v:true }) will get the HTML language server to report that they support completions 🤷

That is weird.  The following code confirms your finding:
https://github.com/vscode-langservers/vscode-html-languageserver/blob/18bed63e90d661407306d3b66a856e951036567d/src/htmlServerMain.ts#L125
Every language server has some unique behavior :disappointed:.

I have created the following page to capture language server specific configuration and notes:
https://github.com/yegappan/lsp/wiki


Escape code in vue ui page

Version
3.0.0-rc.10
Node and OS info
node v10.7.0 / yarn 1.9.2 / macOS 10.13.3
Steps to reproduce

vue ui and open the page
create a new project
choose 'Manual' in 'Presets' step
enable 'Router' in 'Features' step and click 'Next'

In 'Configuration' step, the prompt of router will be:  Use history mode for router? [33m(Requires proper server setup for index fallback in production)[39m  .
What is expected?
Use history mode for router? (Requires proper server setup for index fallback in production)
What is actually happening?
Use history mode for router? [33m(Requires proper server setup for index fallback in production)[39m

@Akryum I think we need to handle potential color codes in UI (maybe strip-ansi?)

Closed in 8c96c15682e9f616aa0f027185f3705a3ab66b81


error: exit status 2

I'm getting
error: exit status 2
when running xo now under go 1.6.
It appears to be generating all the models (this is a huge DB, there are 192 model files), but I'm not sure what the error is and if I should be worried or not. Running with -v shows this at the very end:
SQL:
SELECT seq_in_index AS seq_no, column_name FROM information_schema.statistics WHERE index_schema = ? AND table_name = ? AND index_name = ? ORDER BY eq_in_index
PARAMS:
[phoenix companies_before_add_refund_cols_to_companies idx_companies_on_updated_on]

error: exit status 2

Thank you.

The exit status 2 is due to go fmt not processing the generated code correctly (which also means a Go build error). That likely means the schema/query inspection code did not generate all the correct data for your schema. Unfortunately, because of how in the 'pipeline' the schema is inspected, and then code is generated, the SQL right before that error doesn't really indicate anything since the gofmt call is the very last step in the pipeline.
If you could do a go build on the output directory (go build ./outputdir/ ) and copy and paste that error I can try to figure out the issue/cause.
It would be great if I could see the actual schema and try to debug from my end. I'm guessing you don't want to share the schema publicly -- if that's so, feel free to privately email me the schema -- if you can this is -- (my email is<EMAIL_ADDRESS>) and I can take a look at it and see what's happening.
Again, I really appreciate you testing/using this as the only way to make xo general purpose and robust is to try it against a variety of schemas and databases and brute-force all of these issues. I would really like xo to become a general purpose tool in any Go developer's toolbox that they immediately go to when they are working with schemas (at least for the initial development step), and that can't happen unless xo is being tested in the wild against real world schemas.

For the moment, it looks like all the go fmt errors are related to pricing. MySQL describe shows:
| list_price             | decimal(10,2) | NO   |     | 0.00                |                             |
which results in this line in the resulting .xo.go file:
	ListPrice Decimal(10,2) // list_price
The go fmt error is:
product.xo.go:30:19: expected ';', found '('
I hope this helps. Let me know if it doesn't narrow it down and I'll see what I can do with sharing more of the schema. Thanks again for the help and cool library.

That's a parsetype issue, and easy to fix, which I'll do in the morning.
Any other Go build errors?
On Feb 28, 2016 9:24 PM, "Willie Abrams"<EMAIL_ADDRESS>wrote:

For the moment, it looks like all the go fmt errors are related to
pricing. MySQL describe shows:
| list_price | decimal(10,2) | NO | | 0.00 | |
which results in this line in the resulting .xo.go file:
ListPrice Decimal(10,2) // list_price
The go fmt error is:
product.xo.go:30:19: expected ';', found '('
I hope this helps. Let me know if it doesn't narrow it down and I'll see
what I can do with sharing more of the schema. Thanks again for the help
and cool library.
—
Reply to this email directly or view it on GitHub
https://github.com/knq/xo/issues/6#issuecomment-189883002.

I just pushed a version that should correctly read the (precision,scale) of numeric/decimal types. Please try and let me know if there are any other issues.

go fmt no longer complains. However, I'm not sure if float64 is the right representation for those fields which represent $ in the db.
There is some discussion here: https://forum.golangbridge.org/t/what-is-the-proper-golang-equivalent-to-decimal-when-dealing-with-money/413/7
Doesn't look there are easy answers. (Thanks again for the fixes.)

Yes -- we also do not use decimal/numeric in any schemas. Databases are notoriously bad at floating point numbers. If we need to represent floats in a database (why, god, why?) typically we store it as a string and convert / do math in the application. The issue is 1) databases have different internal handling (and its different across platforms/architectures, too!) of floating point numbers, and 2) rarely do you need to do something in a real schema where a query would call for an index on a something like "get all prices below $1.00". That kind of index is better suited and is faster when using integers, so we would put that price in a schema as int with a value of 100.
I had refrained from making an extended comment earlier because you really start getting into philosophical debates (which I want to avoid) when it comes to coding. I am happy to let a developer to choose their own poison, so to speak.
I believe in the long run, the correct way to handle this is to allow on the cli user-specified type mapping. That should not be difficult to implement, but it will have the effect of cluttering / mucking up the relatively clean code base.
To be honest, I would really love a SQL implementation that prevents bad schema design and throws away a lot of the legacy cruft. A lot of these numeric/money/decimal types are reimplemented legacies from the 1980s when the only SQL database you could buy was Oracle, and all the other databases simply implemented support for the same basic data types that Oracle provided, nevermind that Oracle got a lot of the basic designs wrong (ie, '' == null, among others).

I hear ya. :-)
No doubt we aren't the only ones who have some some code that follows this pattern, so I'll keep reporting bugs as I work with the xo output so that it can be a more robust tool, regardless of questionable schema choices.


New sunit test action step does not work

Dolphin 7.1.9 added a new option, step. Need to make that work.

Should stop the test after setUp but before performTest

I can't say I find it friendly or useful, but it appears to work. However, it is not integrated fully into our SUnit test support:

[ ] The step feature is not in the SUnit browser, only on the Sunit tab of the PB.

[ ] It's missing from the popup menu on the SUnit tab of the PB (as well as  missing from the SUnit browser popup)

[ ] "step" needs a better icon.

Also, It looks like there are more features in the Sunit tab than in the Sunit browser, which seems backwards, and some inconsistencies.

[ ] The order of the menu items should be fixed if this is added, to match the order of the icons on the side bar.

[ ] I'd like to see the delete option/X icon removed from the PB Sunit tab side icon bar.  It's weird.  Also not in the SUnit browser.

[ ] Why isn't run and measure time in the SUnit Browser and only in the Sunit tab of the project Browser?

I'm not sure what the step command is or does or if it's useful.  The sunit options in 3.2.12 are the same as in the jadeite users guide from 2019.  I suspect this change was made and either decided to be backed out, or on some lost branch; Eric should review if this is a desireable feature that was lost. Not, obviously, a high priority.


Add an upper limit to prune and retrievePrunableMemberCount

Pull Request Etiquette

[x] I have checked the PRs for upcoming features/bug fixes.
[x] I have read the contributing guidelines.

Changes

[x] Internal code
[ ] Library interface (affecting end-user code)
[x] Documentation
[ ] Other: _____

Closes Issue: NaN
Description
Adds an upper limit to Guild#prune's and Guild#retrievePrunableMemberCount's days according to API's upper limit of thirty days. This prevents illegal amounts from causing 400s by checking if the upper limit is met throwing (if it's not) before a request can be made.

Switched to hacktoberfest base as this is not urgent enough to trigger a new build right away


Route.props.getComponent's "location" does not have "params"

// routes.js
export default (
  <Route path="/" component={Layout}>
    <IndexRoute component={Home} />

    <Route path="docs" component={Docs} />

    <Route path="examples">
      <IndexRoute component={Examples} />

      <Route path="/examples/:example" getComponent={function(location, done) {
        console.log(location); // <~~~~~~ Check out the screenshot
      }} />
    </Route>
  </Route>
);

However, i can confirm that if do component={Something},
router.location.params.example = "foo", as expected.

Can you confirm that this issue doesn't exist in react-router?

To elaborate, the reason I ask is that the documentation for the location object doesn't list params as being included: https://github.com/rackt/history/blob/master/docs/Location.md

Crap, you're right.


Add Tailwind CSS Setup (Boilerplate)

@mykartadmin I have made a pull request to solve this issue #6