pom.xml:228-240: enable sa-tan--> -->...

The puzzle 6-2b03f712 from #6 has to be resolved:
https://github.com/eo-cqrs/eokson/blob/09f627da09926feed723e482d897d3a1fb0fcc6b/pom.xml#L228-L240
The puzzle was created by @rultor on 15-Jun-23.
Estimate: 20 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

I can't create github labels pdd. Most likely I don't have necessary permissions to eo-cqrs/eokson repository. Please, make sure @0pdd user is in the list of collaborators:
POST https://api.github.com/repos/eo-cqrs/eokson/labels: 404 - Not Found // See: https://docs.github.com/rest/reference/issues#create-a-label
/app/vendor/bundle/ruby/2.7.0/gems/octokit-5.6.1/lib/octokit/response/raise_error.rb:14:in `on_complete'
/app/vendor/bundle/ruby/2.7.0/gems/faraday-2.6.0/lib/faraday/middleware.rb:18:in `block in call'
/app/vendor/bundle/ruby/2.7.0/gems/faraday-2.6.0/lib/faraday/response.rb:42:in `on_complete'
/app/vendor/bundle/ruby/2.7.0/gems/faraday-2.6.0/lib/faraday/middleware.rb:17:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/octokit-5.6.1/lib/octokit/middleware/follow_redirects.rb:73:in `perform_with_redirection'
/app/vendor/bundle/ruby/2.7.0/gems/octokit-5.6.1/lib/octokit/middleware/follow_redirects.rb:61:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/faraday-2.6.0/lib/faraday/rack_builder.rb:153:in `build_response'
/app/vendor/bundle/ruby/2.7.0/gems/faraday-2.6.0/lib/faraday/connection.rb:445:in `run_request'
/app/vendor/bundle/ruby/2.7.0/gems/faraday-2.6.0/lib/faraday/connection.rb:281:in `post'
/app/vendor/bundle/ruby/2.7.0/gems/sawyer-0.9.2/lib/sawyer/agent.rb:99:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/octokit-5.6.1/lib/octokit/connection.rb:156:in `request'
/app/vendor/bundle/ruby/2.7.0/gems/octokit-5.6.1/lib/octokit/connection.rb:28:in `post'
/app/vendor/bundle/ruby/2.7.0/gems/octokit-5.6.1/lib/octokit/client/labels.rb:44:in `add_label'
/app/objects/vcs/github.rb:92:in `add_label'
/app/objects/tickets/tagged_tickets.rb:45:in `block in submit'
/app/objects/tickets/tagged_tickets.rb:45:in `each'
/app/objects/tickets/tagged_tickets.rb:45:in `submit'
/app/objects/tickets/commit_tickets.rb:36:in `submit'
/app/objects/tickets/emailed_tickets.rb:35:in `submit'
/app/objects/tickets/sentry_tickets.rb:45:in `submit'
/app/objects/puzzles.rb:109:in `block in expose'
/app/objects/puzzles.rb:97:in `loop'
/app/objects/puzzles.rb:97:in `expose'
/app/objects/puzzles.rb:44:in `deploy'
/app/objects/jobs/job.rb:38:in `proceed'
/app/objects/jobs/job_starred.rb:32:in `proceed'
/app/objects/jobs/job_recorded.rb:31:in `proceed'
/app/objects/jobs/job_emailed.rb:33:in `proceed'
/app/objects/jobs/job_commiterrors.rb:33:in `proceed'
/app/objects/jobs/job_detached.rb:48:in `exclusive'
/app/objects/jobs/job_detached.rb:36:in `block in proceed'
/app/objects/jobs/job_detached.rb:36:in `fork'
/app/objects/jobs/job_detached.rb:36:in `proceed'
/app/0pdd.rb:530:in `process_request'
/app/0pdd.rb:367:in `block in <top (required)>'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1686:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1686:in `block in compile!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1023:in `block (3 levels) in route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1042:in `route_eval'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1023:in `block (2 levels) in route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1071:in `block in process_route'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1069:in `catch'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1069:in `process_route'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1021:in `block in route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1018:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1018:in `route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1140:in `block in dispatch!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `block in invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `catch'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1135:in `dispatch!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:949:in `block in call!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `block in invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `catch'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:949:in `call!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:938:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/deflater.rb:44:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/xss_header.rb:18:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/path_traversal.rb:16:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/json_csrf.rb:26:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb:50:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb:50:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/frame_options.rb:31:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/logger.rb:17:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/common_logger.rb:38:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:255:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:248:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/head.rb:12:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/method_override.rb:24:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:218:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1993:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1553:in `block in call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1769:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1553:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/handler/webrick.rb:95:in `service'
/app/vendor/ruby-2.7.5/lib/ruby/2.7.0/webrick/httpserver.rb:140:in `service'
/app/vendor/ruby-2.7.5/lib/ruby/2.7.0/webrick/httpserver.rb:96:in `run'
/app/vendor/ruby-2.7.5/lib/ruby/2.7.0/webrick/server.rb:307:in `block in start_thread'

The puzzle 6-2b03f712 has disappeared from the source code, that's why I closed this issue.

@0pdd the puzzle #47 is still not solved.


Update README.md

Issue #, if available:
fix typos
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

duplicate


feature/225 created console app

:tada: This PR is included in version 0.18.0-development.12 :tada:
The release is available on:

npm package (@development dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[MINOR] remove unused interpolation var in log message

Completely trivial but I noticed this wrinkle in a log message today; $sender doesn't refer to anything and isn't interpolated here.

Merged build triggered.

Merged build started.

Test build #34205 has started for   PR 6650 at commit 7edb866.

Test build #34205 has finished for   PR 6650 at commit 7edb866.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Merged build triggered.

Merged build started.

Test build #34255 has started for   PR 6650 at commit 518687a.

cc @zsxwing -- I think this was leftover from RPC refactoring?

LGTM

Test build #34255 has finished for   PR 6650 at commit 518687a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Merged in master & branch-1.4.


v1.6.0 - Uncaught TypeError: t.qualities[$.g] is not a function

Not having much luck with v1.6.0 using web components.
Everything seems to work correctly, apart from whenever I use Youtube as the src. (tried the various formats from the docs) i hit the same error and nothing is adding in the player.
Apologies if it's just me doing something wrong. Tried setting up again fro scratch following the docs, but keep hitting the same.
Screenshots below showing the console.

Sorry about that, please try again in 1.6.1@next :)


could not download Bazel: could not create directory

I use go to install bazelisk to install tensorflow
go get github.com/bazelbuild/bazelisk
the configue file in tensorflow said:
You have bazel 0.28.0 installed.
Please upgrade your bazel installation to version 3.1.0 or higher to build TensorFlow!

then I type bazelisk
it shows: 2020/11/09 18:13:22 could not download Bazel: could not create directory /home/dynacolor/.cache/bazelisk/downloads/bazelbuild/bazel-3.1.0-linux-x86_64/bin: mkdir /home/dynacolor/.cache/bazelisk/downloads/bazelbuild/bazel-3.1.0-linux-x86_64: permission denied
then I type sudo bazeklisk
sudo: bazelisk: command not found
what can I do now?

It is not about sudo permission.
Try
chmod +x /home/dynacolor/.cache/bazelisk/downloads/bazelbuild/bazel-3.1.0-linux-x86_64
and run it again.
I think it is because you need to set executable permission of it.

It is not about sudo permission.
Try
chmod +x /home/dynacolor/.cache/bazelisk/downloads/bazelbuild/bazel-3.1.0-linux-x86_64
and run it again.
I think it is because you need to set executable permission of it.

I can't since it hasn't been created yet

Sorry I was not reading carefully. What I was trying to say was
chmod +x bazelisk
in the directory that you built bazelisk to make sure it has permission to execute.
If the above does not work, you might  use
sudo -s bazelisk
to work around.

Closing due to age. Please re-open if the problem still persists.


Can Zetta APP collect and process data form changeable number of sensors?

I am trying to develop a Zetta server, in which the APP can collect and process (statics, analyze and so on) data from multiple sensors of the same type, and the number of sensors is changeable. Is it possible to implement this function by Zetta?
server.observe([pm25Query_1, pm25Query_2, ...], (pmSensor_1, pmSensor_2, ...) => {    console.log("devices came online");    console.log(pmSensor_1);    console.log(pmSensor_2);    pmSensor_1.streams.result.on("data", (m) => {       var pm25 = m.data.value       console.log("pm25_1: ", pm25);    });    pmSensor_2.streams.result.on("data", (m) => {       var pm25 = m.data.value       console.log("pm25_2: ", pm25);    });	    ... });

Zetta in itself does not offer any capabilities to process the data but you're on the right track for how to collect data using Zetta.
See our dusk to dawn example that would "process" a fake light sensor and turn the lights on when it is dark. https://github.com/zettajs/zetta-hello-world/blob/master/apps/dusk_to_dawn_light.js To further process the data you will need to pipe the data into another tool. There are many open source options depending on what you're trying todo.
We have also published a number of data collectors that collects all data from every device and pumps the data into different tools:

InfluxDB - https://github.com/zettajs/zetta-device-data-influxdb
AWS SQS - https://www.npmjs.com/package/zetta-device-data-sqs
AWS Kinesis - https://github.com/zettajs/zetta-device-data-kinesis

@AdamMagaluk
Thank you for your reply, we eventually realized the function to process data within Zetta. Although the code is not perfect, we can process changeable numbers of sensors of the same type.
In the app.js:
First, a changeable sequence of queries  is used as the first argument of "server.observe(query, cb)".
this.queries = new Array();
for (var i=0; i < this.sensor_number; i++) {	//start from 0
const pm25Query = server.from('*').where({type: 'pm_sensor', name: 'pm_sensor'+i});
this.queries.push(pm25Query);
}_
Second, Array.forEach() of Javascript is used to receive data from each sensor.
this.pmSensors = new Array();
for (var i=1; i <= this.sensor_number; i++) {	//start from 1, can be changed later
this.pmSensors.push('pmsensor');
}
this.pmSensors.forEach(processValue);
function processValue(sensor, index, arr) {
console.log(sensor);
console.log(index);
server.observe(this.queries[index], (sensor) => {
...//calculate the average of all sensor data
});
}


Issue with adding prefix for RDF skeleton

Hi,
I am trying to add my ontology to define the RDF-Skelton but not getting an advance option, as shown in Image. I am using 2.8

Hi @Gautamshahi
As we have already explained to you in issues  #1587, #1590,  #1686 and #1572, this feature is part of the RDF extension, which is not maintained by our team.
You are reporting these issues to the wrong team.
You will always get the same answer. Reporting more issues will not change this.
Please stop reporting issues in this repository now. You are wasting our time.


ReactSDKClient onDataFileUpdate function

Hi,
I see in the ReactSDKClient there are functions like onUserUpdate that provide a way to get a callback when the user update happens or onReady for when the client initialises. I am wondering if there is a way to add an onDataFileUpdate function that would provide the same functionality but for when an update to the datafile occurs.
For example if I initialise the Optimizely client with:
datafileOptions: {
  autoUpdate: true,
  updateInterval: 1000
}

Then it will poll for datafile updates and if a feature flag has its value changed then it will redownload the new datafile. At this point if any of the <OptimizelyFeature> components have autoUpdate set to true then they will get updated when this new datafile with new flag value is downloaded.
If an onDataFileUpdate function with a callback was provided then we would be able to listen for these same changes using the ReactSDKClient, which allows us to do more with the feature flags, such as push the changes into Redux.

Okay so I managed to find a way to do this by using the Notification Center instead. I found this in the docs: https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-update-notification-listener
In order to get a callback for whenever the datafile changes (when the feature flag value changes) you can do the following:
  const optimizelyClient = createInstance({
    sdkKey: "<YOUR_SDK_KEY>",
    datafileOptions: {
      autoUpdate: true,
      updateInterval: <ANY_INTERVAL_YOU_WANT>
    }
  });

  optimizelyClient.notificationCenter.addNotificationListener(
    enums.NOTIFICATION_TYPES.OPTIMIZELY_CONFIG_UPDATE,
    notificationData => {
      console.log("Datafile is updated : ", notificationData);
	  // At this point you want to now use the optimizelyClient to query for the latest value of
	  // all your feature flags and then do what you want with them (including push them into redux)
    }
  );

Thanks for updating James, one note would be that this listener currently fires when we have retrieved a new datafile from our CDN due to polling, not specifically when there is a changed feature flag entity within the datafile. We will look to introduce more incremental and intelligent updates over time but for now this is the correct listener to hook into.


DUP FUNXC when stripping zfcpdump_part

Rebuild of s390-tools master in Fedora Rawhide (gcc-9.1.1-2.fc31.s390x and binutils-2.32-17.fc31.s390x) prints dozens of "DUP FUNXC" messages, see bellow.
...
gcc -rdynamic zfcpdump.o zfcpdump_part.o -static -o zfcpdump_part
gcc -I ../include -D_GNU_SOURCE -DSYSFS -DS390_TOOLS_RELEASE=2.9.0-build-20190712 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_DATADIR=/usr/share/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc -DS390_TOOLS_BINDIR=/sbin -g -rdynamic -fstack-protector-all -W -Wall -Wformat-security -O3  -DHAVE_SETXATTR -pthread -I/usr/include/fuse -D_FILE_OFFSET_BITS=64  -c zdsfs.c -o zdsfs.o
strip -s zfcpdump_part
DUP FUNXC
DUP FUNXC
DUP FUNXC
DUP FUNXC
DUP FUNXC
DUP FUNXC
DUP FUNXC
...

I have only binutils-2.31.1-29.1.fc30.src.rpm and gcc-9.1.1-1.fc30.src.rpm available here at the moment and can't reproduce your issue with those version. Is there a way to install your versions of gcc and binutils on an F30 installation? Can I download the rpms already somewhere and install them manually or so?

The old school method is to use a Rawhide chroot prepared by the mock tool. It can be managed by the package maintainers' fedpkg tool.
I've just used following to reproduce
fedpkg co s390utils
cd s390utils
fedpkg mockbuild --no-cleanup-after

It checks out the s390utils package and rebuilds in a fresh rawhide chroot with all deps installed. Then with mock -r fedora-rawhide-s390x shell you enter the chroot, the build directory is /builddir/build/BUILD/s390-tools-2.9.0/. See mock(1) for how to use mock (install additional rpms, etc). Or ping me on IRC if you have more questions.

Or use containers :-)
podman run -it fedora:rawhide

No such issue in recent Fedoras, closing.


Partial #1724, update in/out status and nonnull/nonzero tags

Describe the contribution
First pass at API doxygen scrub, this updates the in/out markings on parameters where they were not correct, and adds nonnull and nonzero tags where appropriate.
Related to #1724 (but should not close yet)
Testing performed
Build and run all tests
Expected behavior changes
None (documentation only)
System(s) tested on
Ubuntu
Additional context
Note this is "partial" as it does not yet do all the test case verification, those will come later.  But the API documentation needs to have these tags correct so the validation scripts know what to look for.
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Should #1762 be fixed here?

I will submit something specifically for #1762, since it was already written up as a separate issue.  I actually backed out the @nonnull tag on that one for this PR (that was incorrect).  I had actually done this change 2-3 weeks ago, but I hadn't submitted the PR.

Note, I found/fixed a bug in my script that was causing it to not find all the return status codes correctly.  Will be pushing an update based on a new run.

CCB:2021-08-11


multiSelectEnabled = false doesn't work

Hi @ipraba,
Thanks for this amazing piece of happiness, but I have a problem in disabling multiselection. In my scenario, I need to highlight some days, only, some days. That's it. No more no less. The following code doesn't disable multiselection. The user still able to select dates.
OBS: I am displaying your Calendar inside my calendar.
import Foundation
import EPCalendarPicker

class CalendarViewController: UIViewController, EPCalendarPickerDelegate {

    var dates:[Date] = [] //some dates
    var calendarPicker: EPCalendarPicker!

    @IBOutlet weak var cont: UIView!

    override func viewDidLoad() {
        super.viewDidLoad()
        calendarPicker = EPCalendarPicker(startYear: 2016, endYear: 2016, multiSelection: false, selectedDates: dates)
        calendarPicker.calendarDelegate = self
        //calendarPicker.startDate = Date()
        calendarPicker.hightlightsToday = true
        calendarPicker.hideDaysFromOtherMonth = false
        //calendarPicker.tintColor = UIColor.orange
        //calendarPicker.dayDisabledTintColor = UIColor.gray
        //calendarPicker.dateSelectionColor = UIColor.blue
        calendarPicker.multiSelectEnabled = false
        calendarPicker.collectionView?.allowsMultipleSelection = false
        addViewControllerAsChildViewController(viewController: calendarPicker)

    }

![simulator screen shot 15 oct 2016 14 22 49](https://cloud.githubusercontent.com/assets/1541244/19410384/e5d3539a-92e2-11e6-9dfb-fc5ecca81173.png)

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    func epCalendarPicker(_: EPCalendarPicker, didCancel error : NSError) {
        //txtViewDetail.text = "User cancelled selection"

    }
    func epCalendarPicker(_: EPCalendarPicker, didSelectDate date : NSDate) {
        print(date)
    }
//    func epCalendarPicker(_: EPCalendarPicker, didSelectMultipleDate dates : [NSDate]) {
//        //txtViewDetail.text = "User selected dates: \n\(dates)"
//        print("User selected dates: \n\(dates)")
//    }

    private func addViewControllerAsChildViewController(viewController: UIViewController) {
        // Add Child View Controller
        addChildViewController(viewController)

        // Add Child View as Subview
        view.addSubview(viewController.view)

        // Configure Child View
        viewController.view.frame = view.bounds
        viewController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]

        // Notify Child View Controller
        viewController.didMove(toParentViewController: self)
    }
}

Hi, placing this code fixed my issue. Thanks.
calendarPicker.collectionView?.allowsSelection = false


Backtest intraday strategy with OHLC daily data

Hi,
Is it possible to open position with open price and close with close price (on ohlc daily data)?
Thanks.

I do not think that we support this. @jbredeche, @ehebert do you know if this is possible?

Could do this via the slippage model, by checking the order.direction and choosing the pricing field based on that. (Where a positive direction is opening the position.)
A barebones example:
class OpenCloseSlippage(SlippageModel):

    def process_order(self, data, order):
        price_field = "open" if order.direction > 0 else "close"
        price = data.current(order.asset, price_field)

        return (
            price,
            order.amount
        )


[Bug]: flax_llama7b  run failed

Issue Type
Documentation
Modules Involved
Documentation/Tutorial/Example
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
main
OS Platform and Distribution
Ubuntu 22.04
Python Version
3.8.16
Compiler Version
No response
Current Behavior?
prepared:
already download llama-7b model  &&  EasyML

when  run shell：
python3 -m EasyLM.scripts.convert_checkpoint --load_checkpoint='params::open_llama_7b' --output_file='path-to-LLaMMA-7B.msgpack' --streaming=False
error log:
File "/home/zchain/mpc/spu/venv/lib/python3.8/site-packages/mlxu/utils.py", line 36, in open_file
return open(path, mode)
IsADirectoryError: [Errno 21] Is a directory: 'open_llama_7b'
Standalone code to reproduce the issue
please give the total operation, tks

Relevant log output
No response

@Ye-D Can you take a look?

@Daihongwei1900 "--load_checkpoint" should point to the model file, not the directory.

@Daihongwei1900 "--load_checkpoint" should point to the model file, not the directory.

Dr. Dong, I am not very familiar with the llama-7b model here. According to the screenshot I downloaded from https://huggingface.co/openlm-research/open_llama_7b, there are two bin weight files here. I also got an error when I tried. Is there any tutorial missing here?

Tutorial  shell command :
python3 -m EasyLM.scripts.convert_checkpoint --load_checkpoint='params::path-to-LLaMA-7B[Pytroch-Version]' --output_file='path-to-LLaMMA-7B.msgpack' -- streaming=False

try this link: https://huggingface.co/openlm-research/open_llama_7b_easylm/tree/main
convert the above model into msgpack.


Please change this !!!

I would like to suggest an idea to improve the usability of the CLI flutter by 90%
Change the Print Widget Key, keep it away from the "R" key please, many developers accidentally click on the "T" key because it is next to each other
Another thing: Iapicca, I know you like to go on everyone's comment to say (Please share your flutter doctor) in that case stay away from my issue please

duplicate of https://github.com/flutter/flutter/issues/58101


Event variables ?

Hi,
I'm trying to send a notification on my phone when kitsi (on Windows) is ringing.
I don't know it there's a better way but I choose to create a script that I run with an event on incoming call.
Is there any variable that I can variable that I can pass into the script to get the incoming number for example ?
Thanks

Yes, you can use the pattern ${variable}, where variable is one of:

caller.uri
caller.address
caller.name
caller.id


Errors in Wiki

Add this to the required packages for Fedora:
ninja-build gcc-c++ vulkan-loader-devel glslc
And the order of the setup and compiliation commands building without IDE is wrong way round.

Thanks! I added the fedora packages.
Additionally I added a compile.sh for a better non-IDE experience.
It's compile.sh --release for the release mode accordingly.

Shouldn't it be the other way round?  A flag for debug and release otherwise?

Nice! But shouldn't it be the other way round? A flag for debug and release otherwise?

I did it like Rusts cargo. But I don't really mind.
If you want to, I can change --release to be the default.


Can't copy code snippet from main landing page in website

Chrome:
Version 125.0.6422.78, (64x)

Interesting. Thanks for the report!

I found the reason, the reason is in the z-index. Since the selector ".snippet__title_bar" has a z-index of 10, and the selector ".ButtonGroup__atx" there is no z-index at all and therefore hover was triggered only for content and when I tried to copy it, it could not because hover was triggered for ".snippet__title_bar". I will fix it and open the pull request soon🙌


fix: moving deps to dev deps and updating deps with vuln

fixes https://github.com/k-j-kim/pb-text-format-to-json/issues/3


OutOfMemory

Nice work, everyone! I'm trying to run on a 4090, could you tell me the min VRAM necessary to run negtome?

Hi @futureflix87
Thanks for your interest in our work!
NegToMe actually requires similar VRAM as well as inference time as the base model. The VRAM used for each experiment therefore depends only on the base-model as well as number of images generated in each batch (see online demo for more).
The current code generates N=4 images in each batch with flux (which requires around 32GB VRAM for both base model and negtome). Can you please try reducing the number of images to 2 or 3?
Additionally, we also plan to release a low VRAM version soon, where the images can be sequentially generated instead of in a batch. Stay tuned!


Stop scrollbar at bottom of nav and style OSX scrollbar - fix #64

This does stop at the bottom of the nav now.
It looks like you can't just apply a style to the scrollbar track, so we'll have to style the scrollbar, track, and thumb at the very least. I didn't change the styles and simply removed the limitation to Linux and Windows, which changes the style for OSX. If we want to have the style for OSX match the system default I can update the PR with styles to (try to) match default.

I say we should try to match the OS X defaults, it looks nice.

Just to point out one other thing, even with "default" styles it will always be visible unlike the true default that only displays on scroll.

True default would actually what the user set in system preferences.

True default would actually what the user set in system preferences.

I just don't think that's possible. We're not even using that scrollbar (if that makes sense). This is styling the browser scrollbar and it's sort of like, once you start going down that path you can't go back to system default. Again, as far as I know, you can't only set a single aspect of the style for the scrollbar (specifically, the margin-top) and leave the rest default. I'm up for being proven wrong. 😄

I pushed up a change as a force, and the changes are that the original Linux/Windows styles are unchanged (except for the margin-top) and OSX has its own separate styles applied trying to match default as best as I can. If there's something I missed or can be improved please comment.

By user default I meant:

Which is deciding how auto hide should work, but is probably really hard to do. Reading system defaults isn't too hard and we can easily get notified of changes too.

I don't think we should style the OS X scrollbar. It's very hard to match and OS X users, including me, will be annoyed by a fake one. The native scrollbar has behavior like disappearing when scrolling is done. Is there no other way to fix this than styling the scrollbar?

I agree with @sindresorhus, this is always going to feel like a knock off of the OSX scrollbar. There is no way around at least some minimal styling to the scrollbar, specifically, we need to at least style the ::-webkit-scrollbar, ::-webkit-scrollbar-track, and ::-webkit-scrollbar-thumb elements. Once we do that the system scrollbar is disabled and we'd have to add JS in to show/hide the scrollbar on the scroll event and all that other stuff.

Closing as I'm not willing to give up the native OS X scrollbars. We should find another way or just leave it as is.


[Event request] Table 12182 "Vendor Bill Line" - OnBeforeInsertVendBillWithhTax and OnAfterInsertVendBillWithhTax

Hi AL-Team,
can you please add new events in the method CreateVendBillWithhTax
if VendBillWithhTax."Withholding Tax Code" <> '' then
//New Event
OnBeforeInsertVendBillWithhTax(VendBillWithhTax, Vend);
//New Event
VendBillWithhTax.Insert();
//New Event
OnAfterInsertVendBillWithhTax(VendBillWithhTax);
//New Event

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Unit & staging test error issue： For async tests and hooks, ensure "done()" is called;

when i run hardhat test ( I tried both hardhat network and rinkeby network)
yarn hardhat test --network hardhat --grep "picks a winner, resets, and sends money"

this error comes out =>

Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/tujitongxue/Documents/TujiTech/solidity/lottery_hardhat/test/unit/Raffle.test.js)

the test code is (i just pasted from the repository)
it("picks a winner, resets, and sends money", async () => {
      const additionalEntrances = 3 // to test
      const startingIndex = 2
      for (let i = startingIndex; i < startingIndex + additionalEntrances; i++) {
          // i = 2; i < 5; i=i+1
          raffle = raffleContract.connect(accounts[i]) // Returns a new instance of the Raffle contract connected to player
          await raffle.enterRaffle({ value: raffleEntranceFee })
      }
      const startingTimeStamp = await raffle.getLastTimeStamp() // stores starting timestamp (before we fire our event)

      // This will be more important for our staging tests...
      await new Promise(async (resolve, reject) => {
          raffle.once("WinnerPicked", async () => {
              // event listener for WinnerPicked
              console.log("WinnerPicked event fired!")
              // assert throws an error if it fails, so we need to wrap
              // it in a try/catch so that the promise returns event
              // if it fails.
              try {
                  // Now lets get the ending values...
                  const recentWinner = await raffle.getRecentWinner()
                  const raffleState = await raffle.getRaffleState()
                  const winnerBalance = await accounts[2].getBalance()
                  const endingTimeStamp = await raffle.getLastTimeStamp()
                  await expect(raffle.getPlayer(0)).to.be.reverted
                  // Comparisons to check if our ending values are correct:
                  assert.equal(recentWinner.toString(), accounts[2].address)
                  assert.equal(raffleState, 0)
                  assert.equal(
                      winnerBalance.toString(),
                      startingBalance // startingBalance + ( (raffleEntranceFee * additionalEntrances) + raffleEntranceFee )
                          .add(
                              raffleEntranceFee
                                  .mul(additionalEntrances)
                                  .add(raffleEntranceFee)
                          )
                          .toString()
                  )
                  assert(endingTimeStamp > startingTimeStamp)
                  resolve() // if try passes, resolves the promise
              } catch (e) {
                  reject(e) // if try fails, rejects the promise
              }
          })

          const tx = await raffle.performUpkeep("0x")
          const txReceipt = await tx.wait(1)
          const startingBalance = await accounts[2].getBalance()
          await vrfCoordinatorV2Mock.fulfillRandomWords(
              txReceipt.events[1].args.requestId,
              raffle.address
          )
      })
  })

any idea for this ?

I catched the same problem, I forgot to added timeout mocha to hardhat.config.js
mocha: {
   timeout: 500000,
},

I was having the same issue.
Fixed it by changing
event RequestedRaffleWinner(uint256);
to
event RequestedRaffleWinner(uint256 indexed requestId);
in my Raffle.sol.

I still have this error, please has anyone solved it?

I still have this error, please has anyone solved it?

Can you attach your Raffle.sol?

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
// Import this file to use console.log
import "hardhat/console.sol";
import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>// import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>error Lottery__NotEnoughEthSent();
error Lottery__TransferFailed();
error Lottery__LotteryNotOpen();
error Lottery__NoUpdateNeeded();
// in the docs, the "VRFv2Consumer" is our Contract. So what that contract is doing is what our contract should be doing plus our own added functionalities ;)
/**

@title A sample Lottery contract
@author Edison Mgbeokwere
@notice This contract is for creating an untamperable loterry application
@dev This contract implements Chainlink VRF v2 and ChainLink keepers
*/

contract Lottery is VRFConsumerBaseV2, KeeperCompatibleInterface {
//Enter the lottery (pay some amount)
//Pick a random winner (verifyably random)
//Winner to be selected every X minutes -> completely automated
//Chainlink oracle -> Randomness (chainlink VRF), Automated execution (chainlink keepers)
/* Type Declarations */
enum LotteryState {
    OPEN,
    CALCULATING
}

/*State variables */
VRFCoordinatorV2Interface private immutable i_coordinator; //big guy coordinating the request
uint256 private immutable i_entranceFee;
address payable[] private s_players; // because one of these address will receive money
bytes32 private immutable i_keyhash; // this is to set a max gas price so incase a request for a random number is too high, that request fails. gotten from the VRF docs
uint64 private immutable i_subscriptionId;
uint32 private immutable i_callbackGasLimit; // gotten from the VRF docs
uint16 private constant REQUEST_CONFIRMATIONS = 3;
uint32 private constant NUM_WORDS = 1;

/*Lottery Variables */
address private s_recentWinner;
LotteryState private s_lotteryState;
uint256 private s_lastTimeStamp;
uint256 private immutable i_interval;

/*Events */
event LotteryEnter(address indexed player); // "indexed" so that it's easily searchable in the logs
event RequestedLotteryWinner(uint256 indexed requestId);
event WinnerPicked(address indexed winner);

constructor(
    address vrfCoordinatorV2,
    uint256 _entranceFee,
    bytes32 keyHash,
    uint64 subscriptionId,
    uint32 callbackGasLimit,
    uint256 interval
) VRFConsumerBaseV2(vrfCoordinatorV2) {
    i_coordinator = VRFCoordinatorV2Interface(vrfCoordinatorV2);
    i_entranceFee = _entranceFee;
    i_keyhash = keyHash;
    i_subscriptionId = subscriptionId;
    i_callbackGasLimit = callbackGasLimit;
    s_lotteryState = LotteryState.OPEN;
    s_lastTimeStamp = block.timestamp;
    i_interval = interval;
}

function enterLottery() public payable {
    if (msg.value < i_entranceFee) {
        revert Lottery__NotEnoughEthSent();
    }
    if (s_lotteryState != LotteryState.OPEN) {
        revert Lottery__LotteryNotOpen();
    }
    s_players.push(payable(msg.sender));
    emit LotteryEnter(msg.sender);
}

/**
 * @dev This is the function that the Chainlink keeper node calls
 * they look for the "upkeepNeeded" to return true
 * The following should be true for upkeepNeeded to return true:
 * 1. Our time interval should have passed
 * 2. The lottery should have at least 1 player and some ETH
 * 3. Our subscription is funded with LINK
 * 4. The lottery should be in an "open" state
 */
function checkUpkeep(
    // this function is required by the chainlink Keepers nodes to check if an update is needed
    bytes memory /*checkData */ // "public" makes this funtion accessible to us in the contract so we can read from it in "performUpkeep"
)
    public
    view
    override
    returns (
        bool upkeepNeeded,
        bytes memory /*performData*/
    )
{
    bool isOpen = (s_lotteryState == LotteryState.OPEN);
    bool timePassed = ((block.timestamp - s_lastTimeStamp) > i_interval);
    bool hasPlayers = (s_players.length > 0);
    bool hasBalance = (address(this).balance > 0);

    upkeepNeeded = (isOpen && timePassed && hasPlayers && hasBalance);
}

function performUpkeep(
    /**
     * this was used to replace the "requestRandomWords()" function required by chainlink VRF nodes so that the chainlink Keepers nodes can call it automatically when an update is needed
     */
    bytes calldata /*performData */
) external override {
    (bool updateNeeded, ) = checkUpkeep("");
    if (!updateNeeded) {
        revert Lottery__NoUpdateNeeded();
    }
    s_lotteryState = LotteryState.CALCULATING;
    // Request the random Winner
    // Once we get it, do something with it
    uint256 requestId = i_coordinator.requestRandomWords(
        i_keyhash,
        i_subscriptionId,
        REQUEST_CONFIRMATIONS,
        i_callbackGasLimit,
        NUM_WORDS // number of random values we requested for
    );
    // the first event will come when the "requestRandomWords" function is fired in our Mock VRF Coordinator
    emit RequestedLotteryWinner(requestId); // this will actually be the second event emitted
}

function fulfillRandomWords(
    // this function is required and automatically called  by the chainlink VRF nodes to perform a task when valid request id is given and  a random number is generated
    uint256, /*requestId*/
    uint256[] memory randomWords
) internal override {
    uint256 indexOfWinner = randomWords[0] % s_players.length; // the vrf nodes send a random value using "randomWords" that can now be used in the contract as we please
    address payable recentWinner = s_players[indexOfWinner];
    s_recentWinner = recentWinner;
    s_lotteryState = LotteryState.OPEN;
    s_players = new address payable[](0);
    s_lastTimeStamp = block.timestamp;
    (bool success, ) = recentWinner.call{value: address(this).balance}("");
    if (!success) {
        revert Lottery__TransferFailed();
    }
    emit WinnerPicked(recentWinner);
}

/*View / Pure functions */
function getEntranceFee() public view returns (uint256) {
    return i_entranceFee;
}

function getPlayer(uint256 index) public view returns (address) {
    return s_players[index];
}

function getRecentWinner() public view returns (address) {
    return s_recentWinner;
}

function getLotteryState() public view returns (LotteryState) {
    return s_lotteryState;
}

function getNumWords() public pure returns (uint256) {
    return NUM_WORDS;
}

function getNumberOfPlayers() public view returns (uint256) {
    return s_players.length;
}

function getLatestTimeStamp() public view returns (uint256) {
    return s_lastTimeStamp;
}

function getRequestConfirmations() public pure returns (uint256) {
    return REQUEST_CONFIRMATIONS;
}

function getInterval() public view returns (uint256) {
    return i_interval;
}

}

I replaced "Raffle" with "Lottery"

I replaced "Raffle" with "Lottery"

any idea for this ?
Remove resolve() after assertion. It should be:
await vrfCoordinatorV2Mock.fulfillRandomWords(txReceipt.events[1].args.requestId,raffle.address)
resolve(Promise)

I replaced "Raffle" with "Lottery"

Check your arguments for the contract constructor especially your interval and hash value

I also have the same issue. I believe the problem is in :
await vrfCoordinatorV2Mock.fulfillRandomWords(
                          txReceipt.events[1].args.requestId,
                          raffle.address
                      )

I replaced "Raffle" with "Lottery"

Also please check if you have called resolve() in your try block

I also run into an issue when running a staging test. The CLI throws this error msg :  For async tests and hooks, ensure "done()" is called . So the test will not finish and ends up being  stopped by the mocha timeout set in hh config file.

abondance68 I'm on the same page as you right now. I'm not sure if you've figured out the problem yet but what I've seen so far is that the promise isn't being resolved due to something blanking out in here:
`raffle.once("WinnerPicked", async () => {
console.log("WinnerPicked event fired!")
try {
// add our asserts here
const recentWinner = await raffle.getRecentWinner()
const raffleState = await raffle.getRaffleState()
const winnerEndingBalance = await accounts[0].getBalance()
const endingTimeStamp = await raffle.getLastTimeStamp()
                        await expect(raffle.getPlayer(0)).to.be.reverted
                        assert.equal(recentWinner.toString(), accounts[0].address)
                        assert.equal(raffleState, 0)
                        assert.equal(
                            winnerEndingBalance.toString(),
                            winnerStartingBalance.add(raffleEntranceFee).toString()
                        )
                        assert(endingTimeStamp > startingTimeStamp)
                        resolve()
                    } catch (error) {
                        console.log(error)
                        reject(error)
                    }`

I think this has to do with either fetching the random number from the chainlink oracle or could be that we can't enter the raffle. I'm interesting in hearing what you or anyone else has done with this.

I had the same issue with the staging test, but i just ran the same test again with more funds(20 links) in my VRF and the test got passed.

One more comment about this issue. Don't paste "done" in the async (done) function, it will produce this issue as well

Having same problem.. has anyone resolved?
Marcin

Iam not able to pass staging test
'// Inorder to test this in test network we need this things
//1. Get our SubId for Chainlink VRF
//2. Deploy our contract using the SubId
//3.Register the contract with chainlink VRF and its subId
//4. Register the contract with chainlink keepers
//5. Run staging tests
const { assert, expect } = require("chai")
const { network, deployments, ethers, getNamedAccounts } = require("hardhat")
const { developmentChains, networkConfig } = require("../../helper-hardhat-config")
developmentChains.includes(network.name)
? describe.skip
: describe("Raffle Unit Tests", function () {
let raffle, raffleEntranceFee, deployer // , deployer
const chainId = network.config.chainId
    beforeEach(async () => {
        deployer = (await getNamedAccounts()).deployer
        await deployments.fixture(["all"])
        raffle = await ethers.getContract("Raffle", deployer)
        vrfCoordinatorV2Mock = await ethers.getContract("VRFCoordinatorV2Mock", deployer)
        interval = await raffle.getInterval()
        raffleEntranceFee = await raffle.getEntranceFee()

    })
    describe("fulfillRandomWords", function () {
        it("works with live Chainlink Keepers and Chainlink VRF, we get a random winner", async function () {
            // enter the raffle
            console.log("Setting up test...")
            const startingTimeStamp = await raffle.getLastTimeStamp()
            const accounts = await ethers.getSigners()

            console.log("Setting up Listener...")
            await new Promise(async (resolve, reject) => {
                // setup listener before we enter the raffle
                // Just in case the blockchain moves REALLY fast
                raffle.once("WinnerPicked", async () => {
                    console.log("WinnerPicked event fired!")
                    try {
                        // add our asserts here
                        const recentWinner = await raffle.getRecentWinner()
                        const raffleState = await raffle.getRaffleState()
                        const winnerEndingBalance = await accounts[0].getBalance()
                        const endingTimeStamp = await raffle.getLastTimeStamp()

                        await expect(raffle.getPlayer(0)).to.be.reverted
                        assert.equal(recentWinner.toString(), accounts[0].address)
                        assert.equal(raffleState, 0)
                        assert.equal(
                            winnerEndingBalance.toString(),
                            winnerStartingBalance.add(raffleEntranceFee).toString()
                        )
                        assert(endingTimeStamp > startingTimeStamp)
                        resolve()
                    } catch (error) {
                        console.log(error)
                        reject(error)
                    }
                })
                // Then entering the raffle
                console.log("Entering Raffle...")
                const tx = await raffle.EnterRaffle({ value: raffleEntranceFee })
                await tx.wait(1)
                console.log("Ok, time to wait...")
                const winnerStartingBalance = await accounts[0].getBalance()

                // and this code WONT complete until our listener has finished listening!
            })
        })
    })
})'

Iam getting this issue 'ProviderError: Unsupported method: evm_snapshot. See available methods at https://docs.alchemy.com/alchemy/documentation/apis'

for the first time i ran the test i guess i had a problem in VRF saying that i'm having a low balance and add funds, i guess this might be a problem or if anyone found exactly whats going on would be helpful. nevertheless my test got passed

hey can you please tell that after creating contract of Raffel lottery how to deploy it so to get address to put in VRF consumer?As you have in your image Please reply.

Thanks for the help man. I was stuck at this

Has anyone managed to fix this issue? I have tried copying code from the respoistory for the staging test, raflle.sol, and hardhat config to no avail.... Would really appreciate any input (have also increased the timeout of to 1000000ms and still no luck).
Staging test:
`const { assert, expect } = require("chai")
const { getNamedAccounts, ethers, network } = require("hardhat")
const { developmentChains } = require("../../helper-hardhat-config")
developmentChains.includes(network.name)
? describe.skip
: describe("Raffle Staging Tests", function () {
let raffle, raffleEntranceFee, deployer
      beforeEach(async function () {
          deployer = (await getNamedAccounts()).deployer
          raffle = await ethers.getContract("Raffle", deployer)
          raffleEntranceFee = await raffle.getEntranceFee()
      })

      describe("fulfillRandomWords", function () {
          it("works with live Chainlink Keepers and Chainlink VRF, we get a random winner", async function () {
              // enter the raffle
              console.log("Setting up test...")
              const startingTimeStamp = await raffle.getLatestTimeStamp()
              const accounts = await ethers.getSigners()

              console.log("Setting up Listener...")
              await new Promise(async (resolve, reject) => {
                  // setup listener before we enter the raffle
                  // Just in case the blockchain moves REALLY fast
                  raffle.once("WinnerPicked", async () => {
                      console.log("WinnerPicked event fired!")
                      try {
                          // add our asserts here
                          const recentWinner = await raffle.getRecentWinner()
                          const raffleState = await raffle.getRaffleState()
                          const winnerEndingBalance = await accounts[0].getBalance()
                          const endingTimeStamp = await raffle.getLatestTimeStamp()

                          await expect(raffle.getPlayer(0)).to.be.reverted
                          assert.equal(recentWinner.toString(), accounts[0].address)
                          assert.equal(raffleState, 0)
                          assert.equal(
                              winnerEndingBalance.toString(),
                              winnerStartingBalance.add(raffleEntranceFee).toString()
                          )
                          assert(endingTimeStamp > startingTimeStamp)
                          resolve()
                      } catch (error) {
                          console.log(error)
                          reject(error)
                      }
                  })
                  // Then entering the raffle
                  console.log("Entering Raffle...")
                  const tx = await raffle.enterRaffle({ value: raffleEntranceFee })
                  await tx.wait(1)
                  console.log("Ok, time to wait...")
                  const winnerStartingBalance = await accounts[0].getBalance()

                  // and this code WONT complete until our listener has finished listening!
              })
          })
      })
  })

Raffle.sol
` // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>import "hardhat/console.sol";
/* Errors */
error Raffle__UpkeepNotNeeded(uint256 currentBalance, uint256 numPlayers, uint256 raffleState);
error Raffle__TransferFailed();
error Raffle__SendMoreToEnterRaffle();
error Raffle__RaffleNotOpen();
/**@title A sample Raffle Contract

@author Patrick Collins

@notice This contract is for creating a sample raffle contract

@dev This implements the Chainlink VRF Version 2
/
contract Raffle is VRFConsumerBaseV2, AutomationCompatibleInterface {
/ Type declarations /
enum RaffleState {
OPEN,
CALCULATING
}
/ State variables */
// Chainlink VRF Variables
VRFCoordinatorV2Interface private immutable i_vrfCoordinator;
uint64 private immutable i_subscriptionId;
bytes32 private immutable i_gasLane;
uint32 private immutable i_callbackGasLimit;
uint16 private constant REQUEST_CONFIRMATIONS = 3;
uint32 private constant NUM_WORDS = 1;
// Lottery Variables
uint256 private immutable i_interval;
uint256 private immutable i_entranceFee;
uint256 private s_lastTimeStamp;
address private s_recentWinner;
address payable[] private s_players;
RaffleState private s_raffleState;
/* Events */
event RequestedRaffleWinner(uint256 indexed requestId);
event RaffleEnter(address indexed player);
event WinnerPicked(address indexed player);
/* Functions */
constructor(
address vrfCoordinatorV2,
uint64 subscriptionId,
bytes32 gasLane, // keyHash
uint256 interval,
uint256 entranceFee,
uint32 callbackGasLimit
) VRFConsumerBaseV2(vrfCoordinatorV2) {
i_vrfCoordinator = VRFCoordinatorV2Interface(vrfCoordinatorV2);
i_gasLane = gasLane;
i_interval = interval;
i_subscriptionId = subscriptionId;
i_entranceFee = entranceFee;
s_raffleState = RaffleState.OPEN;
s_lastTimeStamp = block.timestamp;
i_callbackGasLimit = callbackGasLimit;
}
function enterRaffle() public payable {
// require(msg.value >= i_entranceFee, "Not enough value sent");
// require(s_raffleState == RaffleState.OPEN, "Raffle is not open");
if (msg.value < i_entranceFee) {
revert Raffle__SendMoreToEnterRaffle();
}
if (s_raffleState != RaffleState.OPEN) {
revert Raffle__RaffleNotOpen();
}
s_players.push(payable(msg.sender));
// Emit an event when we update a dynamic array or mapping
// Named events with the function name reversed
emit RaffleEnter(msg.sender);
}
/**

@dev This is the function that the Chainlink Keeper nodes call
they look for upkeepNeeded to return True.
the following should be true for this to return true:

The time interval has passed between raffle runs.

The lottery is open.

The contract has ETH.

Implicity, your subscription is funded with LINK.
/
function checkUpkeep(
bytes memory / checkData /
)
public
view
override
returns (
bool upkeepNeeded,
bytes memory / performData */
)
{
bool isOpen = RaffleState.OPEN == s_raffleState;
bool timePassed = ((block.timestamp - s_lastTimeStamp) > i_interval);
bool hasPlayers = s_players.length > 0;
bool hasBalance = address(this).balance > 0;
upkeepNeeded = (timePassed && isOpen && hasBalance && hasPlayers);
return (upkeepNeeded, "0x0"); // can we comment this out?
}

/**

@dev Once checkUpkeep is returning true, this function is called
and it kicks off a Chainlink VRF call to get a random winner.
/
function performUpkeep(
bytes calldata / performData */
) external override {
(bool upkeepNeeded, ) = checkUpkeep("");
// require(upkeepNeeded, "Upkeep not needed");
if (!upkeepNeeded) {
revert Raffle__UpkeepNotNeeded(
address(this).balance,
s_players.length,
uint256(s_raffleState)
);
}
s_raffleState = RaffleState.CALCULATING;
uint256 requestId = i_vrfCoordinator.requestRandomWords(
i_gasLane,
i_subscriptionId,
REQUEST_CONFIRMATIONS,
i_callbackGasLimit,
NUM_WORDS
);
// Quiz... is this redundant?
emit RequestedRaffleWinner(requestId);
}

/**

@dev This is the function that Chainlink VRF node
calls to send the money to the random winner.
/
function fulfillRandomWords(
uint256, / requestId */
uint256[] memory randomWords
) internal override {
// s_players size 10
// randomNumber 202
// 202 % 10 ? what's doesn't divide evenly into 202?
// 20 * 10 = 200
// 2
// 202 % 10 = 2
uint256 indexOfWinner = randomWords[0] % s_players.length;
address payable recentWinner = s_players[indexOfWinner];
s_recentWinner = recentWinner;
s_players = new address payable;
s_raffleState = RaffleState.OPEN;
s_lastTimeStamp = block.timestamp;
(bool success, ) = recentWinner.call{value: address(this).balance}("");
// require(success, "Transfer failed");
if (!success) {
revert Raffle__TransferFailed();
}
emit WinnerPicked(recentWinner);
}

/** Getter Functions */
function getRaffleState() public view returns (RaffleState) {
return s_raffleState;
}
function getNumWords() public pure returns (uint256) {
return NUM_WORDS;
}
function getRequestConfirmations() public pure returns (uint256) {
return REQUEST_CONFIRMATIONS;
}
function getRecentWinner() public view returns (address) {
return s_recentWinner;
}
function getPlayer(uint256 index) public view returns (address) {
return s_players[index];
}
function getLatestTimeStamp() public view returns (uint256) {
return s_lastTimeStamp;
}
function getInterval() public view returns (uint256) {
return i_interval;
}
function getEntranceFee() public view returns (uint256) {
return i_entranceFee;
}
function getNumberOfPlayers() public view returns (uint256) {
return s_players.length;
}
} `

Hardhat config
` require("@nomiclabs/hardhat-waffle")
require("@nomiclabs/hardhat-etherscan")
require("hardhat-deploy")
require("solidity-coverage")
require("hardhat-gas-reporter")
require("hardhat-contract-sizer")
require("dotenv").config()
const GOERLI_RPC_URL = process.env.GOERLI_RPC_URL || "https://eth-rinkeby" //do process.env.goerly_rpc_url, and if that doesn't work, do the other seperated by ||
const PRIVATE_KEY = process.env.PRIVATE_KEY || "0xkey"
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "key"
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY || "key"
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
blockConfirmations: 1
},
goerli: {
url: GOERLI_RPC_URL,
accounts: [PRIVATE_KEY],
chainId: 5,
blockConfirmations: 6,
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
gasReporter: {
enabled: false,
currency: "USD",
outputFile: "gas-reporter.txt",
noColors: true,
},
solidity: "0.8.7",
namedAccounts: {
deployer: {
default: 0,
},
player: {
default: 1,
},
},
//set time out for how long it takes an event to be emitted. 200 seconds
mocha:{
timeout: 1000000 //500 seconds max for testing
}
};
`

The async part of your test is simply not resolving before exceeding the timeout set by your "mocha">>hardhat.config.  The unresolved call is DEFINITELY in any of the function


Improved the UI of the buttons

Made changes in About.css and style.css files and improved the UI of the button.
Attaching the screenshots below
Added hovering effects to the button

please mention your Issue number

@Dev-tanay Hey its #290


[CI]Upgrade Windows runner os to windows-2022 and generator

Motivation
As github windows runner latest upgrade to 2022, the ci-cpp-build-windows.yaml workflow should be changed otherwise the action would be failed such as this one
Modifications

Upgrade os version to 2022
Change generator to Visual Studio 17 2022

Verifying this change

[x] Make sure that the change passes the CI checks.

Documentation

[x] no-need-doc

@BewareMyPower PTAL

@codelipenghui Should we cherry-pick this PR to branch-2.10? It affects the CI. But I see 2.10.0 is not released yet.

@BewareMyPower Yes, I have cherry-picked into branch-2.10 and will contain this fix in 2.10.0


Typescript definitions : string => number

Describe the bug
Using version "4.22.3"
Currently, some ts definitions related to numeric information are typed as string.
Could it be possible to change them
interface CpuData {
    speed: string; => number
    speedmin: string; => number
    speedmax: string; => number
}

interface CpuCurrentSpeedData {
    min: string; => number
    max: string; => number
    avg: string; => number
}

Thanks

@emmkimme Thank you for your discovery. I guess für cpuData the typings are (unfortunately) correct. I need to change the results to be numbers (which would be a breaking change) but currently they are strings. This will change in version 5. For CpuCurrentSpeedDatayou are absolutely right. I changed it and released a new version 4.22.4.


Cannot send search params = 0

Reported by Predominant | January 13th, 2011 @ 01:30 AM
trying to search my db for status = 0
using search plugin, status:0 evaluates to empty and does not get passed into the search conditions
in my case it is a query, so the issue lies on like 266 of searchable.php
if ((method_exists($model, $field['method']) || $this->__checkBehaviorMethods($model, $field['method'])) && !empty($data[$field['name']])) {
(Migrated from Github issues)

Seems like a duplicate of https://github.com/CakeDC/search/issues/3 ?


Create method to return File Payment consents with only mandatory fields

Description
Create methods in securebanking-openbanking-uk-obie-datamodel to initialize objects only with the mandatory fields according to the File Payment Consents - v3.1.8 Documentation

Heads up for fileHash logic - TBD


Misleading description of Level column in AppServiceConsoleLogs.

For the App Service, standard output and standard error output can be obtained from AppServiceConsoleLogs. These logs are output as Standard Output = Informational level and Standard Error Output = Error level. For standard output, all output is at the Informational level, regardless of the log level at which it is output.
_logger.Log(LogLevel.Information, "Information level Log");
_logger.Log(LogLevel.Warning, "Warning level Log");
_logger.Log(LogLevel.Error, "Error level Log");
_logger.Log(LogLevel.Critical, "Critical level Log");

Console.WriteLine("Hello, StdOut!");
Console.Error.WriteLine("Hello, StdErr!");

In the Azure Monitor reference page, the description of the Level column for AppServiceConsoleLogs is misleading, we think, because it is perceived as referring to the log level of standard output. In fact, AppServiceConsoleLogs Level is supposed to have only two types of output: standard output or standard error output.

https://docs.microsoft.com/en-us/azure/azure-monitor/reference/tables/appserviceconsolelogs#columns

I appreciate the opportunity to discuss the description of the Level column in the above reference.
Regards,

@bwren - Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@bwren - nudge


add select_node and deselect_node check

when node state disabled is true cancel select_node and deselect_node

Hello, thank you for suggesting this pull but I can not merge this.
select_node and deselect_node should never be prevented - they are low level functions the developer can use.
The end user only invokes activate_node which is properly prevented.
Best regards,
Ivan


-Issue#212: Adding more machine translation alternatives

I have worked on #212: Adding more machine translation alternatives (Glosbe & Wikimedia MinT)
Please review and merge: @nidhaloff

Added the translations to README.

@rupeshkumaar I approved your PR but The tests are failing. Can you check it out or maybe rebase/merge your branch with the latest of master

@rupeshkumaar I approved your PR but The tests are failing. Can you check it out or maybe rebase/merge your branch with the latest of master

@nidhaloff the branch is up to date with the master branch. So, it does not seem to do anything with that. It said poetry installation failed in one of the tests. Can you please check that?

Please review now and merge @nidhaloff


[question] Display C++ code logs to stdout

Current ffi-rs version
1.0.86
Current Node.js arch
x64 win32
Descibe your problem in detail
Hi there, I'm a user of previous ffi-napi, and I'm trying to port code to ffi-rs due to builds not going through on node >=18 now on linux. I was able to run my DLL functions as expected using the current documentation, however we are depending for our debugging on the process output and we save that for each run. With the new ffi-rs package, I don't see dll console outputs anymore. Is there any way to enable that?
What's your expect result
I would like to display logs to stdout

How do you print logs in your code?

I only have access to the DLL test file, and I guess it uses some cout calls or something similar.  The thing was, that with ffi-napi, just by using dll[method], while the function was running I could see the output.
   const dll = ffi.Library('static/executables/XServiceWrapper.dll', {
        'Init': ['int', ['string']],
        'Run': ['int', ['string']]
    });
    const initResponse = dll.Init(initInputString);

Here's a snippet to get an idea of how the code looked like to run a function which displayed dll method logs as well.

OMG I am so sorry.. I got confused by logs actually. It looks like the ffi-rs also displays the logs properly. Pardon me for disturbing, I'll close the issue.


Autodoc Pydantic not working with Sphinx 7.3

Our doc builds have not been working since 7.3 of Sphinx was released and downgrading 7.2.6 fixed my issue.  Below are the error logs and the part of the rst file that broke it:
sphinx-err-mz06c_bc.log
.. autopydantic_model:: zero_true.Layout
:model-show-field-summary: false
:model-show-validator-summary: false

Thanks for raising the issue. I will need to investigate in more detail.
Just to make sure, you are installing autodoc_pydantic from pypi and not from source via GitHub, right?

This is an odd error. The actual exception is not raised by autodoc_pydantic but by sphinx. In fact, for the given piece of code: https://github.com/mansenfranzen/autodoc_pydantic/blob/b9b4e2dea2b380c9ec4289068bea07b06fcf50e3/sphinxcontrib/autodoc_pydantic/directives/options/composites.py#L227-L231
autodoc_pydantic wants to iterate through all Sphinx environment configurations and delegates this to the following Sphinx internals:
https://github.com/sphinx-doc/sphinx/blob/de4ac2fbdebae529a973910e96794645158f0401/sphinx/config.py#L431-L433
It seems as if your sphinx environment has some configuration value that does not have the rebuild attribute defined. I don't know which configuration exactly causes the error. Likely this is not caused by autodoc_pydantic directly.
If your repository is public, I could debug myself. If not, you will need to debug it yourself. If using a debugger feels intimidating, you can just add a print to show the name of the config. Moreover, it would be useful if you could share your conf.py.

I'm seeing the same issue. Disabling this extension results in by documentation building successfully. Unfortuniatly, my project is private so I can't provide an example but I have some additional info.
With the last location in the traceback being the following:
.../sphinx/config.py", line 433, in __iter__
    yield ConfigValue(name, getattr(self, name), opt.rebuild)

I inserted a quick and dirty print statement to see what config value was triggering the error.
    def __iter__(self) -> Iterator[ConfigValue]:
        for name, opt in self._options.items():
            print(f"{name = }  |  {opt = }")
            yield ConfigValue(name, getattr(self, name), opt.rebuild)

The output received just before the error is name = 'html_permalinks_icon'  |  opt = ('#', 'html', ()).
I do not have html_permalinks_icon defined in my conf.py so it is being triggered by the default value (docs).
Doing a bit more digging, sphinx 7.3.2 patched a bad interaction with furo (which i am using) involving a tuple so this may be a continuation of that.
Versions I'm currently using:
autodoc_pydantic: 2.1.0
furo: 2024.1.29
sphinx: 7.3.7

@mansenfranzen my project is public: https://github.com/Zero-True/zero-true.
The issue occurred both locally (Windows) and in a GHA running on Ubuntu.  Locally it was Python 3.11 and GHA is 3.9 I believe.

@all-contributors please add @Carson-Shaar for bug

@all-contributors please add @ITProKyle for bug

@all-contributors please add @bruno-f-cruz for bug


remove asserted links

FYPO:0003485 is_a FYPO:0001334
was it originally a copy/fail-to-edit error? anyway, it doesn't make biological sense

FYPO:0006708 is_a FYPO:0005033 also just wrong


Fix #20718

As per #20718, this fixes support for Blob and Queue's NewClientFromConnectionString where the connection string uses both a SAS token and (Blob|Queue)Endpoint parameters.
I've also created azqueue/internal/shared/shared_test.go, using the azblob equivalent as a baseline

Hey @siminsavani-msft @tasherif-msft - is there anything left to do before this can be merged?

/azp run go - azblob

/azp run go - azqueue


[Bug]: Pre lodder taking too much time.

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When we open website, prelodder is taking much time.
Expected behavior
It should take only 2-3 seconds.
Add ScreenShots/Videos

On which device are you experiencing this bug?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 Extended contributor
[X] I'm a Hacktoberfest'24  contributor
[X] I have starred the repository

@apu52 can i work on this issue

YESS , U CAN , Just ping me after 5 th dec ,I will assign u this issue

@SanikaBhalerao1345 I have assigned you , u can start working on this issue .


various small fixes for the benchmark test

Codecov Report

Merging #821 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #821   +/-   ##
=======================================
  Coverage   91.02%   91.02%
=======================================
  Files          87       87
  Lines        6060     6060
=======================================
  Hits         5516     5516
  Misses        345      345
  Partials      199      199

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 34996e2...f4e9404. Read the comment docs.


feat(executor): Move exit code capture to controller.

This will remove any problems related to being unable to speak to the Kubernetes API at the end of a pod running.

@sarabala1979 bump!


PDF loses text when rendering

PDF loses text when rendering with pdf.js
See example

Left is pdf.js and right is how the PDF looks like in other Previewers.
Example pdfs can be downloaded here.
http://frialigan.se/wp-content/uploads/2013/06/Svavelvinter_quick-start_set.zip
Recreate
Download zip from above
Extract and locate Svavelvinter_scenario.pdf
Upload Svavelvinter_scenario.pdf to pdf.js previewer
Go to second page. Now most of the text is missing.
Similar errors with other pdf in the same zip above.

Hi,
I could not reproduce the issue. All the text showed up in all the pdfs in the given download.
The text shows up for "Svavelvinter_scenario.pdf".

The text also showed up in "Svavelvinter_quick-start_rules.pdf" on the 3rd page.

Browser: Chrome Version 64.0.3282.186 (Official Build) (64-bit)
PDF version: 1.7
OS: OSX 10.11.6

Marking as upstream for now since it doesn't directly look like it's caused by PDF.js itself.

Given the age of this issue, and the fact that it seems related to a particular browser (and its version) rather than the PDF.js library itself, should this simply be closed now?


monumap.org is down

Greetings,
The link to https://monumap.org/ in the README points to an apparently dead site.
Perhaps it makes sense to remove the link?

Thanks, removed it


Followers not joining cluster

I can only ever get this result, how to get followers to join the cluster?
vault operator raft list-peers
Node     Address                 State     Voter

node1    node1.vault.int:8201    leader    true

@Narragansett Could you describe your running configuration and which version of the module are you using?

I'm not using any configuration. I'm using latest master branch from here -  https://github.com/binlab/terraform-aws-vault-ha-raft
With the default setup cluster size = 3. Does master branch work for you as-is?
Thank you!

I tried pulling master again, minimal non-important changes, e.g. enable debug,  declare private_key as sensitive=true, etc. Same result, only the leader is part of the cluster. Followers are absent. Can you try it, We need to build it from master. Should be close but isn't working. ty!
vault operator raft list-peers
Node     Address                 State     Voter

node2    node2.vault.int:8201    leader    true

Has anyone else tried this from master? I keep trying, clone master, but all I get is one leader and no followers. Please help!

I'm not using any configuration. I'm using latest master branch from here - https://github.com/binlab/terraform-aws-vault-ha-raft

you need at least some Terraform code to call module, that's what I mean

With the default setup cluster size = 3. Does master branch work for you as-is?

for a cluster mode you need at least 3 nodes, it's correct. But for testing, even one node should work

I tried pulling master again, minimal non-important changes, e.g. enable debug, declare private_key as sensitive=true, etc. Same result, only the leader is part of the cluster. Followers are absent. Can you try it, We need to build it from master. Should be close but isn't working. ty!

Vault module from master should work, it's tested. I just tried to create a cluster from scratch and it is going to. You can start from this example basic-usage-quick-start (this is the one I tried just now).
Then you need to initialise a cluster, manual here: Initializing the newly created cluster.
After successful initialization and login, you should see the following screen by the link (example):
http://tf-vault-ha-basic-alb-1234567890.us-east-1.elb.amazonaws.com:443/ui/vault/storage/raft

Interesting. I pulled master again, minimal changes and I still get only one node joined the cluster, attachment.

I'm also attaching the minimal changes needed to get it running with Terraform v1.0.4. cluster_count is   default     = 3
"node_allow_public"
default = true
Let me think what else to do. We can't be very far apart. thank you,

I notice your testing screenshot, token login at bottom of initialization page, shows c 2021 Hashicorp Vault 1.4.2. How can this be? 1.4.2 was released early in 2020. Now when I pull master and build, variables.tf, line 562:    default     = "1.8.1". That is the difference. Could you try current master please? That is what is not working, e.g. has only one active node in a cluster of 3. Thank you,

I tried Vault 1.4.1 with same result, only one node in the cluster. I don't see any significant differences between us, indeed I made only the few necessary changes to get it to work, now using Terraform v1.0.5. Let me think what else it could be, ty  I need it to work in a cluster to work on HA concerns.

Interesting. I pulled master again, minimal changes and I still get only one node joined the cluster, attachment.

this is really very interesting but seems I guess what could be the reason. Did you try a fresh install from an example or just update the existing deployment? This is important because some resources are not updated, and if my guesses are correct then this may be the reason

I am doing a fresh install each time. My deploy cycle is - terraform init (once) --> terraform apply --> terraform destroy. I'm back using Vault 1.8.1 as its better to stay with latest. All resources are new, then destroyed. If I try again I start over, everything new each time. And I initialize (1:1) just as you've done. Still thinking - what could it be? Still doesn't work, thank you!

I notice your testing screenshot, token login at bottom of initialization page, shows c 2021 Hashicorp Vault 1.4.2. How can this be? 1.4.2 was released early in 2020. Now when I pull master and build, variables.tf, line 562: default = "1.8.1". That is the difference. Could you try current master please? That is what is not working, e.g. has only one active node in a cluster of 3. Thank you,

I tried with an example what I advised you and yes from the last master branch but I was running a fresh install

Okay, we have to be close. Can you share your minimal Terraform changes to get it to work, similar to what I shared with you. We have to be close, not sure what else I can change to get it working, ty

I am doing a fresh install each time. My deploy cycle is - terraform init (once) --> terraform apply --> terraform destroy. I'm back using Vault 1.8.1 as its better to stay with latest. All resources are new, then destroyed. If I try again I start over, everything new each time. And I initialize (1:1) just as you've done. Still thinking - what could it be? Still doesn't work, thank you!

nice, then to understand the reason, you need to check the logs. Could you go to the instance via ssh and check the logs with the command journalctl --utc -a -u vault.service -r -n 100 or journalctl --utc -a -u vault.service -f for realtime

I will do it tonight, investigate, reply back. Again, thank you so much for the advisory.

Okay, we have to be close. Can you share your minimal Terraform changes to get it to work, similar to what I shared with you. We have to be close, not sure what else I can change to get it working, ty

My Terraform versions are
$ terraform version
Terraform v1.0.3
on linux_amd64
+ provider registry.terraform.io/community-terraform-providers/ignition v1.3.0
+ provider registry.terraform.io/hashicorp/aws v3.55.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/tls v3.1.0

and this example from scratch with no changes

@Narragansett btw, a similar issue was recently fixed by this PR #52, and more details here #51
but anyway, to help you I need to see a logs

Great! I see the error, I know what it means and why its happening. I just am not certain how to fix it, or why it would be happening to me alone. node-2 is the leader and it is alone in the cluster. Thank you!
vault-node-0.log.zip
vault-node-1.log.zip
vault-node-2.log.zip
| * Vault is sealed
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]:   |
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]:   | Code: 503. Errors:
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]:   | URL: PUT https://node2.vault.int:8200/v1/sys/storage/raft/bootstrap/>
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]:   |
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]:   | error during raft bootstrap init call: Error making API request.
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]:   error=
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]: 2021-08-24T21:00:10.584Z [WARN]  core: join attempt failed:
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]: 2021-08-24T21:00:10.577Z [INFO]  core: attempting to join possible raft >
Aug 24 21:00:10 ip-192-168-1-193.ec2.internal docker[1756]: 2021-08-24T21:00:10.577Z [INFO]  core: security barrier not initialized

Also, I am following this example diligently, using master of today -
https://github.com/binlab/terraform-aws-vault-ha-raft/tree/master/examples/basic-usage-quick-start
The master doesn't quite do all of what the example says, but I trust that's not significant right now ...
with auto unseal by AWS KMS and AWS NAT Gateway enabled
Additional I had to change variables.tf -
variable "node_allow_public" {
default = true

It appears you must be using autounseal using KMS keys. I will next try to set that up. thanks!

Okay! Using autounseal it works! I get a cluster of 3x. Thanks for guiding me through it, and pointing me to the logs. It was better that way as I learned a lot lot more. Thank you so much for such nice project work! User error, auto unseal made it work.


MsgPack: add a way for configuring SerializationContext

This would allow to add serializers for types that aren't supported by default and serializing to a more compact format.

That's required for both server and client right?

Client would be nice, but just server could be useful for the TS client.

I have not investigated it yet but it also may be useful if you want camelCase property names.

@moozzyk Do we need to separate the payload context from the outer framing context like we do with JSON.NET?

No - we write the message directly without using the context. We only use the context to write user values. We will have to set some settings on the context and if the user changes them they might shoot themselves in the foot (e.g. they change the serialization to use arrays for objects instead of maps and they won't be able to deserialize in JavaScript).

So the context is only ever for user values. We should treat it like we do JSON.NET settings.

+1 to both

Moved it into alpha2

Fixed in ba25dee1417b882a1c0993118a4fe6cfaa98c3fc


Custom IP Range

I wanted to get the server OpenVPN to run on an IP range that was not <IP_ADDRESS>. I added the ability for the user to specify which range the server shall assign IP addresses. This does not, however, implement custom subnets, it uses the default /24.
My changes are below. You can find these at line 246 in the file openvpn-install.sh. I followed a similar variable name as the others. This variable is then used in place of <IP_ADDRESS> and <IP_ADDRESS>.
echo "What IP range settings do you want OpenVPN to use?"
echo "   1) Default: <IP_ADDRESS>"
echo "   2) Custom"
until [[ "$IP_CHOICE" =~ ^[1-2]$ ]]; do
	read -rp "IP choice [1-2]: " -e -i 1 IP_CHOICE
done
case $IP_CHOICE in
	1)
		IP_RANGE="<IP_ADDRESS>"
	;;
	2)
		until [[ "$IP_RANGE" =~ ^([0-9]{1,3}\.){3}0$ ]]; do
			read -rp "Custom IP [x.x.x.0]: " -e -i <IP_ADDRESS> IP_RANGE
		done
	;;
esac

I don't understand the variable $VAR. What's it supposed to mean? Isn't there a better name?

Yes it is supposed to have a better name, I sincerely apologize for that error. I committed the wrong file, ${VAR: : -1} is supposed to be ${IP_RANGE: : -1}. I have fixed this is my latest commit.
Let me know if you have any other concerns.

I have committed your suggested changes. Thank you for the fix.

This would be handy. Any docs on how to change already set tun0 <IP_ADDRESS>?
E.g.
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>  destination <IP_ADDRESS>
        inet6 xxx::xxx:xxx:xxx:xxx  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 100

Also, worth maybe changing the default. See here, https://community.openvpn.net/openvpn/wiki/AvoidRoutingConflicts
The default has a high chance of conflicting with "default settings for routers/acces points/switches/etc"

This would be handy. Any docs on how to change already set tun0 <IP_ADDRESS>?
E.g.
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>  destination <IP_ADDRESS>
        inet6 xxx::xxx:xxx:xxx:xxx  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 100

@dnk8n I'm not 100% sure how to accomplish this, I'll have a look into changing an already setup tun0.

Also, worth maybe changing the default. See here, https://community.openvpn.net/openvpn/wiki/AvoidRoutingConflicts
The default has a high chance of conflicting with "default settings for routers/acces points/switches/etc"

I wouldn't be opposed to changing the default; its quite easy in the code. I only left it as <IP_ADDRESS> as that is what is currently is in the script.

This works perfectly, I would really like to see it merged into the main script. Just to dive into my usecase:
I have two VPSs in two separate countries, I wanted to setup OpenVPN on each of them, and then have my local pfSense instance be a client to both of them, t ohave two LANs behind each VPN. For the routing in pfsense, if both clients are on the same <IP_ADDRESS>/24 subnet, it won't work. With this I can easily have my 2nd OpenVPN instance be a different subnet and make it work.

Yes, would like to get this merged into main also. I have multiple VPN servers in different countries and they require simultaneous connections sometimes. Having an option to specify a custom IP instead of 10.8.x.x is ideal


Live demo error

I try to run live demo but not success, please fixed it.
Thank you!

seems to load well for me. are you sure its not some local network issue?

Good afternoon!
I run it again with Microsoft Edge then it seems to work.
But Google Chrome Version 87.0.4280.88 (Official Build) (64-bit) does not.

Any extra setting needed?

strange. i ran it today on my chrome mobile. i wonder whats blocking those urls on your browser. later today I'll check on a desktop chrome but I don't expect it to behave differently than mobile chrome.

Does it useful?

thats actually ok, but i just checked chrome desktop and it works well.
its possible that you have some local issue or maybe didn't provide permissions/running in incognito (very unlikely).
anyway, suggest you just try it out locally in your local project and it should be ok as the demo works for me on desktop and mobile.

Thank you, i will take a try with local environment.

Safari doesn't support ServiceWorkerRegistration.showNotification() so then we have the following error:

TypeError: serviceWorkerRegistration.showNotification is not a function. (In 'serviceWorkerRegistration.showNotification(title, options)', 'serviceWorkerRegistration.showNotification' is undefined)

Without registering the service worker it is OK - may need to do browser/feature detection:
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification

i would expect that on safari the sw won't be provided. i can do the check myself internally but the actions would be ignored and that might be unexpected behavior. no?


Made processor_use consistent with other name/label conventions

Noticed after displaying on a graph, both memory use percentage and cpu use percentage metric naming conventions are inconsistent.

Hi @drewzh,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!


Not having to upload a document, a strong motivator to choose Verify, was only discovered accidentally by some users.

Impact: Users were less likely to select the verified route
Evidence: Some users who chose the unverified route without intending to, were more positive about the verified route than those who had not.
“Of this is good, you don’t have to upload any documents” User 4

I think this should be addressed by #240.


please fix spelling mistakes in README.md

see https://github.com/NUS-HPC-AI-Lab/OpenDiT/pull/67 @oahzxl

fixed now. thanks

还有这里，这里我改不了，您这边劳烦您操作一下。

ok, thanks!


[BUG] max_grad_norm not effect

Describe the bug
A clear and concise description of what the bug is.
deepseed config gradient_clip set as auto
max_grad_norm set as 1.0
but it not effects
deepspeed version is  0.14.5,when i change to  0.15.3,0.15.4,it has the same quesiton.
I use Firefly sft as the train repo
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
ds_report output
Please run ds_report to give us details about your setup.
Screenshots
If applicable, add screenshots to help explain your problem.
System info (please complete the following information):

OS: [e.g. Ubuntu 18.04]
GPU count and types [e.g. two machines with x8 A100s each]
Interconnects (if applicable) [e.g., two machines connected with 100 Gbps IB]
Python version
Any other relevant info about your setup

Launcher context
Are you launching your experiment with the deepspeed launcher, MPI, or something else?
Docker context
Are you using a specific docker image that you can share?
Additional context
Add any other context about the problem here.

it seems that they do not implement it at all


Source files

Hi guys,
I am looking at your codes. I realized that in the root you have 3 folders "Mafia-TCoS-source", "Mafia-TCos Source" and "Src".
I need to know about what are the main functionality of the code located inside each of these 3 folders. Especially the names "Mafia-TCoS-source" and "Mafia-TCos Source" are realy close to each other, they are seperated by just one letter and this seems confusing to me.
Would you provide me with an answer latest tomorrow morning? (I appraciate if you provide a quick answer)
Thanks,
Metin

Hi sir, @metincansiper
We had experienced merge conflicts. So, after I merged my branch(Gokcan-feature-branch) with the master;  Melis and Gökberk merged their branches too(with changing the file names.)
This below branch is the branch contains the Main.java, Network, Server(Node.js), Controller subsystems and %30 of the (UI and Model) classes https://github.com/Skylifee7/Mafia-TCoS-CS319-Group2A/tree/master/Mafia-TCoS-source.
Melis' and Gökberk's branches contain %70 of the UI and Model classes + Achievement feature + some tweaks(additions) on GameEngine which you may want to see from below links:
https://github.com/Skylifee7/Mafia-TCoS-CS319-Group2A/tree/master/Mafia-TCos Source
https://github.com/Skylifee7/Mafia-TCoS-CS319-Group2A/tree/master/Src
Regards.
-Gökcan


Add Markdown description to demo examples

What
Add Markdown description walking through most of the archetypes involved in each example.
Some information is duplicated, assuming users could click on any example as their first example.
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested demo.rerun.io (if applicable)

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

@nikolausWest not sure if this should be included in changelog and what not


Fix a bug that graph is not rendered when timestamp is not set in span

resolves #2906
Before

After

sorry about the late comment. @shakuzen's note was asking about if data would be valid if there's no timestamp based on the notes in our docs about it. It is still invalid, but the trace should render.
I think in general we've had think that because our data format permits certain fields like localEndpoint and timestamp to be absent, that means the data is valid.
The reason it can be confusing is that spans can be reported twice. ex span.flush() followed by span.finish(). There are 2 json in this case and span-cleaner in lens will merge those as one. This means that if one or the other has a timestamp, we are fine.
Spans that never started are a bug, in other words. Spans reported twice are not necessarily a bug. In any case a missing timestamp shouldn't crash the UI for the trace.
Given this, should we merge the change?
cc @jorgheymans as being the issue-master this topic is an important and frequently misunderstood one. I'm even thinking about finding a place in our openapi docs to double or triple underscore that nullability of a field does not imply it is good data to leave it out. Somehow we need to clearly say that "patching" a span can happen and in that case, consider the merged data when thinking of how to interpret fields.

Also sorry about being late, i'ld say merge this in pending this comment https://github.com/openzipkin/zipkin/pull/2926#discussion_r348915149 .
About making this clear in the openapi docs, I don't think this will buy us much. Having a trace diagnostic tool somewhere that is able to tell if a trace is more or less as we expect it or not, what is wrong, what we can compensate in the UI etc would be more helpful. It's along these lines https://github.com/openzipkin/zipkin/issues/1484 , but i'm more thinking a separate endpoint where you would upload a trace or give it the id of a trace that isn't showing and it spits out the diagnostics.


[BUG] The balance is displayed in two row on the Home screen on Google Pixel 4 XL

Pre-conditions:

The user is logged in

Steps to reproduce:

Launch the App
Pay attention to the balance on the home screen

Expected result: The balance should be displayed in one row on the Home screen on Google Pixel 4 XL
Actual result: The balance is displayed in two row on the Home screen on Google Pixel 4 XL
Environment:  Native app [staging] 1.28.1-7
Devices list: Pixel 4 XL // Android 11 // Screen 19:9   1440x3040    6.3"
Note: The issue reproduced on specific devices Checked on the other devices the issue is not reproduced, also checked on Samsung Galaxy S10 with similar screen 1440Xx3040 6.1'' - the issue is not reproduced.
Attachment:
https://www.screencast.com/t/Os3JHgMxXw

@julianpolcode The balance is displayed in one row but the last symbol of the balance amount is not displayed.
Environment: Native app [staging] 1.29.1-2 (1696)
Devices list: Pixel 4 XL // Android 11 // Screen 19:9 1440x3040 6.3"
Attachment:
https://www.screencast.com/t/joNPjDoOhrr

@julianpolcode
The issue is not reproduced. All symbols of balance amount are displayed in one row.
Checked on the: Native app [dev] 1.30.0 (1744)
Devices:
Pixel 4 XL // Android 11 // Screen 19:9 1440x3040 6.3"
Attachment:
https://www.screencast.com/t/goZwRAMgqFR


Refresh all vs refresh by org for tools

Failing for refresh all, but not refresh by org.
Workaround is refresh by org after adding a tool in that org (make sure to use toolname).
Issue could be related to adding a new org when you have existing orgs, as once the above workaround is done, refresh all will work.
┆Issue is synchronized with this Jira Bug
┆Issue Type: Bug
┆Fix Versions: Dockstore 2.X
┆Issue Number: DOCK-401

@agduncan94  probably will need to grab more information, it doesn't seem to be a systematic issue with refresh to add an organization

will revisit in light of GitHub apps


[DOCFIX] add one command in cn docs

NanJing University Hackathon

Can one of the admins verify this patch?

Thanks @xuerenlv for the translation! The PR looks great.
Per Alluxio convention, can you please add [DOCFIX] in the PR title as the prefix?
If there's any JIRA ticket for this, you can also add the ticket link in the PR description.

ok to test

thanks @xuerenlv , I left one minor comment, otherwise LGTM

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10247/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10252/
Test PASSed.

LGTM, thanks for the improvement!

Can you please add the JIRA ticket URL (https://alluxio.atlassian.net/browse/ALLUXIO-1982) in the PR description?

Another PR (https://github.com/Alluxio/alluxio/pull/3465) was issued for the same ticket after this one.
So please make sure to grab the JIRA ticket first (assign it to yourself) and then start working on it. Otherwise multiple PRs could work on the same ticket...
Also it would help avoid conflicting by adding the JIRA ticket URL in the PR description. This way, the PR is automatically linked in the corresponding JIRA ticket.

very sorry! this is the first time . should i close it ?

Sorry, never mind my previous message, the other PR was for a different ticket (for swift), this one is for GlusterFS.
Please just add the corresponding JIRA ticket in the PR description and title :)
thanks!

ALLUXIO-1978
Add the bootstrap-conf command snippet in Configuring-Alluxio-with-GlusterFS.md of the Chinese version according to the English version for Alluxio 1.1

Can one of the admins verify this patch?

+1 LGTM


color error in ribbon plots: missing data at start of line and (-inf) levs

Reported by ansley b manke on 6 Jan 2015 18:17 UTC
Dorothee noticed this.  If the data we're using for coloring a ribbon plot starts with missing data and we're using color levels starting with (-inf), the colors start as if the data is zero, not missing.
yes? let/units=degrees_east xvar = {-177,-174,-186}
yes? let/units=degrees_north yvar = {-43, -45, -42}
yes? let vvar = {,271, 319}

yes? set win/asp=1.5

yes? set v upper
yes? PLOT/VS/RIBBON/LINE/SYM/FAST/\
  LEVELS=(-inf)(160,560,20)(INF)/THICK=3\
  /title="(-inf) in levels" xvar,yvar,vvar

yes? set view lower
yes? PLOT/VS/RIBBON/LINE/SYM/FAST/\
  LEVELS=(160,560,20)/THICK=3\
  title="linear levels" xvar,yvar,vvar

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2226

Comment by ansley.b.manke on 6 Jan 2015 19:35 UTC
This is fixed. It had to do with the way missing-data flags are sent from Ferret into PPLUS.
ppl/plot/plotxy_ribbon.F
more testing showed that the bug was only happening in the case where the color-by variable has a missing value as the first value in the list, and when using (-inf) in the color levels.

Attachment from ansley.b.manke on 6 Jan 2015 18:21 UTC
upper panel shows the bug; lower panel without (-inf) is correct
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_2226_GIT_1498/bug2226.gif


(Feature request) Select GPU

With this project, is it possible to choose which gpu the training will take place on? It seems to default to the 0th gpu on the computer, which is not always the most performant one.

Ok! I think that's technically more a bug with wgpu (or windows?), as the logic should already be to pick the dedicated GPU, but either way good to have an override! egui PR just landed so now just the Burn one. Burn is having some issues at head but hope to have those resolved soon

Ok I resolved the last few issues in the Burn update, and landed the selection! After this PR https://github.com/ArthurBrussee/brush/commit/820deb5afe30df65718d0fec461bbbff8d9845cd
You can set the CUBECL_WGPU_DEFAULT_DEVICE env variable to pick between GPUs like this:
CUBECL_WGPU_DEFAULT_DEVICE=DiscreteGpu(1)  // Use discrete GPU index 0
CUBECL_WGPU_DEFAULT_DEVICE=IntegratedGpu(0) // Use integrated GPU index 0

Again I suspect there's a bug in wgpu so they might both be reported as dedicated / integrated, not sure.
I've added a display of what GPU is being used: https://github.com/ArthurBrussee/brush/commit/809c1d8055327c5927510924d834b76d82f53ea6
Lmk if that works!

Thank you! It appears to select the correct device now. But it has another error unfortunately, It fails with: There was no valid format for the surface at all.
(base) astatin3@acer:~/Documents/GitHub/brush$ CUBECL_WGPU_DEFAULT_DEVICE="DiscreteGpu(0)" RUST_BACKTRACE=1 cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s
     Running `target/debug/brush_bin`
[2024-11-01T17:21:08Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_support: Initialization of an object has failed
[2024-11-01T17:21:08Z ERROR eframe::native::run] Exiting because of error: WGPU error: There was no valid format for the surface at all.
thread 'main' panicked at crates/brush-desktop/src/main.rs:33:10:
called `Result::unwrap()` on an `Err` value: Wgpu(NoSurfaceFormatsAvailable)
stack backtrace:

   0: rust_begin_unwind
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
   1: core::panicking::panic_fmt
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:74:14
   2: core::result::unwrap_failed
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1677:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1102:23
   4: brush_bin::main
             at ./crates/brush-desktop/src/main.rs:28:9
   5: core::ops::function::FnOnce::call_once
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Hmmm well that would also explain why it wasn't picked before - it seems wgpu doesn't believe it can support rendering the surface / window. Do you have other graphical applications that do run on this GPU? I'm not sure how integrated + dedicate GPU stuff works on Linux.

Sorry for the late response,
This should be the only program that is running on that GPU.
I believe this is solved, I have run into Linux support problems.