text:
chore(rust): deny warnings in ci, not local development

Right now in the rust code, if there's a compiler warning during local development, the build will fail to complete. This is inconvenient, since really, we only care about this stuff when landing code in the repo. As a result, this PR moves these checks entirely into CI (where they already existed, for the most part, although I firmed that up).
The exception to this the unsafe_code lint, which is reported by various tooling, and isn't really in the same category as other lints. This one is kept as deny in the crates that can use it (although perhaps it should be increased to #![forbid] in the future).
Checks

[x] All commits in this Pull Request are signed.
[x] All commits in this Pull Request follow the Ockam commit message convention.
[x] I accept the Ockam Community Code of Conduct.
[x] I have accepted the Ockam Contributor Licence Agreement by adding my Git/Github details in a row at the end of the CONTRIBUTORS.csv file in a separate pull request to the ockam-network/contributors repository.

hm, I guess I turned on additional linting for some of this. I'll fix the warnings rather than disabling it though.

repo: ockam-network/ockam


text:
Add variable for bastion health_status

Fixes #226
Signed-off-by: Yussuf Shaikh yussuf.shaikh@ibm.com

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: yussufsh
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [yussufsh]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/cc @bpradipt @sudeeshjohn @rpsene

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: bpradipt, yussufsh
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [bpradipt,yussufsh]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

source: gharchive/pull-request

authors: ltccci yussufsh

license_type: permissive

license_source: github-api


text:
Adding resources object in the access activity class

Adding resources attribute in the Access Activity class.
Related Issue - https://github.com/ocsf/ocsf-schema/issues/522

Updates to the resource object will follow in a separate PR.

Okay, so there was a difference between signed commits vs sign-offs on commits, and what we our governance doc requires is the latter. Updating the settings accordingly.

repo: ocsf/ocsf-schema


text:
[feat] : 建议移除edu.cn及org.cn匹配项

这两项匹配范围太过扩大化了，实际使用中影响过多正常网页

后续会添加排除功能，这个一直想做但是又忘记做了  🤣🤣

后续会添加排除功能，这个一直想做但是又忘记做了 🤣🤣
我建议还是直接将这两项删除，如果有特殊的可以增加添加自定义，因为毕竟对于edu.cn和org.cn这两个子网来说，网课占比还是太少了，白名单机制应该比黑名单机制要好

但是添加自定义的话对于普通用户来说非常困难，如果是排除功能的话只需在软件中处理隐藏和显示即可。

除功能的话

我的考虑是黑名单机制实在是误伤太多了，如果用客户端的用户感觉做个引导复制网址进白名单应该不难，至于直接用脚本的用户，我觉得自己加个match的操作应该不是问题

永远不要高估用户的智商 🤣 ，血与泪的经验

永远不要高估用户的智商 🤣 ，血与泪的经验

哈哈哈有道理

好像还没改？

source: gharchive/issue

authors: RtYkk enncy utopeadia

repo: ocsjs/ocsjs

license: MIT


text:
error on node v8.9.3 on installing

Expected Behavior
npm install robotjs should install and download the required prebuilt binary
Current Behavior
this error comes on installing via npm--

C:\Users\iampr\WebstormProjects\testing> npm install robotjs

> robotjs@0.5.1 install C:\Users\iampr\WebstormProjects\testing\node_modules\robotjs
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=8.9.3 runtime=node arch=x64 platform=win32)

C:\Users\iampr\WebstormProjects\testing\node_modules\robotjs>if not defined npm_config_node_gyp (node "D:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-
gyp.js" rebuild )  else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\iampr\AppData\Local\Programs\Python\Python36-32\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at D:\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\iampr\WebstormProjects\testing\node_modules\robotjs
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN testing@1.0.0 No description
npm WARN testing@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! robotjs@0.5.1 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the robotjs@0.5.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\iampr\AppData\Roaming\npm-cache\_logs\2018-10-11T01_48_27_203Z-debug.log

Possible Solution
no idea.
Steps to Reproduce (for bugs)
npm install robotjs on windows 10 64bit
Your Environment

RobotJS version: latest
Node.js version: 8.9.3
npm version:5.5.1
Operating System:windows

Could you check and tell if you have a the dependencies [https://github.com/octalmage/robotjs#building].
I think this could be an issue due to the lack of pre-built binaries for the 64 bit Windows.

@Deltatiger Thanks. Are the new versions of Visual Studio supported or i have to install the 2013 one ?

Thanks a lot  @Deltatiger . i got it working. amazing library. 😄

repo: octalmage/robotjs

license: mit

license_source: bigquery


text:
🛑 Acceso Molinetes (acceso.suterh.org.ar) is down

In 3ab01f5, Acceso Molinetes (acceso.suterh.org.ar) (https://acceso.suterh.org.ar/api/health) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Acceso Molinetes (acceso.suterh.org.ar) is back up in a36af69.

repo: octubre-softlab/octubre-upptime


text:
Tooltips - is there a better way to show there is tooltip?

Currently:

To be honest, I don't like this way of attaching tooltips - underlying the items with double line - one of the line is even crossing the text a bit. Would it be possible to e.g. add there "question mark icon"? And you can mouse over that icon to get some info? Or at least provide a different way (just one line, which is not that distracting)?

Yeah, whatever. Question mark icon for tooltip on mouse hover and clicking on the text toggles the tooltip (for handheld devices). No underlines.

authors: istvan-satmari tomas-knap

repo: odalic/odalic-ui


text:
[Google Chat] Add support for Performance Alerts

Implement support for Performance Alerts: https://firebase.google.com/docs/functions/beta/alert-events#handle-performance-alerts

Request for information!
Need sample data from app distribution events to see what kind of information is set in e.g. subject and data

repo: oddbit/firebase-alerts


text:
Add a tombstone system

Hello, would it be possible to add a tombstone system? When someone dies all its items are collected in a chest.
The reason I ask here is that it would need to be compatible with world_rebuild in case you die of a creeper explosion and also with the Soulbound enchant.
It could have dynmap integration.
I think it would be a great addition to this already absolutely amazing plugin!

Thanks for the suggestion! I'll have to think about how this would be doable while maintaining a vanilla feeling.
I can see that this is (near) impossible to be implemented correctly by another plugin. You are absolutely right that world rebuilding and soulbound could be issues if this was implemented by another plugin.
For world rebuilding, currently a chest placed on a block that will be rebuilt later will cause the chest to be
naturally destroyed later (i.e. dropped with contents), which would be bad in case of tombstones. The only solution I can see is to never place the chest where a block will be rebuilt. (Hint to self: explosion and death event order may be critical here)
I also see some other corner cases. Feel free to comment on them if you've got any ideas or suggestions:

A player falls in the void
A player dies mid-air (but with ground somewhere below)
A player dies on top of the highest possible block and there is no space to put the chest
A player dies on a tombstone
A player dies inside a block made of something (cobweb, water (could replace), snow, sign)
A player dies in a protected region (spawn, vane-regions)

Dynmap integration would certainly be possible although I could also imagine this cluttering the map a little too much if players don't remove their tombstones. Also I can see scenarios where tracking existing tombstones could
become problematic (not impossible, just not trivial to implement).
(Note to self again: Optionally tombstones could be protected such that only their owner may retrieve them.)
I'll have a look at this again when I have time to implement it.

PS: I wrote an essay, sorry XD
Wow!
First of all, thank you very much for your detailed response!
Vanilla feel
For the vanilla feel, you are right. This would be more of a quality of life improvement, like disabling creeper griefing has it can be very frustrating for a player to die and lose everything.
The chance of losing everything if you die can make the game more thrilling but I feel it can generate a lot of frustration and be the reason you quit the game, after losing a lot of stuff accidentally.
To try and keep a more vanilla feeling we could try to find a consequence to getting back your stuff:

It could need an enchant to happen but this would prevent it in early game at the time it is most needed, the same thing for totems.
You could maybe have to buy back your stuff, trade for something like a skull a bit like for heads, but again this would be limiting in early game.
You could maybe make it "unperfect" somewhat so dying doesn't become "easy". There could be a "degradation" mechanic where as time goes by the number of items retrievable from when you died goes down (you could still choose which ones) until the tombstone eventually disappears completely. This would make stuff retrieval less random hoping it hasn't de-poped while still keeping the fear of losing things. And would also resolve the "there are tombstones everywhere" problem on the Dynmap as they would simply disappear over time.

The mechanic itself
I don't know if you can do custom blocks with plugins, but it could be a sort of slab buried one block in the floor. For placing, you would look up the player's death position and replace the first solid block that appears underneath him (counting lava has a block, for water you could make it "float" or sink down to seafloor) except if it is bedrock in what case you place it on top of the bedrock.
After being cleared out or if left out for too long (see idea on tombstone slowly decaying) the tombstone would simply be destroyed and the block it replaced would get brought back exactly like for the explosion rebuilding already present in the plugin.
For the cases you talked about:

This should resolve points 2 and 3 already.
For point 5,  if he was inside a block it would simply replace the block underneath if not bedrock, and if the block was solid well the tombstone will be buried underground, it shouldn't matter?
For point 6, the block it replaced would just reappear when the tombstone is destroyed and has anyone can loot what's inside the tombstone, anyone can make it disappear. You could still add the option to deactivate them in certain regions.
For point 1 (void) I'm not sure. The only place you are supposed to encounter void is in the end but I'm tempted to say you could make it irretrievable has you should be at an already advanced level at that point and in vanilla Minecraft there would be no way to get it back anyway. The only problem would be custom maps that incorporate void in the design (skybloc, etc...) but those already don't feel vanilla anyway.
For point 4, you could:

make it replace the first one that would reappear after it is destroyed (bad idea XD)
make it "merge" with the first one, the decaying of the first one would be reset
make them spawn on top of each other/next to each other.

Dynmap/Tombstone retrieval
For the Dynmap integration I was thinking of the server I have with my friends where everybody is friendly, so in that scenario it wouldn't be a big deal. But it should definitely be optional (if it even exists in the first place) for bigger servers where griefing is allowed.
This asks the question of how you would find a tombstone if you didn't use Dynmap.
In that case you could maybe use a special compass that indicates the direction and appears in the inventory of the person who died that could be passed to other people and disappear with the tombstone. Then a cool mechanic would be to be able to craft a tombstone finder that indicates the position of the nearest tombstone for big servers and people would be some sorts of grave diggers. But now I'm going a bit far XD
All of the above are ideas, do whatever you feel fits best the plugin if you even feel like implementing something. The plugin is absolutely great and I love the vanilla feeling it keeps. Thank you!

Hi! After careful consideration I decided that this is unfortunately too far out-of-scope for vane. I can't help it but feel like it's adding too much on top of vanilla and would be better suited for a separate plugin. But I like the idea very much and think it might be a cool option to have. There is nothing that requires vane to implement this feature, and a gravestone plugin could easily add support for vane without vane doing anything. As there already exist a plethora of gravestone plugins, I'd much rather see support for vane added in one of these popular plugins.
Compatibility with vane would be easily achieved: The tombstone can be excluded from the block destroy event before vane processes it (other plugin has to use lower priority on the explosion event, I know, sounds wrong but is right), if it even is a part of it. It just needs to make sure that it isn't inside a block that was exploded, so that vane doesn't override it. Soulbound items can be excluded by examining the enchantments NBT and looking for vane_enchantments:soulbound. I'd be willing to implement an API for this if necessary.
I might open an issue on one of these plugins and link to this issue. With a bit of luck they also like vane and are willing to implement support for vane. (If anyone is coming from a gravestone plugin, I'm available to help with implementing compatibility over on discord, just ping me)

I've opened an issue in a very popular plugin called Graves regarding this. Lets see what they say :)

I'm currently using Graves on my server, will let you know if I run into trouble, as I planned on using soulbound on my start item kits :-)

Cool cool, I remember that I did test it once when I talked to the people from Graves, but couldn't identify any issues. Just let me know if anything unexpected comes up.

authors: oddlama ryantheleach vale075

repo: oddlama/vane


text:
push: duplicates created when freshly pushing from non-existent paths

I just encountered this error when pushing from a non-existent directory three children away from the parent ie.
root --> a --> b --> Fingerprinting --> [doc1.pdf, doc2.pdf, doc3.pdf]
and on pushing it produced this output

This used to work, I've certainly previously been able to push such files with non-existent directories.

Getting this as well. Added a new folder to root, pushed it, got four folders that are either empty or contain a seemingly random subset of the files inside.

Hello there @krntz, thank you for the confirmation and for using drive!
I pushed up a PR #1019 and if you freshly install from master, this problem should no longer exist.

authors: krntz odeke-em

repo: odeke-em/drive


text:
🛑 art-werk.ch is down

In 936cbc9, art-werk.ch (https://www.art-werk.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: art-werk.ch is back up in 98f838e.

repo: odqo/upptime


text:
🛑 Google is down

In fa18845, Google (https://www.google.com) was down:

HTTP code: 429
Response time: 422 ms

Resolved: Google is back up in ed751e5 after 8 minutes.


text:
🛑 urbamonde.org is down

In 1852070, urbamonde.org (https://www.urbamonde.org) was down:

HTTP code: 429
Response time: 887 ms

Resolved: urbamonde.org is back up in 633968b.


text:
Folder export not working

DEBUG:urllib3.connectionpool:https://g.api.mega.co.nz:443 "POST /cs?id=2047597038&sid=xxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 2
INFO:mega.mega:Request failed, retrying
Request just fails everytime when exporting, any idea how to fix it?

I am also able to export single files, but not folders


text:
Added a folder param

Hi !
I've had the need to use this feature for my project.
Figured it could be useful for everyone.
I use it like so :
bucket: "MyS3Bucket",
region: 'us-east-1',
folder: 'Photos/'

Please let me know if you'd like it in another way.
Regards,
Maxime.

Sorry it's not documented well, but there is already a options.getFileKeyDir function, which can return a folder to use for the key.  It takes in the req as a param, so you can do things like change the folder based on some session variables.  We use this to keep separate customer files in different sub-folders, and base it off a session customer key.

authors: mbinet seanadkinson


text:
Throwing toLowerCase of null

I have a service that hits elasticsearch and brings back arrays of data. Searching works fine but sometimes just by searching text it throws the following error:
CompleterCmp.html:17 ERROR TypeError: Cannot read property 'toLowerCase' of null.
The line 17:

Here is a sample of what comes back from the backend:
Object {items: Array(100), pageSize: 100, pageNo: 0, numResults: 180}
and the items array holds these objects with two fields:
0:Object{
id:"8815651845852"
name:"github.jpg"
}
I'm using custom data and here is a snippet:
this.http.post(this.baseUrl + "?from=" + page + "&size=" + pageSize, request)       .map((res: Response) => {         // Convert the result to CompleterItem[]         let data = res.json();         console.log(data)         let matches: CompleterItem[] = data.items.map((items: any) => this.convertToItem(items));         this.next(matches);
Then in convertToItem method:
public convertToItem(data: any): CompleterItem | null {     if (!data) {       return null;     }     // data will be string if an initial value is set     return {       title: typeof data === "string" ? data : data.name     } as CompleterItem;   }
Note that search still works and still brings back array of objects but the dropdown stops working. Any ideas on what might be causing this?
Update: I noticed one of the objects in the array had an title of null.

Fixed by checking for nulls and ignoring them or setting to random value.


text:
Added a note about innacuracies in Machine Learning Mastery.

Author appears uninterested in correcting his information, so putting a note in here.

Thanks.


text:
Update the readme code

Updated to the Code to use ES6 const instead of var

:+1:

authors: kiwiupover rwjblue

repo: offirgolan/ember-cp-validations


text:
[安全] 加密函数中使用密钥作为IV的潜在不安全问题

描述
我在WeRoBot项目中发现了一个潜在的安全问题。在crypto/init.py文件的33行的加密函数似乎使用了静态密钥（iv=key）作为加密过程的初始化向量（IV）。这种做法可能导致安全漏洞，因为使用静态或可预测的IV可能会削弱加密的安全性。
重现步骤
转到crypto/init.py文件。-->crypto/init.py
检查33行的加密函数。
观察使用key作为IV。
预期行为
加密函数应该为每次加密操作使用一个独特且不可预测的IV，以确保加密数据的安全性。
实际行为
加密函数使用了静态密钥作为IV，这可能被利用来潜在地破坏加密。包括重放攻击，消息可能的猜测等等。
建议的解决方案
我建议为每次加密操作生成一个新的、随机的IV，并确保在必要时将其与加密数据一起传输。这将符合安全加密的最佳实践。
附加信息
加密函数位于：crypto/init.py

微信公众号看起来没有支持随机 IV，必须是固定的，暂时没法解决

authors: helloqiu kexinoh

repo: offu/WeRoBot


text:
tmux_window_max_name_len not working

set -g @tmux_window_max_name_len "400" still 20 len

There was a typo in the README, The correct value name is tmux_window_name_max_name_len

authors: jinleileiking ofirgall

repo: ofirgall/tmux-window-name


text:
Ripple Effect

how can i disable ripple effect on select tab ?

I have same issue any solution??

+1

Who may concern:
After setting
**app:**stl_defaultTabBackground**="@android**:color/transparent"
dont forget to remove from main_tab_icon (if you use icons)
'android:background="?attr/selectableItemBackground"'

authors: beartistic jemsnaban nonpensavo powerofdjy

repo: ogaclejapan/SmartTabLayout


text:
Scrolling Tabs

I want that when i swipe tabs the indicator should remain at center and the tabs automatically changes .
for now i have to select a tab to make it at center.... i want this effect on scrolling.
Reply ASAP..... Thanks in advance ...

我也想要知道这个问题

我也想要知道这个问题

@razi60 did you get any solution for this?

authors: androdragon lyzqw razi60


text:
[MRG] Reuse grower and splitter memory

Closes #81
Instead of creating a new grower and a new splitter for every tree, we reuse the existing objects and thus the allocated arrays (ordered_gradients, partition, etc.)
I didn't observe any significant speed improvement with:
benchmarks/bench_higgs_boson.py --no-lightgbm  --n-trees 100  --subsample 1000000

but that might come with parallelization.
I haven't run any memory usage benchmark, I'm not sure if memory_profiler is really suited for this.
@ogrisel if you're OK with this in general I'll fix the tests (compare_lightgbm is already passing) and I will parallelize SplittingContext.reset().

Here is an alternative strategy that proved very efficient in scikit-learn: https://github.com/scikit-learn/scikit-learn/pull/18242

Also note that Higgs boson is not the best benchmark for memory efficiency: it has many samples and few features and a single binary target. So compared to the amount of computation, it allocates few histograms.

authors: NicolasHug ogrisel

repo: ogrisel/pygbm


text:
🛑 Reportes is down

In c8cb2aa, Reportes (https://repository.ohelit.co/jasperserver/login.html) was down:

HTTP code: 502
Response time: 426 ms

Resolved: Reportes is back up in 62031f5.

repo: ohelitco/status


text:
🛑 Class is down

In 5e6defc, Class (https://class.ohelit.co/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Class is back up in e2307d1.


text:
🛑 SMTP Server is down

In 2596ce9, SMTP Server (smtp.ohmysmtp.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SMTP Server is back up in 96c9e8a.

repo: ohmysmtp/status


text:
コンテスト名で比較？

今AtCoderから取得したコンテストがGoogleカレンダーに登録されているかどうかはコンテスト名を比較することで行っている。だがスポンサーコンテストとかでコンテスト名が変更された場合など、同じコンテストが複数カレンダーに登録されることがある。
コンテスト名とURL、どちらが変わりにくいかを検討する必要がありそう。

比較はここでやっている。
https://github.com/oirom/atcoder_calendar/blob/db3f369e422543022df1398474c3cd2d36018eca/main.py#L203
比較を URL でやるようになるなら、Googleカレンダーのイベント一覧を parse するところで URL もちゃんとインスタンスに持たせるようにする必要がある。（ URL を書く場所を途中で変更したので parser に入れてなかった。）
https://github.com/oirom/atcoder_calendar/blob/db3f369e422543022df1398474c3cd2d36018eca/main.py#L138-L145

URLも変わる場合があるのをみて思いついたのが、
URLかコンテスト名の両方が一気に変わることはなさそうだから、「URLかコンテスト名どっちかがあってれば同一コンテストとして更新する」っていうのがいい感じがする！

比較するものがおおくなるなら、
if uc.summary == rc.summary or uc.url == rc.url:
とかにするんじゃなくて、 are_same_contest() みたいなクラスメソッド作った方がいいかな


text:
🛑 Ekşi Sözlük is down

In a97730c, Ekşi Sözlük (https://eksisozluk.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ekşi Sözlük is back up in 0f3e003.

repo: okankocyigit/upptime


text:
🛑 Ekşi Sözlük is down

In 5694980, Ekşi Sözlük (https://eksisozluk.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ekşi Sözlük is back up in f3a117d.

Resolved: Ekşi Sözlük is back up in f3a117d.


text:
🛑 OKP4 Explorer is down

In 422b9ad, OKP4 Explorer (https://explore.okp4.network) was down:

HTTP code: 0
Response time: 0 ms

A migration of the service is currently underway 🔄. The service is halted ⏸ during this period. We will provide updates soon 📢.

Resolved: OKP4 Explorer is back up in 5d8886d after 12 hours, 3 minutes.

authors: bot-anik ccamel


text:
install script stopped working because of broken symlink

Describe the bug
install.sh is not correctly grabbing the release tag, which makes the download of the correct jar file and symlink to fail.
Any okta command from that point fails with this error.
Okta Password:
Error: Could not find or load main class com.okta.tools.WithOkta
Caused by: java.lang.ClassNotFoundException: com.okta.tools.WithOkta
Error: Could not find or load main class com.okta.tools.WithOkta
Caused by: java.lang.ClassNotFoundException: com.okta.tools.WithOkta

To Reproduce
Steps to reproduce the behavior:

Download the install.sh file, wget https://github.com/oktadev/okta-aws-cli-assume-role/blob/master/bin/install.sh
Run the install script, sudo bash ./install.sh
check the output or run okta commands after installation.
You will see the broken symlink on the jar file.

❯ sudo bash install.sh -i
Installing into ~/.okta
Latest release JAR file: https://github.com/oktadeveloper/okta-aws-cli-assume-role/releases/download//okta-aws-cli-.jar
Fetching JAR file → ~/.okta/okta-aws-cli-.jar
Symlinking ~/.okta/okta-aws-cli.jar → okta-aws-cli-.jar
Creating example ~/.okta/config.properties

Notice the missing release tag after okta-aws-cli-
Expected behavior
Install script should install the correct jar.
Additional context
https://github.com/oktadev/okta-aws-cli-assume-role/blob/master/bin/install.sh#L83
this line here seems to be returning latest instead of the release tag.

👍

Seeing the same issue. Is there a workaround?

workaround is to manually download the install script, and replace the  releaseTag definition (which  does not parse properly) with the latest tag... currently,  it is v2.0.5. So:
# download
$ curl https://raw.githubusercontent.com/oktadeveloper/okta-aws-cli-assume-role/master/bin/install.sh > install.sh

# replace definition of releaseTag w/ following in install.sh:
releaseTag=v2.0.5

# proceed w/ install
$ PREFIX=~/.okta bash install.sh -i

authors: sunghospark-calm uriel-sf

repo: oktadev/okta-aws-cli-assume-role


text:
Compilation Problem : No Matching function

Hi , I recently cloned the new Pistache project and I keep getting this error when I try to compile the project with pictache
Error: no matching function for call to ‘equal(std::basic_string::const_iterator, std::basic_string::const_iterator, std::basic_string::const_iterator, std::basic_string::const_iterator, Pistache::Http::Header::LowercaseEqual::operator()(const string&, const string&) const::<lambda(const char&, const char&)>)’
});
^	RestClientTest	C:\usr\local\include\pistache\http_headers.h	38
Kindly look into this.
Moreover , is there any example for implementing HTTPS based server using pistache?

The Pistache must be compiled under C++14 , it seems you are using older version of C++

So which is last stable version I can use for c++11 compatible?
And are there any examples regarding HTTPS server?

There is no longer support for c++11, and also there is no stable version yet.
You can find examples in example & test directories

authors: danishmarif mohsenomidi

repo: oktal/pistache


text:
fix: Add ScrollView adjustment automatic

This PR fixes content insets in examples.

cc: @dylancom
Forgot to add this, but this fixes the issue

Perfect!

@okwasniewski Still the scrollbar is offset approx 30px. The content isn't offset but the bar on the right for some reason.
AFAIK it should touch the top?

@dylancom My guess is that its the issue with how Native Stack lays out screens and works with safe area if you ignore safe area insets then it goes below the top bar. Probably this needs a separate issue

authors: dylancom okwasniewski

repo: okwasniewski/react-native-bottom-tabs


text:
Add option to disable default mapper, add base mapper, support \n in generic_mapper

Added a base mapper that applies on top of all other mappers
Added option to disable the default mappers
Made generic_mapper work with regex containing \n

https://github.com/oleg-shilo/codemap.vscode/issues/38
https://github.com/oleg-shilo/codemap.vscode/issues/37

Let me know if you need any changes to accept this, or just close it if you think the features wouldn't be useful to others.
FYI this is the use case I was working towards with my 2 issues and these changes

Thank you.
I see what you are trying to do. All good. The only thing I would change is the naming of the config values.
Thus the term "defaults" semantically isn't a great choice for referring to the all mappers that   included in the CodeMap distro and created by the user. In fact "base mapper" seems to be even a better candidate to be called "default". But I like "base mapper" better anyway.
So can you please change the name of the config value to something like:
"codemap.useBaseMapperOnly": {
    "type": "boolean",
    "default": false,
    "description": "Disable all file type specific mappers and use base mapper only."
},

Otherwise all good.
===================
And if you do not mind a general feedback. The aggressive formatting of the contributed code makes it difficult to follow the code changes. If you have a simple way of reverting it back to default VSCode formatting for TS then you may want to use it for the code you are contributing.
But I can understand that it may be difficult on practical level.

Thanks for the feedback.

And if you do not mind a general feedback. The aggressive formatting of the contributed code makes it difficult to follow the code changes. If you have a simple way of reverting it back to default VSCode formatting for TS then you may want to use it for the code you are contributing.
But I can understand that it may be difficult on practical level.

Undoing the formatting was tricky so I just reverted and recommitted my changes with Prettier disabled then did a force push, so it should be cleaned up now.

Thus the term "defaults" semantically isn't a great choice for referring to the all mappers that included in the CodeMap distro and created by the user. In fact "base mapper" seems to be even a better candidate to be called "default". But I like "base mapper" better anyway.

Actually my intention was for this setting to only disable the default mappers defined by CodeMap, but not the ones defined by users. I now realize my code logic was flawed. I tried correcting it to what I intended but had trouble since CodeMap defines some defaults in files like mapper_md.ts and some in package.json, and don't have time to follow though, so I'll leave that for someone else and just keep this pull to the other 2 items. I've removed the setting.

Not a problem. It will be enough if you just commit the non-prettified code. I'll do the rest.

...in files like mapper_md.ts and some in package.json...

This is what I meant when was saying "default" is s bit misleading.
This is what I'll do. I'll allow enabling/disabling mappers from the config. All of them even the built-in (embedded) mappers. These are only three: JS, TS and C#.
I will also allow disabling with a special value <none>. Thus there is no need for :
"codemap.ts": {
     "type": "string",
     "default": "<default>",
     "description": "Built-in mapper for TypeScript syntax. Use `<none>` if you want to disable it."
     },
"codemap.js": {
     "type": "string",
     "default": "<default>",
     "description": "Built-in mapper for TypeScript syntax. Use `<none>` if you want to disable it."
     },
"codemap.cs": {
     "type": "string",
     "default": "<default>",
     "description": "Built-in mapper for C# syntax. Use `<none>` if you want to disable it."
     },

This way you can disable any mapper. Thus there is actually no need for codemap.useBaseMapperOnly at all.
Meaning that only new functionality in this PR will be:

Base mapper (applied for all extensions)
Support for \n in regex based mappers
Enabling/disabling all (built-in and user-defined) mappers via config.

You do #1-2 and I' do #3

authors: adamerose oleg-shilo


text:
docs: update render_headers to show_header_separator

Description
Update the docs for the render_headers config option change to show_header_separator.
Checklist

[x] I've read the CONTRIBUTING guidelines and have adhered to them in this PR
[x] I've updated the README and ran the make docs command

Great spot! Thank you.


text:
Use cache for improved speed

Either

activate caching within the action,
or use lean-action to take advantage of the fact that it already has caching built in.

this issue should be closed as completed?

authors: Seasawher oliver-butterley

repo: oliver-butterley/lean-update


text:
A fork of pngjs that's getting a bit of love

@oliver-moran
Have a look at:
https://github.com/leogiese/node-png
It's a fork of pngjs that is being updated...
In any case, you've done some excellent work here. Thank you.

Thanks, Theo. I'll take a look.

Done. Will be in the next release.

authors: oliver-moran theo-armour

repo: oliver-moran/jimp


text:
Can Jimp write a jpg file which exactly have the same color which I set?

Expected Behavior
I used setPixelColor to operate the color of each pixels.
I used this to save the jpg file:
picture.quality(100).writeAsync(path);

I wish that Jimp can write a jpg file which exactly have the same color which I set.
Current Behavior
When I used getPixelColor to read the saved jpg,
I found that the colors are a little bit different with what I operated.
But this seems only effected with saving jpg.
After I saved the picture as bmp, I read the bmp file. I got the colors I wanted.
Steps to Reproduce

Use Jimp.read to read the jpg file.
Use setPixelColor to edit a color of a pixel.
Use quality(100).writeAsync to save the file as a new jpg.
Use Jimp.read to read the new jpg file.
Use getPixelColor to get the color which I edited.
Compare the color with what I set before.
They are different a little.

Context

Jimp Version: 0.6.0
Operating System: Windows 10 Pro 64bit
Node version: 111.6.0

So, may I save the color into jpg strictly as what I want?
Thank you for checking this.
Failure Logs
Nope.

I'm getting this issue, any fixes?


text:
Refresh when using BulkProcessor

Which version of Elastic are you using?
[ ] elastic.v2 (for Elasticsearch 1.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[x] elastic.v6 (for Elasticsearch 6.x)
Please describe the expected behavior
Need the ability to wait_for a refresh when using a BulkProcessor
It looks like in bulk_processor.go, line 505, you can brute-force this by changing it to:
res, err = w.service.Refresh("wait_for").Do(ctx)
This seems to get the desired behavior, however after digging into the code I'm not sure if this behavior is already supported in some way? My current initialization code is:
bulker, err := client.
   BulkProcessor().
   BulkSize(5000).
   Workers(10).
   Do(context.Background())

Thank you!

Adding a Refresh in line 505 would have a severe impact on the performance of the bulk processor.
You can set a flush interval, which is not exactly what you want (it re-opens the index reader(s) AND commits changes to disk), but that's what bulk processor has right now. It would of course be possible to add a BulkProcessor.Refresh method to manually refresh. But I think that would defeat the purpose of bulk processor.
If you want fine grained control over your bulk indexing, do not use bulk processor but implement your own indexer with Bulk API. It's not that hard.

I'm not necessarily interested in speed but instead more interested in a guarantee that the data added is available to query. I'll work on my own Bulk API implementation, thank you for the pointers!

authors: chuntley olivere

repo: olivere/elastic


text:
Bug in readthedocs config

Bug,
Autodoc not working any more
=> https://hoggorm.readthedocs.io/en/latest/plsr.html is empty

Fixed

repo: olivertomic/hoggorm


text:
🛑 MediaNet is down

In ff55e84, MediaNet (https://medianet-pa.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MediaNet is back up in 049f37c.

repo: olmloa/upptime


text:
MetroUI Calendarpicker issue

Hello, since 2 days ago, I started to have trouble with calendarpickers. Arrows (left and right) for month and year changing are not working anymore. The calendar closes unexpectedly when clicking on them.
Also visible on your demo page: https://metroui.org.ua/calendarpicker.html
On my side, I get also this JS error when clicking the arrows:
VM74 metro.min.js:7 Uncaught TypeError: Cannot read property 'close' of undefined
at HTMLDivElement. (VM74 metro.min.js:7)
at VM74 metro.min.js:7
at C.init.forEach ()
at Function.C.each (VM74 metro.min.js:7)
at HTMLSpanElement. (VM74 metro.min.js:7)
at HTMLDocument.func_event_click_4 (VM74 metro.min.js:7)

Fixed in 4.3.1

Hi, how to use this 4.3.1 version ?
https://cdn.metroui.org.ua/v4.3.1/js/metro.min.js ?

You can download branch from github or use from cdn as v4-dev or wait for release

Ok thx for the quick support.

repo: olton/Metro-UI-CSS


text:
FadeOut()  so FadeIn()

Not sure if it's bug or not...
If I apply FadeOut() on simple label to hide it and apply FadeIn() to show it after action, I've "display: inline-block;" ou "display:block" style on it.
So result is... surprising.
Sample (and simple) code I'm using :
  "bla bla bla ONE
  "bla bla bla TWO

With events :
$("body").on("click", ".tally", function(e){
	$(this).fadeOut();
});

$("body").on("dblclick", ".tally", function(e){
 	$(".tally").fadeIn();
});

How can I have initial page after double clicking ?

var body = $("body");

body.on("click", ".tally", function(e){
      console.log($(this).style("display")); // --> inline
      $(this).fadeOut();
});

body.on("dblclick", ".tally", function(e){
    $(".tally").fadeIn(function(){
        console.log($(this).style("display")); // --> inline
    });
});

m4q use computed value if value not defined in css or style

authors: arjarn olton


text:
🛑 OME CI server (merge) is down

In 22570ae, OME CI server (merge) (https://merge-ci.openmicroscopy.org/jenkins) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OME CI server (merge) is back up in 73f8161 after 5 hours, 19 minutes.

repo: ome/upptime


text:
🛑 OME NGFF is down

In a25603d, OME NGFF (https://ngff.openmicroscopy.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OME NGFF is back up in 63104dc.


text:
Fix ExampleProject

MainActivity

add baseRatingBar and rotationRatingBar Log

RatingBar

delete

activity_main.xml

sort layout
fix id name

strings.xml

add string

Hello, Thanks for helping me to arrange these file!
but, there has one thing I think maybe you can modify and send a PR again, is about the ID naming.
I used to make the object name at the first, like tvScale or tv_scale.
Here are some references maybe you can take a look:

Code Style for Contributors
A successful XML naming convention

Hope these can help you!
If you have any different ideas or references, welcome to share with me.
Thanks again!

Hello, Thanks for the reference!
I looked at the reference and tried changing it


text:
Config override issue with omg_watcher

As part of the ~/config_watcher.exs generation and setup for the omg_watcher, I wanted to customize the port that the watcher listens on.
When I specified the following in my ~/config_watcher.exs:
use Mix.Config
config :omg_eth,
  contract_addr: "0x21c4127004b4ae732fc407dffe65d28b1d0b3594",
  txhash_contract: "0xbb2a364ded8099a9c5d11c9388d8179790fe1c497fc76796f57e159062738b95",
  authority_addr: "0xabe7a779d6b6f9cf254b62075605ef5e7129f998"

config :omg_db,
  leveldb_path: Path.join([System.get_env("HOME"), ".omg/data_watcher"])

config :omg_watcher, OMG.Watcher.Web.Endpoint,
  http: [port: 34727],
  url: [host: "localhost", port: 34727],
  debug_errors: true,
  code_reloader: true,
  check_origin: false,
  watchers: [],
  server: true

The following error occurred when attempting to POST to the Watcher:
2019-02-18 14:47:16.149 [error] ⋅GenServer OMG.Watcher.Eventer terminating
** (ArgumentError) no :pubsub server configured at, please setup :pubsub in your config.

By default this looks like:

    config :my_app, MyApp.PubSub,
      ...,
      pubsub: [name: MyApp.PubSub,
      adapter: Phoenix.PubSub.PG2]
(phoenix) lib/phoenix/endpoint.ex:510: Phoenix.Endpoint.__pubsub_server__!/1
    (omg_watcher) lib/web/endpoint.ex:16: OMG.Watcher.Web.Endpoint.broadcast!/3
    (omg_watcher) lib/eventer.ex:47: anonymous fn/1 in OMG.Watcher.Eventer.handle_cast/2
(elixir) lib/enum.ex:737: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:737: Enum.each/2
    (omg_watcher) lib/eventer.ex:45: OMG.Watcher.Eventer.handle_cast/2
    (stdlib) gen_server.erl:616: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:686: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

To fix this I had to add the following to my ~/config_watcher.exs config:
pubsub: [name: OMG.Watcher.PubSub, adapter: Phoenix.PubSub.PG2]
This is already defined in the watchers config located here:
apps/omg_watcher/config/config.exs
It would appear that this config file is getting ignored/overridden by my updated config_watcher.exs file.
Is this the expected behaviour or should the original settings within apps/omg_watcher/config/config.exs be preserved if no overrides have been set in a custom config?

Thank you for reporting. I've been able to reproduce this issue, and it seems to be related to how deeply --config-provided configuration entries are merged into the default ones.
Figuring that this behavior is a bit surprising I opened https://github.com/elixir-lang/elixir/issues/8811 to clarify.
NOTE For me, the error doesn't seem to manifest when POSTing to the watcher but on a transaction processed when validating blocks during syncing.
WORKAROUND Until this is clarified, the workaround would be to provide the :omg_watcher, ..Endpoint entry manually merged from both omg_watcher/config/config.exs and omg_watcher/config/dev.exs, with the desired modifications (http etc) applied.

repo: omisego/elixir-omg


text:
Exception handling

Description
Database is locked when there is an exception.
PS: I am using  databases where I don't get access to underlying connection and cursor.
Details
Minimal reproducible example:

import aiosqlite

async def test():
    db = await aiosqlite.connect("data.db")

    create_sql = """
    CREATE TABLE edits (
    id INTEGER NOT NULL,
    category TEXT NOT NULL,
    question TEXT NOT NULL,
    answer TEXT NOT NULL,
    action VARCHAR(6) NOT NULL,
    CONSTRAINT pk_edits PRIMARY KEY (id),
    CONSTRAINT ck_edits_action CHECK (action  in ('INSERT', 'UPDATE', 'DELETE')))
    """

    data = {
        "category": "cat1",
        "question": "hello",
        "answer": "world",
        "action": "USDATE",
    }

    columns = ", ".join(data.keys())
    sql = "INSERT INTO edits ({}) VALUES {}".format(columns, tuple(data.values()))
    cursor = await db.execute(create_sql)
    cursor = await db.execute(sql)
    await cursor.close()
    await db.commit()
    await db.close()

start ipython and execute await test().
I am correctly getting the IntegrityError: CHECK constraint failed: ck_edits_action. But then I cannot exit ipython and accessing from another process raises  db locked error.

OS: Windows 7
Python version: 3.6.8
aiosqlite version: 0.11.0
Can you repro on master? NA
Can you repro in a clean virtualenv? Yes

An even more concise example:

OS: Windows 10 Enterprise
Python Version: 3.7.4
aiosqlite version: 0.12.0
Can you repro on master? NA
Can you repro in a clean virtualenv? Yes

import asyncio
import aiosqlite

async def test():
    db = await aiosqlite.connect("/cannot/open/this/database.db")
    await db.close()

asyncio.run(test())

Results:
returning exception unable to open database file
Traceback (most recent call last):
File "C:\Users\<redacted>\AppData\Local\Programs\Python\Python37\lib\site-packages\aiosqlite\core.py", line 153, in run
result = function()
File "C:\Users\<redacted>\AppData\Local\Programs\Python\Python37\lib\site-packages\aiosqlite\core.py", line 314, in connector
return sqlite3.connect(loc, **kwargs)
sqlite3.OperationalError: unable to open database file

And then the program hangs.

Connection failures resulting in hung threads (@rdn4github's issue) should be resolved in master branch, and I added test cases to catch any regressions.
As for the original issue, I believe this is mostly working "as designed", and the hanging thread is because you are not using the context manager, and also not catching the exception and closing the connection in your exception handler. An exception due to bad inserts should not close the connection/thread, and due to Python reference counting, there's no good way to detect that the reference has gone out of scope to close it automatically (except by using it as a context manager).
Recommended usage would be something like this to correctly close the db when exceptions occur, without needing to explicitly catch those exceptions:
async def test():
    async with aiosqlite.connect("data.db") as db:

        create_sql = """
        CREATE TABLE edits (
        id INTEGER NOT NULL,
        category TEXT NOT NULL,
        question TEXT NOT NULL,
        answer TEXT NOT NULL,
        action VARCHAR(6) NOT NULL,
        CONSTRAINT pk_edits PRIMARY KEY (id),
        CONSTRAINT ck_edits_action CHECK (action  in ('INSERT', 'UPDATE', 'DELETE')))
        """

        data = {
            "category": "cat1",
            "question": "hello",
            "answer": "world",
            "action": "USDATE",
        }

        columns = ", ".join(data.keys())
        sql = "INSERT INTO edits ({}) VALUES {}".format(columns, tuple(data.values()))
        cursor = await db.execute(create_sql)
        cursor = await db.execute(sql)
        await cursor.close()
        await db.commit()

This also fixed #35

authors: jreese rdn4github teucer

repo: omnilib/aiosqlite


text:
curl returns "Move permanently" instead of random commit message

When I use this, I get an HTML page saying that wtc has moved permanently.
Insert "https://" before the URL in the yaml file, and it's done!

The commit with this solution was made 8 days before already... not sure, why the version is not available yet in the espanso hub

Still waiting for the pull request in the hub:
https://github.com/espanso/hub/pull/54

Merged: https://github.com/espanso/hub/pull/54#event-7949064849

repo: omrilotan/espanso-package-wtc

license: Unlicense


text:
Check enum values against strings if enum key fails

Is your feature request related to a problem? Please describe.
When using strings as enum items, only the key is compared, not the value:
from dataclasses import dataclass
from enum import Enum
from omegaconf import OmegaConf

class Val(Enum):
    VALX = "tall"
    VALY = "short"

@dataclass
class Config:
    val: Val = Val.VALX

config = OmegaConf.structured(Config)
config = OmegaConf.merge(config, OmegaConf.create({"val": "VALX"}))  # fine
config = OmegaConf.merge(config, OmegaConf.create({"val": "tall"}))  # error

Describe the solution you'd like
Using the string enum value instead of the key would be nice. In these lines, if it raises a KeyError, perhaps it could check enum_type(value) as well. It already does this if value is an integer. https://github.com/omry/omegaconf/blob/71f833b6046f0b514530ed791c57080287fa0bb0/omegaconf/nodes.py#L487-L491
The main issue with this approach would be if the enum key->value mapping is not one-to-one. So it would need to be checked. Perhaps that's too impractical.
Additional context
My particular use case was where the enum value began with a number, so the key had to begin with an underscore. So I had to specify the underscore in the config.

if it raises a KeyError

So as for the case where there's both an enum key and an enum value that match:
class Val(Enum):
    A = "B"
    B = "C"

In this case, merge(config, create({"val": "B"})) would give {"val": Val.B}, not {"val": Val.A}.

In some cases, this would be a breaking change.
Not sure this is a big enough problem to justify a fix. Per Python docs, the majority of Python enums are using integer values.

Yeah, it's probably too much hassle for what it's worth and might cause other issues. There are other ways around the issue.

authors: Jasha10 agkphysics omry

repo: omry/omegaconf


text:
ValueInjecter is using default mapping and not the custom mapping

In MappingConfig.Configure I have a custom mapping
 CrudMapper.AddMap<Incident, IncidentApiViewModel>((model, tag) =>
{
...
}

In my windows application, I have
mappedUser = MapperConfig.CrudMapper.Map<Incident,IncidentApiViewModel>(user);
Problem is that the default mapping function is being used to assign values. The custom mapping is not being used.

valueinjecter doesn't have MapperConfig or CrudMapper in ValueInjecter.dll
you might be using a different instance of the mapper than the one you are configuring,
you need to create a unit test to prove/show the issue that your are describing

authors: omuleanu rakeshkhoodeeram

repo: omuleanu/ValueInjecter


text:
FI-435 Track assertions in helpers

This PR updates the assertion tracking to track assertion calls in helper methods. For assertions not directly called in a test, the output will now look like this:
location_of_method_call_in_test -> location_of_assertion
modules/argonaut/argonaut_procedure_sequence.rb:110 => sequence_base.rb:490

This allows us to verify that the helper methods are being exercised in each test, rather than only once. The output also differentiates between direct and indirect assertion calls.
A unit test of the following test would record a direct assertion call because the item being unit tested is making the assertion.
test 'direct' do
  assert true
end

A unit test of the following test would record an indirect assertion call because the assertion happens in a separate method. A unit test of the validate method would record the assertion as a direct assertion because the assertion is called within that method.
test 'indirect' do
  validate
end

def validate
  assert true
end

Differentiating direct and indirect assertions allows us to determine whether helper methods are themselves being unit tested or only being tested through the tests that use them.
Submitter:

[x] This pull request describes why these changes were made
[x] Internal ticket for this PR: https://oncprojectracking.healthit.gov/support/browse/FI-435
[x] Internal ticket links to this PR
[x] Internal ticket is properly labeled (Community/Program)
[x] Internal ticket has a justification for its Community/Program label
[x] Code diff has been reviewed for extraneous/missing code
N/A Tests are included and test edge cases
[x] Tests/code quality metrics have been run locally and pass

Reviewer 1:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure
where appropriate, and accomplishes the task's purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

Reviewer 2:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure
where appropriate, and accomplishes the task's purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

I think capturing the assertion messages is something that would require more discussion. Many of the assertion messages only make sense when the assertion fails. Updating them to be meaningful for passes and failures would require a lot of effort and probably be difficult to do without making them less understandable to end users.
Many of the assertion messages are dynamic, so we'd need to capture them all individually and determine the best way to format the output.

I just tried running this and when I looked at the output the first entry I saw was:
modules/argonaut/argonaut_allergy_intolerance_sequence.rb:107 => sequence_base.rb:514 with 1 Direct Pass Count and, 0 Direct Fail Counts and no Indirect results.
I thought that this would be an example of an indirect count looking at the code.  Am I misinterpreting something here?

The place where the direct/indirect distinction shows up isn't in the individual results for an assertion that goes through a helper function, such as
modules/smart/token_refresh_sequence.rb:85 => modules/smart/token_refresh_sequence.rb:113,11,2

Rather, the indirect results for modules/smart/token_refresh_sequence.rb:113:
modules/smart/token_refresh_sequence.rb:113,12,1,22,4

are just the sum of the results from all the indirect calls to it:
modules/smart/token_refresh_sequence.rb:109 => modules/smart/token_refresh_sequence.rb:113,11,2
modules/smart/token_refresh_sequence.rb:85 => modules/smart/token_refresh_sequence.rb:113,11,2

authors: Jammjammjamm radamson

repo: onc-healthit/inferno


text:
Valid DocumentReference type LOINC codes  are not identified in the value set

What happened?
After running US Core 5.0.1 tests on DocumentReference, the valid DocumentReference category LOINC codes 68629-5 and 75424-2 are not identified in the value set http://hl7.org/fhir/us/core/ValueSet/us-core-documentreference-type
Error message: Resource does not conform to the profile http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference|5.0.1
After going over the ValueSet of US Core DocumentReference Type page, I noticed there's a warning message that states that: This value set has >1000 codes in it. In order to keep the publication size manageable, only a selection (1000 codes) of the whole set of codes is shown. I wonder if Inferno is unable to identify these LOINC codes in the value set because only 1000 codes are displayed on the page.

I think you are referring DocumentReference.type instead of DocumentReference.category.
There is an issue validating concept using tx.fhir.org. Please see https://github.com/onc-healthit/onc-certification-g10-test-kit/wiki/FAQ#q-why-do-some-resources-fail-in-us-core-test-kit-with-terminology-validation-errors

@yunwwang Thank you very much!

@bcastillomartel-va
I run several tests this morning and I could not reproduce the same terminology error using Inferno US Core Test Kit.
Could you check it again and let me know if the same error still exist?
Here is the resource I used
      {
        "resourceType": "DocumentReference",
        "status": "superseded",
        "type":
        {
          "coding":
          [
            {
              "system": "http://loinc.org",
              "code": "68629-5"
            },
            {
              "system": "http://loinc.org",
              "code": "75424-2"
            }
          ]
        },
        "category":
        [
          {
            "coding":
            [
              {
                "system": "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category",
                "code": "clinical-note",
                "display": "Clinical Note"
              }
            ]
          }
        ],
        "subject":
        {
          "reference": "Patient/85"
        },
        "date": "1940-09-06T01:11:45.131-04:00",
        "author":
        [
          {
            "reference": "Practitioner/88",
            "display": "Dr. Melvin857 Torp761"
          }
        ],
        "custodian":
        {
          "reference": "Organization/87",
          "display": "PCP87052"
        },
        "content":
        [
          {
            "attachment":
            {
              "contentType": "text/plain",
              "data": "CjE5NDAtMDktMDYKCiMgQ2hpZWYgQ29tcGxhaW50Ck5vIGNvbXBsYWludHMuCgojIEhpc3Rvcnkgb2YgUHJlc2VudCBJbGxuZXNzCkx1Y2llbjQwOCBpcyBhIDUgbW9udGgtb2xkIG5vbi1oaXNwYW5pYyB3aGl0ZSBtYWxlLgoKIyBTb2NpYWwgSGlzdG9yeQogUGF0aWVudCBoYXMgbmV2ZXIgc21va2VkIGFuZCBpcyBhbiBhbGNvaG9saWMuCgpQYXRpZW50IGNvbWVzIGZyb20gYSBoaWdoIHNvY2lvZWNvbm9taWMgYmFja2dyb3VuZC4gUGF0aWVudCBjdXJyZW50bHkgaGFzIEJsdWUgQ3Jvc3MgQmx1ZSBTaGllbGQuCgojIEFsbGVyZ2llcwpObyBLbm93biBBbGxlcmdpZXMuCgojIE1lZGljYXRpb25zCk5vIEFjdGl2ZSBNZWRpY2F0aW9ucy4KCiMgQXNzZXNzbWVudCBhbmQgUGxhbgoKCiMjIFBsYW4KClRoZSBmb2xsb3dpbmcgcHJvY2VkdXJlcyB3ZXJlIGNvbmR1Y3RlZDoKLSBtZWRpY2F0aW9uIHJlY29uY2lsaWF0aW9uIChwcm9jZWR1cmUpCg=="
            },
            "format":
            {
              "system": "http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem",
              "code": "urn:ihe:iti:xds:2017:mimeTypeSufficient",
              "display": "mimeType Sufficient"
            }
          }
        ],
        "context":
        {
          "encounter":
          [
            {
              "reference": "Encounter/96"
            }
          ],
          "period":
          {
            "start": "1940-09-06T01:11:45-04:00",
            "end": "1940-09-06T01:26:45-04:00"
          }
        }
      }

authors: bcastillomartel-va yunwwang


text:
Need Chef::EncryptedAttribute.exist_on_node? method (and RemoteNode class) to use knife search query keys rather than only node's name

I'm running into a problem where Chef::EncryptedAttribute.exist_on_node?(name-of-my-node) is returning multiple nodes due to the fact that I have metadata on other nodes with the same 'name = name-of-my-node' data. In our current Chef environment, we believe this is perfectly acceptable and necessary data. An example of this occurring is the metadata a proxmox server may need. According to the knife search documentation, 'When nested fields are present in a JSON structure, the chef-client will extract those nested fields to the top-level, flattening them into compound fields that support wildcard search patterns.' which means Chef's search is working properly given the search criteria.
I'm logging this as an issue first before proposing a pull request because I'm not sure how to fix this without breaking backwards compatibility. I think the way chef-encrypted-attribute currently searches for the nodes to encrypt for (using the usual search query keys rather than hardcoding a specific key to search on) seems a reasonable way to find the node that the encrypted attribute exists on. But I'm not sure how to make this change and not break backwards compatibility.
Finally, is there any other way around this? Am I not using Chef::EncryptedAttribute.exist_on_node? properly?
Thanks

Thanks @chhsiung. Interesting bug. I think I understand your problem. You have some nodes with attributes similar to the following:
{
  "name": "cat1.example.com",
  "run_list": [ "role[meow]" ],
  "normal": {
    "proxmox_servers": {
      "web": {
        "name": "mouse001.example.com",
        "ip": "192.168.0.25"
      }
    }
  }
}

And using $ knife search node "name:mouse001.example.com" also returns this server as a result. The same applies to .exist_on_node? internal search and everything fails.
I think this error can be fixed only by checking the server that returned search result. In the normal search the server name is returned by default and I think that in partial search you can use the "name": ["name"] key search to return the server name. But I'm not sure.
I will try to fix this, but give me a few days because I'm a bit busy right now. If you're in a hurry and you're thinking about making a PR, remember to include tests and to update the documentation accordingly. I think this could require a big change in the SearchHelper class (a name parameter?) but maybe not so complicated.

@zuazo - any update on this? sorry, i hadn't had a chance to take a look at this since i logged the issue so haven't tried your suggested fix yet.

@chhsiung, my apologies, I have to fixed this yet. Some tests with chef-zero suggest that can be fixed as I said. But I have not had the time to fix it yet. I will try to spend some time on it this weekend.

Hi @zuazo, sorry haven't had a chance to revisit this earlier, but I finally played with the partial_search you suggested!  I'm not sure whether I'm doing things wrong.... but when I pass in "name"=>["name"] to the partial search, i am still receiving back extra nodes, but just a hash of their values now.
(so assuming 2 nodes, one called "secret-keeper" and another having other attributes with "name":"secret-keeper")
before:
[node[secret-keeper], node[not-secret-keeper]]
now, with partial search:
[{"name"=>"secret-keeper"}, {"name"=>"not-secret-keeper"}]
am i using partial search correctly? if so, should i select 1 more time on the results to make sure i retrieve the correct node?

Hi @chhsiung,
I fixed this in master. Including tests and documentation. I hope I did not break anything.
Doing partial search with name: ["name"] still returns the extra nodes, but you can filter them now knowing their real node name and get only the correct one.

@zuazo - thanks so much for your quick fix!  I played around with it and it appears to be working for me in test-kitchen, returning just 1 node and the proper one! thanks again! :)

Crystal, thanks for the feedback. I released gem version 0.7.0 with the fix.

@zuazo, hi. again. :(
things were working great in test-kitchen! i had even copied over the production nodes' data in order to recreate the same exact scenario.  but then things didn't work for me in production once the new 0.7.0 gem was released (btw, no problems installing 0.7.0, thanks for that fix!!)
i think the problem is related to https://github.com/onddo/chef-encrypted-attributes/blob/master/lib/chef/encrypted_attribute/remote_node.rb#L79. In this call, the # rows is set to 1... Since that row value gets passed all the way through to the Chef search call (https://github.com/onddo/chef-encrypted-attributes/blob/master/lib/chef/encrypted_attribute/search_helper.rb#L372), only 1 row is ever returned (which in production happens to NOT be the one i want; i guess in test-kitchen, I had created the nodes in a different order) and filter_normal_search_response never gets to actually filter through multiple results.
i tested this theory out by upping the row parameter to 2 and i was able to successfully retrieve the attribute from the right node.  obviously don't want to leave it at 2, but i don't want to not set a limit... what do you suggest?

Thanks @chhsiung for all your patience and feedback. I increased the row limit to 1000 and added the search_max_rows configuration option to increase this limit if necessary.

Another release with the last fix: 0.8.0. Let me know if it does not work for you :wink:

authors: chhsiung zuazo

repo: onddo/chef-encrypted-attributes


text:
Add capabilities to expose Product number, Board UUID attributes in Sysman device properties

Currently we only expose SoC UUID, request is to expose two other attributes from FRU data

Board UUID is uniquely identify the board in the datacenter , which might contain multiple SOC (Soc UUID)

repo: oneapi-src/level-zero-spec


text:
Update DPC++ fill test

Add checks for the fill result.

/intelci: run

/intelci: run

/intelci: restart

repo: oneapi-src/oneDAL


text:
Expose HTTPS Port options to SABnzbd enviroment variables

Relevant for https://github.com/truenas/charts/issues/2693
For easy setup in TrueNAS it would be advantageous to have the option for "HTTPS Port" inside the SABnzbd advanced config. Could you please expose this option as an additional enviroment variable?
The option sets the following sabnzbd.ini attributes:
[misc]
https_port = 30060
You could couple it with an additional enviroment variable for enable_https = 1.
Thank you!

I'm not sure why you would want to terminate TLS at sabnzbd instead of an ingress controller, can you explain your need for this option? I don't support truenas scale or truecharts so it's very unlikely this will be added.


text:
Handle Multiple API Keys

Details
Describe the solution you'd like:
I've got two instances of Radarr and one of Sonarr running in a Kubernetes cluster. It would be nice to be able to only have to run 1 deployment to monitor these. Right now I have to run 3.
Anything else you would like to add:

Additional Information:
I understand this would cause some issues with existing dashboards but I feel like that is out of this projects concern.

For now this is meant to be one exportarr instance per Radarr, Sonarr or Lidarr instance. But I am open to PRs :)

Noted, I already thought about going that route but I thought I would get it on the radar.

I am going to close this issue because just like how we have to deploy separate radarr/sonarr instances they same is true for this app. Adding multi instance support is not easy and would require a lot of refactoring.


text:
fix: after, before and first helpers can process strings now

Context
https://hpinc.kanbanize.com/ctrl_board/55/cards/14614/details/

Congrats! The repository doesn't have any security vulnerability issues.

:tada: This PR is included in version 1.2.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: Sergio-svb oneflow-build

repo: oneflow/handlebars-kit


text:
[1/2] Support agent integrations

I received this question from someone trying to use this release:

I have tried to monitor processes but it didn't work. Have you tried? Have you tried other extensions?
I have enabled examples in AGENT_DIR/conf.d but I'm getting python errors. I have added the python_dev package but still the same error.

Looking into this I discovered that:

I made the wrong assumption about the optional pip dependencies. I assumed that since the upstream install script ignores failures, I should too. These optional dependencies are actually required for some of the integrations, as documented in requirements-opt.txt.
pip dependencies that have native extensions couldn't compile because the python2.7 include directory was not directly on the INCLUDE_PATH. Also, the trailing : caused the parser to include an extra -L option, breaking the compilation.

This PR supports installation of optional dependencies and adds a property to configure them.
instance_groups:
- name: myservice
  jobs:
  - name: datadog-agent
    release: datadog-agent
    properties:
      integrations:
        process:
          init_config:
            pid_cache_duration: 30
          instances:
          - name: myservice
            search_string: ["myservice"]
            thresholds:
              critical: [1, 9]

🉑

authors: adamstegman vcardillo

repo: onemedical/datadog-agent-boshrelease


text:
flow test should deploy smart contracts defined in flow.json

Instructions
Issue To Be Solved
Currently we need to explicitly deploy a smart contract in the cadence unit or integration tests, e.g.:
import "FLIXRegistry"
...
...
access(all)
fun setup() {
    let flixRegistryErr = Test.deployContract(
        name: "FLIXRegistry",
        path: "../contracts/flix_registry.cdc",
        arguments: []
    )
...

In the above example FLIXRegistry cannot be referenced in the code before it was deployed with Test.deployContract, even if it is imported on the the top, and defined in the flow.json as follows:
{
  "contracts": {
    "FLIXRegistry": {
      "source": "cadence/contracts/flix_registry.cdc",
      "aliases": {
        "emulator": "0xf8d6e0586b0a20c7",
        "testing": "0x0000000000000007"
      }
    },
...

(Optional): Suggest A Solution
It could increase developer experience if smart contracts defined in the flow.json are readily available in the unit tests, so the developers only have to import those as dependencies.
Also it could keep the unit tests code more concise and clean.
(Optional): Context

@wfalcon0x do they need to be deployed? It seems like you'd want to keep control of deployment in your tests for state. Would the issue be solved for you if the import syntax worked correctly in tests?

repo: onflow/flow-cli


text:
Update args json

Closes: #53

For contributor use:

[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Code follows the standards mentioned here.
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.56%. Comparing base (428634e) to head (2164a0e).
Report is 60 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   82.88%   85.56%   +2.67%
==========================================
  Files          18       19       +1
  Lines         818      859      +41
==========================================
+ Hits          678      735      +57
+ Misses        140      124      -16

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter sisyphusSmiling

repo: onflow/flow-evm-bridge


text:
Documentation: Update Accessing Emulator Document

##Context
We need to update the current Emulator to provide additional context about what Emulator is as well as associated warning and risk of being on Emulator
##Definition of Done
Migrate existing Emulator document updated with the following:
-[] Explain what Emulator is exactly
-[] possible state changes and sporks
-[] Encouraged use for testing
-[] Disclaimers and warnings about network
##PR Review
Who is your Code Partner - @10thfloor
Who can provide external eyes - @robmyers @timmymmit @joshuahannan @turbolent @10thfloor

@psiemens started?

@10thfloor Just starting now actually!

authors: 10thfloor psiemens timmymmit

repo: onflow/flow


text:
Syntax highlighting bug

Including this long regex in a ts file breaks syntax highlighting on edit
const emailRegex = /^((([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))((:(?!$))|(?=$))?){1,2}$/;

https://user-images.githubusercontent.com/8558836/109807536-51ecb180-7c26-11eb-967b-35a7b1025e3d.mov
This one does as well
const hostNameRegex = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/;

There is an issue with HTML as well:

 <svg
          class="h-6 w-6"
          fill="currentColor"
          viewBox="64 64 896 896"
          focusable="false"
          aria-hidden="true"
        >
          <title>Youtube</title>
          <path
            d="M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 00-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0082.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z"
          />
        </svg>

Does it have to do with column width? both examples go over the limit

Thanks for logging the issue and including the video, @haikyuu !
It's interesting that in the first case, the syntax highlighting looks correct, and then what should be inconsequential edits for syntax highlighting are corrupting it. I wonder if this is another manifestation of #2777
The HTML issue looks like we're not handling the SVG tag correctly - I thought it might be related to #2998 , but it looks like the bundled html grammar handles SVG as well

authors: bryphe haikyuu


text:
Failure codes for run_main_graph

Currently, we have no way to recover from an error in run_main_graph.
So when an application calls run_main_graph, the call either succeeds or it abort the program. That may not be the most friendly behavior.
The function run_main_graph returns an OMTensorList, so it is not easy to add an int return code. However, we can easily repurpose some data inside the OMTensorList to hold an error code. For example, the _owning is declared as an int64_t but really need only 1 bit. So one could easily hide in the data structure an error code. We could then add a new call 'OMfailure(OMTensorList *list)` which returns the error code associated with the list. We can also add an "internal" function that sets the error code.
Does that sounds reasonable? This feature would not break backward compatibility, except for the fact that with this new approach, failures would no longer results in asserts.
Initially, we could have an error for "zdnn mismatch"; midterms we could also have errors for failure to malloc, for example, or input mismatch.

In the C world for a function that returns a pointer, the common way for error reporting is to return NULL and set the thread-local global errno.

Idea is that run_main_graph would return NULL (normally the address of the output tensor list) as well as set the thread-private errno. Here are possible uses of existing errno return values (posix). Several may fit the type of errors that we may want to return. The value that seems to fit best is indicated with a star.
There are discussion if returning ERRNO is appropriate or if a custom variable with custom values is more appropriate or not.
https://stackoverflow.com/questions/11699596/how-to-set-errno-value
run out of memory:
ENOBUFS  No buffer space available (POSIX.1 (XSI STREAMS option)).

ENOMEM Not enough space/cannot allocate memory (POSIX.1-2001).

libzdnn incompatible (typically mean that the compile version and the hardware version of the zdnn/NNPA are not compatible)
ELIBACC  Cannot access a needed shared library.
ENODEV No such device (POSIX.1-2001).
ENOTSUP  Operation not supported (POSIX.1-2001).

EPERM  Operation not permitted (POSIX.1-2001).

input parameter mismatch between compiled model and runtime provided parameter list
E2BIG  Argument list too long (POSIX.1-2001).

EDOM   Mathematics argument out of domain of function (POSIX.1   C99).

I asked for feedback on applicability to zos. How about Window @sstamenova ?

z/OS errno.h defined errors can be found in https://www-40.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R5sc147314/$file/bpxbd00_v2r5.pdf
Windows errno.h defined errors can be found in https://docs.microsoft.com/en-us/cpp/c-runtime-library/errno-constants?view=msvc-170

first version in https://github.com/onnx/onnx-mlir/pull/1428 which was just merged with master. Follow up will clean up the C++/Pyhton interface and document the feature.

repo: onnx/onnx-mlir


text:
colorConsoleSync not showing colors in VSCode

Issue: My logs are not colored in VSCod. Instead, they show up with strings describing the colors:
output:

code:

const defaultConfig = {
  severity: 'debug',
  transport: colorConsoleSync,
  // transport: customTransport,
  transportOptions: null,
  levels: {
    debug: 0,
    info: 1,
    warn: 2,
    error: 3,
  },
};

const _logger = logger.createLogger(defaultConfig);

I also get the same output when using consoleSync

i've just added ansiColorConsoleSync transport for this purpose, try it.

@alessandro-bottamedi I updated to react-native-logs@2.2.1 but still have the colors being logged out as string instead of being colored. Here's my logger config code and a sample of the logs in VSCode. Any ideas of what to try?
import { logger } from 'react-native-logs';
import { ansiColorConsoleSync } from 'react-native-logs/dist/transports/colorConsoleSync';

const defaultConfig = {
  severity: 'debug',
  transport: ansiColorConsoleSync,
  transportOptions: {
    hideDate: true,
    dateFormat: 'iso',
    hideLevel: true,
    loggerName: 'hitcher',
  },
  levels: {
    debug: 0,
    info: 1,
    warn: 2,
    error: 3,
  },
};

const _logger = logger.createLogger(defaultConfig);

VSCode Terminal output

To clarify, my logs still end in color: dodgerblue;font-weight:bold which is added by this module.

change the second Line to
import { ansiColorConsoleSync } from 'react-native-logs/dist/transports/ansiColorConsoleSync';

Ahh great catch! Thank you so much for your help @alessandro-bottamedi! 🤷♂🎵

authors: alessandro-bottamedi objectiveSee

repo: onubo/react-native-logs


text:
Get Sender Number

How do i retrieve the sender number that sent the message? (The one that scanned the qr code)

I will consider this to be added on the latest version. Instead of returning minimal success message, it will also return the message metadata.

The send message route now will return the message metadata in the latest version

repo: ookamiiixd/baileys-api


text:
Unable to get working ->fillOnCreate or ->fillOnUpdate

Hello
I don't know what I'm doing wroing but I'm unable to get working ->fillOnCreate or ->fillOnUpdate
May some method in my resource interfere with these methods?
BTW Great plugin! You save me lot of work. Thank you
Regards

I'm glad my package has been valuable to you, thanks for the support and kind words!
As for the methods,  I will go through and test this out and try to determine if it's an issue on our end over the weekend. I will have some time then to catch up with some of the issues for this package. I'll update you then!

Any news ?

@scramatte, sorry for the long delay. I have been busier than I'd like to be recently and haven't had time for side projects lately.
But I have tested and checked whats going on here. This is what I found. I wasn't able to duplicate the issue for fillOnUpdate() (seems to be working fine for me on the latest version), though I was able to find that there was a typo when checking for the current form state specifically for fillOnCreate(). I have fixed that and have released a fix for that on v1.8.1

authors: btrsco scramatte

repo: oooholdings/nova-password-generator


text:
Not working anymore

"Historical Data" has not been returning any results since Monday
Exception Message "Yahoo Finance Authentication Error"

It appears the previous ability to get a CSV style text response has been removed by Yahoo.
This URL previously worked:
https://query2.finance.yahoo.com/v7/finance/download/MSFT?period1=1640995200&period2=1672531200&interval=1d&events=history
But now it returns:
{"finance":{"result":null,"error":{"code":"unauthorized","description":"User is not logged in"}}}
If you adjust it to:
https://query2.finance.yahoo.com/v8/finance/chart/MSFT?period1=1640995200&period2=1672531200&interval=1d&events=history
It returns JSON that needs to be parsed to get the prices in a CSV style format you expect.

I will be doing an update to this library soon that should address these
new changes that Yahoo has made. This URL info is very handy so please let
me know if you have any other examples
On Tue, Sep 17, 2024, 9:56 PM David Clayton @.***>
wrote:

It appears the previous ability to get a CSV style text response has been
removed by Yahoo.
This URL previously worked:
https://query2.finance.yahoo.com/v7/finance/download/MSFT?period1=1640995200&period2=1672531200&interval=1d&events=history
But now it returns:
{"finance":{"result":null,"error":{"code":"unauthorized","description":"User
is not logged in"}}}
If you adjust it to:
https://query2.finance.yahoo.com/v8/finance/chart/MSFT?period1=1640995200&period2=1672531200&interval=1d&events=history
It returns JSON that needs to be parsed to get the prices in a CSV style
format you expect.
—
Reply to this email directly, view it on GitHub
https://github.com/ooples/OoplesFinance.YahooFinanceAPI/issues/91#issuecomment-2357332737,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXO4ZOD4SGGJWBEEYUCS63ZXDMUZAVCNFSM6AAAAABN6EVRBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJXGMZTENZTG4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I lightly edited some code ChatGPT generated to extract the historical prices and put them in the text CSV format that was previously expected.  I'm going to refactor my code to work directly with the JSON, but this is a quick and dirty helper for code that was expecting the previous CSV format.
public static string ParseJSONPrices(string rawJSON)
{
try
{
// Parse the JSON response
var jsonObject = JObject.Parse(rawJSON);
     // Extract dates
     var timestamps = jsonObject["chart"]["result"][0]["timestamp"]
         .Select(t => DateTimeOffset.FromUnixTimeSeconds(t.Value<long>()).DateTime.ToString("yyyy-MM-dd"))
         .ToList();

     // Extract different price types
     var openPrices = ExtractPrices(jsonObject, "open");
     var highPrices = ExtractPrices(jsonObject, "high");
     var lowPrices = ExtractPrices(jsonObject, "low");
     var closePrices = ExtractPrices(jsonObject, "close");
     var adjustedClosePrices = ExtractPrices(jsonObject, "adjclose");
     var volumes = ExtractPrices(jsonObject, "volume");

     // Build the output string
     var lines = new List<string>();
     // Header line
     lines.Add("Date,Open,High,Low,Close,AdjClose,Volume");

     for (int i = 0; i < timestamps.Count; i++)
     {
         // Create line with date and all prices for that date
         string line = $"{timestamps[i]},{openPrices[i]},{highPrices[i]},{lowPrices[i]},{closePrices[i]},{adjustedClosePrices[i]},{volumes[i]}";
         lines.Add(line);
     }

     // Join all lines into a single string separated by newline characters
     string result = string.Join("\n", lines);

     return result;
 }
 catch
 {
     //ToDo:  Exception handling
     return String.Empty;
 }

}
// Helper method to extract prices by type from JSON
static List<decimal?> ExtractPrices(JObject jsonObject, string priceType)
{
try
{
//All prices except Adjusted Close are in "quote", use "adjclose" for adjusted close
if (priceType == "adjclose")
{
// Extract prices as nullable decimals
return jsonObject["chart"]["result"][0]["indicators"]["adjclose"][0]["adjclose"]
.Select(p => p.Value<decimal?>())
.ToList();
}
else
{
// Extract prices as nullable decimals
return jsonObject["chart"]["result"][0]["indicators"]["quote"][0][priceType]
.Select(p => p.Value<decimal?>())
.ToList();
}
 }
 catch
 {
     // Return an empty list if the price type is not found
     return new List<decimal?>();
 }

}

I will be doing an update to this library soon that should address these new changes that Yahoo has made. This URL info is very handy so please let me know if you have any other examples
…
On Tue, Sep 17, 2024, 9:56 PM David Clayton @.> wrote: It appears the previous ability to get a CSV style text response has been removed by Yahoo. This URL previously worked: https://query2.finance.yahoo.com/v7/finance/download/MSFT?period1=1640995200&period2=1672531200&interval=1d&events=history But now it returns: {"finance":{"result":null,"error":{"code":"unauthorized","description":"User is not logged in"}}} If you adjust it to: https://query2.finance.yahoo.com/v8/finance/chart/MSFT?period1=1640995200&period2=1672531200&interval=1d&events=history It returns JSON that needs to be parsed to get the prices in a CSV style format you expect. — Reply to this email directly, view it on GitHub <#91 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXO4ZOD4SGGJWBEEYUCS63ZXDMUZAVCNFSM6AAAAABN6EVRBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJXGMZTENZTG4 . You are receiving this because you are subscribed to this thread.Message ID: @.>

@ooples thanks for your input on this issue. I'm encountering this as well.... just like everyone else (I'm assuming). Can you provide an estimated timeline for the fix?

@davidclayton just curious how did you figure this out? Are there docs the indicate how to fetch this data from yahoo? If so can you share them?

Thanks @davidclayton and @ooples
`public class StockPriceFetcher
{
private static readonly HttpClient client = new HttpClient();
public StockPriceFetcher()
{
    client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3");
}

public static DateTime UnixTimeStampToDateTime(long unixTimeStamp)
{
    DateTimeOffset dateTimeOffset = DateTimeOffset.FromUnixTimeSeconds(unixTimeStamp);
    return dateTimeOffset.DateTime;
}

public static long DateTimeToUnixTimeStamp(DateTime dateTime)
{
    DateTimeOffset dateTimeOffset = new DateTimeOffset(dateTime);
    return dateTimeOffset.ToUnixTimeSeconds();
}

public async Task<List<StockPriceItem>> FetchStockPrices(DateTime startDate, DateTime endDate, string stockName)
{
    long period1 = DateTimeToUnixTimeStamp(startDate);
    long period2 = DateTimeToUnixTimeStamp(endDate);

    string url = $"https://query2.finance.yahoo.com/v8/finance/chart/{stockName}?period1={period1}&period2={period2}&interval=1d&events=history";

    List<StockPriceItem> stockPrices = new List<StockPriceItem>();

    try
    {
        string response = await client.GetStringAsync(url);

        JObject json = JObject.Parse(response);

        var timestamp = json["chart"]["result"][0]["timestamp"];
        var indicators = json["chart"]["result"][0]["indicators"]["quote"][0];
        var adjClose = json["chart"]["result"][0]["indicators"]["adjclose"][0]["adjclose"];

        for (int i = 0; i < timestamp.Count(); i++)
        {
            DateTime date = UnixTimeStampToDateTime((long)timestamp[i]);
            double? open = indicators["open"][i]?.ToObject<double?>();
            double? high = indicators["high"][i]?.ToObject<double?>();
            double? low = indicators["low"][i]?.ToObject<double?>();
            double? close = indicators["close"][i]?.ToObject<double?>();
            double? adjCloseVal = adjClose[i]?.ToObject<double?>();
            long? volume = indicators["volume"][i]?.ToObject<long?>();

            if (open.HasValue && high.HasValue && low.HasValue && close.HasValue && adjCloseVal.HasValue && volume.HasValue)
            {
                StockPriceItem stockPrice = new StockPriceItem
                {
                    Symbol = stockName,
                    Date = date,
                    Open = open.Value,
                    High = high.Value,
                    Low = low.Value,
                    Close = close.Value,
                    AdjClose = adjCloseVal.Value,
                    Volume = volume.Value
                };

                stockPrices.Add(stockPrice);
            }
        }
    }
    catch (HttpRequestException ex)
    {
        MessageBox.Show($"Error fetching data: {ex.Message}");
    }

    return stockPrices;
}

}`
public class StockPriceItem {     public string Symbol { get; set; }            public DateTime Date { get; set; }            public double Open { get; set; }              public double High { get; set; }              public double Low { get; set; }               public double Close { get; set; }             public double AdjClose { get; set; }          public double Volume { get; set; }        }
`private async void btn_fill_list_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(txtB_stocks.Text))
{
MessageBox.Show("Empty stock name");
return;
}
StockPriceFetcher fetcher = new StockPriceFetcher();
DateTime startDate = date_Start.Value;
DateTime endDate = date_end.Value;

try
{
    List<StockPriceItem> stockPrices = await fetcher.FetchStockPrices(startDate, endDate, txtB_stocks.Text);

    // DataGridView'e listeyi bağlama
    dgw_stockPriceList.DataSource = stockPrices;
}
catch (Exception ex)
{
    MessageBox.Show(ex.ToString());
}

}`

@davidclayton just curious how did you figure this out? Are there docs that indicate how to fetch this data from yahoo? If so can you share them?

I googled the error I was getting, found this redit thread, and then started experimenting with the URL, I too am looking for some kind of official documentation or statement
https://www.reddit.com/r/sheets/comments/1farvxr/broken_yahoo_finance_url/?rdt=46309

@Codepoet77 @davidclayton @RkNxSR I have a new version 1.6.5 that fixes the issues with the 4 csv methods: GetCapitalGainsAsync(), GetStockSplitDataAsync(), GetHistoricalDataAsync(), and GetDividendDataAsync()
If you guys can please help test and let me know if you run into any issues

I can confirm GetHistoricalDataAsync() is working as expected

Great to hear the new version is working for everyone. I will go ahead and close this ticket then

@ooples thank you for your great work. Most of quote work good but some of quote like "BUMI.JK" which volume would  overflow. I believe the volume type should change to long instead of integer.
chart.result[0].indicators.quote[0].volume[10]

Can you do me a favor and send me the method you are using? I thought I changed all volumes to long but clearly I missed something
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Oscar Iong @.>
Sent: Saturday, October 5, 2024 9:49:45 PM
To: ooples/OoplesFinance.YahooFinanceAPI @.>
Cc: Franklin Moormann @.>; Mention @.>
Subject: Re: [ooples/OoplesFinance.YahooFinanceAPI] Not working anymore (Issue #91)
@oopleshttps://github.com/ooples thank you for your great work. Most of quote work good but some of quote like "BUMI.JK" which volume would overflow. I believe the volume type should change to long instead of integer.
chart.result[0].indicators.quote[0].volume[10]
—
Reply to this email directly, view it on GitHubhttps://github.com/ooples/OoplesFinance.YahooFinanceAPI/issues/91#issuecomment-2395255487, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXO4ZPNBXV3DDSNXSSXUFDZ2CJLTAVCNFSM6AAAAABN6EVRBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGI2TKNBYG4.
You are receiving this because you were mentioned.Message ID: @.***>

@ooples , Here is the same code.
var historicalDataList = await yahooClient.GetHistoricalDataAsync("BUMI.JK", DataFrequency.Daily, startDate, null, true);

Please check out version 1.6.3 and confirm that this version fixes your issue

Works good to me


text:
build(deps): update monaco editor

PR Checklist

[ ] Unit Tests have been added for new changes
[ ] API tests have been updated if applicable
[ ] All commented code has been removed
[ ] If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Anything the reviewer should know when reviewing this PR?
If the there are associated PRs in other repositories, please link them here (i.e. open-amt-cloud-toolkit/repo#365 )

:tada: This PR is included in version 3.13.1 :tada:
The release is available on:

GitHub release
v3.13.1

Your semantic-release bot :package::rocket:

authors: RosieAMT rsdmike

repo: open-amt-cloud-toolkit/sample-web-ui


text:
Facility vector tile layer infrastructure

Overview
Set up an API endpoint for returning unfiltered, unaggregated facility vector tiles and a feature flagged map component to display them.
Describe the solution you'd like

Add Leaflet.VectorGrid  / react-leaflet-vectorgrid as dependencies.
Create a React map component that is swapped in when a Waffle switch is enabled

Create a data migration that adds a vector_tile_map django-waffle switch
Create a React map component that just shows the Google basemap.
Conditionally load the component when the Waffle switch is on.

Create a /tile/{layer}/{z}/{x}/{y}/ endpoint

Return 400 if layer is something other than facilities.
Convert z/x/y to a bounding box
Build a Facility values queryset that uses the bounding box as a filter and selects just the ID column.
Get the query from the queryset, wrap it with ST_AsMVT and run the query via a cursor
Return the result with a content-type of application/vnd.mapbox-vector-tile

Add a VectorGrid layer to the feature flagged map component and load the facility vector tile layer.

Additional Context
The goal is to get the simplest possible, end-to-end vector tile implementation in place. We will create additional issues to implement filtering and zoom-level-based aggregation.

We should consider using https://www.npmjs.com/package/react-leaflet-vectorgrid for the vector grid. If for some reason we don't want to use that library, we should try to subclass React-Leaflet's TileLayer for use with the vector grid.

I added a reference to react-leaflet-vectorgrid to the issue description.

Cool. It also occurred to me that we may also want to wrap whatever new React component is made for the vector tile layer in a thing that has access to the Redux store -- so that it can directly access the store to see what query params have been applied & just use those in its tile requests urls.

#730 has an implementation of the React stuff, along with a feature flag set up for vector_tile
I scheduled some time to pair tomorrow on the API endpoint.

We should consider adding https://github.com/mapbox/mercantile to handle transforming the x/y/z values into a bbox.

I pushed a commit to #730 which adds mercantile along with a basic /tile endpoint to the API.
This blog post has an example of using mercantile.bounds with ST_AsMVT that might be helpful:
https://www.zimmi.cz/posts/2017/serving-mapbox-vector-tiles-with-postgis-nginx-and-python-backend/

authors: jwalgran kellyi


text:
update openstreetmap parks

Added names to OSM parks that I could find names for and regenerated the osm parks file.
Also separated the geojson version and the version that is prefixed with var osmParks =, since we might want to do stuff with the geojson and prefixed version won't parse in most contexts (like opening in QGIS or ArcGIS).

Thanks for keeping it tidy :tophat:

authors: mateoclarke wilsaj

license: unlicense


text:
[Feature] Looking for markdown Blockquotes support

blackquote is will be very useful markdown syntax as "reminders" in our document. e.g.

NOTE: ....

WARNING: ...

but currently our website doesnt support the syntax, i presume it's due to the limitations from hugo framework?

/close
This feature request is done after migrated to docsy.


text:
Doc: Polish the arch overview doc

Signed-off-by: yue9944882 291271447@qq.com

@dockerymick could you please help take a look as well when you have some cycles? Thanks.

/approve
/lgtm


text:
update golang.org/x/text to v0.3.5

https://github.com/open-cluster-management/backlog/issues/9812

/lgtm


text:
Engine: CDK Pipeline / CodePipeline

We would like to be able to support the generation of a CDK Pipeline / CodePipeline for the existing Applications within projen

Idea: Generate a Construct that will be used by the Application itself that includes the CodePipeline and deploys it automatically

repo: open-constructs/projen-pipelines


text:
Add zero.is-local.org

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.

Description

Link to Website

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request

authors: OD-BOT mrijoo

repo: open-domains/register


text:
Dear my friends, I have some questions about your electronics part.

Excuse me, could you tell me what the software you have used to design your Micro Driver Electronics (pcb), looking forward to your replay. thank you very much.

Hi,
Our latest project use kicad, you'll find it here: https://github.com/open-dynamic-robot-initiative/power-board/tree/main/hardware

Hi,
Our latest project use kicad, you'll find it here: https://github.com/open-dynamic-robot-initiative/power-board/tree/main/hardware
Thank you very much, I will try it.

hi，please sign up your github account，i have some quessions about your project.Sorry to bother you.
---- Replied Message ----
| From | Guilhem @.> |
| Date | 07/10/2023 23:19 |
| To | open-dynamic-robot-initiative/open_robot_actuator_hardware @.> |
| Cc | wangyear @.>,
Author @.> |
| Subject | Re: [open-dynamic-robot-initiative/open_robot_actuator_hardware] Dear my friends, I have some questions about your electronics part. (Issue #56) |
Hi,
Our latest project use kicad, you'll find it here: https://github.com/open-dynamic-robot-initiative/power-board/tree/main/hardware
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


text:
Match exactly against cfgstring

Two bug fixes:

When searching for a suitable handler in find_handler ensure that handler->subtype and the config string match exactly. The previous code would erroneously match config strings which were a prefix match of handler->subtype. For example, the config string "foo" would erroneously match against the subtype "foobar".
This is slightly more paranoid. Ensure that when matching the config string against the expected prefix ("tcm-user") the strings match exactly. The previous code would erroneously match the config string "tcm-userXXX" against "tcm-user".

Wondering if someone is able to take a look at this PR please?

And also for this could you fix the commit comments as in https://github.com/open-iscsi/tcmu-runner/pull/693 ?
Thanks,

Comments addressed and commit comment fixed.

authors: geordieintheshellcode lxbsz

repo: open-iscsi/tcmu-runner