replication – Manually modify master-bin.index

I have an issue with MariaDB Server 5.5.56 replication. The slave got stuck and when I realized that we had already lost some of the bins. So this is the scenario :

In master :

MariaDB ((none))> show binary logs;
+——————-+————+
| Log_name | File_size |
+——————-+————+
| master-bin.000320 | 1073742333 |
| master-bin.000321 | 1074247558 |
| master-bin.000322 | 753717941 |
| master-bin.000323 | 883803465 |
+——————-+————+
4 rows in set (0.01 sec)

cat master-bin.index
./master-bin.000320
./master-bin.000321
./master-bin.000322
./master-bin.000323

In slave ( excerpt )

MariaDB ((none))> SHOW SLAVE STATUSG
*************************** 1. row ***************************
Slave_IO_State:
Master_Log_File: master-bin.000312
Read_Master_Log_Pos: 405852801
Relay_Log_File: mariadb-relay-bin.000942
Relay_Log_Pos: 405852988
Relay_Master_Log_File: master-bin.000312
Slave_IO_Running: No
Slave_SQL_Running: Yes
Exec_Master_Log_Pos: 405852703
Relay_Log_Space: 405853426
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 1236
Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘Could not find first log file name in binary log index file’
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
1 row in set (0.00 sec)

So my idea to try and recover the slave is :

1.- In master : stop mariadb service
2.- In master : copy from backup bins 312 to 319
3.- In master : manually add bins 312 to 319 to master-bin.index
4.- In master : start mariadb service
5.- In slave : start slave

Would that work ? Is there any other way to solve my problem ? I know manually modifying master-bin.index is not recommended but I can not think of any other alternative to avoid recreating the slave.

Thanks in advance.

networking – How to modify CSC file of samsung sm-j500fn?

My phone origin is the UK and I am in Sri Lanka now. My phone modemst1, modemst2 were reset and also I forgot to backup.

dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst1

dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst2

After reset it has asked to unlock the network.
I’ve tried many solutions such as flashing stock ROM of UK before I had custom rom(arrow os), zx3 tool pro. I could not do it. I don’t plan to buy a code since I think, It can be recovered.
I think it can be done via modifying the CSC file since it is specific to geographical region and carriers and it contains the software packages specific to that region, carrier branding and APN setting but I don’t have enough knowledge to modify the CSC file.
Another possible solution may be flashing the living country CSC file but I could not find CSC file only for my j5nlte phone with Sri Lanka.
Can anyone suggest how to modify the CSC file or provide any solutions to unlock the network in my device?
Thanks in advance………

How I can modify in table in the same page by select value in DropdownList

I have page consistence of one page, this page has data table i need to when user select value from dropdownlist table gets data that related by dropdownlist value

virtual machines – How to modify a vᴍ instance setting to boot from BIOS to UEFI?

I shrank my boot hard disk size on my Google Cloud Compute ᴠᴍ. Something which switched the boot method of the ᴏꜱ installed on it from legacy to uefi along the disk boot’s settings (which triggers uefi setting must be the same for the instance and the boot disk. error).

How to change the Instance setting in order to match the (uefi) setting of the instance (given the ᴏꜱ boot method on the disk was migrated too) ?

error (Undefined index) and (Cannot modify header information – headers already)

Error:

Notice: Undefined index: link_type in /home/golchind/public_html/wp-content/themes/golchindl/functions.php on line 40

Notice: Trying to get property of non-object in /home/golchind/public_html/wp-content/themes/golchindl/functions.php on line 58

Warning: Cannot modify header information – headers already sent by (output started at /home/golchind/public_html/wp-content/themes/golchindl/functions.php:40) in /home/golchind/public_html/wp-admin/admin-header.php on line 9

help :

line 40

$type = $_POST(‘link_type’);

line 58

update_post_meta($post->ID,”_oscar_data”,json_encode(array(“episodes”=>$episodes,”links”=>$links,”type”=>$type),
JSON_UNESCAPED_UNICODE));

function oscar_meta_box_js(){
    wp_enqueue_style( 'oscar_box_style',get_bloginfo('template_url')."/css/admin_meta_box.css");
    wp_enqueue_script( 'oscar_box', get_bloginfo('template_url'). '/js/meta_boxes.js', array('jquery'),'1.0',true);
}
add_action( 'admin_enqueue_scripts', 'oscar_meta_box_js');


function oscar_meta_save(){
    global $post,$meta_args,$meta_dls;
    $type = $_POST('link_type');
    $episodes = array();
    $links = array();
    if($type == "serial"){
        for($i=0;$i<count($_POST('ep_name'));$i++){
            $episodes() = array("name"=>$_POST('ep_name')($i),"quality"=>$_POST('ep_quality')($i),"medium_size"=>$_POST('ep_med')($i));
        }
        for($i=0;$i<count($_POST('link'));$i++){
            $links() = array("name"=>$_POST('name')($i),"link"=>$_POST('link')($i),"subtitle"=>$_POST('subtitle')($i),"screenshot"=>$_POST('screenshot')($i),"episode"=>$_POST('episode')($i));
        }
    } else if($type == "movie") {
        for($i=0;$i<count($_POST('movie_title'));$i++){
            $episodes() = array("name"=>$_POST('movie_title')($i));
        }
        for($i=0;$i<count($_POST('mlink'));$i++){
            $links() = array("name"=>$_POST('mname')($i),"link"=>$_POST('mlink')($i),"subtitle"=>$_POST('msubtitle')($i),"screenshot"=>$_POST('mscreenshot')($i),"episode"=>$_POST('mtitle')($i));
        }
    }
    update_post_meta($post->ID,"_oscar_data",json_encode(array("episodes"=>$episodes,"links"=>$links,"type"=>$type), JSON_UNESCAPED_UNICODE));
}







function oscar_download(){
    global $post;
    ?>
<script>
var $ = jQuery;
$(function(){
    var data = '<?=get_post_meta($post->ID,"_oscar_data",true);?>';
    if(data != ""){
        data = JSON.parse(data);
        var type = data('type');
        data('episodes').forEach(function(e){
            if(type == "serial")
                add_ep(e('name'),e('quality'),e('medium_size'))
            else
                add_title(e('name'));
        });
        data('links').forEach(function(e){
            if(type == "serial")
                add_link(e('name'),e('link'),e('subtitle'),e('screenshot'),e('episode'))
            else
                add_mlink(e('name'),e('link'),e('subtitle'),e('screenshot'),e('episode'))
        });
        if(data('type')){
          $("#link_type").val(data('type'));
    }
    }
    normalize_links()
    normalize_mlinks()
});
</script>
<?php if ('series' == get_post_type()) { ?>
<div id="serial" class="content">
    <div class="side_inp_keeper">
        <input id="title_serial" type="text" placeholder="عنوان فصل">
        <input id="quality_serial" type="text" placeholder="کیفیت">
        <input id="med_serial" type="text" placeholder="میانگین حجم هم قسمت">
        <button id="add_ep" class="button">افزودن</button>
    </div>
    <div id="episodes">

    </div>
    <hr>
    <div class="links" style="display:none;">
            <div class="side_inp_keeper">
                <select id="ep"></select>
                <input type="text" id="name" placeholder="عنوان لینک">
                <input type="text" id="link" placeholder="لینک دانلود">
                <input type="text" id="subtitle" placeholder="زیر نویس">
                <input type="text" id="screenshot" placeholder="نمونه کیفیت">
                <button id="add_link" class="button">افزودن</button>
            </div>
            <div id="links">

            </div>
        </div>
</div>
<?php } else if ('movies' == get_post_type()) { ?>
<div id="movie" class="content">
    <div class="side_inp_keeper">
        <input type="text" name="movie_title" id="movie_title" placeholder="عنوان (مثال : زبان اصلی)"><button id="add_link_title" class="button">افزودن</button>
    </div>
    <div id="titles">

    </div>
    <hr>
    <div class="mlinks">
        <div class="side_inp_keeper">
                    <select id="titl"></select>
                    <input type="text" id="mname" placeholder="عنوان لینک">
                    <input type="text" id="mlink" placeholder="لینک دانلود">
                    <input type="text" id="msubtitle" placeholder="زیر نویس">
                    <input type="text" id="mscreenshot" placeholder="نمونه کیفیت">
                    <button id="add_mlink" class="button">افزودن</button>
        </div>
        <div id="mlinks">

        </div>
    </div>
</div>
<?php } ?>
<input type="hidden" name="link_type" id="link_type" value="serial">
    <?php
}



function oscar_meta_boxes() {
    add_meta_box( 'oscar_download',"باکس دانلود", 'oscar_download', array('movies', 'series'), 'normal', 'high' );
}
add_action("save_post","oscar_meta_save");
add_action( 'add_meta_boxes', 'oscar_meta_boxes' );

What does Modify Project > Reset Data Do?

I want to reset the counters for submitted & verified links but cant find the option

i saw the “Modify Project > Reset Data” option but dont want to screw anything esle up.

1] What Data does tis option reset? Modify Project > Reset Data

2] How do i reset the submitted & verified links counters to Zero?

Thanks

Modify query for different custom fields and search relations (AND / OR)

I try to modify a query for specific custom fields, with a different logic. I found the relevant part of the query, but can’t change the relation (to AND) for a single custom field only. That’s a bit complicated for me.

Is there a simple way to change the search logic for a single field (with a specific post_id)?
Thanks a lot


if ( isset( $_GET(‘cf’)) ) {
$cf = array_filter( $_GET(‘cf’) );

        foreach ( $cf as $key => $values ) {
            $key = sanitize_key( $key );

            if ( is_array( $values ) ) {
                if ( count( $values ) > 1 ) {
                    $sub_meta_queries = array();


                    foreach ( $values as $value ) {

                        $sub_meta_queries() = array(
                            'key'       => $key,
                            'value'     => sanitize_text_field( $value ),
                            'compare'   => 'LIKE'
                        );
                    }

                    $meta_queries() = array_merge( array( 'relation' => 'OR' ), $sub_meta_queries );
                } else {
                    $meta_queries() = array(
                        'key'       => $key,
                        'value'     => sanitize_text_field( $values(0) ),
                        'compare'   => 'LIKE'
                    );
                }

How to activate M.B. modify the utility in BIOS Award F7?

How to activate M.B. modify the utility in BIOS Award F7? i tried Ctrl + F1 and F5 but nothing worked.

Modify the string for the defined model (Python)

Learning Python, came across a demanding beginner exercise.

Let's say you have a string made up of "blocks" of characters separated by & # 39 ;; & # 39 ;. An example would be:

cdk; 2 (c) 3 (i) s; vs

And you need to return a new chain based on the old one but according to a certain pattern (which is also a chain), for example:

vs? *

This pattern means that each block must start with a "c", the "?" the character must be changed by another letter and finally & # 39; * & # 39; by an arbitrary number of letters.

So when the above pattern is applied to the example string, you return something like this:

cdk; cciiis

Another example:

string: 2 (a) bxaxb; ab

model: a? * b

result: aabxaxb

My very crude attempt resulted in this:

def switch(string,pattern):
d = ()
for v in range(0,string):
    r = float("inf")
    for m in range (0,pattern):
        if pattern(m) == string(v):
            d.append(pattern(m))
        elif string(m)==';':
            d.append(pattern(m))
        elif (pattern(m)=='?' & Character.isLetter(string.charAt(v))):
            d.append(pattern(m))
return d

Advice?

PowerApps – How to display different forms? (New / Modify / Display)

I came across this guide. but when i try to add the code i always get an error.
Do you have any idea why this is happening or how I can work around this?
Code that generates an error

Shapes