jingweicai caijw @tencent china shenzhen hello world

fork caijw/support.996.ICU

Microsoft and GitHub Workers Support 996.ICU

https://github.com/996icu/996.ICU

fork in 12 hours

startedMSWorkers/support.996.ICU

started time in 12 hours

startedchemzqm/wept

started time in 2 days

startedMatt-Esch/virtual-dom

started time in 3 days

startedkujian/frontendDaily

started time in 4 days

startedjamiebuilds/babel-handbook

started time in 4 days

startedfkling/astexplorer

started time in 4 days

push eventcaijw/learn

caijw

commit sha 7b19ac322199ad8899f33709bd433cac99f7b383

feat: x

view details

push time in 5 days

fork caijw/abi-stable-node-addon-examples

Node Add-on Examples with PoC ABI stable API for native modules

fork in 5 days

push eventcaijw/learn

caijw

commit sha b67995cc0aa84c96e20b201989c18d5bd6e94f1a

feat: x

view details

push time in 8 days

push eventcaijw/learn

caijw

commit sha 55dbc9de78af0546ed16a607d8586a0b40e48800

feat: x

view details

caijw

commit sha 14edf131dbf27f923a86aa6ea34f3f3b9cf3e47f

Merge branch 'master' of https://github.com/caijw/learn

view details

push time in 8 days

push eventcaijw/analyzeWeChatApp

kingweicai

commit sha 7306faf16339f8e8f99d23d6c1d5dae37313df0c

feat: x

view details

push time in 15 days

push eventcaijw/analyzeWeChatApp

kingweicai

commit sha 3c011bac99545f0fa728a7d0a3edc8e12c17de2f

feat: x

view details

push time in 15 days

push eventcaijw/analyzeWeChatApp

kingweicai

commit sha 2f361dd7d7ec9c41f8131a437b492124189700a7

feat: x

view details

push time in 16 days

startedformulahendry/955.WLB

started time in 16 days

create barnchcaijw/wxTools

branch : master

created branch time in 17 days

push eventcaijw/vue

caijw

commit sha 166f43360c5ef0886c0af9a0455497d04522c9ee

feat: ignore update

view details

push time in 19 days

fork caijw/vue

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

http://vuejs.org

fork in 19 days

startedphodal/articles

started time in 22 days

create barnchcaijw/analyzeWeChatApp

branch : master

created branch time in a month

created repositorycaijw/analyzeWeChatApp

created time in a month

push eventcaijw/learn

kingweicai

commit sha d25b785a1647a17378b6e156f015d5d310e009c5

feat: adb

view details

push time in a month

push eventcaijw/nwjsApp

kingweicai

commit sha 9cdafbc3c9357ed0452776f377da365fb41ded96

feat: update readme

view details

push time in a month

issue openednwjs/nw.js

long string of webview dialog will be cut

Thanks for reporting an issue! Spend 60 seconds reading this...

  1. Before reporting, try reproducing against the latest version of NWJS.
  2. Issue tracker is only for bugs and feature requests, in English only.

Anything else? Use our mailing list for questions: https://groups.google.com/forum/#!forum/nwjs-general

======== TEMPLATE BUG FORM ========

NWJS Version : 0.37.1-sdk and other versions Operating System : macOS Mojave 10.14.3

Expected behavior

<!- What do you think should happen? ->

The long messageText of the dialog event should not be cut.

Actual behavior

The long messageText of the dialog event wilbe cut in some versions.

<!- What actually happens? ->

o.24.4-sdk is ok while 0.37.1-sdk and others versions will cut the string.

How to reproduce

I have write a example to reproduce this issue, please refer to:

https://github.com/caijw/nwjsApp

<!-

  • Detail a step by step guide to reproduce the issue
  • A copy of your code would help. Include: JS, HTML.
  • If you have a crash report, copy it in.
  • Test your steps on a fresh environment to see if you still have an issue
  • Post!

->

created time in a month

push eventcaijw/nwjsApp

kingweicai

commit sha 45b1976490151cd623604deba2527156ac049ca8

feat: update

view details

push time in a month

create barnchcaijw/nwjsApp

branch : master

created branch time in a month

created repositorycaijw/nwjsApp

created time in a month

started997icu/996.ICU

started time in a month

push eventcaijw/the-super-tiny-compiler-cn

caijw

commit sha 15437541c4971dc51c564dc0af51a3dfaf792d36

feat: x

view details

push time in a month

startedjamiebuilds/the-super-tiny-compiler

started time in a month

created repositorycaijw/wxTools

created time in a month

push eventcaijw/ATalk2PM

caijw

commit sha 5f75d86218186b911523da35b52583f8599b559e

feat: x

view details

push time in a month

push eventcaijw/ATalk2PM

caijw

commit sha 9a804ce0af40abd3c8ca961499b45840df1700fe

feat: update

view details

push time in a month

push eventcaijw/ATalk2PM

caijw

commit sha 468448d395ebadec194e7325d992e7148f07f176

feat:ignore

view details

push time in a month

push eventcaijw/ATalk2PM

caijw

commit sha 802a2594219c0bb2c098a3ff5444f7143fd93e60

feat: x

view details

push time in a month

push eventcaijw/learn

caijw

commit sha 7574423fe62f8478602ea59dc5615cf65cb48549

feat: x

view details

push time in a month

push eventcaijw/learn

caijw

commit sha 5d8d2b606489172dda5548bf7395f1842acc301e

feat: x

view details

push time in a month

push eventcaijw/learn

kingweicai

commit sha 8259d41c93781691b003b973799236ee5bc6b024

feat: x

view details

push time in a month

push eventcaijw/learn

kingweicai

commit sha 2e8f4bf4667431040f5d0a9fbb13cef4545a721f

feat: virtual dom

view details

push time in a month

startedMatt-Esch/virtual-dom

started time in a month

startedMatt-Esch/virtual-dom

started time in a month

push eventcaijw/learn

kingweicai

commit sha 4cb57c8a80df7fb1c284743fb77ad2efd39c02a1

feat: x

view details

push time in a month

push eventcaijw/learn

kingweicai

commit sha a0df3c2d1cd789497953a73ecefdaa111c5560b0

feat: mvc design pattern

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha 16b878d2b5fdaf11984c1a0d70c81089859e9536

feat: x

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha db1cebc47c87645c544bfc3fa8055d396083a4eb

feat: x

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha dfffa15cace7c75fdaae38607ddfa2094e542383

fix: 文案

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha 5d3ac896ebc69f4f6b6bcbb0868f86868d1173d1

feat: x

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha 132b7ea24b4e774a605c1884c4a2bad94ac77711

feat: x

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha 2e90756a64f119fde8e05b3dd1adb1222b41ca43

feat: update

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha e628fe34be31e57036eb87f09d38888ee70ef433

fix: 锚点

view details

push time in a month

push eventcaijw/ATalk2PM

kingweicai

commit sha 150473a5bddc905d8fc963480779831da06a0287

feat: web

view details

push time in a month

create barnchcaijw/ATalk2PM

branch : master

created branch time in a month

created repositorycaijw/ATalk2PM

created time in a month

push eventcaijw/learn

kingweicai

commit sha e25ad278554bbfd504bc0de98ba50850e2962928

feat: smart pointer

view details

push time in a month

push eventcaijw/learn

kingweicai

commit sha 9485771db6f721a4684aec5e0375b3a389e09ab6

feat: smart pointer

view details

push time in a month

push eventcaijw/test

caijw

commit sha b51198f9bb0908ca4be7497fcafd8abb496507f2

feat: nodejs memory leak

view details

push time in a month

push eventcaijw/test

caijw

commit sha 400a42086856ab4019324c4819d83c53d1201124

feat: gitignore

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha b37b5c0f359de335d2ccc7fecc5dfc8798f74a5e

feat: x

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha 37938bf2a0421acd0f5064004a4c3d353c4bde98

fix: 链表的构建修复

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha db84f8d2857d275d9ec69a400f50802885f11cb3

feat: x

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha b10087ba17ea71fc37c8d78c94bb4b15fc818cf1

feat: x

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha fec03b182520722d5c5fb91541b53387860ffff7

fix: i改为j

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha 1b1c6dfed58657ba42ff6a6db91d68cfd00b8b8b

fix: i坐标需要移动

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha 9d6e69ffcef8ccd3d7aa187514820ead484dee87

feat: x

view details

push time in a month

push eventcaijw/helloworld

caijw

commit sha 424ba0c1cfbb5416a55e8fc509ab880dfbf34275

fix: 第一道题需要移动i和j的下标

view details

push time in a month

create barnchcaijw/helloworld

branch : master

created branch time in a month

created repositorycaijw/helloworld

created time in a month

push eventcaijw/learn

kingweicai

commit sha 1dd50b97d95420f88c1e562141e77b46b528c8eb

feat: x

view details

push time in a month

push eventcaijw/learn

kingweicai

commit sha c05d805242129b0c0ea4ae2a026ad36183672f6b

feat: frontend

view details

push time in a month

startedliuxinyu95/AlgoXY

started time in 2 months

startedjdneo/vscode-leetcode

started time in 2 months

startedtmux/tmux

started time in 2 months

startediovisor/bcc

started time in 2 months

startedadrai/flowchart.js

started time in 2 months

Pull request review commentdenoland/deno

fix: do not load cache files when recompile flag is set

 impl DenoDir {      let (output_code_filename, output_source_map_filename) =       self.cache_path(&out.filename, &out.source_code);-    let result =-      self.load_cache(out.filename.as_str(), out.source_code.as_str());-    match result {-      Err(err) => {-        if err.kind() == std::io::ErrorKind::NotFound {-          Ok(out)-        } else {-          Err(err.into())+    let mut maybe_output_code = None;+    let mut maybe_source_map = None;++    if !self.recompile {+      let result =+        self.load_cache(out.filename.as_str(), out.source_code.as_str());+      match result {+        Err(err) => {+          if err.kind() == std::io::ErrorKind::NotFound {+            return Ok(out);+          } else {+            return Err(err.into());+          }+        }+        Ok((output_code, source_map)) => {+          maybe_output_code = Some(output_code);+          maybe_source_map = Some(source_map);         }       }-      Ok((output_code, source_map)) => Ok(CodeFetchOutput {-        module_name: out.module_name,-        filename: out.filename,-        media_type: out.media_type,-        source_code: out.source_code,-        maybe_output_code_filename: output_code_filename-          .to_str()-          .map(|s| s.to_string()),-        maybe_output_code: Some(output_code),-        maybe_source_map_filename: output_source_map_filename-          .to_str()-          .map(|s| s.to_string()),-        maybe_source_map: Some(source_map),-      }),     }++    Ok(CodeFetchOutput {+      module_name: out.module_name,+      filename: out.filename,+      media_type: out.media_type,+      source_code: out.source_code,+      maybe_output_code_filename: output_code_filename+        .to_str()+        .map(|s| s.to_string()),+      maybe_output_code: maybe_output_code,+      maybe_source_map_filename: output_source_map_filename+        .to_str()+        .map(|s| s.to_string()),

done ~

caijw

comment created time in 3 months

Pull request review commentdenoland/deno

fix: do not load cache files when recompile flag is set

 impl DenoDir {      let (output_code_filename, output_source_map_filename) =       self.cache_path(&out.filename, &out.source_code);-    let result =-      self.load_cache(out.filename.as_str(), out.source_code.as_str());-    match result {-      Err(err) => {-        if err.kind() == std::io::ErrorKind::NotFound {-          Ok(out)-        } else {-          Err(err.into())+    let mut maybe_output_code = None;+    let mut maybe_source_map = None;++    if !self.recompile {+      let result =+        self.load_cache(out.filename.as_str(), out.source_code.as_str());+      match result {+        Err(err) => {+          if err.kind() == std::io::ErrorKind::NotFound {+            return Ok(out);+          } else {+            return Err(err.into());+          }+        }+        Ok((output_code, source_map)) => {+          maybe_output_code = Some(output_code);+          maybe_source_map = Some(source_map);         }       }-      Ok((output_code, source_map)) => Ok(CodeFetchOutput {-        module_name: out.module_name,-        filename: out.filename,-        media_type: out.media_type,-        source_code: out.source_code,-        maybe_output_code_filename: output_code_filename-          .to_str()-          .map(|s| s.to_string()),-        maybe_output_code: Some(output_code),-        maybe_source_map_filename: output_source_map_filename-          .to_str()-          .map(|s| s.to_string()),-        maybe_source_map: Some(source_map),-      }),     }++    Ok(CodeFetchOutput {+      module_name: out.module_name,+      filename: out.filename,+      media_type: out.media_type,+      source_code: out.source_code,+      maybe_output_code_filename: output_code_filename+        .to_str()+        .map(|s| s.to_string()),+      maybe_output_code: maybe_output_code,+      maybe_source_map_filename: output_source_map_filename+        .to_str()+        .map(|s| s.to_string()),+      maybe_source_map: maybe_source_map,

done ~

caijw

comment created time in 3 months

push eventcaijw/deno

caijw

commit sha 4a030ce8de407fb64cb051e7f6cd174ea0573504

fix: simplify some code

view details

push time in 3 months

startedjulycoding/The-Art-Of-Programming-By-July

started time in 3 months

startedmandliya/algorithms_and_data_structures

started time in 3 months

startedEbTech/rust-algorithms

started time in 3 months

startedjobbole/awesome-programming-books

started time in 3 months

startedtrekhleb/javascript-algorithms

started time in 3 months

push eventcaijw/deno

caijw

commit sha f25ac43fb28d59cbaa093cd23979ce8ca0e896d9

feat: format deno_dir.rs

view details

push time in 3 months

push eventcaijw/deno

caijw

commit sha 167786b5998f37176c9471d7132995ec1b389a01

fix: test case

view details

push time in 3 months

PR opened denoland/deno

fix: do not load cache files when recompile flag is set

<!-- https://github.com/denoland/deno/blob/master/.github/CONTRIBUTING.md --> Fix issue https://github.com/denoland/deno/issues/1637 which is labeled bug. if recompile flag is set, not load cache files, else load cache files. And add a test case test_code_fetch_1.

+66 -28

0 comment

2 changed files

pr created time in 3 months

push eventcaijw/deno

caijw

commit sha 18169f71b61da4f8628bb3f38a9c7cf752b9c9e9

fix: do not load cache files when recompile flag is set

view details

push time in 3 months

fork caijw/deno

A new way to JavaScript

https://deno.land/

fork in 3 months

issue commentdenoland/deno

Automaticcally clear out of date cached files in `~/.gen`.

@bartlomieju The problem last time was due to native ES module upgrade. The source files were not changed so the hash keeps the same, although the compiled version is no longer runnable under new deno release. A way to fix this is to include deno version (or the last compatible version) along with the source file content for hashing.

Regarding auto-purging-on-exit, we could possibly, instead of scanning the whole gen.cache to remove things not recorded in the last step, just remove ones that just got replaced in the code_cache step. However, storing a mapping from source file to compiled file, especially stored as a file, seems would not scale very well and adds penalty on each run as the list grows longer. On the other hand, there are some problems with how to clean compiled code for files that are deleted: the entry is still in the gen.cache, just the source file used as the key is deleted/moved to another location/renamed...

Alternatively, we can introduce an extra flag that cleans the out-of-date/invalid cache, like git clean. We can use both mechanism of hash comparison and last accessed date to determine which files to remove. In this case, we also don't need to maintain a dedicated gen.cache for the mapping, instead we can add a comment in the generated code that points to source location (so that we can check for the updated hash or just verify if the file still exists).

Adding a comment in the generated code that points to source location is a great idea! And i think cleaning should be transparent to users.deno can run cleaning job background and the users will never know about it.

caijw

comment created time in 3 months

issue commentdenoland/deno

Automaticcally clear out of date cached files in `~/.gen`.

Yes, there's no automatic cache purge. I've been putting it off until someone asked for it : ) so thanks for asking.

Do you hava any idea for this issue? I am thinking about maintaining a file gen.cache to recode the origin filenames and their current hash filenames. When code_cache a compiled file , update gen.cache for its hash filename. When load_cache, read gen.cache to get its hash filename, and then read the cached file. When deno's main thread existing, make a request to clear the cached file which is not recored in gen.cache .

caijw

comment created time in 3 months

issue openeddenoland/deno

Automaticcally clear out of date cached files in `~/.gen`.

change a ts file and recompile it , the prev xxxx.js cached file in ~/.gen is still there. I think it is some kind of files leak(deno creates files but does not clear them when they are out of date).

created time in 3 months

push eventcaijw/learn

caijw

commit sha 91f8d495fced79b9a062d11248590a32a1245af0

feat: update

view details

push time in 3 months

push eventcaijw/learn

caijw

commit sha ed9a9f331be1db2151adb28bf20ff2c75527cba6

feat: x

view details

push time in 3 months

push eventcaijw/learn

caijw

commit sha fcb2faa02bf7e5430bd29089ea1da72e9231d3af

feat: update

view details

push time in 3 months

startedzeit/ncc

started time in 3 months

startedaylei/interview

started time in 3 months

startedMicrosoft/napajs

started time in 3 months

fork caijw/awesome-mac

 Now we have become very big, Different from the original idea. Collect premium software in various categories.

https://git.io/macx

fork in 3 months

push eventcaijw/learn

caijw

commit sha d00a03774cb4ec85f424833cfded69523844437b

feat: add deno

view details

caijw

commit sha dd2cabe085e5fe8209ba5947d3436df6999d35a8

feat: add code

view details

push time in 3 months

more