theme settings – File Field related issue / How to hide file size information?

I used CDN option while creating my sub-theme. I find less and sass things pretty confusing since I am someone who haven’t mastered the css yet. What I have found out so far is:

  • I can edit some styling copying some css lines from “/libraries/bootstrap/css/bootstrap-theme.css” to “subtheme/css/style.css” file.

What I want to do is to remove / disable / hide the file size information which shows up next to the file link which is the product of ‘file-field’ of Drupal. This is viewed using bootstrap’s table styling / template or whatsoever you call it.

Is this something that should be accomplished using css or it is a template file or maybe it can only be modified in module?

partition – VMware esxi host partedUtil sector bit and block size?

Alright, things i did are: studying https://kb.vmware.com/s/article/1036609 and https://kb.vmware.com/s/article/2004299 , and also googled some other information about the “partedUtil” in ESXi.

I encountered doubts when utilizing partedUtil commandlines to configure partitions in ESXi 7.0 host but I failed to find proper answer for my own doubts.

According to figure below,

enter image description here

can anyone please tell me what is the measuring unit(is it kb?) of 16987000 and 17092000? (i know they are the “sector start” and “sector end”, respectively.)

additionally, how do i know the measuring unit(mb?) of block size for specific partition(such as VMFS Datastore or Linux Swap, for example) when configuring with partedUtil in ESXi??

The last question is: do I need to multiply “block size” by “space I need” as the space(between start sector and end sector) for the partition I need? or maybe the space between start and end sector is quite simple to calculate which does not need to take “block size” into consideration?

thanks in advance!!

sql server – log send queue size and redo queue size in AG

Both the log send queue and redo queue can be found in sys.sys.dm_hadr_database_replica_states (docs), and also available using the SQLServer:Database Replica Perfmon counters (docs).

Perfmon

With Perfmon counters, you’ll need to collect counters individually on each replica. Each replica knows about the Send/Redo(recovery) queue affecting that replica itself.

It sounds like you already found the Log Send Queue perfmon counter, which is defined as:

Amount of log records in the log files of the primary database, in kilobytes, that haven’t been sent to the secondary replica. This value is sent to the secondary replica from the primary replica. Queue size doesn’t include FILESTREAM files that are sent to a secondary.

The perfmon counter for the Redo Queue is actually the Recovery Queue counter, which is defined as:

Amount of log records in the log files of the secondary replica that have not been redone.

You can also access the Perfmon counters using T-SQL by querying the sys.dm_os_performance_counters DMV.

SELECT *
FROM sys.dm_os_performance_counters
WHERE object_name = 'SQLServer:Database Replica'
AND counter_name IN ('Log Send Queue','Recovery Queue')
ORDER BY cntr_value DESC;

T-SQL / DMVs

From T-SQL, you can query the DMVs to get this info. The below query is from my standard toolbox, and includes both the Send & Redo queue sizes & rates (in the first few columns), plus some other information on the replica states & send/redo status. Note that running this on the Primary Replica will report status information for all replicas, running it on the secondary replica will only report local information for that secondary replica.

The advantage of monitoring via T-SQL is that you can have a single/central collection point to check on the status of all replicas at once.

-- ▶ Run this on **PRIMARY**
SET NOCOUNT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

SELECT 
    --AG info
    AGName                          = ag.name, 
    ReplicaServer                   = ar.replica_server_name, 
    DbName                          = adc.database_name, 
    -- Queue Size & rates
    SendQueueSize                   = drs.log_send_queue_size,
    RedoQueueSize                   = drs.redo_queue_size, 
    SendRateKb                      = drs.log_send_rate, 
    RedoRateKb                      = drs.redo_rate, 
    -- State Info
    IsLocal                         = drs.is_local, 
    IsPrimary                       = drs.is_primary_replica, 
    SynchronizationState            = drs.synchronization_state_desc, 
    SynchronizationHealthState      = drs.synchronization_health_desc, 
    -- Last ____ Time
    LastSentTime                    = drs.last_sent_time, 
    LastRedoTime                    = drs.last_redone_time, 
    LastReceivedTime                = drs.last_received_time, 
    LastHardenedTime                = drs.last_hardened_time, 
    LastCommitTime                  = drs.last_commit_time, 
    -- LSN info
    RecoveryLSN                     = drs.recovery_lsn, 
    TruncationLSN                   = drs.truncation_lsn, 
    LastSentLSN                     = drs.last_sent_lsn, 
    LastReceivedLSN                 = drs.last_received_lsn, 
    LastHardenedLSN                 = drs.last_hardened_lsn, 
    LastRedoneLSN                   = drs.last_redone_lsn, 
    EndOfLogLSN                     = drs.end_of_log_lsn, 
    LastCommitLSN                   = drs.last_commit_lsn,
    --Oh yeah, filestream, too
    FileStreamSendRate              = drs.filestream_send_rate
FROM sys.dm_hadr_database_replica_states AS drs
JOIN sys.availability_databases_cluster AS adc 
    ON drs.group_id = adc.group_id AND drs.group_database_id = adc.group_database_id
JOIN sys.availability_groups AS ag
    ON ag.group_id = drs.group_id
JOIN sys.availability_replicas AS ar 
    ON drs.group_id = ar.group_id AND drs.replica_id = ar.replica_id
ORDER BY 
    -- ag.name, ar.replica_server_name, adc.database_name;
    drs.log_send_queue_size + drs.redo_queue_size DESC;

ubuntu – How to adjust TCP Window Size?

I’ve searched the web, followed the instructions and failed. The resources I had found were rather old. At this point I think it is appropriate to ask this question here.

I don’t really have any experience with Ubuntu, so I need someone to share some detailed instructions on adjusting TCP Window Size for my Web Application.

Details:

  • Server: Apache 2.4
  • OS: Ubuntu 20.04

rom flashing – Help with Nexus 6P bootloop: Couldn’t parse partition size ‘0x’ when trying to flash new image

I need help with my Huawei Nexus 6P.

Because of a bootloop, I was trying to flash a new boot image. I went to the Google download page for factory images and tried using the “flash-all.bat” file. I don’t know how to exactly explain this but, here is the full command prompt line from the flash-all batch file.

Note: It also says my device is corrupt while trying to go into recovery mode.

Writing 'bootloader'                               OKAY (  0.215s)
Finished. Total time: 0.405s
Rebooting into bootloader                          OKAY (  0.108s)
Finished. Total time: 0.113s
Sending 'radio' (48728 KB)                         OKAY (  1.511s)
Writing 'radio'                                    OKAY (  2.174s)
Finished. Total time: 3.741s
Rebooting into bootloader                          OKAY (  0.007s)
Finished. Total time: 0.009s
--------------------------------------------
Bootloader Version...: angler-03.68
Baseband Version.....: angler-03.81
Serial Number........: 84B7N16109000032
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY (  0.018s)
Checking 'version-bootloader'                      OKAY (  0.018s)
Checking 'version-baseband'                        OKAY (  0.018s)
extracting boot.img (12 MB) to disk... took 0.033s
archive does not contain 'boot.sig'
fastboot: error: Couldn't parse partition size '0x'.
Press any key to exit...

I don't know how to fix, please help :(

graphics – Keynote Mac, delete cropped image to reduce file size without losing image resolution quality

I have lots of high-resolution images inserted into the Keynote which makes the file very large. Image masking in Keynote is very convenient for me. But I only want a small corner of the images shown in the slides, and I don’t need the cropped part anymore. Reducing file size under the File menu loses image quality and the cropped images are still there. Is there any way to delete the cropped part to reduce file size without losing image resolution/quality?

gimp – Problems creating a photo album: which is the expected size and resolution?

First of all, sorry for the basic question: I don’t know much about photography and I want to create a photo album. I have already created some in the past using the software provided by the company where I used to print them. However, the quality has dropped so much recently that I want to change the company. Then, if I ever want to reprint any of my albums, I depend on the software I used. Therefore, I decided to create the album using GIMP and then load the final images to the software of the new company (can I say the name of the company? It starts with “Saal”…).

My album will be 21x28cm. I think that the desired resolution to print is 300ppi.

Problems:

  • When I create a canvas of 42x28cm (two opened pages) with 300ppi in GIMP I get the popup “You are trying to create an image with a size of 152.9 MB”. Is it normal that the image is so big? I understand GIMP does not compress to work on it and at the end, to save the final image, probably it will be compressed, but still I find it quite big.
  • I want to start loading one HEIC image. 1.95Mb (huge size difference!!! I know it’s compressed, but…). 4032x3024px. Based on the 300ppi resolution, this image should be ok for a 13.44×10.8in page, which corresponds to 34.1×25.6cm. However, when I save this image with GIMP and I export it (with minimal compression, 30Mb) and I open it with the software of the other (Saal) company, the image appears not covering the whole page, but it appears much smaller than I expected. I know digital images don’t have the “size in cms” property, but I thought if I already prepared the image with the exact amount of pixels to cover the whole page at 300ppi, the image would appear quite big, not so small. Well, that might depend on the software of this particular company…?
  • Then I resize the GIMP image to cover the whole page in the other software. I see the program tells me the quality is good, even when I zoom it much much much more than expected. If I load the HEIC image directly, it says the image is ok, but when I zoom it a bit, it complains already about the quality. So: using GIMP I am telling the image has more quality than it actually has (probably because I created a huge canvas).

All in all, as I said, I’m not a professional, and this is confusing me quite a lot. Am I doing it right? To sum up: if I want to create an album, is it a good idea to use GIMP and then load the pages? Which canvas configuration should I use? Is there a better way to go?

Thank you!

Razer Phone 2 showing wrong size for the SD card and performance of the card is not ok

I have the following setup:

  • Razer Phone 2 (Android Phone)
  • Samsung EVO 128 GB SD card SDXC class 10 (Yellow one)
  • SD Card formatted as internal storage from the Razer phone

After using the phone for couple of months the performance of the phone started to get effected. The I checked and found that the SD card was sowing 256 GB but the card is actually 128 GB.

enter image description here

I have double checked the card physically and it is a 128 GB card.

Now how do I reformat the SD card so that it is corrected (found a video on how to do that) and then copy my data back to the card so that it works as before. The card is encrypted so the copied data will not make sense. But as long as it works after I copy back that will do.

I do not have another card where I can clone this card. I plan to copy to my windows machine, format and then copy-back the content of the card.

Any suggestion on the steps/measures I have to take to have the card corrected and retain the data?

Razer android phone showing wrong size for the SD card

I have the following setup:

  • Razer Phone 2 (Android Phone)
  • Samsung EVO 128 GB SD card SDXC class 10 (Yellow one)
  • SD Card formatted as internal storage from the Razer phone

After using the phone for couple of months the performance of the phone started to get effected. The I checked and found that the SD card was sowing 256 GB but the card is actually 128 GB.

enter image description here

I have double checked the card physically and it is a 128 GB card.

Now how do I reformat the SD card so that it is corrected (found a video on how to do that) and then copy my data back to the card so that it works as before. The card is encrypted so the copied data will not make sense. But as long as it works after I copy back that will do.

I do not have another card where I can clone this card. I plan to copy to my windows machine, format and then copy-back the content of the card.

Any suggestion on the steps/measures I have to take to have the card corrected and retain the data?