[r] add r-dependency-check.yml nightly test of current release package

#751. Following #763, add an analogous nightly workflow for R to install the current release version of cellxgene.census then run the unit tests, to verify compatibility with the most up-to-date dependency versions.
The approach is simpler than #763 because R source packages include the unit test code, so we can just run them from the installed package directory.

@bkmartinjr @pablo-gar Just pending removal of the pull_request: trigger here.

@mlin - any update on landing this?

@bkmartinjr I'd finished this diff at virtually the same hour that TileDB-R 0.21.0 was released, i.e. I went to merge it only to find it failing CI due to the precise problem it's designed to detect 💯
So I thought it would be nice to see it passing again before merging, but I don't feel too strongly either way.

bump

Resuming testing of this with tiledbsoma 1.5.0


Rearranging navigation bar (#151)

This PR makes changes to index.html to modify the navigation bar as requested by @mfldavidson. In general, it makes the search bar more prominent while simplifying the other tabs and options. Some additional details on the changes are provided below. The PR aims to resolve issue #151.

I changed the link for the Student Explorer logo to direct to the "About" page, which will serve as a quasi-landing page for the time being. Note that the root route (/) route directs the current user to their "My Students" tab, or the All Advisors page if the advisor does not have a record in the DM_MNTR table. We will be addressing this behavior as part of a separate issue.

In order to make the search bar more prominent, I moved the form element up and modified an existing class to be navbar-left, resulting in the field appearing directly to the right of the Student Explorer logo.

As requested, the "Advisors" link was moved to the drop-down menu above "Manage". Both "Advisors" and "Manage" links are only visible to superusers. The advisors/ route and advisor-specific routes (e.g. advisor/ssciolla) are still accessible directly for authenticated users. I also added some conditional handling so that both the "Advisors" and "Manage" links are highlighted in the drop-down menu when the user is on those pages.

The remaining links in the navigation bar ("My Students", "About", and "Resources & Support") were all moved to the right by grouping them with the drop-down menu in a ul with thenavbar-right class.

I added an if template block to the presentation of a user's name in the drop-down menu so that it is only included when the user has a first_name and last_name in the database. This prevents some unneeded white space when the user does not have one of those values (which is the case for "admin").

The url declarations used for active link highlighting on the bar were grouped together at the beginning of the content nested under the parent nav element. White space was also removed from some elements to improve the file's overall readability.

Here's a slightly out of date one Sam sent me the other day. Not My Students is moved over to the right. I saw it on Sam's computer.

Here's a photo of what I have now:


Copy on Write AssetPaths

Objective
The AssetServer and AssetProcessor do a lot of AssetPath cloning (across many threads). To store the path on the handle, to store paths in dependency lists, to pass an owned path to the offloaded thread, to pass a path to the LoadContext, etc , etc. Cloning multiple string allocations multiple times like this will add up. It is worth optimizing this.
Referenced in #9714
Solution
Added a new CowArc<T> type to bevy_util, which behaves a lot like Cow<T>, but the Owned variant is an Arc<T>. Use this in place of Cow<str> and Cow<Path> on AssetPath.

Changelog

AssetPath now internally uses CowArc, making clone operations much cheaper

Migration Guide
// Old
AssetPath::new("logo.png", None);

// New
AssetPath::new("logo.png");

// Old
AssetPath::new("scene.gltf", Some("Mesh0");

// New
AssetPath::new("scene.gltf").with_label("Mesh0");

Reasonable enough, but it is a shame we don't have benchmarks or even stress tests for asset processing currently.

We have a pseudo stress test in the form of running the asset processor on everything in the assets folder. This is as simple as turning on AssetPlugin::processed_dev() in any example and running it. It will log the total duration. To repeat, just delete the imported_assets folder and run again.
I ran that about 10 times for both main and this pr before submitting it and the change here was dwarfed by very swingey results (my guess is filesystem i/o). We might need something a bit more targeted to isolate the perf difference.

However given that Arc<str> is essentially a referenced counted String, imo this really does come down to the cost of reallocating a string on clone vs incrementing an atomic index (which should definitely be a win in this case).

Yep, agreed with your instincts here. Thanks for testing that; I'll spin out an issue.

Something else interesting we could consider: add a CowArc::Static(&'static str) variant and change From<&'a str> to From<&'static>.
This would do two things:

It would remove the need to produce owned / Arc-ed strings for static strings. Clones of these types become "just" a &'static str pointer copy, and we retain this context transparently as things like AssetPath::into_owned are called.
It would force non-static &str to go through a different constructor (ex: manually call the AssetPath constructor for asset_server.load(AssetPath::new(some_non_static_str)). HOWWWEVER, we would still have From<&'a String>, which means asset_server.load(&some_string)  would still work. This would only apply to explicit &str types, which are even less common.

The theory being that a very high percentage of paths defined in user code are static strs. AssetLoaders basically never use static strs, but every case the built in Bevy AssetLoader code uses &String, so no changes were necessary.
But it would come at the cost of nasty ergonomics / confusing apis for borrowed strs.
It would also make CowArc much more opinionated. But this would likely save a lot of work on average and so far the UX hit seems pretty much non-existent.
I had to change zero Bevy examples or AssetLoader impls after the change.

I just pushed the change to illustrate. We can revert if y'all don't like it.


How to sample many answers?

How can I sample many times? Is there an attribute called samples {{gen 'answer' samples=3 temperature=0.7 max_tokens=500}}? HUgging Face models use num_return_sequences, which seems to work in guidance transformers.
I want to be able to use it like this:
output = program(inputs=inputs)

for i in output['answer']
    print(i)

You can use n=3 instead of sample=3.
See In[18] in https://github.com/microsoft/guidance/blob/main/notebooks/tutorial.ipynb

Thanks. I am facing some errors with n>5. Will document and share. BTW, what happens if there are two gen fields and we use n=5 in both. Do we obtain 25 solutions for the second one. I think it is glitchy in that aspect.


Missing Maven Repositories + Other Issues [Fresh Installation]

I'm currently trying to set up the RuneLite source to be able to start making my own plugins, but I'm getting multiple errors after following the set up guide.
I have pre-installed Java and Git before installing IntelliJ. After cloning RuneLite, when the IDE opens and begins installing everything in the project, I have an error "Cannot resolve plugin net.runelite:script-assembler-plugin:1.6.25-SNAPSHOT".
I've set the project SDK, but inside libraries, I'm missing every Maven "sources.jar" and "javadoc.jar" files. Below I will provide a couple screenshots, also the error in the class file occurs on any file opened. I'm assuming because of the missing repositories.
https://i.imgur.com/2oiXmrN.png
https://i.imgur.com/omkMeIB.png
I'm familiar with codex and I've worked in IntellJ for a couple years with AS3. Would appreciate any insight or help, thanks.

You need to build maven again. For future reference, our #development channel in Discord is a better place to ask these kinds of questions.


Adjust the front-end build process

We have a new Google Analytics id for staging that can be added into our .env file during the prepare_deploy script. As well, there are improvements that can be made to how we validate locale strings.
AC:

[x] In pathways-frontend prepare_deploy script - add the staging google analytics id to .env
[x] In the expo build script include the flag --no-publish * this AC was completed as part of a different issue
[ ] Improve validation of messages.js files generated

Manual QA:

[ ] Builds for both iOS and Android are created without error when running a staging and production builds

QA:

Failure: Script does not complain if --serverVersion is not given on the command line. Ensure that all required command line switches are included in the command line validation step.

QA: Passed, now complains when the server version is not given


document basic concepts

RFC @zeisss @JosephSalisbury @Nesurion
What do you think? What to add? Do we want to have examples?

Current coverage is 60.84%

Merging #52 into master will not affect coverage as of 6e26c05

Powered by Codecov. Updated on successful CI builds.

Cool! Can we add an assumptions.md file which lists our assumptions? We don't need to make text out of it yet, just that it's there.

@zeisss maybe you reply to my comment. I was asking what this assumptions are or what this is about. See https://github.com/giantswarm/formica/pull/52#discussion-diff-54929779 and others.

LGTM

I am not sure the instance term discussion led to a sufficient conclusion. You stated something fishy in the documentation I wrote. Then we discussed and couldn't find a consensus. Then you decided there is something that is called instance, but what that means remains unclear. Unclear in my mental model. Unclear in the docs of this PR.

I am not sure the instance term discussion led to a sufficient conclusion

Agreed, but that shouldn't block us from getting this out.

Then you decided there is something that is called instance

I stated what WE all have discussed before in the in the brainstorming sessions, how I understood it. I didn't want to give the impression I decided something.
Lets make an issue for the unclear definition of instance and discuss it together. Either in the issue or in person next week via a hangout or sthg.

See https://github.com/giantswarm/inago/issues/60


Support SENZING_ENGINE_CONFIGURATION_JSON

Support SENZING_ENGINE_CONFIGURATION_JSON

@SamMacy please use the same code as G2Loader and the other tools you have already done.


The landing page mvp

Hey @ombulabs/hackers!
This PR adds an article about the landing page MVP.
Basically what I wish entrepreneurs with an idea would do before working with us. :smiley:
Please check it out.
Thanks!

I'll fix the typo, update the date and will then merge to master.

@mauro-oto Just fixed that typo.

Thanks! 🍻


search: Fixed autocomplete for "from"

Added autocomplete for the from operator in search.
Used the existing canonicalize_operator method which was used elsewhere for the sender/from aliasing.
var canonical_operators = {from: "sender", subject: "topic"};

Filter.canonicalize_operator = function (operator) {
    operator = operator.toLowerCase();
    if (canonical_operators.hasOwnProperty(operator)) {
        return canonical_operators[operator];
    }
    return operator;
};

Fixes #2932

Automated message from Dropbox CLA bot
@sampritipanda, it looks like you've already signed the Dropbox CLA. Thanks!

@sampritipanda, looks good and works. I have noticed that there is a small difference between 'sender' and 'from' behavior. 'from' includes the email of the logged in user by default, whereas 'sender' doesn't; you need to press space bar once to make the 'sender' filter show the email of the logged in user. Is this the expected behavior?

To add the "Sent by me" suggestion, I need to add another entry for the from operator here: https://github.com/sampritipanda/zulip/blob/05efdfd1c139b38bd27422dd37cd7032f4807a8d/static/js/search_suggestion.js#L352
However, adding it here results in duplicate "Sent by me" suggestions for a blank search. I couldn't think of a easy way to fix this, so I decided to skip that for the from operator.
Any thoughts @timabbott ?

It looks like there are some PEP8 errors to fix.
TIm and others had basically signed off on the first commit here.  I looked at the second commit, and I think that's a clean way to do it, and @sampritipanda added some unit tests there as well.
So once the PEP8 errors get fixed, I think we should merge this after one final round of quick manual testing.

@sampritipanda I tested it manually and the autocomplete works great!
One thing I've noticed is the inconsistency in the filter name:

When you type from: and move using arrows to one of the autocomplete options, the search box filter changes to sender:, e.g<EMAIL_ADDRESS>After choosing one of the autocomplete options, the filter name in search box is still sender:.

This is inconsistent with other filters' behavior, although the autocomplete works flawlessly and narrows to the right messages.

I did a round of manual testing, and this looks great!  Merged, thanks @sampritipanda!!


Issue 5: Adding support for force shutdown

Overview
Applying changes described in #5. This includes a new diagnostic command that can capture the following information:

JVM performance counters: Series of stats on the JVM (a lot of simple facts of the run-time at a low cost of acquiring)
JVM thread dump: Helpful to identify non-daemon threads and JVM information about each thread with their native thread ID.
Native thread logs: Helpful to correlate CPU utilization to native threads (which are tied to in the JVM thread dump with the native thread ID).
JVM GC class histogram (helpful if JVM seems hung, and identified GC threads are utilizing high CPU, to then evaluate the amount of objects / types being created)

Changed init.d script to leverage the stop option with force once it is unable to stop the process. By having the CATALINA_PID defined, the catalina.sh script will capture a thread dump and include it in stdout (catalina.out) when it attempts but is unable on the first stop it.
Test
I updated the serverspec tests to test just the existing applications, but did my own test to build a bad web application that creates a non-daemon thread to hang the JVM up on shutdown. Here is the example log (which ultimately shuts down the process):
[vagrant@default-centos-67 ~]$ sudo service tomcat_my_tomcat stop
Using CATALINA_BASE:   /opt/my_dir/my_tomcat
Using CATALINA_HOME:   /opt/my_dir/my_tomcat
Using CATALINA_TMPDIR: /opt/my_dir/my_tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0
Using CLASSPATH:       /opt/my_dir/my_tomcat/bin/bootstrap.jar:/opt/my_dir/my_tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/my_dir/my_tomcat/bin/catalina.pid
Tomcat did not stop in time. PID file was not removed. To aid diagnostics a thread dump has been written to standard out.
Capturing diagnostics and then forcing shutdown...
Capturing JVM metrics of my_tomcat (10633):
Capturing native thread state...
Capturing JVM performance metrics...
Capturing JVM thread dump...
Capturing JVM class histogram...
Compressing contents...
Diagnostic information included in: /tmp/kitchen/cache/my_tomcat.GFwZ9M/my_tomcat_default-centos-67_10633_201612272146.tar.gz
Using CATALINA_BASE:   /opt/my_dir/my_tomcat
Using CATALINA_HOME:   /opt/my_dir/my_tomcat
Using CATALINA_TMPDIR: /opt/my_dir/my_tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0
Using CLASSPATH:       /opt/my_dir/my_tomcat/bin/bootstrap.jar:/opt/my_dir/my_tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/my_dir/my_tomcat/bin/catalina.pid
Dec 27, 2016 9:46:48 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Could not contact localhost:8002. Tomcat may not be running.
Dec 27, 2016 9:46:48 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at java.net.Socket.connect(Socket.java:538)
	at java.net.Socket.<init>(Socket.java:434)
	at java.net.Socket.<init>(Socket.java:211)
	at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:450)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487)

The stop command failed. Attempting to signal the process to stop through OS signal.
Tomcat stopped.

If you want to check out what some of the diagnostic files look like, here is a gist that captures this test.
Here is the kitchen test evidence

+1: It looks like the sleep was also removed and a timeout is now passed during the first shut down attempt.  I'm hoping that speeds up the restart (and our chef-client runs).

+1

Can you add a little section to the README about the diagnostic bundle

Can you add a little section to the README about the diagnostic bundle

Yes, will add that.

Added Troubleshooting section to the README: 31a37b1
Let me know if you think there is a better location for this content.

+1 thanks!

Are there other reviewers we want pulled in to move this forward?

@EdwardSkoviak mind taking a look at this?

Looks good to me, +1

Looks good, merging


Configure debugger shows duplicate Node entries

I created an app using create-react-app and then went to Run menu to start debugging.  Because there was no launch/task files it asked me to configure the debugger...I was then presented with this:

Duplicate Node.js entries or at least duplicate appearing to me.  Neither worked by the way.

I do not see this locally. What extensions do you have installed?

  I disabled nightly, but have no idea how I got nightly?  I'm not running insiders.


MySQL's TIME value should be mapped to String instead of Date

This PR tries to resolve #39.
I don't have any idea about how to test MYSQL_TYPE_TIME2 value, so any help/suggestion is appreciated!

I did not research and verify all the data type conversions, so thank you for your modification

@manyuanrong Thanks for the review!


Documentation for Selene

Codecov Report

Merging #109 into master will increase coverage by 2.2%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master     #109     +/-   ##
=========================================
+ Coverage   58.11%   60.32%   +2.2%
=========================================
  Files          25       25
  Lines        1170     1167      -3
  Branches       98       97      -1
=========================================
+ Hits          680      704     +24
+ Misses        465      439     -26
+ Partials       25       24      -1

Impacted Files
Coverage Δ

selene/abctypes/conditions.py
100% <ø> (+14.28%)
:white_check_mark:

selene/common/delegation.py
100% <100%> (+8.69%)
:white_check_mark:

selene/conditions.py
56.34% <0%> (+2.53%)
:white_check_mark:

selene/support/conditions/have.py
77.41% <0%> (+22.58%)
:white_check_mark:

selene/bys.py
100% <0%> (+44.44%)
:white_check_mark:

Continue to review full report at Codecov.

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


Licence file does not match documentation

The current licence file states the project is: GNU Affero General Public License v3.0. In the documentation you mention Apache 2.0

Thanks for pointing that out. I'll update it right away.


Portainer Agent for Windows Server 2016

Hello!
I'm having trouble running Portainer on Windows Server 2016 windows/amd64 10.0.14393. I haven't found any image of the portainer/agent in the Docker Hub that I can use. Can someone help me on how to proceed? Can I create a new image to run in this environment?

Hello @vitoreuzebio-mcd!
Unfortunately, we have stopped supporting Windows Server 2016 1607 nanoserver container images as Microsoft stopped their maintenance. Also, as this version does not support Docker bind mount (npipe), it won't be a good experience for you since you will have to expose the agent with host mode with dnsrr.
Any chance you can go with Windows Server 2019 1809 above?


Helm chart migration

With the upcoming retirement of the Helm stable and incubator repos, is there any plan to move the incubator/aws-alb-ingress-controller to this repo, similar to what was done with ingress-nginx? So far I have not seen any mention of this project in the Helm tracking issues for the migration.

Hi @OmriHarary
We plan to host the controller in our centralized https://github.com/aws/eks-charts.
There will be a new major release and renaming coming. we will rename aws-alb-ingress-controller to be aws-load-balancer-controller, which will adds support for NLB-Service(with ip targeting) and service-apis in the near future.

@M00nF1sh Thank you, I had not seen mention of this anywhere but maybe I wasn't looking in the right places. I am closing this issue.


Memory read-under-write

Two parts to my question:

Should read-under-write really be built into DefMemory vs. a separate annotation? It probably makes sense to keep it as part of DefMemory (since, theoretically, it should be defined), although it really is an annotation.

There's no Chisel -> Firrtl support for it, correct? I assume that should go along with the Chisel3 issue #264 regarding the need for annotation API.

The particular use-case:
Proper BRAM inference depends on matching the registering scheme with the functionality desired (read before write when data out, as opposed to address, is registered). For a read-before-write, an "FPGA memory" Firrtl pass needs to relocate the address register to the data output register (even though the FPGA IP core internally moves the register back).
A lot of other use cases for FPGAs:
http://www.xilinx.com/support/documentation/sw_manuals/xilinx12_2/xst_v6s6.pdf (pg 186)

Re 1): Yes it must built into DefMemory because if we are writing an interpreter defining the behavior of DefMemory, it is incomplete without defining this behavior.
Re 2): Not to my knowledge.

On 25 Aug, 2016, at 21:15, Angie Wang<EMAIL_ADDRESS>wrote:
Two parts to my question:

Should read-under-write really be built into DefMemory vs. a separate annotation? It probably makes sense to keep it as part of DefMemory (since, theoretically, it should be defined), although it really is an annotation.

There's no Chisel -> Firrtl support for it, correct? I assume that should go along with the Chisel3 issue #264 regarding the need for annotation API.

The particular use-case:
As I've stated before in some Chisel2 related issue, BRAMs are generally only properly inferred on FPGAs if you register the data output (as opposed to the read address). An "FPGA memory" Firrtl pass needs to relocate the address register to the data output register (even though the FPGA IP core internally moves the register back), but the read-under-write behavior needs to be consistent when such a pass does this.

My experience is the other way round: the address inputs (read and write) and the write data need to be in registers. Data out may be combinational.
In FPGA memories often read during write is undefined. A synthesize tool might add forwarding from a memory definition. At least I have seen this of VHDL described memories and Quartus. However, I prefer to be on the save side and add the forwarding myself.
The endless memory topic ;-)
Cheers,
Martin

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/ucb-bar/firrtl/issues/251, or mute the thread https://github.com/notifications/unsubscribe-auth/AAntmOuR8yY9X2yTJSHblpb69vPV3bhpks5qjenJgaJpZM4JtaA_.

One of the options (the default option, I'd say) should be that the read returns undefined data, to cater to ASIC RAMs, for which all of the well-defined options require extra circuitry and delay.

I agree that this should be the default option. It is also quite common in FPGAs. However, I would not know how this can be specified in Verilog (or VHDL).
Cheers,
Martin

On 30 Aug, 2016, at 0:02, Andrew Waterman<EMAIL_ADDRESS>wrote:
One of the options (the default option, I'd say) should be that the read returns undefined data, to cater to ASIC RAMs, for which all of the well-defined options require extra circuitry and delay.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/ucb-bar/firrtl/issues/251#issuecomment-243271566, or mute the thread https://github.com/notifications/unsubscribe-auth/AAntmBmop0050pQY8uN_fns830enqAsQks5qk1cIgaJpZM4JtaA_.


Release 18.6.3

Upgrade dependencies

Includes the following PRs:

#343
#344
#346

Closing this as those changes will go in a larger release which will include Ruby upgrade.


Adjusting 404 page

This PR is an attempt to resolve issue #150
@mattstratton - Would love to get your feedback on this one. It's definitely still a WIP, but I wanted to make it a little more exciting than just a "sorry we couldn't find the page", and an opportunity to show some of the latest/upcoming content while the user is there. I'm definitely not known for my design skills, so your input is appreciated :)

I think this is a good start! Probably needs some slight styling tweaks, but also I'm not a designer either, but I'll take a swing later. This is a good improvement!

The core concept here is pretty good! It needs some styling still...

The core concept here is pretty good! It needs some styling still...


Prebuild with Kali 2019

SCTP Reconnect {127,0,0,1}:2905
SCTP Error {sctp_assoc_change,cant_assoc,0,0,0,0}, reconnecting
./ss7MAPer console
What is wrong here ?
Thank you.
Best Regards

Hi,
nothing is wrong, the tool is trying to connect to a M3UA service at <IP_ADDRESS>:2905/sctp, but there is no such service running.
best
/daniel

Thank you for quick response. What if we want to connect to outside networks? I mean where is the config file to change the options?

Hi,
you can find the config file in you ss7MAPer root folder. It is called 'config'.
best

Hi, where can i find the epacp/rebar.config ???
thanks for your help in advance
best


Missing Favicon for Mobile, Tab, and Website

I have identified that our project is currently lacking a favicon, which is an essential design element. I kindly request the implementation of a favicon for mobile, tab, and website to enhance the overall user experience. Your attention to this matter is greatly appreciated. Thank you.

I have identified that our project is currently lacking a favicon, which is an essential design element. I kindly request the implementation of a favicon for mobile, tab, and website to enhance the overall user experience. Your attention to this matter is greatly appreciated. Thank you.

I assigned to you. Thanks!

Soved on #7


Are http/localhost urls blocked in Android? Can I unblock them?

Discussed in https://github.com/tauri-apps/tauri/discussions/10428
I'm looking to get audio/video working on my page in an android app.
According to https://github.com/tauri-apps/tauri/issues/3725 it appears I need to use a web server to host the files, because of a bug in webkit. I added a web server to my app, and it does work - on linux.
On android the files don't load. I enabled logging on my web server and it seems its never getting the requests. I can adb shell and use curl to access the files just fine, and then I see those accesses in my logs.
From my android app, I can embed links to media files over https.  But it doesn't work with an http url.
So my question is, is there some kind of policy on android that blocks an url like this?
http://localhost:8000/file/75d69666-b189-475e-9d8d-827d45ed3838
If so, how can I deactivate that policy?
reproduction:
See the readme
Then make a markdown document that points to an http media file, like
<audio src="http://www.zknotes.com/file/fce8c414-a4ed-4af1-915e-2fe0f657f346" text="uses http"/>

<audio src="https://www.zknotes.com/file/fce8c414-a4ed-4af1-915e-2fe0f657f346" text="uses https"/>

Observe that the https one works while the http one does not.
expected behavior:
Expected that access to urls should be the same on linux and on android, with the same tauri.conf.json
Full tauri info output
WARNING: no lock files found, defaulting to npm

[✔] Environment
    - OS: Debian 12.0.0 X64
    ✔ webkit2gtk-4.1: 2.44.2
    ✔ rsvg2: 2.54.7
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)

[-] Packages
    - tauri [RUST]: 2.0.0-beta.24
    - tauri-build [RUST]: 2.0.0-beta.19
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-beta.22
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-beta.22

[-] App
    - build-type: bundle
    - CSP: image-src *; media-src *
    - frontendDist: static
    - devUrl: http://<IP_ADDRESS>:8080/

On linux, remote https, remote http, and localhost http all work for video and audio:

On android, only remote https works for either video or audio ("remote https" is off the page in this view"):

Hi,
You need to add some capabilities to your application. For example like this: https://gitlab.com/loikki/menugenerator/-/blob/master/capabilities/main.json?ref_type=heads

I tried adding that item to capabilities/main.json, but I got this error:

long list of permissions

  Permission http:default not found,
 expected one of app:default,
 app:allow-app-hide,
 app:allow-app-show,
 app:allow-default-window-icon,
 app:allow-name,
 app:allow-tauri-version,
 app:allow-version,
 app:deny-app-hide,
 app:deny-app-show,
 app:deny-default-window-icon,
 app:deny-name,
 app:deny-tauri-version,
 app:deny-version,
 event:default,
 event:allow-emit,
 event:allow-emit-to,
 event:allow-listen,
 event:allow-unlisten,
 event:deny-emit,
 event:deny-emit-to,
 event:deny-listen,
 event:deny-unlisten,
 image:default,
 image:allow-from-bytes,
 image:allow-from-path,
 image:allow-new,
 image:allow-rgba,
 image:allow-size,
 image:deny-from-bytes,
 image:deny-from-path,
 image:deny-new,
 image:deny-rgba,
 image:deny-size,
 menu:default,
 menu:allow-append,
 menu:allow-create-default,
 menu:allow-get,
 menu:allow-insert,
 menu:allow-is-checked,
 menu:allow-is-enabled,
 menu:allow-items,
 menu:allow-new,
 menu:allow-popup,
 menu:allow-prepend,
 menu:allow-remove,
 menu:allow-remove-at,
 menu:allow-set-accelerator,
 menu:allow-set-as-app-menu,
 menu:allow-set-as-help-menu-for-nsapp,
 menu:allow-set-as-window-menu,
 menu:allow-set-as-windows-menu-for-nsapp,
 menu:allow-set-checked,
 menu:allow-set-enabled,
 menu:allow-set-icon,
 menu:allow-set-text,
 menu:allow-text,
 menu:deny-append,
 menu:deny-create-default,
 menu:deny-get,
 menu:deny-insert,
 menu:deny-is-checked,
 menu:deny-is-enabled,
 menu:deny-items,
 menu:deny-new,
 menu:deny-popup,
 menu:deny-prepend,
 menu:deny-remove,
 menu:deny-remove-at,
 menu:deny-set-accelerator,
 menu:deny-set-as-app-menu,
 menu:deny-set-as-help-menu-for-nsapp,
 menu:deny-set-as-window-menu,
 menu:deny-set-as-windows-menu-for-nsapp,
 menu:deny-set-checked,
 menu:deny-set-enabled,
 menu:deny-set-icon,
 menu:deny-set-text,
 menu:deny-text,
 path:default,
 path:allow-basename,
 path:allow-dirname,
 path:allow-extname,
 path:allow-is-absolute,
 path:allow-join,
 path:allow-normalize,
 path:allow-resolve,
 path:allow-resolve-directory,
 path:deny-basename,
 path:deny-dirname,
 path:deny-extname,
 path:deny-is-absolute,
 path:deny-join,
 path:deny-normalize,
 path:deny-resolve,
 path:deny-resolve-directory,
 resources:default,
 resources:allow-close,
 resources:deny-close,
 tray:default,
 tray:allow-get-by-id,
 tray:allow-new,
 tray:allow-remove-by-id,
 tray:allow-set-icon,
 tray:allow-set-icon-as-template,
 tray:allow-set-menu,
 tray:allow-set-show-menu-on-left-click,
 tray:allow-set-temp-dir-path,
 tray:allow-set-title,
 tray:allow-set-tooltip,
 tray:allow-set-visible,
 tray:deny-get-by-id,
 tray:deny-new,
 tray:deny-remove-by-id,
 tray:deny-set-icon,
 tray:deny-set-icon-as-template,
 tray:deny-set-menu,
 tray:deny-set-show-menu-on-left-click,
 tray:deny-set-temp-dir-path,
 tray:deny-set-title,
 tray:deny-set-tooltip,
 tray:deny-set-visible,
 webview:default,
 webview:allow-create-webview,
 webview:allow-create-webview-window,
 webview:allow-internal-toggle-devtools,
 webview:allow-print,
 webview:allow-reparent,
 webview:allow-set-webview-focus,
 webview:allow-set-webview-position,
 webview:allow-set-webview-size,
 webview:allow-set-webview-zoom,
 webview:allow-webview-close,
 webview:allow-webview-position,
 webview:allow-webview-size,
 webview:deny-create-webview,
 webview:deny-create-webview-window,
 webview:deny-internal-toggle-devtools,
 webview:deny-print,
 webview:deny-reparent,
 webview:deny-set-webview-focus,
 webview:deny-set-webview-position,
 webview:deny-set-webview-size,
 webview:deny-set-webview-zoom,
 webview:deny-webview-close,
 webview:deny-webview-position,
 webview:deny-webview-size,
 window:default,
 window:allow-available-monitors,
 window:allow-center,
 window:allow-close,
 window:allow-create,
 window:allow-current-monitor,
 window:allow-cursor-position,
 window:allow-destroy,
 window:allow-hide,
 window:allow-inner-position,
 window:allow-inner-size,
 window:allow-internal-toggle-maximize,
 window:allow-is-closable,
 window:allow-is-decorated,
 window:allow-is-focused,
 window:allow-is-fullscreen,
 window:allow-is-maximizable,
 window:allow-is-maximized,
 window:allow-is-minimizable,
 window:allow-is-minimized,
 window:allow-is-resizable,
 window:allow-is-visible,
 window:allow-maximize,
 window:allow-minimize,
 window:allow-monitor-from-point,
 window:allow-outer-position,
 window:allow-outer-size,
 window:allow-primary-monitor,
 window:allow-request-user-attention,
 window:allow-scale-factor,
 window:allow-set-always-on-bottom,
 window:allow-set-always-on-top,
 window:allow-set-closable,
 window:allow-set-content-protected,
 window:allow-set-cursor-grab,
 window:allow-set-cursor-icon,
 window:allow-set-cursor-position,
 window:allow-set-cursor-visible,
 window:allow-set-decorations,
 window:allow-set-effects,
 window:allow-set-focus,
 window:allow-set-fullscreen,
 window:allow-set-icon,
 window:allow-set-ignore-cursor-events,
 window:allow-set-max-size,
 window:allow-set-maximizable,
 window:allow-set-min-size,
 window:allow-set-minimizable,
 window:allow-set-position,
 window:allow-set-progress-bar,
 window:allow-set-resizable,
 window:allow-set-shadow,
 window:allow-set-size,
 window:allow-set-skip-taskbar,
 window:allow-set-title,
 window:allow-set-title-bar-style,
 window:allow-set-visible-on-all-workspaces,
 window:allow-show,
 window:allow-start-dragging,
 window:allow-start-resize-dragging,
 window:allow-theme,
 window:allow-title,
 window:allow-toggle-maximize,
 window:allow-unmaximize,
 window:allow-unminimize,
 window:deny-available-monitors,
 window:deny-center,
 window:deny-close,
 window:deny-create,
 window:deny-current-monitor,
 window:deny-cursor-position,
 window:deny-destroy,
 window:deny-hide,
 window:deny-inner-position,
 window:deny-inner-size,
 window:deny-internal-toggle-maximize,
 window:deny-is-closable,
 window:deny-is-decorated,
 window:deny-is-focused,
 window:deny-is-fullscreen,
 window:deny-is-maximizable,
 window:deny-is-maximized,
 window:deny-is-minimizable,
 window:deny-is-minimized,
 window:deny-is-resizable,
 window:deny-is-visible,
 window:deny-maximize,
 window:deny-minimize,
 window:deny-monitor-from-point,
 window:deny-outer-position,
 window:deny-outer-size,
 window:deny-primary-monitor,
 window:deny-request-user-attention,
 window:deny-scale-factor,
 window:deny-set-always-on-bottom,
 window:deny-set-always-on-top,
 window:deny-set-closable,
 window:deny-set-content-protected,
 window:deny-set-cursor-grab,
 window:deny-set-cursor-icon,
 window:deny-set-cursor-position,
 window:deny-set-cursor-visible,
 window:deny-set-decorations,
 window:deny-set-effects,
 window:deny-set-focus,
 window:deny-set-fullscreen,
 window:deny-set-icon,
 window:deny-set-ignore-cursor-events,
 window:deny-set-max-size,
 window:deny-set-maximizable,
 window:deny-set-min-size,
 window:deny-set-minimizable,
 window:deny-set-position,
 window:deny-set-progress-bar,
 window:deny-set-resizable,
 window:deny-set-shadow,
 window:deny-set-size,
 window:deny-set-skip-taskbar,
 window:deny-set-title,
 window:deny-set-title-bar-style,
 window:deny-set-visible-on-all-workspaces,
 window:deny-show,
 window:deny-start-dragging,
 window:deny-start-resize-dragging,
 window:deny-theme,
 window:deny-title,
 window:deny-toggle-maximize,
 window:deny-unmaximize,
 window:deny-unminimize

I am using the plugin tauri-plugin-http. I think it is from there https://github.com/tauri-apps/tauri-plugin-http

I saw that plugin and thought it just gave you some extra JS apis, but wouldn't expect it to affect the webview http.  Why would it work on desktop without a plugin but require it for android?  But hey at this point I'll try anything lol.

I try to use  convertFileSrc method to play local video, but it not work, is there anyway to play local video resource on android platform?

I still haven't gotten a chance to try the tauri-plugin-http.  Will report back here with the result.

I meet the same issue. I can get the resource using tauri android build --debug and also tauri android dev but not tauri android build.
I tried tauri-plugin-http with capabilities, but it still doesn't work.

@lucasfernog Hi! Do you have any idea about this?

Hi! I just solved this issue. http is blocked by android 9+.

I gave that a try, but kept getting errors that the file could not be found!  I put it here:
./src-tauri/gen/android/app/src/main/res/xml/network_security_config.xml
And tried a number of other locations to no avail.
But the good news is I instead found, and changed this line in AndroidManifest.xml:
        android:usesCleartextTraffic="${usesCleartextTraffic}"
to this:
        android:usesCleartextTraffic="true"
And now I'm able to see locally-served videos and audio files in the browser.  At long last!  I wonder if `usesCleartextTraffic' is something that is set someplace else, that's under source control, rather than in generated code?


Enable unit tests written for Elvis and mod operators in jBallerina

Purpose
Enable unit tests related to the elvis and modulus operators.
Check List

[X] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #15245 into master will increase coverage by 10.96%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #15245       +/-   ##
=============================================
+ Coverage     46.26%   57.23%   +10.96%
+ Complexity     5011     3134     -1877
=============================================
  Files           889      277      -612
  Lines         33552    17023    -16529
  Branches       5308     3114     -2194
=============================================
- Hits          15523     9743     -5780
+ Misses        16320     6025    -10295
+ Partials       1709     1255      -454

Impacted Files
Coverage Δ
Complexity Δ

.../org/ballerinalang/stdlib/time/util/TimeUtils.java

tool-plugins/vscode/src/test-runner/runner.ts

...llerinalang/net/http/nativeimpl/session/GetId.java

...va/org/ballerinalang/net/grpc/OutboundMessage.java

...rg/ballerinalang/mime/nativeimpl/SetBodyParts.java

...inalang/net/grpc/nativeimpl/headers/RemoveAll.java

.../net/http/compiler/WebSocketResourceValidator.java

.../ballerinalang/mime/nativeimpl/GetByteChannel.java

...ng/net/grpc/nativeimpl/client/BlockingExecute.java

...grpc/nativeimpl/clientendpoint/InitGlobalPool.java

... and 602 more

Continue to review full report at Codecov.

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


Offline + localstorage + geolocation finishing touches + error handling

In this pull request the finishing touches are added for offline support of the app (disable wifi / internet on your mobile or non-mobile device and attempt to refresh, you will see the last list of locations.
In addition, a variety of states are added to cover transitive UI states for a variety of scenarios, including the following:

Online + Geolocation allowed
Online + Geolocation disallowed (shows Taos, NM as map starting point)
Online + Loading (uses loading animation + text)
Offline

Here are some animate GIF demos of these various scenarios:
Initial load, grant location access

Initial load, deny location access

Begin online / loaded, then disable internet connection and reload

Initially deny, then later grant geolocation to the app

After a brief fight with Gatsby build ⚔ we're off to the races 🏇


[UI refactor] Remove all alert functions and set no-alert rule

This PR removes all the alerts functions in OSS. Also adds no-alert rule so that we won't be able to add alerts in the future.
Description
Before:

After:

Checklist

[x] I have added screenshots above for all UI changes.
[ ] I have added e2e tests for all UI changes.
[ ] Documentation was updated if it was needed.

Codecov Report

Merging #1518 (7b00668) into main (9342c46) will decrease coverage by 6.18%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1518      +/-   ##
==========================================
- Coverage   89.91%   83.73%   -6.19%
==========================================
  Files          90       22      -68
  Lines        3848      418    -3430
==========================================
- Hits         3460      350    -3110
+ Misses        388       68     -320

Flag
Coverage Δ

unittests
83.73% <ø> (-6.19%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

erroranalysis/erroranalysis/analyzer/__init__.py

...ranalysis/erroranalysis/analyzer/error_analyzer.py

...bleai/responsibleai/_tools/causal/causal_config.py

...ai/responsibleai/_tools/counterfactual/__init__.py

responsibleai/responsibleai/_internal/__init__.py

...s/erroranalysis/_internal/error_report/__init__.py

...ibleai/_tools/shared/state_directory_management.py

...ai/responsibleai/_tools/causal/causal_constants.py

...ibleai/_tools/causal/dashboard_schemas/__init__.py

erroranalysis/erroranalysis/report/__init__.py

... and 58 more

Continue to review full report at Codecov.

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


Remove backend from backends array, when it goes out of ETCD

During our high-frequency change scenario (we use vulcand programmatically),
we discovered a weird edge condition on backends still living in the backends
array and thus causing old servers to be hit.
The crux of the problem was this:

PUT /backends/b1/servers/s1
PUT /frontends/f1/frontend {backendId: b1}
DELETE /frontends/f1
DELETE /backends/b1
PUT /backends/b1/servers/s2
PUT /frontnends/f1/frontned {backendId: b1}

Now if we hit frontend f1, we mysteriously saw hits to server s1.
Upon deeper investigation I found that in the mux.go:DeleteBackend function,
the backend was never really REMOVED from the m.backends map.
This meant that when upsertBackend is called, m.backends[bk] retrieves
the old backend, which is "updated" with the new backend, instead
of a completely new backend being created.
This left over some servers in the backend (either becuase etcd failed
to publish events or something went wrong.) Either way, if a frontend DID
hold a reference, from an outside observer, merging of a new etcd backend
with an old one makes little sense. AKA

PUT /backends/b1/servers/s1
PUT /frontends/f1/frontend {backendId: b1}
DELETE /backends/b1
PUT /backends/b1/servers/s2
PUT /frontneds/f2/frontend {backendId: b1}

While I totally admit this scenario is illegal, I DO believe
that frontend f2 should get the backend that exists in etcd at the time
the frontend was created. It cannot be expected to have memory of what
other users may or may not have done in the past. Basically, if I had
a worker process, it should be able to delete everything
and reset it from scratch to get the state it needs.
By explicitly removing that backend from the m.backends map, it means
if a frontend f2 is added without FIRST having added a backend, a proper
error will be raised, and if a backend did exist, THAT is the latest
backend it would hold a reference to.
A note about the DeferClose:

It is a simple form of reference-counting. When the backend is deleted,
we tell it that it no longer is referenced.
When the last frontend that references it is unlinked, it will simply
close its idle connections.

the fix looks good to me, and thanks for the detailed explanation. I will spend some more time thinking about DeferClose before merging it in though.
The situation when the backend is being deleted while being referenced should lead to this piece of code to be executed:
https://github.com/mailgun/vulcand/blob/master/proxy/mux.go#L412
But in absense of transactions, I can see a race that can happen, when user will call:
* Delete frontend
* Delete backend

But we may see:
Delete backend (fails)
Delete frontend (succeeds)

This will lead to backend that stays forever and is not being deleted, but not to the scenario that you mentioned though. Can you elaborate a bit more on the case when DeferClose can occur?
Have you seen it in practice?

Perhaps the DeferClose isn't needed. when I read that function, I assumed that this line MUST execute before a backend is let lose: https://github.com/mailgun/vulcand/blob/master/proxy/mux.go#L416
And when a fronted still references the backend, the line you posted, returns from the function. I wasn't sure if NOT calling http.transport.CloseIdleConnections() would end up with a memory leak, so I added a deferClose, which tells the backend it is no longer referenced. So it uses the number of frontends as a reference-counter, and when the counter hits zero, it calls b.Close() on itself.
If the backend is sure to be cleaned up correctly, then we don't need the DeferClose thingy. Let me know.

Also, what's with the broken build? I'm glad to help out to fix it in any way I can.

There you go - the change is a one-liner and very simple. If you could pull it in soon, we can repoint our code to the mailgun/vulcand repo.

thanks!


update reva

Description
get latest edge reva into oCIS

can we run full-ci please?
to be sure that all tests pass.

can we run full-ci please? to be sure that all tests pass.

Thanks for the reminder. I forgot that.


Updated Player SDK version to 1.6.0;

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

LGTM - thanks for the PR. Will merge and close.


Program type already present: com.RNFetchBlob.RNFetchBlob$3

RNFetchBlob works perfectly with my IOS version but I am not able to work with Android version.
When I try to run for android :
react-native run-android
Error says =>
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/62, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/externalLibsDexMerger/debug/0, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/46.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/47.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/48.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/49.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/50.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/53.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/54.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/55.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/56.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/57.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/58.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/59.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/60.jar, /Volumes/King/_REACT_NATIVE/Good_Vibes/android/app/build/intermediates/transforms/dexBuilder/debug/61.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.RNFetchBlob.RNFetchBlob$3

Any idea?
I couldn't figure how to fix duplicate classes issue with this library.

Same issue :/ did you fix it ?

@DguillonStark I probably changed my way how I installed that fetch blob.
But I can't remember now.

I unistall it, and follow the manual linking on android, now it's work 👍


Update Post “continuous-improvement-and-innovation-staying-ahead-in-profitable-saas-companies”

Automatically generated by Netlify CMS

👷 Deploy Preview for effortless-brioche-210b80 processing.

Name
Link

🔨 Latest commit
bd16b28d1c8cad93f67568b05d2a6e03cb13365b

🔍 Latest deploy log
https://app.netlify.com/sites/effortless-brioche-210b80/deploys/63fa7d21fc68a9000868a1d4


use module notation

in the README the scripts of week2 should be with python src/week02/scripts/build.py which produces for me the following error:
python3 src/week02/scripts/send.py
Traceback (most recent call last):
  File "/Users/chrissi/Desktop/repos/cardano/opshin-pioneer-program/src/week02/scripts/send.py", line 8, in <module>
    from src.utils import get_address, get_signing_info, network, ogmios_url
ModuleNotFoundError: No module named 'src'

method notion safer thatn relying on the IDE to set PYTHONPATH to the repository root

Hi @chrissiwaffler, are you installing dependencies yourself? If you are using poetry then the src module will be installed automatically when you use poetry install. Alternatively if you didn't install poetry, you can use pip install -e . to do the same. I recommend installing the module this way as you can then run scripts from any directory. Maybe you can add the pip method in this PR.
Also, I'm willing to rename the src module to something else, but preferably a single word recommended in PEP-8 as opposed to opshin_pioneer_program. CC: @nielstron

No good point!
I didn't use poetry previously.
Using poetry install && poetry run python src/week02/scripts/build.py works now for me!
Thanks for clarifying that! 🙌


Generate internal cask json v3

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

This is a sister PR to https://github.com/Homebrew/brew/pull/16460. It start generating the internal_cask_v3.json file in the brew generate-cask-api file.
I didn't add any tests because they'll be easier to add later on when working on the cask loading code in the near future. The main thing here is that this doesn't break the brew generate-cask-api command which is easy to test.
I took the same approach as the other PR to cache the variations generation so the runtime of this command should be similar to what it was before.
The file size difference is significant but the old file wasn't as large as with formulae. It reduces the size from around 6MB to 4MB.
Related to: https://github.com/Homebrew/brew/issues/16410

Moving back to draft since the discussion in https://github.com/Homebrew/brew/pull/16460 is relevant for this PR and could result in changes to naming among other things.

Closing because the approach in the formula PR changed significantly which means this will need to be reworked.


Poco/URI.h: No such file or directory

I ran git clone --recursive https://github.com/litehtml/litebrowser-linux.git to clone this repository. I then ran cmake ./, and finally make.
On running make, around the 90% mark, I'm getting this error:
[ 87%] Building C object litehtml/CMakeFiles/litehtml.dir/src/gumbo/vector.c.o
Linking CXX static library liblitehtml.a
[ 87%] Built target litehtml
[ 88%] Generating src/master.css.inc
Scanning dependencies of target litebrowser
[ 90%] Building CXX object CMakeFiles/litebrowser.dir/src/main.cpp.o
In file included from /home/ekansh/Downloads/litebrowser-linux/src/main.cpp:1:0:
/home/ekansh/Downloads/litebrowser-linux/src/globals.h:26:22: fatal error: Poco/URI.h: No such file or directory
#include <Poco/URI.h>
^
compilation terminated.
make[2]: *** [CMakeFiles/litebrowser.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/litebrowser.dir/all] Error 2
make: *** [all] Error 2
How should I proceed to fix this issue?

litebrowser for Linux is required POCO C++ Libraries

Thanks a lot!

Please, add POCO checking  to CMakeLists.txt.

Please add POCO to the list of dependencies / edit CMakeLists.txt. I ran into the same issue.
For those wondering, I installed poco on M1 Mac with brew install poco, the added the following to CMakeLists.txt and it compiled successfully:
link_directories("/opt/homebrew/lib") include_directories("/opt/homebrew/include")


How to authenticate using AccessToken to call DevOps API from custom PowerShell task

Environment
azure-pipelines-task-lib version: 4.10.1
Issue Description
Hi,
I want to create a custom PowerShell task to promote packages uploaded to Azure Artifacts automatically during the build pipeline.
I have successfully created a custom task, but I can't find a way to authenticate my request.
I have found a similar issue #579 but for the typescript language.
I build the url using the environment variables, which works:
$url = "$($env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)_apis/packaging/feeds/$feedName/nuget/packages/" + $pkgName + "/versions/" + $pkgVersion + "?api-version=7.0"
I wanted to authenticate using an Authentication HTTP header build manually using $env:SYSTEM_ACCESSTOKEN and using Invoke-RestMethod but it seems the access token is not available in the scope of the custom task.
How am I supposed to call the Azure DevOps server API from inside a PowerShell custom task?
I did not find an existing task doing the same using PowerShell.
There seems to exists a VSTS .NET Library wrapper, but I am not sure I can easily PATCH the package version to publish it to a field, and I can not find how I am supposed to import this library.

Hi @tbolon, thank you for your question! We'll take a look at this soon.

Hi @tbolon
You can access the token in your pipeline yaml like this:
steps:
- task: PowerShell@2
  inputs:
    targetType: 'inline'
    script: |
      # Write your PowerShell commands here.

      Write-Host $(System.AccessToken)

Hi @tbolon! I'll close this issue since it seems to be resolved. If you still have this problem, feel free to re-open.

Hello @aleksandrlevochkin and @DenisNikulin5, sorry for not replying ealrier, I was convinced to have answered your suggestion.
This comment does not work, because you imply that I want to use a powershell script. But in my case I want to create a powershell custom task, and I can't access variables inside my custom script.


Update placement object

The placement object is missing a few fields from the upstream
CloudFormation specification:

Affinity
HostId
Tenancy

This commit adds them to the Placement object
Current Placement object specification: https://github.com/cwgem/troposphere/pull/new/updated_launch_template_properties

Thanks!


feat(factory): use the factory mode

@diasdavid PRs welcome :)

RFM, needs CR

The CI errors are https://github.com/ipfs/js-ipfs-api/issues/339

Thank you for CR @dignifiedquire :) merging


Excluding files in bundled javascript

Bug Report or Feature Request (mark with an x)
- [ ] bug report
- [ X] feature request

Command (mark with an x)
- [ ] new
- [X] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [X ] config
- [ ] help
- [ ] version
- [ ] doc

Versions
Any Angular Cli
Repro steps
Webpack has a nice feature to generate code for dynamic requires, for example: require('@angular/' + lib); would write code and bundle all @angular packages together. The downside of this feature is that it often includes too much at the same time.
There are quite a few node.js libraries that do something like require('./i18n/' + language + '.js') to load the correct i18n. That works nice on a node.js server, but if used with Webpack the bundled output will contain all languages.
As a solution you would need to modify the Webpack configuration to exclude all languages you do not use. However since the Webpack config can not be altered without 'ng eject' there is no way for me to exclude javascript from bundling.
Desired functionality
Being able to exclude files from the bundled files to reduce filesize without having to call ng eject.
Mention any other details that might be useful
Example blog: https://bjacobel.com/2016/12/04/highlight-bundle-size/

Can you provide some examples of packages which exhibit this issue?  moment.js, for instance, properly handles the described scenario without any modification.

I think this is related to https://github.com/SheetJS/js-xlsx/issues/438
I'm interested in being able to exclude some dependencies like cpexcel shown in the above link.

Same here. We're using faker in some sub module that shouldn't end up in the prod build and faker + faker-uuid is taking ~40% of the final bundle :sob:

If the import/require statement is within developer controlled code, then Webpack magic comments (docs) could be used to include/exclude files (among other capabilities).  Alternatively and recommended, only the files needed should be imported without any dynamic expressions.
For third-party code, a custom Angular builder such as ngx-build-plus could be used to adjust the webpack configuration (eject has been removed in favor of custom builders); potentially with the IgnorePlugin. Please note however that Webpack specific functionality is not officially supported by the Angular CLI.
For a non-Webpack specific method, the tsconfig paths option could be leveraged.  Files that should be excluded can be added to the option and mapped to an empty JS file (empty.js for instance).  The tsconfig paths option acts in a similar capacity to the webpack alias option but must map to a file.


README: fetch-mock is a npm module

I got this error trying to install fetch-mock using ember install:
$ ember install fetch-mock
Installed packages for tooling via npm.
Install failed. Could not find addon with name: fetch-mock

This PR changes the README to tell the user to get fetch-mock using npm.

Thank you!


Create Web Team Modal

Description
Create Modal box for Web team
Screenshots/testimonials
I'll update it with an example

How should we approach this? 🤔 @hariom1625 we can have something out of the bot's API.

How should we approach this? 🤔 @hariom1625 we can have something out of the bot's API.
We can use the GitHub API to get the contributors list in the JSON format easily and then parse through all the contributors GitHub URL and names.
This is the API link for hg repo contributors : https://api.github.com/repos/houseofgeeks/hg/contributors

That's great! 🙌🏻  We would be needing a design for this..

@EmperorYP7, Add an issue for the same

@EmperorYP7, Add an issue for the same

For the design?

Yup and mention this issue there for ref


Using container and configure a local directory as volume to read with duckdb

What happens?
Not sure what I am doing wrong, trying to access local filesystem where I have a set of parquet files.
I defined the volume in the container running PostgreSQL:
postgres=# select * from read_parquet('/mnt/data/*.parquet') as data
limit 10;
ERROR:  a column definition list is required for functions returning "record"
LINE 1: select * from read_parquet('/mnt/data/*.parquet')...
                      ^
Time: 0.227 ms

Not sure if relates to issue https://github.com/duckdb/pg_duckdb/issues/105
To Reproduce
Copy a parquet file and make it available to the container in /mnt/data, then run the query
Container created using example from REAME
docker run -d -e POSTGRES_PASSWORD=duckdb pgduckdb/pgduckdb:16-main
select * from read_parquet('/mnt/data/*.parquet') as data
limit 10;

OS:
openSUSE Leap 15.5
pg_duckdb Version:
0.1.0
Postgres Version:
16
Hardware:
No response
Full Name:
Luis Gonzalez Sandoval
Affiliation:
HPE
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include all code required to reproduce the issue?

[X] Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?

[X] Yes, I have

You need to specify a column list for read_parquet. See https://github.com/duckdb/pg_duckdb/blob/main/docs/functions.md#read_parquet

Thank you @wuputah after passing the column list able to query the parquet data. Awesome!

I get the same error from iceberg_scan
https://github.com/duckdb/pg_duckdb/blob/main/docs/functions.md#iceberg_scanpath-text--optional-parameters----setof-record
the example in the docs...

SELECT COUNT(i) FROM iceberg_scan('data/iceberg/table') AS (int i);

...doesn't actually work, it gives error:
mydb=# select count(i) from iceberg_scan('/iceberg/catalog/table/metadata/00693-b272df17-984f-4028-ade1-cb5bef59ef64.metadata.json') as (int i);
ERROR:  type "i" does not exist
LINE 1: ...df17-984f-4028-ade1-cb5bef59ef64.metadata.json') as (int i);
                                                                    ^

I think syntax is wrong, it should be (i int)
(looks like same problem in all the doc examples)


IDVA6-1925: Swapped Testcontainers for Flapdoodle.

Short description outlining key changes/additions
Swapped Testcontainers for Flapdoodle.
JIRA Ticket Number
IDVA6-1925
Type of change

[x] Bug fix
[x] New feature
[x] Breaking change
[x] Infrastructure change

Pull request checklist

[x] I have added unit tests for new code that I have added
[x] I have added/updated functional tests where appropriate
[x] The code follows our coding standards

An exhaustive list of peer review checks can be read here

CI: Security warnings found!


branch protection documents don't talk about conflicts between protection rules

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#about-branch-protection-rules
What part(s) of the article would you like to see updated?
Something should mention that one can't have two branch protection rules that match the same branch, or if one can, it should explain how priority works.
Searching for conflict only shows hits for merge conflict.
Note: it appears impossible to deep link to any of the steps in https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#creating-a-branch-protection-rule which means I can't link to:

Under "Branch name pattern", type the branch name or pattern you want to protect.

Offhand, text should probably be included here warning that one should work to avoid having patterns in branch protection rules that conflict.
Additional information
https://github.com/github/feedback/discussions/12257

@jsoref
Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:

Thanks @jsoref, I believe the answer to your question is here:
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#about-branch-protection-rules

If a repository has multiple protected branch rules that affect the same branches, the rules that include a specific branch name have the highest priority. If there is more than one protected branch rule that references the same specific branch name, then the branch rule created first will have higher priority.

Was there something else you had in mind?

Offhand, text should probably be included here warning that one should work to avoid having patterns in branch protection rules that conflict.

I don't think this is something we would recommend.

Interesting, then why does the UI tell me I have a conflict?
At the very least, that text should have the word conflict so that users hitting the error message can find the documentation.

Great question! I agree that we could address what that "conflict" means in the UI... but I must admit, I don't actually know. Let's see if we get some answers in that feedback issue, so we know what to add.

Madison chambers or Chamberlin POW MIA Afghanistan IRAC,  impersonated by Pamela mceandry, calling themselves Steve and Mary Female identity change to Paris Pichai or Pichilli Apaguasa. Secured identity with "memory" software accounts of DreamWorks high jacked used against her by known criminals and theives.Stalking of female documented with federal restraining order permanent. Paris<PHONE_NUMBER> Sent from my  U.S.Cellular© Smartphone-------- Original message --------From: mc4928184 @.> Date: 2/28/22  15:53  (GMT-05:00) To: @. Subject: FW: Urgent HelpSent from my  U.S.Cellular© Smartphone-------- Original message --------From: mc4928184 @.> Date: 2/28/22  3:51 PM  (GMT-05:00) To: @. Subject: FW: Urgent Data pushesMasked ipPhone info changesAll obsevedSent from my  U.S.Cellular© Smartphone-------- Original message --------From: mc4928184 @.> Date: 2/24/22  12:07 AM  (GMT-05:00) To: @. Subject: Urgent Crime Sent from my  U.S.Cellular© SmartphoneSent from my  U.S.Cellular© Smartphone
-------- Original message --------From: Josh Soref @.> Date: 3/3/22  14:12  (GMT-05:00) To: github/docs @.> Cc: Subscribed @.***> Subject: Re: [github/docs] branch protection documents don't talk about conflicts between protection rules (Issue #15965)
Interesting, then why does the UI tell me I have a conflict?
At the very least, that text should have the word conflict so that users hitting the error message can find the documentation.
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hello Everyone! Do you happen to know me? Just asking. Carol 226 McDougal

@lecoursen not even a nibble

@cmwilson21 can you please find someone who could comment?


Remove path.parse dependency

This removes a dependency on the node path module, making the melody compiler
runnable in the browser.
This will allow us to for example easily test the compiler output in the AST explorer tool.

@efegurkan Good catch! I should've searched the codebase for usages. Currently I got the AST explorer working though, but that's probably only because I pass undefined as the fileName to the compiler.

@jamesb3ll shall we merge this as it is ? LGTM.

Yep, LGTM, we need this for @timdegroote's AST explorer for Melody templates! 😃


Client orders default value error

For
client.orders(symbol='xrpusdt', states='submitted').data

the request params are
{'symbol': 'xrpusdt', 'types': None, 'start_date': None, 'end_date': None, 'states': 'submitted', 'from': None, 'direct': None, 'size': None}
which will raise HuobiRestiApiError: base-argument-unsupported: param None unsupported.
The reason is the default  none value should be '' instead of None.
# huobi/rest/endpoint.py:143
param_value = kwargs.get(
    param_name,
    param_spec.get('default')
    # Should be this
    # param_spec.get('default', '')
)

And I also wish to take this opportunity to explicitly define the rule of the default value and how to make sure that the rule can be executed integrally. And this can be discussed in a new issue.

fixed in 9f445494e5bbe62994b90065f3f5ce5621e7f341
I think it was actually an error on line 186 https://github.com/ericls/huobi/blob/9f445494e5bbe62994b90065f3f5ce5621e7f341/huobi/rest/endpoint.py#L185


Release version 4.0.1

Dependencies
Issues of this new version should be done before resolving this issue.
Checklist

[ ] Upgrade the application's version.
[ ] Add a new version in changelog.
[ ] Release on the Maven Central.
[ ] Update version in readme.
[ ] Create a release on the repository.

This version is empty.


Ctrl+P when Release Notes is open, opens a recently open file

Issue Type: Bug

After an update the "Release Notes: 1.42.0" is opened
While active, press Ctrl + P  "Go to File" keeping the Ctrl pressed for a few seconds, showing the list of recently open files
When release the Ctrl key, automatically opens the recently open file that was selected by default instead of allow us to type any command

VS Code version: Code 1.42.0 (ae08d5460b5a45169385ff3fd44208f431992451, 2020-02-06T10:51:23.649Z)
OS version: Linux x64 4.12.14-lp151.28.36-default

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz (8 x 2800)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: disabled_softwareskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: unavailable_offviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
15.53GB (2.23GB free)

Process Argv
. --no-sandbox

Screen Reader
no

VM
0%

Extensions (25)

Extension
Author (truncated)
Version

language-x86-64-assembly
13x
2.2.11

latex-preview
ajs
0.5.1

alignment
ann
0.3.0

blamer-vs
bea
0.5.2

vscode-eslint
dba
2.0.15

xml
Dot
2.5.0

vscode-svn
eli
0.1.0

vscode-postman
eri
1.0.2

vscode-peacock
joh
3.3.1

svn-scm
joh
2.7.0

chat
kar
0.31.0

perl-debug
mor
0.6.3

hg
mrc
1.3.0

vscode-docker
ms-
0.10.0

mssql
ms-
1.8.0

python
ms-
2020.2.63072

cpptools
ms-
0.26.3

Go
ms-
0.13.0

vsliveshare
ms-
1.0.1587

vsliveshare-audio
ms-
0.1.80

vsliveshare-pack
ms-
0.3.4

java
red
0.55.1

rust
rus
0.7.0

omnipascal
Wos
0.17.3

clang-format
xav
1.9.0

Probably a duplicate of #82670

I can't reproduce. Are you opening the command pallet or the file picker? It's not clear to me what you mean by "open the Command Palette keeping the Ctrl pressed for a few seconds, showing the list of recently open files".

Because a picture is worth a thousand words:
With Release Notes open and do Ctrl+P:

Without Release Notes open and do Ctrl+P:

@MrSparc thanks, I can reproduce now. Seems to only happen on Linux.

If it only reproduces in release notes, I suspect a webview issue with keybindings which https://github.com/microsoft/vscode/issues/82670 is similar.

Just as a +1 on this. For the Python extension we use a number of webviews. If any of our webviews are opened Ctrl+* commands get doubled. Had a few reports on this already:
https://github.com/microsoft/vscode-python/issues/10147
https://github.com/microsoft/vscode-python/issues/10267
I was investigating our code when I realized that I could repro it not just with our stuff, but with the coding cat webview sample.

@IanMatthewHuff are you on Linux too?
@all I assume it's intentionally convenient that if I hold Ctrl down, then press and release P to open the list, each subsequent press-and-release of P moves the list selector down one position. Similarly, Shift+P moves up one position. And when I finally release the Ctrl key it opens whatever item is currently selected.

@gjsjohnmurray not normally, but when our customers reported this I checked it out on Linux. I only see this happen there, not on Mac or Windows.

Duplicate of #88284 I believe. I just checked in a fix but let me know if still see this in the next insiders build

I'm sorry, but this issue still happens in the release March 2020 (v1.44.2):


Request for Assistance with Unimplemented Changes and Token Restoration

Describe the bug
The issue occurs when attempting to make changes using the prompt. Despite entering valid input and following the usual process, the expected modifications are not being applied. The system processes the prompt without error messages but fails to reflect the requested updates.
This behavior persists even after resolving the token limit issue, suggesting that the problem lies specifically in the prompt's functionality or implementation. As a result, tokens are consumed without achieving the desired outcome.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-sxlrzp
Steps to reproduce

Logged in on the platform.
Navigated to the prompt section where modifications are typically made.
Entered a valid prompt detailing the changes I  wanted to implement.
Clicked to apply the changes.
Observed that the system processes the input without displaying any error messages, but the requested modifications are not reflected in the output or system state.
Verified that tokens are consumed for each attempt despite the changes not being implemented.

Expected behavior
When a valid prompt is entered:

The system should process the input and apply the requested modifications correctly.
The changes should be reflected immediately in the output or system state, as specified in the prompt.
Tokens should only be consumed if the modifications are successfully implemented.
If the input is invalid or an error occurs, the system should provide a clear error message or feedback indicating the issue, without consuming tokens unnecessarily

Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 112013426,
  "usedJSHeapSize": 93045954,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = Kagoyire Yvette
Chat ID = 2e65e49fbccb

Additional context
No response

Appreciate the feedback! At times, there are programming challenges that are too complex for the AI to solve and manual intervention is required. Advice on prompting effectively can be found here. This prompt engineering documentation  from Anthropic is helpful as well. The Bolt Help Center in general has information on using Bolt most effectively. Advice on continuing the development of your project can be found here. Refund requests are handled through<EMAIL_ADDRESS>Hope this helps!


Add Chinese language support

I will trust you for the translations as I don't speak/read chinese :)
Thanks for the PR :)

If I find any translation error I will check and fix it.


Help needed in creating shifts

What I'm trying to do is the following:
for all t:
sum(demands[i]
if (start(intervals[t]) <= t < end(intervals[t])) and (t is present)) >= capacity
I have created the following python code, that has some logic faults, so it does not work as expected. Could someone help me figuring out how to do this? The end result should look smth like that at the end:

`times=[0,60,120,240,300,330,360,420,480,540,720,900,960,1110,1200,1290]
needed = [0,4,3,9,9,16,16,8,12,15,20,17,20,12,14,12]
max_time = 240
min_time = 60
i=0
possible_shifs=[]
shifs=[]
for t in range(len(times)):
shift_need = needed[t]
start = model.NewIntVar(t, t, 'start_%i' % (t))
end = model.NewIntVar(t+min, t+max_time, 'end_%i' % (t))
duration = model.NewIntVar(min_time, max_time, 'duration_%i' % (t))
presence = model.NewBoolVar('presence_%i' % (t))
interval = model.NewOptionalIntervalVar(start, duration, end, presence, 'interval_%i' % (t))
capacity = model.NewIntVar(0, 99, 'capacity_%i' % (minute))
model.Add(capacity == 0).OnlyEnforceIf(presence.Not())
model.Add(capacity > 0).OnlyEnforceIf(presence)
shifts.append(s_struct(start=start,end=end,startt=t,presence=presence,interval=interval))
possible_shifs.append(i)

if shift_need > 0:
    capacity_list=[]
    for item in possible_shifs.copy():
        if shifts[item].endd < minute:
            possible_shifs.remove(item)
        else:
            usable_end = model.NewBoolVar('usable_end_%i_%i' % (t,item))
            model.Add(shifts[item].end >= minute).OnlyEnforceIf(usable_end)
            model.Add(shifts[item].end < minute).OnlyEnforceIf(usable_end.Not())
            model.Add(usable_end == shifts[item].presence)

            capacity = model.NewIntVar(0, 99, 'capacity_%i_%i' % (minute,item))
            model.Add(capacity <= shifts[item].capacity).OnlyEnforceIf(usable_end)
            model.Add(capacity == 0).OnlyEnforceIf(usable_end.Not())

            capacity_list.append(capacity)

    model.Add(sum(capacity_list) >=  shift_need)

i += 1`

I have created another version of the script, but still not working, now it's only giving me 13 hour shifts and the acceptable need vs shift capacity ratio is also off. Could anyone help me figure out what i'm doing wrong?
shifts.py.zip

Can you start by explaining the data and the constraints ?

The "times" and "needed" arrays contain the change of workers need in time. Times 0,60,120, needs 0,4 means 0-60 need of workers 0, 60-120 workers 4 etc.
shift_min_duration = 6 hours
shift_max_duration = 13 hours
shift_preferred_duration = 8 hours
shift_max_capacity = 15 workers
Need to create x amount of shifts with y amount of worker capacity and with the other described constraints so that the amount of workers at any point of time would be min(worker_count>=worker_need)
A next version that works a bit better because the durations are fixed, but not good enough.
shifts.py.zip

Why don't you create all possible valid shifts (start - end) and select the
number of each type in the optimization model ?
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le lun. 15 juil. 2019 à 14:16, erma07<EMAIL_ADDRESS>a écrit :

The "times" and "needed" arrays contain the change of workers need in
time. Times 0,60,120, needs 0,4 means 0-60 need of workers 0, 60-120
workers 4 etc.
shift_min_duration = 6 hours
shift_max_duration = 13 hours
shift_preferred_duration = 8 hours
shift_max_capacity = 15 workers
Need to create x amount of shifts with y amount of worker capacity and
with the other described constraints so that the amount of workers at any
point of time would be min(worker_count>=worker_need)
A next version that works a bit better because the durations are fixed,
but not good enough.
shifts.py.zip
https://github.com/google/or-tools/files/3394201/shifts.py.zip
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1418?email_source=notifications&email_token=ACUPL3IWAAXF7TJAC7HQCHDP7TSMFA5CNFSM4IBEAQJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ672YQ#issuecomment-511573346,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUPL3N5PQZTY37EGQI2OX3P7TSMFANCNFSM4IBEAQJA
.

What do you mean by "select the number of each type in the optimization model"? The amount of shifts  len(6-13) is not fixed. I need to find the amount of shifts with the length of 360-780 minutes and preferred length 480 so that at any point of time there would be min(worker_count>=worker_need). In the best scenario it would be worker_count==worker_need.

Create all possible shifts. There aren't that many.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le mar. 16 juil. 2019 à 01:05, erma07<EMAIL_ADDRESS>a écrit :

What do you mean by "select the number of each type in the optimization
model"? The amount of shifts len(6-13) is not fixed. I need to find the
amount of shifts with the length of 360-780 minutes and preferred length
480 so that at any point of time there would be
min(worker_count>=worker_need). In the best scenario it would be
worker_count==worker_need.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1418?email_source=notifications&email_token=ACUPL3KW4P4QA7YFVXXONI3P7V6K5A5CNFSM4IBEAQJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ABRHA#issuecomment-511711388,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUPL3IBRZ245VTOTUWKOYLP7V6K5ANCNFSM4IBEAQJA
.


updates are misreported

if you are running a newer version then reported via tags, you still get an upgrade notice ;-)
eg new version (0.1.7) available, you are running 0.1.8 ...

fixed in master


Example app needs flutter_svg: ^0.18.0

Describe the bug
flutter run fails otherwise.

Fixed in 0.11.0,
Thanks for reporting!


Scripts to generate human readable DCIDs for all statistical variables

Creates human readable DCIDs for all valid statistical variables in the production database.

Note that as of Tuesday, August 4th, only stat_var_renaming.py is ready for review.

Thanks for all the code and style comments @jeffreyoldham . @IanCostello let me know if there are any threads you want me to look at. Once everything is resolved, I will approve this PR.


update

update web3sdk to 2.3.0
update UT
fix bugs scan by sonarlint plugin

Codecov Report

Merging #12 into dev will increase coverage by 3.83%.
The diff coverage is 62.09%.

@@             Coverage Diff              @@
##                dev      #12      +/-   ##
============================================
+ Coverage     80.55%   84.39%   +3.83%
- Complexity       95       96       +1
============================================
  Files            18       17       -1
  Lines           643      628      -15
  Branches         25       31       +6
============================================
+ Hits            518      530      +12
+ Misses          107       76      -31
- Partials         18       22       +4

Impacted Files
Coverage Δ
Complexity Δ

...bank/wecross/stub/bcos/common/BCOSRequestType.java
0.00% <0.00%> (ø)
0.00 <0.00> (?)

...oss/stub/bcos/config/AbstractBCOSConfigParser.java
60.00% <ø> (+10.00%)
4.00 <0.00> (ø)

...ebank/wecross/stub/bcos/config/BCOSStubConfig.java
93.54% <ø> (-1.98%)
10.00 <0.00> (-1.00)

...bank/wecross/stub/bcos/web3j/Web3jWrapperImpl.java
0.00% <0.00%> (-40.63%)
0.00 <0.00> (-4.00)

...ebank/wecross/stub/bcos/BCOSConnectionFactory.java
66.66% <33.33%> (-23.34%)
2.00 <1.00> (ø)

.../com/webank/wecross/stub/bcos/BCOSStubFactory.java
58.33% <33.33%> (+31.06%)
3.00 <1.00> (+1.00)

...m/webank/wecross/stub/bcos/web3j/Web3jUtility.java
74.19% <74.19%> (ø)
2.00 <2.00> (?)

...a/com/webank/wecross/stub/bcos/BCOSConnection.java
92.68% <78.94%> (-2.56%)
19.00 <5.00> (+1.00)
:arrow_down:

.../java/com/webank/wecross/stub/bcos/BCOSDriver.java
89.47% <81.25%> (+3.47%)
17.00 <5.00> (+2.00)

.../wecross/stub/bcos/account/BCOSAccountFactory.java
100.00% <100.00%> (+3.22%)
5.00 <0.00> (ø)

... and 8 more

Continue to review full report at Codecov.

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


Is there a way to set the default effect?

I'm running a standalone pi that boots and runs on it's own. I want it to start up running the spectrum effect default. Any help is much appreciated.

you can change the effects in the visualization.py file in line 251

thx

Is this issue still active? If not please close.

You should comment the line 343  energy_click(0) :-)


[#76] [Chore] Update SourceryPlugin to clear previously-generated codes before generating new one

Close #76

What happened 👀

Add a command to clear previously-generated codes for SourceryPlugin

Insight 📝
SPM plugin works well for stuff we usually done using bash script.
Proof Of Work 📹
The buildlog shows "Clear previously-grnerated data" as part of SourceryPlugin running.

Don't forget to provide proper metadata and Insights for the PR, if there are no insights, you can put N/A into this section, but this should be a very rare case cc @nkhanh44 🙏

Implementation-wise, it LGTM 🚀

@minhnimble Updated all necessary information for the PR.
Sorry, I was in a little hurry, doing this on the GitHub mobile app 🙏

No worries @Thieurom, let me help you with handling the merge and release today 🙏


Feature request: Inline Diffs

This is a feature request, please excuse that I don't use the issue template you provide.
I would like to see a feature similar to Google Docs' edit suggestions:

I.e. besides normal editor and diff editor I would like to have a suggestion editor, where you can't directly change the existing content, but only suggest edits (remove, insert). This is useful for exercise correction (my use case), but maybe also for small GitHub pull requests (either contributors suggesting changes, but also maintainers suggesting changes of a PR).
I know this is almost what the diff editor does, but I found that an automatic diffing algorithm often shows diffs not how I want. And a standard diff editor is line-based, which is not optimal if the diff is only minimal (e.g. only white-space added, single character changed).
I tried to implement this feature myself, but failed miserably. Here's how far I got:

The above only contains the scenarios that work, but there are a lot more that don't work, so I massively burnt my fingers when trying to implement this.
Could you imagine such editor mode to be useful to a broader range of developers or is it just useful for me as a teacher?

Verification steps:

Set "diffEditor.experimental.useTrueInlineView": true,
Set "diffEditor.renderSideBySide": false,
Open a diff where only some words changed
Notice the inline diff view


Add arkime project

Description
Adds Arkime to community projects
Issues Resolved
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Ah this is a problem. I may need to take that template page down until we can find a way to enforce DCO through it. @awick could you run the following to add DCO to the 2 commits. I think it need to be at the top of the commits.

In your local branch, run: git rebase HEAD~2 --signoff
Force push your changes to overwrite the branch: git push --force-with-lease origin add-arkime-project


Server side friends data

Hello,
Great job on this tool. I really like the look at feel of the plugin. In my app, I already use the Koala gem and because I get 'offline_access' I can get the list of friends even if the user is not currently logged in into Facebook. Is there an easy way of replacing the call to Facebook with a json object representation of the id and name of friends?
Thank you,

+1 on merging this in trunk, I also would like to see this.


selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.

I've followed the instructions. Hosthunter works until I try to enable de screen capture and bing options.
I get this error:
Traceback (most recent call last):
File "/home/kali/HostHunter/hosthunter.py", line 467, in
driver = webdriver.Chrome(executable_path=DRIVER, options=chrome_opt)
File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 95, in init
RemoteWebDriver.init(
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 152, in init
self.start_session(capabilities, browser_profile)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 249, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

I have the same problem. I can't find a solution...

someone ??

same here

I've updated the code and also included the chromdrivers.  Please try again.


Fix random RPC tests failing

This PR fixes a few RPC tests which were randomly failing.

Looks like coldstaking_fee.py is failing on this PR

included fix for coldstaking_fee.py

Changes make sense, build passes

one test failed.
stakingaddress.py:
Initializing test directory /tmp/test09ema07u/6
Restart node with staking address option ...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
waiting for a new block...
Assertion failed: 0E-8 != 2
Stopping nodes
Not cleaning up dir /tmp/test09ema07u/6
Failed
stderr:
File "/home/cluster/navcoin-core/qa/rpc-tests/test_framework/test_framework.py", line 149, in main
self.run_test()
File "/home/cluster/navcoin-core/qa/rpc-tests/stakingaddress.py", line 42, in run_test
assert_equal(self.nodes[0].gettransaction(stake_tx)["details"][0]["amount"], 2)
File "/home/cluster/navcoin-core/qa/rpc-tests/test_framework/util.py", line 507, in assert_equal
raise AssertionError("%s != %s"%(str(thing1),str(thing2)))
Pass: False, Duration: 79 s

@chasingkirkjufell i think you are running the tests from other branch. line 42 has been changed in this pr

You are right, that's a little weird though. Testing the correct branch now.


SSH to CA-trusted host

Describe the bug
Pyinfra prompts for SSH host key verification when the host presents a valid certificate trusted by the user.
To Reproduce
$ cat ~/.ssh/known_hosts
@cert-authority server01 ssh-ed25519 <public key>

$ cat ~/.ssh/config
Host server01
    User root
    IdentityFile ~/.ssh/my_key

$ ssh server01
# works

$ pyinfra --debug server01 deploy.py
--> Loading config...
--> Loading inventory...
    [pyinfra_cli.inventory] Creating fake inventory...
    [pyinfra_cli.inventory] Checking possible group_data directory: /Users/user/dir

--> Connecting to hosts...
    [pyinfra.connectors.ssh] Connecting to: server01 ({'allow_agent': True, 'look_for_keys': True, 'hostname': 'server01', '_pyinfra_ssh_forward_agent': None, '_pyinfra_ssh_config_file': None, '_pyinfra_ssh_known_hosts_file': None, '_pyinfra_ssh_strict_host_key_checking': None, '_pyinfra_ssh_paramiko_connect_kwargs': None, 'timeout': 10})
    [pyinfra.connectors.sshuserclient.client] Loading SSH config: None
No host key for server01 found in known_hosts, do you want to continue [y/n]

Expected behavior
Pyinfra should connect without prompting for host key verification.
Meta
Pyinfra v2.2 macOS-12.3.1-arm64-arm-64bit, Python 3.10.5

Unfortunately this is an upstream problem with the SSH library used by pyinfra, Paramiko: https://github.com/paramiko/paramiko/issues/771

Leaving this open as it’s unresolved but relabelled as a dependency issue.

2024 update: still broken in Paramiko but not in the same way.
https://github.com/paramiko/paramiko/issues/2320
The bad news: Paramiko breaks differently. The good news: there's a two line patch in https://github.com/paramiko/paramiko/pull/2434 that fixes this.
https://github.com/paramiko/paramiko/issues/771
Paramiko now warns with an Incorrect padding error, adds an entry for the host key, and also silently removes @cert-authority lines from ~/.ssh/known_hosts.
Anyone using PyInfra will likely have a very bad and confusing day if they're ever bitten by this - please add a warning to the docs.

It looks like it's actually PyInfra removing @cert-authority, I've opened https://github.com/pyinfra-dev/pyinfra/issues/1209.


[Docs]: Headless 'chrome' mode changed

Bug expectation
Hey
As mentioned on this page, I used chrome mode to have extensions in headless mode.
I guess we had a breaking change that it's not documented because the chrome mode is no longer available:
Type '"chrome"' is not assignable to type 'boolean | "new" | undefined'

What's the new mode which is on this page?
Bug behavior

[ ] Flaky
[ ] PDF

Minimal, reproducible example
it's docs issue!

Error string
Type '"chrome"' is not assignable to type 'boolean | "new" | undefined'
Puppeteer configuration
No response
Puppeteer version
19.6.3
Node version
18.14.0
Package manager
pnpm
Package manager version
7.27.0
Operating system
macOS

Sorry to mention but this is an issue in docs.
cc @OrKoN


Logging into Jenkins sometimes takes a lot of time and massive CPU spikes

Sometimes when logging into Jenkins from the OpenShift console portal, it takes a really long time to be redirected back to Jenkins, during which the java process goes to e.g. 250% usage. Some other times, I'm never even redirected, and I have to kill the pod.
jstack -l of the process when stuck: https://gist.github.com/jlebon/fe47831b278f4b5792ff6dd368e92d22
The threads that take up the most CPU time are the four GC ones (at the bottom).
We're using a custom Jenkins image built using S2I: https://github.com/jlebon/projectatomic-ci-infra/tree/master/papr. Reproducer:
$ git clone https://github.com/jlebon/projectatomic-ci-infra
$ cd projectatomic-ci-infra/papr
$ oc new-project papr
$ echo "garbage" > token
$ oc secrets new github-token token=token
$ oc new-app --file papr-jenkins.yaml -p REPO_URL=https://github.com/jlebon/projectatomic-ci-infra
$ oc start-build papr-jenkins

Once Jenkins is up and running, simply try to login. If it doesn't hang, wipe and try again.

Yep we know about it.
The need for GC is created because because Jenkins recently added some plugin validation logic (which can include several things, including interaction via http with the jenkins update center).
PR https://github.com/openshift/jenkins/pull/440 is driving this.  To summarize what is there:

if this gets too painful, I'm going to disable the update monitor, etc. in our base jenkins image; if folks really want it, they can explicitly enable it and deal with the fall out

not there yet, but we'll see

short term workaround, instantiate your jenkins pod with a larger memory limit; this will result in a bigger heap, and reduce the churn you see here ... as an example, at least for my base jenkins image usage, 2 Gi has generally done the trick

we'd still like to see if we can tweak the GC settings such that this upfront GC is mitgated .... not sure how optimistic we are (well, at least me)... but it is due diligence item we want to get to before 1) or changing our default template pod mem limit

@bparees @jim-minter FYI ^^^ .... we finally got an external hit on this.
Even with the PR open, I'll leave this open for now, in case users look at issues but not PRs.

Ok, closing this out with the following

openshift 3.9 will have updates to the jenkins templates to help mitigate things
we figured out how to do the update center processing on startup vs. on the initial login ... PR https://github.com/openshift/jenkins/pull/440 is implementing that


Add documentation for http-equiv CSP approach

This could be a good approach for people hosting their website on a host where they do not control the HTTP headers, or as a temporary solution before setting up proper deployments of config files, containing CSPs generated by jekyll-mathjax-csp, to their server.

This is a good idea. One nit and I will merge!

Good catch! Fixed :)


Listen to FocusGained and VimResume

Hi, I'd like to update the branch bubble in more scenarios:

FocusGained: switching terminal tabs
VimResume: sending a suspended Neovim process back to the foreground (e.g. CTRL-z, fg)

Thanks!