How to calculate main memory location in cache (Direct Mapping)?

A computer having 64 word RAM(assume 1 word=16 bits)and cache memory of 8 blocks(block size=32 bits).where can we find main memory location 25 in cache if Direct Mapping is used

Find main memory location in cache(direct mapping)

main memory=64 kB each WORD=8 bits
cache memory=4 kB(direct mapping) also having data word size 8 bits
1)find the size of tag and index fields of cache ?
2)In what location of cache hexadecimal address to main memory(AABB)(if exists in cache) will be located?

How do you get a public ip for every virtual server on your main server?

Hi, im close to starting my own hosting company but i cannot understand how people have different public ip’s for every server. I have heard… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1817275&goto=newpost

magento2.4 – How to move media and var directory to a volume instead of main server disk space?

I have a small server: 4 vcpu cores, 8 gb ram and 40 gb ssd. And i attached to it a volume that’s 1TB in size (i know it is not enough in terms of cpu/ram but i will upgrade to a much better server soon).

Here is how it looks when i run df -h

root@ubuntu-edit:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            953M     0  953M   0% /dev
tmpfs           194M  776K  194M   1% /run
/dev/sda1        38G  1.8G   35G   5% /      <------------ server's ssd space
tmpfs           970M     0  970M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           970M     0  970M   0% /sys/fs/cgroup
/dev/sda15       61M  7.8M   53M  13% /boot/efi
/dev/sdb       1007G   77M  956G   1% /mnt/volume-edit <------- volume's space
tmpfs          194M     0  194M   0% /run/user/0

Question is: how do i move the media(including images) directory, var directory and all other directories that tend to get pretty big to the volume and upload images and make the caching directly to that new location instead of keeping everything on the main server?

Is that even a thing?

macos – Mac fails to boot – Partition map check failed because no slices were found on main drive

So my girlfriend’s Mac Pro (Mid 2012, Catalina, SANDISK Ultra 3D SSD 512GB as boot drive) suddenly gave in today. On boot it would only display the directory symbol with a question mark within.

Rebooted in recovery mode, diskutils told me the disk had to be repaired, but repair would fail with “Partition map check failed because no slices were found”.

Some googling later stuff like this How to fix broken GPT, GUID and unmountable, no type volumes? and Apple forum: disk0s2 can’t mount – Partition shows as “MBR part 255” pointed me to gpt and fdisk.

gpt output:

-bash-3.2# gpt -r show /dev/disk0
     start      size index contents
         0         1       PMBR
         1         1       Pri GPT Header
         2        32       Pri GPT Table
        34    409606
    409640 999805536     1 GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
1000215176         7  
1000215183        32       Sec GPT table
1000215215         1       Sec GPT header

fdsk output:

-bash-3.2# fdsk /dev/disk0
Disk: /dev/disk0 geometry: 62260/255/63 (1000215216 sectors)
Signature: 0xAA55

#: id  cyl  hd sec -  cyl  hd sec ( start -       size)
-------------------------------------------------------------------
1: EE 1023 255  63 - 1023 255  63 (     1 - 1000215215) <Unknown ID>
2: 00    0   0   0 -    0   0   0 (     0 -          0) unused
3: 00    0   0   0 -    0   0   0 (     0 -          0) unused
4: 00    0   0   0 -    0   0   0 (     0 -          0) unused

Comparing my gpt output with others I noticed the first partition (start at 40, length of 4090600, probably the partition table?) is missing. So I followed aforementioned links and tried destroying and re-adding the existing part, followed by diskutil:

gpt destroy disk0
gpt add -i 2 -b 409640 -s 999805536 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0
diskutil repairDisk disk0

Which only changed the directory symbol with question mark on startup to a stop sign (did I do a whoopsie?).

Afterwards I tried adding the first partition as well:

gpt destroy disk0
gpt add -i 1 -b 40 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B /dev/disk0
gpt add -i 2 -b 409640 -s 999805536 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0
with and without: diskutil repairDisk disk0

But same result. Now I’m out of ideas. Anyone got some?

What are the main reasons a website can be penalized by Google? – SEO Help (General Chat)

Some common reasons are:

Hacked site;
Userā€generated spam;
Spammy freehosts;
Spammy structured markup;
Unnatural links to your site;
Thin content with little or no added value;
Cloaking and/or sneaky redirects;
Unnatural links from your site;
Pure spam;
Cloaked images;
Hidden text and/or keyword stuffing

high sierra – After Disk Utility crashing while adding a new partition, main APFS container (macOS + user data) became unbootable

I’m running macOS High Sierra on early-2015 Macbook Pro.

I used to have two more partitions: one with Bootcamp, and the other one as a shared FAT32 folder.

As far as I remember, at some point I made the mistake of using something other than Disk Utility to manage my partitions. I messed up GUIDs but I fixed them manually later, and deleted the bootcamp drive.

I tried formatting the FAT32 drive as APFS and Disk Utility crashed and I ended up with the small “VM”-named drive (I named it that way, and it was intended to be around 25GB). While I was running with no problems afterwards, after a reboot my main APFS drive (Macintosh HD, 387GB) no longer boots. (and does not show up on the boot menu) and shows up as unformatted on all disk tools I could test. (doesn’t show up on DiskUtil at all). I have tried changing the GUID but it still doesn’t boot.

I currently don’t have a Linux stick, but I’ll create one if you need more info. (and if the solution requires one)

overview disk partition

PS: I’m very sorry for the image quality and size, but I don’t have my computer at hand to fix them.

gallery image – Magento 2 – add data attributes on product page to main img

I need to add few data attributes to main image on product page (using Magento 2.3).

I tried following code in block, which I added to product page. But it is not working. Alert outputs code, but data attributes are not on product image.

<script type="text/javascript">
require(('jquery'), function($){
    jQuery(document).ready( function() {

        jQuery('(data-gallery-role=gallery-placeholder)').on('gallery:loaded', function () {

            console.log("gallery loaded.");

            var $img = jQuery(".gallery-placeholder img");

            $img.attr('data-tl-spcode', '54341-40');
        });
    });
});

I can’t find any working solution for it. Thank you!

online – Provision Template to Main SharePoint Site

Is it possible to provision a template from https://lookbook.microsoft.com/ to your main https://domain.sharepoint.com site instead of /sites or /teams?

We don’t currently use our default site and set it up to redirect to another site. I want to use it as the main site, so I am looking to somehow provision these templates or even somehow just create a new site with all the same web parts etc that these allow. Maybe I have to some how upgrade the site?

Does every thread have its main function?

Does every thread have its own main function?

I know that its have its own stack, but what about main function (not necessarily a function which called main).

For example, when creating a thread, we pass a function as an argument for the new thread to run it.

I tried to search about this topic, but couldn’t find answers.