File missing

Hi,
I tried running one of your notebooks VGG16 and inception v3. I am unable to find the features.pkl file in the github repository and hence unable to run the code. Will u be able to kindly provide me with the file. Thank u

Ok i will provide
On Sun, Oct 15, 2023, 7:45 PM Gavin Pereira @.***>
wrote:

Hi,
I tried running one of your notebooks VGG16. I am unable to find the
features.pkl file in the github repository and hence unable to run the
code. Will u be able to provide me with the file.
—
Reply to this email directly, view it on GitHub
https://github.com/riad5089/Image_Caption_Generator/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AWJ7RUL3CW4GFVWEMS4L2KTX7PSGFAVCNFSM6AAAAAA6BAW6QWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DGOBZGU2DMMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

https://drive.google.com/file/d/1uE4-QXcnTncR3sxFKJUG4wqe6qXwtaeN/view?usp=sharing
On Sun, Oct 15, 2023 at 7:57 PM Md Riad @.***> wrote:

Ok i will provide
On Sun, Oct 15, 2023, 7:45 PM Gavin Pereira @.***>
wrote:

Hi,
I tried running one of your notebooks VGG16. I am unable to find the
features.pkl file in the github repository and hence unable to run the
code. Will u be able to provide me with the file.
—
Reply to this email directly, view it on GitHub
https://github.com/riad5089/Image_Caption_Generator/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AWJ7RUL3CW4GFVWEMS4L2KTX7PSGFAVCNFSM6AAAAAA6BAW6QWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DGOBZGU2DMMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hello,
I am running this notebook on kaggle. When i am running it am getting this error can u help me solve it pls. (i put the image below). (https://www.kaggle.com/gavinpereia/testm3) this is the link to to notebook can u help me pls to solve this error.
Thank u.

Have you run this code?
features = {}directory = os.path.join(base_dir, 'Images')
for img_name in tqdm(os.listdir(directory)):
# load the image from file
img_path = directory + '/' + img_name
image = load_img(img_path, target_size=(224, 224))
# convert image pixels to numpy array
image = img_to_array(image)
# reshape data for model
image = image.reshape((1, image.shape[0], image.shape[1], image.shape[2]))
# preprocess image for vgg
image = preprocess_input(image)
# extract features
feature = model.predict(image, verbose=0)
# get image ID
image_id = img_name.split('.')[0]
# store feature
features[image_id] = feature
On Sun, Oct 15, 2023 at 9:15 PM Gavin Pereira @.***>
wrote:

Hello,
I am running this notebook on kaggle. When i am running it am getting this
error can u help me solve it pls. (i put the image below). (
https://www.kaggle.com/gavinpereia/testm3) this is the link to to
notebook can u help me pls to solve this error.
Thank u.
[image: image]
https://user-images.githubusercontent.com/111137522/275334946-a3b0f9f7-49b7-44b1-9925-6ac63b61bcd4.png
—
Reply to this email directly, view it on GitHub
https://github.com/riad5089/Image_Caption_Generator/issues/1#issuecomment-1763420812,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWJ7RUMAAWQLKLIKVH53GATX7P4YZAVCNFSM6AAAAAA6BAW6QWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGQZDAOBRGI
.
You are receiving this because you commented.Message ID:
@.***>

yes

then just use this code
pickle.dump(images_features, open(os.path.join(working_dir,
'images_features.pkl'), 'wb'))
On Sun, Oct 15, 2023 at 9:27 PM Gavin Pereira @.***>
wrote:

yes
—
Reply to this email directly, view it on GitHub
https://github.com/riad5089/Image_Caption_Generator/issues/1#issuecomment-1763424024,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWJ7RUNCIEUZRKWWE3YX6SDX7P6GBAVCNFSM6AAAAAA6BAW6QWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGQZDIMBSGQ
.
You are receiving this because you commented.Message ID:
@.***>

so i replaced that part of the code with this?

Yes you can replace ,,,but you can't do in kaggle ,,,you can use google
colab.
On Sun, Oct 15, 2023 at 9:32 PM Gavin Pereira @.***>
wrote:

so i replaced that part of the code with this?
—
Reply to this email directly, view it on GitHub
https://github.com/riad5089/Image_Caption_Generator/issues/1#issuecomment-1763425256,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWJ7RUOKSU55QKLE3WCGUGLX7P6XVAVCNFSM6AAAAAA6BAW6QWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGQZDKMRVGY
.
You are receiving this because you commented.Message ID:
@.***>

this notebook i can run only in google cloba?

No if you use feature.pkl instead of
features = {}directory = os.path.join(base_dir, 'Images')
for img_name in tqdm(os.listdir(directory)):
# load the image from file
img_path = directory + '/' + img_name
image = load_img(img_path, target_size=(224, 224))
# convert image pixels to numpy array
image = img_to_array(image)
# reshape data for model
image = image.reshape((1, image.shape[0], image.shape[1], image.shape[2]))
# preprocess image for vgg
image = preprocess_input(image)
# extract features
feature = model.predict(image, verbose=0)
# get image ID
image_id = img_name.split('.')[0]
# store feature
features[image_id] = feature
This code then you have to do it in Google colab,,,otherwise you can
run thus code and dump it,,in working Directory
On Sun, Oct 15, 2023, 9:37 PM Gavin Pereira @.***>
wrote:

this notebook i can run only in google cloba?
—
Reply to this email directly, view it on GitHub
https://github.com/riad5089/Image_Caption_Generator/issues/1#issuecomment-1763426722,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWJ7RUK36BBPVZUSKBI7O3DX7P7KTAVCNFSM6AAAAAA6BAW6QWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGQZDMNZSGI
.
You are receiving this because you commented.Message ID:
@.***>

so u mean if i remove this part of the code
features = {}
directory = os.path.join(base_dir, 'Images')
for img_name in tqdm(os.listdir(directory)):
# load the image from file
img_path = directory + '/' + img_name
image = load_img(img_path, target_size=(224, 224))
# convert image pixels to numpy array
image = img_to_array(image)
# reshape data for model
image = image.reshape((1, image.shape[0], image.shape[1], image.shape[2]))
# preprocess image for vgg
image = preprocess_input(image)
# extract features
feature = model.predict(image, verbose=0)
# get image ID
image_id = img_name.split('.')[0]
# store feature
features[image_id] = feature
and replace it with this
pickle.dump(images_features, open(os.path.join(working_dir,'features.pkl'), 'wb'))
it should run in kaggle?

or u mean if i remove this code
pickle.dump(images_features, open(os.path.join(working_dir,
'features.pkl'), 'wb')
then i can run it in kaggle.

features = {}
directory = os.path.join(base_dir, 'Images')
for img_name in tqdm(os.listdir(directory)):
load the image from file
img_path = directory + '/' + img_name
image = load_img(img_path, target_size=(224, 224))
convert image pixels to numpy array
image = img_to_array(image)
reshape data for model
image = image.reshape((1, image.shape[0], image.shape[1], image.shape[2]))
preprocess image for vgg
image = preprocess_input(image)
extract features
feature = model.predict(image, verbose=0)
get image ID
image_id = img_name.split('.')[0]
store feature
features[image_id] = feature
pickle.dump(images_features, open(os.path.join(working_dir,'features.pkl'),
'wb'))
You have to use both,,,if you saved the data once by dumped it then you can
use without using above code further
On Sun, Oct 15, 2023, 10:13 PM Gavin Pereira @.***>
wrote:

or u mean if i remove this code
pickle.dump(images_features, open(os.path.join(working_dir,
'features.pkl'), 'wb')
then i can run it in kaggle.
—
Reply to this email directly, view it on GitHub
https://github.com/riad5089/Image_Caption_Generator/issues/1#issuecomment-1763436345,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWJ7RUOC2Z3INKOR72TE3XTX7QDRNAVCNFSM6AAAAAA6BAW6QWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGQZTMMZUGU
.
You are receiving this because you commented.Message ID:
@.***>

Thank You for all your help.


Add OS/X install instructions to README

Thank you!

My pleasure :-)
On Sun, Sep 13, 2015, 18:23 Nadav Samet<EMAIL_ADDRESS>wrote:

Thank you!
—
Reply to this email directly or view it on GitHub
https://github.com/thesamet/rpcz/pull/15#issuecomment-139887095.


ng build --prod doesn't work.

@polbaladas ng build works but the flag that reduce the size of the project is not working in this project.

ERROR in vendor.6b2608bb27b10dd36fea.bundle.js from UglifyJs
Unexpected token: name (p) [vendor.6b2608bb27b10dd36fea.bundle.js:1143,6]

It is already solved, isn't it?


Create an installable pip package

Hello, and thanks for the great tool!
I was wondering if it has been considered to package this so it can be installed and used using pip or another package manager?
Would a PR be accepted creating such a process?

I did not think it would be useful to users; if you think it is, then I would love to see a PR. Thanks!

@Gilthans please review the current state of master. I intend to publish it on pip.

Can't say I'm an expert, but looks good to me!
Sorry, I never did get around to it

You can simply pip install it now, but there's still the issue of packing the model.


understanding-resync hello.png does not match "HELLO"

https://github.com/MicrosoftDocs/windowsserverdocs/blob/master/WindowsServerDocs/storage/storage-spaces/understand-storage-resync.md#understanding-resync
hello.png is for lowercase "hello". Text explanation state's values should match "HELLO"
`In [2]: [bin(ord(x)) for x in "hello"]
Out[2]: ['0b1101000', '0b1100101', '0b1101100', '0b1101100', '0b1101111']
In [3]: [bin(ord(x)) for x in "HELLO"]
Out[3]: ['0b1001000', '0b1000101', '0b1001100', '0b1001100', '0b1001111']`
Also line directly below hello.png contains typo
Asssuming that we have three-way mirror resiliency, we have three copies of this string. Now, if we take server #1 down temporarily (for maintanence), then we cannot access copy #1.

Thanks for your dedication to our documentation. If we have been unable to review your issue in a timely manner, we sincerely apologize for the delayed response. We have captured the informtion you have provided for review. We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


refmt seems broken

plugin version:  0.63
Thanks for your work on this!
Description
refmt seems broken.
I'd expect the reformatted code to match running refmt at the command line.
Is this a known issue?

Hi,
refmt is not broken, you should check that command line is using the same binary (node_modules/bs-platform/lib/refmt) and the same settings for columns width


Show/hide project folder UX

The UI for showing and hiding the project folder on the home page could use a little work. Currently the items related to a project are shown / hidden without marking which project they belong to. It would be nice to have an animation to show / hide the folder, as well as some coloring / callout on the project itself when the folder is open.

Animation probably not needed for this. Marking item as fixed.


Unable to resolve "metro-runtime/src/modules/asyncRequire" from "../app/src/Home.tsx"

Describe the bug
Example app does not work it throw error:
Android Bundling failed 7750ms
Unable to resolve "metro-runtime/src/modules/asyncRequire" from "../app/src/Home.tsx"

To Reproduce
Steps to reproduce the behavior:

Clone the repository
Install yarn globally
cd examples/expo
yarn
yarn android
if you start the Android emulator you see an error

Expected behavior
I expect to run the examples on an Android emulator
Screenshots

Versions (please complete the following information):

Versions used by example app

Smartphone (please complete the following information):

Device: Pixel_6_API_34 emulator

Also seeing this happen on both iOS and Android


Feature request: Add imports to other Bolt files

My bolts file is getting pretty large and it's getting pretty messy with heaps of different entities. It'd be really cool if you could do something like #import "users.bolts" and all your other bolts files into your "rules.bolts".

Great idea.  I've also been thinking about way to make application schema more modular for complex apps.
I can see two reasons for splitting up a Bolt file:

Sharing types and functions for use as a "library".
Embedding applications as a "child" in a larger database.

Here are some syntax proposals - I could use some help coming to a final design.
import would define a "namespace" for pre-defined types and functions:
import util;

path /users is util.User[] {
  validate() = util.isCurrentUser(this.id);
}

type Post {
  validate() = util.isRecent(modified);

  message: String;
  modified: util.CurrentTime;
}

For the case of embedding a complete application definition:
import chat at /apps/chat;

This would have the effect of importing the chat application, but making all paths relative to /apps/chat.
I see a problem with this approach in that multiple apps might want to share some common structure - like user accounts, but segregate their data otherwise - would have to figure out how to share some paths but not others....

Maybe if the import statement does not have an at clause - then that just uses the global (common) location.  Each app could then import users, and reference the same schema a paths...

Hmm that could definitely work! Or maybe there could be a public and private section in each file? Also is there any way to define optional properties? The current way of saying path /users/$userid is User then having to define every single other optional property by /path/users/$userid/age is String is pretty meh. Should be something simpler like
Type User {
age: String
name: String
}

Woops, for some reason Github removed some text. It was meant to say age: String <"optional"> (without the quotes)! What are your thoughts on it though?

The way Bolt does this now, is:
type User {
  age: String | Null;
  name: String;
}

Check out the freshly written guide for this and other tips.

Thanks! The new guide would have been really helpful before I began, but it's okay now, the Bolts rules are really easy and cool to work with :) Also how would something like newData.val().matches(/^[A-Z0-9,_%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i) be written in Bolts? I tried adding apostrophes before and after but the $i gave me a bit of trouble. Any ideas??

Bolt uses "test" instead of "matches".  Also - the parse does not currently support inline regexp in the syntax - but you can put it in a string, and it will generate the correct regexp in the JSON output (include the whole thing, /i and all).
path / is T;

type T extends String {
  validate() =  this.test('/^[A-Z0-9,_%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i');
}

generates:
{
  "rules": {
    ".validate": "newData.isString() && newData.val().matches(/^[A-Z0-9,_%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i)"
  }
}

Hi guys, getting a little off track above. I've created PR #142 with a proposed syntax for imports. It's not perfect and uses some different conventions but I'm basically going for a subset of the Javascript convention.
This would be
import {'./foo'}; a local file called 'foo.bolt' in the same directory as the current directory. All functions/schema/path variables are considered global.
import {'foo'}; a global module from the node_modules directory with a package name of 'foo' and a default index.bolt
import {'foo/bar'} - Not supported
import {'foo'} as bar - Import a module with all functions/schema/paths with alias bar.
So the above PR is just for the AST parser. If you agree to push it through I'd like to look at implementing the actual JSON processor which is a little more complex. Currently it assumes a Synchronous pipeline and needs to be done asynchronously. Maybe PM me if you have an suggestions but I'm almost in the boat of creating a new gulp-bolt plugin to support streams/async file operations.
Cheers,
Jason

I look forward to checking it out.  Sorry, it's going to take me a couple weeks, as I'm spending most of my time preparing for Google IO this time of year.

I think imports would be a good option, as would @brewsoftware's idea for a gulp plugin.  Here's what I'm currently hacky way of addressing the issue, via gulp.  It's slower than running firebase-bolt from the command line, but preserves my sanity.
gulp.task('bolt', function () {
    'use strict';
    var bolt = require('firebase-bolt');
    var plumber = require('gulp-plumber');
    var concat = require('gulp-concat');
    var through = require('through2');
    var rename = require('gulp-rename');
    var gutil = require('gulp-util');
    var PluginError = gutil.PluginError;

    var onError = function (err) {
        var gutil = require('gulp-util');
        gutil.log( gutil.colors.magenta(err.message));
        gutil.beep();
        this.emit('end');
    };
    // modified from https://github.com/firebase/bolt/blob/master/bin/firebase-bolt
    var translateRules = function(input) {
        var symbols;
        var rules;

        try {
            symbols = bolt.parse(input);
        } catch (e) {
            throw(e);
        }

        try {
            var gen = new bolt.Generator(symbols);
            rules = gen.generateRules();
        } catch (e) {
            throw(e);
        }

        return JSON.stringify(rules, null, 2);
    };

    // order the patterns according to what you want first in the concatenation
    // pretty sure this does not matter to the parser (i.e. a function or type can be
    // declared after it's used), but anyway...
    return gulp.src(['./rules/functions.bolt', './rules/**/*.bolt'])
        .pipe(plumber({errorHandler: onError}))
        .pipe(concat('rules.bolt'))
        .pipe(through.obj(function (file, enc, callback) {
            var raw = file.contents.toString();
            var parsed;
            try {
                parsed = translateRules(raw);
                file.contents = new Buffer(parsed);
                callback(null, file);
            } catch (e) {
                this.emit('error', new PluginError('bolt', e.message));
            }

        }))
        .pipe(rename('rules.json'))
        .pipe(gulp.dest('./'));

});

Thanks cdcarson, I've pushed a plugin that should be able to handle basic imports and published it in the npm registery:
npm install gulp-firebase-bolt.
I will extend out the use cases over the next week or two but for now it just requires that all .bolt files are in the same directory. If you have any suggestions or feature requests the project is hosted under https://github.com/brewsoftware/gulp-firebase-bolt.
PR's and comments welcome... I'm also waiting on the official update of my PR in this project and have skirted around a large number of integration issues for now..
Cheers,
Jason

Continuing the discussion from (closed) PR #42....
There are several approaches to this problem, with different levels of complexity.
Treat import as file concatenation:
import './functions.bolt';

This could be used to factor function and type definitions into multiple files.  Disadvantage is that you could have name collisions with local functions and types.
Import with an alias (borrowing TypeScript import syntax):
import * as util from './util.bolt';

path /users is util.User[];

Any imported functions and types would be prefixed with an alias name.
Import individual symbols from a file (syntactic sugar - not essential):
import {User} from './util.bolt';

Adjusting paths
import * as users from './users.bolt' at /users;

This could prefix all path statements in the imported file with '/users' - in this way a bolt file could describe a self-contained application.  Note that this won't work universally for the reasons stated at the beginning of this post (although using relative vs. absolute paths can be used to differentiate the two types of uses).
I would recommend starting out with support for either:
import './functions.bolt';
OR
import * as util from './util.bolt';

Hi Mike,
Just touching base on this functionality (I've been pre-occupied for a couple of weeks now). I'd like to have another stab at the PR for the import syntax with a couple of update (Specifically to match the ES6 syntax properly). https://github.com/firebase/bolt/pull/142 Is mostly complete except for a couple of syntax changes but I can open a new PR with those updates when ready.
There is a secondary issue where the current compiler works synchronously to compile the bolt files. This more related to a re-write of the core compile so I think the debate around how the compiler works for processing import statements can be done separately.
For any example of the re-write I have a gulp plugin that works on the AST using through2 to load the various external modules. How to integrate this back into the BOLT compiler is another discussion that we haven't had yet (Let me know if you want to include it in a Larger PR or if we should aim for 2 smaller PR's).
Also, I agree that ES6/TS is the way to go and I like the suggestion on the re-homing of paths.
Let me know what you think would work for getting this all the way through.
Cheers,
Jason

Any updates on this? Would love a way to split my rules across multiple bolt files.

Hey,
Apologies for the stagnant contribution. I was ready to go then we have a life event (9 months worth).
I learnt a few things from the Gulp implementation, namely:

Syntax needs to change to more ES6 style
Paths are a bit of an issue
The parser needs to be contextual (i.e. TypeA -> Import TypeB -> Import TypeC, where TypeC should not be directly referable in the TypeA context).

So I have 1 more update to do to the parser which is just the context part above. The compiler is a little trickier to implement properly. Once I have the basic version done I will post back here with a link to the reference implementation. It's been a while so my repo is a little messy and also needs to be cleaned up before merging...
Cheers,
Jason

Bump!
I have opened a new PR at https://github.com/firebase/bolt/pull/208 for early comment. Please let me know if you have any comments on the implementation.
The current PR is only for Type Imports and does not cover paths and functions. I will do those in a seperate PR.
Cheers,
Jason


Use delegate_to: localhost instead of local_action

Allow to use ansible_become: true (#2969).
I personally integrate kubespray as-is and don't make any modification to it:
# My own playbook wraps kubespray
...
- import_playbook: kubespray_cluster.yml
# symlink to vendor/kubespray/cluster.yml
# allows to relocate the `playbook_dir` var
# so it can find my group_vars/host_vars
...

import_playbook doesn't support the become attribute, my workaround consists in  setting ansible_become: true for all hosts in the cluster via the group_vars and setting it to false for localhost in its host_vars.
More generally, it allows to configure the behaviors of the tasks run on localhost (e.g. ansible_python_interpreter, ...).
This is also consistent with the rest of kubespray which only uses delegate to: localhost (except a few test playbooks that I haven't touched)

Hi @Atoms, thanks for looking into my PR.
Is there a style guide for Kubespray that could be referenced in the CONTRIBUTING.md?
Also, I mentioned the way I intergrade Kubespray in an exiting playbook, would you like me to submit a PR with my detailed changes to docs/integration.md for review/discussion?

/lgmt

Feel free to make PR with integration will check it out :)

ci check this

/lgtm

/approve


Categraf支持像thanos /api/v1/receive接口写入数据吗？

What would you like to be added:
Categraf支持像thanos /api/v1/receive接口写入数据
Why is this needed:
Categraf支持像thanos /api/v1/receive接口写入数据
Describe the solution you'd like
categraf支持远程推送至 Prometheus RemoteWrite ，但是我们使用的是thanos，是否支持thanos的接口呢
Additional context

我尝试使用categraf写入thanos receiver接口，得到了以下错误
2023/10/17 09:49:00 writer.go:66: W! post to https://thanos-devops.tj-it.com.cn/api/v1/receive got error: push data with remote write request got status code: 409, response body: 8 errors: forwarding request to endpoint thanos-receiver-10.thanos-receiver:10901: rpc error: code = AlreadyExists desc = store locally for endpoint thanos-receiver-10.thanos-receiver:10901: add 54 series: out of order labels; forwarding request to endpoint thanos-receiver-11.thanos-receiver:10901: rpc error: code = AlreadyExists desc = store locally for endpoint thanos-receiver-11.thanos-receiver:10901: add 77 series: out of order labels; forwarding request to endpoint thanos-receiver-5.thanos-receiver:10901: rpc error: code = AlreadyExists desc = store locally for endpoint thanos-receiver-5.thanos-receiver:10901: add 80 series: out of order labels; forwarding request to endpoint thanos-receiver-6.thanos-receiver:10901: rpc error: code = AlreadyExists desc = store locally for endpoint thanos-receiver-6.thanos-receiver:10901: add 61 series: out of order labels; forwarding request to endpoint thanos-receiver-7.thanos-receiver:10901: rpc error: code = AlreadyExists desc = store locally for endpoint thanos-receiver-7.thanos-receiver:10901: add 76 series: out of order labels; forwarding request to endpoint thanos-receiver-8.thanos-receiver:10901: rpc error: code = AlreadyExists desc = store locally for endpoint thanos-receiver-8.thanos-receiver:10901: 2 errors: add 1 series: label set contains a label with empty name or value; add 68 series: out of order labels; forwarding request to endpoint thanos-receiver-9.thanos-receiver:10901: rpc error: code = AlreadyExists desc = store locally for endpoint thanos-receiver-9.thanos-receiver:10901: add 80 series: out of order labels; store locally for endpoint thanos-receiver-4.thanos-receiver:10901: 2 errors: add 1 series: label set contains a label with empty name or value; add 73 series: out of order labels

开启 http ，配置端口后，有这几个接口可以推入数据
POST /api/push/opentsdb
POST /api/push/openfalcon
POST /api/push/remotewrite
POST /api/push/pushgateway

其中 remotewrite 是 prometheus remote_write 报文协议

我想使用categraf向thanos发送数据，而不是prometheus

我想使用categraf向thanos发送数据，而不是prometheus

categraf 的 writers 向上写入也是 remove_write 协议，并且 categraf 可以配置多个 writers
试试这个


Feature/new build script

Replace Yarn with Bun
Bundle for general import + module import

👀

@AndrewFedotiuk The test completes fine locally, I'll take a look in the morning

Approved

Approved


Make use of the TransFunc introduced in k8s 1.27

Kubernetes has introduced in https://github.com/kubernetes/kubernetes/pull/116623, and backported to all branches, the TransFunc that allows to mutate certain resources in K8s Caches. This will allow us to remove our own TransFunc implementation functions in https://github.com/cilium/cilium/blob/264dd3f350022c7626438f2dab0401dcb41ec616/pkg/k8s/informer/informer.go#L101-L106 by using the DeltaFIFO directly from the library.
Depending how non-invasive the patch will be, we might consider backporting it to our stable branches as well.
cc @odinuge

This has the needs/triage label since it's unclear what the consequences are of not using TransFunc in our informers. It might be fine, it might not be.

This is likely handled by https://github.com/cilium/cilium/pull/24929 https://github.com/cilium/cilium/pull/24930 and https://github.com/cilium/cilium/pull/24931 for the stable branches. In terms of consistency we should be using the k8s client-go library by using the new Transformer as @odinuge suggested. @odinuge correct me if I'm wrong but I think with the above PRs we don't need to backport a potential PR that is using the Transformer option to all branches.

Can we close this issue given the above?

/assign


Use a more subtle border on the header

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes

As discussed on the forum, I'm proposing to use a color that makes the header border more subtle. I used the same red from the Deploy button.
Now:

Then:

It also works well with themes. Here's an example using the 'dark' theme.
Now:

Then:

Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[ ] I have run npm run test to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Why did the tests fail? I swear I didn't change anything other than the border color. 🙂

We have an occasional test failure due to a timing issue - won't be related to your proposed changes (obviously... :)
The original intent was to make the border less subtle. This PR makes it very subtle - almost unnoticeable. I don't want to keep bouncing between the two.
I think it should probably be somewhere in between the two.

This one uses the same red (#D12B2B) from the FlowFuse themes.

It's not as bright as the original nor as dark as my previous proposal. What do you think?

Do you think this looks better? It's a little bit darker than the original. But not as dark as the one I originally proposed.
Now:

Then:

@bonanitech to be honest, I'm struggling to tell the difference between the last two screenshots. I've not seen any additional commits to the branch so I'm not sure what colour you are proposing for me to check it out locally.

Thanks for the update. It is a very subtle difference. I've no objection to tweaking it - do you think this works better for the dark themes by default?

Thanks, @knolleary.
It does work better for dark themes. But it also works better with the default one, in my opinion.


Prevent crash in 7.2.1

Not a super elegant solution, as I haven't identified the cause entirely, but it works.

Thank you.


Update icons with in-game equivalents

The Icons are currently screen caps of the half-body image. Update the images to align with in-game icons.

This will be done as soon as we have a reliable source for these images, such as the wiki.

They are on the wiki now:
https://static.wikia.nocookie.net/valorant/images/4/4d/[AGENT NAME]_icon.png
example: https://static.wikia.nocookie.net/valorant/images/4/4d/Jett_icon.png

They are on the wiki now:
Brimstone: https://static.wikia.nocookie.net/valorant/images/4/4d/Brimstone_icon.png
Viper: https://static.wikia.nocookie.net/valorant/images/5/5f/Viper_icon.png
Omen: https://static.wikia.nocookie.net/valorant/images/b/b0/Omen_icon.png
Cypher: https://static.wikia.nocookie.net/valorant/images/8/88/Cypher_icon.png
Sage: https://static.wikia.nocookie.net/valorant/images/7/74/Sage_icon.png
Breach: https://static.wikia.nocookie.net/valorant/images/5/53/Breach_icon.png
Sova: https://static.wikia.nocookie.net/valorant/images/4/49/Sova_icon.png
Jett: https://static.wikia.nocookie.net/valorant/images/3/35/Jett_icon.png
Phoenix: https://static.wikia.nocookie.net/valorant/images/1/14/Phoenix_icon.png
Raze: https://static.wikia.nocookie.net/valorant/images/9/9c/Raze_icon.png

Thanks for the heads up.
I have an update planned for the site, and I'll be sure to include this.

The new icons are now live!


pull request for e2e test at 12/28/2016 11:45:12

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Deploy to now version 2

@zeekrey He does use @now/static-build
@nriesco I think it's also worth mentioning to add "now-build": "npm run build" as a script in package.json

Thank you for working on this! Unfortunately, need to close the PR in favor of https://github.com/vuejs/vue-cli/pull/4232


chore(deps): bump isbinaryfile dependency to ^5.0.0

Summary

bump isbinaryfile dependency to ^5.0.0
Test plan

Green CI

👍

@SimenB do we have any plan to migrate our package to pure esm so that we can bump the major version of packages Sindre Sorhus made?

Not until ESM vm is stable: https://github.com/nodejs/node/issues/37648


Suggestion for integration into GSE3 - CVar Adjustment Bar

I've been playing with this lately and it seems it maybe something that could be integrated going forward
a CVar Slide bar for Spell Ques - This could be combined with the MS Click Rate since Both would want to match the players Spam Click Rate.  So 1 Value for Both MS CLick Rate and CVars setting.
Stock is 400 but with people spamming etc GSE Macros preform better when the CVar is set to your Spam Rate.  Manual Clickers would still want to use 200-400 with 400 being the slowest due to the verity of the manual click rate.
Here is a small video explaining CVar in Detail
Just an Idea Tim!

Hey Larry
Changing this CVar has anecdotal and mythical value.  For everyone who swears by changing it, there is another 10 people for whom it has no effect.  It hasn’t been in use since Vanilla and TBC and even now it has been removed from Classic.
Even having said that this CVar is something best managed by a UI mod rather than GSE.


:sparkles: Change method signature using ES6

CHANGELOG

[x] Change method signature #6
[x] Use ES6
[x] Add a good linter like xo and prettier
[x] Update the docs :memo:
[x] Remove Grunt because now rollup handles all js transformation.

The demo is already working as good as before.

@ApoorvSaxena what are prefered code style? 2 spaces, 4 spaces, tabs? Semicolons or no-semicolons?

@styfle babel plugin is already added by @thiamsantos to convert the ES6 syntax into ES5 compatible mode.

@ApoorvSaxena Oops! I was looking at the wrong file 😄


Split critical edges in loop before performing SESE canonicalization

If the critical edges are not split, loop canonicalization may introduce conditional branches with identical targets.

Resolves SR-8376.

@swift-ci please test tensorflow

Thanks for fixing! Another step towards unblocking models.


INTEGERs are mistakenly converted to typescript strings

Hi there,
I have this schema:
-- Roles
CREATE TABLE IF NOT EXISTS roles (
  id INTEGER PRIMARY KEY NOT NULL,
  name TEXT NOT NULL CHECK(LENGTH(name) <= 30)
) STRICT;

-- Users
CREATE TABLE IF NOT EXISTS users (
  id TEXT PRIMARY KEY NOT NULL CHECK(LENGTH(id) == 36),
  -- ...
  role_id INTEGER NOT NULL,

  -- ...
  FOREIGN KEY (role_id) REFERENCES roles(id) ON DELETE RESTRICT
) STRICT;

When I run typesql cli, it produces this type:
export type InsertIntoUsersParams = {
	id: string;
        // ...
	role_id: string;
        // ...
}

Mistakenly converting the INTEGER to a string rather than a number.
Am I doing something wrong?
This is my typesql.json file for reference:
{
    "databaseUri": "./local.db",
    "sqlDir": "./src/data/repos/",
    "client": "libsql",
    "target": "node",
    "includeCrudTables": ["*"]
}

I'm using:

Bun 1.1.18
typesql-cli 0.10.2

Hello,
I couldn't reproduce this with the provided schema.
The generated type is:
export type InsertIntoUsersParams = {
  id: string;
  role_id: number;
}

Could you run this to confirm the role_id type in the ./local.db database?
PRAGMA table_info('users');

I ran it and this is the output (it confirms it's an integer):
cid  name              type     notnull  dflt_value                   pk
---  ----------------  -------  -------  ---------------------------  --
0    id                TEXT     1                                     1
13   role_id           INTEGER  1                                     0

Another thing I have noticed is that conversion works just fine in some of the other tables. For example, I have this table:
-- Subscription Tiers
CREATE TABLE IF NOT EXISTS games (
  id INTEGER PRIMARY KEY NOT NULL,
  -- ...
  duration INTEGER NOT NULL CHECK(duration > 0),
  -- ...
) STRICT;

And this is the type produced for it:
export type InsertIntoGamesParams = {
	id?: number;
        // ...
	duration: number;
        // ...
}

Not sure what happened but I nuked the entire db and re-created it again, and everything seems to be working fine now.


Client Allocation Request for: JJ YY

Client Allocation Questions
Core Information

Name: JJ YY
Website / Social Media: JJ YY
Region: Asia excl. Greater China
DataCap Requested: 640GiB
Addresses to be Notarized: f0734051
Notary Requested: MasaakiNawatani

@yejunap Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

This is a duplicate request. See #475.

Closing this request.


Use Go 1.13 error wrapping

When we're to require Go 1.13 it makes sense to go through our error handling and make use of wrap/unwrap where appropriate:

An error e can wrap another error w by providing an Unwrap method that returns w. Both e and w are available to programs, allowing e to provide additional context to w or to reinterpret it while still allowing programs to make decisions based on w.

https://golang.org/doc/go1.13#error_wrapping
See #349 also.

Possible use-case for this issue is to implement wrappers for the following errors into core/blockchain.go:

ErrAlreadyExists
ErrOOM
ErrPolicy
ErrInvalidBlockIndex

and add other missing RelayResult errors in order to distinguish these errors into RPC level.


Add device farm test run

Description of the change
Add device farm test run to CircleCI
Type of change

[ ] Bug fix (non-breaking change that fixes an issue)
[x] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Sorry I missed this - do you still need an approval on it?

@TrekSoft  Yes please! It's mainly build config stuff, please make sure I'm not leaking any keys or anything else that's  sensitive. Happy to hop on the phone and walk you through it as well!


update to pnpm instead npm + pwa

do you want to include PWA for system updates like on svelte one?
https://github.com/antfu/vite-plugin-pwa/blob/main/client.d.ts#L89

Not needed. This projhect is soft archived for me. No more updates to it


Insert image not working in Material Note v2

Inserting an image does not seem to be working in Material Note v2. The "INSERT IMAGE" button remains disabled after selecting an image or pasting a URL to an image.
steps to reproduce

Click picture icon to insert an image
Select an image by clicking the "Files" button
The "INSERT IMAGE" button remains disabled

browser version and os version
What is your browser and OS?
Firefox 50.1.0
Windows 10 Professional
Jquery 3.2.1
screenshot of issue

@Cerealkillerway Can you provide any insight into this issue?

Same for Link

Hi, sorry but I can't reproduce the issue; I've tested with both chrome and firefox;
when you select an image from your hard drive, the modal should disappear immediatly and the image should appear in the editor area;
maybe the provided dist was outdated, I've rebuilt it, please try with this latest one by fetching again the repo and let me know

I only use the dist folder. Try with this specific confirguration, maybe you could reproduce the issue.

ok let's have a clean start: please pull latest commit from the repo, I've just updated the dist folder;
then please check if everything works by opening the demo (examples/default.html);

Sorry, but not working too. I have the good version of materialNote (from today) but I insert image and insert link are still disabled. My version of materialize is v0.100.2 (in your example is 0.100.1 but, I think it's not really important). What is your trigger/event for validate this insert ? Maybe it's that, the probleme

but also the demo from the repo (in examples folder, the default.html) is not working for you?

Yes, demo work for me in other project...
I don't understand why, in my project (and @kabudu project), this two actions not working.
Here, thematerialnote declaration :
var summernote = $('#summernote').materialnote({         lang: 'fr-FR',         toolbar: [             ['style', ['style']],             ['font', ['bold', 'italic', 'underline', 'clear']],             ['fontname', ['fontname']],             ['color', ['color']],             ['para', ['ul', 'ol', 'paragraph']],             ['height', ['height']],             ['table', ['table']],             ['insert', ['link', 'picture', 'hr']],             ['view', ['fullscreen', 'codeview']],             ['help', ['help']]         ],         height: '400px',         fontNames: [             'Arial', 'Arial Black', 'Comic Sans MS', 'Courier New',             'Helvetica Neue', 'Helvetica', 'Impact', 'Lucida Grande',             'Tahoma', 'Times New Roman', 'Verdana', 'Microsoft YaHei', 'Permanent Marker'         ],         callbacks: {             onImageUpload: function (files) {                 for (var i = files.length - 1; i >= 0; i--) {                     sendFile(files[0]);                 }             }         },     });

Ok, I've tested your configuration in the demo and works properly; I mean the modal is closed after selecting images;
I can see that "files" is an object, selected images are stored inside an array in the "images" property, so you should cycle "files.images":
`callbacks: {
onImageUpload: function (files) {
let images = files.images;
        for (var i = images.length - 1; i >= 0; i--) {
              //sendFile(images[0]);
              console.log(images[0]);
         }
  }

},`
but this is how summernote normally works, I haven't changed the object passed to the callback;
of course I can't test the sendFile function, but the callback is called correctly;
so in your project there must be something else that make it not working properly;
can you share the project?

Ok, thanks for your answer.
My callback works when I drag and drop image into materialnote editor, but modal form always not working.
I can't send my project, it's professionnal...
So dropzone event seem working, but not file input event. What event trigger when input file change ?

well the button should act exactly as in summernote (just as a test, have you tried to put summernote in your project to see if the same problem happens?)
in particular look at the code in file src/js/materialize/module/ImageDialog.js at row 92:
                  $imageUrl.on('keyup paste', function () {                         var url = $imageUrl.val();                         ui.toggleBtn($imageBtn, url);                     }).val('').trigger('focus');                     self.bindEnterKey($imageUrl, $imageBtn);
this is the trigger for when you write/paste in the "image URL" textbox; for when you use the file chooser it's a bit more complicated (same file as above, row 87):
                   $imageBtn.click(function (event) {                         event.preventDefault();                         data.resolve($imageUrl.val());                     });
it uses the callback of the file chooser to resolve "data" that is a deferred object (defined at row 132)
at row 138 you  see that inside the data's callback the modal should be hidden when the deferred is resolved:
ui.hideDialog(self.$dialog);
the function ui.toggleBtn() is responsible to toggle the "disabled" class:
       toggleBtn: function ($btn, isEnable) {             $btn.toggleClass('disabled', !isEnable);             $btn.attr('disabled', !isEnable);         }
you can manually toggle the disabled class on the button if you have to, but anyway the behaviour you are experimenting should not happen, so would be better to find out the cause

I've given this a try using the latest version of materialnote.js in the dist folder, but no difference, the same issue persists. However, dragging + dropping into the editor does work.

ok, but since we tried that the demo itself it's working there must be something else that produces the issue;
can you provide an example that reproduces the issue?

Sure.
Here is the javascript:
var wysiwyg = $('.wysiwyg');
if (!wysiwyg.length) {
    return;
}
var type = wysiwyg.data('type');
var hash = $(wysiwyg.data('hashSource')).val();
var upload_url = wysiwyg.data('uploadUrl');
var wysiwyg_type = wysiwyg.data('wysiwyg') ? wysiwyg.data('wysiwyg') : 'summernote';
wysiwyg[wysiwyg_type]({
    height: 400,
    focus: false,
    fontNames: ['Arial', 'Comic Sans MS', 'Courier New', 'Helvetica', 'Impact', 'Tahoma', 'Times New Roman', 'Verdana', 'Roboto'],
    fontNamesIgnoreCheck: ['Roboto'],
    toolbar: [
        ['style', ['style']],
        ['fontname', ['fontname']],
        ['font', ['bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']],
        ['fontsize', ['fontsize']],
        ['color', ['color']],
        ['para', ['ul', 'ol', 'paragraph']],
        ['height', ['height']],
        ['table', ['table']],
        ['insert', ['link', 'picture', 'hr']],
        ['view', ['fullscreen', 'codeview']]
    ],
    onImageUpload: function(files) {
        var file = files[0];
        var data = new FormData();
        data.append('file', file);
        data.append('type', type);
        data.append('hash', hash);
        $.ajax({
            url: upload_url,
            data: data,
            cache: false,
            contentType: false,
            processData: false,
            type: 'POST',
            success: function(data) {
                var img_node = document.createElement('IMG');
                img_node.src = data.url;
                img_node.style = 'width:100%;';
                wysiwyg[wysiwyg_type]('insertNode', img_node);
            },
            error: function(jqXHR, textStatus, errorThrown) {
                console.log(textStatus + " " + errorThrown);
            }
        });
    },
    callbacks: {
        onImageUpload: function(files) {
            var file = files[0];
            var data = new FormData();
            data.append('file', file);
            data.append('type', type);
            data.append('hash', hash);
            $.ajax({
                url: upload_url,
                data: data,
                cache: false,
                contentType: false,
                processData: false,
                type: 'POST',
                success: function(data) {
                    var img_node = document.createElement('IMG');
                    img_node.src = data.url;
                    img_node.style = 'width:100%;';
                    wysiwyg[wysiwyg_type]('insertNode', img_node);
                },
                error: function(jqXHR, textStatus, errorThrown) {
                    console.log(textStatus + " " + errorThrown);
                }
            });
        }
    }
});

and here is the HTML:
<input id="summary_title" name="summary_title" required="required" placeholder="Title" type="text"/>
<textarea id="summary_body" name="summary_body" required="required" placeholder="Body" rows="15" class="wysiwyg" data-type="summary" data-hash-source="#summary_title" data-upload-url="/media/upload" data-wysiwyg="materialnote"></textarea>

It's worth noting that the above worked as expected with materialnote 1.*

@Cerealkillerway Have you had a chance to look at the example I provided?

@kabudu to be honest I've tested it a little and found no problems; I've added a demo with your code in the repository (examples/test-1.html if you want to check it);
as you can see in test-1.html, if you paste an image url it works; if you select an image from hd, it logs an error in console because the upload needs some setup to work locally, anyway the dialog is closed correctly.
Maybe it happens under certain circumstances? If you can provide steps to reproduce the issue le t me know

@Cerealkillerway This is still not working for me, but let's keep the issue closed for now. I will re-visit this at some point to see if I can make it work, otherwise I will just live with the drag+drop workaround.

@kabudu, have you tested the example I provided using your code inside the examples directory? Since that works I assume the problem is somewhere else; To go any further you should provide a working example demostrating the issue

I finally discovered what the issue was. It appears to be some sort of race condition where the material note wysiwyg editor was being initialised even though the dom had not fully loaded, although that shouldn't happen.
Either way, I resolved it by adding a short delay to the initialisation of material note, i.e.
window.setTimeout(function(obj){
    obj.init();
},500, this.wysiwyg);


Bug: Camera icon doesn't work on main view.

Camera button does nothing on main view. I think popup the modal then open your camera roll is best method for this.

This is now fixed


sourcetrail: 2019.3.46 -> 2019.4.1

Motivation for this change
Sourcetrail is now open source (GPL-3).

src: fetchurl -> fetchFromGitHub
remove installPhase
change meta

platforms: x86_64-linux -> all
license: unfree -> gpl3
maintainers: add filalex77

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @midchildan

This change is

@GrahamcOfBorg build sourcetrail

@GrahamcOfBorg build sourcetrail

Did you make progress in the meantime?

Closing because of #95530.


Deploy failing after several components updates

Starting from yesterday, deploy is failing with the attached error message. We are suspecting flareact breaking something somewhere:

I just checked your pipeline and it seems your build stage failed to build the project (the fact its not failing after error is different question)
@symisc could you please check the spacing in your config file? seems like they are off starting here https://github.com/symisc/cf-workers-status-page/blob/main/config.yaml#L34
yarn run v1.22.5
$ yarn css && flareact build
$ postcss public/tailwind.css -o public/style.css
Building your Flareact project for production...
[publish]
[publish] ERROR in ./config.yaml
[publish] Module build failed (from ./node_modules/yaml-loader/index.js):
[publish] YAMLSyntaxError: All collection items must start at the same column at line 1, column 1:
[publish]
[publish] settings:
[publish] ^^^^^^^^^...

My bad! Devops are exhausted on this period of the year :) Anyway! Thanks for your assistance


Best Practice for Offline Upgrade?

Can one simply run the rsinstrument_offline_install.py of a higher version to upgrade on a machine that has a lower version installed?

Sorry for the delayed reply, you can just start the offline installer of a new version, the pip takes care of uninstalling the old version.
Just updated the installer to support Python 3.10


Pages only get deleted a few at a time

I did a major restructuring of my folders, leading to many pages needing to be deleted and recreated
The new pages were created fine, but deleting isn't working as expected. Every time I "Publish Selected" it tells me it has published all changes, but it actually only publishes one to three changes and I have to keep going through the publish process until the number reaches zero

I confirm, it did the same to me

I'm tired of only deleting one file per publishing.

It seems easier to delete the contents of src and then let the plugin reupload every file it needs.

It seems easier to delete the contents of src and then let the plugin reupload every file it needs.

how to? clone to local and delete src, then push?

It seems easier to delete the contents of src and then let the plugin reupload every file it needs.

how to? clone to local and delete src, then push?

I did it the "easy" (or noob) way, just from the github page. I deleted there the content and push from the same page.

Release 2.56.1 should fix this 😄


Something went wrong while trying to deserialize a response from the server

When testing app from Google Play console internal test channel with release build with ;
        minifyEnabled true
        shrinkResources true

"Something went wrong while trying to deserialize a response from the server" error occurs on Model answer
There is no Logcat info on Android Studio when it occurs.
What i tried is : Added lines below to my proguard-rules.pro
-keep class androidx.compose.ui.*.*{*;} -keep class com.google.ai.*.*{*;}
but not works
Thank you!

Hi @Tolansoft thanks for your report. Is this an error you are seeing consistently across different executions and using different prompts? or is it restricted to some use cases?

Hi Rodrigo, thank you for your response.
I only tested app with Xiaomi 11T device.
Release version with;
minifyEnabled true
shrinkResources true
not works. Only works if values above false.
Debug mode with;
minifyEnabled true or false
shrinkResources true or false
works.
But when i test Release version directly from Android studio with
debuggable mode with;
minifyEnabled true
shrinkResources true
debuggable true
It works. When testing on internal channel of Play Console it never works.
May it be something SHA issue?
Thank you! Have a nice day!
19 Ara 2023 Sal 21:07 tarihinde Rodrigo Lazo @.***>
şunu yazdı:

Hi @Tolansoft https://github.com/Tolansoft thanks for your report. Is
this an error you are seeing consistently across different executions and
using different prompts? or is it restricted to some use cases?
—
Reply to this email directly, view it on GitHub
https://github.com/google/generative-ai-android/issues/17#issuecomment-1863254129,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALE6WMBG7EIRHAVDUYSYCG3YKHJXTAVCNFSM6AAAAABAX6ZEJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRTGI2TIMJSHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

@emilypgoogle could you please take a look? Thanks!

Will do

I believe this is an issue of misconfigured proguard rules, a large amount of our internal classes are obfuscated with the rules you've posted. Several internal types rely on automatic serialization based on symbol names, so you'll need to not obfuscate them. Try -keep class com.google.ai.** {*;} or similar. For more testing with proguard exclusions, you can use https://playground.proguard.com/

Hey @Tolansoft PR #23 fixes the issue by shipping the right proguard.txt as part of the SDK. This will be part of the next release. In the meanwhile, following @emilypgoogle advice on the comment above is a viable workaround. Once again, thanks for your report!

Hey Rodrigo and Emily and thanks for fixing it!

#23 merged

It will be better if you add the -keep class com.google.ai.** {*;} rule in the readme, Thank you!

@davidmotson I see you're working on serialization in your branch, I still see this serialization error response even though the first flow emission is of a valid response.
looks like it's having a hard time parsing out the following response (no surprise - I wouldn't expect this invalid json either),
data: {"candidates": [{"content": {"parts": [{"text": " This is a photo of a group of people who work together. They are posing in front of a mural of a forest."}],"role": "model"},"finishReason": "STOP","index": 0,"safetyRatings": [{"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT","probability": "NEGLIGIBLE"},{"category": "HARM_CATEGORY_HATE_SPEECH","probability": "NEGLIGIBLE"},{"category": "HARM_CATEGORY_HARASSMENT","probability": "NEGLIGIBLE"},{"category": "HARM_CATEGORY_DANGEROUS_CONTENT","probability": "NEGLIGIBLE"}]}],"promptFeedback": {"safetyRatings": [{"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT","probability": "NEGLIGIBLE"},{"category": "HARM_CATEGORY_HATE_SPEECH","probability": "NEGLIGIBLE"},{"category": "HARM_CATEGORY_HARASSMENT","probability": "NEGLIGIBLE"},{"category": "HARM_CATEGORY_DANGEROUS_CONTENT","probability": "NEGLIGIBLE"}]}}

{
  "error": {
    "code": 500,
    "message": "An internal error has occurred. Please retry or report in.
   https://developers.generativeai.google/guide/troubleshooting",
    "status": "INTERNAL"
  }
}


[BUG] v1 UUID format secrets not being detected

Describe the bug
It is not able to detect JFrog artifactory role ID and role secret ID, which is actually a v1 UUID.
To Reproduce
Steps to reproduce the behavior:

Have a file with content similar to this:

/*******************************************************************************
* IBM Confidential
* OCO Source Materials
* (C) Copyright IBM Corp  2018 All Rights Reserved.
* The source code for this program is not published or otherwise divested of
* its trade secrets, * irrespective of what has been deposited with
* the U.S. Copyright Office.
******************************************************************************/

// Keep these properties populated.
process.env.vault_url = "https://some.url.com";
process.env.vault_path = "blah blah";

// Keep these properties empty and commented out unless you need to run tests locally.
// Contact your team lead or DevOps team member for the values.
process.env.vault_role_id = "<v1-uuid>";
process.env.vault_secret_id = "<v1-uuid>";

//For debug purposes.
// process.env.VAULT_DEBUG = "true";

Run detect-secrets scan --use-all-plugins --update .secrets.baseline over it.
Run detect-secrets audit .secrets.baseline over it, and you'll see it says:

Nothing to audit.

And voila, you've successfully leaked the secrets 😅.

This still occurs on latest version (0.13.1+ibm.62.dss) FWIW.
Problem is that the v1 UUIDs match the UUID filter:
https://github.com/IBM/detect-secrets/blob/d7c79926b0923c3d97cc1a66db6ed18b847f9d96/detect_secrets/plugins/common/filters.py#L90-L110
So gets flagged as a false positive and let through. The Yelp source has the ability to disable filters via --disable-filter <...> but that doesn't seem to be an option with the IBM fork.


add list styles

@nikabutikashvili Another this is that we need to move the teams/3/assets content file to the img folder, cause images are common for all the pages and in that way we do not need to change the path the images


aframe-no-click-look-controls.js:47367:5 TypeError: canvasEl is undefined

hi, any idea what causes this one?
thnx

Same here

+1

same here


It does not work!

This program does not work with such java comments

My input on the left, my output on the right.
Please try to suit this code, I will appreciate it

Will update at weekend.


Fix zh-classical wikicode for lzh language

Currently, the result table has "lzh" as wikicode, instead of "zh-classical".
See:

https://commons.wikimedia.org/wiki/Data:Wikipedia_statistics/data.tab
https://meta.wikimedia.org/wiki/Template:List_of_wikis_by_project

Thanks for the diff.


Youtube and other embed media support?

Hi, it seems like I can't render embed Youtube video correctly.

you can use https://www.npmjs.com/package/react-youtube to make it work

Hi, I added examples for rendering embeds from YouTube, Spotify, and Twitter. You can see these in use on this post: https://notion-blog.now.sh/blog/my-second-post

oh thanks for the update, it looks good!


Update scalafmt-core to 3.1.1

Updates org.scalameta:scalafmt-core from 3.1.0 to 3.1.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, early-semver-patch, semver-spec-patch

Codecov Report

Merging #216 (35c346c) into develop (0735c8c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #216   +/-   ##
========================================
  Coverage    50.58%   50.58%
========================================
  Files            5        5
  Lines           85       85
========================================
  Hits            43       43
  Misses          42       42

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 0735c8c...35c346c. Read the comment docs.


Added "setBash" method

Property bash was already set, however there was no way of setting it.  This PR adds a method that will set that property.

Oops! Cheers, appreciate it :D

Anytime.  I actually noticed you're missing the param business too, so I'm going to quickly add that and send another PR.

Yeah thats been added fairly recently.
I was thinking about having the setBash method return some sort of bash class that has methods for addParameter. This could have an internal counter and take care of the param1, param2 etc stuff. It might be able to use the http://php.net/manual/en/function.escapeshellarg.php stuff as well.
However, you're welcome to do whatever you think works :)


Comparison with aerc

https://aerc-mail.org

Well, it seems to be a TUI (like mutt/neomutt). Himalaya is a CLI, so they can't really be compared.


[ISSUE #6910] Extract the interval of fetchNameServerAddr

Fix #6910

@totalo Use fix #xxxx to link issue

done.

Codecov Report

Merging #6912 (a4f8372) into develop (4e09a9c) will increase coverage by 0.04%.
The diff coverage is 40.00%.

@@              Coverage Diff              @@
##             develop    #6912      +/-   ##
=============================================
+ Coverage      42.61%   42.65%   +0.04%
- Complexity      9173     9185      +12
=============================================
  Files           1131     1131
  Lines          80225    80227       +2
  Branches       10469    10465       -4
=============================================
+ Hits           34184    34222      +38
+ Misses         41767    41732      -35
+ Partials        4274     4273       -1

Impacted Files
Coverage Δ

...a/org/apache/rocketmq/broker/BrokerController.java
43.97% <0.00%> (ø)

...ava/org/apache/rocketmq/common/BrokerIdentity.java
40.67% <ø> (ø)

...org/apache/rocketmq/container/BrokerContainer.java
53.48% <0.00%> (-0.25%)
:arrow_down:

.../java/org/apache/rocketmq/common/BrokerConfig.java
27.30% <25.00%> (-0.02%)
:arrow_down:

...ache/rocketmq/container/BrokerContainerConfig.java
89.65% <75.00%> (-2.35%)
:arrow_down:

... and 23 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Autorecovery: configure Pulsar's rack awareness integration

Motivation
By default, Pulsar's rack awareness solution relies on state stored in zookeeper. When autorecovery runs, the client needs to have this metadata in order to follow the placement policy.
This change could technically break deployments that expect the default DNS Resolver: ScriptBasedMapping.
Note: one benefit of this PR is that we'll get rid of this exception that is current seen on bookkeeper and autorecovery startup.
17:26:33.864 [main] ERROR org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicyImpl - Failed to initialize DNS Resolver org.apache.bookkeeper.net.ScriptBasedMapping, used default subnet resolver
java.lang.RuntimeException: No network topology script is found when using script based DNS resolver.
	at org.apache.bookkeeper.net.ScriptBasedMapping$RawScriptBasedMapping.validateConf(ScriptBasedMapping.java:163) ~[com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.net.AbstractDNSToSwitchMapping.setConf(AbstractDNSToSwitchMapping.java:81) ~[com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.net.ScriptBasedMapping.setConf(ScriptBasedMapping.java:123) ~[com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicyImpl.initialize(RackawareEnsemblePlacementPolicyImpl.java:265) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicyImpl.initialize(RackawareEnsemblePlacementPolicyImpl.java:80) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.client.BookKeeper.initializeEnsemblePlacementPolicy(BookKeeper.java:581) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.client.BookKeeper.<init>(BookKeeper.java:505) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.client.BookKeeper$Builder.build(BookKeeper.java:306) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.replication.Auditor.createBookKeeperClient(Auditor.java:280) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.replication.AutoRecoveryMain.<init>(AutoRecoveryMain.java:95) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.server.service.AutoRecoveryService.<init>(AutoRecoveryService.java:41) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.replication.AutoRecoveryMain.buildAutoRecoveryServer(AutoRecoveryMain.java:358) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.replication.AutoRecoveryMain.doMain(AutoRecoveryMain.java:326) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]
	at org.apache.bookkeeper.replication.AutoRecoveryMain.main(AutoRecoveryMain.java:308) [com.datastax.oss-bookkeeper-server-<IP_ADDRESS>.0.0.jar:<IP_ADDRESS>.0.0]

Did you make
some manual testing?
The patch looks good but I am not sure that that class is meant to run inside the auto recovery daemon. My concern is more about the pluging with the rest of the Pulsar runtime.
We should do some manual testing and ensure that it is working properly. It won't be easy.
Maybe there is already some unit test or integration test in Lulsad repo

@eolivelli - I manually verified that the autorecovery pod and the bookkeeper pod start. I didn't test the autorecovery code path yet, but I can. Without this configuration change, the auto recovery process won't have the rack information that is configured in zookeeper.

@eolivelli - I did some additional validation tonight, and everything appears to work correctly. However, I am not an expert on autorecover, so please let me know if I've missed an important case. In the test, I set up 3 racks, 4 bookies, and a topic with a E=2, Qw=2, and Qa=2. The test shows that the autorecovery pod correctly discovers racks and then identifies when a ledger is not following the rack placement policy after two bookies are removed. Here are the racks:

pulsar@pulsar-broker-74959d97cd-q7f8j:/pulsar$ bin/pulsar-admin bookies racks-placement
"default    {pulsar-bookkeeper-2.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack2, hostname=null), pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack0, hostname=null), pulsar-bookkeeper-3.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack3, hostname=null), pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack0, hostname=null)}"

The autorecovery pod logged the following after I completed configuring the racks:
01:56:25.498 [main-EventThread] INFO  org.apache.pulsar.zookeeper.ZooKeeperDataCache - [State:CONNECTED Timeout:30000 sessionid:0x1000030d905001f local:/<IP_ADDRESS>:43494 remoteserver:pulsar-zookeeper-ca.default.svc.cluster.local/<IP_ADDRESS>:2181 lastZxid:242 xid:4 sent:17 recv:20 queuedpkts:0 pendingresp:0 queuedevents:0] Received ZooKeeper watch event: WatchedEvent state:SyncConnected type:NodeDataChanged path:/bookies
01:56:25.500 [AuditorBookie-<IP_ADDRESS>:3181-EventThread] INFO  org.apache.pulsar.zookeeper.ZooKeeperDataCache - [State:CONNECTED Timeout:30000 sessionid:0x1000030d9050021 local:/<IP_ADDRESS>:43504 remoteserver:pulsar-zookeeper-ca.default.svc.cluster.local/<IP_ADDRESS>:2181 lastZxid:242 xid:4 sent:17 recv:20 queuedpkts:0 pendingresp:0 queuedevents:0] Received ZooKeeper watch event: WatchedEvent state:SyncConnected type:NodeDataChanged path:/bookies
01:56:25.511 [AuditorBookie-<IP_ADDRESS>:3181-EventThread] INFO  org.apache.pulsar.zookeeper.ZkBookieRackAffinityMapping - Reloading the bookie rack affinity mapping cache.
01:56:25.512 [main-EventThread] INFO  org.apache.pulsar.zookeeper.ZkBookieRackAffinityMapping - Reloading the bookie rack affinity mapping cache.
01:56:25.516 [ForkJoinPool.commonPool-worker-5] INFO  org.apache.pulsar.zookeeper.ZkBookieRackAffinityMapping - Bookie rack info updated to {default={pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack1, hostname=null), pulsar-bookkeeper-2.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack2, hostname=null), pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack0, hostname=null)}}. Notifying rackaware policy.
01:56:25.518 [ForkJoinPool.commonPool-worker-3] INFO  org.apache.pulsar.zookeeper.ZkBookieRackAffinityMapping - Bookie rack info updated to {default={pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack1, hostname=null), pulsar-bookkeeper-2.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack2, hostname=null), pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181=BookieInfoImpl(rack=rack0, hostname=null)}}. Notifying rackaware policy.
01:56:25.528 [ForkJoinPool.commonPool-worker-5] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Removing a node: /rack1/pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.530 [ForkJoinPool.commonPool-worker-3] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Removing a node: /rack1/pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.531 [ForkJoinPool.commonPool-worker-3] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Adding a new node: /rack1/pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.530 [ForkJoinPool.commonPool-worker-5] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Adding a new node: /rack1/pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.539 [ForkJoinPool.commonPool-worker-3] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Removing a node: /rack2/pulsar-bookkeeper-2.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.539 [ForkJoinPool.commonPool-worker-3] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Adding a new node: /rack2/pulsar-bookkeeper-2.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.539 [ForkJoinPool.commonPool-worker-5] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Removing a node: /rack2/pulsar-bookkeeper-2.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.540 [ForkJoinPool.commonPool-worker-5] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Adding a new node: /rack2/pulsar-bookkeeper-2.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.541 [ForkJoinPool.commonPool-worker-5] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Removing a node: /default-rack/pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.542 [ForkJoinPool.commonPool-worker-5] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Adding a new node: /rack0/pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.542 [ForkJoinPool.commonPool-worker-3] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Removing a node: /default-rack/pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181
01:56:25.543 [ForkJoinPool.commonPool-worker-3] INFO  org.apache.bookkeeper.net.NetworkTopologyImpl - Adding a new node: /rack0/pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181

Here are the relevant logs from autorecovery when I removed bookies 2 and 3:

02:09:24.067 [ReplicationWorker] WARN  org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicyImpl - Failed to find 1 bookies : excludeBookies [Bookie:pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181, Bookie:pulsar-bookkeeper-3.pulsar-bookkeeper.default.svc.cluster.local:3181, Bookie:pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181], allBookies [Bookie:pulsar-bookkeeper-1.pulsar-bookkeeper.default.svc.cluster.local:3181, Bookie:pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181].
02:09:24.068 [ReplicationWorker] WARN  org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicyImpl - Failed to choose a bookie: excluded [Bookie:pulsar-bookkeeper-0.pulsar-bookkeeper.default.svc.cluster.local:3181, Bookie:pulsar-bookkeeper-3.pulsar-bookkeeper.default.svc.cluster.local:3181], fallback to choose bookie randomly from the cluster.
02:09:24.068 [ReplicationWorker] INFO  org.apache.bookkeeper.client.LedgerFragmentReplicator - Replicating fragment Fragment(LedgerID: 28, FirstEntryID: 0[0], LastKnownEntryID: 1[1], Host: [pulsar-bookkeeper-3.pulsar-bookkeeper.default.svc.cluster.local:3181], Closed: true) in 1 sub fragments.


Void hook skips original function causing crash

I am a beginner with this library and I'm trying to hook onto a void while following the c# remote file monitor tutorial. And the hook works with it queueing all the messages but then crashing the program immediately after. When I used a debugger to figure out what went wrong.
I learned the hook returns to the place the original function was called instead of the function itself, this causes the next return to go to FFFFFFFF and the crashes the program.

The hook delegate I used is below. I'm fairly confident about the calling convention and the parameters. But I'm not sure if I am returning it correctly to make it not skip the original function.
Thanks in advance for any help you can give!
[UnmanagedFunctionPointer(CallingConvention.StdCall, SetLastError = true)]
        delegate void LoadRoom_Delegate(
            float idk,
            float idk2,
            float levelid,
            float roomid,
            float idk3
            );
        [DllImport("Game.exe",
    CharSet = CharSet.Unicode,
    SetLastError = true, CallingConvention = CallingConvention.StdCall)]
        static extern void Loadroom(
            float idk,
            float idk2,
            float levelid,
            float roomid,
            float idk3
            );
        void LoadRoom_hook(
            float idk,
            float idk2,
            float levelid,
            float roomid,
            float idk3
            )
        {
            try
            {
                if (roomid == 640)
                {
                    this._messagequeue.Enqueue("Now Playing Level 1: Room 1!");
                }
                this._messagequeue.Enqueue(roomid.ToString());
                lock (this._messagequeue)
                {
                    if (this._messagequeue.Count < 1000)
                    {
                        this._messagequeue.Enqueue("this part works");

                    }
                }

            }
            catch {
            }
            this._messagequeue.Enqueue("function cleared");
            return;
        }

If you want to call the original, call the function before you return.
EasyHook detects you are already in your hook and will just skip the hook

When I try that, it calls the function. But at the end of the original function, it returns to the hook causing the same thing to happen as before.
Here's what I'm doing (ignore janky way of getting the original function)
I have done it with and without the return line at the end.
[UnmanagedFunctionPointer(CallingConvention.StdCall, SetLastError = true)]
        delegate void LoadRoom_Delegate(
            float idk,
            float idk2,
            float levelid,
            float roomid,
            float idk3
            );
        void LoadRoom_hook(
            float idk,
            float idk2,
            float levelid,
            float roomid,
            float idk3
            )
        {
            try
            {
                if (roomid == 640)
                {
                    this._messagequeue.Enqueue("Now Playing Level 1: Room 1!");
                }
                this._messagequeue.Enqueue(roomid.ToString());
                lock (this._messagequeue)
                {
                    if (this._messagequeue.Count < 1000)
                    {
                        this._messagequeue.Enqueue("this part works");
                    }
                }

            }
            catch {
            }
            this._messagequeue.Enqueue("function cleared");
            var returnVoid = Marshal.GetDelegateForFunctionPointer<LoadRoom_Delegate>(new IntPtr(Process.GetProcessesByName("HotlineMiami2")[0].Modules[0].BaseAddress.ToInt64() + 0x00EBDBF0));
            returnVoid(
             idk,
             idk2,
             levelid,
             roomid,
             idk3
            );
            return;
        }

Are you 100% sure that the calling convention and method signature are correct?


[WIP] MacOS app support

Accept macos.app.zip file only, I can not detect macOS build type as similar as iOS app.

TODO: convert iconv to png


Running example script generates excessive warnings with #Warn directive enabled

AutoHotkey version: <IP_ADDRESS>
Also occurred in version: <IP_ADDRESS>
I was working on a script that enumerates Chrome tabs, and I always include the #Warn directive.
When I tried to run my script, there were a lot of warnings raised.
One of the really frustrating ones was:
Warning in #include file
"...\Lib\UIA_Interface.ahk"
This line will never execute due to Exit preceeding it.
[...]
---> 3870: {

I then tried to run one of your example scripts, with #Warn enabled, and it caused a lot of warnings as well.
https://github.com/Descolada/UIAutomation/blob/main/Examples/Example3_Calculator.ahk
There were several superfluous warnings in UIA_Browser.ahk, most of them where there is a break following a return
Lines: 143, 188, 223, 396
Are there any plans on making the UIAutomation library #Warn safe/compliant?
TIA!

The latest update should fix the warnings. This involved a LOT of changes for both UIA_Interface and UIA_Browser, so please notify me here if you find any new bugs or warnings :)

Thank you Descolada for the #Warn fixes.
However there is one warning remaining within my script.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance Force

#include <TT-AutoReload>
#include <TT-Lib>
#include <UIA_Browser>
#include <JSON>
#include <VD>

I have tried placing the #include <UIA_Browser> at the top and also at the bottom.  The #include <UIA_Browser>  will trigger the warning regardless of position.
If you need more context, please let me know.

I have confirmed that commit 4b70408502267ec0f5ae6d1b992220df1bb27791 has fixed the final #Warn false positive.
Thank you.


feat(tagsInput): Provide leftover-text to view

Provide the content of the leftover-text to the view . This feature
allows more flexibility for error reporting when handling incorrect inputs.

Thanks for your contribution. Sorry for not replying sooner.
This will be addressed by #315 in a more general way, by allowing the inner input to be bound to an external property of the scope.

Can this PR be closed?


Clarify Node version requirements

Node >=10 is currently the minimum to use Prisma CLI and Client, the source of truth is currently:
https://github.com/prisma/prisma/blob/master/src/packages/cli/package.json#L33
https://github.com/prisma/prisma/blob/master/src/packages/client/package.json#L25
It's likely this will be updated to >=10.4 for BigInt support.
We should document that Prisma is supported on >=10 and that it's recommended to use a LTS version, currently v12 or v14 see https://nodejs.org/en/about/releases/
"Less important" fact from this issue.
Node >=10.13.0 is currently required to develop

https://www.prisma.io/docs/reference/system-requirements


add option to skip dependency installation

apt-get is not available on certain distributions so it's better to have
the option to leave it out so we can still have the ability to run this
action without having to be on ubuntu.
Indirectly helps resolve #54

Closing since this Pull Request seems stale, please reopen with the proposed changed if you are still interested in contributing to this project. Thanks!

I think we can close this! I ended up approaching this problem from a different angle and no longer need this PR


docs: add example of server-side events in controllers.md

Information

Type
Breaking change

Doc
No

Todos

[x] Documentation

Hello @IvaDey
Thanks a lot for this PR :D and I'm sorry for this late reply. I worked on a new feature for Ts.ED based on your PR documentation.
I think we need to provide a more robuste module because the given example is probably not compatible with Koa. So added in SSE example in the doc section doesn't follows the Ts.ED philosophy to provide a cross platform code exemple ^^.
But you couldn't really know that when you were editing the documentation.
I would to work together on this PR, that add a new @tsed/sse module to configure the server automatically and to provide an official Ts.ED API to implement SSE:
https://github.com/tsedio/tsed/pull/2763
This a draft, but I think it will be awesome to have it for all Ts.ED developers.
While waiting for this PR to move forward, we can just move your code to the tutorial section of the documentation.
We can also indicate that the example is not compatible with Koa and that a solution is being developed to provide official SSE support ;)
See you @IvaDey  and thank again for your involvement!

Sorry, missed notifications(
But seems this PR is not rellevant more due #2763


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Unable to add proxy settings while creating New Client

There is no way to add proxy url settings in NewClient function.
https://pkg.go.dev/github.com/microsoft/azure-devops-go-api/azuredevops/?tab=doc#NewClient

Here is an example of how you can set a proxy:
os.Setenv("HTTP_PROXY", "http://localhost.:8888")

os.Setenv applies for all APIs in the project.
I have attempted to exclude other APIs by adding os.Setenv("NO_PROXY", "url1,url2,url3").
Is it possible to set only for Azure client ?


#354 use literal empty string instead of string.empty

This implements #354 Use "" instead of String.Empty. Let me know if there are any remarks.

Coverage increased (+0.02%) to 90.92% when pulling 39dc5b08e1b23def9160951d6839c2a7bb3658a5 on kalkie:#354_Use_LiteralEmptyString_instead_of_String.Empty into 4df081f28bc43cc9c9c0b81bbffd04010a22edc2 on code-cracker:master.

@kalkie Good job!

Thanks @carloscds

Diagnostic id was 88. I just fixed it in 1314b17. Also, the code fix attribute was different, the format was recently updated by Microsoft and we followed.


How to attach to an existing Chrome Browser? - not doable unless it's special instance

No description provided.

Hi All!
I misclicked before, here is the issue:
I am trying to attach to an existing Browser window to do partial automation since the other parts of the process are quite easy to do and 1 time only. To achieve this goal, I need to attach TagUI to an existing Chrome tab, using the DOM to easily do what I need.
I tried to find a way to do it, but I did not make it. Is this possible to do?
This also refers to an older issue: https://github.com/kelaberetiv/TagUI/issues/666

Hi @DanielCCF oh that is not really possible. This is because TagUI needs to open a back door in Chrome through a websocket connection, so that it can control Chrome from backend. And that backdoor can only be opened when the Chrome session is initially launched. So you can't suddenly open the backdoor in an existing Chrome browser.
There are 3 alternative ideas you can consider -

try using visual automation to visually automate on the Chrome browser that you are working on. This mode does not require a backdoor to be opened because the automation happens through the frontend of Chrome browser.

Add a live step in your TagUI script or something like the following, so that you can do all the pre-requisite steps manually before letting the robot take over doing the rest -

// set timeout sufficiently long for your manual steps
timeout 900

// wait up to 900 seconds for some element to finally appear as the signal to start the automation
hover element

// set timeout back to default 10 seconds
timeout 10

There should be a way to launch Chrome with back socket to be used and then let TagUI latch onto it later. But that requires hacking your Chrome shortcut and hacking TagUI runner script. Not recommended unless there are no other ways.

Hi @kensoh ! Thanks for your time answering.
The second option is interesting in my case. I'll take a look at it.
Is it possible to create a Chrome Extension that allows us to access the Browser in a mostly secure way? This would be a nice feature.
From my side, this issue can be closed.

Hi Daniel, sure let me know how it goes and if you run into any problem!
Oh I think none of the RPA software companies does it through a Chrome extension. Maybe because of technical limitations or difficulties using that as a good integration channel. So there's no plan for that now in TagUI. However, there is 1 exception of RPA software that is Chrome extension based. Check out https://ui.vision it looks like a great tool and being driven from Chrome extension, though there is a usage limit on the free version.
TagUI has a Chrome extension, but that is mainly for recording web-based workflows and identifying elements -
https://chrome.google.com/webstore/detail/tagui-web-automation/egdllmehgfgjebhlkjmcnhiocfcidnjk?hl=en-GB


Added DebugBar improvements

Add positionBottom method to position it at the bottom of the screen
Remember expanded/collapsed state

My shell script for merging GitHub PRs was already in process when @klopfdreh commented.
@klopfdreh Please apply your improvements in master branch.
@pulse00 Thank you!

You mean the improvements of the comments in here?

Yes. $ -> vanilla JS.

Okay, I will investigate it when I got some time left.


Image resizer fails to launch as admin

Microsoft PowerToys version
0.75.1
Installation method
GitHub, Microsoft Store
Running as admin
Yes
Area(s) with issue?
Image Resizer
Steps to reproduce
2 PCs using Mouse Without Borders. Image Resizer works as expected on PC 1 as admin.
On PC 2 running as admin Image Resizer (r-click on image) just produces working cursor momentarily. Relaunch Powertoys on PC 2 in user mode Image Resizer works as expected. This is reproduceable.
✔ Expected Behavior
Image Resizer to launch on PC 2 in admin mode
❌ Actual Behavior
Using mouse from PC 1 on PC 2 running as admin Image Resizer (r-click on image) just produces working cursor momentarily.
Relaunch Powertoys on PC 2 in user mode Image Resizer works as expected.
Other Software
No response

/bugreport


Convertation error during sending the order

Hello!
I have an error during sending order:
Traceback (most recent call last):
	1: from 3_orders_buy.rb:93:in `<main>'
/usr/local/rvm/gems/ruby-2.5.1/gems/bitx-0.2.2/lib/private_api.rb:30:in `post_order': undefined method `to_d' for 0.0018:Float (NoMethodError)
Did you mean?  to_c
               to_f
               to_r
               to_i
               to_s

I call this function like this:
BitX.post_order('BID', (volume*2).round(4), (corner_price*0.95).round(2), ENV['TICKER'])

Where volume is float, corner price is float.
Also, I have a bigdecimal in my app and this gem are installed.
What can I do here?
Thank you.

Sorry, I found a solution:
require 'bigdecimal'
require 'bigdecimal/util'

(was only require 'bigdecimal')


Error: could not parse code block

Describe the bug
It is not possible to execute a code-block
To Reproduce
Steps to reproduce the behavior:

Create a slide with one page and a simple code-block
Start the slide and browse to the page with the code-block
Execute (Ctrl+e) the code-block
See error: Error: could not parse code block

---

## Bash

~~~bash
ls -al
~~~

Expected behavior
The code-block is executed
Desktop (please complete the following information):
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic
Software version
snap-id:      iVzf6DoBLkUj1lmBkm6cKA545qHx42nK
tracking:     latest/stable
refresh-date: today at 10:12 CEST
channels:
latest/stable:    0.3.0 2021-06-24 (11) 6MB -
latest/candidate: ↑
latest/beta:      ↑
latest/edge:      0.3.0 2021-06-24 (11) 6MB -
installed:          0.3.0            (11) 6MB -
Additional context
I found a fixed issue which mentioned the need of an empty-line after the code. I tried that without any change

Your answer from my other question fixed also this issue
https://github.com/maaslalani/slides/issues/47#issuecomment-868464499


URL Hack?

Im not too sure what the person was trying to do with this, but they were able to clear my MongoDB. I don't even use phpadmin so I'm not sure either what they were doing there, but yeah.
If this is just a issue with me and how i setup my site, would be nice if someone could tell me what i did wrong, since I've used flask for ages and I've never had this happen.

This is not related to Flask. Bad traffic like this is normal for servers that are publicly accessible. If you have designed an insecure app that is affected by such traffic, you need to identify and address the cause of that on your own.


W overlaps keybind with WASD movement

Hey, one little bug that many might not see.  I have edge-panning disabled because I run in windowed fullscreen mode with two monitors, and the game doesn't register the edge that joins the monitors properly.  So, I'm used to panning the display with WASD.  The W key with CQUI appears to open the "wonders" display on the key-up event, but still scrolls with the key-down event.
I can't find anywhere to change the keybinds to avoid the conflict, so I figured I'd mention it here.  Of course, I can use the arrow keys, it's just not as convenient.  Thanks for all the hard work!

You need to go into the games keybinding settings.

Of course, as I mentioned, I tried that and couldn’t find anything related to either setting.  Maybe it’s not obvious and is called something entirely unlike the screen it brings up?
Sent from Mail for Windows 10
From: NoShotz
Sent: Saturday, November 11, 2017 13:49
To: Azurency/CQUI_Community-Edition
Cc: Dread Quixadhal; Author
Subject: Re: [Azurency/CQUI_Community-Edition] W overlaps keybind with WASDmovement (#210)
You need to go into the games keybinding settings.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Huh, I have no idea why I couldn't find it the other day... nevermind. :)
It might be nice to rebind the W and E default actions to something like shift-W or alt-W and E, but today my eyes see the place in normal settings to unbind things.  Sorry!


(no-sample)-rlsfolder problem with the m2ts file extension ng-version: git-master-1605bb6b

i have the problem, when i use the option missing sample with symlink, that it creates a (no-sample)-symlink after the completen of the release. although the sample is present. this error only happens with the file extension m2ts. all others like mkv, avi and co work fine!
#define check_for_missing_sample_dirs   "/site/BLURAY/ /site/MKV/ /site/AVI/"
#define create_missing_sample_link        TRUE
#define subdir_list                                    "Sample"
#define allowed_types                             "mkv,m2ts,avi"
#define sample_list                                  "sample,vobsample,samples"
#define video_types                                 "mkv,m2ts,avi"
I have added a txt that probably expresses an info or even an error when compiling, but I can't interpret it myself.
pzserror.txt

Think issue can be found here, try to update the : zsconfig.defaults.h  and add m2ts to it, and recompli it again
before:
#ifndef sample_types #define sample_types_is_defaulted #define sample_types                               "mpg,mpeg,m2v,m2p,avi,mkv,mov,mp4,wmv,vob,ts,jpg,jpeg,png" #endif
afther:
#ifndef sample_types #define sample_types_is_defaulted #define sample_types                               "m2ts,mpg,mpeg,m2v,m2p,avi,mkv,mov,mp4,wmv,vob,ts,jpg,jpeg,png" #endif
hope this helps, if some else knows another way? comments plz


EcoCampus: Read in and use measured demand data in CEA instead of calculated demand

CEA has to be able to overwrite calculated heating / cooling / electricity / water demand per building with real measured data input.

create data reader, maybe in collaboration with @daren-thomas
overwrite or bypass demand calculation in tsd file with input data.

Do you have time this week to skype about this?

@daren-thomas of course. any time.

@JIMENOFONSECA do you think this is still desired? Or can I close it for now?


[Bug]: Cant' find latest docker image.

Is there an existing issue for the same bug?

[X] I have checked the existing issues.

Branch name
main
Commit ID
c3b2a1
Other environment information
安装提示:swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:poetry  Not Found .....  Not Found Tag

Actual behavior
安装提示:swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:poetry  Not Found .....  Not Found Tag
Expected behavior
安装提示:swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:poetry  Not Found .....  Not Found Tag
Steps to reproduce
安装提示:swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:poetry  Not Found .....  Not Found Tag

Additional information
安装提示:swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:poetry  Not Found .....  Not Found Tag

It will be pushed soon.

Pushed swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:poetry


[Feature] Duplicate Template

Closes #9
UI Changes

Checklist

[x] Feature implementation
[x] UI Changes
[x] Self-test
[x] Unit test

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.13 :tada:

Comparison is base (d6a826c) 96.93% compared to head (3b82dcf) 97.07%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #13      +/-   ##
============================================
+ Coverage     96.93%   97.07%   +0.13%
- Complexity      110      112       +2
============================================
  Files            39       40       +1
  Lines           490      512      +22
============================================
+ Hits            475      497      +22
  Misses           15       15

Impacted Files
Coverage Δ

...pp/Http/Controllers/DocumentTemplateController.php
100.00% <100.00%> (ø)

...Http/Requests/DocumentTemplateDuplicateRequest.php
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


premium themes/extension

Hi
can we sold premium themes and extension via your marketplace? setup a purchase link or similar? are you planinng add this?
thanks!!

We released the Pagekit Beta today. I close this issue because the code base completely changed. Please open a new issue if it still exists.


Remove libnistrng.a and librng.a

Issue: An .a file, to me, indicates a piece of general-purpose functionality that is ready to be linked into multiple application contexts. Our build process generates librng.a, containing the insecure randombytes() function which we do not wish users to link against outside of testing. This insecure randombytes() being packaged into an .a increases the risk of people linking against it in a production context.
Task: Don't generate librng.a as an intermediate artifact, but just add notrandombytes/randombytes.c to the source tree for the relevant test binaries.

@mkannwischer Do you agree?

Agree - librng.a is misleading. This is an artifact from how we setup the build system in the early days. Let's remove that.