text:
🛑 Info Gempa is down

In be6961a, Info Gempa (https://gempa.natee.me/) was down:

HTTP code: 504
Response time: 11563 ms

Resolved: Info Gempa is back up in 86b9e10 after 15 minutes.

repo: rizkyhaksono/uptime


text:
Readme e página de documentação podem ser melhorados

A documentação do repositório e a página de documentação automática via sphinx podem ser melhorados para a primeira major release, incluindo modificações de estilo e organização

Visando facilitar o desenvolvimento seria interessante incluir um guia de orientações para contribuir com o repositório

Box para expandir subseções não aparece na raiz

Criar uma seção exclusiva para instalação, reduzindo o conteúdo da parte de apresentação.
Criar uma seção com "o básico das três interfaces" e outra com a referência mais detalhada
Criar exemplos de uso

Pensar numa logo para colocar como link principal

Exemplos:
Trocar opção no dger
Mexer em dados de entrada para sensibilidade (carga, vazões históricas e tendência..)
Exemplo de edição (criar, deletar, alterar) de registros no modif (tentar usar métodos da cfinterface direto)
Análise de convergência no pmo.dat e custos por categoria
Eco do histórico do parp.dat para séries de energia
Análise de dados do nwlistop (série temporal, cenários)

source: gharchive/issue

repo: rjmalves/inewave

license: MIT

license_type: permissive

license_source: github-api


text:
Check &  re-order + reduce battery sensors

For the two sensor groups below; I would rename them as follow to make in more clear and shorter (using 'power' to refer to 'active power') but not sure if this has an impact on existing naming in HA?
SENSOR_METERING_ACTIVE_POWER_L1/2/3 --> SENSOR_METERING_POWER_FEEDIN_L1/2/3
SENSOR_METERING_ACTIVE_POWER_CONSUMED_L1/2/3 --> SENSOR_METERING_POWER_DRAWN_L1/2/3
On my Sunny Boy 5.0 PV inverter, I get a response of 60 times "{"val":null}" for the keys corresponding to the sensors below. I get "null" as I don't have optimizers, but I guess there is one value per PV panel (with a maximum of 60) --> if this is correct, it would mean the sensors only give a value for the first panel?
SENSOR_OPTIMIZER_POWER
SENSOR_OPTIMIZER_CURRENT
SENSOR_OPTIMIZER_VOLTAGE
SENSOR_OPTIMIZER_TEMP

Thanks! I see you changed some comment headers. For the comments to group the sensors I use the exact naming as shown in the GUI. Makes it easy to trace back where it is coming from. Are the names the same in the battery GUI or are there differences?

Aha ok, I tried to make the header comments more clear but didn't know it was based on the SMA GUI; I also reordered the sensors to be under the renamed headers (e.g.both total power and power per phase under same header)
Ok for me to keep the initial headers and ordering headers to be consistent with SMA GUI. SBS 3.7 GUI is structured in the same way (some small differences ; e.g. Grid measurements has only subsection 'Active power'):

On my Sunny Boy 5.0 PV inverter, I get a response of 60 times "{"val":null}" for the keys corresponding to the sensors below. I get "null" as I don't have optimizers, but I guess there is one value per PV panel (with a maximum of 60) --> if this is correct, it would mean the sensors only give a value for the first panel?
SENSOR_OPTIMIZER_POWER
SENSOR_OPTIMIZER_CURRENT
SENSOR_OPTIMIZER_VOLTAGE
SENSOR_OPTIMIZER_TEMP

Theses sensors are generated with the correct idx when optimizers are detected.
https://github.com/rklomp/pysma/blob/dev/pysma/__init__.py#L433-L449

Codecov Report

Merging #2 (c5f556f) into dev (ec5259a) will decrease coverage by 0.44%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev       #2      +/-   ##
==========================================
- Coverage   86.11%   85.67%   -0.45%
==========================================
  Files           2        2
  Lines         389      377      -12
==========================================
- Hits          335      323      -12
  Misses         54       54

Impacted Files
Coverage Δ

pysma/const.py
100.00% <100.00%> (ø)

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 ec5259a...c5f556f. Read the comment docs.

allright, great!

For the two sensor groups below; I would rename them as follow to make in more clear and shorter (using 'power' to refer to 'active power') but not sure if this has an impact on existing naming in HA?
SENSOR_METERING_ACTIVE_POWER_L1/2/3 --> SENSOR_METERING_POWER_FEEDIN_L1/2/3
SENSOR_METERING_ACTIVE_POWER_CONSUMED_L1/2/3 --> SENSOR_METERING_POWER_DRAWN_L1/2/3

These names where based in the headers from the GUI.

From SBFSpot
11791=Metering.GridMs.W.phsA\4646912\Power grid feeding L1
11792=Metering.GridMs.W.phsB\4647168\Power grid feeding L2
11793=Metering.GridMs.W.phsC\4647424\Power grid feeding L3
11794=Metering.GridMs.WIn.phsA\4647680\Power drawn from grid phase L1
11795=Metering.GridMs.WIn.phsB\4647936\Power drawn from grid phase L2
11796=Metering.GridMs.WIn.phsC\4648192\Power drawn from grid phase L3

I think both names would cover it. Changing it would not have an impact at the moment as these are new sensors that were not present in pysma yet.

I think if looks pretty good like this! Could we section the battery sensors a bit? How are they grouped in the GUI?

I think 'feed-in' and 'drawn' are more descriptive for what these sensors represent, but keeping consistency in the naming with GUI is also also an argument; maybe keep the GUI naming and add the SBFspot name as in-line comment just to clarify ?
Below print screen of battery section:

I think 'feed-in' and 'drawn' are more descriptive for what these sensors represent, but keeping consistency in the naming with GUI is also also an argument; maybe keep the GUI naming and add the SBFspot name as in-line comment just to clarify ?

The current section comments contain 'feed-in' and 'drawn', so i guess that is clear enough?

Below print screen of battery section:

We could add some section comments based on this to make it a bit more structured.

done!

source: gharchive/pull-request

authors: codecov-commenter fitool rklomp

repo: rklomp/pysma


text:
Create wrapper for static rendering

For the existing should enzyme wrapper the static rendering api render needs to be added.

Hey Richard, I would like to take this up.

authors: amarnus rkotze

repo: rkotze/should-enzyme

license: mit

license_source: bigquery


text:
docs: add appc deprecation note

this is mostly just an excuse to test semaphore again

All :green_heart:!

authors: jonboulle lucab

repo: rkt/rkt


text:
Some questions I have about options and docs

Could you document what which of this options involve?
vim.o.sessionoptions="blank,buffers,curdir,folds,help,options,tabpages,winsize,resize,winpos,terminal"

I'm having an issue which when I reopen neovim it is not getting the changes I made in my settings and keymaps, and I have no idea which of theses is causing this. (at first I thought it were the options but even after disabling it, the "issue" persisted)
And what's the difference between auto_save_enabled and auto_session_enabled? They seem the same to me

Hi @augustocdias thanks for the submission.
This would be better as a discussion most likely but that's alright.
You can read what each of these options does in the help docs. :h sessionoptions.
options or localoptions are probably what should hold that info for you.
As for the enabled flags:

auto_save_enabled: is just a more granular control option, it really just toggles the auto saving of a session, not the restoring of one for example.
auto_session_enabled: toggles the whole plugin, so auto-session will do nothing if this is disabled, not save, not restore, nothing.

Tks for the info. I didn't open a thread in the discussions because it is not available for me. Is it enabled for the repo?

Oh you're right, I guess it wasn't 🙃. It should be enabled now! Thanks 🎉
I hope the above answers your questions though!

authors: augustocdias rmagatti

repo: rmagatti/auto-session


text:
🛑 Statuslog is down

In b79a12e, Statuslog (https://r.mateu.me) was down:

HTTP code: 503
Response time: 787 ms

Resolved: Statuslog is back up in f0b4c48 after 7 minutes.

repo: rmateu/statuspage


text:
CVS Formatting

It is just a little suggestion, but can it be possible to add CSV formatting of the output report text, like CSV to import this as a task list in excel ?

Thank you for the suggestion!  That doesn't sound too hard.  I'll look into it.
It won't be right away, but when the time comes if you would be willing to test it before release, I would appreciate any feedback.

@Careframe We're going to be making some improvements to error logging, probably next year.  If you still need this, it would be great if you could provide an example of the format you're looking for.

Superseeded with https://github.com/rmcanany/SolidEdgeHousekeeper/issues/113, closing.

authors: Careframe rmcanany

repo: rmcanany/SolidEdgeHousekeeper


text:
PostListing

What is the reference in category.js:
import PostListing from "../components/PostListing";
Is there an additional package to be installed?

Came to ask the same thing. Looks like they did not add that example.

Hi,
Sorry this took me awhile to get to, it slipped my mind but your email reminded me, @JGallardo.
PostListing was just a basic component to spit out some posts.
I've added an example to the repo, I hope it helps. You can find it here: https://github.com/rmcfadzean/gatsby-pantry/blob/master/examples/starter-blog
I recommend copying out the bits you need instead using that as a base because it's very light on the features.
Let me know if you need any more help :)

authors: JGallardo polishedwp rmcfadzean

repo: rmcfadzean/gatsby-pantry


text:
Could not contact provider

Artwork Beef has recently started to show some notifications with the message Could not contact provider and I couldn't find out which provider it is referring to, neither in the notification message nor the log.
I don't recall changing any Artwork Beef setting recently to trigger that, it was working fine for months. The only significant changes I can think of are updates to PlexKodiConnect, which I rolled back several different versions while trying to debug.
Running

Windows 10 Pro x64
Kodi "Krypton" v17.6
Artwork Beef 0.23.3

Files

kodi.log
artwork-report.txt
settings.xml

https://forum.kodi.tv/showthread.php?tid=258886&pid=2842889#pid2842889


text:
[Bug]: style attribute linetrimOffset for LineLayer not working

Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
iOS & Android
@rnmapbox/maps version
10.0.0-beta.75
Standalone component to reproduce
import React, { useMemo } from 'react';
import MapboxGL from '@rnmapbox/maps';

const Map = () => {
  const shape: GeoJSON.Feature = useMemo(() => ({
    type: "Feature",
    properties: {},
    geometry: {
      coordinates: [
        [
          2.169586296739851,
          41.39450473274982
        ],
        [
          2.162210168136397,
          41.38882548578357
        ],
        [
          2.1707509486246295,
          41.38882548578357
        ],
        [
          2.1752154475155407,
          41.38867985754251
        ],
      ],
      type: "LineString",
    },
  }), []);

  return (
    <MapboxGL.MapView style={{flex: 1}}>
      <MapboxGL.Camera centerCoordinate={[2.162210168136397, 41.38882548578357]} zoomLevel={14} />
      <MapboxGL.ShapeSource id="lineSource" shape={shape}>
        <MapboxGL.LineLayer
          id="lineLayer"
          style={{
            lineColor: '#00ff00',
            lineWidth: 10,
            lineCap: 'round',
            lineJoin: 'round',
            lineTrimOffset: [0.5, 0.7],
          }}
        />
      </MapboxGL.ShapeSource>
    </MapboxGL.MapView>
  );
};

export default Map;

Observed behavior and steps to reproduce
In the example above, I render a map with a Camera and a LineLayer.
In the LineLayer style, I set lineTrimOffset to [0.5, 0.7].
IOS:

When lineTrimOffset is set, the layer disappears from the map, and an error is thrown on the native logs:

Test[478:15623] Failed to create render pipeline: Error Domain=AGXMetalA14 Code=3 "Vertex attribute 2 is not defined in the vertex descriptor." UserInfo={NSLocalizedDescription=Vertex attribute 2 is not defined in the vertex descriptor.}
Test[478:15623] Can't create pipeline for `line` shader
Test[478:15623] Can't create pipeline for `line` shader
Test[478:15623] Can't create pipeline for `line` shader
Test[478:15623] Can't create pipeline for `line` shader
Test[478:15623] Can't create pipeline for `line` shader

Android:

When lineTrimOffset is set, nothing happens. The line stays visible.

Expected behavior
The line part between [trimStart, trimEnd] should be marked as transparent to make a route vanishing effect.
Notes / preliminary analysis
No response
Additional links and references
No response

@pablogdcr Actually it seems that this fixes the issue:
- <MapboxGL.ShapeSource id="lineSource" shape={shape}>
+ <MapboxGL.ShapeSource id="lineSource" shape={shape} lineMetrics >

authors: mfazekas pablogdcr

repo: rnmapbox/maps


text:
Chore/add 80 max rule

subj

yoohoo! +71 issues

repo: rnpm/rnpm-plugin-link


text:
Update README.md

Took some notes when setting up

Looks like it's installing apollo client globally, you don't need the package.json nor the npm install

If I remember correctly, the reason we use npm install rather than depending explicitly on the Apollo script is to ensure that everybody is using the same version as minor differences in version means the generated files are completely different (which pads out, unnecessarily, the pull requests)
Definitely not a necessity though

The script in the build stage doesn't actually use that though, it's tied to the version defined in the Pod itself.
/Pods/Apollo/scripts/check-and-run-apollo-codegen.sh:
# Only major and minor version should be specified here
REQUIRED_APOLLO_CODEGEN_VERSION=0.17

install_apollo_codegen() {
  # Exit immediately if the command fails
  set -e
  npm install -g apollo-codegen@$REQUIRED_APOLLO_CODEGEN_VERSION
  set +e
}

[...]

if ! are_versions_compatible $INSTALLED_APOLLO_CODEGEN_VERSION $REQUIRED_APOLLO_CODEGEN_VERSION; then
  echo "The version of Apollo.framework in your project requires apollo-codegen $REQUIRED_APOLLO_CODEGEN_VERSION, \
but $INSTALLED_APOLLO_CODEGEN_VERSION seems to be installed. Installing..."
  install_apollo_codegen
fi

It will just reinstall a global version and ignore your local package completely.

My interpretation (albeit maybe wrong) is that are_versions_compatible only checks the major/minor version as opposed to the entire version. npm install uses 0.17.0-alpha.13 which would match the version in the pod 0.17 and therefore would not install a different version

Makes sense, thanks for explaining!

authors: Sherlouk orta

repo: rnystrom/GitHawk


text:
Enhancement: better export

Is there a way to have roam42 create enhanced page export for markdown, one that removes wiki links, extraneous bullets in front of paragraphs, etc? Thanks!

Thanks for the idea. Can you give me some more details about how this would work:

How would it look
How activated

This is now in the test build and will be available to public in a week or two.
Supports:
pure text
markdown text
html view
stripping out the roam stuff to make it reusable else where

Awesome news! Thank you!!!!!!

A further idea is an option to be able to export a page as well as all of the pages that it links to.

authors: anthrolisp roamhacker

license: Unlicense


text:
tree uncolorized

The output of tree should be colorized only for terminal (similar to --color=auto). This is the default case in zsh, but Oh-My-Zsh suppresses it.

I don't know if I understood correctly: in your system, tree appears with colors even when you're not in the terminal? Or it doesn't show colors at all?
In my system (Debian with zsh 5.0.7) the correct behavior appears: tree shows with colors, but tree > tree_sample.txt only outputs text.

I can reproduce behavior that sounds similar to this. On my OS X 10.9.5 system (zsh 5.0.2, tree 1.7.0) and my Debian 7 system (zsh 4.3.17, tree 1.6.0), when I run tree from a zsh session, the output is not colorized unless I force it with tree -C.
But I don't think it's due to oh-my-zsh per se. I get the same behavior under zsh if I disable oh-my-zsh.
I suspect it's because OP's setup does not define LS_COLORS. tree uses LS_COLORS (and not LSCOLORS) to decide whether it should colorize. From the man page:
DESCRIPTION
       Tree is a recursive directory listing program that produces a depth indented listing
       of  files, which is colorized ala dircolors if the LS_COLORS environment variable is
       set and output is to tty.

Zsh does not in fact set up LS_COLORS by default, and neither does oh-my-zsh. Some of the oh-my-zsh themes define it, though.
@franklinyu, check your $LS_COLORS to see if it's defined and if not, define it in your ~/.zshrc or switch to an OMZ theme that does.
Was it working under zsh before you installed oh-my-zsh? Installing oh-my-zsh will replace your existing ~/.zshrc file, moving it to ~/.zshrc.pre-oh-my-zsh. If you previously had a .zshrc that defined LS_COLORS, that would explain why it stopped working with OMZ. To fix that, restore your original .zshrc configuration: copy the current ~/.zshrc contents to the end of ~/.zshrc.pre-oh-my-zsh and then move ~/.zshrc.pre-oh-my-zsh to ~/.zshrc.

@apjanke LS_COLORS is defined exactly the same as my Bash; in contrast, LSCOLORS shows junk. I uninstalled Oh-My-Zsh and tree works fine. In contrast, ls becomes something like ls --color=never (same as in bash) and I need a alias ls='ls --color=auto'. For your reference, this is my LS_COLORS:
rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:

It looks just fine.

@mcornella It does not display color at all, unless I manually -C. I am on Ubuntu 14.04 with Zsh 5.0.2 and tree 1.6.0

Hmm. Let's see if we can get some more details about your setup.
What do you mean by "LSCOLORS shows junk"? Is it the value of LSCOLORS itself that looks bad?
Could you run the omz_diagnostic_dump function from this file and post the output as a gist?

@apjanke You are right about LS_COLORS. I accidentally found something; now I summarize the cases by far:

In clean Zsh, LS_COLORS is set, and tree works fine.
After I installed Oh-My-Zsh, LS_COLORS is gone and tree doesn't work.
If I set bash as my default shell, and I enter zsh from that, then everything works fine again, including the LS_COLORS.
If Zsh is my default, then tree and LS_COLORS doesn't works (as stated in case 2), but if I enter bash and then zsh, then tree and LS_COLORS gets back to normal in the inner zsh.
In the only failing case (No. 2), export LS_COLORS='settings...' works as expected.

Therefore, I am pretty sure I need an export or something similar in some of my rc files, but should I add them to the .zshrc? Why re-entering Zsh sets the LS_COLORS? (I cannot find the setting in .bashrc or .profile.)
I guess I do not need to post the dump? :smile:

LS_COLORS is not set by default in zsh. It needs to be set in config or rc files. There are different rc files for bash and zsh.
I bet it was set in your old ~/.zshrc, which oh-my-zsh moves out of the way when it installs. Look in your home directory for ~/.zshrc-pre-oh-my-zsh and if it's there, copy all the stuff in it over to your current ~/.zshrc.
Please post the dump; it will still be useful.

Yes, I found it: my ~/.zshrc contains a line eval "$(dircolors -b)" which will set the colors.
And now I know why the inner Zsh works: it inherits the LS_COLORS from Bash.
For your reference, the dump is at this gist (of course it is before I ~/.zshrc.pre-oh-my-zsh into ~/.zshrc).

Great. Thanks for the info.
Could you close this issue if it's working now? (Only the original poster and repo owner have rights to close issues.)

Yes, sure. Great thanks.

FYI, I've made a PR to make oh-my-zsh set LS_COLORS by default #5488

authors: apjanke franklinyu mcornella xuhdev

repo: robbyrussell/oh-my-zsh


text:
some plugins don't work well without setopt completealiases

Reproduction steps

default oh-my-zsh installation
enter a git repo

    cd ~/.oh-my-zsh

git checkout <tab>

HEAD           master         origin/HEAD    origin/master

gco <tab>

HEAD           master         origin/HEAD    origin/master

this is OK, now let's set completealiases
setopt completealiases
git checkout <tab>

HEAD           master         origin/HEAD    origin/master

OK
gco <tab>

cache/           custom/          lib/             log/             MIT-LICENSE.txt  oh-my-zsh.sh     plugins/         README.markdown  templates/       themes/          tools/

NOT OK

Test environment data
Ubuntu 15.04 x64
zsh 5.0.7 (x86_64-pc-linux-gnu)
oh-my-zsh (76a26a2a59d8c6d0f6)
Cygwin
zsh 5.0.8 (x86_64-unknown-cygwin)
oh-my-zsh (76a26a2a59d8c6d0f6)
Further information
5b75cc7880de193 seems to be the commit having made the regression.
Alias completion of git commands works with or without setopt completealiases in commits past that one.
Solution
Make sure the git plugin fully works even when completealiases is set.
Or even better, that aliases completion like gco<tab> works only when completealiases is set...

I can reproduce on OS X 10.9, and expect it will be the same on all platforms: this is normal behavior for complete_aliases.
Yeah, this is from #2790 and the commit 5b75cc7880de1931a0507800d90eb77ed659fa46 you identified. The current implementation assumes complete_aliases is off, which is the default for OMZ since 8883ace767997d1a629c165780af303f715ee78d. See this comment.
To fix it to work with complete_aliases, those compdefs need to be added back in.
Many other plugins and core aliases will also be affected by complete_aliases, since they generally do not explicitly define compdefs to go with the alias definitions. (Although it won't matter for many of them, since they take files as arguments and the default completion will work.) Maybe a more experienced OMZ developer can comment on interaction between OMZ and complete_aliases, and whether it's supported?

As an aside, why do you have complete_aliases set?

Yep, just read c3a58b000400 too.
I kind of feel that this issue has more to do with the standardization of completions of (I guess) most plugins or the fact that the git plugin is non standard among all others (is there even a standard?...)?
Pretty much the reason for completealiases is because several other plugins do not work fully without it. And it makes sense (in some cases):
no completealiases => no alias completion, completealiases => alias completion.
Some examples with rake and debian plugins:
unsetopt completealiases

Enter some ruby/rails project.
cd somerails
rake db:<tab>

No completion.
Let's try the debian plugin.
ai zs<tab>

No completion, while
aptitude (or apt-get) install zs<tab>
zsh-antigen   zsh-beta-doc  zsh-dbg       zsh-doc       zsh-static    zssh
zsh-beta      zshdb         zsh-dev       zsh-lovers    zsnes-dbg     zsync

works as intended.
Now with completealiases on:
setopt completealiases

the rake plugin
rake db:<tab>
db:create                -- creates the database from database_url or config/database.yml for the current rails_
db:drop                  -- drops the database from database_url or config/database.yml for the current rails_en
db:fixtures:load         -- load fixtures into the current environment's database
db:migrate               -- migrate the database (options: version=x, verbose=false, scope=blog)
...

completes correctly, and the debian plugin too:
ai zs<tab>
zsh-antigen   zsh-beta-doc  zsh-dbg       zsh-doc       zsh-static    zssh
zsh-beta      zshdb         zsh-dev       zsh-lovers    zsnes-dbg     zsync

Yeah, I think you're right that it's about standardization of how plugins do completion.
In my opinion, if a plugin requires complete_aliases at this point, that's a bug in the plugin. The default options after the core OMZ code loads are "authoritative", and plugins should be written to work under that state. It's probably a historical accident that some of them require it: they were probably written back when complete_aliases was the default in OMZ and didn't get updated when that changed.
You're right, we should standardize all the plugins to work with one setting or the other. But I think the correct one is "off": going with complete_aliases on would require extra, possibly tricky, configuration work for every alias we define (about 1,200 of them in all of OMZ), and would force users to do so as well for aliases they define themselves. If you leave complete_aliases off, you get completion for many aliases "for free".
On the flip side, if you have a case where you have an alias and you do want a distinct completion behavior for it (as opposed to the completion that would happen for the expanded alias), you can easily fix that on a per-command basis by converting the alias to a function.
The debian plugin is a good example. There's an open issue for it #3686. Check out the extra code it used to get working with complete_aliases enabled. And it is still buggy (e.g. it's using the apt-get completion when it should be using the aptitude completion).
I don't use rails, so I don't know why the db:... completion for rake requires complete_aliases. (Can you point me at an example rails project I can use to reproduce it?) But check out the flip side: that plugin also defines srake, brake, and other commands. Getting completion for them needs no_complete_aliases: if I do srake -<tab>, it will complete the options for me; if complete_aliases is on, it won't.
Let's fix the plugins to work under no_complete_aliases. I'll work through debian and rake with you. Let me know if you see others that are broken.

When you mentioned the rake command you must have been referring to the rails plugin, which is already protected against nocompletealiases because they are functions: https://github.com/robbyrussell/oh-my-zsh/blob/6d143d42ea2e16610855e5b1e912b2962d44d9ab/plugins/rails/rails.plugin.zsh#L30-L31
As per the debian plugin, there is already issue #3686 open, so I'm closing this issue unless there are other plugins that should be fixed as well.

authors: apjanke la-magra mcornella


text:
vi-mode / and ? override to search within current line

The primary reason I use the vi-mode plugin is to easily navigate and edit long commands. However, the default search behaviour for / and ? is to search through the command history, which I already have through FZF. I'd like to override this current history search to instead search through the current command, moving the cursor to the result.
Further, can you provide what I need to include in the zshrc to override the default /, ? , n and N to have vim-mode search achieve this behaviour.

when I want to do this, I use v from normal mode to enter visual mode. That opens a vi editor where I can use all of the power of vi to edit my more complex command.

Hi @cognifloyd
Is that default behaviour? If I escape to normal mode and press v it italicizes the character I'm currently over (iterm). If I open another terminal client v has no effect.

I'm on linux. I use Konsole and the linux console. In vi-editing-mode, in both zsh and bash, and in both Konsole terminal emulator and in the raw linux console, pressing v in normal (esc) mode has opened vim for as long as I can remember.
It does that when I'm connected to my local Gentoo linux machine, and to remote CentOS linux machines. If that doesn't work elsewhere, that's a surprise to me. :) I'll have to make sure to stay on linux so my finger muscle memory continues to serve me here.

@cognifloyd I just checked and v has no effect on any of my other terminal clients including Alacritty or Kitty, so I do not suspect this is an issue with the emulator.

I'd like to override this current history search to instead search through the current command, moving the cursor to the result.

I don't know if a zle widget exists to search the current command and move the cursor to the result. Changing a key binding is just as easy as using bindkey, so the commands would be
bindkey -M vicmd '/' name-of-the-widget
bindkey -M vicmd '?' name-of-the-widget

The thing to figure out is if the zle widget exist, or how to program one. You'll have a better experience if you ask in the Zsh mailing list.

Is that default behaviour? If I escape to normal mode and press v it italicizes the character I'm currently over (iterm). If I open another terminal client v has no effect.

That's the Zsh default, so unless there's something overriding the v key in vicmd you should be able to do it. Check if there's something overriding it by running bindkey -M vicmd v. The widget should be visual-mode.

authors: cognifloyd jessebett mcornella


text:
how to remove % character after install oh-my-zsh

I'm an Hyper user, after install zsh / oh-my.zsh i see a strange character in hyper, could you please help me to remove it?

This is a Hyper bug, see https://github.com/zeit/hyper/issues/3586.

authors: CsarGomez mcornella


text:
zsh parameter added for rbenv init

It seem it change only which completion file is loaded, but it removes the complete not found command error ;)

I've got info about that parameter from here https://github.com/sstephenson/rbenv/issues/185#issuecomment-3740933


text:
CloudWatch orders logs by their received time, not the timestamp in the log line

This may be more of a question than an issue with this library. I wasn't able to find any answers elsewhere, so maybe you can help. When buffered debug logs are flushed and sent to CW a timestamp is attached to that event at the time it's pushed to CW, and that is the timestamp CW will show in its "timestamp" column, and what it sorts by.
When using the CW console to view logs, is there a method to create the log events with the timestamp from the message?

Thanks for reaching out. As you correctly pointed out, the Timestamp column in CW shows the time that particular log output reached CW. IIRC there is the ability to put log events to CW using its API, which allows the timestamp to be specified (see https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html). However, personally I don't know of a way to override the Timestamp when streaming logs from stderr or stdout to CW.
Not sure, if I understand you correctly, but maybe the following could help: If you merely want to sort the logs by another value, you could include the timestamp when the log was emitted as part of the log context. That should enable you to sort messages in CW Logs Insights accordingly.

Have you looked at CloudWatch Logs Insights yet? It might actually serve your purpose well. And since it's based on the CloudWatch logs there is no overhead of re-ingesting or submitting log messages elsewhere. Lesslog allows you to enrich your log messages with contextual information that is formatted in a way that Logs Insights is able to parse. Which allows you to filter, sort, group and search based on information in that context.

I've looked at it just a little bit. At first glance it appeared that the @timestamp field still comes from event metadata in CW, not the contents of the log line itself. Parsing custom fields appears limited to JSON format logs.

authors: HeroesDieYoung robdasilva

repo: robdasilva/lesslog


text:
Example of Material Bar Chart - Second Chart does not display

Trying out this package.  I am running your examples.  The example/material/bar/bar.html does not display the second chart.  There are no errors.

Fixed in Version 0.2.1

authors: roberthartung rwrozelle


text:
Incorrect alias for adding an entry

Coming from here: https://github.com/robertranjan/kpcli/blob/main/cmd/cmd.go#L10
Should be a instead? Also in help:
COMMANDS:
   ls, l      lists entries
   create, c  Create a new kdbx databse
   diff, d    diff entries between 2 kdbx databases
   add, l     add an entry
   help, h    Shows a list of commands or help for one command

This one has been addressed with the recent commit. Please verify.

Thanks, works as expected.

authors: robertranjan vaygr

repo: robertranjan/kpcli


text:
Retry on failure

Thanks for building this action! that was exactly what I needed for some of my projects :)
Is your feature request related to a problem? Please describe.
When running this action on macOS runners, I hit #347 quite a lot of times. Restarting the job a couple of times eventually makes it successfull
Describe the solution you'd like
A way for the action to retry on failure, for example, by specifying a max number of retry attempts and a delay time in between
Describe alternatives you've considered

I've tried with https://github.com/marketplace/actions/retry-action, but running this action with it brings always a constant 404
A separate job running on Linux runners and pass over the artifacts between jobs

Additional context
At https://github.com/c3os-io/c3os/ I'm planning to use this action to run upgrade tests from latest releases - but currently this is almost not doable at all for the problem mentioned above

@mudler This is caused by GitHub rate limiting API calls from macOS runner.
This action uses the GH API under the hood.
Can you try providing the default GitHub token as follows
- uses: robinraju/release-downloader@v1.3
  with:
    latest: true
    fileName: "foo.zip"
    token: ${{ secrets.GITHUB_TOKEN }}

You don't need to generate a new token. This one is available on the actions runtime. See: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
If this works for you on macOS runner, I'll make this default to this action.

Update:
A possible fix is merged in #441
@mudler can you try using the latest commit from main as follows
- uses: robinraju/release-downloader@36fe95787d3f42ee0e69626e12775d15c7c14d38
  with:
    latest: true
    fileName: "foo.zip"

@robinraju thanks! I'll give it a try and keep you posted

Closing this issue, as the macOS builds are stable for some time on this repo. Please use the latest version of this action (it contains the fix for this issue)

authors: mudler robinraju

repo: robinraju/release-downloader


text:
PostgreSQL UNIQUE constraint as table constraints

Is there any support for this:
http://www.w3resource.com/PostgreSQL/unique.php
CREATE TABLE orders(
ord_no integer,
ord_date date,
item_name character(35),
item_grade character(1),
ord_qty numeric,
ord_amount numeric,
UNIQUE (ord_no)
);
this don't do what i expected:
->addIndex(array("ord_no"), array('unique' => true))

Working with Indexes covers making them unique.

I just finished researching this. In Postgres, currently, adding a unique index will enforce uniqueness. In fact that's how unique constraints are actually implemented behind the scenes. However, in 9.4 docs there was this cautionary note:

The preferred way to add a unique constraint to a table is ALTER TABLE ... ADD CONSTRAINT. The use of indexes to enforce unique constraints could be considered an implementation detail that should not be accessed directly.

This note does not appear in 9.5 and 9.6 docs, but neither is there guidance on how we should interpret its disappearance. Another wrinkle is the question of whether columns with unique indexes (but not unique constraints) can be referenced by foreign key constraints. Some people read the docs as saying they cannot:

A foreign key must reference columns that either are a primary key or form a unique constraint.

But, I have tested this with success.
Even with my working tests and the disappearance of the warning note, it seems best to create unique constraints when a constraint is your intent. Not only does that make your intent more obvious to other developers, but it sends a clearer signal to Postgres as well—whether or not Postgres reacts any differently at the present time.
So this seems to me to be a feature worthy of implementation discussion for Phinx.

This affects other database adapters as well, such as SQLite. While functionally identical as well, constraints are treated differently (different DDL syntax as well).
This has mostly repercussions for other means of access, such as SQLite Studio, which interprets and displays unique indices different from unique constraints, leading to possible confusion.

Are you able to provide a patch with your suggested changes as PR?

authors: Garbee WGPSenshi dereuromark ethanpooley opya

repo: robmorgan/phinx


text:
Issue with automated phinx execution

I am executing Phinx through an NPM script:
  "scripts": {
    "bower": "bower --allow-root",
    "compile": "webpack --config ./app/System/Config/webpack.js",
    "phinx": "php php_modules/bin/phinx --configuration=app/System/Config/phinx.php",
    "dbtool": "php util/dbtool.php",
    "artisan": "php util/artisan",
    "shell": "php util/artisan tinker",
    "start": "node app/bootstrap/main.js"
  },

When I just want to use the list command, I get an exception, that --configuration is not supported. Could you fix that somehow?

Sure ...
  "scripts": {
    "bower": "bower --allow-root",
    "compile": "webpack --config ./app/System/Config/webpack.js",
    "phinx": "php php_modules/bin/phinx list",
    "dbtool": "php util/dbtool.php",
    "artisan": "php util/artisan",
    "shell": "php util/artisan tinker",
    "start": "node app/bootstrap/main.js"
  },

That is not what i meant.
When using the list command, and having the config flag still in, causes an exception.
Is there a way to make Phinx accept the config flag when running the list command?

Why are you putting the option in at all? Nearly every program throws an exception/dies for an unrequired option. Even DOS! Symfony console (the underlying tech that does the validation) is acting consistently and appropriately.

I agree, this isn't a phinx problem.

authors: IngwiePhoenix rquadling shadowhand


text:
Add public APIs to allow modifying parsing model

Currently we expose these parsing related functions and classes via our explicit public API robot.api:

get_tokens for parsing test data to tokens.
get_model for parsing test data to a higher level model.
Token to expose token types and to allow creating new tokens.

The current API is enough for inspecting data and existing data can also be modified. It isn't, however, possible to add new data to the exposed higher level model. This functionality is important for external tools working with the parsing model such as the new RoboTidy.
Things to decide include:

What APIs to expose? Basically we need to expose everything so that RoboTidy can use only robot.api and not robot.parsing. The model has lot of node classes like File, TestCaseSection, Keyword, If, IfHeader, and End. We can either expose them all individually or we can expose factories that allow creating different nodes. With statement nodes we already have our internal Statement that has from_tokens, but with block nodes we don't have anything similar. If we could add e.g. Block.from_statements then exposing just Statement and Block could be enough.

Should we expose these APIs via robot.api directly or should we add robot.api.parsing? I think the latter is a must if we end up exposing all node classes, but it may also be a good idea otherwise.

I've been prototyping creating Block.from_statemens and now, for example, this works:
test = Block.from_statements([
    Statement.from_tokens([Token(Token.TESTCASE_NAME, 'Example')]),
    Statement.from_tokens([Token(Token.SEPARATOR, '  '),
                           Token(Token.KEYWORD, 'Log to console'),
                           Token(Token.SEPARATOR, ' '),
                           Token(Token.ARGUMENT, 'Hello, world!')]),
    Statement.from_tokens([]),
])

Does that look fine for RoboTidy developers and others? If yes, I can finalize this work and expose both Block and Statement publicly.

Although the above works, I'm starting to think it's not a good idea. The same example can be written like this already now:
test = TestCase(
    header=TestCaseName([Token(Token.TESTCASE_NAME, 'Example')]),
    body=[
        KeywordCall([Token(Token.SEPARATOR, '  '),
                     Token(Token.KEYWORD, 'Log to console'),
                     Token(Token.SEPARATOR, ' '),
                     Token(Token.ARGUMENT, 'Hello, world!')]),
        EmptyLine([Token(Token.EOL)])
    ]
)

I like this latter example more because it's more explicit. Supporting it is also easy, we just need to expose all nodes used in the parsing mode. Because there's lot to expose, I believe we should do that via robot.api.parsing instead of directly via robot.api. We can also move other public parsing APIs there (we can leave them in robot.api as deprecated) and can move lot of the API docs in robot.parsing to that module as well.

From what I've seen 99% (made up number, based on few different companies I've been in) people are using robot.api for logger and decorators and that's it. That's why I would prefer to use something like robot,api.parsing especially if we're going to expose a lot.
For me using api is doesn't have any benefit right now - but I understand the necessity (it's better to have one stable API, in case something in parsing change its name or place). And it will help to reduce amount of imports - sometimes I need to think what's statement and what's block to decide where to import from, ie here.
From those two examples I prefer the more explicit one - I can see from quick glance what's actually created.

The decision  now is to expose all nodes used in the model explicitly via robot.api.parsing. Also parsing stuff currently exposed via robot.api will be made available via that module. The module will also get comprehensive API docs based on the current docs of robot.parsing.
An additional task is thinking can the model be simplified somehow. For example, it seems we could just have single SectionHeader instead of separate section header classes for each section.

Parsing model objects as well as visitors that can be used to traverse the model were exposed in 6df70f66d14118b44f3ccf4e099a081f0bbfe089. The new robot.api.parsing module still needs API docs and should also add a note that get_tokens, get_model and Token should be in the future imported via robot.api.parsing instead of robot.api directly. Otherwise this issue ought to be done. I hope people interested on these APIs, especially the new Tidy devs, would test do we now expose everything needed.

API docs for robot.api.parsing were added by the above commit and they are visible here. Things to do:

[ ] Proof-reading. Hopefully others interested in these APIs can help!
[ ] Mentioningrobot.api.parsing in robot.api.
[ ] Mention that get_tokens etc. should be imported via robot.api.parsing in RF 4+.
[ ] Simplify robot.parsing docs. They can mostly refer to `robot.api.parsing.

Everything planned has now been done and all updated docs can be accessed via https://robot-framework.readthedocs.io/en/master/index.html. Proof-reading of the docs is still highly appreciated!
If something else should still be exposed, or exposed APIs somehow changed, comment here or submit a new issue!

Creating statements was further enhanced by PR #3808 created by @bhirsz that adds from_params to statements allowing usage like SuiteSetup.from_params(name='Example', args=['a1', 'a2']). Related documentation needs to still be enhanced.

Creating statements was further enhanced by PR #3808 created by @bhirsz that adds from_params to statements allowing usage like SuiteSetup.from_params(name='Example', args=['a1', 'a2']). Related documentation needs to still be enhanced.

authors: bhirsz pekkaklarck

repo: robotframework/robotframework


text:
Correct naming of BaseContour._reverseContour.

There seems to be a faulty naming of the methods involved with contour reversal in BaseContour and the equivalent methods in RContour:

BaseContour.reverse calls self._reverseContour rather than self._reverse, as one would expect. BaseContour does not define the former, which leads to mypy throwing an error.
RContour, however, defines self._reverseContour rather than self._reverse, which explains both the confusion, and why this works.

Changing instances of _reverseContour to _reverse solves the issue, so I would suggest we do that.

Agree, thanks for the catch!

PR #801

Closed by #801

authors: benkiel knutnergaard

repo: robotools/fontParts


text:
Remove json from builtins - Part 2

[x] Part 1 - rename from Json to TotallyNotJson, ensuring all tests pass
[ ] Part 2 - remove from builtins and make this a string inline in the tests
[ ] Part 3 - strip back to minimal synthetic opaque type that implements Decode/Encode abilities for testing only

I need some assistance making this module a string inline in the tests. For example, for mono I think we need to modify something in crates/compiler/test_mono/src/tests.rs specifically around roc_load::load_and_monomorphize_from_str but I'm not exactly sure how to do this. Any pointers would be appreciated.

This PR will Close #5373

repo: roc-lang/roc


text:
yolo5 err

E Traceback (most recent call last):
E   File "rknn\base\RKNNlib\onnx_ir\onnx_numpy_backend\shape_inference.py", line 65, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.shape_inference.infer_shape
E   File "rknn\base\RKNNlib\onnx_ir\onnx_numpy_backend\ops\slice.py", line 41, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.ops.slice.Slice
E   File "", line 1, in
E TypeError: slice indices must be integers or None or have an index method
E During handling of the above exception, another exception occurred:
E Traceback (most recent call last):
E   File "rknn\base\RKNNlib\app\importer\import_onnx.py", line 118, in rknn.base.RKNNlib.app.importer.import_onnx.Importonnx.run
E   File "rknn\base\RKNNlib\converter\convert_onnx.py", line 115, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.init
E   File "rknn\base\RKNNlib\converter\convert_onnx.py", line 1161, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx._shape_inference
E   File "rknn\base\RKNNlib\onnx_ir\onnx_numpy_backend\shape_inference.py", line 70, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.shape_inference.infer_shape
E   File "rknn\api\rknn_log.py", line 323, in rknn.api.rknn_log.RKNNLog.e
E ValueError: Calc node Slice : /model.2/model.2.0/Slice output shape fail

E TypeError: slice indices must be integers or None or have an index method???!!!

for yolov5/yolov7/yolox, refer here https://github.com/airockchip/rknn_model_zoo/tree/main/models/CV/object_detection/yolo

I met another slice problem，solve by：
pip install onnxsim
python -m onnxsim xxx.onnx xxx_sim.onnx

authors: sankexin xuyi2005 zen-xingle

repo: rockchip-linux/rknn-toolkit


text:
[r-packages] allow whitespace in packages

This is a small change to allow for whitespace in the packages specification, so that using
"packages": "cli, rlang"

does not lead to an error.

@eitsupi Is the test correct like this? I am not sure.
I'll add a similar test for the apt-packages feature. It would only be consistent if it also allowed for whitespace in the package list. It already does IIUC, but a test might be useful to prevent a regression? Feel free to revert, if this doesn't make sense.

repo: rocker-org/devcontainer-features


text:
Add stevearc/oil.nvim

Checklist:

[x] The plugin is specifically built for Neovim, or if it's a colorscheme, it supports treesitter syntax.
[x] The lines end with a .. This is to conform to awesome-list linting and requirements.
[x] It's not already on the list.
[x] The title of the pull request is Add/Update/Remove `username/repo`  when adding a new plugin.
[x] The description doesn't start with A Neovim plugin for... or A plugin for..., and doesn't end with ... for Neovim.
[x] The description doesn't mention that it's a Neovim plugin, it's obvious from the rest of the document.
[x] Neovim is spelled as Neovim (not nvim, NeoVim or neovim), Vim is spelled as Vim (capitalized), Lua is spelled as Lua (capitalized).

Thanks for the PR!

authors: stevearc tversteeg

repo: rockerBOO/awesome-neovim


text:
update jenkins instance to use some sort of OIDC plugin

we need some way to perform the OIDC client credentials grant before a pipeline runs, so each step has access to a JWT that can be used for authn / authz to Rode
Might be worth evaluating this plugin: https://plugins.jenkins.io/oic-auth/

Looked into the oidc-auth plugin and also at a few others for oauth2. Not surprisingly, they're all focused on user login and don't have any support for client credentials.

Addressed in https://github.com/rode/demo-app/pull/48

authors: alexashley mrparkers

repo: rode/demo


text:
Question about compiling for multiple architectures

Hey folks, I'm trying build binaries (for multiple architectures) in a project that uses v8go and not having much luck. I haven't compiled projects with CGO enabled before, so it's possible that there are important gaps in my understanding.
Everything builds fine for my own architecture (Darwin arm64) but as soon as I try to build for another architecture or OS, I start seeing C compiler errors/warnings (usually about JSError, although not sure that's relevant).
In theory, should it be possible for me to build my project for, say Intel Macs, or Linux/arm, on this machine? I'm assuming that cross compilation is going to be limited to the vendored builds of V8 in the deps folder, but do I also need to be building on the targeted OS/architecture too?
A rough rundown of how to tackle this kind of cross compilation would be great. Thanks for the project!

v8go has a dependency on your system's libc. When you compile for your own architecture, your machine's libc gets bundled in. When you compile for a different architecture, it doesn't have the other architecture's libc (and can't use your architecture's), so it won't work.
The way we get around this is by having all the different architectures as remote servers that a build script builds on.
Example here: https://github.com/terrastruct/d2/blob/master/ci/release/build.sh

authors: alixander danprince


text:
How to get then Promise result value?

ctx, _ := v8go.NewContext(nil)

val, err := ctx.RunScript(`new Promise((resolve) => setTimeout(() => resolve(1), 1000)).then(console.log)`, "value.js")
if err != nil {
  panic(err)
}

fmt.Printf("result: %s", val.String())

result: [object Promise]

I want to get the Promise result, for the example code is 1

I think this will be possible after merging #68.

I think this will be possible after merging #68.

It would be easier if you use async/await

It would be easier if you use async/await

Hey @kuoruan;
This is a bit of a tricky one right now; #68 could help if you create your own callback function to manage the resolved value; but that would be just a workaround.
What we really need is #61 but this has a large scope because the V8 Object class includes arrays, dates, regex, promises as well as regular objects (and more).
Once I have #68 working, I'll move to addressing the Object class (I already have a branch where I made a start)

Hey @kuoruan;
This is a bit of a tricky one right now; #68 could help if you create your own callback function to manage the resolved value; but that would be just a workaround.
What we really need is #61 but this has a large scope because the V8 Object class includes arrays, dates, regex, promises as well as regular objects (and more).
Once I have #68 working, I'll move to addressing the Object class (I already have a branch where I made a start)

I'd like this too, but for simplicity, I don't need complex/useful value types.  The following code would be totally fine:
if val.IsPromise() {
	val.PromiseCallback(func(v *v8go.Value, e error) { println(v.String()) })
}

I think I can effectively get there with FunctionTemplates and some ugly code, but also happy to contribute.

I'd like this too, but for simplicity, I don't need complex/useful value types.  The following code would be totally fine:
if val.IsPromise() {
	val.PromiseCallback(func(v *v8go.Value, e error) { println(v.String()) })
}

I think I can effectively get there with FunctionTemplates and some ugly code, but also happy to contribute.

Hey @fizx I'm working on the Object/Promise code right now.
I've not fleshed out the complete API, but it will be something like:
val.AsPromise().Result()

Hi @rogchap , I see you added the support for Object, do you have a plan to add Promise?
I'm trying to get Promise result from a promise result with your code:
RtnValue PromiseResult(ValuePtr ptr) {
  LOCAL_OBJECT(ptr);
  RtnValue rtn = {nullptr, nullptr};

  Local<Promise> promise = obj.As<Promise>();

  std::cout << promise->State() << std::endl;

  while (promise->State() == Promise::kPending) {
    iso->RunMicrotasks();
  }

  if (promise->State() != Promise::kFulfilled) {
    rtn.error = ExceptionError(try_catch, iso, local_ctx);
  } else {
    MaybeLocal<Value> result = promise->Result();

    m_value* new_val = new m_value;
    new_val->iso = iso;
    new_val->ctx.Reset(iso, local_ctx);
    new_val->ptr.Reset(iso, Persistent<Value>(iso, result.ToLocalChecked()));

    rtn.value = static_cast<ValuePtr>(new_val);
  }

  return rtn;
}

If I run code like Promise.resolve(1), I can get the result.
But code like new Promise(resolve => setTimeout(function() { resolve(1) }, 1000)) the state is always Promise::kRejected
Any thing I'm wrong?

Hey @kuoruan
Yes, I am working on full support for Promise API as I can imagine people wanting to be able to do thinks like the fetch API etc; #74 Was just a prerequisite.
You seem to be on the right track to get the Promise Result, I know that iso.RunMicrotasks() API no longer exists so you might want to try iso.PerformMicrotaskCheckpoint() instead.

@kuoruan I've noticed another error: setTimeout is not part of ECMA-262 and therefore not implemented in V8 😱
You'll need to implement that yourself with a Function Template and setting the global object via the Object Template and creating a new Context. This is why you are getting kRejected

Hi @rogchap
Seems v8 already has setTimeout function. https://stackoverflow.com/a/60355125/5266411
I tried this:
$ brew install v8
$ d8 -v
V8 version 8.8.278.15

create a new file like:
console.log("a");
setTimeout(() => {
    console.log("c");
}, 5000);
console.log("b");

d8 example.js

no error found.

OK, there is only setTimeout but no clearTimeout in d8.
https://github.com/v8/v8/blob/b38bf5b0b1f149f7af3fd90a2ce12344e7191d03/src/d8/d8.cc#L2443-L2444

d8 is different from v8; d8 implements setTimeout for debugging v8. d8 is an example of a CLI tool that uses v8, just like any program that uses v8go would also.

authors: fizx kuoruan rogchap


text:
[BUG] Fix log data

Describe the bug
Fix logs coming from the Safer Illinois app.
CC: @wryanthomas

session_uuid needs to be set and included in all log entries from the app. Since these are not tied to any user account, it would continue to preserve the anonymous nature of the logs while helping in debugging general issues. As described in this comment (https://github.com/rokwire/safer-illinois-app/issues/178#issuecomment-700166505), there are many log entries without session_uuid in the data.
Currently, user_uuid is anonymized for most log entries. It needs to be anonymized for the remaining of the log entries from the app.

Smartphone (please complete the following information):

Device: Android and iPhone
Version 2.5.8

For logs from user activity in profiles building block, I agree user_uuid is essential. Also...
I recommend session_uuid be included in every log generated from user behavior -- not just from profile activity.

This is not a bug. This behavior is by purpose:
UIUC Monday 2020/06/08

1.2 Analytics - any panel/page views of any COVID-19 should have no user info UUID, UIN, name etc. These should be totally anonymous.

FYI, there is another restriction for analytics health events content. We display only current timestamp for these events and omit any other default parameter like UUID, GPS location, device model or whatever.
UIUC Friday 2020/06/12

3.1 I am wondering if you would be able to fix the issues pointed out in the attached Analytics review: COVID Logging Revision.docx

The main need is to remove all the context information(uuid, location, device info, etc) from most of the health event logs plus a couple other small changes. Here’s the examples of current logs and what changes are needed.

CC @pmarkhennessy.

First, let me suggest that logging a session_uuid would sidestep this issue.
Secondly, my understanding is that Sandeep's request is for Rokwire app, not Safer Illinois app. By abstraction, should we not exclude logging user_uuid (or obfuscate it) whenever app_id=edu.illinois.covid?  (Isn't this already being done?)

From: Mihail Varbanov notifications@github.com
Sent: Monday, September 28, 2020 8:29 AM
To: rokwire/safer-illinois-app safer-illinois-app@noreply.github.com
Cc: wryanthomas wryanthomas@gmail.com; Mention mention@noreply.github.com
Subject: Re: [rokwire/safer-illinois-app] [BUG] Missing UUID in log data (#178)
This is not a bug. This behavior is by design:
UIUC Monday 2020/06/08
1.2 Analytics - any panel/page views of any COVID-19 should have no user info UUID, UIN, name etc. These should be totally anonymous.
FYI, there is another restriction for analytics health events content. We display only current timestamp for these events and omit any other default parameter like UUID, GPS location, device model or whatever.
UIUC Friday 2020/06/12
3.1 I am wondering if you would be able to fix the issues pointed out in the attached Analytics review: COVID Logging Revision.docx
The main need is to remove all the context information(uuid, location, device info, etc) from most of the health event logs plus a couple other small changes. Here’s the examples of current logs and what changes are needed.
CC @pmarkhennessyhttps://github.com/pmarkhennessy.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/rokwire/safer-illinois-app/issues/178#issuecomment-700006973, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AISEYL4MPVEV76VTY2IQX7LSICFSRANCNFSM4RV52TQQ.

Since the issue is created in safer-illinois-app repo my assume is that Sandeep's request is for Safer app.
Also, Safer app logs "session_uuid" properly in my opinion.

Yes, this was for Safer Illinois app, but I can see user_uuid values in some incoming log data. It's anonymized for some and set to null for others. I thought it was missing in certain logs. If user_uuid needs to be completely removed/anonymized, please do so. Also, app_id value (edu.illinois.covid) is missing for logs coming from some log data for Safer Illinois app.

@wryanthomas, as discussed, there is a similar task for Illinois app. I will create that today.

Yes, this was for Safer Illinois app, but I can see user_uuid values in some incoming log data. It's anonymized for some and set to null for others. I thought it was missing in certain logs. If user_uuid needs to be completely removed/anonymized, please do so.

Here is a report (time range = yesterday) showing all instances of user_uuid (this may not be 100% complete -- this field may not be captured fully from logs, especially among non-JSON log formats).
Where user_uuid is greater than event count, it is because the JSON is providing multiple user_uuid values per event.
sourcetype | user_uuid_event_count | all_events
_json | 0 | 135360
access_combined | 0 | 9780
aws:cloudfront:accesslogs | 0 | 76071
aws:cloudtrail | 0 | 896569
aws:cloudwatch | 0 | 349090
aws:cloudwatchlogs:vpcflow | 0 | 12422251
aws:elb:accesslogs | 23554 | 799383
aws:s3:accesslogs | 0 | 125036
illinois:rokwire:app-config | 0 | 26791
illinois:rokwire:appconfig-covid | 0 | 26115
illinois:rokwire:auth | 0 | 210
illinois:rokwire:converge | 57 | 960
illinois:rokwire:events | 0 | 47558
illinois:rokwire:events-manager | 0 | 10890
illinois:rokwire:healthservice | 0 | 374217
illinois:rokwire:image | 0 | 17277
illinois:rokwire:locationservice | 0 | 16160
illinois:rokwire:logging | 748529 | 764422
illinois:rokwire:profile | 53815 | 50557
illinois:rokwire:sports | 0 | 24481
illinois:rokwire:talent-chooser | 0 | 131565
illinois:rokwire:transportation | 0 | 15673
linux_audit | 0 | 1369
linux_messages_syslog | 0 | 2454
ossec_log | 0 | 71

Also, app_id value (edu.illinois.covid) is missing for logs coming from some log data for Safer Illinois app.

I'm suspecting (but could be wrong, of course) that the app_id value is something we should look for in sourcetypes that start illinois:rokwire. Here's a report (time range = yesterday) of app_id existence:
sourcetype | app_id_values | app_id_event_count | all_events
illinois:rokwire:app-config |   | 0 | 26791
illinois:rokwire:appconfig-covid |   | 0 | 26115
illinois:rokwire:auth |   | 0 | 210
illinois:rokwire:converge |   | 0 | 960
illinois:rokwire:events |   | 0 | 47558
illinois:rokwire:events-manager |   | 0 | 10890
illinois:rokwire:healthservice |   | 0 | 374217
illinois:rokwire:image |   | 0 | 17277
illinois:rokwire:locationservice |   | 0 | 16160
illinois:rokwire:logging | edu.illinois.covid | 502687 | 764668
illinois:rokwire:profile |   | 0 | 50557
illinois:rokwire:sports |   | 0 | 24481
illinois:rokwire:talent-chooser |   | 0 | 131565
illinois:rokwire:transportation |   | 0 | 15673

However, I find it hard to believe that the only logs from Safer Illinois are in this one log source. (Is that true?)

So, as I understand it, the direct logs from the "Safer Illinois" app come through the logging building block and will have the source illinois:rokwire:logging. "Illinois app" logs also follows a similar pattern except that it will have different app_id.

"direct logs from the 'Safer Illinois' app come through the logging building block and will have the source illinois:rokwire:logging." That would match what I'm seeing.
However, regarding your statement "'Illinois app' logs also follows a similar pattern except that it will have a different app_id." Currently, the only events that have an app_id field (regardless of value) are those where the value is "edu.illinois.covid". (I.e., Safer Illinois logs in illinois:rokwire:logging.) Note the app_id report from my previous post. I.e., you can only look for "Illinois" app logs by app_id by looking for where app_id is NULL or NOT "edu.illinois.covid". This may be acceptable, but just wanted to state what I'm seeing and note how it is different from what you stated.  It does seem like it would be preferrable to have app_id for Illinois app ... but that's because it's not clear to me which sourcetypes (e.g., infrastructure sources) shouldn't be expected to have app_id.

Regarding events in illinois:rokwire:logging that do not have session_uuid, here is a breakdown by action, name, page:
This is most relevant to the counterpart Rokwire case, but given that event.name is always 'health', thought it might be relevant here too:

**sourcetype
event.action
event.name
event.page
values(app_id)
values(session_uuid)
session_uuid_event_count
all_events**

illinois:rokwire:logging
action_processed
health
Covid19HistoryPanel

-
48
48

illinois:rokwire:logging
action_processed
health
Covid19InfoCenterPanel

-
1
1

illinois:rokwire:logging
action_processed
health
Covid19StatusPanel

-
58
58

illinois:rokwire:logging
action_processed
health
Covid19TestLocationsPanel

-
1
1

illinois:rokwire:logging
action_processed
health
RootPanel

-
502
502

illinois:rokwire:logging
check_exposures
health
Covid19AddTestResultPanel

-
7
7

illinois:rokwire:logging
check_exposures
health
Covid19CareTeamPanel

-
1
1

illinois:rokwire:logging
check_exposures
health
Covid19HistoryPanel

-
345
345

illinois:rokwire:logging
check_exposures
health
Covid19InfoCenterPanel

-
23
23

illinois:rokwire:logging
check_exposures
health
Covid19NextStepsPanel

-
14
14

illinois:rokwire:logging
check_exposures
health
Covid19StatusPanel

-
464
464

illinois:rokwire:logging
check_exposures
health
Covid19StatusUpdatePanel

-
165
165

illinois:rokwire:logging
check_exposures
health
Covid19SymptomsPanel

-
2
2

illinois:rokwire:logging
check_exposures
health
Covid19TestLocationsPanel

-
181
181

illinois:rokwire:logging
check_exposures
health
Covid19WellnessCenter

-
3
3

illinois:rokwire:logging
check_exposures
health
OnboardingUpgradePanel

-
7
7

illinois:rokwire:logging
check_exposures
health
RootPanel

-
7457
7457

illinois:rokwire:logging
check_exposures
health
SettingsHomePanel

-
23
23

illinois:rokwire:logging
check_exposures
health
WebPanel

-
1
1

illinois:rokwire:logging
contact_trace_processed
health
Covid19StatusPanel

-
1
1

illinois:rokwire:logging
contact_trace_processed
health
Covid19StatusUpdatePanel

-
1
1

illinois:rokwire:logging
contact_trace_processed
health
RootPanel

-
4
4

illinois:rokwire:logging
contact_trace_test
health
RootPanel

-
1
1

illinois:rokwire:logging
provider_test_processed
health
Covid19AddTestResultPanel

-
3
3

illinois:rokwire:logging
provider_test_processed
health
Covid19HistoryPanel

-
1211
1211

illinois:rokwire:logging
provider_test_processed
health
Covid19InfoCenterPanel

-
3
3

illinois:rokwire:logging
provider_test_processed
health
Covid19NextStepsPanel

-
2
2

illinois:rokwire:logging
provider_test_processed
health
Covid19OnBoardingConsentPanel

-
5
5

illinois:rokwire:logging
provider_test_processed
health
Covid19OnBoardingHowItWorks

-
3
3

illinois:rokwire:logging
provider_test_processed
health
Covid19OnBoardingIntroPanel

-
2
2

illinois:rokwire:logging
provider_test_processed
health
Covid19StatusPanel

-
247
247

illinois:rokwire:logging
provider_test_processed
health
Covid19StatusUpdatePanel

-
24
24

illinois:rokwire:logging
provider_test_processed
health
Covid19TestLocationsPanel

-
63
63

illinois:rokwire:logging
provider_test_processed
health
OnboardingUpgradePanel

-
4
4

illinois:rokwire:logging
provider_test_processed
health
RootPanel

-
3028
3028

illinois:rokwire:logging
provider_test_processed
health
SettingsHomePanel

-
25
25

illinois:rokwire:logging
report_exposures
health
Covid19HistoryPanel

-
2
2

illinois:rokwire:logging
report_exposures
health
Covid19OnBoardingIntroPanel

-
1
1

illinois:rokwire:logging
report_exposures
health
Covid19StatusUpdatePanel

-
16
16

illinois:rokwire:logging
report_exposures
health
Covid19SymptomsPanel

-
1
1

illinois:rokwire:logging
report_exposures
health
RootPanel

-
38
38

illinois:rokwire:logging
status_changed
health
Covid19AddTestResultPanel

-
3
3

illinois:rokwire:logging
status_changed
health
Covid19HistoryPanel

-
136
136

illinois:rokwire:logging
status_changed
health
Covid19InfoCenterPanel

-
3
3

illinois:rokwire:logging
status_changed
health
Covid19NextStepsPanel

-
2
2

illinois:rokwire:logging
status_changed
health
Covid19OnBoardingConsentPanel

-
4
4

illinois:rokwire:logging
status_changed
health
Covid19OnBoardingHowItWorks

-
9
9

illinois:rokwire:logging
status_changed
health
Covid19OnBoardingIntroPanel

-
13
13

illinois:rokwire:logging
status_changed
health
Covid19OnBoardingQrCodePanel

-
40
40

illinois:rokwire:logging
status_changed
health
Covid19StatusPanel

-
151
151

illinois:rokwire:logging
status_changed
health
Covid19StatusUpdatePanel

-
5
5

illinois:rokwire:logging
status_changed
health
Covid19SymptomsPanel

-
10
10

illinois:rokwire:logging
status_changed
health
Covid19TestLocationsPanel

-
23
23

illinois:rokwire:logging
status_changed
health
OnboardingUpgradePanel

-
2
2

illinois:rokwire:logging
status_changed
health
RootPanel

-
1432
1432

illinois:rokwire:logging
status_changed
health
SettingsHomePanel

-
27
27

illinois:rokwire:logging
status_changed
health
WebPanel

-
1
1

illinois:rokwire:logging
symptoms_submitted
health
Covid19SymptomsPanel

-
45
45

However, regarding your statement "'Illinois app' logs also follows a similar pattern except that it will have a different app_id." Currently, the only events that have an app_id field (regardless of value) are those where the value is "edu.illinois.covid". (I.e., Safer Illinois logs in illinois:rokwire:logging.) Note the app_id report from my previous post. I.e., you can only look for "Illinois" app logs by app_id by looking for where app_id is NULL or NOT "edu.illinois.covid". This may be acceptable, but just wanted to state what I'm seeing and note how it is different from what you stated. It does seem like it would be preferrable to have app_id for Illinois app ... but that's because it's not clear to me which sourcetypes (e.g., infrastructure sources) shouldn't be expected to have app_id.

@wryanthomas, yes, you are right. Illinois app needs to send app_id value in its logs. What I meant is that for both the apps, the clickstream log data flows through the logging building block and they will have different app_id values when these issues are fixed.

Thanks for your inputs @mihail-varbanov and @wryanthomas. I have changed the title and the description based on the discussion. I hope the current description better describe the issue at hand.

Hi @sandeep-ps,
Thanks for clarifying this stuff!

We used to report the actual user uuid only once, in RootPanel appearance. I noticed this yesterday, opened a new issue and (fixed)[https://github.com/rokwire/safer-illinois-app/commit/7b34b546ca35dfdc3a8d7f501e09a92cb6336790] it.

So now we have only 2 options for 'user_uuid' parameter: UUIDxxxxxx or null, if it is not yet generated / retrieved.

As long as I understand the restrictions defined for "COVID Logging Revision.docx" (UIUC Friday 2020/06/12 #3.1) are quite strained. We used to report only timestamp parameter. Now (in version 2.6.15+) I added the following parameters that I believe are not user sensitive: "app_id", "app_version", "session_uuid" and "user_uuid" (as long as it is anonymous or null).

Let me know please if you think that we need some additional change in this model.

Closing this as no additional requests have come in of late.

authors: mihail-varbanov sandeep-ps wryanthomas

repo: rokwire/safer-illinois-app


text:
Cannot use RJ45 Plug LAN

Hi, first off thank you very much for these releases.
I'm using r30gb_0.1.2.tgz for the Yi Dome Guard camera, working pretty well (and I saw that some recent commits will fix the x265 stream, very cool).
The Dome Guard actually has an RJ45 port at the back, that I prefer using as I do not want streams constantly using up the wifi throughput.
If a wifi network is configured, the camera doesn't seem to use the LAN RJ45 plug at all. Any way to force the LAN to be used ?
Thanks in advance,

I didn't know it had a lan.
I will check it.

What services are not running when you use ethernet?

Hi Roleorolea,
I had turned off Onvif, the Yi interface (to have fully in private mode) and the human AI detection.
Would you like me to check with Yi interface on ?

I would like to know if the problem involves only hack features or the yi features too.

Hi roleoroleo,
Well after checking in more detail I noticed that :

I had an issue with the network cable I was using

the camera switches to rj45 Lan only when the camera is rebooted with lan connected.

Both the things above led me to misdiagnosed the issue, sorry about that
The rstp is working fine from lan, so is mqtt and the Web interface.
Thanks again, I think this issue can be closed

From: roleo notifications@github.com
Sent: Thursday, November 26, 2020 21:42
To: roleoroleo/yi-hack-Allwinner-v2
Cc: Charles Luzzato; Author
Subject: Re: [roleoroleo/yi-hack-Allwinner-v2] Cannot use RJ45 Plug LAN (#34)
I would like to know if the problem involves only hack features or the yi features too.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/34#issuecomment-734471048, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPHIYVCZMDPH6SJ7FZNM33SR24ILANCNFSM4T6MVQPA.

But I think onvif and wsdd don't work with ethernet.
Could you check?

Hi roleoroleo,
I updated to 0.1.3, and here are my findings

The only way I can force the camera to reliably connected to LAN (if wifi has been configured) is to block the camera mac address from my wifi
Once on Lan, I tested ONVIF with onvifer 14.89 on android. When providing the the camera IP, it starts configuring it, but is unable to download the "media profiles".
On the main page of the yi-hack web interface, the LAN ip is not showing, so the links are incorrect
I was not able to test wsdd, as I'm not familiar with the protocole. Can you suggest a client ?

Thanks again for all this !

* The only way I can force the camera to reliably connected to LAN (if wifi has been configured) is to block the camera mac address from my wifi

This is a weird behavior. My cam has wifi configured, but if I connect the cable, it uses the eth0.
The router shows eth connected and wifi disconnected.

* Once on Lan, I tested ONVIF with onvifer 14.89 on android. When providing the the camera IP, it starts configuring it, but is unable to download the "media profiles".

I will check it.

* On the main page of the yi-hack web interface, the LAN ip is not showing, so the links are incorrect

This problem is related to the 1st. In my case, links and LAN ip are correct.

* I was not able to test wsdd, as I'm not familiar with the protocole. Can you suggest a client ?

Try Onvif Device Manager. When you start it, if it detects the cam automatically, wsdd works.
If you need to add the cam manually, wsdd is not working.

Hi Roleoroleo,
I confirm that the Onvif Device Manager does not find the camera when it is connected to LAN.
Even entering teh camera IP does not help, so ONVIF does not seem to work either

https://github.com/roleoroleo/yi-hack-Allwinner-v2/commit/f1aecad11a53fe2ffb9120ee95e6caccb3198ff8
Next release...

I also use r30gb, but with fw. ver. 0.1.3.
Is there anything where I can help?

I also use r30gb, but with fw. ver. 0.1.3.
Is there anything where I can help?

@Zephael86 Does your cam work with the ethernet cable?

@Zephael86 Does your cam work with the ethernet cable?

Not really. Probably because camera connects using wlan0 even if eth0 is plugged in.
I have wlan0 configured. Connected UTP cable before power cable was plugged in and camera connected using wifi.
Executed udhcpc -i eth0 -b -s /home/app/script/default.script
Interface got up, obtained IP Address, updated default gateway - but it left the wlan0 with same def gw and metric.
Logged out and logged in using eth0 and ssh.
Following processes have 'wlan0' as parameter:
 1154 root      1400 S    /backup/tools/wpa_supplicant -c/tmp/wpa_supplicant.conf -g/var/run/wpa_supplicant-global -Dnl80211 -iwlan0 -B
 1254 root       980 S    udhcpc -i wlan0 -b -s /home/app/script/default.script
 1563 root      8044 S    onvif_srvd --pid_file /var/run/onvif_srvd.pid --model Yi Hack --manufacturer Yi --firmware_ver 0.1.3 --hardware_id 0000 --serial_num HFUSY36NZ3BGIC200526 --ifs wlan0 --port 80 --scope onvif://www.onvif.org/Pro
 1574 root      2072 S    wsdd --pid_file /var/run/wsdd.pid --if_name wlan0 --type tdn:NetworkVideoTransmitter --xaddr http://%s --scope onvif://www.onvif.org/name/Unknown onvif://www.onvif.org/Profile/Streaming

Executed: ifconfig wlan0 down in a loop. Did not have the time to check which process brings it up automatically. Even if I killed udhcp for this interface...
Observations:

Web interface is reachable using eth0
Web interface displays RTSP and Snaptshot links using the IP of the wlan0. After a while the IP Address part becomes null.

Snapshot works if I replace the IP address in the link for eth0
WiFi strength indicator shows 0. (This was always 0 for me. Probably this is not related for this investigation).
Address and Network fields are empty

Onivif application could not find the device.
Onivif application could connect to the RTSP link when I entered manually.
Top menu items links in the WebUI are working. Using the Address of eth0
Snapshot's menu snapshot function works
After a reboot wlan0 was up and eth0 down.

Not really. Probably because camera connects using wlan0 even if eth0 is plugged in.
I have wlan0 configured. Connected UTP cable before power cable was plugged in and camera connected using wifi.
Executed udhcpc -i eth0 -b -s /home/app/script/default.script
Interface got up, obtained IP Address, updated default gateway - but it left the wlan0 with same def gw and metric.
Logged out and logged in using eth0 and ssh.
Following processes have 'wlan0' as parameter:
 1154 root      1400 S    /backup/tools/wpa_supplicant -c/tmp/wpa_supplicant.conf -g/var/run/wpa_supplicant-global -Dnl80211 -iwlan0 -B
 1254 root       980 S    udhcpc -i wlan0 -b -s /home/app/script/default.script
 1563 root      8044 S    onvif_srvd --pid_file /var/run/onvif_srvd.pid --model Yi Hack --manufacturer Yi --firmware_ver 0.1.3 --hardware_id 0000 --serial_num HFUSY36NZ3BGIC200526 --ifs wlan0 --port 80 --scope onvif://www.onvif.org/Pro
 1574 root      2072 S    wsdd --pid_file /var/run/wsdd.pid --if_name wlan0 --type tdn:NetworkVideoTransmitter --xaddr http://%s --scope onvif://www.onvif.org/name/Unknown onvif://www.onvif.org/Profile/Streaming

Executed: ifconfig wlan0 down in a loop. Did not have the time to check which process brings it up automatically. Even if I killed udhcp for this interface...
Observations:

Web interface is reachable using eth0
Web interface displays RTSP and Snaptshot links using the IP of the wlan0. After a while the IP Address part becomes null.

Snapshot works if I replace the IP address in the link for eth0
WiFi strength indicator shows 0. (This was always 0 for me. Probably this is not related for this investigation).
Address and Network fields are empty

Onivif application could not find the device.
Onivif application could connect to the RTSP link when I entered manually.
Top menu items links in the WebUI are working. Using the Address of eth0
Snapshot's menu snapshot function works
After a reboot wlan0 was up and eth0 down.

Probably you can't change the network  without reconfiguring completely the cam.
I configured the cam via ethernet the 1st time and it works correctly.
The process that manages the network is a binary and I don't know how it chooses between eth0 and ra0.
Maybe it's stored in the configuration db?
Try to run this command:
/mnt/mmc/sonoff-hack/bin/sqlite3 /mnt/mtd/db/ipcsys.db "select * from  t_sys_param where c_param_name = 'NetWorkType';"
and check if the output is 0 or 1.
About onvif_srvd and wsdd, you need to change "ONVIF Network Interface" parameter (configuration web page) to select the correct interface.

Probably you can't change the network  without reconfiguring completely the cam.
I configured the cam via ethernet the 1st time and it works correctly.
The process that manages the network is a binary and I don't know how it chooses between eth0 and ra0.
Maybe it's stored in the configuration db?
Try to run this command:
/mnt/mmc/sonoff-hack/bin/sqlite3 /mnt/mtd/db/ipcsys.db "select * from  t_sys_param where c_param_name = 'NetWorkType';"
and check if the output is 0 or 1.
About onvif_srvd and wsdd, you need to change "ONVIF Network Interface" parameter (configuration web page) to select the correct interface.

The process that manages network configuration is a closed binary (dispatch).
So I don't know how the system chooses the correct network adapter during boot.
And I don't own a r30gb to test it.
About onvif_srvd and wsdd, you can select the interface in the configuration web page.

The process that manages network configuration is a closed binary (dispatch).
So I don't know how the system chooses the correct network adapter during boot.
And I don't own a r30gb to test it.
About onvif_srvd and wsdd, you can select the interface in the configuration web page.

YI Dome Guard Camera, SN: IFUSY36
IMO the system always chooses the wired connection.
If the cable is connected the Wi-Fi connection is dropped and its IP is released.
I think that to determine a camera IP you have to check at first the IP of a eth0 interface.
If the eth0 IP is set use it,  if not check the IP of a wlan0 and use it.
ifconfig
eth0      Link encap:Ethernet  HWaddr D2:F1:5F:06:2A:36
inet addr:10.2.2.2  Bcast:10.2.2.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:306 errors:0 dropped:1 overruns:0 frame:0
TX packets:554 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:31064 (30.3 KiB)  TX bytes:719581 (702.7 KiB)
Interrupt:66
lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:65536  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
wlan0     Link encap:Ethernet  HWaddr 54:F1:5F:06:2A:36
UP BROADCAST RUNNING MULTICAST  MTU:1200  Metric:1
RX packets:117 errors:0 dropped:35 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29050 (28.3 KiB)  TX bytes:14176 (13.8 KiB)

Please, check this commit:
https://github.com/roleoroleo/yi-hack-Allwinner-v2/commit/e4045061f4bb97cf040f8f3586b31cab45eb0c36

authors: AndWalu Chluz Zephael86 roleoroleo


text:
FTP Delete (after upload) - NOT WORKING

In version 0.2.0 the deletion of videos worked perfectly ... since 0.2.1 it does not delete the videos when uploading them to FTP.

Did you add the option in the web page?

Yes, select the option in motion events. I have returned to 0.2.0 and everything works as before.

This is the only commit involving ftppush.sh:
https://github.com/roleoroleo/yi-hack-Allwinner/commit/282ec309f96a29e50b47be397cd1d508961e8ecb

If you can try it with your hand with a camera ... in my two cameras the deletion of videos does not work after sending it by FTP

Same here :(
I've turned the feature on and off and rebooted several times.
I've yet to reset the cam to test

Fixed: https://github.com/roleoroleo/yi-hack-Allwinner/commit/7b590f02f02c635469f94b3a00789a803f9e0ecc
Try the new ftppush.sh

Thank you! I will try when I get the compiling prerequisites sorted.

Had the same issue. Tried the suggested commit and confirm it's working now

authors: cej0t4 divadiow isbkch roleoroleo

repo: roleoroleo/yi-hack-Allwinner


text:
CosmWasm: Abstract-SDK

There should be a flow / easy way to get setup using https://orchestrator.abstract.money.

DAODAO?

mesh security / polytone

bump, needed

this is a high priority after I get ICS support added :)

integration got started then marc was pulled away for Wormhole VAA work, I am getting back on it now with DAODAO & Polytone to start. Abstract is the next on the list
https://github.com/strangelove-ventures/interchaintest/pull/1215

repo: rollchains/spawn


text:
simple setup - am i missing sth?

i am trying to get the plugin to transpile the code inside public/bundle.js from ES6 to ES5 but it has no effect, the code is still ES6.
my rollup.config.js is quite simple:
import svelte from 'rollup-plugin-svelte';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
import rollup_start_dev from './rollup_start_dev';
import css from 'rollup-plugin-css-only';
import json from 'rollup-plugin-json';
import autoPreprocess from 'svelte-preprocess';
import babel from 'rollup-plugin-babel';

const production = !process.env.ROLLUP_WATCH;

export default {
	input: 'src/main.js',
	output: {
		sourcemap: true,
		format: 'iife',
		name: 'app',
		file: 'public/bundle.js'
	},
	plugins: [
		svelte({
			dev: !production,
			css: css => {
				css.write('public/bundle.css');
			},
			preprocess: autoPreprocess()
		}),
		json(),
		css({output:'public/libs.css'}),
		resolve({
			browser: true,
			dedupe: importee => importee === 'svelte' || importee.startsWith('svelte/')
		}),
		babel({
			babelrc: false,
			presets: [['@babel/env', { modules: false }]],
			exclude: 'node_modules/**'
		}),
		commonjs(),

		!production && rollup_start_dev,

		!production && livereload('public'),

		production && terser(),

	],
	watch: {
		clearScreen: false
	}
};

am i missing sth? e.g. is a .babelsrc with additional configuration required?

fixed it now using this guide: https://blog.az.sg/posts/svelte-and-ie11/

repo: rollup/rollup-plugin-babel


text:
Add support for example option passed through env variable

There is currently no way to set the example option using an env variable. As rightly pointed out here in this issue, DOTENV_CONFIG_PATH is supported thanks to dotenv, but since it is not aware of dotenv-safe's example option this one is ignored.
I added the support for DOTENV_CONFIG_EXAMPLE in dotenv-safe/config.js. I got inspiration from what is done in dotenv/config.js being more restrictive than my initial patch and only explicitly supporting DOTENV_CONFIG_EXAMPLE
config.js is not covered by the current test suite so I'm unsure how to proceed. The manual way of testing is typically the following command:
DOTENV_CONFIG_PATH=src/.deploy.env DOTENV_CONFIG_EXAMPLE=src/.deploy.env.example node --require dotenv/config --require dotenv-safe/config src/myApp.js

It would fail before with Error: ENOENT: no such file or directory, open '.env.example' but is now supported.
closes https://github.com/rolodato/dotenv-safe/issues/126#issuecomment-1938266585

Thanks @jraoult! No worries about the tests for now. I'll release a new version soon.

authors: jraoult rolodato

repo: rolodato/dotenv-safe


text:
fix all root_dir

Doesn't require Python 3.10.

Sasha took care.

repo: romovpa/my-data


text:
Cannot deserialize a struct with two number fields

I'm currently using ron 0.6.4 and serde 1.0.127. I'm meeting a strange error where fail to deserialize a struct with two number fields. This is a minimal example:
use ron;
use serde::Deserialize;

#[derive(Deserialize, Debug)]
pub struct Example {
    number: u32,
    big_number: u32,
}
fn main() {
    let content = "Example (
        number: 0,
        big_numer: 0,
    )";
    let result: Example = ron::from_str(&content).unwrap();
    println!("{:?}", result);
}

which gives the error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { code: Message("missing field `big_number`"), position: Position { line: 0, col: 0 } }', src/main.rs:13:51

This does not seems like expected behavior though I would be happy to be shown where I'm using it wrong. Thank you.

This is typo!

    big_numer: 0,

But yes RON error message is not so much helpful.

Thank you, it seems that it is a typo in my RON after all. the position indicated in the error message tripped me up a lot because I was initially trying to deserialize into a Vec, and  because all of my classes (in the Vec) had a typo, it always told me that it's missing a field at Position { line: 0, col: 0 }, which only had the square bracket.

repo: ron-rs/ron


text:
feat: add community resources new pages

Added new pages for Community resources

@fredmaggiowski here the changes to add the community resources page. Check it and let me know if it's ok for you.
Before merge this PR we have to:

Link the OSDay slides to the Talks md file (I need permission to push them in the community-resources repo)
Decide if we need to add also media kit and presentations as pages in the community resources menu

Can you share a screen of the resulting page in the PR so that we don't need to build it locally to see changes 😅 Thanks ❤

Sure @fredmaggiowski here some screnshots:

It would be nice if you have some description also for the KCD munich talk and KCD UK workshop (maybe you have the abstract in your sessionize account?).

@fredmaggiowski I think that now we can close the PR.
I added the link to the slides of the OSDay talk and the abstract for the KCD Munich one. ✌🏻

authors: fredmaggiowski graz-dev


text:
feat: 新增 hdatmos.clu 站点

新增 hdatmos.clu 站点

新站点，求 merge

repo: ronggang/PT-Plugin-Plus


text:
完全无法载入任何信息，出现乱码

如果反馈BUG，请提供以下信息，如果可能，同时提供英文描述，谢谢。

Transmssion 版本: 2.94
Tr Web Control 版本: 自动更新到最新版本的
浏览器名称及版本：chrome edge最新版
问题描述:突然完全无法载入任何信息。

第一个图是网页页面，第二个是打开开发者模式返回的信息。

操作系统环境是什么样的
404是transmission的web目录没有那些文件或者没有权限读取
试试脚本重装或者手动把仓库src目录的文件拷到transmission的webui目录

操作系统是白群辉:执行安装程序，选择第9项>>>>9. 安装最新代码库中的内容（master）；
问题解决了。
但是之前没做任何操作，为何会出现这样的情况呢？

但是之前没做任何操作，为何会出现这样的情况呢？

具体原因只能下次出现问题的时候检查文件、启动参数是否正常，正在运行的进程是否使用了配置的参数

但是之前没做任何操作，为何会出现这样的情况呢？

具体原因只能下次出现问题的时候检查文件、环境变量、启动参数是否正常，正在运行的进程是否使用了配置的参数

你好，今天又突然出现一模一样的情况了。这是2年多以来第二次出现这种情况，之前是第一次。再这之前稳定运行2年多。请问能通过查看日志找到原因吗？文件，环境变量，参数都没改过。

你好，今天又突然出现一模一样的情况了。这是2年多以来第二次出现这种情况，之前是第一次。再这之前稳定运行2年多。请问能通过查看日志找到原因吗？文件，环境变量，参数都没改过。

不清楚哪里有这些日志，原版能正常使用吗

你好，今天又突然出现一模一样的情况了。这是2年多以来第二次出现这种情况，之前是第一次。再这之前稳定运行2年多。请问能通过查看日志找到原因吗？文件，环境变量，参数都没改过。

不清楚哪里有这些日志，原版能正常使用吗

用transmission-gui能成功使用，使用程序无法还原到原版。

你好，今天又突然出现一模一样的情况了。这是2年多以来第二次出现这种情况，之前是第一次。再这之前稳定运行2年多。请问能通过查看日志找到原因吗？文件，环境变量，参数都没改过。

不清楚哪里有这些日志，原版能正常使用吗

这次没管它，今天又莫名其妙回复了，，，

这次没管它，今天又莫名其妙回复了，，，

我觉得是不是要检查一下硬盘坏道…

这次没管它，今天又莫名其妙回复了，，，

我觉得是不是要检查一下硬盘坏道…

是web-control安装盘吗？群晖定时自检没问题的啊？有一个盘确实有点问题，但是是很早就有问题了。但是web-control是最近才开始报错。

我也出现了这个情况，重启也没用。还好看见了“选择第9项”这个解决方法，现在没问题了

同样的问题，我的设备是u-nas3.0 f12开发模式同上图一样是404，解决方法同样是安装最新版本代码，可能是本此发布的代码本身权限设置问题？

同样的问题，我的设备是u-nas3.0 f12开发模式同上图一样是404，解决方法同样是安装最新版本代码，可能是本此发布的代码本身权限设置问题？

使用脚本安装时，会重新设置文件权限，如果安装脚本没有出错，按理应该不会有权限问题。

我这黑裙突然这样了，截图也是这样，web大量404，昨天还还好的。重启transmission无变化，重装选项5、9也是。
DSM 6.1.7
transmission 3.00-19
sudo安装，选项5和9都一样：
<< 2021-07-21 10:39:02 >> 下载完成，正在准备安装...
<< 2021-07-21 10:39:02 >> 正在解压安装包...
<< 2021-07-21 10:39:02 >> 正在复制安装包...
cp: cannot stat ‘/tmp/tr-web-control/transmission-web-control/src/.’: No such file or directory
<< 2021-07-21 10:39:02 >> 正在设置权限，大约需要一分钟 ...
<< 2021-07-21 10:39:02 >> Transmission Web Control 安装完成!
<< 2021-07-21 10:39:02 >> 正在清理安装包...
<< 2021-07-21 10:39:02 >> 安装脚本执行完成。如遇到问题请查看：https://github.com/ronggang/transmission-web-control/wiki
<< 2021-07-21 10:39:02 >> == 结束 ==
手动创建目录“/tmp/tr-web-control/transmission-web-control/src/”再执行安装也一样问题。

我这边也出来一样的问题，cp: cannot stat ‘/tmp/tr-web-control/transmission-web-control/src/.’: No such file or directory

怀疑是某种情况导致tr-web-control被删掉。可以手动修复，下载zip包，把对应的文件挪过去就行，sudo mv ./transmission-web-control-master/src/tr-web-control/ /var/packages/transmission/target/share/transmission/web自己改目录

authors: Shawt310 cmmdwl fallfellfallen hunter8605 imebeh prodcd ronggang

repo: ronggang/transmission-web-control


text:
🛑 SSH 🇬🇧 United Kingdom UKO 1 is down

In 2fee28b, SSH 🇬🇧 United Kingdom UKO 1 (http://uks-1.opensvr.net:8080/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SSH 🇬🇧 United Kingdom UKO 1 is back up in 68c9585.

repo: roosterkid/opentunnel-status-server


text:
🛑 XRAY 🇮🇩 Indonesia IDA 1 is down

In 023c662, XRAY 🇮🇩 Indonesia IDA 1 (https://idx-1.openv2ray.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: XRAY 🇮🇩 Indonesia IDA 1 is back up in 3cb7f2d.


text:
🛑 TROJAN 🇭🇰 Hong Kong HKE 1 is down

In 37f7219, TROJAN 🇭🇰 Hong Kong HKE 1 (https://hkt-1.opensvr.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TROJAN 🇭🇰 Hong Kong HKE 1 is back up in a32323e.


text:
🛑 TROJAN 🇺🇸 United States USO 1 is down

In d3f8581, TROJAN 🇺🇸 United States USO 1 (https://ust-2.opensvr.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TROJAN 🇺🇸 United States USO 1 is back up in 049661e.


text:
🛑 TROJAN 🇺🇸 United States USO 1 is down

In d5e1855, TROJAN 🇺🇸 United States USO 1 (https://ust-2.opensvr.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TROJAN 🇺🇸 United States USO 1 is back up in e1d9947.


text:
🛑 V2RAY 🇮🇩 Indonesia IDA 1 is down

In a18c032, V2RAY 🇮🇩 Indonesia IDA 1 (https://idv-1.openv2ray.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: V2RAY 🇮🇩 Indonesia IDA 1 is back up in 4281385.


text:
🛑 TROJAN 🇸🇬 Singapore SGA 1 is down

In 16c05d5, TROJAN 🇸🇬 Singapore SGA 1 (https://sgt-3.opensvr.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TROJAN 🇸🇬 Singapore SGA 1 is back up in aa37562.


text:
🛑 V2RAY 🇸🇬 Singapore SGD 1 is down

In bb9e3dd, V2RAY 🇸🇬 Singapore SGD 1 (https://sgv-3.openv2ray.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: V2RAY 🇸🇬 Singapore SGD 1 is back up in c196101.


text:
🛑 V2RAY 🇸🇬 Singapore SGF 4 is down

In 394b973, V2RAY 🇸🇬 Singapore SGF 4 (https://sgv-4.openv2ray.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: V2RAY 🇸🇬 Singapore SGF 4 is back up in 28e8dbf.


text:
🛑 V2RAY 🇸🇬 Singapore SGF 4 is down

In 4984e94, V2RAY 🇸🇬 Singapore SGF 4 (https://sgv-4.openv2ray.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: V2RAY 🇸🇬 Singapore SGF 4 is back up in 64499c1.


text:
🛑 TROJAN 🇸🇬 Singapore SGP 1 is down

In 5660d40, TROJAN 🇸🇬 Singapore SGP 1 (https://sgt-2.opensvr.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TROJAN 🇸🇬 Singapore SGP 1 is back up in d6b160e.


text:
🛑 TROJAN 🇮🇩 Indonesia IDJ 1 is down

In 8ffe8a1, TROJAN 🇮🇩 Indonesia IDJ 1 (https://idt-1.opensvr.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TROJAN 🇮🇩 Indonesia IDJ 1 is back up in d75fdd7.


text:
🛑 XRAY 🇨🇦 Canada CAO 1 is down

In 665163b, XRAY 🇨🇦 Canada CAO 1 (https://cax-1.openv2ray.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: XRAY 🇨🇦 Canada CAO 1 is back up in 767f1a0.


text:
🛑 TROJAN 🇩🇪 Germany DEH 1 is down

In 926d4ad, TROJAN 🇩🇪 Germany DEH 1 (https://det-1.opensvr.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TROJAN 🇩🇪 Germany DEH 1 is back up in 2e36487.


text:
Enzyme UI-test fails

Hi!
I use Mocha and Enzyme to test my app, but for some reason, UI-tests fail if there is react-native-drawer imported.
Here's how I run the tests
mocha --require react-native-mock/mock --compilers js:babel-core/register --recursive test/ui

My test file. (Other ui-tests run fine, it's just this library)
import React from 'react';
import { View } from 'react-native';
import { shallow } from 'enzyme';
import { expect } from 'chai';

import Drawer from 'react-native-drawer'; // It fails here. Anything below doesn't matter

describe('Drawer', () => {
  it('it should render', () => {
    const wrapper = shallow(
      <Drawer
        type="overlay"
        content={<View />}
        tapToClose
        openDrawerOffset={0.2}
        panOpenMask={0.2}
        tweenHandler={(ratio) => ({
          main: { opacity: (2 - ratio) / 2 },
        })}
      >
        <View>
          <Text>Wut</Text>
        </View>
      </Drawer>
    );
    expect(wrapper.find('Text')).to.have.length(1);
  });
});

And here's the error print
/path-to-my-app/node_modules/react-native-drawer/index.js:1
(function (exports, require, module, __filename, __dirname) { import React, {
                                                              ^^^^^^
SyntaxError: Unexpected token import
    at Object.exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:513:28)
    at Module._extensions..js (module.js:550:10)
    at Object.require.extensions.(anonymous function) [as .js] (/path-to-my-app/node_modules/babel-register/lib/node.js:166:7)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (Drawer.js:6:1)
    at Module._compile (module.js:541:32)
    at loader (/path-to-my-app/node_modules/babel-register/lib/node.js:158:5)
    at Object.require.extensions.(anonymous function) [as .js] (/path-to-my-app/node_modules/babel-register/lib/node.js:168:7)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at /path-to-my-app/node_modules/mocha/lib/mocha.js:220:27
    at Array.forEach (native)
    at Mocha.loadFiles (/path-to-my-app/node_modules/mocha/lib/mocha.js:217:14)
    at Mocha.run (/path-to-my-app/node_modules/mocha/lib/mocha.js:469:10)
    at Object.<anonymous> (/path-to-my-app/node_modules/mocha/bin/_mocha:404:18)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:456:3

Has someone got it working?
I tested with Node v4.x LTS and v6.2.1.
React is v15.1.0 and React Native v0.27.1.

Looks like you might need to babel transform your node modules. React native packager does this by default, but most other environments will not

I'm getting a similar issue with trying to import another module, therefore it's not an issue with react-native-drawer.

As @phil-a said it's a common issue to all RN components when using mocha.
I wrap those components with low level components that won't import those components on load.
You can use something like this:
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';

export default class MyDrawer extends Component {
  render() {
    const Drawer = require('react-native-drawer').default;
    return (
      <Drawer
        content={this.props.content}
        open={this.props.open}
        onClose={this.props.onClose}
        ...
        >
        {this.props.children}
      </Drawer>
    )
  }
}

Oh, nice workaround! Thanks for tips, I'll consider this issue closed.

authors: oriarditi phil-a rt2zz stami

repo: root-two/react-native-drawer


text:
flannel 是否没有安装成功？

Environment

OS: mac os
Kubernetes version:
VirtualBox version: 6+
Vagrant version: 2.2.4

What I did?
Your operations on this repo.
vagrant up
Messages
按照你的这篇 blog https://jimmysong.io/kubernetes-handbook/practice/flannel-installation.html etcd 中并没有 flannel 的网络分配信息，是不是这个『在etcd中创建网络配置』的缺失？

Logs or error messages.

看了看 install.sh 应该是有的，删除重装就好了。。。