## sharepoint online – slick slider slides are not reducing when we add it in SP Page small section

I am using react slick slider, if i add it in a SP Modern page full section(3 slides) it works perfectly.but if i placed it in the One-third right sections. The same 3 slides appeared with conjusted width even in al sections but i want it to reduce into 2 or 1 slides as per the placed section width.

What should i do to reduce the slides when it is placed on different sized zones.

``````    export default class ReactSlickSlider extends React.Component<IReactSlickSliderProps, {}> {
public render(): React.ReactElement<IReactSlickSliderProps> {
var settings = {
dots: true,
infinite: false,
speed: 500,
slidesToShow: 4,
slidesToScroll: 4,
initialSlide: 0,
responsive: (
{
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
infinite: true,
dots: true
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
initialSlide: 2
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
)
};
return (
<div>
<h2> Responsive </h2>
<Slider {...settings}>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
<div className={styles.card}>
<h3>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h3>
</div>
</Slider>
</div>

);
}
}
``````

## 7 – Git branching strategies with a small team to develop a Drupal site

We’re a small team (5-6 developers) building a Drupal 7 site. Previously, we’ve used Features (https://www.drupal.org/project/features) to export our configurations from development to production. We’ve relied largely on assigning developers discrete, unrelated tasks.

Our upcoming work has distinct, but related development. For example, I anticipate we’ll need to add fields that will be used by two different tasks (for example, think about a date field for an event. One developer is working on the email invite and the other is working on the event display page). If we are able to anticipate this overlap, we’d be able to do this before either starts work.

However, if we don’t realize a common need until after work has begun in separate branches per developer/feature, this becomes trickier. I believe that we would need to merge their branches together to access the common code-which defeats the point of us having separate branches in the first place.

Curious for what you’d suggest or has worked well in the past! Thanks!

Note: I’ve identified these potential solutions, both with drawbacks:

• Cherry pick commits. While this could be helpful, it’s also likely that a cherry-picked commit will include extraneous changes beyond the narrow scope needed here. And it’s just as likely that the single commit won’t include all of the changes necessary (For example, if one commit created the feature, and a second created the field, you’d need to cherry pick both commits). This all seems to head for a merge headache down the road.

• Create a folder within sites/all/features/ignore, manually transfer the needed features there from the other branch. Include this directory in .gitignore. I don’t like that:

1. This has our team sending features files all over outside of git,
2. That it could introduce dependency errors if features are changed in
the original, but not updated in the other places that they are
used,
3. That users may make changes to the ignored features that
aren’t moved into git,
4. That switching between computers/development
environments would lose these files
5. That all related branches would need to be merged before deploying to production (which again, undermines the point of branching since these branches are now dependent on each other and would have to be released at once, rather than when ready/needed).
• Another option is to make the change (export the feature needed or cherry-pick commits) to the parent branch (e.g., Develop or Develop-Feature) so that it’s available to all child branches.

## 7 – Git branching strategies with a small team to develop a D7 site

We’re a small team (5-6 developers) building a Drupal 7 site. Previously, we’ve used Features (https://www.drupal.org/project/features) to export our configurations from development to production. We’ve relied largely on assigning developers discrete, unrelated tasks.

Our upcoming work has distinct, but related development. For example, I anticipate we’ll need to add fields that will be used by two different tasks (for example, think about a date field for an event. One developer is working on the email invite and the other is working on the event display page). If we are able to anticipate this overlap, we’d be able to do this before either starts work.

However, if we don’t realize a common need until after work has begun in separate branches per developer/feature, this becomes trickier. I believe that we would need to merge their branches together to access the common code-which defeats the point of us having separate branches in the first place.

Curious for what you’d suggest or has worked well in the past! Thanks!

Edit: I’ve identified two potential solutions, both with drawbacks:

1. Cherry pick commits. While this could be helpful, it’s also likely that a cherry-picked commit will include extraneous changes beyond the narrow scope needed here. And it’s just as likely that the single commit won’t include all of the changes necessary (For example, if one commit created the feature, and a second created the field, you’d need to cherry pick both commits). This all seems to head for a merge headache down the road.

2. Create a folder within sites/all/features/ignore, manually transfer the needed features there from the other branch. Include this directory in .gitignore. I don’t like that:

1. This has our team sending features files all over outside of git,
2. That it could introduce dependency errors if features are changed in
the original, but not updated in the other places that they are
used,
3. That users may make changes to the ignored features that
aren’t moved into git,
4. That switching between computers/development
environments would lose these files
5. That all related branches would need to be merged before deploying to production (which again, undermines the point of branching since these branches are now dependent on each other and would have to be released at once, rather than when ready/needed).

A third option is to make the change (export the feature needed or cherry-pick commits) to the parent branch (e.g., Develop or Develop-Feature) so that it’s available to all child branches.

## Best Ad network suitable for small site?

Hi there!

I have small site with a 500 daily maximum visitors mostly from Malaysia, India and Indonesia.

The Site provide movie links, currently I’m using url shorteners but i need to shift to other monetisation methods. So which is a best Network Ads which will be suitable for my site, i need the one that will provide Banners, Push notifications, etc but not pop ads.

## python 3.x – Implementation of queue Message class, so both small text messages and big binary messages can be passed

I want to use mptools in a project. In my code, I need to pass both big Numpy arrays and short text messages between projects. It would be nice if both kinds of messages could go over the same type of queue. Currently, the messages are implemented very nicely like this (in line 75):

``````# -- Standard Event Queue manager
class EventMessage:
def __init__(self, msg_src, msg_type, msg):
self.id = time.time()
self.msg_src = msg_src
self.msg_type = msg_type
self.msg = msg

def __str__(self):
return f"{self.msg_src:10} - {self.msg_type:10} : {self.msg}"
``````

How can I extend this, so it becomes as easy to use with my big, perhaps compressed, Numpy arrays?

When I send numpy arrays over a queue system there were some gymnastics involved:

``````    raw_array = np.array(list(item.values()))
f = BytesIO()
np.savez(f, raw_array)
f.seek(0)
``````

Which I could send over the queue, and unpack on the other end. But there is no tagging of the message, no timestamp, etc., yet. How can I hide all those things as nicely as above, so it looks similar to this, which inherits from mpq.Queue, line 40 of the same file:

``````def safe_get(self, timeout=DEFAULT_POLLING_TIMEOUT):
try:
if timeout is None:
return self.get(block=False)
else:
return self.get(block=True, timeout=timeout)
except Empty:
return None
``````

## nt.number theory – Is almost every number the sum of two numbers with small radicals?

Define a set of numbers with small radicals (A341645 in OEIS) by
$$A_2={ninmathbb{N} ;|; text{rad}(n)^2le n}$$

The asymptotic density of $$A_2cap {1,dots N}$$ is $$sqrt{N}times e^{2(1+o(1))sqrt{log N / log log N}}$$, as per Lucia’s answer here.

1. Main question: does the sumset $$A=A_2+A_2$$ contain all sufficiently large integers? In other words, is $$mathbb{N}setminus A$$ finite?

The number of misses is initially large but becomes sparse very rapidly. I didn’t find any after $$86931723$$, up to $$10^9$$. $$A$$ is not in OEIS (its complement is strictly a subset of A085253 there).

Other questions:

1. for any prime $$p$$, do the elements not divisible by $$p$$ have relative asymptotic density $$0$$ in $$A_2$$?

2. Computing (up to $$10^9$$) the subset $$Bsubset A$$ of sums of coprime pairs in $$A_2$$, points to the misses thinning out very slowly (still above $$13%$$ near $$10^9$$). Are there euristic arguments for or against $$mathbb{N}setminus B$$ being finite?

Is anything else known, or worth asking, about $$A_2$$, $$A$$ and $$B$$?

## Would a small Raid 1 setup suit the need of a home user?

First of all i have read a few discussions about how raid is not a backup option, but let’s say i ONLY want to try to protect my Datas from hardware failure.

Currently, in my gaming pc, i have a 1 TB SSD, and a 2 TB SSD, used for most stuff, and beside that, still in the PC there is a 6TB HDD, and i also use a fairly old 2 TB external drive.
In my 6TB HDD i have a lot of different things, ranging from some backup of some files, to family photos, to vacations films, “normal” films and series, anime, games saves, some work files …
And the most “important” stuff is copied from that HDD to the external drive, every couple weeks, when more important stuff gets added.

I’m considering changing that 6 TB HDD, to 2 a bit bigger HDDs, and place them in Raid 1, and to still keep the important stuff copied on an external drive in another house.
The goal is to try to secure a bit these datas against hardware failure, i don’t care about unintentional deletion, ransonwares, viruses and all ..

Personnaly i find it nice to not have to manually copy everything everytime beside the important stuff on the external drive, and i would like to keep this operating on my own gaming pc (disregarding availability, which i know is the point of raid), would that be a decent/good option, or would it be just simplier and better to just get 2 new HDDs and manually copy stuff on both of them ? Would raid 1 operate on lets say 2 TB drives, is it too big ?

Thank you for taking time to read this,
maybe it’s just a stupid idea, let me know if it is. ^^’

Best regards,
XorKoS

## dnd 5e – Can my familiar fly with a small person?

dnd 5e – Can my familiar fly with a small person? – Role-playing Games Stack Exchange