$( ".group" ).eq(0)
.nextUntil( ".group" )
.hide(); or show()
$( ".group" ).eq(0)
.nextUntil( ".group" )
.hide(); or show()
This is a trick to have only the Bootstrap’s desktop size media queries, when you want to do a website with only 992px and 1200px breakpoints, by removing the mobile breakpoint. If not done correctly you can encounter bad behaviours on the layout.
The method is very straightforward, just open your uncompressed Bootstrap Css (after the changes you can compress it with a online css minifier), and search for @media Css rules.
You’ll find @media rules with inside the code for the .container…
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
…and for the respective .col- columns.
@media (min-width: 768px) {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
/* more... */
}
@media (min-width: 992px) {
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
float: left;
}
/* more... */
}
@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
/* more... */
}
You just have to remove the @media rules you don’t need and the one you want as base, leaving the content inside untouched, just remove the @media (min-width: px) { and also the closing bracket }.
For example to remove the mobile media queries, making 992px the default one, just remove @media (min-width: 768px) { and @media (min-width: 992px) {, with the respective closing brackets.
.container {
width: 750px;
}
.container {
width: 970px;
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
/* more... */
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
float: left;
}
/* more... */
@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
/* more... */
}
Doing it this way (leaving the .col- styles) you can still use those columns classes in the Html, and they will work on “greater” media queries. In this example .col-xs- and .col-sm- columns will work on the 992px and the 1200px breakpoints.
SSL Setup for multiple domains/subdomains is different than single-domain or wildcard domain setup. There are 2-ways to setup this (as far as I know) – using Subject Alternative Names and Server Name Indication (SNI)
In this article, we will use “Subject Alternative Names” method.
This tutorial is intended for following types of use case. If you are trying to setup something else, please ignore this.
The problem is that XenServer virtualises each core as a separate physical processor in its own socket. Windows Server 2008 and 2003 are limited to 4 sockets, so you can only see 4 of your 8 cores in the task manager.
If you look in the Device Manger you’ll see all 8 cores because Windows sees them all, but won’t let you use them.
If you look in the XenServer Host console in the Hardware section, it will report 8 physical CPUs too.
In XenCenter set the VCPUs for your VM to 2.
Then enter the attached code snipped into the XenServer Host console. To find the UUID for your VM, type:
xe vm-list
xe vm-param-set platform:cores-per-socket=4 uuid=xxxxxx
xe vm-param-set VCPUs-max=8 uuid=xxxxxxx
xe vm-param-set VCPUs-at-startup=8 uuid=xxxxxx
Now boot the VM and the task manager should show all 8 cores.
The first step is to write a new partition table on the second disk drive using the fdisk
command.
Device Boot Start End Blocks Id System
/dev/sdb1 1 182401 1465136001 8e Linux LVM