text:
Keyboard Handler

Required Information

PHP version: 5.6.3
PHP Telegram Bot version: last
Using MySQL database: no
Update Method: Webhook
Self-signed certificate: yes

Expected behaviour
The bot response to the response in the button
Actual behaviour
I have a /keyboard command that prints out the buttons. How do I make a message when I select button "1"? When I run /keyboard I choose "1" but bot does't respond me
Extra details
class KeyboardCommand extends UserCommand
{
    protected $name = 'keyboard';
    protected $description = 'Show a custom keyboard with reply markup';
    protected $usage = '/keyboard';
    protected $version = '0.2.0';

    public function execute()
    {
        $chat_id = $this->getMessage()->getChat()->getId();
        $text = 'Hi!' . PHP_EOL . ' Choose button';

        $message = $this->getMessage();
        $choice = trim($message->getText());

        switch($choice)
        {
            case '1':
                $data = [
                    'chat_id'      => $chat_id,
                    'text'         => 'OK!',
                ];
                break;

            default:
                $keyboards = [];
                $keyboards[] = new Keyboard(
                    ['1', 'oranges'],
                    ['bananas', 'watermelons'],
                    ['vegetables']
                );

                $keyboard = $keyboards[0]
                    ->setResizeKeyboard(true)
                    ->setOneTimeKeyboard(true)
                    ->setSelective(false);

                $data = [
                        'chat_id'      => $chat_id,
                        'text'         => $text . $choice,
                        'reply_markup' => $keyboard,
                    ];

                break;
        }

        return Request::sendMessage($data);
    }
}

Use the Conversation feature to redirect user input to your command.
somewhere before switch():
$conversation = new Conversation($user_id, $chat_id, $this->getName());

($user_id and $chat_id must already be declared and contain appropriate values)
Once the command is done (no more user input needed) don't forget to
$conversation->stop();

otherwise all user input will keep getting redirected to this command.

@jacklul Thanks for your answer. I tried to change for myself, but it did not work out. I want information to be displayed after pressing a button, and then the dialogue stopped. I do not know what these variables are $notes, $state. How can I make this easier? When I send 1, the bot asks my age. And I must end the dialogue and display the information that I chose 1
class KeyboardCommand extends UserCommand
{
    /**#@+
     * {@inheritdoc}
     */
    protected $name = 'keyboard';
    protected $description = 'Show a custom keyboard with reply markup';
    protected $usage = '/keyboard';
    protected $version = '0.2.0';
    protected $need_mysql = true;
    protected $conversation;
    /**#@-*/
    /**
     * {@inheritdoc}
     */

    public function execute()
    {
        $message = $this->getMessage();
        $chat = $message->getChat();
        $user = $message->getFrom();
        $text = trim($message->getText(true));
        $chat_id = $chat->getId();
        $user_id = $user->getId();

        $data = [
            'chat_id' => $chat_id,
        ];
        if ($chat->isGroupChat() || $chat->isSuperGroup()) {
            $data['reply_markup'] = Keyboard::forceReply(['selective' => true]);
        }

        //Conversation start
        $this->conversation = new Conversation($user_id, $chat_id, $this->getName());
        $notes = &$this->conversation->notes;
        !is_array($notes) && $notes = [];
        //cache data from the tracking session if any
        $state = 0;
        if (isset($notes['state'])) {
            $state = $notes['state'];
        }
        $result = Request::emptyResponse();

        switch ($state) {
            case 0:
                if ($text === '') {
                    $notes['state'] = 0;
                    $this->conversation->update();
                    $data['text']         = 'Выберите интересующий Вас раздел';

                    $keyboards = [];
                    $keyboards[] = new Keyboard(
                     ['1', 'oranges'],
                     ['bananas', 'watermelons'],
                     ['vegetables']
                 );

                    $keyboard = $keyboards[0]
                        ->setResizeKeyboard(true)
                        ->setOneTimeKeyboard(true)
                        ->setSelective(false);

                    $data['reply_markup'] = $keyboard;
                    $result = Request::sendMessage($data);
                    break;
                }
                $notes['name'] = $text;
                $text          = '';
            // no break
            case 1:
                if ($text === '1') {
                    $notes['state'] = 1;
                    // $this->conversation->update();
                    $this->conversation->stop();
                    $data['text'] = 'Your choice: 1';
                    $data['reply_markup'] = Keyboard::remove(['selective' => true]);
                    $result = Request::sendMessage($data);
                    break;
                 }
                }

                $notes['surname'] = $text;
                $text             = '';
            // no break
            case 2:
                if ($text === '' || !is_numeric($text)) {
                    $notes['state'] = 2;
                    $this->conversation->update();
                    $data['text'] = 'Type your age:';
                    if ($text !== '') {
                        $data['text'] = 'Type your age, must be a number:';
                    }
                    $result = Request::sendMessage($data);
                    break;
                }
                $notes['age'] = $text;
                $text         = '';
            // no break
            case 3:
                if ($text === '' || !in_array($text, ['M', 'F'], true)) {
                    $notes['state'] = 3;
                    $this->conversation->update();
                    $data['reply_markup'] = (new Keyboard(['M', 'F']))
                        ->setResizeKeyboard(true)
                        ->setOneTimeKeyboard(true)
                        ->setSelective(true);
                    $data['text'] = 'Select your gender:';
                    if ($text !== '') {
                        $data['text'] = 'Select your gender, choose a keyboard option:';
                    }
                    $result = Request::sendMessage($data);
                    break;
                }
                $notes['gender'] = $text;
            // no break
            case 4:
                if ($message->getLocation() === null) {
                    $notes['state'] = 4;
                    $this->conversation->update();
                    $data['reply_markup'] = (new Keyboard(
                        (new KeyboardButton('Share Location'))->setRequestLocation(true)
                    ))
                        ->setOneTimeKeyboard(true)
                        ->setResizeKeyboard(true)
                        ->setSelective(true);
                    $data['text'] = 'Share your location:';
                    $result = Request::sendMessage($data);
                    break;
                }
                $notes['longitude'] = $message->getLocation()->getLongitude();
                $notes['latitude']  = $message->getLocation()->getLatitude();
            // no break
            case 5:
                if ($message->getPhoto() === null) {
                    $notes['state'] = 5;
                    $this->conversation->update();
                    $data['text'] = 'Insert your picture:';
                    $result = Request::sendMessage($data);
                    break;
                }
                /** @var PhotoSize $photo */
                $photo             = $message->getPhoto()[0];
                $notes['photo_id'] = $photo->getFileId();
            // no break
            case 6:
                if ($message->getContact() === null) {
                    $notes['state'] = 6;
                    $this->conversation->update();
                    $data['reply_markup'] = (new Keyboard(
                        (new KeyboardButton('Share Contact'))->setRequestContact(true)
                    ))
                        ->setOneTimeKeyboard(true)
                        ->setResizeKeyboard(true)
                        ->setSelective(true);
                    $data['text'] = 'Share your contact information:';
                    $result = Request::sendMessage($data);
                    break;
                }
                $notes['phone_number'] = $message->getContact()->getPhoneNumber();
            // no break
            case 7:
                $this->conversation->update();
                $out_text = '/Survey result:' . PHP_EOL;
                unset($notes['state']);
                foreach ($notes as $k => $v) {
                    $out_text .= PHP_EOL . ucfirst($k) . ': ' . $v;
                }
                $data['photo']        = $notes['photo_id'];
                $data['reply_markup'] = Keyboard::remove(['selective' => true]);
                $data['caption']      = $out_text;
                $this->conversation->stop();
                $result = Request::sendPhoto($data);
                break;
        }
        return $result;
    }
}

I don't know now what you're trying to achieve, you copied whole survey command into your own, you don't need state and notes variables in what you want to do, I told you what to do in my previous message, all you had to do is to initalize Conversation in your command so all input will be handled by it, then you close it when you no longer want all input to be redirected to that command.
Survey command is just general example of the usage of this feature, it's for testing and looking at code to see what each line does.

Still need any help? Могу быстро объяснить по-русски.

Будь добр, распиши как обрабатывать выбор кнопок и вообще как обрабатывать сообщения (не команды) приходящие от пользователя.

@iligzar Would be great if you could keep it in English, otherwise we can't help 😕

noplanman, of course. chuv1 written that can help in  russian.
so..
I dont understand how to work handler (webhook) with user messages (not command) and chose keybord button.
Example: Bot after start comand send to user answer "How are you?", user ask "fine" or "bad", bot hanle this answer and sendmessage to user "Great!" or "not great!".
please write 2 simple example how to do this with keybord and plantext.
P.S. sorry for my english

sorry to add, I also have similar problem like I want to create menu from keyboard. and the problem is
what I want : when i press "menu 01" in keyboard, i want it to redirect to "/menu01" and after searching the web it's somewhat impossible in telegram (label and text must be the same).
is there any workaround for this? I've been thinking like

alias for command, like "/help" can be called to if user type "helpme" (without "/")
custom command that can be called without "/"

but I haven't find out how to do it in here.

@arkhub Have a look here:
https://github.com/php-telegram-bot/core/issues/485#issuecomment-298847941

thanks it works perfectly :)

@noplanman yeap, thanks

authors: MyZik arkhub chuv1 iligzar jacklul noplanman


text:
🛑 phpMyFAQ Password Hash Generator Tool is down

In 376c0ae, phpMyFAQ Password Hash Generator Tool (https://password.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Password Hash Generator Tool is back up in 8ef0b80.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 phpMyFAQ Password Hash Generator Tool is down

In eb0a198, phpMyFAQ Password Hash Generator Tool (https://password.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Password Hash Generator Tool is back up in 1721d35 after 6 minutes.


text:
🛑 phpMyFAQ API is down

In b78c9a0, phpMyFAQ API (https://api.phpmyfaq.de/versions) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ API is back up in fa7f81d after 7 minutes.


text:
🛑 phpMyFAQ Demo is down

In 3630617, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in 7a17d40 after 8 minutes.


text:
add optional argument to check only a specific path or file

Feature Request

Q
A

New Feature
yes

RFC
yes

BC Break
no

Summary

It would be great if you could pass to phparkitect an optional argument to check only a specific path or file instead of all project files.
Examples:
./vendor/bin/phparkitect check src/Domain
./vendor/bin/phparkitect check src/Domain/FooBar.php

Is there any specific use case are you to cover with this feature?
First thing that comes to my mind is changing ClassSet::fromDir('src') to ClassSet::fromDir('src/Domain') in the config file

Sure, you can change the path using ClassSet::fromDir(...) in the configuration but I would like to temporarily change the path to check at runtime to focus only on one file or folder when there are too many checking errors.

this is an interesting use case... like when you want to execute an isolated test case... maybe could be a filter on command line

authors: fain182 micheleorselli ricfio

repo: phparkitect/arkitect


text:
🛑 phpBB-fr.com is down

In 3deea62, phpBB-fr.com (https://www.phpbb-fr.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpBB-fr.com is back up in 063902c.

repo: phpbb-fr-com/status-site


text:
centos6 & phpbrew

phpbrew won't find my installation of php 5.6.33, showing nothing in the list
while trying to install 5.6.33
./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/php-5.6.33' '--with-config-file-path=/root/.phpbrew/php/php-5.6.33/etc' '--with-config-file-scan-dir=/root/.phpbrew/php/php-5.6.33/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--enable-pcntl' '--with-pcre-regex' '--enable-pdo' '--enable-phar' '--enable-posix' '--with-readline' '--enable-sockets' '--enable-tokenizer' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-curl' '--enable-zip' '--with-openssl=yes' '--enable-opcache' >> /root/.phpbrew/build/php-5.6.33/build.log 2>&1
Error: Configure failed:
The last 5 lines in the log file:
checking which regex library to use... php

checking whether to enable LIBXML support... yes

checking libxml2 install dir... no

checking for xml2-config path...

configure: error: xml2-config not found. Please check your libxml2 installation.

I've the same problem with UBUNTU 16.04 (WLE) when trying to
phpbrew install --old 5.2.13 +mysql +small

The compiling issue is about the libXML and it should compile or install the libxml before running the phpbrew command.
For the CentOS 6, it should run the sudo yum install libxml2-develfirstly. For the Ubuntu 16.04, it should run thesudo apt-get install libxml2-dev` firstly.
And it seems that the CentOS 6 and Ubuntu 16.04 are too old and EOL(end of life) now.
I will close the issue. If having related issue in the newer Linux distributions, please feel free to create another issue :).

repo: phpbrew/phpbrew

license: mit

license_source: bigquery


text:
Compare 2 arrays with JSON.stringify

One line compare arrays

@Sporium Thank for that helper.
I added one more. See it online here https://1loc.dev/#compare-two-arrays

source: gharchive/pull-request

authors: Sporium phuoc-ng


text:
Bug in my_init.shutdown_runit_services

Is there a bug in my_init.shutdown_runit_services, row 250?
When running this: docker run --rm -t -i phusion/baseimage:<VERSION> /sbin/my_init -- bash -l as per you documentation, and exiting the shell (with exit), I get the following error message:

It complains about row 250, which is os.system("/usr/bin/sv -w %d down /etc/service/*", KILL_PROCESS_TIMEOUT). As the error message says, the os.system call takes only one parameter and here it's given two. I guess it's a mistake with string formatting, because if I correct the line to be os.system("/usr/bin/sv -w %d down /etc/service/*" %KILL_PROCESS_TIMEOUT) then it works.

That was just touched a few days ago: https://github.com/phusion/baseimage-docker/pull/388

Would you mind submitting a PR with your update? Please and thank you! 👍

I appreciate you fixing this in #392
I will get a new release out here in then next day.

Looks like a package got deprecated, https://travis-ci.org/phusion/baseimage-docker/builds/221641732#L1102
Issue #394 is related

Thanks for your contribution. 👍

authors: Theaxiom tgranqvist

repo: phusion/baseimage-docker


text:
良いところ診断の結果に優しさを追加したい

以下の結果を追加したい
'{userName}の良いところは優しさです。あなたの優しい雰囲気や立つ振る舞いに多くの人が癒されています。'

これから対応します

9fbf006  で対応されました


text:
fonts.googleapis.com alternative

When using the theme within China we noticed that fonts.googleapis.com is not working. Would it be possible for this theme not to use this url but include the font inside the theme like also is done for the default themes within mkdocs. see also https://github.com/mkdocs/mkdocs/issues/1138

We can bundle the fonts in with the static files of the theme.
https://fonts.google.com/knowledge/using_type/self_hosting_web_fonts
The font we use is Roboto, which has a very flexible license, so distributing it along with the Piccolo theme shouldn't be a problem.

I would very much like to use this theme, but as it stands, it is not compliant with widely accepted privacy basics.
Bundling the font would thus be much appreciated!

We can bundle the fonts in with the static files of the theme.
https://fonts.google.com/knowledge/using_type/self_hosting_web_fonts
The font we use is Roboto, which has a very flexible license, so distributing it along with the Piccolo theme shouldn't be a problem.

I opened a PR for this that implements your suggestion. I like the theme so it'll be nice if the privacy concerns of using this theme due to tracking from the Google fonts can be obviated.

Resolved by https://github.com/piccolo-orm/piccolo_theme/pull/57

@noxpardalis thanks! @dantownsend are there any plans for a new release with this feature?

@ThijsSassen Just did a release - should be available now in 0.16.0 👍

authors: Natureshadow ThijsSassen dantownsend noxpardalis


text:
error UserScript.swift:13:6: error build: Stored properties cannot be marked potentially unavailable with '@available'

flutter_inappwebview: ^5.4.3+7
xcode 14.0
/Volumes/huc/myshared/opt/fvm/versions/3.3.1/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview-5.4.3+7/ios/Classes/Types/UserScript.swift:13:6: error build: Stored properties cannot be marked potentially unavailable with '@available'
public class UserScript : WKUserScript {
   var groupName: String?
   @available(iOS 14.0, *)
   lazy var contentWorld: WKContentWorld = WKContentWorld.page

Hello! We have the same issue that prevent s us to build our app.

for temporary fix, you can follow the steps on https://github.com/pichillilorenzo/flutter_inappwebview/issues/1312#issuecomment-1245705493

Here also!
any solution?

authors: SalsabeelaHasan hc2088 pirrest ybbond


text:
Form controls size

Would be great if form controls (inputs, selects, switches and input groups) could have size classes like buttons has.

@victorwpbastos Inputs and Selects have smaller size by adding input-sm and select-sm.

I updated the doc here.

Yes, larger sizes for selects, inputs, switches and input groups would be great. Thanks for the attention and congratulations for the great job!

Spectre.css now provides small/large input, select and input groups. But no small or large switches.https://picturepan2.github.io/spectre/#forms


text:
How to share my location in the background?

If I want to update my location in the background every 15 minutes for an hour, how would I do so with this library? Would I have my own NSTimer to end it and set the Position.sharedPosition.timeFilter to 15?
EDIT:
How do I update location in the background? The documentation is a bit unclear on how to go about this process. Does oneshot imply only one attempt to update location? What method do I use to update location every time the user moves 40 meters?
EDIT 2:
If I set a distance filter and a time filter, is the time filter to let the singleton know when it expires and the distance filter know when to update the user location?

Hi @jayisidoro,

timeFilter is not fully integrated yet, so you have two options

Set up your own timer and call the one shot method every 15 minutes manually
Call startUpdating to receive continuous background location updates and set adjustLocationUseWhenBackgrounded and adjustLocationUseFromBatteryLevel to minimize battery usage in the background

Re: Edit 1

Background updates: make sure you've called requestAlwaysAuthorization and have set an NSLocationAlwaysUsageDescription to be able to get the user's location in the background. Then, call startUpdating to receive background location updates.
The performOneShotLocationUpdateWithDesiredAccuracy method can be used to quickly get the user's current location with a desired accuracy (in meters).

Re: Edit 2

The distanceFilter property specifies the minimum distance (meters) that your device must move in order for Position to generate an update event, similar to how CLLocationManager's distanceFilter works. Read more here.
In your case, to update location every time the user moves 40 meters, set distanceFilter = 40 and as long as you've called startUpdating, all observers will receive location updates every time your device moves >40 meters from the previously delivered location.

Hope this helps.

authors: gizmosachin jayisidoro

repo: piemonte/Position


text:
v1.2.1 - add spotifyWM support

if cfg.spotifyPackage is spotifywm, then create the spiced spotify derivation and pass it into the spotifywm wrapper.
Also add dontInstall and spicedSpotify and createPackages options, which are set by the module and can be used instead of installing the packages.

bruh


text:
Sphère animée non fonctionnelle dans la scène de la forêt

Une fois la scène de la forêt lancée, les particules de pluie et de brume fonctionnent, puis le joueur peut tourner la caméra. Cependant, la sphère amicale n'apparaît jamais.
Peut-être que l'animation de la sphère a été mal importée ou a été mal configurée.

La sphère est maintenant animée. Il fallait que je ré-importe l'animation dans un nouveau fichier anim et que j'assigne celui-ci sur la sphère.


text:
🛑 Stripe Endpoint URL is down

In 6be64e8, Stripe Endpoint URL ($STRIPEAPI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Stripe Endpoint URL is back up in 1977481 after 31 minutes.

repo: pikfarm/PikfarmStatus


text:
🛑 Stripe Endpoint URL is down

In e0205ad, Stripe Endpoint URL ($STRIPEAPI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Stripe Endpoint URL is back up in e6ced9e after 57 minutes.


text:
Add 32-bit build to release process

make release now produces a 32-bit linux binary.

Coverage remained the same at 66.711% when pulling 9deee72bda5b556625351bd7d8dd75350627e671 on codysoyland:32-bit-build into 7693fc42113feaf1dd08983bf93ce76611f2a25d on pilosa:master.

Coverage increased (+0.1%) to 66.856% when pulling 124a2e62a87b1a06026d1d05d9fad153b6d4a0ae on codysoyland:32-bit-build into 7693fc42113feaf1dd08983bf93ce76611f2a25d on pilosa:master.

authors: codysoyland coveralls

repo: pilosa/pilosa


text:
Group map modules as map_block

For map modules that require multiple map modules, for performance reasons, it's better to group all the required data into a single map module and name it something like map_block
Additionally, in Substreams production mode, the user can only listen to a single map module, which means if there are multiple map modules, it would require a new Substreams connection to listen to the 2nd or 3rd map module. Using this way with all the data within a single map module, it allows the user to listen to that single map module and receive all the data required.
Scope

group map modules to single module called map_block

helper function map_db_ops
helper function map_action_traces

Example
https://github.com/pinax-network/substreams-erc20/blob/08af80cf5620b0e7a4dca63b2744dbc4c83b6d93/src/maps.rs#L16-L26
#[substreams::handlers::map]
pub fn map_block(block: Block) -> Result<Erc20Block, Error> {
    let (approvals, transfers) = map_events(&block);
    let storage_changes = map_balance_of(block);

    Ok(Erc20Block {
        approvals,
        transfers,
        storage_changes,
    })
}

https://github.com/pinax-network/substreams-erc20/blob/08af80cf5620b0e7a4dca63b2744dbc4c83b6d93/proto/v1/erc20.proto#L5-L9
message Block {
  repeated ApprovalEvent approvals = 1;
  repeated TransferEvent transfers = 2;
  repeated BalanceOfStorageChange storage_changes = 3;
}

Very clever way to handle multiple map modules at once.
However, for the final purpose of this substreams I think we can keep the map_sales module as the only map module in it.
The others module I created were for data exploration regarding the data consistency with AtomicHub.
We can just remove the other map modules and have an even simpler substreams in the end

👍  we can keep map_sales as the single map module
As long as there's only a single main map module
Grouping all the data into a single map module and then we can split it afterwards by table in the graph_out & db_out

Removed the unecessary map modules

authors: DenisCarriere Pelotfr


text:
Add support for ST 🎆

Hey I added a theme for ST (the simple terminal) ! what do you think ?

@pineapplegiant (sorry for the mention) what do you think ? is there anything I should improve ?

repo: pineapplegiant/spaceduck-terminal


text:
web_blocking exception in response of new accounts request

[x] Updated to the lastest version v1.5.7

[x] Read the README and docs

[x] Searched the bugtracker for similar issues including closed ones

[x] Reviewed the sample code in tests and examples

[ ] app (instagram_private_api/)

[x] web (instagram_web_api/)

Describe the Bug/Error:
I recently created instagram account and with the help of media_comments route i am able to fetch comments of my specified post. I tried to run this on my VPS which i bought from hetzner but i faced the Expecting value: line 1 column 1 (char 0) exception.
After some experience with built-in code of media_comments i noticed the issue is coming from the line which is return json.loads(response_content). so i checked the response_content and it's an HTML that i pasted here.
"TermsUnblockPage": [{
    "data": {
        "screen_key": "web_blocking",
        "contents": {
            "web_blocking": {
                "consent_key": "web_blocking",
                "content_type": "text",
                "headline": "Updates to Our Terms and Data Policy",
                "paragraphs": [{
                    "text": "We've updated our Terms and made some changes to our Data Policy. Please take a moment to review these changes and let us know that you agree to them.",
                    "style": "paragraph"
                }, {
                    "text": "You need to finish reviewing this information before you can use Instagram.",
                    "style": "paragraph"
                }],
                "optional_paragraphs": []
            }
        },
        "primary_button_text": "Review Now",
        "launch_flow_directly": true
    },
    "__USE_DEPRECATED_API_SERIALIZER": true
}]

I can successfully get the response via my old instagram username and password but the new accounts have this issue.

Try logging in on the new accounts on a webbrowser or phone and agree on the new terms of service if you haven't already

@notcammy I can login on my phone and even from browser without any problems and there is no new terms of service to agree. I have this problem on the server not in my local. Also tried to use some terminal browser such as lynx to login instagram via my server but no success.

This may be linked to GDPR since you're connecting via a European host. You will need to manually accept the new TOS connected  through your browser via the same IP or another European location. Or just don't use a European host.

These errors occur when connecting via a European host because your Instagram profile is localized in a city governed by GDPR (General Data Protection Regulation). This is incompatible with the  instagram_private_api montioned in the README.md file used by the  Osintgram.py file code Line 14 - 15.
from instagram_private_api import Client as AppClient

from instagram_private_api import ClientCookieExpiredError, ClientLoginRequiredError, ClientError, ClientThrottledError

To resolve this issue, you must avoid using a European IP. Instead, create a new Instagram profile using an IP address, phone number, and email located in a non-European country, such as the USA or any other country not governed by GDPR regulations. This will prevent potential access issues to Instagram for your Instagram Private API
Please validate and close the issue if this answered your error! , this will help the developers and users of this tool who want to resolve the problem, thank you!

authors: MrSwilix SinaKhorami SinaKhorrami notcammy ping


text:
keyviz: support to modify the config through the front-end

revert #402 (so keyviz is disabled by default)
support to modify the config through the front-end

LGTM, just one point, do we need to wrap every method by useCallback(), does it low the performance without useCallback(), I use useCallback() rarely for other pages.
And btw, it has many compile warnings for React Hook useEffect has a missing dependency.

@baurine Agree. We can do it in May.

authors: HunDunDM baurine breeswish

repo: pingcap-incubator/tidb-dashboard


text:
[WIP] Support duration chaos for Network Chaos

What problem does this PR solve?
What is changed and how does it work?
Check List
Tests

Unit test
E2E test
Manual test (add detailed scripts or steps below)
No code

Code changes

Has Go code change
Has CI related scripts change
Has Terraform scripts change

Side effects

Breaking backward compatibility

Related changes

Need to update the documentation

Does this PR introduce a user-facing change?:

NONE

Codecov Report

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

@@           Coverage Diff           @@
##           master     #198   +/-   ##
=======================================
  Coverage   44.29%   44.29%
=======================================
  Files          18       18
  Lines         675      675
=======================================
  Hits          299      299
  Misses        343      343
  Partials       33       33

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 5ee8f1d...6998afd. Read the comment docs.

@YangKeao @cwen0 PTAL

@at15 Can you take a look at other part of this PR too

@at15 thank you very much❤

Thanks a lot for the code review.
Current layout is a bit of complex and I can't agree it anymore. As @at15 's advice, I would refactor the current layout to make the whole controller structure easier.

@Yisaer please solve the conflict

@cwen0 @YangKeao PTAL

authors: Yisaer codecov-io zhouqiang-cl

repo: pingcap/chaos-mesh


text:
zh,en: update dmctl commands for v2.0.3

First-time contributors' checklist

[ ] I've signed Contributor License Agreement that's required for repo owners to accept my contribution.

What is changed, added, or deleted? (Required)

Which DM version(s) do your changes apply to? (Required)

[x] master (the latest development version, including v3.0 changes)
[x] v2.0 (TiDB DM 2.0 versions)
[ ] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

This PR is translated from:
Other reference link(s):

Do your changes match any of the following descriptions?

[ ] Delete files
[ ] Change aliases
[ ] Need modification after applied to another branch
[ ] Might cause conflicts after applied to another branch

Does this PR still work in progress? Seems like the Git Commit Hash is not a value.

Does this PR still work in progress? Seems like the Git Commit Hash is not a value.

author says he wants to left these fields as templates
/lgtm

/lgtm

/merge

authors: CharLotteiu GMHDBJD lance6716

repo: pingcap/docs-dm


text:
Primary lock exception during regression test

Error 1105 (HY000): other error for mpp stream: Code: 0, e.displayText() = DB::Exception: primary_lock: "t\200\000\000\000
\000\000\000r_r\003\200\000\000\000\000\000\000?\003\200\000\000\000\000\000\000\002"
lock_version: 454344339710803970
key: "t\200\000\000\000\000\000\000r_r\003\200\000\000\000\000\000\000?\003\200\000\000\000\000\000\000\002"
lock_ttl: 50000
txn_size: 1
lock_for_update_ts: 454344339723911177
use_async_commit: true
min_commit_ts: 454344339723911179
secondaries: "t\200\000\000\000\000\000\000x_r\003\200\000\000\000\000\000\000?\003\200\000\000\000\000\000\000\002\003\20
0\000\000\000\000\000\020\036"

Tidb logs:
169056:[2024/12/03 08:35:20.386 +08:00] [INFO] [2pc.go:1314] ["send TxnHeartBeat"] [startTS=454344339710803970] [newTTL=30000] [isPipelinedTxn=false]
169063:[2024/12/03 08:35:30.387 +08:00] [INFO] [2pc.go:1314] ["send TxnHeartBeat"] [startTS=454344339710803970] [newTTL=40000] [isPipelinedTxn=false]
169091:[2024/12/03 08:35:40.387 +08:00] [INFO] [2pc.go:1314] ["send TxnHeartBeat"] [startTS=454344339710803970] [newTTL=50000] [isPipelinedTxn=false]
169094:[2024/12/03 08:35:43.333 +08:00] [WARN] [prewrite.go:415] ["async commit cannot proceed since the returned minCommitTS is zero, fallback to normal path"] [conn=3890217304] [session_alias=] [startTS=454344339710803970]

TiFlash logs:
tiflash-1/server.log:[2024/12/03 08:35:22.733 +08:00] [INFO] [RemoteRequest.cpp:34] ["Start to build remote request for 1 regions (1467) for table 114"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [thread_id=346]

tiflash-1/server.log:[2024/12/03 08:35:22.982 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 20801ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:23.075 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 20801ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:23.234 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 20801ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:23.442 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 20801ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:23.971 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 18801ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:25.160 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 19550ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:26.712 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 17550ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:29.708 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 21650ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:32.337 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 17801ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:34.735 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 19550ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:37.553 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 17550ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:39.941 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 19600ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:42.704 +08:00] [INFO] [<unknown>] ["get lock and sleep for a while, sleep time is 18600ms."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]

-- 08:35:45 错误超过 backoff，abort 查询
tiflash-1/server.log:[2024/12/03 08:35:45.210 +08:00] [ERROR] [<unknown>] ["coprocessor meets error, error message: {}, error code: {}"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:45.210 +08:00] [INFO] [<unknown>] ["cop task exit because already meet error"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> pingcap/coprocessor"] [thread_id=4076]
tiflash-1/server.log:[2024/12/03 08:35:45.210 +08:00] [WARN] [CoprocessorReaderSourceOp.cpp:78] ["coprocessor reader meets error: primary_lock: \"t\\200\\000\\000\\000\\000\\000\\000r_r\\003\\200\\000\\000\\000\\000\\000\\000?\\003\\200\\000\\000\\000\\000\\000\\000\\002\"\nlock_version: 454344339710803970\nkey: \"t\\200\\000\\000\\000\\000\\000\\000r_r\\003\\200\\000\\000\\000\\000\\000\\000?\\003\\200\\000\\000\\000\\000\\000\\000\\002\"\nlock_ttl: 50000\ntxn_size: 1\nlock_for_update_ts: 454344339723911177\nuse_async_commit: true\nmin_commit_ts: 454344339723911179\nsecondaries:..."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [thread_id=11]
tiflash-1/server.log:[2024/12/03 08:35:45.210 +08:00] [WARN] [Task.cpp:128] ["error occurred and cancel the query"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> 0"] [thread_id=11]
tiflash-1/server.log:[2024/12/03 08:35:45.210 +08:00] [WARN] [PipelineExecutorContext.cpp:104] ["error primary_lock: \"t\\200\\000\\000\\000\\000\\000\\000r_r\\003\\200\\000\\000\\000\\000\\000\\000?\\003\\200\\000\\000\\000\\000\\000\\000\\002\"\nlock_version: 454344339710803970\nkey: \"t\\200\\000\\000\\000\\000\\000\\000r_r\\003\\200\\000\\000\\000\\000\\000\\000?\\003\\200\\000\\000\\000\\000\\000\\000\\002\"\nlock_ttl: 50000\ntxn_size: 1\nlock_for_update_ts: 454344339723911177\nuse_async_commit: true\nmin_commit_ts: 454344339723911179... occured and cancel the query"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [thread_id=11]
tiflash-1/server.log:[2024/12/03 08:35:45.210 +08:00] [INFO] [EstablishCall.cpp:254] ["async connection for tunnel2+-1 cost 22479 ms, including 0 ms to wait task."] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2> tunnel2+-1"] [thread_id=918]
tiflash-1/server.log:[2024/12/03 08:35:45.210 +08:00] [INFO] [MPPTask.cpp:581] ["mpp task finish execute, is_success: false, status: RUNNING"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [thread_id=346]
tiflash-1/server.log:[2024/12/03 08:35:45.212 +08:00] [WARN] [MPPTask.cpp:751] ["Begin abort task: MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>, abort type: ONCANCELLATION"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [thread_id=143]
tiflash-1/server.log:[2024/12/03 08:35:45.212 +08:00] [WARN] [MPPTask.cpp:780] ["Finish abort task from running"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [thread_id=143]
tiflash-1/server.log:[2024/12/03 08:35:45.212 +08:00] [INFO] [MPPTask.cpp:155] ["finish MPPTask: MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [source="MPP<gather_id:1, query_ts:1733186122728528755, local_query_id:361, server_id:862, start_ts:454344342948282369,task_id:2>"] [thread_id=346]

similar logic for retrying in tidb : https://github.com/pingcap/tidb/blob/f347b9d334495c72d27c53532dfef522213dbaac/pkg/store/copr/coprocessor.go#L1660

repo: pingcap/tiflash


text:
WIP: Feature/hash window

What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/run-build-release comment=true


text:
kv(ticdc): kv client should handle region congested error explicitly

What problem does this PR solve?

Issue Number: close #11578
What is changed and how it works?
TiKV-CDC return Congested error if region fuse happens, after the PR https://github.com/tikv/tikv/pull/17507/files gets merged.

kv client handle Congested error explicitly, record it to the metrics, handle it like region_not_found

Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`.

/retest

/retest

/retest

repo: pingcap/tiflow


text:
version(ticdc): fix check version to 6.2.0-alpha

What problem does this PR solve?

Issue Number: close https://github.com/pingcap/tiflow/issues/6039
What is changed and how it works?
change version from 9999.0.0 to 6.2.0-alpha
Check List
Tests

No need

Questions
Will it cause performance regression or break compatibility?
No
Do you need to update user documentation, design documentation or monitoring documentation?
No
Release note
Fix the wrong maximum compatible version number

Codecov Report

:exclamation: No coverage uploaded for pull request base (release-6.1@4babf88). Click here to learn what that means.
The diff coverage is n/a.

Flag
Coverage Δ

cdc
62.1001% <0.0000%> (?)

dm
51.9328% <0.0000%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             release-6.1      #6040   +/-   ##
================================================
  Coverage               ?   56.4099%
================================================
  Files                  ?        532
  Lines                  ?      70071
  Branches               ?          0
================================================
  Hits                   ?      39527
  Misses                 ?      26774
  Partials               ?       3770

/merge

/run-all-tests

authors: codecov-commenter hi-rustin


text:
*: use FnvHashMap again

Benchmark at https://github.com/overvenus/benches-rust
Base on the benchmark, fnv hash map outperforms ordermap and fnv ordermap.
test collections::bench_fnv_map_little                 ... bench:         165 ns/iter (+/- 7)
test collections::bench_ordermap_little                ... bench:         387 ns/iter (+/- 9)
test collections::bench_fnv_ordermap_little            ... bench:         337 ns/iter (+/- 11)

test collections::bench_fnv_map_large                  ... bench:      20,211 ns/iter (+/- 495)
test collections::bench_ordermap_large                 ... bench:      42,226 ns/iter (+/- 589)
test collections::bench_fnv_ordermap_large             ... bench:      37,202 ns/iter (+/- 860)

test collections::bench_fnv_map_query_16               ... bench:          15 ns/iter (+/- 0)
test collections::bench_fnv_map_query_32               ... bench:          17 ns/iter (+/- 0)
test collections::bench_fnv_map_query_64               ... bench:          15 ns/iter (+/- 0)
test collections::bench_fnv_map_query_128              ... bench:          15 ns/iter (+/- 0)
test collections::bench_fnv_map_query_512              ... bench:          16 ns/iter (+/- 0)

test collections::bench_ordermap_query_16              ... bench:          23 ns/iter (+/- 0)
test collections::bench_ordermap_query_32              ... bench:          23 ns/iter (+/- 0)
test collections::bench_ordermap_query_64              ... bench:          24 ns/iter (+/- 0)
test collections::bench_ordermap_query_128             ... bench:          24 ns/iter (+/- 0)
test collections::bench_ordermap_query_512             ... bench:          25 ns/iter (+/- 0)

test collections::bench_fnv_ordermap_query_16          ... bench:          18 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_32          ... bench:          18 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_64          ... bench:          18 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_128         ... bench:          19 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_512         ... bench:          20 ns/iter (+/- 0)

test collections::bench_fnv_map_delete_insert_16       ... bench:          42 ns/iter (+/- 1)
test collections::bench_fnv_map_delete_insert_32       ... bench:          34 ns/iter (+/- 0)
test collections::bench_fnv_map_delete_insert_64       ... bench:          34 ns/iter (+/- 0)
test collections::bench_fnv_map_delete_insert_128      ... bench:          44 ns/iter (+/- 1)
test collections::bench_fnv_map_delete_insert_512      ... bench:          38 ns/iter (+/- 1)

test collections::bench_ordermap_delete_insert_16      ... bench:          61 ns/iter (+/- 0)
test collections::bench_ordermap_delete_insert_32      ... bench:          64 ns/iter (+/- 2)
test collections::bench_ordermap_delete_insert_64      ... bench:          64 ns/iter (+/- 1)
test collections::bench_ordermap_delete_insert_128     ... bench:          63 ns/iter (+/- 0)
test collections::bench_ordermap_delete_insert_512     ... bench:          67 ns/iter (+/- 1)

test collections::bench_fnv_ordermap_delete_insert_16  ... bench:          55 ns/iter (+/- 2)
test collections::bench_fnv_ordermap_delete_insert_32  ... bench:          54 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_delete_insert_64  ... bench:          56 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_delete_insert_128 ... bench:          56 ns/iter (+/- 1)
test collections::bench_fnv_ordermap_delete_insert_512 ... bench:          61 ns/iter (+/- 2)

Why OrderMap is prefered now? The result seems conflict with the previous benchmark, so which is correct?

Actually, fnv hashmap is prefered now :-P
It's up to compilation strategy. The previous benchmark compiled with CARGO_INCREMENTAL=1 that makes ordermap faster than fnv hashmap. Since TiKV release builds without incremental, this PR is correct!

FYI, rust has an issue (https://github.com/rust-lang/rust/issues/39773) about CARGO_INCREMENTAL=1 performance.

any performance improved for TiKV?

FnvHashMap slightly improves performance.
RawKV puts on 1 TiKV.
| OrderMap | FnvHashMap
-- | -- | --
TPS (per sec. avg(2min)) | 65180.04 | 65326.89
raftstore CPU | ~86.7% | ~85.3%
apply worker CPU | ~97.8% | ~97.9%

Probably influenced by this PR as well https://github.com/rust-lang/rust/pull/40561

Thanks for pointing out! @arthurprs
Your implementation has been adopted since nightly-2017-04-07. I did benchmarks for both nightly-2017-04-07 and nightly-2017-04-06 (the old). 04-07 is faster!
Left: 04-06
Right: 04-07
test collections::bench_fnv_map_delete_insert_128            39 ns/iter (+/- 0)          36 ns/iter (+/- 0)
test collections::bench_fnv_map_delete_insert_16             37 ns/iter (+/- 1)          40 ns/iter (+/- 0)
test collections::bench_fnv_map_delete_insert_32             35 ns/iter (+/- 0)          30 ns/iter (+/- 0)
test collections::bench_fnv_map_delete_insert_512            41 ns/iter (+/- 0)          36 ns/iter (+/- 0)
test collections::bench_fnv_map_delete_insert_64             44 ns/iter (+/- 0)          35 ns/iter (+/- 0)
test collections::bench_fnv_map_large                    19,216 ns/iter (+/- 179)    17,992 ns/iter (+/- 164)
test collections::bench_fnv_map_little                      144 ns/iter (+/- 2)         149 ns/iter (+/- 3)
test collections::bench_fnv_map_query_128                    18 ns/iter (+/- 0)          17 ns/iter (+/- 0)
test collections::bench_fnv_map_query_16                     17 ns/iter (+/- 0)          15 ns/iter (+/- 0)
test collections::bench_fnv_map_query_32                     17 ns/iter (+/- 0)          15 ns/iter (+/- 0)
test collections::bench_fnv_map_query_512                    22 ns/iter (+/- 0)          19 ns/iter (+/- 0)
test collections::bench_fnv_map_query_64                     17 ns/iter (+/- 0)          15 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_delete_insert_128       48 ns/iter (+/- 0)          45 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_delete_insert_16        45 ns/iter (+/- 0)          54 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_delete_insert_32        46 ns/iter (+/- 0)          43 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_delete_insert_512       47 ns/iter (+/- 1)          49 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_delete_insert_64        43 ns/iter (+/- 0)          44 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_large               26,292 ns/iter (+/- 265)    24,857 ns/iter (+/- 334)
test collections::bench_fnv_ordermap_little                 215 ns/iter (+/- 4)         215 ns/iter (+/- 6)
test collections::bench_fnv_ordermap_query_128               19 ns/iter (+/- 0)          20 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_16                18 ns/iter (+/- 0)          18 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_32                20 ns/iter (+/- 0)          19 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_512               20 ns/iter (+/- 0)          20 ns/iter (+/- 0)
test collections::bench_fnv_ordermap_query_64                20 ns/iter (+/- 0)          19 ns/iter (+/- 0)
test collections::bench_ordermap_delete_insert_128           48 ns/iter (+/- 0)          48 ns/iter (+/- 0)
test collections::bench_ordermap_delete_insert_16            53 ns/iter (+/- 0)          53 ns/iter (+/- 1)
test collections::bench_ordermap_delete_insert_32            48 ns/iter (+/- 1)          49 ns/iter (+/- 0)
test collections::bench_ordermap_delete_insert_512           52 ns/iter (+/- 0)          52 ns/iter (+/- 0)
test collections::bench_ordermap_delete_insert_64            47 ns/iter (+/- 0)          48 ns/iter (+/- 0)
test collections::bench_ordermap_large                   30,014 ns/iter (+/- 336)    29,758 ns/iter (+/- 314)
test collections::bench_ordermap_little                     242 ns/iter (+/- 6)         240 ns/iter (+/- 2)
test collections::bench_ordermap_query_128                   24 ns/iter (+/- 0)          24 ns/iter (+/- 0)
test collections::bench_ordermap_query_16                    24 ns/iter (+/- 0)          24 ns/iter (+/- 0)
test collections::bench_ordermap_query_32                    24 ns/iter (+/- 0)          24 ns/iter (+/- 0)
test collections::bench_ordermap_query_512                   26 ns/iter (+/- 0)          25 ns/iter (+/- 0)
test collections::bench_ordermap_query_64                    25 ns/iter (+/- 0)          25 ns/iter (+/- 0)

I think we can reuse FNV again
What is your opinion, @BusyJay?

LGTM

LGTM

authors: BusyJay arthurprs ngaut overvenus siddontang

repo: pingcap/tikv


text:
kerberos_username/kerberos_password not found when using variable

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
PingFederate Terraform provider Version
0.12.1
PingFederate Version
11.3.5
Terraform Version
Run terraform -v to show the version.
Terraform v1.9.3
on linux_amd64

provider registry.terraform.io/hashicorp/aws v5.60.0
provider registry.terraform.io/pingidentity/pingfederate v0.12.0

Affected Resource(s)
Please list the resources as a list, for example:

pingfederate_kerberos_realm

Terraform Configuration Files
variable "KERB_INTERNAL_username" {
  description = "The username for the Kerberos Realm"
  type        = string
  default   = "user"
}

variable "KERB_INTERNAL_password" {
  description = "The password for the Kerberos Realm"
  type        = string
  sensitive   = true
  default    = "password123"
}

resource "pingfederate_kerberos_realm" "KERB-INTERNAL" {
  realm_id            = "KERB-INTERNAL"
  kerberos_realm_name = "internal.domain.net"
  kerberos_username   = var.KERB_INTERNAL_username
  kerberos_password   = var.KERB_INTERNAL_password
  key_distribution_centers = [
    "dc001",
    "dc002"
  ]
  connection_type = "DIRECT"
  suppress_domain_name_concatenation = false
  retain_previous_keys_on_password_change = true
}

Expected Behavior
kerberos_username and keberos_password are detected from the variables
Actual Behavior
╷
│ Error: Property Required:
│
│   with pingfederate_kerberos_realm.KERB-INTERNAL,
│   on kerberos_realms_KERB-INTERNAL.tf line 12, in resource "pingfederate_kerberos_realm" "KERB-INTERNAL":
│   12: resource "pingfederate_kerberos_realm" "KERB-INTERNAL" {
│
│ kerberos_username is required when connection_type is set to "DIRECT".
╵
╷
│ Error: Property Required:
│
│   with pingfederate_kerberos_realm.KERB-INTERNAL,
│   on kerberos_realms_KERB-INTERNAL.tf line 12, in resource "pingfederate_kerberos_realm" "KERB-INTERNAL":
│   12: resource "pingfederate_kerberos_realm" "KERB-INTERNAL" {
│
│ kerberos_password is required when connection_type is set to "DIRECT".
╵
If I hard code the values in the resource the error goes away. I also tried using aws secrets with jsondecode in the resource with no variable and get the same error.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:

terraform plan

This fix will be pushed in the next release - 0.14.0

This has been fixed in the new v0.14.0 release - https://registry.terraform.io/providers/pingidentity/pingfederate/latest


text:
InvalidArgumentException: Command is not defined When use Artisan::call('module:migrate')

Hi, how should i use Artisan::call('module:XXX') in test code correctly?
this is my XXXTaseCase.php
namespace Modules\Sales\Tests;

use Illuminate\Support\Facades\Artisan;
use \TestCase;
use Log;

class AdOnlineTestCase extends TestCase {

	protected function initDatabase() {

		parent::initDatabase();

		Artisan::call('module:migrate-reset');

		Artisan::call('module:migrate');

		Artisan::call('module:seed sales');

	}
}

and i will receive:
5) Modules\Sales\Tests\AdOnlineRepositoryTest::testDelete
InvalidArgumentException: Command "module:seed sales" is not defined.

Did you mean one of these?
    module:publish-migration
    module:publish-translation
    module:publish
    ....
    ...

Thank you~!

Same problem here with the command: module:make Test. Did you find a solution?

The solution is:
Artisan::call('module:seed', ['module' => 'sales']);

authors: judantus timvanuum winwu

repo: pingpong-labs/modules


text:
🛑 hangeul is down

In 50c125d, hangeul (https://archives.hangeul.go.kr/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hangeul is back up in 0a8d78a after 2 hours, 54 minutes.

repo: pinnode/pinnode


text:
Stackoveflow upvote/downvote not working

Copy functionality is working as it intends to but not the upvote/downvote button while this extension is enabled

I've corrected the code and made the pull request. Closing this issue now.


text:
Update reactor publishOn, subscribeOn options

Update reactor publishOn, subscribeOn options
Add options.
# Set whether to trace the publishOn(), subscribeOn() methods
profiler.reactor.trace.publishOn=true
profiler.reactor.trace.subscribeOn=true

Applied to version 2.6.0

repo: pinpoint-apm/pinpoint


text:
Fix static declarations

As titled.

Thanks! I doubt anyone was relying on these symbols being link-able, especially without any formal extern declarations in the headers.

Thanks! I doubt anyone was relying on these symbols being link-able, especially without any formal extern declarations in the headers.

🍻

🍻

authors: hoppenichu jparise

repo: pinterest/PINCache


text:
Cannot have working filename-based rules and avoid .editorconfig loading at the same time.

Expected Behavior
To be able to process code snippets with a virtual file path with the following two behaviors:

To not check the filesystem for .editorconfig files
To have rules that depend on the file path such as standard:filename work correctly

Observed Behavior

If we use Code.fromSnippetWithPath, the standard: filename rule works, but editorconfig files are checked.
If we use Code.fromSnippet, .editorconfig files are ignored but rules such as standard:filename will not work.

Context

I lint kotlin files using the ktlint API. I want to use rules such as standard:filename that depend on the filepath, but I do not want the filesystem to be checked for .editorconfig files. I do use a .editorconfig file, but I handle the IO with it myself and provide it to the engine as a specially constructed EditorConfigDefaults.

Suggested Solution
RuleExecutionContext.createRuleExecutionContext is hardcoded such that Code.filePath is used both for providing the filePath to the psiFile for use in rules (PsiFileFactory.createFileFromText) and for loading .editorconfig files. (EditorConfigLoader.load). Somehow this should be refactored so that API users may provide file paths to the psi file and/or provide file paths for .editorconfig loading separately. They should not be required to use both features in an all-or-nothing way since they are not interdependent.

I lint kotlin files using the ktlint API. I want to use rules such as standard:filename that depend on the filepath, but I do not want the filesystem to be checked for .editorconfig files. I do use a .editorconfig file, but I handle the IO with it myself and provide it to the engine as a specially constructed EditorConfigDefaults.

Out of curisosity, why do you to handle the IO regarding .editorconfig yourself? One of the key features of Ktlint is that it does respect the .editorconfig when it does find it on the path. The .editorconfig standard offer more functionality than it seems to do at first glance. Implementing this yourselves might lead to deviations from that standard. Of course that is not problem when you are the only user of your API. But if you would expose this API to others, it can lead to confusion, and in the end to complaints about Ktlint not working correctly.
Instead of using EditorConfigDefaults it might be better to the EditorConfigOverride. The latter takes precedence on settings found in real .editorconfig file(s), while the EditorConfigDefaults only is used whenever a setting is not found in the real .editorconfig file(s).

Thanks for explaining this.
When looking at the timespan of a build (a couple of minutes on your local machine), versus the frequency in which an .editorconfig file is modified, it feels to me like overengineering if Ktlint would facilitate this.
More important is that from a technical perspective this is unneeded. Ktlint only reads an .editorconfig file once, and then stores it into a cache. For bigger projects having a lot of files and/or lots of directories it is just to performace costly to read the .editorconfig for each file/directory being accessed. Ktlint won't clear the cache itself as long as the KtlintRuleEngine instance is kept alive. So as long as the API Consument is not instructing KtlintRuleEngine to clear the cache, this problem will not occur.

Might I suggest API users be offered a minimalistic option to just disable .editorconfig loading altogether? It seems this would solve all of these issues, since an API user can already parse a .editorconfig manually and pass it to the engine in the form of EditorConfigDefaults and therefore don't technically need to rely on the library's built-in configuration file IO.

I am not worried about complexity needed to implement a feature like. However, if I would implement it, I would take a different approach and just implement a flag in the KtlintRuleEngine instead of passing it via the Code Snippets.
The reason that I do not want to implement a functionality like this, is that there is no need for it for a larger group of users. Implementing functionalities that benefits a single user or a small group of users will add up to a lot of complexity in the long term. Once it is added to the public API, it has to be maintained. Usually the developer who has added the specific functionality is by then gone, or not using ktlint anymore. I have seen dozens of functionalities that ended up like that in Ktlint, and it has cost me a lot of time and lots of breaking changes to get rid of it.
So I am not saying that it is a bad idea, but merely that I do not see the value in it for the general user base of Ktlint. Next to that, you just seem to dismiss my remarks about why I think it is not needed in your use case:

More important is that from a technical perspective this is unneeded. Ktlint only reads an .editorconfig file once, and then stores it into a cache. For bigger projects having a lot of files and/or lots of directories it is just to performace costly to read the .editorconfig for each file/directory being accessed. Ktlint won't clear the cache itself as long as the KtlintRuleEngine instance is kept alive. So as long as the API Consument is not instructing KtlintRuleEngine to clear the cache, this problem will not occur.

Thanks a lot for elaborating on this.
I am not very familiar with the Gradle eco system. But your explanation did rang a bell.

I have a custom gradle task. I am devoted to developing my gradle plugin to do all of its work lazily as much as possible and to adhering to best practices. So, adhering to idiomatic gradle here means that the .editorconfig file should either be a configuration input or a task input. With configuration caching enabled, all configuration and task inputs must be calculated prior to any tasks executing.

In https://github.com/pinterest/ktlint/issues/1446 you can read more about a similar use case. This was resolved by adding the method below to the KtlintRuleEngine:
    /**
     * Get the list of files which will be accessed by KtLint when linting or formatting the given file or directory.
     * The API consumer can use this list to observe changes in '.editorconfig' files. Whenever such a change is
     * observed, the API consumer should call [reloadEditorConfigFile].
     * To avoid unnecessary access to the file system, it is best to call this method only once for the root of the
     * project which is to be [lint] or [format].
     */
    public fun editorConfigFilePaths(path: Path): List<Path> = EditorConfigFinder(editorConfigLoaderEc4j).findEditorConfigs(path)

I might still not be exactly what you want, but it seems to work for the ktlint Gradle plugin.

Edit: Actually, its not as helpful as I thought. It requires constructing the ktlint engine which I would like to avoid doing at gradle configuration time. And it cannot prevent the engine from reloading the editorconfig files which might be edited during the build. It could help with input tracking on the gradle side, but in my opinion, we need a way to pass .editorconfig as arguments instead of disk IO, or at least an off switch for disabling all editorconfig disk IO.

I can understand this. But still I feel the same objection, I had before:

The reason that I do not want to implement a functionality like this, is that there is no need for it for a larger group of users. Implementing functionalities that benefits a single user or a small group of users will add up to a lot of complexity in the long term. Once it is added to the public API, it has to be maintained. Usually the developer who has added the specific functionality is by then gone, or not using ktlint anymore. I have seen dozens of functionalities that ended up like that in Ktlint, and it has cost me a lot of time and lots of breaking changes to get rid of it.
So I am not saying that it is a bad idea, but merely that I do not see the value in it for the general user base of Ktlint.

I am closing the issue for now. I am willing to reopen it when it would be beneficial and requested by at least one or two other integrators like the ktlint gradle-plugin, or detekt.

repo: pinterest/ktlint


text:
No empty line between annotation and the class/method/property...

This sould be flagged:
@Mockable

class MyCoolClass

And the correction should be:
@Mockable
class MyCoolClass

There should not be empty lines between an annotation and the thing that it's "annotating".

#755 For review for the fix

authors: AdamMTGreenberg BraisGabin


text:
Abuout HotKeyDetector

I think HotKey Detector is an interesting class, but I don't understand in what scenarios this class is used?

It's useful when you want to detect individual hot keys. For example, a single key is contributing to over X% of the total traffic.

authors: newpoo xunliu

repo: pinterest/rocksplicator


text:
Fix Codacy warnings

Run standardjs across all js files, fix all other issues by hand

@kc5nra can you approve my CR

Pull Request Test Coverage Report for Build 1947

0 of 0   changed or added relevant lines in 0 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.02%) to 79.202%

Files with Coverage Reduction
New Missed Lines
%

internal/mux/mux.go
2
92.5%

pkg/ice/candidate.go
4
91.11%

Totals

Change from base Build 1937:
0.02%

Covered Lines:
3850

Relevant Lines:
4861

💛  - Coveralls

authors: Sean-Der coveralls

repo: pions/webrtc


text:
Some suggestions

Thanks for the amazing project! However, I've met some issues and I would like to list some suggestions for this userscript.

Replace "on X" to "on Twitter" in on Tweets (Posts)

Recover several string texts to the original (Twitter) ones.

Examples:

Premium -> Blue
Post -> Tweet
etc.

Anyway, thanks for the project~

Thanks. I think the first one is a good idea. And  I will consider the viability of 2.

Title replacement has been enhanced, including the case mentioned.
Twitter Blue's icon and text are restored.
Other texts won't be replaced and would be considered out of the scope unless it's really annoying.

released in v1.8.0

authors: AlanYe-Dev pionxzh

repo: pionxzh/Get-Twitter-Icons-Back


text:
Which shells should be supported

The readme currently lists the following shells: bash, zsh, fish.
https://opensource.com/business/16/3/top-linux-shells

Let's start with bash + zsh (~3/4 of users).
See #68

repo: pior/dad


text:
suggestion: a default value for createAction with payload and meta

There should be a
actionCreator<P, M>(type: ...): (Payload: P, Meta: M) => {type: ..., payload: P, meta: M}

Hi,
Please explain what you are trying to achieve, what are the benefits from this and the example usage.

const aNormalAction = actionCreator("normal")
aNormalAction(2)
// I get {type: "normal", payload: 2}
Benefits here is we can create a simple action without repeating (...) => ({type: ..., payload: ...})

Ah ok, so you basically want an escape hatch for a payload with type any, I need to think about it because the goal here is to have a strictly typed experience.
actionCreator without payload is specifically designed to show an error when you try to provide some input parameter and this is a good thing, because it's a TS library focused on limiting the developers errors and using your actions in incorrect way that you designed them in the first place.

What? No, I don't want "any" either.
I want to provide a type parameter to actionCreator, and then a typed function is return, like this
function actionCreator<Payload, Type extends string>(type: Type, creatorFn: (payload: Payload) => ({ type: Type, payload: Payload }) = payload => ({ type, payload }))

With this approach, I can get a typed action but without provide a creatorFn (well, this is for simple actions)

Ok but what you want to do is technically impossible, if you don't provide a payload type when invoking  a higher order function how type inference is supposed to get the payload type?
Have you tested it?
If yes then please show me the reference implementation of actionCreator function only for this specific case, should be easy.

Alright, no filling generics type? Then it becomes impossible now

@Jack-Works At least IMO there shouldn't be with the current API because that would be breaking change, maybe we could think about adding a new API but it should be generic enough to handle most of possible use cases, because I don't want to end up with a separate creator for each use case.

Also I can see that the type string literal will lose it's type (and become any) if you do not explicitly provide it as a generic type argument, which is cumbersome.

Yes... If modify createAction directly to support explicit payload type, type will be any...

I'm about to experiment if it would be possible to infer the type literal type just from argument using the newest infer mechanics from conditional types, I guess that it should work, but I need to make sure. That would simplify API and keep it DRY

authors: Jack-Works piotrwitek

repo: piotrwitek/typesafe-actions


text:
notify gitter on travis build success (1st time)

Experimenting with posting successful build notifications into gitter. Curious what the signal/noise will look like.
Cute Animal Picture

Notification spam seems pretty harmless in gitter. Merging, and will remove again later, if we're unhappy with it.


text:
Add help description for ensurepath and completions.

[x] I have added an entry to docs/changelog.md

Summary of changes
The subparsers for ensurepath and completions didn't have a description argument.  This meant that getting the specific help for the subcommand (e.g. pipx ensurepath --help) didn't give you a description of the subcommand, you had to view the overall pipx help (pipx --help) to read the description of those subcommands.
For the pipx  subcommand completions, I duplicated the help argument of its subparser into the description argument.
For the pipx subcommand ensurepath, I moved the verbose help description into its subparser's description, and made a briefer summary to replace its help text (which is shown for pipx --help).
Test plan

Tested by running
pipx --help
pipx ensurepath --help
pipx completions --help

New
> pipx --help
usage: pipx [-h] [--version]
            {install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall-all,list,run,runpip,ensurepath,completions}
            ...

[...]
subcommands:
  Get help for commands with pipx COMMAND --help

  {install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall-all,list,run,runpip,ensurepath,completions}
    install             Install a package
    inject              Install packages into an existing Virtual Environment
    upgrade             Upgrade a package
    upgrade-all         Upgrade all packages. Runs `pip install -U <pkgname>`
                        for each package.
    uninstall           Uninstall a package
    uninstall-all       Uninstall all packages
    reinstall-all       Reinstall all packages
    list                List installed packages
    run                 Download the latest version of a package to a
                        temporary virtual environment, then run an app from
                        it. Also compatible with local `__pypackages__`
                        directory (experimental).
    runpip              Run pip in an existing pipx-managed Virtual
                        Environment
    ensurepath          Ensure directories necessary for pipx operation are in
                        your PATH environment variable.
    completions         Print instructions on enabling shell completions for
                        pipx
> pipx ensurepath --help
usage: pipx ensurepath [-h] [--force]

Ensure directory where pipx stores apps is in your PATH environment variable.
Also if pipx was installed via `pip install --user`, ensure pipx itself is in
your PATH. Note that running this may modify your shell's configuration
file(s) such as '~/.bashrc'.

optional arguments:
  -h, --help   show this help message and exit
  --force, -f  Add text to your shell's config file even if it looks like your
               PATH already contains paths to pipx and pipx-install apps.
> pipx completions --help
usage: pipx completions [-h]

Print instructions on enabling shell completions for pipx

optional arguments:
  -h, --help  show this help message and exit
>

Old
> pipx --help
usage: pipx [-h] [--version]
            {install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall-all,list,run,runpip,ensurepath,completions}
            ...

subcommands:
  Get help for commands with pipx COMMAND --help

  {install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall-all,list,run,runpip,ensurepath,completions}
    install             Install a package
    inject              Install packages into an existing Virtual Environment
    upgrade             Upgrade a package
    upgrade-all         Upgrade all packages. Runs `pip install -U <pkgname>`
                        for each package.
    uninstall           Uninstall a package
    uninstall-all       Uninstall all packages
    reinstall-all       Reinstall all packages
    list                List installed packages
    run                 Download the latest version of a package to a
                        temporary virtual environment, then run an app from
                        it. Also compatible with local `__pypackages__`
                        directory (experimental).
    runpip              Run pip in an existing pipx-managed Virtual
                        Environment
    ensurepath          Ensure directory where pipx stores apps is in your
                        PATH environment variable. Also if pipx was installed
                        via `pip install --user`, ensure pipx itself is in
                        your PATH. Note that running this may modify your
                        shell's configuration file(s) such as '~/.bashrc'.
    completions         Print instructions on enabling shell completions for
                        pipx
> pipx ensurepath --help
usage: pipx ensurepath [-h] [--force]

optional arguments:
  -h, --help   show this help message and exit
  --force, -f  Add text to your shell's config file even if it looks like your
               PATH already contains paths to pipx and pipx-install apps.
> pipx completions --help
usage: pipx completions [-h]

optional arguments:
  -h, --help  show this help message and exit
>

Nice

repo: pipxproject/pipx


text:
最新版本chrome 使用特效不支持

chrome 会报错 editor.js:434 Error: ERROR: 0:377: 'GL_EXT_shader_texture_lod' : extension is not supported

硬件是什么？

硬件和系统是什么？
chrome版本：76.0.3809.132（正式版本） （64 位）
操作系统：win10 64位
补充：目前只有chrome有问题，火狐，ie等均没问题。

有可能是 chrome 新版本在特定平台上禁用了这个 WebGL 的 extension

有可能是 chrome 新版本在特定平台上禁用了这个 WebGL 的 extension
echarts-gl 开启ambientCubemap 也是此问题，请问针对此问题有别的解决方式吗？

authors: Mrzhangqc pissang

repo: pissang/claygl


text:
getUsagelogs returning KeyError 'Content'

Hi there,
I followed the link from https://www.fullstackanalyst.io/blog/adobe-analytics/monitor-adobe-analytics-usage-for-free-with-power-bi-and-python/ and was hoping to use this to get some SS reporting running but I keep getting a 'content' error.
Error logs as below:
startDate='2022-07-11T00:00:00-07'
endDate='2022-07-12T14:32:33-07'
mycompany.getUsageLogs(startDate=startDate,endDate=endDate)
2022-07-13 15:28:34,654::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::starting getUsageLogs::2162
2022-07-13 15:28:34,654::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::starting getUsageLogs::2162
2022-07-13 15:28:34,654::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::starting getUsageLogs::2162
2022-07-13 15:28:34,654::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::starting getUsageLogs::2162
2022-07-13 15:28:34,654::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::starting getUsageLogs::2162
2022-07-13 15:28:34,655::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::params: {'page': 0, 'limit': 100, 'startDate': '2022-07-11T00:00:00-07', 'endDate': '2022-07-12T14:32:33-07'}::2182
2022-07-13 15:28:34,655::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::params: {'page': 0, 'limit': 100, 'startDate': '2022-07-11T00:00:00-07', 'endDate': '2022-07-12T14:32:33-07'}::2182
2022-07-13 15:28:34,655::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::params: {'page': 0, 'limit': 100, 'startDate': '2022-07-11T00:00:00-07', 'endDate': '2022-07-12T14:32:33-07'}::2182
2022-07-13 15:28:34,655::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::params: {'page': 0, 'limit': 100, 'startDate': '2022-07-11T00:00:00-07', 'endDate': '2022-07-12T14:32:33-07'}::2182
2022-07-13 15:28:34,655::aanalytics2.aanalytics2.analytics::getUsageLogs::DEBUG::params: {'page': 0, 'limit': 100, 'startDate': '2022-07-11T00:00:00-07', 'endDate': '2022-07-12T14:32:33-07'}::2182
Traceback (most recent call last):
Input In [27] in <cell line: 3>
mycompany.getUsageLogs(startDate=startDate,endDate=endDate)
File ~\Anaconda\lib\site-packages\aanalytics2\aanalytics2.py:2184 in getUsageLogs
data = res['content']
KeyError: 'content'
Do you have any ideas? I'm stuck ^^
Thanks!

I have heard some issues around that, on the measure slack channel.
It was quite strange, and several ways to potentially solve that:

Close the Jupyter notebook and try again (I am not kidding - it happened to me)
Check Permission for your Project API
Provide the API Product Admin (by taking the technical account email and manually add it as Product Admin)
Add your tech account email as a user in a Product Profile that has this permission
Contact Customer Care

Let me know if any of these work.

Thanks for the above, I have tried all of them, but they didn't work
Contacting Customer Care and ill update here once i have  the answer
Thanks

Adobe CC have confirmed that the accesses were set up correctly so I remain confused

Have you had any luck with a solution here? Weird bug because the api was running perfectly, then this error just popped up

anyone found a solution for this ?
I am able to see it intermittently and it is the Analytics Server not responding so I am incline to close this issue and blame it on AA API 2.0 server... but not sure if I am missing something.

I experienced something similar but with getSegment() (KeyError: 'content'). I was re-running the same cell a couple of times, and after the 20th try it worked! Strange... But with Adobe you never know :)

Thanks @trfx .
It confirms my suspicion that it is coming from the AA server not responding.
I am closing this issue and feel free to open an issue on the official AA repo @T-Osb

authors: T-Osb cbatt1005 pitchmuc trfx


text:
EA's Can View Election Results

As an Election Administrator (EA) I can view the results, because I want to understand the final rankings.

We are close on this! Next step: call RankedPairsCalculator.calculate within the pivot web app.

@tylerharter has finished the REST API portion of this in PR #50

We changed the policy, so this can be done in the GUI now.

authors: carlschroedl tylerharter

repo: pivot-libre/pivot


text:
Missing field in ServicePlan

cf curl /v2/service_plans returns something like
{
   "total_results": 1,
   "total_pages": 1,
   "prev_url": null,
   "next_url": null,
   "resources": [
      {
         "metadata": {
            "guid": "72e63697-fbed-4db1-8d40-f05826c43baf",
            "url": "/v2/service_plans/72e63697-fbed-4db1-8d40-f05826c43baf",
            "created_at": "2017-04-13T10:42:07Z",
            "updated_at": "2017-04-13T10:42:07Z"
         },
         "entity": {
            "name": ...,
            "free": true,
            "description": ...,
            "service_guid": "bb3d80c6-7d5b-4930-96c9-5bdb6c26a7b5",
            "extra": ...,
            "unique_id": "3e466fc6-833e-430a-a5a1-b9aa120850c8",
            "public": true,
            "bindable": true,
            "active": true,
            "service_url": "/v2/services/bb3d80c6-7d5b-4930-96c9-5bdb6c26a7b5",
            "service_instances_url": "/v2/service_plans/72e63697-fbed-4db1-8d40-f05826c43baf/service_instances"
         }
      }
   ]
}

but the ServicePlan struct doesn't contain the public field.  Thus I'd propose to change the ServicePlan definition to
type ServicePlan struct {
	ID          string               `json:"id"`
	Name        string               `json:"name"`
	Description string               `json:"description"`
	Free        *bool                `json:"free,omitempty"`
	Public      *bool                `json:"public,omitempty"`
	Bindable    *bool                `json:"bindable,omitempty"`
	Metadata    *ServicePlanMetadata `json:"metadata,omitempty"`
}

Public is not something the service broker decides, it is the Cloud Controller.
See https://docs.cloudfoundry.org/services/catalog-metadata.html
Feel free to reopen if you can show otherwise.

authors: avade haraldfuchs

repo: pivotal-cf/brokerapi


text:
CREATE INDEX now saves a new index and its properties in the catalog

This is the final PR towards CREATE INDEX implementation in Quickstep that saves newly created indices and their properties in the catalog.
The CatalogProto has been modified to define a new message type- 'IndexScheme', which contains the set of indices defined on the relation. Within the index scheme, each index is represented as an IndexEntry that contains a string index_name, and an associated protobuf IndexSubBlockDescription.
Addition of an index creates an IndexEntry in the catalog and also adds a new index sub block to the StorageBlockLayout. Duplicate indices can be checked by going through a map of indices maintained by the catalog. The PR also adds support for flexible parsing and definition of any number of properties on a given index.
Open Issues (to be fixed in the next commit to this PR):

Add more tests for ExecutionGenerator and CreateIndexOperator
Cleanup and fix IWYU issues
Complete comments for the cpp files, as well

@zuyu Thanks Zuyu, for the detailed review and the comments on the PR. These were really helpful. I have now fixed these issues in the latest commit.
I had one quick question on the IWYU script that is there in the third party folder. It seems that when I ran it on catalog/IndexScheme.hpp, it asked me to remove unordered_map, which I am using for sure.
Following was the command that I ran
./third_party/iwyu/iwyu_helper.py catalog/IndexScheme.hpp
Should I be running some other IWYU script? or, should I interpret the output with caution?

@saketj Regarding IWYU, it's not perfect and will suggest incorrect things.
Here's what @zuyu had to say about it when I asked that question:

@cramja No, IWYU just provides some suggestions, but also introduces false positive. Use your own judgements to add the headers for new changes. There are many legacy IWYU issues to fix in a separate PR.

@cramja Thanks Marc, that explains it. Sure, I will interpret the IWYU results with caution then.

@saketj There are conflicts to fix, as the master branch moves forward.

@saketj I used your code to make a CSBTree on a benchmarking study today, good work!
While I was waiting for it to compile and run, I looked over parser/ParseIndexProperties.hpp as well as the parts of the execution generator related to adding the indexed_attribute extension.
I like your creation of helper classes to do resolving! I'll admit that I thought the code for BlockProperties in resolver was cluttered. Even after several refactors.
Maybe this shared code for
+/**
+ * @brief Base class for different types of indices and their associated properties
+ */
+class IndexProperties {

could be abstracted into a class in the resolver folder. Doesn't have to be this PR, but as an enhancement for the next time we hire an intern (kidding, but if you know any aspiring undergrads...).

@zuyu  Thanks Zuyu for the heads up on the merge. I have now merged recent changes from the master.

@cramja  Thanks Marc, for the detailed review. These are some great comments and I will address them all soon by tomorrow. I am glad that CREATE INDEX was useful.

@saketj If moving the IndexProperties classes to the resolver folder is egregious, then it doesn't have to be part of this PR IMO.

@zuyu  is it advisable to squash git commits in an on-going pull request? I was wondering if I should rewrite the many fix commits, I have already pushed in this PR to one single commit.

@saketj Yes, please do so!

Multiple small git commits to this PR have been squashed now into a single commit that fixes all the issues found so far.

@saketj Please review all your changes and treat comments as sentences by capitalizing the first letter and adding the period symbol.

@zuyu Thanks Zuyu for the detailed review and comments. These were very helpful and I have fixed the issues raised in the comments. This has served as a very good exercise for me to pay attention to minor performance issues that can be introduced by even simply missing on a reference usage. Thanks again.

@saketj You may want to reconsider the alternative implementation for hasInvalidCustomProperty in parser/ParseIndexProperties.hpp.

Multiple documentation fixes squashed into the previous commit.

@zuyu I have refactored the ParseIndexProperties now to use enums instead of strings and replaced the string constants with const char*. I also removed some of the methods to make the OO abstraction more cleaner now.

@saketj You need to pass the CI first.

@zuyu Seems like only one of the Travis build jobs failed due to a non-zero ref count for newly added ExecutionGenerator test case. Not sure if the commits to this PR have introduced this. I have restarted the Travis Build, to see if it fixes this.

@saketj No, the known, existing block ref count issue is not related to this PR.

@saketj I have some OO-design suggestions for IndexProperties and its derived classes in /parser/ParseIndexProperties.hpp.

move the enum classes for the invalid property types defined in two derived classes to the base class.
move invalid_index_type_ and invalid_property_node_ to the base class as protected members.
move setIndexDescriptionAsInvalid to the base class as a protected method.

@saketj You need to add test cases for creating indices in at least two places: /catalog/tests/Catalog_unittest.cpp and /query_optimizer/tests/execution_generator/Create.test.

@zuyu  Thanks for the comments. I have fixed the changes from the review and updated the tests for the CREATE INDEX now.

@saketj It looks good, except for that we need to add the same tests for adding indices in the following places as well:

/parser/tests/Create.test
/query_optimizer/tests/resolver/Create.test
/query_optimizer/tests/logical_generator/Create.test
/query_optimizer/tests/physical_generator/Create.test

@zuyu I have added the additional tests for CREATE INDEX now at the following places (and moved the original ones from Create.test files to their individual Index.test files)

/parser/tests/Index.test
/query_optimizer/tests/resolver/Index.test
/query_optimizer/tests/logical_generator/Index.test
/query_optimizer/tests/physical_generator/Index.test
/query_optimizer/tests/execution_generator/Index.test

Also, I have squashed some of the git commits now to make the history for this PR look cleaner.

@saketj You need also to add the university copyright for all existing files, such as query_optimizer/resolver/Resolver.cpp, query_optimizer/strategy/OneToOne.cpp, and many.

Updated the copyrights and added the tests for SMAIndex too.

@saketj Once you address new minor comments, I'll merge this PR. Thanks!

@zuyu I have applied these suggested edits. Thanks!

LGTM!

authors: cramja saketj zuyu

repo: pivotalsoftware/quickstep


text:
[Improvement] Make ShellCheck Happy

PiVPN is currently failing on Linting tests,
https://travis-ci.com/github/pivpn/pivpn/jobs/475625045
PiVPN scripts should pass on shellcheck and this should be later used to evaluate PR quality.
Since it is not Breaking anything in the script, I have added allow_failures for linting stage until this has been closed.

We should also have a coding style guide. As of now coding style is not consistent.

We should also have a coding style guide. As of now coding style is not consistent.

agree! but i am not sure if am the right one to implement that .... having shellcheck checking for good practices is already a good start.

agree! but i am not sure if am the right one to implement that .... having shellcheck checking for good practices is already a good start.

We could just link to this one: https://google.github.io/styleguide/shellguide.html

We could just link to this one: https://google.github.io/styleguide/shellguide.html

I've had the most success with shfmt when it comes to shell formatters and can highly recommend it.

I'm new to pull requests, do you prefer one mid-sized pull request with a list of of changes och one pull request per change?

@DundarGoc Personally i prefer smaller fixing one issue at a time as they tend to be easier to read and review, also makes easier to track any issue in case it comes up :) this said i don't mind having a thouzand of commits for the same issue :)

I can't find setupVars.conf in the repo, is it created at runtime or something?

@DundarGoc Yes, basically during runtime script echoes the variables and its values to that file which is in turn used later by the pivpn scripts as a way to identify which options were used during setup and by the --debug option to info on whichsettings were used during the setup
That file can also be used for --unattended setups ... 1 example here: https://github.com/pivpn/pivpn/blob/master/ciscripts/ci_wireguard.conf

Chellsheck is now happy on test branch!
CI Job will no longer tolerate failures on Lint/shellcheck stage.

Merged to master today.
https://github.com/pivpn/pivpn/commit/d4e3a63522e4edaa2f9ad9f2d8dd6ffab4117ff9
Closing ...

authors: 4s3ti DundarGoc orazioedoardo

repo: pivpn/pivpn


text:
Sanitization 'n input validation

Now checks if password is not blank, checks if password length is between 4 and 1024 characters, that the name doesn't contain any special characters (like spaces) and cleaned up source.
I might add some more commits later

Some good cleanup here, thanks!


text:
Deploy the documentation website

Should be available on projects.pixelastic.com/imoen, and added to pixelastic.com/projects

Deployed on https://projects.pixelastic.com/imoen/examples/ but not yet added to pixelastic.com
Also need to update the GitHub description with the link

✔ Done

repo: pixelastic/imoen


text:
menu onclick ex une orga > utiliser suelement LoadByHash

pour que ce soit prit en compte dans la barre d'url
et que l'historique back fonctionne

j'ai rajouté loadByHash dans le floopDrawer : sur les item et les bouton "+ ajouter" ,
et dans les bulles info sur la carte.
Je pense qu'il faudra aussi le faire pour les sous-menu

authors: Kgneo oceatoon

repo: pixelhumain/communecter


text:
Default all nodeSelectors to schedule to amd64 nodes

Is your feature request related to a problem? Please describe.
Pixie will try to schedule some pods to arm64 nodes. This causes install to hang at an early point.
Describe the solution you'd like
Default nodeSelector for all components which require amd64 could use "kubernetes.io/arch": "amd64".
Describe alternatives you've considered
Add patch for nodeSelector to chart config. This seems to work if added for all components.

Pixie now has alpha support for ARM, so the components scheduled to arm64 nodes should work. Could you share the issues you're running into on the arm64 nodes?

I'm going to close this out as we now support arm64, so it doesn't make sense to have a node selector for amd64

Thanks James. I did not have access to the logs. I will open a new issue with details if this comes up again.

authors: JamesMBartlett maxlemieux

repo: pixie-io/pixie


text:
How to build the same pixi as in dev?

When I run npm run build on a freshly checked out git repo on the dev branch on my windows machine,
I get a pixi.js file thats 15kb smaller than the one precompiled in the repository.
How is the pixi.js in the repo actually built ?

or is the current prebuilt one just out of date?

Hello! I'm not too sure tbh - have you tried removing node_modules and adding them again?

I was going to suggest the same thing @GoodBoyDigital. Also, since you are the only one publishing the bin files to dev, maybe you could also try removing your node_modules next time you republish.

Size is almost the same now, but the makeup is different.. weird
mac/linux/pc differences maybe?

Just pushed some new builds to dev after a clear npm install... looks all good? (if it helps im on a mac?)
Thanks!

authors: GoodBoyDigital bigtimebuddy whizzkid


text:
In IE11, all the animations disappear

In IE11, all the animations disappear:
the page height is 2000, the canvas is at the top of the page and the height is 1000.
When the page moves to the bottom for 10 seconds and then moves back to the canvas,
all the animations in Pixi 4.5.1 disappear.
Pixi4.6.0 PIXI.sprite animation exists, PIXI.mesh.Rope still disappeared.

Hi @CrackRen , sorry it's taken so long to get back to you. Gonna close this issue as it's so old and I'd have hoped you'd have solved it by now! If not, please do open a new issue with a jsfiddle or something that we can use to try and help you with

authors: CrackRen themoonrat


text:
The site of "pixijs.download" is down!

nslookup pixijs.download
;; Got SERVFAIL reply from 1.0.0.1, trying next server
;; Got SERVFAIL reply from 8.8.8.8, trying next server
Server:		1.0.0.1
Address:	1.0.0.1#53
** server can't find pixijs.download: NXDOMAIN

Known issue, we’re working on it

I normally use the online documentation, so am now stuck.
Is there an alternative location for the documentation, e.g. a mirrored version on Amazon S3, or downloadable zip, etc.

I'd recommend checkout out the repo and getting them yourself. Will only take a few mins
npm i
npm run docs

Yo, @fanjules !
There's a workaround that'll always work:
git clone git@github.com:pixijs/pixi.js.git
cd pixi.js
git checkout v4.x
npm install
npm run docs

Third line in case you need v4.
Look into dist folder for v5 .
Also, docs are generated from sourcecode, so if you have a wide-screen monitor you can dedicate some space to extra window of your favorite IDE with opened PixiJS project, sources give much more information than just docs.
If you use any of JetBrains products I recommend to mark those folders as excluded: dist for v4, or whole node_modules;lib inside project settings in "exclude filtes" input.

Thanks guys!  Hope you get the site problems sorted it soon

Fixed! Thanks to @englercj

authors: bigtimebuddy fanjules ivanpopelyshev themoonrat webpatch


text:
Fixes #2840

Default destroy options for text are now all true.

Looks good 👍

authors: GoodBoyDigital bigtimebuddy


text:
Zero out garbage space of vertices buffer of BitmapText

Fix #6900
https://jsfiddle.net/18dkq4t3/

Codecov Report

Merging #6902 into dev will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               dev     #6902   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           15        15
  Lines          671       671
=========================================
  Hits           671       671

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 9ff49a2...0bcdcff. Read the comment docs.

Thanks @SukantPal :tada:


text:
[BUG]

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
why I can't open more tap it's can ues just 2 tap sir

https://github.com/pizzaboxer/bloxstrap/wiki/"TwemojiMozilla.ttf-being-used-by-another-process"-error-when-launching-Roblox

authors: Vemedf pizzaboxer

repo: pizzaboxer/bloxstrap