[GET][NULLED] – WP Rocket – Make WP Load Fast in a Few Clicks v3.2.5

[​IMG]
[​IMG]

[GET][NULLED] – WP Rocket – Make WP Load Fast in a Few Clicks v3.2.5

Load CSS/Javascript in frontend conditionally if block is used

Assuming I have no unfinite scroll or anything else going on in my theme: Is there a way to enqueue my custom Gutenberg block styles and scripts so they are only (lazy) loaded in the frontend when the block is really used? Something like is_active_widget, just for blocks? If I enqueue them inside a enqueue_block_assets function they’re added to any site.

On github, I found this https://github.com/WordPress/gutenberg/issues/5445 , but it sounds like it’s more on bundling than conditional load, so I still hope they didn’t leave that optimization opportunity out – otherwise any other site will soon be junked with 20 additional scripts from numerous Gutenberg block plugins people install and only use once on a page (think of large image gallery block scripts for example).

Thanks & Regards!

SSIS AND XLSM load time issue Visual Studio 2010

I am having the following issue of SSIS AND XLSM load time issue Visual Studio 2010

I want to speed this up

I am reading a .xlsm as my excel source

I have noticed its loading / reading every row of the excel…even though they are blank

e.g I only have 300 + rows of data at the moment, but it loading every row even though they are blank e.g going pass the 400 row where there is no data yet

I don’t want it reading 200,000+ rows before it actually loads the 300

how do I stop this please team

How to load correctly a package

I have a package:

BeginPackage["HNotation`"];  soma::usage = "asdfa";  Begin["`Private`"];  soma[x_] := x + 1;  End[];  EndPackage[]; 

I save the file with “.m” extension. So, in another file I tried to load the package:

In[2]:= Get["MPA_HNotation.m", Path -> {"/home/mateus/Desktop/"}]  In[3]:= soma[x]  Out[3]= soma[x] 

It seems that doesn’t get the package. What can be wrong?

Some websites won’t load on Chrome Canary, ERR_CONNECTION_CLOSED

Some websites’ assets fail to load on Chrome Canary, i.e:

 GET https://abs.twimg.com/a/1547701933/css/t1/twitter_more_1.bundle.css net::ERR_CONNECTION_CLOSED 

Accessing https://abs.twimg.com/a/1547701933/css/t1/twitter_core.bundle.css directly returns:

This site can’t be reached  abs.twimg.com unexpectedly closed the connection. 

This also happens on Guest Account without any extensions. All works on normal Chrome version.

Faulty Canary version:

Google Chrome is up to date Version 73.0.3678.0 (Official Build) canary (64-bit) 

Submit form load results instead of messages

I am testing out the new Drupal 8 custom modules and currently stuck with the submit form handler to load form submitted results in the same page and my current functions of last submit is this (inside the controller form) :

    <?php /**  * @file  * Contains \Drupal\resume\Form\ResumeForm.  */ namespace Drupal\resume\Form;  use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface;  class ResumeForm extends FormBase {   /**    * {@inheritdoc}    */   public function getFormId() {     return 'resume_form';   }    /**    * {@inheritdoc}    */   public function buildForm(array $  form, FormStateInterface $  form_state) {      $  form['candidate_name'] = array(       '#type' => 'textfield',       '#title' => t('Candidate Name:'),       '#required' => TRUE,     );      $  form['candidate_mail'] = array(       '#type' => 'email',       '#title' => t('Email ID:'),       '#required' => TRUE,     );      $  form['candidate_number'] = array (       '#type' => 'tel',       '#title' => t('Mobile no'),     );      $  form['candidate_dob'] = array (       '#type' => 'date',       '#title' => t('DOB'),       '#required' => TRUE,     );      $  form['candidate_gender'] = array (       '#type' => 'select',       '#title' => ('Gender'),       '#options' => array(         'Female' => t('Female'),         'male' => t('Male'),       ),     );      $  form['candidate_confirmation'] = array (       '#type' => 'radios',       '#title' => ('Are you above 18 years old?'),       '#options' => array(         'Yes' =>t('Yes'),         'No' =>t('No')       ),     );      $  form['candidate_copy'] = array(       '#type' => 'checkbox',       '#title' => t('Send me a copy of the application.'),     );      $  form['actions']['#type'] = 'actions';     $  form['actions']['submit'] = array(       '#type' => 'submit',       '#value' => $  this->t('Save'),       '#button_type' => 'primary',     );     return $  form;   }    /**    * {@inheritdoc}    */     public function validateForm(array &$  form, FormStateInterface $  form_state) {        if (strlen($  form_state->getValue('candidate_number')) < 10) {         $  form_state->setErrorByName('candidate_number', $  this->t('Mobile number is too short.'));       }      }    /**    * {@inheritdoc}    */   public function submitForm(array &$  form, FormStateInterface $  form_state) {     // drupal_set_message($  this->t('@can_name ,Your application is being submitted!', array('@can_name' => $  form_state->getValue('candidate_name'))));      foreach ($  form_state->getValues() as $  key => $  value) {       drupal_set_message($  key . ': ' . $  value);     }     } } 

I wanted to show results in a table in the same page form where user submit the form, rather than just throwing in messages

thank you

Dual booting Kali on Mac, Mac doesn’t load EFI bootloader

I resized my Macs SDD to have 45 GB of MS-DOS FAT, I burned the kali .iso to my USB and installed Kali on the 45GB Free space where I set it as ext4 and /(root) filesystem.

However I skipped the GRUB bootloader as I read it won’t be able to recognize your OSX, leaving you only with Kali linux (ofcourse this can be solved, but I’m not sure if I have working Wifi on the Linux).

Now this is my problem, when I reboot, it will reboot into OSX, when I hold alt, it only shows OSX even though I put KL on the 45 GB free space.

How can I make it so that I can boot with rEFInd into Kali(and OSX)?

My diskutil list

 #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         205.8 GB   disk0s2    3:       Microsoft Basic Data                         44.9 GB    disk0s3  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +205.8 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            95.3 GB    disk1s1    2:                APFS Volume Preboot                 45.8 MB    disk1s2    3:                APFS Volume Recovery                517.0 MB   disk1s3    4:                APFS Volume VM                      1.1 GB     disk1s4 

disk0s1 is obviously listed as EFI. When I try this it says:

sudo diskutil mountdisk /dev/disk0s1 One or more volume(s) failed to mount 

Load balancing Availability groups with MSSQL Standard

So i have the current scenario, and it looks to be working fantastically, but i just want to get some input on the configuration. Is it smart? Are there any issues i am not thinking of?

We have MSSQL Standard, and as such, you can only have 1 DB per AG (we have 20 databases), and no Read-Only secondaries. Basically meaning, the primary server is doing ALL the lifting, with the secondary doing alot less. So essentially, you are paying for resources for Node 2, that are sitting at 10% workload, while node 1 is at 70/80% workload. Both nodes are fully licensed with regards to MSSQL Cores.

What i have done, to assist this, is slit the database primaries up. So about 50% of the databases are Primary on node1, while the other 50% are primary on node2.

The Results :

The applications all connect great to either node via their respective listener If a failover occurs, just the databases on the failing node are effected, and failover to the other node (We have tested this fairly well).

Each node, can now split the load, essentially load balancing. It is a manual process to set it up this way and when deploying new DB’s and groups they go to the lighter node. but a small price to pay for “more” hardware punch without much cost (Licenses which we already have and a bit of admin)

What are your guys thoughts on this?

are following assertions about linux load and tomcat right?

I am looking to understand precisely how to use the load average and cpu usage on a Red hat machine that hosts a Tomcat 8 only. After looking on the net, I concluded the following assertions. Are the assertions right ? I am deeply sure of the first one since it comes from official Tomcat documentation. And I am confused about which processes could be in uninterruptible sleep.

1) Tomcat uses a thread to process a request, the maximum number of used threads is defined by Tomcat configuration ( see Tomcat documentation )

2) Oracle JVM works with native threads only since JRE 1.3 ( See JVM and threads I did not find an Oracle reference for this point)

3) Linux’s run queue contains processes and threads (id native threads) the same way ( See Linux Load Averages: Solving the Mystery and Wikipedia )

4) Load average provides the average number of process/threads in the run queue ( See Linux Journal )

5) On a Linux machine running a Tomcat only, the load average provides almost the average number of requests.

6) On Linux the load average count process/threads in state running, runnable, and uninterruptible sleep ( See Linux Journal )

7) Process/threads in uninterruptible sleep are waiting for disks I/O, non interruptible locks, network I/O ( See Redhat documenationt that includes network I/O and Linux Load Averages: Solving the Mystery that does not include network I/0 )

The point 7 is not coherent with the reference See Linux Journal that says that “In fact, it is precisely the CPU load that is measured, because load averages do not include any processes or threads waiting on I/O, networking, databases or anything else not demanding the CPU. “.

I understood that if a process reads swap it is in uninterruptible sleep but if it reads a file on internal disk, nfs folder or a SAN bay, is it in uninterruptible sleep ? Red hat documentation listed network, if a process requests a resource on the network is it in uninterruptible sleep ?